Your IP : 216.73.216.40


Current Path : /var/www/html/mmishra/mm/uprtou1/www.uprtou.ac.in/
Upload File :
Current File : /var/www/html/mmishra/mm/uprtou1/www.uprtou.ac.in/admitcard.php

<table width='100%'>
<tr valign='top' height='100'>
<td>
<img src='<?php echo $webid; ?>/images/logo.jpg'>
</td><td>
<center>
<h2>U.P. Rajarshi Tandan Open University, Allahabad</h2>
<b>Admit Card Examination - June 2011</b></center></th>
</tr>
</table>

<table width='100%'>
<?php
$enrollno = $_REQUEST["enrollno"];
mysql_select_db("uprtou2011");
$tbl = 'examdata2011';
$no = 0;

if ($_POST["submit"] == 'DELETE') {
	mysql_query("delete from $tbl where enr='$enrollno'");
	$enrollno = '';
}

if (!$enrollno) {
	echo "<tr><th nowrap>Enter Enrolment No. <input type='text' name='enrollno' size='16' value='$o->enrollno'>
	<input type='submit' name='submit' value='SUBMIT'></th> ";
	$rs = mysql_query("select enr from $tbl group by enr");
	while ($o = mysql_fetch_object($rs)) {
		$no++;
	}
	echo "<td>Total $no admit cards available online ";
	$no = 0;
	$rs = mysql_query("select program from $tbl group by program");
	while ($o = mysql_fetch_object($rs)) {
		$no++;
	}
	echo " for $no programs<br>
	</td></tr>";
} else {
	$rs = mysql_query("select * from $tbl where enr='$enrollno'");
	while ($o = mysql_fetch_object($rs)) {
		$i++;
		if ($i == 1) {
			echo "<tr height='20'><td><b>Exam Center Code: $o->examcenter</b></td>
			<td align='right'><b>Study Center Code: $o->studycenter</b></td></tr>
			<tr height='30'><td colspan='2'><b>Exam Center Name:</b> $o->examcentername<hr></td></tr>
			<tr><td><b>
				Program Name: $o->program<br>
				Enrolment No.: $enrollno<br>
				Student Name: $o->name<br>
				Father's Name: $o->father<br>
			</b></td><td align='right'>";
			if (file_exists("$webid/photos/$enrollno.jpg")) 
				echo "<img src='$webid/photos/{$enrollno}.jpg' width='90' height='100' border='1' />";
			else if (file_exists("$webid/photos/$o->batchctrl.jpg"))
				echo "<img src='$webid/photos/{$o->batchctrl}.jpg' width='90' height='100' border='1' />";
			else if (file_exists("$webid/photos/$o->roll_no.jpg"))
				echo "<img src='$webid/photos/{$o->roll_no}.jpg' width='90' height='100' border='1' />";
			else
				echo "<img src='$webid/photos/photo.jpg' width='90' height='100' border='1' />";

			echo "</td></tr>
			<tr height='20'><th colspan='2' align='center'><hr>Papers for which student is allowed for Examination-June 2011<hr></th></tr>";
		}
		echo "<tr height='30'><td colspan='2'>$o->paper</td></tr>";
	}

	if ($i) {
		echo "<tr height='90'><th colspan='2' align='right'><hr><br><br><br>
		<img src='$webid/coexam.jpg' width='80' height='30' border='0' / style=\"padding-right: 70px\">
		<br>CONTROLLER OF EXAMINATION</th></tr>
		";
		if ($user) echo "<tr><td align='center' colspan='2'>
		<input type='hidden' name='enrollno' value='$enrollno'>
		<input type='submit' name='submit' value='DELETE'>
		</td></tr>";
	} else {
		echo "<tr><th colspan='2' align='center'><h3>Sorry! your rollno. does not exit in the database.
		Please contact university for further assistance. Thanks.</h3></th></tr>";
	}
	mysql_select_db("icdp");
}
?>
<tr><td colspan='2'>
<b>Note:</b><ol>
<li>Student must bring Admit Card along with I-Card daily at the Examination Center.</li>
<li>For missing/wrong photograph on admit card, student must bring two recent photographs at Examination Center.</li>
<li>Students are required to appear in the examination as per Time-Table declared by the University.</li>
<li>For updated examination Time-Table, please visit University website regularly.</li>
<li>Help Line No. 9415608608, 9415608651, 9415608698, 9838447665</li>
<li>Email: uprtou_9999@rediffmail.com</li>
</ol>
</td></tr>
</table>