<?PHP
include("index.db.php");
$mytable = "setorankat";
//$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 'setorankat'";
$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/datun_setorankatdatunadd.php" method="post" enctype="multipart/form-data" name="form1">
      <table width="100%"  border="0" align="center" cellpadding="2" cellspacing="2">
        <tr>
          <td colspan="5">             <div align="center"></div>            
          <div align="center"><strong>SETORAN DATUN 
            <? $tgl=date("d/m/Y");
$th_skrg=date("Y");
$bl_skrg=date("m");
?>
          </strong></div>            
          <div align="right"></div></td>
          </tr>
        <tr>
          <td colspan="5">&nbsp;</td>
        </tr>
        <tr>
          <td colspan="5"><strong>NOMOR SETORAN </strong>
            <hr size="1"></td>
        </tr>
        <tr>
          <td>No Agenda Digital </td>
          <td width="2%"><div align="center">:</div></td>
          <td width="72%" colspan="3"><input name="agenda" type="text" id="agenda" value="<?
echo "$next_increment";
?>" size="5" readonly>
</td>
        </tr>
        <tr>
          <td>&nbsp;</td>
          <td><div align="center"></div></td>
          <td colspan="3">&nbsp;</td>
        </tr>
        <tr>
          <td colspan="5"><strong>ISIAN KATEGORI PENYETOR </strong>
            <hr size="1"></td>
          </tr>
        <tr>
          <td>Nama Tertagih </td>
          <td><div align="center">:</div></td>
          <td colspan="3"><input name="nama" type="text" id="nama" size="60"></td>
        </tr>
        <tr>
          <td>Alamat Tertagih </td>
          <td><div align="center">:</div></td>
          <td colspan="3"><input name="alamat" type="text" id="alamat" size="80"></td>
        </tr>
        <tr>
          <td>Total Tagihan </td>
          <td><div align="center">:</div></td>
          <td colspan="3"><input name="total" type="text" id="total" value="" size="40"></td>
        </tr>
        <tr>
          <td>Dalam Perkara </td>
          <td><div align="center">:</div></td>
          <td colspan="3"><input name="perkara" type="text" id="perkara" value="" size="40"></td>
        </tr>
        <tr>
          <td rowspan="2">&nbsp;</td>
          <td rowspan="2">&nbsp;</td>
          <td colspan="3">&nbsp;</td>
        </tr>
        <tr>
          <td colspan="3">&nbsp;</td>
        </tr>
        <tr>
          <td>&nbsp;</td>
          <td>&nbsp;</td>
          <td colspan="3"><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 colspan="3">&nbsp;</td>
        </tr>
        <tr>
          <td>&nbsp;</td>
          <td>&nbsp;</td>
          <td colspan="3">&nbsp;</td>
        </tr>
      </table>
      </form></td>
  </tr>
</table>
