<?PHP
include("index.db.php");
$table = "skk";
$id1 = $_GET["id"];
$query = "Select * from $table where d_id = '$id1'"; 
$result = mysql_query($query); 
if($row = mysql_fetch_array($result)){
?>


<script>

/*
Submit Once form validation- 
© Dynamic Drive (www.dynamicdrive.com)
For full source code, usage terms, and 100's more DHTML scripts, visit http://dynamicdrive.com
*/

function submitonce(theform){
//if IE 4+ or NS 6+
if (document.all||document.getElementById){
//screen thru every element in the form, and hunt down "submit" and "reset"
for (i=0;i<theform.length;i++){
var tempobj=theform.elements[i]
if(tempobj.type.toLowerCase()=="submit"||tempobj.type.toLowerCase()=="reset")
//disable em
tempobj.disabled=true
}
}
}
</script>


</head>

<body>
<table width="100%"  border="0" cellspacing="2" cellpadding="2">
  <tr>
    <td bgcolor="#FFFFFF"><form action="inc/datun_skkadd.php" method="post" enctype="multipart/form-data" name="form1">
      <table width="100%"  border="0" align="center" cellpadding="2" cellspacing="2">
        <tr>
          <td colspan="3">             <div align="center"></div>            
          <div align="center"><strong>SURAT KUASA KHUSUS (SKK) <? $tgl=date("d/m/Y");
$th_skrg=date("Y");
$bl_skrg=date("m");
?>
          </strong></div>            
          <div align="right"></div></td>
          </tr>
        <tr>
          <td colspan="3">&nbsp;</td>
        </tr>
        <tr>
          <td colspan="3"><strong>AGENDA SKK </strong>
            <hr size="1"></td>
        </tr>
        <tr>
          <td width="24%">No Agenda Digital </td>
          <td width="2%"><div align="center">:</div></td>
          <td width="74%"><input name="agenda" type="text" id="agenda" value="<?PHP echo htmlspecialchars($row['d_agenda']); ?>" size="5" readonly>
            <input name="do" type="hidden" id="do" value="edit">
            <input name="id" type="hidden" id="id" value="<?PHP echo htmlspecialchars($row['d_id']); ?>"></td>
        </tr>
        <tr>
          <td>&nbsp;</td>
          <td><div align="center"></div></td>
          <td>&nbsp;</td>
        </tr>
        <tr>
          <td colspan="3"><strong>ISIAN SKK </strong>
            <hr size="1"></td>
          </tr>
        <tr>
          <td>Tanggal Penandatangan SKK </td>
          <td><div align="center">:</div></td>
          <td><input name="tglskk" type="text" id="datepicker" value="<?PHP echo htmlspecialchars($row['d_tgl']); ?>" size="10">
            Format Tanggal xx/xx/xxxx contoh : 02/02/2018 </td>
        </tr>
        <tr>
          <td>No SKK </td>
          <td><div align="center">:</div></td>
          <td><b>
            <input name=noskk type=text id="noskk" value="<?PHP echo htmlspecialchars($row['d_noskk']); ?>" size=60 />
          </b></td>
        </tr>
        <tr>
          <td>SKK  Dengan Instansi / Pemberi Kuasa </td>
          <td><div align="center">:</div></td>
          <td><input name="skkdengan" type="text" id="a22" value="<?PHP echo htmlspecialchars($row['d_pemberikuasa']); ?>" size="30"></td>
        </tr>
        <tr>
          <td>SKK  Tentang </td>
          <td><div align="center">:</div></td>
          <td><textarea name="skktentang" cols="80" rows="5" id="a32"><?PHP echo htmlspecialchars($row['d_kuasatentang']); ?></textarea></td>
        </tr>
        <tr>
          <td>&nbsp;</td>
          <td>&nbsp;</td>
          <td>&nbsp;</td>
        </tr>
        <tr>
          <td>&nbsp;</td>
          <td>&nbsp;</td>
          <td><input type="reset" name="Submit" value="Reset">
            <input type="submit" name="Submit" value="Simpan">
* Cukup Sekali Tekan tombol simpan dan tunggu proses </td>
        </tr>
        <tr>
          <td>&nbsp;</td>
          <td>&nbsp;</td>
          <td>&nbsp;</td>
        </tr>
      </table>
      </form></td>
  </tr>
</table>
<? } ?>