<?PHP
include("intel_agendaintel.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 'tlagendaintel'";
$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_agendainteladd.php" method="post" enctype="multipart/form-data" name="form1">
      <table width="100%"  border="0" align="center" cellpadding="8" cellspacing="8">
        <tr>
          <td colspan="3">
            <div align="left"> <strong>AGENDA INTELIJEN TERENCANA <? $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 Posting</td>
          <td width="3%">:</td>
          <td><b><?php echo $tgl ?> </b>(Harap diposting 3 hari sebelum hari H) </td>
        </tr>
        <tr>
          <td>Kegiatan Pam/Gal/Lokasi </td>
          <td width="3%">:</td>
          <td><textarea name="i_kegiatan" cols="100" rows="6" wrap="VIRTUAL" id="i_kegiatan"></textarea>
              <script language="javascript1.2">
  generate_wysiwyg('i_kegiatan');
      </script></td>
        </tr>
        <tr>
          <td>Dilaksanakan Tanggal </td>
          <td>:</td>
          <td><input name="i_tgldo" type="text" id="inputField">
            FORMAT dd/mm/yyyy Contoh: 01/01/2013 </td>
        </tr>
        <tr>
          <td><input type="reset" name="Submit2" value="Reset"></td>
          <td>&nbsp;</td>
          <td><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>
