| Current Path : /var/www/html/mmishra/icure/patient/ |
| Current File : /var/www/html/mmishra/icure/patient/students.inc |
<?php
include "../session.inc";
?>
<html>
<head>
<title>Get Employee No</title>
<link href='../css/style.css' rel='stylesheet' />
<?php echo ajax(); ?>
</head>
<body>
<h3 align='left'>Get Student Name</h3>
<form method='POST' action='students.php'>
<?php
$tbl = 'students';
$rno = $_REQUEST["rno"];
?>
Student RollNo <input type='text' name='rno' value='<?php echo $rno; ?>' size='20' onkeypress=\"showPage('students1.php?rno='+this.value,'aaaa','bbbbb');\">
<input type='submit' name='submit' value='FIND'>
<br><br>
<div id='ajax'></div>
<?php
if ($_POST["submit"] == 'FIND' && $rno) {
echo "<table id='ajax' style='font-size: x-small' border='1' width='100%'>
<tr><th>Sr</th><th>RollNo</th><th>Student Name</th><th>Course</th><th>DOB</th><th>Email</th></tr>";
$rs = mysql_query("select * from $tbl where roll_no like '$rno%' order by name_eng");
while ($o = mysql_fetch_object($rs)) {
$i++;
echo "<tr><td align='center'>$i</td>
<td><a href='javascript:changeparent('patid',$o->roll_no)'>$o->roll_no</a></td>
<td>$o->name_eng</td>
<td>$o->course_name</td>
<td>$o->dob</td>
<td>$o->roll_no@iiita.ac.in</td></tr>";
}
echo "</table>";
}
?>
</form>
</body>
</html>