Your IP : 216.73.216.40


Current Path : /var/www/html/mmishra/icure/staff/
Upload File :
Current File : /var/www/html/mmishra/icure/staff/students1.php

<?php
include "../session.inc";
?>
<html>
<head>
<title>Get Employee No</title>
<link href='../css/style.css' rel='stylesheet' />
<script language='javascript'>
<!--
function changeparent(elmnt,vlu) {
        window.opener.document.getElementById(elmnt).value='vlu'
}
-->
</script>
<?php echo ajax(); ?>
</head>
<body>
<h3 align='left'>Get Student Name</h3>
<form method='POST' action='students.php'>

<?php

$tbl = 'students';
$rno = $_REQUEST["rno"];

if ($rno) {

	echo "<table 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>