Файловый менеджер - Редактировать - /home/umudio/public_html/OLD/school.php
Назад
<?php include("Connecter/dataconn.php"); ?> <?php $query_dio = "SELECT * FROM institutions where status='Tertiary Institution' order by nameadd"; $dio = mysql_query($query_dio, $csn) or die(mysql_error()); $row_dio = mysql_fetch_assoc($dio); $totalRows_dio = mysql_num_rows($dio); $query_dio1 = "SELECT * FROM institutions where status='Secondary School' order by nameadd"; $dio1 = mysql_query($query_dio1, $csn) or die(mysql_error()); $row_dio1 = mysql_fetch_assoc($dio1); $totalRows_dio1 = mysql_num_rows($dio1); $query_dio2 = "SELECT * FROM institutions where status='Primary/Nursery School' order by nameadd"; $dio2 = mysql_query($query_dio2, $csn) or die(mysql_error()); $row_dio2 = mysql_fetch_assoc($dio2); $totalRows_dio2 = mysql_num_rows($dio2); ?> <!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">Tertiary Institutions</div> <?php if ($totalRows_dio>0) { $gv=1; ?> <?php do { ?> <div style="width:50%; padding:0px 15px; float:left;"> <table width="100%" cellspacing="2" cellpadding="3"> <tr valign="top"> <td width="10px"><div style="color:#990000; font-weight:bold; font-size:18px;"><?php echo $gv; ?>. </div></td><td><?php echo $row_dio['nameadd']; ?></td> </tr></table> <?php if($row_dio['details']!=""){ ?><div style="background-color:#ddd; padding:10px 20px 10px 20px;"><?php echo $row_dio['details']; ?></div><?php } ?> </div> <?php if($gv%2==0){ ?> <div style="clear:both;"> </div> <?php } ?> <?php $gv++; } while ($row_dio = mysql_fetch_assoc($dio)); ?> <?php } else { echo ("None Found!"); } ?> <div class="headingbiggest" style="padding-top:25px;">Secondary Schools</div> <?php if ($totalRows_dio1>0) { $gv=1; ?> <?php do { ?> <div style="width:50%; padding:0px 15px; float:left;"> <table width="100%" cellspacing="2" cellpadding="3"> <tr valign="top"> <td width="10px"><div style="color:#990000; font-weight:bold; font-size:18px;"><?php echo $gv; ?>. </div></td><td><?php echo $row_dio1['nameadd']; ?></td> </tr></table> <?php if($row_dio1['details']!=""){ ?><div style="background-color:#ddd; padding:10px 20px 10px 20px;"><?php echo $row_dio1['details']; ?></div><?php } ?> </div> <?php if($gv%2==0){ ?> <div style="clear:both;"> </div> <?php } ?> <?php $gv++; } while ($row_dio1 = mysql_fetch_assoc($dio1)); ?> <?php } else { echo ("None Found!"); } ?> <div class="headingbiggest">Primary/Nursery School</div> <?php if ($totalRows_dio2>0) { $gv=1; ?> <?php do { ?> <div style="width:50%; padding:0px 15px; float:left;"> <table width="100%" cellspacing="2" cellpadding="3"> <tr valign="top"> <td width="10px"><div style="color:#990000; font-weight:bold; font-size:18px;"><?php echo $gv; ?>. </div></td><td><?php echo $row_dio2['nameadd']; ?></td> </tr></table> <?php if($row_dio2['details']!=""){ ?><div style="background-color:#ddd; padding:10px 20px 10px 20px;"><?php echo $row_dio2['details']; ?></div><?php } ?> </div> <?php if($gv%2==0){ ?> <div style="clear:both;"> </div> <?php } ?> <?php $gv++; } while ($row_dio2 = mysql_fetch_assoc($dio2)); ?> <?php } else { echo ("None Found!"); } ?> <!--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.29 |
proxy
|
phpinfo
|
Настройка