<link href="css/form.css" type="text/css" rel="stylesheet" />


<?php
  
  $id_kecamatan=$_GET["id_kecamatan"];
  
  $qry=mysqli_query($mysqli,"SELECT * FROM m_kecamatan WHERE id_kecamatan='$id_kecamatan'");
  if(mysqli_num_rows($qry)>0){
    
    $data=mysqli_fetch_array($qry);
  
  }
	
	echo "<h3>EDIT DATA KECAMATAN</h3>";
	echo "<h3 align=\"right\"><a href=\"?page=ls_kecamatan&page_desc=Daftar Kecamatan\" style=\"color:#FF0066\">Lihat Semua Kecamatan</a></h3>";

?>

<form name="form1" method="post" action="_edit_kecamatan.php">
  <table width="600" border="0" cellspacing="0" cellpadding="0">
    <tr>
      <td width="204">&nbsp;</td>
      <td width="396">&nbsp;</td>
    </tr>
    <tr>
      <td valign="top">ID Kecamatan</td>
      <td valign="top"><input type="hidden" name="txtIdKecamatan1" id="txtIdKecamatan1" class="kotak" value="<?php echo $data[id_kecamatan]; ?>"><input type="text" name="txtIdKecamatan2" id="txtIdKecamatan2" class="kotak" value="<?php echo $data[id_kecamatan]; ?>" readonly></td>
    </tr>
    
    <tr>
      <td valign="top">Nama Kecamatan</td>
      <td valign="top"><input type="text" name="txtNamaKecamatan" id="txtNamaKecamatan" class="kotak" value="<?php echo $data[nama_kecamatan]; ?>" required></td>
    </tr>
    <tr>
      <td width="204">&nbsp;</td>
      <td width="396">&nbsp;</td>
    </tr>
    <tr>
      <td>&nbsp;</td>
      <td><input type="submit" name="button" id="button" value="Simpan" class="tombol"></td>
    </tr>
    <tr>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
    </tr>
  </table>
</form>

