<html>
<head>
	<title>e-pupns - Dinas Pendidikan Aceh Selatan</title>
</head>
<body>
	<?php
	include "koneksi2.php";
	$id_user=$_GET['id_user'];
	$row=mysql_fetch_array(mysql_query("select * from tbl_user where id_user='$id_user'"));

	$nama_depan=$row['nama_depan'];
	$nama_belakang=$row['nama_belakang'];
	$email=$row['email'];
	$kelamin=$row['kelamin'];
	$password=$row['password'];
	$photo=$row['photo'];
	$ukuran=$row['ukuran'];
	$type=$row['type'];
	
	$verifikator=$row['verifikator'];
	$unit_org=$row['unit_org'];
	
	
	?>
	
	<form action="update.php" enctype="multipart/form-data" method="post" name="postform">
	
	<input type="hidden" name="id_user" value="<?php echo $id_user;?>" />
    <input type="hidden" name="password_lama" value="<?php echo $password;?>" />
    <input type="hidden" name="photo_lama" value="<?php echo $photo?>" />
	<input type="hidden" name="ukuran" value="<?php echo $ukuran;?>" />
    <input type="hidden" name="type" value="<?php echo $type?>" />
	<input type="hidden" name="verifikator" value="<?php echo $verifikator?>" />
	
    <img src="./photo/<?php echo $photo;?>" width="100" height="100">
	<table width="100%" border="0">
    <tr>
      <td width="115">Nama</td>
      <td width="1">&nbsp;</td>
      <td width="851"><input type="text" name="nama_depan" value="<?php echo $nama_depan; ?>" size="30"/></td>
    </tr>
      <tr>
      <td width="115">NIP Baru</td>
      <td width="1">&nbsp;</td>
      <td width="851"><input type="text" name="nama_belakang" value="<?php echo $nama_belakang; ?>" size="30"/></td>
    </tr>
	<tr>
      <td>Jabatan</td>
      <td>&nbsp;</td>
      <td>
      <select name="kelamin">
        <option value="Guru" <?php if($kelamin=='Guru'){ echo "selected='selected'";} ?>>Guru
        <option value="Guru Diperbantukan" <?php if($kelamin=='Guru Diperbantukan'){ echo "selected='selected'";} ?>>Guru Diperbantukan
		<option value="Pengawas" <?php if($kelamin=='Pengawas'){ echo "selected='selected'";} ?>>Pengawas
		<option value="Tenaga ADM" <?php if($kelamin=='Tenaga ADM'){ echo "selected='selected'";} ?>>Tenaga ADM
      </select>
      </td>
    </tr>
	
	<tr>
      <td>Tempat Tugas</td>
      <td>&nbsp;</td>
      <td><input type="text" name="unit_org" value="<?php echo $unit_org; ?>" size="50"/></td>
    </tr>
    <tr>
		
    <tr>
      <td>Kode Register</td>
      <td>&nbsp;</td>
      <td><input type="text" name="email" value="<?php echo $email; ?>" size="30"/></td>
    </tr>
    <tr>
      <td></td>
      <td></td>
      <td><i><font color="#CCCCCC">*kosongkan nomor HP jika tidak diubah</font></i></td>
    </tr>
    <tr>
      <td>Nomor HP</td>
      <td>&nbsp;</td>
      <td><input type="text" name="password" size="30"/></td>
    </tr>   
    <tr>
      <td></td>
      <td></td>
      <td><i><font color="#CCCCCC">*kosongkan photo jika tidak diubah </font></i></td>
    </tr>
    <tr>
      <td>Photo</td>
      <td>&nbsp;</td>
      <td><input type="file" name="photo" size="30"/></td>
  	</tr>
    <tr>
      <td colspan="3"><p></p></td>
    </tr>
    <tr>
      <td><input type="submit" name="submit"  value="Update" onclick="return confirm('Apakah Anda yakin akan mengubah data?')"/></td>
      <td>&nbsp;</td>
	  <td><a href="media.php?module=input2">[View Biodata]</a></td>
	</tr>
    </table>
	  
	</form>

</body>
</html>