Файловый менеджер - Редактировать - /home/umudio/public_html/OLD/upcoming.php
Назад
<?php include("Connecter/dataconn.php"); ?> <?php $added=""; $m=$_POST['dmonth']; $tom=mktime(0,0,0,$m,1,2012); $ourmon=date("F",$tom); $ss="Displaying all Upcoming Archdiocesan Activities"; $added = " and (todate>=CURDATE() or fromdate>=CURDATE())"; if (is_numeric($_POST['dyear'])){ if ($_POST['dmonth']=='All') { $added=" and year(fromdate) = " . $_POST['dyear']; $ss= "Displaying Archdiocesan Activities in the Year " . $_POST['dyear']; } else { if (is_numeric($_POST['dday'])){ $added=" and year(fromdate) = " . $_POST['dyear'] . " and month(fromdate) = " . $_POST['dmonth'] . " and dayofmonth(fromdate) = " . $_POST['dday']; $ss= "Displaying Archdiocesan Activities on " . $_POST['dyear'] . ", " . $ourmon . " " . $_POST['dday']; } else { $added=" and year(fromdate) = " . $_POST['dyear'] . " and month(fromdate) = " . $_POST['dmonth']; $ss= "Displaying Archdiocesan Activities in " . $_POST['dyear'] . ", " . $ourmon; } } } $query_dio92 = "SELECT sn, details, activity, archived, fromdate, todate, date_format(fromdate,'%Y, %b %d') as fdate, date_format(todate,'%Y, %b %d') as tdate FROM calend WHERE archived='No'" . $added . " order by fromdate asc, activity asc"; $dio92 = mysql_query($query_dio92, $csn) or die(mysql_error()); $row_dio92 = mysql_fetch_assoc($dio92); $totalRows_dio92 = mysql_num_rows($dio92); ?> <!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--> <div class="headingbiggest">Upcoming Events</div><hr /> <div style="padding:5px 0px 15px 0px;"> <form method="post" name="search" id="search"> <table width="86%" border="0" align="center" cellpadding="2" cellspacing="1" bgcolor="#F7F7F7"> <tr> <td align="center" bgcolor="#E9E9E9"><b>Search By</b></td> <td align="center" valign="middle" bgcolor="#E9E9E9"><strong>Day: <input type="text" name="dday" maxlength="2" size="2" /> </strong></td> <td align="center" valign="middle" bgcolor="#E9E9E9"><strong>Month: <select name="dmonth" id="dmonth"> <option value="All">All</option> <option value="1">January</option> <option value="2">February</option> <option value="3">March</option> <option value="4">April</option> <option value="5">May</option> <option value="6">June</option> <option value="7">July</option> <option value="8">August</option> <option value="9">September</option> <option value="10">October</option> <option value="11">November</option> <option value="12">December</option> </select> </strong></td> <td align="center" valign="middle" bgcolor="#E9E9E9"><strong>Year: <input type="text" name="dyear" maxlength="4" size="4" value="<?php echo date('Y'); ?>" /> </strong></td> <td align="center" valign="middle" bgcolor="#E9E9E9"> <input name="button2" type="submit" class="style14" id="button2" value=" Search " /></td> <td align="center" valign="middle" bgcolor="#E9E9E9"><b><a href="upcoming.php">Show All</a></b></td> </tr> </table> </form> <div align="center" style="padding-top:10px;"><a href="activitymonthly2.php">View Monthly Calendar</a> | <a href="activityyearly2.php">View Yearly Calendar</a> </div> <div class="headingbigger" align="center"><hr /><?php echo $ss; ?><hr /></div> </div> <?php if ($totalRows_dio92>0) { ?> <?php do { ?> <div class="trou" style="border-bottom:1px solid #eee;"><span class="lilian2" style="color:#1401c1; font-size:13px;"><?php echo $row_dio92['fdate']; ?> <?php if($row_dio92['todate']!=""){ echo(" - "); echo $row_dio92['tdate']; } ?> :</span> <a style="color:#1401c1"><?php echo $row_dio92['activity']; ?></a></div> <div style="padding-left:30px;"><?php echo $row_dio92['details']; ?></div> <?php } while ($row_dio92 = mysql_fetch_assoc($dio92)); ?> <?php } else { echo ("None Yet!</div>"); } ?> <!--Content Ends here--> <?php include("mainbarbottom.php"); ?> <?php include("contentbottom.php"); ?> <?php include("footbar.php"); ?> <?php include("bottom.php"); ?> </body> </html>
| ver. 1.4 |
Github
|
.
| PHP 5.6.40 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка