<html>
<head>
<title>LAP CMHS</title>
</head>
<body>
<?
	include "connect.php";
	include "filtercmhs.php";
	$tampil="select * from cmhs where $seleksi";
	$hasil=mysql_query($tampil);
	$total= mysql_num_rows($hasil);
?>
<h3><center> DAFTAR CALON MAHASISWA BARU </h3>
<table align="center" width="1263" border="0">
			<tr bgcolor="#000000">
				<td width="92" align="center"><b><font face="verdana" size="2" color="#FFFFFF">No.Peserta</font></b></td>
				<td width="226" align="center"><b><font face="verdana" size="2" color="#FFFFFF">Nama</font></b></td>
				<td width="144" align="center"><b><font face="verdana" size="2" color="#FFFFFF">Kota Lahir</font></b></td>
				<td width="126" align="center"><b><font face="verdana" size="2" color="#FFFFFF">Tanggal Lahir</font></b></td>
				<td width="296" align="center"><b><font face="verdana" size="2" color="#FFFFFF">Asal Sekolah</font></b></td>
				<td width="85" align="center"><b><font face="verdana" size="2" color="#FFFFFF">Prodi</font></b></td>
				<td width="89" align="center"><b><font face="verdana" size="2" color="#FFFFFF">TA</font></b></div></td>
				<td width="48" align="center"><b><font face="verdana" size="2" color="#FFFFFF">Gel</font></b></td>
				<td width="119" align="center"><b><font face="verdana" size="2" color="#FFFFFF">Telp</font></b></td>
			</tr>
	<?
	if ($total){
		while ($row=mysql_fetch_array($hasil))
		{
		?>
			<tr>
				<td valign="top"><font face="verdana" size="2"><? echo $row[2]; ?></font></td>
				<td valign="top"><font face="verdana" size="2"><a href="viewcmhs.php?id=<? echo $row[0]; ?> " style="text-decoration:none"><font size="2" face="verdana" color="#009900"><? echo $row[3]; ?></font></a></td>
			    <td valign="top"><font face="verdana" size="2"><? echo $row[4]; ?></font></td>
			    <td valign="top"><font face="verdana" size="2"><? echo $row[5]; ?></font></td>
				<td valign="top"><font face="verdana" size="2"><? echo $row[12]; ?></font></td>
				<td valign="top"><div align="center"><font face="verdana" size="2"><? echo $row[15]; ?></font></div></td>
				<td valign="top"><div align="center"><font face="verdana" size="2"><? echo $row[17]; ?></font></div></td>
				<td valign="top"><div align="center"><font face="verdana" size="2"><? echo $row[19]; ?></font></div></td>
				<td valign="top" align="center"><font face="verdana" size="2"><? echo $row[11]; ?></font></td>
			</tr>
		<?	
		} 
	}else{
		?><p align="center"><font color="#FF0000" face="verdana" size="2"><b>Data tidak ditemukan!!</b></font></p><?
	}
	?>
		<tr>
		<td colspan="8" align="left"><font face="verdana" size="2">JUMLAH: <? echo $total; ?></font></td></tr>

</table>
</body>
</html>
