<LINK href="images/index.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
body {
	background-image: url(../themes/camelon_b.jpg);
}
-->
</style><table width="100%"  border="0" cellspacing="6" cellpadding="6">
  <tr>
    <td bgcolor="#FFFFFF">EDIT</td>
  </tr>
  <tr>
    <td valign="top"><?PHP
include("../index.cma.db.php");
$uid1 = $_GET["uid"];
$query = "Select * from tab_personil where daftar_pegid = '$uid1'"; 
$result = mysql_query($query); 
if($row = mysql_fetch_array($result)){
?><form name="form1" method="post" action="index.pembinaan.edit.add.php">
      <table width="100%"  border="0" cellspacing="1" cellpadding="1">
        <tr>
          <td width="21%">Nama </td>
          <td width="1%">:</td>
          <td width="78%"><input name="p_nama" type="text" id="p_nama" value="<?PHP echo htmlspecialchars($row['daftar_nama']); ?>" size="40">
            <input name="uid" type="hidden" id="uid" value="<?PHP echo htmlspecialchars($row['daftar_pegid']); ?>"></td>
        </tr>
        <tr>
          <td>Pangkat</td>
          <td>:</td>
          <td><select name="p_pangkat" id="p_pangkat">
            <option value="<?PHP echo htmlspecialchars($row['daftar_pangkat']); ?>" selected><?PHP 
			if ($row['daftar_pangkat'] == "1") {echo "YUANA DHARMA TU / II.A";} 
		elseif ($row['daftar_pangkat'] == "2") {echo "MUDA DHARMA TU/ II.B";} 
		elseif ($row['daftar_pangkat'] == "3") {echo "MADYA DHARMA TU / II.C";} 
		elseif ($row['daftar_pangkat'] == "4") {echo "SENA DHARMA TU / II.D";} 
		elseif ($row['daftar_pangkat'] == "5") {echo "YUANA WIRA TU / III.A";} 
		elseif ($row['daftar_pangkat'] == "6") {echo "MUDA WIRA TU / III.B";} 
		elseif ($row['daftar_pangkat'] == "7") {echo "MADYA WIRA TU / III.C";} 
		elseif ($row['daftar_pangkat'] == "8") {echo "SENA WIRA TU / III.D";} 
		elseif ($row['daftar_pangkat'] == "9") {echo "ADI WIRA TU / IV.A";} 
		elseif ($row['daftar_pangkat'] == "10") {echo "NINDYA WIRA TU / IV.B";} 
		elseif ($row['daftar_pangkat'] == "11") {echo "AJUN JAKSA MADYA / III.A";} 
  elseif ($row['daftar_pangkat'] == "12") {echo "AJUN JAKSA / III.B";} 
   elseif ($row['daftar_pangkat'] == "13") {echo "JAKSA PRATAMA / III.C";} 
    elseif ($row['daftar_pangkat'] == "14") {echo "JAKSA MUDA / III.D";} 
	else if ($row['daftar_pangkat'] == "15") {echo "JAKSA MADYA / IV.A";} 
	else if ($row['daftar_pangkat'] == "16") {echo "JAKSA UTAMA PRATAMA / IV.B";} 
	elseif ($row['daftar_pangkat'] == "17") {echo "JAKSA UTAMA MUDA / IV.C";} 
	elseif ($row['daftar_pangkat'] == "18") {echo "JAKSA UTAMA MADYA / IV.D";} 
	elseif ($row['daftar_pangkat'] == "19") {echo "JAKSA UTAMA / IV.E";} 
else if ($row['daftar_pangkat'] == "0") {echo "Pangkat tidak dapat ditampilan";}  ?></option>
            <option value="1">YUANA DHARMA TU / II.A</option>
            <option value="2">MUDA DHARMA TU/ II.B</option>
            <option value="3">MADYA DHARMA TU / II.C</option>
            <option value="4">SENA DHARMA TU / II.D</option>
            <option value="5">YUANA WIRA TU / III.A</option>
            <option value="6">MUDA WIRA TU / III.B</option>
            <option value="7">MADYA WIRA TU / III.C</option>
            <option value="8">SENA WIRA TU / III.D</option>
			<option value="9">ADI WIRA TU / IV.A</option>
			<option value="10">NINDYA WIRA TU / IV.B</option>
            <option value="11">AJUN JAKSA MADYA / III.A</option>
            <option value="12">AJUN JAKSA / III.B</option>
            <option value="13">JAKSA PRATAMA / III.C</option>
            <option value="14">JAKSA MUDA / III.D</option>
            <option value="15">JAKSA MADYA / IV.A</option>
            <option value="16">JAKSA UTAMA PRATAMA / IV.B</option>
			<option value="17">JAKSA UTAMA MUDA / IV.C</option>
			<option value="18">JAKSA UTAMA MADYA / IV.D</option>
			<option value="19">JAKSA UTAMA / IV.E</option>
                              </select></td>
        </tr>
        <tr>
          <td>Nip</td>
          <td>:</td>
          <td><input name="p_nip" type="text" id="p_nip" value="<?PHP echo htmlspecialchars($row['daftar_nip']); ?>"> 
          *Masukkan NIP tanpa Spasi </td>
        </tr>
        <tr>
          <td>Nrp</td>
          <td>:</td>
          <td><input name="p_nrp" type="text" id="p_nrp" value="<?PHP echo htmlspecialchars($row['daftar_nrp']); ?>"></td>
        </tr>
        <tr>
          <td>Satuan</td>
          <td>:</td>
          <td><select name="p_jenis" id="p_jenis">
              <option value="1">Jaksa</option>
              <option value="2">TU Pembinaan</option>
              <option value="3">TU Intel</option>
              <option value="4">TU Pidum</option>
              <option value="5">TU Pidsus</option>
              <option value="6">TU Datun</option>
			     <option value="33">KELOMPOK HONORER</option>
				  <option value="34">KELOMPOK IAD</option>
              <option value="<?PHP echo htmlspecialchars($row['daftar_jenis']); ?>" selected>
			  <?PHP if ($row['daftar_jenis'] == "1") {echo "Jaksa";} 
		elseif ($row['daftar_jenis'] == "2") {echo "TU Pembinaan";} 
		elseif ($row['daftar_jenis'] == "3") {echo "TU Intel";} 
		elseif ($row['daftar_jenis'] == "4") {echo "TU Pidum";} 
		elseif ($row['daftar_jenis'] == "5") {echo "TU Pidsus";} 
		elseif ($row['daftar_jenis'] == "6") {echo "TU Datun";} 
elseif ($row['daftar_jenis'] == "33") {echo "KELOMPOK HONORER";} 
		elseif ($row['daftar_jenis'] == "34") {echo "KELOMPOK IAD";} 
	  ?></option>
          </select></td>
        </tr>
        <tr>
          <td>No Telp </td>
          <td>:</td>
          <td><input name="p_nohp" type="text" id="p_nohp" value="<?PHP echo htmlspecialchars($row['daftar_nohp']); ?>">
        Masukkan tanpa +62 contoh : 081822299999 </td>
        </tr>
        <tr>
          <td>&nbsp;</td>
          <td>&nbsp;</td>
          <td>&nbsp;</td>
        </tr>
        <tr>
          <td colspan="3">Informasi</td>
          </tr>
        <tr>
          <td colspan="3">Kenaikan Pangkat yang akan datang </td>
          </tr>
        <tr>
          <td>&nbsp;</td>
          <td>&nbsp;</td>
          <td><input name="npyad" type="text" id="npyad" value="<?PHP echo htmlspecialchars($row['daftar_npyad']); ?>">
            Format dd/mm/yyyy contoh : 28/12/1980 </td>
        </tr>
        <tr>
          <td colspan="3">Kenaikan Gaji Berkala yang akan datang </td>
          </tr>
        <tr>
          <td>&nbsp;</td>
          <td>&nbsp;</td>
          <td><input name="kgbyad" type="text" id="kgbyad" value="<?PHP echo htmlspecialchars($row['daftar_kgbyad']); ?>">
Format dd/mm/yyyy contoh : 28/12/1980 </td>
        </tr>
        <tr>
          <td>&nbsp;</td>
          <td>&nbsp;</td>
          <td>&nbsp;</td>
        </tr>
        <tr>
          <td>&nbsp;</td>
          <td>&nbsp;</td>
          <td><input type="submit" name="Submit22" value="Simpan"></td>
        </tr>
        <tr>
          <td>&nbsp;</td>
          <td>&nbsp;</td>
          <td>&nbsp;</td>
        </tr>
      </table>
    </form><? } ?></td>
  </tr>
</table>
