<?PHP
include("intel_.db.inc.php");
$next_increment     = 0;
$qShowStatus        = "SHOW TABLE STATUS LIKE 'tlapinsus'";
$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 bgcolor="#FFFFFF"><form action="inc/intel_lapinsusadd.php" method="post" enctype="multipart/form-data" name="form1">
      <table width="100%"  border="0" align="center" cellpadding="4" cellspacing="4">
        <tr>
          <td colspan="3">
            <div align="left"> <strong>LAPINSUS
                  <? $tgl=date("d/m/Y");
$th_skrg=date("Y");
$bl_skrg=date("m");
?>
          </strong></div></td>
        </tr>
        <tr>
          <td width="24%">No Agenda Digital </td>
          <td width="3%">:</td>
          <td width="73%"><input name="i_nogen" type="text" id="i_nogen"  size="5" >
        *Automatic Numbering tidak perlu di edit </td>
        </tr>
        <tr>
          <td width="24%">Tanggal Surat</td>
          <td width="3%">:</td>
          <td><b>
            <input name="i_tgl" type="text" id="i_tgl" value="<?php echo $tgl ?>" size="20"> 
            </b></td>
        </tr>
        <tr>
          <td>No Surat</td>
          <td width="3%">:</td>
          <td>
        <input name="i_nosurat" type="text" id="i_nosurat" value="<?PHP echo "$next_increment"; ?>/<?PHP echo $kodesuratintel; ?>/XXX/<?php echo $bl_skrg ?>/<?php echo $th_skrg ?>" size="60"></td>
        </tr>
        <tr>
          <td>PERIHAL</td>
          <td width="3%">:</td>
          <td><textarea name="i_hal" cols="100" rows="6" wrap="VIRTUAL" id="i_hal"></textarea>
              <script language="javascript1.2">
  generate_wysiwyg('i_hal');
      </script></td>
        </tr>
        <tr>
          <td>INFORMASI YANG DIPEROLEH</td>
          <td width="3%">:</td>
          <td><textarea name="i_info" cols="100" rows="6" wrap="VIRTUAL" id="i_info"></textarea>
              <script language="javascript1.2">
  generate_wysiwyg('i_info');
      </script></td>
        </tr>
        <tr>
          <td>TREND PERKEMBANGAN/ PERKIRAAN</td>
          <td width="3%">:</td>
          <td><textarea name="i_trend" cols="100" rows="6" wrap="VIRTUAL" id="i_trend"></textarea>
              <script language="javascript1.2">
  generate_wysiwyg('i_trend');
      </script></td>
        </tr>
        <tr>
          <td>SARAN</td>
          <td width="3%">:</td>
          <td><textarea name="i_saran" cols="100" rows="6" wrap="VIRTUAL" id="i_saran"></textarea>
              <script language="javascript1.2">
  generate_wysiwyg('i_saran');
      </script></td>
        </tr>
        <tr>
          <td>&nbsp;</td>
          <td>&nbsp;</td>
          <td><input type="reset" name="Submit2" 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>
