Файловый менеджер - Редактировать - /home/umudio/public_html/OLD/sendmailer.php
Назад
<?php if (!$_SESSION){ session_start(); } $acc=$_SESSION['acc']; $yto=$_SESSION['yto']; if(isset($acc) && ($acc=="administratoroftheUmuahiasiteDiocese2016Byto")){?> <?php include("Connecter/dataconn.php"); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <?php include("head.php"); ?> </head> <body> <?php include("top.php"); ?> <?php include("titlebar.php"); ?> <?php include("mast.php"); ?> <?php include("navbar.php"); ?> <?php include("contenttop.php"); ?> <?php include("sidebar.php"); ?> <?php include("mainbartop.php"); ?> <!--Content Goes here--> <?php $query_dio1 = "SELECT * FROM priests where archived<>'Yes' order by namer asc"; $dio1 = mysql_query($query_dio1, $csn) or die(mysql_error()); $row_dio1 = mysql_fetch_assoc($dio1); $totalRows_dio1 = mysql_num_rows($dio1); if($totalRows_dio1>0){ ?> <form action="sendmail.php" method="post" name="Log"> <br> <br> Message: <b>To:</b> <select name="towhom" id="towhom"> <option value="All" selected="selected">All Personnel</option> <?php $query_dio3 = "SELECT * FROM priests where archived<>'Yes' and status='Umuahia Diocesan Priest'"; $dio3 = mysql_query($query_dio3, $csn) or die(mysql_error()); $row_dio3 = mysql_fetch_assoc($dio3); $totalRows_dio3 = mysql_num_rows($dio3); if($totalRows_dio3>0){ ?> <option value="IP">All Umuahia Diocesan Priests</option> <?php } ?> <?php $query_dio3 = "SELECT * FROM priests where archived<>'Yes' and status='Umuahia Diocesan Priest' and specialassign<>''"; $dio3 = mysql_query($query_dio3, $csn) or die(mysql_error()); $row_dio3 = mysql_fetch_assoc($dio3); $totalRows_dio3 = mysql_num_rows($dio3); if($totalRows_dio3>0){ ?> <option value="IPSA">Priests on Special Assignment</option> <?php } ?> <?php $query_dio3 = "SELECT * FROM priests where archived<>'Yes' and status='Umuahia Diocesan Priest' and studyleave<>''"; $dio3 = mysql_query($query_dio3, $csn) or die(mysql_error()); $row_dio3 = mysql_fetch_assoc($dio3); $totalRows_dio3 = mysql_num_rows($dio3); if($totalRows_dio3>0){ ?> <option value="IPSL">Priests on Study Leave</option> <?php } ?> <?php $query_dio3 = "SELECT * FROM priests where archived<>'Yes' and status='Priest from Other Diocese'"; $dio3 = mysql_query($query_dio3, $csn) or die(mysql_error()); $row_dio3 = mysql_fetch_assoc($dio3); $totalRows_dio3 = mysql_num_rows($dio3); if($totalRows_dio3>0){ ?> <option value="OP">All Priests from Other Diocese</option> <?php } ?> <?php $query_dio3 = "SELECT * FROM priests where archived<>'Yes' and status='Catholic Church of the East'"; $dio3 = mysql_query($query_dio3, $csn) or die(mysql_error()); $row_dio3 = mysql_fetch_assoc($dio3); $totalRows_dio3 = mysql_num_rows($dio3); if($totalRows_dio3>0){ ?> <option value="Pre">Catholic Church of the East</option> <?php } ?> <?php $query_dio3 = "SELECT * FROM priests where archived<>'Yes' and status='Religious' and ordination<>0"; $dio3 = mysql_query($query_dio3, $csn) or die(mysql_error()); $row_dio3 = mysql_fetch_assoc($dio3); $totalRows_dio3 = mysql_num_rows($dio3); if($totalRows_dio3>0){ ?> <option value="RelP">All Religious Priests Working in the Diocese</option> <?php } ?> <?php $query_dio3 = "SELECT * FROM priests where archived<>'Yes' and (titler<>'Msgr.' or titler<>'Very Rev. Fr.' or titler<>'Rev. Fr.')"; $dio3 = mysql_query($query_dio3, $csn) or die(mysql_error()); $row_dio3 = mysql_fetch_assoc($dio3); $totalRows_dio3 = mysql_num_rows($dio3); if($totalRows_dio3>0){ ?> <option value="AP">All Priests Working in the Diocese</option> <?php } ?> <?php $query_dio3 = "SELECT * FROM priests where archived<>'Yes' and status='Religious' and ordination=0"; $dio3 = mysql_query($query_dio3, $csn) or die(mysql_error()); $row_dio3 = mysql_fetch_assoc($dio3); $totalRows_dio3 = mysql_num_rows($dio3); if($totalRows_dio3>0){ ?> <option value="RelSB">Only Religious Sisters/Brothers</option> <?php } ?> <?php $query_dio3 = "SELECT * FROM priests where archived<>'Yes' and status='Religious'"; $dio3 = mysql_query($query_dio3, $csn) or die(mysql_error()); $row_dio3 = mysql_fetch_assoc($dio3); $totalRows_dio3 = mysql_num_rows($dio3); if($totalRows_dio3>0){ ?> <option value="Rel">All Religious</option> <?php } ?> <?php $query_dio3 = "SELECT * FROM priests where archived<>'Yes' and status='Others' and titler='Rev.'"; $dio3 = mysql_query($query_dio3, $csn) or die(mysql_error()); $row_dio3 = mysql_fetch_assoc($dio3); $totalRows_dio3 = mysql_num_rows($dio3); if($totalRows_dio3>0){ ?> <option value="Dea">Deacons</option> <?php } ?> <?php $query_dio3 = "SELECT * FROM priests where archived<>'Yes' and status='Others' and titler='Seminarian'"; $dio3 = mysql_query($query_dio3, $csn) or die(mysql_error()); $row_dio3 = mysql_fetch_assoc($dio3); $totalRows_dio3 = mysql_num_rows($dio3); if($totalRows_dio3>0){ ?> <option value="Sem">Seminarian</option> <?php } ?> <?php $query_dio3 = "SELECT * FROM priests where archived<>'Yes' and status='Others' and titler='Catechist'"; $dio3 = mysql_query($query_dio3, $csn) or die(mysql_error()); $row_dio3 = mysql_fetch_assoc($dio3); $totalRows_dio3 = mysql_num_rows($dio3); if($totalRows_dio3>0){ ?> <option value="Cat">Catechist</option> <?php } ?> <?php $query_dio3 = "SELECT * FROM priests where archived<>'Yes' and status='Others' and (titler<>'Catechist' or titler<>'Seminarian' or titler<>'Rev.')"; $dio3 = mysql_query($query_dio3, $csn) or die(mysql_error()); $row_dio3 = mysql_fetch_assoc($dio3); $totalRows_dio3 = mysql_num_rows($dio3); if($totalRows_dio3>0){ ?> <option value="Oth">Other Personnels in the Diocese</option> <?php } ?> <?php $datyear = date("Y"); $datmonth = date("n"); $ddmonth = date("F"); $datday = date("d"); //$aweek = $datday + 6; $aweek = $datday; $tdate = date("Y-m-d"); $wkdate = date("m-d", strtotime("+6 day")); ?> <?php $query_dio3 = "SELECT phone, sn, namer, email, dob, ordination, DAYOFMONTH(dob) AS 'weekname' FROM priests WHERE MONTH(dob) = $datmonth AND DAYOFMONTH(dob) >= $datday AND DAYOFMONTH(dob) <= $aweek ORDER by weekname"; $dio3 = mysql_query($query_dio3, $csn) or die(mysql_error()); $row_dio3 = mysql_fetch_assoc($dio3); $totalRows_dio3 = mysql_num_rows($dio3); if($totalRows_dio3>0){ ?> <option value="Bir">All Birthday Anniversary</option> <?php } ?> <?php $query_dio3 = "SELECT phone, sn, namer, email, dob, ordination, DAYOFMONTH(ordination) AS 'weekname' FROM priests WHERE MONTH(ordination) = $datmonth AND DAYOFMONTH(ordination) >= $datday AND DAYOFMONTH(ordination) <= $aweek ORDER by weekname"; $dio3 = mysql_query($query_dio3, $csn) or die(mysql_error()); $row_dio3 = mysql_fetch_assoc($dio3); $totalRows_dio3 = mysql_num_rows($dio3); if($totalRows_dio3>0){ ?> <option value="Ord">All Ordination Anniversary</option> <?php } ?> <?php $query_dio1 = "SELECT * FROM priests where archived<>'Yes' order by namer asc"; $dio1 = mysql_query($query_dio1, $csn) or die(mysql_error()); $row_dio1 = mysql_fetch_assoc($dio1); $totalRows_dio1 = mysql_num_rows($dio1); if($totalRows_dio1>0){ do { $phone=$row_dio1["email"]; $namer=$row_dio1["namer"]; echo ("<option value='$phone'>$namer</option>"); } while($row_dio1 = mysql_fetch_assoc($dio1)); } ?> </select> <br /> <br /> <textarea name="message" cols="60" rows="20" id="message" ></textarea> <br> <br> <input name="sendmessage" type="submit" id="sendmessage" value="Send the Message..."> </form> <?php } else { echo('No Member added in the Database Yet!'); } ?> <p> </p><hr /> <p><a href="dadmin.php">Back to Admin Page</a></p> <!--Content Ends here--> <?php include("mainbarbottom.php"); ?> <?php include("contentbottom.php"); ?> <?php include("footbar.php"); ?> <?php include("bottom.php"); ?> </body> </html> <?php } else { include("ddadmin.php"); }?>
| ver. 1.4 |
Github
|
.
| PHP 5.6.40 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка