<html>
<body>
<h3 align="center" style="background-color:#00FF00">:: FORM MHS ::</h3>
<?php
include "config.php";
$id=$_GET['id'];
$update = "select * from cmhs where id_daf ='$id'";
$hasil = mysql_query($update);
$row=mysql_fetch_array($hasil);

?>
<form method = post action ="inputmhs.php" enctype="multipart/form-data">
<table border =0 align="center" width="1000" bgcolor="#FFFFCC">
<tr><td>NIM </td>
<td>: <input type = text name="nim" size="20" ></td></tr>
<tr><td>Nama </td>
<td>: <input type = text name="nm_mhs" size="50" value="<? echo $row[3]; ?>"></td></tr>
<tr><td>Tingkat </td>
<td>: <select size="1"  name ="tingkat">
	<option selected></option>
	<option>I</option>
	<option>II</option>
	<option>III</option>
</td></tr>
  </select></td>
<tr><td>Kelas </td>
<td>: <select size="1"  name ="kelas">
	<option selected></option>
	<option>A</option>
	<option>B</option>
	<option>C</option>
</td></tr>
  </select></td> 
<tr><td>Semester</td>
<td>: <select size="1"  name ="semester">
	<option selected></option>
	<option>1</option>
	<option>2</option>
	<option>3</option>
	<option>4</option>
	<option>5</option>
	<option>6</option>
</td></tr>
  </select></td>
<tr><td>Tempat lahir </td>
<td>: <input type = text name ="kota_lhr" size="50" value="<? echo $row[4]; ?>"></td></tr>
<tr><td>Tanggal Lahir </td>
<td>: 
<input type="text" name="tgl_lhr" value="<? echo $row[5]; ?>"id="tgl_lhr" style="background-color:#CCFFFF "/>
<input type="button" value="" style="background-image:url(cal.gif); background-repeat:no-repeat; background-position:center; border:none;" onClick="pick('tgl_lhr');" />
<script type="text/javascript" language="javascript">
<!--
function pick(tgt)
{
 window.open("kalender_pick.php?rand="+Math.random()+"&tgt="+tgt,"Kalender","width=500,height=400,alwaysRaised=yes,scrollbars=yes,directories=no,location=no,menubar=no,toolbar=no");
}
//-->
</script>
</td></tr>
<tr><td>Agama </td>
<td>: <select size="1"  name ="agama">
	<option selected><? echo $row[6]; ?></option>
	<option>Islam</option>
	<option>Katolik</option>
    <option>Kristen</option>
    <option>Hindu</option>
    <option>Budha</option>
</td></tr>
  </select></td>
<tr><td>Jenis Kelamin </td>
<td>: <select size="1"  name ="jenkel">
	<option selected><? echo $row[7]; ?></option>
	<option>L</option>
	<option>P</option>
</td></tr>
  </select></td>   
<tr><td>Alamat</td>
<td>: <textarea name ="alamat"><? echo $row[10]; ?></textarea></td></tr>
<tr><td>Telpon / HP</td>
<td>: <input type = text name ="telp" value="<? echo $row[11]; ?>"></td></tr>
<tr><td>Orang Tua/Wali</td>
<td>: <input type = text name ="wali" size="50" value="<? echo $row[14]; ?>"></td></tr>
<tr><td>Program Study </td>
<td>: <select size="1"  name ="prog_study">
	<option selected><? echo $row[15]; ?></option>
	<option>AKPER</option>
	<option>AKBID</option>
</td></tr>
  </select></td>   
</tr>
<tr><td>Angkatan</td>
<td>: <input type = text name ="angkatan" size="5" value="<? echo date("Y"); ?>" style="background-color:#CCFFFF"></td></tr>
<tr><td>Status </td>
<td>: <select size="1"  name ="status" style="background-color:#CCFFFF">
	<option selected>AKTIF</option>
	<option>DO</option>
	<option>CUTI</option>
</td></tr>
  </select></td>
<tr><td>Foto</td>
<tr><td><? echo "<img src=photo.php?id=$row[id_daf] width=100>"; ?></td></tr>
<tr><td><input type=submit value ="Submit"> <input type=reset value ="Reset"></td></tr>
</table>
</form>
</body>
</html>