Your IP : 216.73.216.40


Current Path : /var/www/html/mmishra/iws8/html/ialumni/
Upload File :
Current File : /var/www/html/mmishra/iws8/html/ialumni/btechit.inc

<?php
include "inc/functions.inc.php";
dbConnect();


$batchyear = $_GET["batchbyear"];
//if (!$batchyear) $batchyear = 'IIT2011';

echo "<form name='btechit' action='?pg=btechit' method='GET' >
<table><tr><td>
	<input type='radio' name='batchyear' value='1999' onClick=\"document.location.href='?pg=btechit&batchyear='+this.value\" checked/>1999<br>
	<input type='radio' name='batchyear' value='2000' onClick=\"document.location.href='?pg=btechit&batchyear='+this.value\" />2000<br>
	<input type='radio' name='batchyear' value='2001' onClick=\"document.location.href='?pg=btechit&batchyear='+this.value\" />2001<br>
	<input type='radio' name='batchyear' value='2002' onClick=\"document.location.href='?pg=btechit&batchyear='+this.value\" />2002<br>
	<input type='radio' name='batchyear' value='2003' onClick=\"document.location.href='?pg=btechit&batchyear='+this.value\" />2003<br>
	<input type='radio' name='batchyear' value='2004' onClick=\"document.location.href="?pg=btechit&batchyear='+this.value\" />2004<br>
	<input type='radio' name='batchyear' value='2005' onClick='document.getElementById('hidfield').value=this.value' />2005<br>
	<input type='radio' name='batchyear' value='2006' onClick='document.getElementById('hidfield').value=this.value' />2006<br>
	<input type='radio' name='batchyear' value='2007' onClick='document.getElementById('hidfield').value=this.value' />2007<br>
	<input type='radio' name='batchyear' value='2008' onClick='document.getElementById('hidfield').value=this.value' />2008<br>
	<input type='radio' name='batchyear' value='2009' onClick='document.getElementById('hidfield').value=this.value' />2009<br>
	<input type='radio' name='batchyear' value='2010' onClick='document.getElementById('hidfield').value=this.value' />2010<br>
	<input type='radio' name='batchyear' value='2011' onClick='document.getElementById('hidfield').value=this.value' />2011<br>
	<input type='radio' name='batchyear' value='2012' onClick='document.getElementById('hidfield').value=this.value' />2012<br>
	<input type='radio' name='batchyear' value='2013' onClick='document.getElementById('hidfield').value=this.value' />2013<br>
	<input type='hidden' name='byear' value='' id='hidfield' />
       </td><td>
		<table><tr><td>Roll No.</td><td>Alumni Name</td><td>Organization</td><td>Current Location</td></tr>";

		$ps = mysql_query("select * from tbl_alumni where roll_no like '$batchyear%'");
		while($p=mysql_fetch_object($ps)){
		        $roll_no= $p->roll_no;
		        $alumniname = $p->alumni_name;
		        $passing_year = $p->passing_year;
		        $alumni_name = $p->alumni_name;
		        $current_address = $p->current_address;
		        $city = $p->city;
		        $state = $p->state;
		        $country = $p->country;
		        $pin_code = $p->pin_code;
		        $phone_no = $p->phone_no;
		        $email = $p->email;
		        $organization = $p->organization;
		        $designation = $p->designation;
		        $work_place = $p->work_place;
		        $location = $p->location;

			echo "<tr><td>".$roll_no."</td><td>".$alumni_name."</td><td>".$organization."</td><td>".$location."</td></tr>";
		}
		echo "</table></td></tr>
</table>
</form>";
?>