<?PHP
include("intel_tikcetakan.db.inc_.php");
$next_increment     = 0;
$qShowStatus        = "SHOW TABLE STATUS LIKE 'tltikcetakan'";
$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_tikcetakanadd.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 BARANG CETAKAN <? $tgl=date("d/m/Y");
$th_skrg=date("Y");
$bl_skrg=date("m");
?>
          </strong></div>            
          <div align="right"><strong>R.IN.19</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 barang cetakan</td>
                  <td width="2%">:</td>
                  <td width="73%"><input name="a1" type="text" id="a1" size="40"></td>
                </tr>
                <tr>
                  <td colspan="2"> Penerbit</td>
                  <td>:</td>
                  <td><input name="a2" type="text" id="a2" size="30"></td>
                </tr>
                <tr>
                  <td colspan="2"> Pengarang/ Penanggungjawab</td>
                  <td>:</td>
                  <td><input name="a3" type="text" id="a3"></td>
                </tr>
                <tr>
                  <td colspan="2"> Waktu peredaran</td>
                  <td>:</td>
                  <td><input name="a4" type="text" id="a4"></td>
                </tr>
                <tr>
                  <td colspan="2"> Daerah peredaran</td>
                  <td>:</td>
                  <td><input name="a5" type="text" id="a5"></td>
                </tr>
                <tr>
                  <td colspan="2">  Pencetak</td>
                  <td>:</td>
                  <td><input name="a6" type="text" id="a6" size="60"></td>
                </tr>
                <tr>
                  <td colspan="2">  Nama Pimpinan Redaksi</td>
                  <td>:</td>
                  <td><input name="a7" type="text" id="a7"></td>
                </tr>
                <tr>
                  <td colspan="2">  Alamat penerbit</td>
                  <td>:</td>
                  <td><input name="a8" type="text" id="a8"></td>
                </tr>
                <tr>
                  <td colspan="2">  Alamat percetakan</td>
                  <td>:</td>
                  <td><input name="a9" type="text" id="a9"></td>
                </tr>
                <tr>
                  <td colspan="2"> Jumlah Oplah</td>
                  <td>:</td>
                  <td><input name="a10" type="text" id="a10"></td>
                </tr>
                <tr>
                  <td width="4%">&nbsp;</td>
                  <td width="21%">&nbsp;</td>
                  <td>&nbsp;</td>
                  <td>&nbsp;</td>
                </tr>
                <tr>
                  <td colspan="4"><strong> <strong>BIOGRAFI INTELIJEN </strong>  : </strong>
                    <hr size="1"></td>
                  </tr>
                <tr>
                  <td colspan="2"> Kasus/ masalah yang terjadi </td>
                  <td>:</td>
                  <td><input name="b1" type="text" id="b1"></td>
                </tr>
                <tr>
                  <td colspan="2"> Latar belakang dan akibatnya </td>
                  <td>:</td>
                  <td><input name="b2" type="text" id="b2"></td>
                </tr>
                <tr>
                  <td colspan="2"> Tindakan yang dilakukan oleh </td>
                  <td>:</td>
                  <td><input name="b3" type="text" id="b3"></td>
                </tr>
                <tr>
                  <td><div align="center">a.</div></td>
                  <td> Kejaksaan </td>
                  <td>:</td>
                  <td><input name="b4" type="text" id="b4"></td>
                </tr>
                <tr>
                  <td><div align="center">b.</div></td>
                  <td> Kepolisian </td>
                  <td>:</td>
                  <td><input name="b5" type="text" id="b5"></td>
                </tr>
                <tr>
                  <td><div align="center">c.</div></td>
                  <td> Putusan Pengadilan </td>
                  <td>:</td>
                  <td><input name="b6" type="text" id="b6"></td>
                </tr>
                <tr>
                  <td colspan="2"> Keterangan lain-lain </td>
                  <td>:</td>
                  <td><input name="b7" type="text" id="b7"></td>
                </tr>
                <tr>
                  <td colspan="4">&nbsp;</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>
