| Current Path : /var/www/html/mmishra/iws8/html/indem/webbioexam/biomedical/ |
| Current File : /var/www/html/mmishra/iws8/html/indem/webbioexam/biomedical/pagination.php |
<center><table><tr><td colspan=2 align=center><h2>Indian Institute of Information Technology Allahabad</h2></td></tr>
<tr><td width=20% align=center><img src="logo.gif" width="75" height="78" /></td>
<td width=80% align=center>
(A University under Section 3 0f UGC Act 1956)<br>
A Centre of Excellence in Information Technology, Estd. By Min. of HRD, Govt. of India, New Delhi<br>
Devghat Jhalwa, Allahabad – 211012, U.P. (INDIA)<br>
Ph: 0532-2922025,2922067 Fax: 0532-2922081 <br>
Web: <a href="http://www.iiita.ac.in/">www.iiita.ac.in</a> Email: <a href="mailto:contact@iiita.ac.in">contact@iiita.ac.in</a>
</td></tr>
</table>
<hr><h3>Online Applications Received for Five Year Integrated M. Tech. Program in Bio-Medical Engineering 2012 </h3></center>
<?php
include "javafunctions.inc";
include "functions.inc";
dbConnect();
$tbl="tbl_registration";
$per_page = 50;
//Calculating no of pages
$sql = "select * from $tbl where flag!=1";
$result = mysql_query($sql);
$count = mysql_num_rows($result);
$pages = ceil($count/$per_page);
echo "<center>";
for($i=1; $i<=$pages; $i++) {
echo "<a href='pagination.php?page=$i'>$i</a> ";
}
echo"</center><br>";
if (!$page) $page=1;
$sno = ($page-1)*$per_page;
if($_GET) {
$page=$_GET['page'];
if (!$page) $page=1;
$sno = ($page-1)*$per_page;
}
echo "<input type='hidden' name='page' value='$page' />";
$start = ($page-1)*$per_page;
$rs = mysql_query("select * from $tbl where flag!=1 order by fullname limit $start,$per_page");
echo "
<center>
<table border=1 width=830>
<tr><td width=50 align=center><b>Sr No.</b></td>
<td width=125 align=center><b>Application No.</b></td>
<td width=55 align=center><b>Photo</b></td>
<td width=300 align=center><b>Full Name</b></td>
<td width=300 align=center><b>Father Name</b></td>
</tr>";
while ($o = mysql_fetch_object($rs)) {
if ($fullname == strtoupper(trim($o->fullname))) {
} else {
$fullname = strtoupper(trim($o->fullname));
$id = $o->id;
$regid = $o->regid;
$dob = $o->dob;
$gender = $o->gender;
$nationality = $o->nationality;
$category = $o->category;
$fathername = $o->fathername;
$mothername = $o->mothername;
$address = $o->address;
$state = $o->state;
$pincode = $o->pincode;
$phone = $o->phone;
$fax = $o->fax;
$email = $o->email;
$txntype = $o->txntype;
$txnnumber = $o->txnnumber;
$amount = $o->amount;
$depositdate = $o->depositdate;
$bankbranch = $o->bankbranch;
$discipline12 = $o->discipline12;
$board12 = $o->board12;
$year12 = $o->year12;
$percentage12 = $o->percentage12;
$appearing12 = $o->appearing12;
$discipline10 = $o->discipline10;
$board10 = $o->board10;
$year10 = $o->year10;
$percentage10 = $o->percentage10;
$appearing10 = $o->appearing10;
$photo = $o->photo;
$status = $o->status;
}
$sno = $sno + 1;
echo "<tr>
<td align=center>".$sno."</td>
<td align=center><b>".$id."</b></td>
<td align=center><img src='photos/$id.jpg' height='50' width='50' /></td>
<td> ".strtoupper($fullname)."</td>
<td> ".strtoupper($fathername)."</td>
</tr>";
}
echo "</table></center>";
echo "<br><center>";
for($i=1; $i<=$pages; $i++) {
echo "<a href='pagination.php?page=$i'>$i</a> ";
}
echo"</center><br>";
?>