<?PHP
include("intel_tikorgan.db.inc_.php");
$next_increment     = 0;
$qShowStatus        = "SHOW TABLE STATUS LIKE 'tltikorgan'";
$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_tikorganadd.php" method="post" enctype="multipart/form-data" name="form1">
      <table width="100%"  border="0" align="center" cellpadding="2" cellspacing="2">
        <tr>
          <td colspan="6">             <div align="center"></div>            
          <div align="center"><strong>KARTU TIK ORGANISASI <? $tgl=date("d/m/Y");
$th_skrg=date("Y");
$bl_skrg=date("m");
?>
          </strong></div>            
          <div align="right"><strong>R.IN.18</strong></div></td>
          </tr>
        <tr>
          <td colspan="6">&nbsp;</td>
        </tr>
        <tr>
          <td colspan="3" rowspan="3">&nbsp;</td>
          <td>No Agenda Digital </td>
          <td>:</td>
          <td><input name="i_nogen" type="text" id="i_nogen" size="5">
</td>
        </tr>
        <tr>
          <td width="22%">Tanggal Posting</td>
          <td width="2%">:</td>
          <td width="67%"><b><?php echo $tgl ?></b></td>
        </tr>
        <tr>
          <td width="22%">No Surat </td>
          <td width="2%">:</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 colspan="6"><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>IDENTITAS</strong>
                      <hr size="1"></td>
                </tr>
                <tr>
                  <td colspan="2"> Nama Organisasi</td>
                  <td width="2%">:</td>
                  <td width="77%"><input name="a1" type="text" id="a1" size="40"></td>
                </tr>
                <tr>
                  <td colspan="2"> Kedudukan/ Status</td>
                  <td>:</td>
                  <td><input name="a2" type="text" id="a2" size="30"></td>
                </tr>
                <tr>
                  <td colspan="2"> Berdiri sejak/Akte Pendirian</td>
                  <td>:</td>
                  <td><input name="a3" type="text" id="a3"></td>
                </tr>
                <tr>
                  <td colspan="2"> Domisili hukum/ alamat</td>
                  <td>:</td>
                  <td><input name="a4" type="text" id="a4"></td>
                </tr>
                <tr>
                  <td colspan="2"> Pengurus</td>
                  <td>:</td>
                  <td><input name="a5" type="text" id="a5"></td>
                </tr>
                <tr>
                  <td width="4%">&nbsp; </td>
                  <td width="17%"> N a m a </td>
                  <td>:</td>
                  <td><input name="a6" type="text" id="a6" size="60"></td>
                </tr>
                <tr>
                  <td>&nbsp; </td>
                  <td> Kedudukan </td>
                  <td>:</td>
                  <td><input name="a7" type="text" id="a7"></td>
                </tr>
                <tr>
                  <td>&nbsp; </td>
                  <td> Periode tahun </td>
                  <td>:</td>
                  <td><input name="a8" type="text" id="a8"></td>
                </tr>
                <tr>
                  <td>&nbsp; </td>
                  <td> Alamat </td>
                  <td>:</td>
                  <td><input name="a9" type="text" id="a9"></td>
                </tr>
                <tr>
                  <td colspan="2"> Ruang lingkup kegiatan organisasi  </td>
                  <td>:</td>
                  <td><input name="a10" type="text" id="a10"></td>
                </tr>
                <tr>
                  <td>&nbsp; </td>
                  <td> Kedalam </td>
                  <td>:</td>
                  <td><input name="a11" type="text" id="a11" size="30"></td>
                </tr>
                <tr>
                  <td>&nbsp;</td>
                  <td> Keluar </td>
                  <td>&nbsp;</td>
                  <td><input name="a12" type="text" id="a12" size="30"></td>
                </tr>
                <tr>
                  <td>&nbsp;</td>
                  <td>&nbsp;</td>
                  <td>&nbsp;</td>
                  <td>&nbsp;</td>
                </tr>
                <tr>
                  <td colspan="4"><strong>KEGIATAN ORGANISASI / PENGURUS ORGANISASI YANG BERKAITAN DENGAN PELANGGARAN HUKUM : </strong>
                    <hr size="1"></td>
                  </tr>
                <tr>
                  <td colspan="4"><textarea name="b1" cols="120" wrap="VIRTUAL" id="b1"></textarea></td>
                  </tr>
                <tr>
                  <td colspan="4"><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 colspan="4">&nbsp;</td>
                </tr>
              </table></td>
            </tr>
          </table>
            </td>
        </tr>
      </table>
    </form></td>
  </tr>
</table>
