<LINK href="../images/index.css" rel="stylesheet" type="text/css">
<script type="text/javascript">
    function refreshAndClose() {
        window.opener.location.reload(true);
        window.close();
    }
</script>
<style type="text/css">
<!--
body {
	margin-top: 0px;
}
.style1 {font-weight: bold}
-->
</style><body onbeforeunload="refreshAndClose();">
<?PHP
include("../index.globalconfig.php");
$uid1 = $_GET["uid"];
$jenis1 = $_GET["jenis"];
include("../index.cma.db.php");
mysql_connect("$server", "$username", "$password");
mysql_select_db("$database");
$query = "Select * from tab_surat where s_id = '1'"; 
$result = mysql_query($query); 
if($row2 = mysql_fetch_array($result)){ 
$mytable = $row2['s_nama'];
$edisi = $row2['s_tahun'];
$mytabler = $mytable.''.$jenis1;
//$session1 = $HTTP_GET_VARS["session"];
$query = "Select * from $mytabler where tu_id = '$uid1'"; 
$result = mysql_query($query); 
$query2 = "UPDATE $mytabler SET tu_print = '2' WHERE tu_id = '$uid1'";
$result2 = mysql_query($query2);
if($row = mysql_fetch_array($result)){
//if ($row[k_session] == $session1){
?>
<script type="text/javascript">
function printF(printData)
{
var a = window.open ('', '',"status=1,scrollbars=1, width=900,height=600");
a.document.write(document.getElementById(printData).innerHTML.replace(/<a\/?[^>]+>/gi, ''));
a.document.close();
a.focus();
a.print();
a.close();
}
</script>

 <script>
$(function() {
$( "#datepicker" ).datepicker();
});
</script>
 <style type="text/css">
<!--
.style1 {
	font-size: 14px;
	font-weight: bold;
}
.style2 {font-size: 18px}
.style3 {font-size: 12px}
.style8 {font-size: 18px; font-weight: bold; }
-->
 </style>
<table width="100%"  border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td bgcolor="#F4F4F4"><table width="100%"  border="0" cellspacing="4" cellpadding="4">
        <tr>
          <td width="78%"><div align="left">Gunakan Ukuran Kertas Legal untuk melakukan print. Centang Fungsi Print Background Saat Mencetak. Barcode yg muncul adalah Jenis Surat + Nomor Agenda </div></td>
          <td width="15%"><div align="center">PRINT DISPOSISI INI </div></td>
          <td width="7%" height="50"><div align="center"><a href="#"  onClick="printF('printData')"><img src="print-icon.png" width="32" height="32" border="0"></a></div></td>
        </tr>
    </table></td>
  </tr>
</table>
<div id="printData"><LINK href="../images/index.css" rel="stylesheet" type="text/css">
  <table width="100%"  border="0" cellspacing="4" cellpadding="4">
  <tr>
    <td width="78%" height="23"><span class="style8"><?PHP echo $satker; ?></span></td>
    <td width="22%"><div align="right"><b>
        No Agenda : <?PHP if ($jenis1 == "0") {echo "LAINNYA";} 
elseif ($jenis1 == "smb") {echo "B-";} 
elseif ($jenis1 == "smr") {echo "R-";} 
elseif ($jenis1 == "3") {echo "SPDP-";} 
elseif ($jenis1 == "smu") {echo "UND-";} 
?>
      <?PHP echo htmlspecialchars($row['tu_noagenda']); ?></b></div></td>
  </tr>
  <tr>
    <td height="9" colspan="2"><div align="center"><span class="style1 style2">KARTU PENERUS DISPOSISI </span></div></td>
  </tr>
</table>
<table width="100%"  border="0" cellspacing="1" cellpadding="1">
  <tr>
    <td bgcolor="#000000"><table width="100%"  border="0" cellspacing="1" cellpadding="0">
      <tr>
        <td width="72%" bgcolor="#FFFFFF"><table width="100%"  border="0" cellspacing="1" cellpadding="1">
          <tr>
            <td width="21%"><span class="style3">INDEX (NO Agenda) </span></td>
            <td width="1%">:</td>
            <td width="78%"><b><?PHP echo htmlspecialchars($row['tu_noagenda']); ?></b></td>
          </tr>
          <tr>
            <td><span class="style3">Tanggal Terima </span></td>
            <td>:</td>
            <td><b><?PHP echo htmlspecialchars($row['tu_tglterima']); ?></b></td>
          </tr>
          <tr>
            <td><span class="style3">No Agenda</span></td>
            <td>:</td>
            <td><b>
              <?PHP if ($jenis1 == "0") {echo "LAINNYA";} 
elseif ($jenis1 == "smb") {echo "B-";} 
elseif ($jenis1 == "smr") {echo "R-";} 
elseif ($jenis1 == "3") {echo "SPDP-";} 
elseif ($jenis1 == "smu") {echo "UND-";} 
?>
              <?PHP echo htmlspecialchars($row['tu_noagenda']); ?></b></td>
          </tr>
        </table></td>
        <td width="28%" bgcolor="#FFFFFF"><table width="100%"  border="0" cellspacing="2" cellpadding="2">
          <tr>
            <td colspan="2"><div align="center" class="style3">
              <div align="left">Tanggal Penyelesaian:</div>
            </div></td>
            </tr>
          <tr>
            <td width="48%">&nbsp;</td>
            <td width="52%">&nbsp;</td>
          </tr>
          <tr>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
          </tr>
        </table></td>
      </tr>
      <tr>
        <td colspan="2" bgcolor="#FFFFFF"><table width="100%"  border="0" cellspacing="1" cellpadding="1">
          <tr>
            <td width="15%"><span class="style3">No Surat </span></td>
            <td width="1%">:</td>
            <td width="56%"><b><?PHP echo htmlspecialchars($row['tu_nosrt']); ?></b></td>
            <td width="28%" rowspan="4"><table  border="0" align="center" cellpadding="2" cellspacing="2">
              <tr>
                <td><img src="index.barcode.php?text=<?PHP echo $jenis1; ?>-<?PHP echo htmlspecialchars($row['tu_noagenda']); ?>" alt="barcode" /></td>
              </tr>
            </table></td>
          </tr>
          <tr>
            <td><span class="style3">TGl. SURAT </span></td>
            <td>:</td>
            <td><b><?PHP echo htmlspecialchars($row['tu_tglsrt']); ?></b></td>
            </tr>
          <tr>
            <td><span class="style3">Asal Dari </span></td>
            <td>:</td>
            <td><b><?PHP echo htmlspecialchars($row['tu_asalsrt']); ?></b></td>
            </tr>
          <tr>
            <td>PERIHAL</td>
            <td>:</td>
            <td><b><?PHP echo htmlspecialchars($row['tu_perihal']); ?></b></td>
            </tr>
        </table></td>
        </tr>
      <tr>
        <td valign="top" bgcolor="#FFFFFF"><table width="100%"  border="0" cellspacing="2" cellpadding="2">
          <tr>
            <td colspan="2" class="style2">Instruksi / Informasi *) </td>
            </tr>
          <tr>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
            </tr>
          <tr>
            <td width="12%">&nbsp;</td>
            <td width="60%">&nbsp;</td>
          </tr>
          <tr>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
          </tr>
          <tr>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
          </tr>
          <tr>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
          </tr>
          <tr>
            <td colspan="2">&nbsp;</td>
          </tr>
        </table></td>
        <td rowspan="3" valign="top" bgcolor="#FFFFFF"><?PHP include("index.arahdisposisi.print.php"); ?></td>
      </tr>
      <tr>
        <td valign="top" bgcolor="#FFFFFF"><table width="100%"  border="0" cellspacing="2" cellpadding="2">
          <tr>
            <td class="style1">KASUBBAG / KASI </td>
          </tr>
          <tr>
            <td class="style1">&nbsp;</td>
          </tr>
        </table></td>
      </tr>
      <tr>
        <td valign="top" bgcolor="#FFFFFF"><table width="100%"  border="0" cellspacing="2" cellpadding="2">
          <tr>
            <td class="style1">KASUBSI / KAUR </td>
          </tr>
          <tr>
            <td class="style1">&nbsp;</td>
          </tr>
        </table></td>
      </tr>
      <tr>
        <td colspan="2" bgcolor="#FFFFFF"><table width="100%"  border="0" cellspacing="4" cellpadding="4">
          <tr>
            <td class="style1">Tanggal Diposisi : </td>
          </tr>
        </table></td>
      </tr>
      <tr>
        <td colspan="2" bgcolor="#FFFFFF"><table width="100%"  border="0" cellspacing="2" cellpadding="2">
          <tr>
            <td colspan="3" class="style1">Sesudah digunakan harap segera dikembalikan </td>
          </tr>
          <tr>
            <td width="10%" class="style1">Kepada</td>
            <td width="2%" class="style1">:</td>
            <td width="88%">&nbsp;</td>
          </tr>
          <tr>
            <td class="style1">Tanggal</td>
            <td>:</td>
            <td>&nbsp;</td>
          </tr>
        </table></td>
      </tr>
    </table></td>
  </tr>
</table>
<table width="100%"  border="0" cellspacing="2" cellpadding="2">
  <tr>
    <td background="images/gunting_b.jpg"><div align="right"><img src="images/gunting.jpg" width="189" height="36"></div></td>
  </tr>
  <tr>
    <td height="30"><div align="center"><span class="style1 style2">K A R T U - K E N D A L I </span></div></td>
  </tr>
</table>
<table width="100%"  border="0" cellspacing="1" cellpadding="1">
  <tr>
    <td bgcolor="#000000"><table width="100%"  border="0" cellspacing="1" cellpadding="0">
        <tr>
          <td width="37%" bgcolor="#FFFFFF"><table width="100%"  border="0" cellspacing="2" cellpadding="2">
            <tr>
              <td width="20%"><span class="style3"><strong>INDEX</strong></span></td>
              <td width="4%">:</td>
              <td width="76%"><b><?PHP echo htmlspecialchars($row['tu_noagenda']); ?></b></td>
            </tr>
            <tr>
              <td><b>Tgl Terima :</b></td>
              <td>:</td>
              <td><b><?PHP echo htmlspecialchars($row['tu_tglterima']); ?></b></td>
            </tr>
          </table></td>
          <td width="38%" colspan="2" bgcolor="#FFFFFF"><table width="100%"  border="0" cellspacing="2" cellpadding="2">
            <tr>
              <td width="20%"><span class="style3">Kode</span></td>
              <td width="4%">:</td>
              <td width="76%">&nbsp;</td>
            </tr>
            <tr>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
            </tr>
          </table></td>
          <td width="25%" bgcolor="#FFFFFF"><table width="100%"  border="0" cellspacing="2" cellpadding="2">
              <tr>
                <td colspan="2"><div align="center" class="style3"><strong>No. Urut M/K </strong></div></td>
              </tr>
              <tr>
                <td width="70%"><div align="center"><b>
                    <?PHP if ($jenis1 == "0") {echo "LAINNYA";} 
elseif ($jenis1 == "smb") {echo "B-";} 
elseif ($jenis1 == "smr") {echo "R-";} 
elseif ($jenis1 == "3") {echo "SPDP-";} 
elseif ($jenis1 == "smu") {echo "UND-";} 
 ?>
                    <?PHP echo htmlspecialchars($row['tu_noagenda']); ?></b></div></td>
                </tr>
          </table></td>
        </tr>
        <tr>
          <td colspan="4" bgcolor="#FFFFFF"><table width="100%"  border="0" cellspacing="2" cellpadding="2">
            <tr>
              <td width="15%"><span class="style3">PERIHAL</span></td>
              <td width="2%">:</td>
              <td width="83%"><b><?PHP echo htmlspecialchars($row['tu_perihal']); ?></b></td>
            </tr>
          </table></td>
        </tr>
        <tr>
          <td colspan="4" bgcolor="#FFFFFF"><table width="100%"  border="0" cellspacing="2" cellpadding="2">
            <tr>
              <td width="15%"><span class="style3">ISI RINGKASAN </span></td>
              <td width="2%">:</td>
              <td width="58%">&nbsp;</td>
              <td width="25%" rowspan="3"><table  border="0" align="center" cellpadding="2" cellspacing="2">
                <tr>
                  <td><img src="index.barcode.php?text=<?PHP echo $jenis1; ?>-<?PHP echo htmlspecialchars($row['tu_noagenda']); ?>" alt="barcode" /></td>
                </tr>
              </table></td>
            </tr>
            <tr>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
              </tr>
            <tr>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
              <td>&nbsp;</td>
              </tr>
          </table></td>
        </tr>
        <tr>
          <td colspan="2" bgcolor="#FFFFFF"><table width="100%"  border="0" cellspacing="2" cellpadding="2">
            <tr class="style1">
              <td width="27%">DARI : </td>
              <td width="73%">&nbsp;</td>
            </tr>
            <tr class="style1">
              <td colspan="2"><b><?PHP echo htmlspecialchars($row['tu_asalsrt']); ?></b></td>
              </tr>
          </table></td>
          <td colspan="2" bgcolor="#FFFFFF"><table width="100%"  border="0" cellspacing="2" cellpadding="2">
            <tr>
              <td width="27%" class="style1">KEPADA:</td>
              <td width="73%">&nbsp;</td>
            </tr>
            <tr>
              <td colspan="2"><strong class="style1"><?PHP echo $kepada; ?></strong></td>
            </tr>
          </table></td>
          </tr>
        <tr>
          <td bgcolor="#FFFFFF"><table width="100%"  border="0" cellspacing="2" cellpadding="2">
            <tr>
              <td width="100%"><span class="style1">Tanggal</span>: </td>
            </tr>
            <tr>
              <td><b><?PHP echo htmlspecialchars($row['tu_tglsrt']); ?></b></td>
            </tr>
          </table></td>
          <td colspan="2" bgcolor="#FFFFFF"><table width="100%"  border="0" cellspacing="2" cellpadding="2">
            <tr>
              <td width="100%" class="style1">No Surat: </td>
            </tr>
            <tr>
              <td class="style1"><b><?PHP echo htmlspecialchars($row['tu_nosrt']); ?></b></td>
            </tr>
          </table></td>
          <td bgcolor="#FFFFFF"><table width="100%"  border="0" cellspacing="2" cellpadding="2">
            <tr>
              <td width="100%" class="style1">Lampiran : </td>
            </tr>
            <tr>
              <td><b><?PHP echo htmlspecialchars($row['tu_lamp']); ?></b></td>
            </tr>
          </table></td>
        </tr>
        <tr>
          <td colspan="3" bgcolor="#FFFFFF"><table width="100%"  border="0" cellspacing="2" cellpadding="2">
            <tr>
              <td width="100%" class="style1">Pengolah/Sekr.Pengolah/Penerima:</td>
            </tr>
            <tr>
              <td>&nbsp;</td>
            </tr>
          </table></td>
          <td bgcolor="#FFFFFF"><table width="100%"  border="0" cellspacing="2" cellpadding="2">
            <tr>
              <td width="100%" class="style1">HUBUNGAN:</td>
            </tr>
            <tr>
              <td class="style1">ARSIP:</td>
            </tr>
          </table></td>
        </tr>
        <tr>
          <td colspan="4" bgcolor="#FFFFFF"><table width="100%"  border="0" cellspacing="2" cellpadding="2">
            <tr>
              <td width="100%" class="style1">PETUNJUK SILANG (CROSS REFERENCE) </td>
            </tr>
            <tr>
              <td>&nbsp;</td>
            </tr>
          </table></td>
        </tr>
    </table></td>
  </tr>
</table>
</div>
<table width="100%"  border="0" cellspacing="2" cellpadding="2">
  <tr>
    <td><div align="right"></div></td>
  </tr>
</table>
<table width="100%"  border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td bgcolor="#F4F4F4"><table width="100%"  border="0" cellspacing="4" cellpadding="4">
      <tr>
        <td width="78%">Gunakan Ukuran Kertas Legal untuk melakukan print. Centang Fungsi Print Background Saat Mencetak. Barcode yg muncul adalah Jenis Surat + Nomor Agenda </td>
        <td width="15%"><div align="center">PRINT DISPOSISI INI </div></td>
        <td width="7%" height="50"><div align="center"><a href="#"  onClick="printF('printData')"><img src="print-icon.png" border="0"></a></div></td>
      </tr>
    </table></td>
  </tr>
</table>
<? }} ?>