<?
$id = $_GET['id'];
?>
<link rel="stylesheet" href="../plg/w3.css">
<center>
  <form action="upload.php" method="post" id="formdoc" enctype="multipart/form-data">
    <input type="hidden" name="idkpi" value="<?=$id?>"/>
    <table class="w3-table w3-border w3-light-gray w3-card-4" style="width:900px;">
      <tr>
        <th colspan="5" class="w3-black w3-small w3-center">UPLOAD DOCUMENT <?=$id?></th>
      </tr>
      <tr>
        <td class="w3-border w3-center w3-small">
          <b>KETERANGAN DOCUMENT</b><br/>
          <textarea style="padding-top:5px;padding-bottom:5px;width:800px;padding-left:8px;" rows="3"
          name="ket" id="ketdoc" class="w3-small"></textarea>
        </td>
      </tr>
      <tr>
        <td class="w3-border w3-center w3-small">
          <b>SCAN ATAU FOTO DOCUMENT DAN UPLOAD FILE DOCUMENT</b><br/>
          <input type="file" style="width:300px;padding-top:5px;padding-bottom:5px;"
          value="" name="fileToUpload" id="filex" class="w3-small"/>
        </td>
      </tr>

      <tr>
        <td colspan="5" class="w3-black w3-small w3-center">
          <div id="" class="w3-btn w3-green w3-border w3-small w3-round-large" onclick="uploadkan()">UPLOAD</div>
          <div id="" class="w3-btn w3-red w3-border w3-small w3-round-large" onclick="location.href='listdockpi.php'">BATALKAN</div>
        </td>
      </tr>
    </table>
  </form>
</center>

<script>
function uploadkan(){
  document.getElementById('formdoc').submit();
}
</script>
