Файловый менеджер - Редактировать - /home/umudio/public_html/OLD/listbirthday.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--> <div class="headingbiggest">Birthday Anniversary Alarm for this Week</div><hr /> <?php $datyear = date("Y"); $query_bday = "SELECT *, date_format(dob,'%b %e, %Y') as bdate, DAY(dob) AS weekname, MONTHNAME(dob) AS monthname, WEEKDAY(dob) AS wkday FROM priests WHERE WEEKOFYEAR( dob ) = WEEKOFYEAR( NOW() ) order by wkday"; $bday = mysql_query($query_bday, $csn) or die(mysql_error()); $row_bday = mysql_fetch_assoc($bday); $totalRows_bday = mysql_num_rows($bday); ?> <table width="100%" border="0" cellpadding="5" cellspacing="1" class="text"> <?php if($totalRows_bday > 0 ){ do { $swday = $row_bday['weekname']; $ddmonth = $row_bday['monthname']; if($row_bday['weekname'] == date('j')){ $swday2 = "Today"; } else { $dday = getdate(strtotime("$swday $ddmonth $datyear")); $swday2 = $dday['weekday']; } ?> <tr bgcolor="#F0F0F0"> <td width="51%" align="left"><strong><?php echo $row_bday['namer']; ?></strong></td> <td width="15%" align="left"><em><?php echo $row_bday['dob']; ?></em></td> <td width="15%" align="left"><em><?php echo $row_bday['email']; ?></em></td> <td width="18%" align="left"><em><?php echo $row_bday['phone']; ?></em></td> <td width="16%" align="left"><em><?php echo $swday2; ?></em></td> </tr> <?php } while ($row_bday = mysql_fetch_assoc($bday)); } else { echo "No Birthday Anniversary Alert This Week"; } ?> </table> <p> </p> <div class="headingbiggest">Birthday Anniversary Alarm for Next Week</div><hr /> <?php $datyear = date("Y"); $query_bday = "SELECT *, date_format(dob,'%b %e, %Y') as bdate, DAY(dob) AS weekname, MONTHNAME(dob) AS monthname, WEEKDAY(dob) AS wkday FROM priests WHERE WEEKOFYEAR( dob ) = WEEKOFYEAR( NOW() )+1 order by wkday"; $bday = mysql_query($query_bday, $csn) or die(mysql_error()); $row_bday = mysql_fetch_assoc($bday); $totalRows_bday = mysql_num_rows($bday); ?> <table width="100%" border="0" cellpadding="5" cellspacing="1" class="text"> <?php if($totalRows_bday > 0 ){ do { $swday = $row_bday['weekname']; $ddmonth = $row_bday['monthname']; $dday = getdate(strtotime("$swday $ddmonth $datyear")); $swday2 = $dday['weekday']; ?> <tr bgcolor="#F0F0F0"> <td width="51%" align="left"><strong><?php echo $row_bday['namer']; ?></strong></td> <td width="15%" align="left"><em><?php echo $row_bday['dob']; ?></em></td> <td width="15%" align="left"><em><?php echo $row_bday['email']; ?></em></td> <td width="18%" align="left"><em><?php echo $row_bday['phone']; ?></em></td> <td width="16%" align="left"><em><?php echo $swday2; ?></em></td> </tr> <?php } while ($row_bday = mysql_fetch_assoc($bday)); } else { echo "No Birthday Anniversary Alert Next Week"; } ?> </table> <!--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
|
Настройка