<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="1197" border="0">
			<tr bgcolor="#000000">
				<td width="121" align="center"><b><font face="verdana" size="2" color="#FFFFFF">No.Peserta</font></b></td>
				<td width="253" align="center"><b><font face="verdana" size="2" color="#FFFFFF">Nama</font></b></td>
				<td width="178" align="center"><b><font face="verdana" size="2" color="#FFFFFF">Kota Lahir</font></b></td>
				<td width="130" align="center"><b><font face="verdana" size="2" color="#FFFFFF">Tanggal Lahir</font></b></td>
				<td width="251" align="center"><b><font face="verdana" size="2" color="#FFFFFF">Asal Sekolah</font></b></td>
				<td width="118" align="center"><b><font face="verdana" size="2" color="#FFFFFF">Prodi</font></b></td>
				<td width="116" align="center"><b><font face="verdana" size="2" color="#FFFFFF">TA</font></b></div></td>
				<td width="116" align="center"><b><font face="verdana" size="2" color="#FFFFFF">Ket</font></b></td>
			</tr>
	<?
	if ($total){
		while ($row=mysql_fetch_array($hasil))
		{
		?>
			<tr>
				<td valign="top"><font face="verdana" size="2"><? echo $row[0]; ?></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[1]; ?></font></a></td>
			    <td valign="top"><font face="verdana" size="2"><? echo $row[2]; ?></font></td>
			    <td valign="top"><font face="verdana" size="2"><? echo $row[3]; ?></font></td>
				<td valign="top"><font face="verdana" size="2"><? echo $row[10]; ?></font></td>
				<td valign="top"><font face="verdana" size="2"><? echo $row[13]; ?></font></td>
				<td valign="top"><font face="verdana" size="2"><? echo $row[15]; ?></font></td>
				<td valign="top" align="center"><font face="verdana" size="2"><? echo $row[16]; ?></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>
