<?PHP
include("../index.db.php");
$mytable = "setoran";
$uid1 = $_GET["uid"];
//$session1 = $HTTP_GET_VARS["session"];
$query = "Select * from $mytable where d_agenda = '$uid1'"; 
$result = mysql_query($query); 
//$query2 = "UPDATE $mytable SET ntfy_spdpprint = '2' WHERE uid = '$uid1'";
//$result2 = mysql_query($query2);
if($row = mysql_fetch_array($result)){
//if ($row[k_session] == $session1){
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>PRINT BUKTI SETORAN</title>
<LINK href="../images/index.css" rel="stylesheet" type="text/css">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">


<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}
-->
 </style>
</head>

<body>
 <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="44%"><div align="center">
      <table width="100%"  border="0" cellspacing="1" cellpadding="0">
        <tr>
          <td><div align="center"><strong>KANTOR PENGACARA NEGARA </strong></div></td>
        </tr>
      </table>
    </div></td>
    <td width="56%"></td>
  </tr>
  <tr>
    <td height="50" colspan="2"><div align="center"><span class="style1 style2">TANDA TERIMA SETORAN </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="27%" bgcolor="#FFFFFF"><table width="100%"  border="0" cellspacing="8" cellpadding="8">
          <tr>
            <td width="31%">Nomor</td>
            <td width="69%"><b><?PHP echo htmlspecialchars($row['d_agenda']); ?></b></td>
          </tr>
        </table></td>
        <td width="73%" bgcolor="#FFFFFF"><table width="100%"  border="0" cellspacing="8" cellpadding="8">
          <tr>
            <td width="73%"><div align="right"><span class="style3">Tanggal Setoran </span></div></td>
            <td width="27%"><b><?PHP echo htmlspecialchars($row['d_tglsetor']); ?></b></td>
          </tr>
        </table></td>
      </tr>
      <tr>
        <td valign="top" bgcolor="#FFFFFF"><table width="100%"  border="0" cellspacing="8" cellpadding="8">
          <tr>
            <td><b>Nama Penyetor </b></td>
          </tr>
          <tr>
            <td>Jenis Setoran </td>
          </tr>
        </table></td>
        <td width="73%" valign="top" bgcolor="#FFFFFF"><table width="100%"  border="0" cellspacing="8" cellpadding="8">
          <tr>
            <td><b><?PHP echo htmlspecialchars($row['d_namapenyetor']); ?></b></td>
          </tr>
          <tr>
            <td><?PHP echo htmlspecialchars($row['d_jenis']); ?> (Tagihan An. <?PHP echo htmlspecialchars($row['d_perkara']); ?>)</td>
          </tr>
        </table></td>
      </tr>
      <tr>
        <td bgcolor="#FFFFFF"><table width="100%"  border="0" cellspacing="8" cellpadding="8">
          <tr>
            <td>JUMLAH SETORAN </td>
          </tr>
        </table></td>
        <td width="73%" bgcolor="#FFFFFF"><table width="100%"  border="0" cellspacing="8" cellpadding="8">
          <tr>
            <td>Rp. <?PHP echo htmlspecialchars($row['d_senilai']); ?> </td>
          </tr>
        </table></td>
      </tr>
      <tr>
        <td colspan="2" bgcolor="#FFFFFF"><table width="100%"  border="0" cellspacing="4" cellpadding="4">
          <tr>
            <td colspan="3">&nbsp;</td>
          </tr>
          <tr>
            <td width="37%"><div align="center">Tandatangan Penyetor </div></td>
            <td width="23%">&nbsp;</td>
            <td width="40%"><div align="center">Penerima / Petugas </div></td>
          </tr>
          <tr>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
          </tr>
          <tr>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
          </tr>
          <tr>
            <td><div align="center">( <?PHP echo htmlspecialchars($row['d_namapenyetor']); ?> ) </div></td>
            <td>&nbsp;</td>
            <td><div align="center"> ( <?PHP echo htmlspecialchars($row['d_petugas']); ?> )</div></td>
          </tr>
          <tr>
            <td colspan="3">&nbsp;</td>
            </tr>
          <tr>
            <td colspan="3"><table width="100%"  border="0" cellspacing="1" cellpadding="0">
              <tr>
                <td>Print Rangkap 2.</td>
              </tr>
              <tr>
                <td>Lembar 1. Putih untuk Penyetor lembar 2. Kuning untuk ARSIP </td>
              </tr>
            </table></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="4" cellpadding="4">
  <tr>
    <td width="71%" valign="top">&nbsp;</td>
    <td width="22%"><div align="center">PRINT TANDA TERIMA INI </div></td>
    <td width="7%"><div align="center"><a href="#"  onClick="printF('printData')"><img src="print-icon.png" border="0"></a></div></td>
  </tr>
</table>
</body>
</html>
<? } ?>