<?PHP
include("intel_tp4.db.inc.php");
//$session1 = $HTTP_GET_VARS["session"];
//$query = "Select * from $mytable where uid = '$uid1'"; 
//$result = mysql_query($query); 
//if($row = mysql_fetch_array($result)){
//if ($row[k_session] == $session1){
//$tablename1      = "slm_perpustakaan";
$next_increment     = 0;
$qShowStatus        = "SHOW TABLE STATUS LIKE 'tp4'";
$qShowStatusResult  = mysql_query($qShowStatus) or die ( "Query failed: " . mysql_error() . "<br/>" . $qShowStatus );
$row = mysql_fetch_assoc($qShowStatusResult);
$next_increment = $row['Auto_increment'];
?>
<link rel="stylesheet" type="text/css" media="all" href="jsDatePick_ltr.min.css" />
<script language="JavaScript" type="text/javascript" src="wysiwyg.js">
<script type="text/javascript" src="jsDatePick.min.1.3.js"></script>
<script type="text/javascript">
	window.onload = function(){
		new JsDatePick({
			useMode:2,
			target:"inputField",
			dateFormat:"%d/%m/%Y"
		});
	};
</script>

<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><form action="inc/intel_tp4postadd.php" method="post" enctype="multipart/form-data" name="form1">
      <table width="100%"  border="0" align="center" cellpadding="2" cellspacing="2">
        <tr>
          <td width="91%"><table width="100%"  border="0" cellspacing="2" cellpadding="2">
            <tr>
              <td>&nbsp;</td>
            </tr>
            <tr>
              <td><div align="right">No Agenda Digital 
                    <input name="a0" type="text" id="a0" size="5" >
                  Tanggal Posting <b><?php echo $tgl ?></b></div></td>
            </tr>
            <tr>
              <td><input name="do" type="hidden" id="do" value="post"></td>
            </tr>
          </table>
          <table width="100%"  border="0" cellspacing="2" cellpadding="2">
            <tr>
              <td width="9%">&nbsp;</td>
              <td width="91%"><table width="100%"  border="0" cellspacing="2" cellpadding="2">
                <tr>
                  <td colspan="4"><strong>ISIAN DATA </strong>
                    <hr size="1"></td>
                </tr>
                <tr>
                  <td colspan="2"> Kegiatan</td>
                  <td width="2%">:</td>
                  <td width="73%"><textarea name="a1" cols="60" rows="3" wrap="VIRTUAL" id="a1"></textarea></td>
                </tr>
                <tr>
                  <td colspan="2"> K/L/D/I </td>
                  <td>:</td>
                  <td><input name="a2" type="text" id="a2" size="30"></td>
                </tr>
                <tr>
                  <td colspan="2"> Jenis Pekerjaan/Proyek</td>
                  <td>:</td>
                  <td><input name="a3" type="text" id="a3" size="60"></td>
                </tr>
                <tr>
                  <td colspan="2"> Pagu Anggaran </td>
                  <td>:</td>
                  <td>Rp.
                    <input name="a4" type="text" id="a4"> 
                    contoh : Masukan dalam juta contoh 5 </td>
                </tr>
                <tr>
                  <td colspan="2"> Sumber Dana </td>
                  <td>:</td>
                  <td><select name="a5" id="a5">
                    <option value="1">APBN</option>
                    <option value="2">APBD</option>
                    <option value="0" selected>--PILIH--</option>
                  </select></td>
                </tr>
                <tr>
                  <td colspan="2"> Tahapan Proyek </td>
                  <td>:</td>
                  <td><input name="a6" type="text" id="a6" size="60"></td>
                </tr>
                <tr>
                  <td colspan="2"> Tahapan Pengawalan </td>
                  <td>:</td>
                  <td><input name="a7" type="text" id="a7" size="60"></td>
                </tr>
                <tr>
                  <td colspan="2"> No &amp; Tanggal Sprint </td>
                  <td>:</td>
                  <td><input name="a8" type="text" id="a8" size="60"></td>
                </tr>
                <tr>
                  <td colspan="2"> Penyerapan Anggaran </td>
                  <td>:</td>
                  <td><input name="a9" type="text" id="a9">
                    dalam (%) </td>
                </tr>
                <tr>
                  <td colspan="2"> Keterangan </td>
                  <td>:</td>
                  <td><textarea name="a10" cols="60" rows="6" wrap="VIRTUAL" id="a10"></textarea></td>
                </tr>
                <tr>
                  <td width="4%">&nbsp;</td>
                  <td width="21%">&nbsp;</td>
                  <td>&nbsp;</td>
                  <td>&nbsp;</td>
                </tr>
                <tr>
                  <td colspan="4">&nbsp;</td>
                </tr>
                <tr>
                  <td colspan="4"><div align="center">
                      <input type="reset" name="Submit2" value="Reset">
                      <input type="submit" name="Submit" value="Simpan">
  * Cukup Sekali Tekan tombol simpan dan tunggu proses </div></td>
                </tr>
                <tr>
                  <td colspan="4">&nbsp;</td>
                </tr>
              </table></td>
            </tr>
          </table>
            </td>
        </tr>
      </table>
    </form></td>
  </tr>
</table>
