<LINK href="../images/index.css" rel="stylesheet" type="text/css">

  
<?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>
$(function() {
$( "#datepicker" ).datepicker();
});
</script>
 <style type="text/css">


textarea {
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;

	width: 100%;
}
 </style>

  <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 == "1")  {echo "BU-";} 
elseif ($jenis1 == "2") {echo "BD-";} 
elseif ($jenis1 == "3") {echo "SPDP";} 
elseif ($jenis1 == "4") {echo "NODIS-";} 
elseif ($jenis1 == "5") {echo "KEP-";} 
elseif ($jenis1 == "6") {echo "SPRINT-";} 
elseif ($jenis1 == "7") {echo "TAR-";} 
elseif ($jenis1 == "8") {echo "R-";} 
elseif ($jenis1 == "9") {echo "UND-";} 
?>
      <?PHP echo htmlspecialchars($row['tu_noagenda']); ?></b></div></td>
  </tr>
  <tr>
    <td height="2" colspan="2"><div align="center"><span class="style1 style2">KARTU PENERUS DISPOSISI </span></div></td>
  </tr>
  <tr>
    <td height="3" colspan="2">&nbsp;</td>
  </tr>
</table>
  <form name="form1" method="post" action="index.disposisi.add.php">
    <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="31%"><span class="style3">INDEX (NO Agenda) </span></td>
                    <td width="1%">:</td>
                    <td width="68%"><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 == "1")  {echo "BU-";} 
elseif ($jenis1 == "2") {echo "BD-";} 
elseif ($jenis1 == "3") {echo "SPDP";} 
elseif ($jenis1 == "4") {echo "NODIS-";} 
elseif ($jenis1 == "5") {echo "KEP-";} 
elseif ($jenis1 == "6") {echo "SPRINT-";} 
elseif ($jenis1 == "7") {echo "TAR-";} 
elseif ($jenis1 == "8") {echo "R-";} 
elseif ($jenis1 == "9") {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 colspan="2"><center><?php echo $tgl=date("d/m/Y"); ?></center></td>
                  </tr>
              </table></td>
            </tr>
            <tr>
              <td colspan="2" bgcolor="#FFFFFF"><table width="100%"  border="0" cellspacing="1" cellpadding="1">
                  <tr>
                    <td width="22%"><span class="style3">No Surat </span></td>
                    <td width="1%">:</td>
                    <td width="49%"><b><?PHP echo htmlspecialchars($row['tu_nosrt']); ?></b></td>
                    <td width="28%" rowspan="4">&nbsp;</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 bgcolor="#FFFFFF"><table width="100%"  border="0" cellspacing="2" cellpadding="2">
                  <tr>
                    <td colspan="2" class="style2">Instruksi / Informasi *) </td>
                  </tr>
                  <tr>
                    <td colspan="2"><textarea name="tu_disposisi" rows="18" wrap="VIRTUAL" id="tu_disposisi"></textarea>
            </td>
                  </tr>
              </table></td>
              <td valign="top" bgcolor="#FFFFFF"><?PHP include("index.arahdisposisi.php"); ?></td>
            </tr>
            <tr>
              <td colspan="2" bgcolor="#FFFFFF"><table width="100%"  border="0" cellspacing="4" cellpadding="4">
                  <tr>
                    <td class="style1">Tanggal Diposisi : <?php echo $tgl=date("d/m/Y"); ?></td>
                  </tr>
              </table></td>
            </tr>
            <tr>
              <td colspan="2" bgcolor="#FFFFFF"><table width="100%"  border="0" cellspacing="2" cellpadding="2">
                  <tr>
                    <td width="88%" colspan="3" class="style1"><div align="center">
                    </div></td>
                  </tr>
                  <tr>
                    <td colspan="3" class="style1"><div align="center">
                      <input type="submit" name="Submit" value="Simpan Disposisi">
                    </div></td>
                  </tr>
                  <tr>
                    <td colspan="3" class="style1">&nbsp;</td>
                  </tr>
              </table></td>
            </tr>
        </table></td>
      </tr>
    </table>
    <table width="100%"  border="0" cellspacing="4" cellpadding="4">
      <tr>
        <td>&nbsp;</td>
      </tr>
      <tr>
        <td><?php
echo $uid1 = $_GET['uid'];

?>
          <input name="uid" type="hidden" id="uid" value="<?PHP echo $uid1 = $_GET['uid']; ?>">
          <input name="table" type="hidden" id="table" value="<?PHP echo $table1 = $_GET['table']; ?>">
In Table : <?PHP echo $table1 = $_GET['table']; ?> (No Surat : <?PHP echo $nosrt1 = $_GET['nosurat']; ?>) </td>
      </tr>
      <tr>
        <td>&nbsp;</td>
      </tr>
    </table>
  </form>  
<? }} ?>
