Файловый менеджер - Редактировать - /home/umudio/public_html/OLD/senddsms.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"); ?> <link rel="stylesheet" type="text/css" href="cal/dhtmlxcalendar.css"> <link rel="stylesheet" type="text/css" href="cal/skins/dhtmlxcalendar_dhx_web.css"> <script src="cal/dhtmlxcalendar.js"></script> <script> function doOnLoad() { var t = new dhtmlXCalendarObject(["Send_Date"]); t.setSkin('dhx_web'); t.setWeekStartDay=7; t.setDateFormat("%j %M %Y"); t.hideTime(); } </script> <script type="text/javascript"> function yto(){ if(document.getElementById("generic").checked==true){ document.getElementById("sendto").disabled=false; } else { document.getElementById("sendto").disabled=true; } if(document.getElementById("somemember").checked==true){ document.getElementById("towhom").disabled=false; } else { document.getElementById("towhom").disabled=true; } } </script> </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--> <form method="post" action="senddsmsresult2.php" id="myform"> <table width="100%" cellpadding="0" cellspacing="5" border="0"> <tr valign="top"> <td> <div> </div> <b>From: </b><input type="text" name="sender" id="sender" required="required" value="Umuahia_Dio" maxlength="11" size="11" /><br /> <div style="padding-right:15px; padding-left:7px; color:#0663fd; line-height:125%; font-style:italic;">This is the Sender's Name the recipient would see. Up to 11 alphanumeric characters can be used. It can contain numbers, letters, spaces, periods, hyphens and underscores.</div> <div> </div> <div align="left"> <label> <input type="radio" name="recipients" value="somemember" id="somemember" onchange="yto()" onmouseup="yto()" onclick="yto()" ondblclick="yto()" /> <b>To: </b></label><select name="towhom" id="towhom" disabled="disabled"> <?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["sn"]; $namer=$row_dio1["namer"]; echo ("<option value='$phone'>$namer</option>"); } while($row_dio1 = mysql_fetch_assoc($dio1)); } ?> --> </select> </div> <label> <input type="radio" name="recipients" value="allmember" id="allmember" onchange="yto()" onmouseup="yto()" onclick="yto()" ondblclick="yto()" /> <b>To: </b><b>All Personnel</b></label> <br /> <div style="float:left;"> <input type="radio" name="recipients" value="generic" checked="checked" id="generic" onchange="yto()" onmouseup="yto()" onclick="yto()" ondblclick="yto()" /> <b>To: </b></div><textarea name="sendto" id="sendto" rows="5" cols="30" required="required">2348025301075</textarea><br /> <div style="padding-right:15px; padding-left:7px; color:#0663fd; line-height:125%; font-style:italic;">Destination mobile number(s). Use commas to separate multiple numbers. Phone numbers are required in international format, begin with 234, no + sign, no spaces, no dashes, no 0 in front of the area code. eg: 2348025301075,2348038569196</div> </td> <td width="300px"> <b>Type your SMS below</b><br /> <textarea name="getlength" maxlength="1600" rows="15" cols="35" lengthcut="true" required="required">Hello. </textarea> <br /> <!-- getlength, fixlength <textarea name="getlength" maxlength="160" lengthcut="true" rows="5" cols="45">Demo Text. This field has a maxlength, and the length is enforced. </textarea><br> <textarea name="nolength" rows="5" cols="45">This field has no maxlength.</textarea> --> <div align="right"><input type="submit" value="Send SMS" /></div> </td> </tr> </table> </form> <script type="text/javascript" language="javascript" src="charcount.js"></script> <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
|
Настройка