<?PHP include("../index.globalconfig.php"); ?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>PANGGILAN SIDANG TERDAKWA</title>
<LINK href="images/index.css" rel="stylesheet" type="text/css">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
<!--
body {
	background-image: url(images/kn.sleman.f.jpg);
	margin-top: 0px;
}
.style1 {color: #FFFFFF}
-->
</style> <link rel="stylesheet" href="images/date_css.css" />
<link href="images/calendar.css" rel="stylesheet" type="text/css">
<script language="JavaScript" type="text/JavaScript">
<!--

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
//-->
</script>
<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 src="images/date_javascript.js"></script>
<script src="images/date_jquery.js"></script>
 <script>
$(function() {
$( "#datepicker" ).datepicker();
$( "#datepicker2" ).datepicker();
});
</script>
<SCRIPT TYPE="text/javascript">
<!--
// copyright 1999 Idocs, Inc. http://www.idocs.com
// Distribute this script freely but keep this notice in place
function numbersonly(myfield, e, dec)
{
var key;
var keychar;

if (window.event)
key = window.event.keyCode;
else if (e)
key = e.which;
else
return true;
keychar = String.fromCharCode(key);

// control keys
if ((key==null) || (key==0) || (key==8) ||
(key==9) || (key==13) || (key==27) )
return true;

// numbers
else if ((("0123456789").indexOf(keychar) > -1))
return true;

// decimal point jump
else if (dec && (keychar == "."))
{
myfield.form.elements[dec].focus();
return false;
}
else
return false;
}

//-->
</SCRIPT>
</head>

<body>
<table width="96%"  border="0" align="center" cellpadding="0" cellspacing="1">
  <tr>
    <td colspan="3" valign="top"><script type="text/javascript">

/*
Form field Limiter script- By Dynamic Drive
For full source code and more DHTML scripts, visit http://www.dynamicdrive.com
This credit MUST stay intact for use
*/

var ns6=document.getElementById&&!document.all

function restrictinput(maxlength,e,placeholder){
if (window.event&&event.srcElement.value.length>=maxlength)
return false
else if (e.target&&e.target==eval(placeholder)&&e.target.value.length>=maxlength){
var pressedkey=/[a-zA-Z0-9\.\,\/]/ //detect alphanumeric keys
if (pressedkey.test(String.fromCharCode(e.which)))
e.stopPropagation()
}
}

function countlimit(maxlength,e,placeholder){
var theform=eval(placeholder)
var lengthleft=maxlength-theform.value.length
var placeholderobj=document.all? document.all[placeholder] : document.getElementById(placeholder)
if (window.event||e.target&&e.target==eval(placeholder)){
if (lengthleft<0)
theform.value=theform.value.substring(0,maxlength)
placeholderobj.innerHTML=lengthleft
}
}


function displaylimit(thename, theid, thelimit){
var theform=theid!=""? document.getElementById(theid) : thename
var limit_text='<b><span id="'+theform.toString()+'">'+thelimit+'</span></b> Batasan karakter'
if (document.all||ns6)
document.write(limit_text)
if (document.all){
eval(theform).onkeypress=function(){ return restrictinput(thelimit,event,theform)}
eval(theform).onkeyup=function(){ countlimit(thelimit,event,theform)}
}
else if (ns6){
document.body.addEventListener('keypress', function(event) { restrictinput(thelimit,event,theform) }, true); 
document.body.addEventListener('keyup', function(event) { countlimit(thelimit,event,theform) }, true); 
}
}

      </script>
    </td>
  </tr>
  <tr>
    <td width="9%">&nbsp;</td>
    <td width="76%">&nbsp;</td>
    <td width="15%">&nbsp;</td>
  </tr>
  <tr bgcolor="#FF0000">
    <td colspan="3"><table width="100%"  border="0" cellspacing="1" cellpadding="1">
        <tr>
          <td bgcolor="#FFFFFF"><table width="100%"  border="0" cellspacing="4" cellpadding="4">
              <tr>
                <td bgcolor="#FFCC33"><div align="left"><strong>STEP 2 / TAHAP 2 (POSISI SIAP PRINT) JIKA TERDAPAT SALAH ISIAN ATAU MENGULANG KLIK BACK ATAU KLIK HOME </strong></div></td>
              </tr>
            </table>
              <table width="100%"  border="0" cellspacing="6" cellpadding="6">
                <tr>
                  <td><div id="printData">
                      <LINK href="../images/index.css" rel="stylesheet" type="text/css">
                      <form name="form1" method="post" action="log_tahananprintsiap.php">
                        <table width="95%"  border="0" align="center" cellpadding="1" cellspacing="1">
                          <tr>
                            <td colspan="2">&nbsp;</td>
                          </tr>
                          <tr>
                            <td><strong><?PHP echo "$satker"; ?></strong></td>
                            <td><div align="center"><strong>P-38</strong></div></td>
                          </tr>
                          <tr>
                            <td>&nbsp;</td>
                            <td>&nbsp;</td>
                          </tr>
                          <tr>
                            <td colspan="2"><strong>
                              <? $tgl=date("d/m/Y");
$th_skrg=date("Y");
$bl_skrg=date("m");
?>
                            </strong></td>
                          </tr>
                          <tr>
                            <td colspan="2"><table width="100%"  border="0" cellspacing="1" cellpadding="0">
                                <tr>
                                  <td width="13%" height="19"><p>Nomor </p></td>
                                  <td width="1%">:</td>
                                  <td colspan="3"><p><strong>B -
                                          <?PHP echo $no1 = $_POST["no"]; ?>
              / <?PHP echo $kodesatker; ?> /
              <?PHP echo $kodereg1 = $_POST["kodereg"]; ?>
              / <? echo

$bl_skrg=date("m");
?>  / <? echo
$th_skrg=date("Y");
?> </strong> </p></td>
                                  <td width="38%"><p><strong><?PHP echo $kota; ?> , 
                                      <?php 
							 $namahari = array("Minggu","Senin","Selasa","Rabu","Kamis","Jum'at","Sabtu"); 
							 $namabulan = array("","Januari","Pebruari","Maret","April","Mei","Juni","Juli","Agustus","September","Oktober","November","Desember"); 
							 //echo $namahari[date("w")].", ".date("j")." ".$namabulan[date("n")]." ".date("Y"); 
							 echo  "".date("j")." ".$namabulan[date("n")]." ".date("Y"); 
							 ?>
                                  </strong></p></td>
                                </tr>
                                <tr>
                                  <td><p>Sifat </p></td>
                                  <td>:</td>
                                  <td colspan="3"><p>Segera </p></td>
                                  <td>&nbsp;</td>
                                </tr>
                                <tr>
                                  <td><p>Lampiran </p></td>
                                  <td>:</td>
                                  <td colspan="3">-</td>
                                  <td rowspan="5" valign="top"><table width="100%"  border="0" cellspacing="2" cellpadding="2">
                                    <tr>
                                      <td><p>KEPADA YTH <strong>: </strong></p>                                      </td>
                                    </tr>
                                    <tr>
                                      <td><strong><?PHP echo $kepada1 = $_POST["kepada"]; ?></strong></td>
                                    </tr>
                                  </table>                                    </td>
                                </tr>
                                <tr>
                                  <td> Perihal </td>
                                  <td>:</td>
                                  <td colspan="3"> <u>Bantuan memanggil Saksi / Terdakwa/ Terpidana </u></td>
                                </tr>
                                <tr>
                                  <td>&nbsp;</td>
                                  <td>&nbsp;</td>
                                  <td colspan="3">&nbsp;</td>
                                </tr>
                                <tr>
                                  <td>&nbsp;</td>
                                  <td>&nbsp;</td>
                                  <td colspan="3">&nbsp;</td>
                                </tr>
                                <tr>
                                  <td>&nbsp;</td>
                                  <td>&nbsp;</td>
                                  <td colspan="3">&nbsp;</td>
                                </tr>
                                <tr>
                                  <td>&nbsp;</td>
                                  <td>&nbsp;</td>
                                  <td colspan="4"><p>Guna melaksanakan Surat Pelimpahan Perkara / Penetapan / Putusan Pengadilan Negeri <?PHP echo $kota; ?> yang menetapkan / memutuskan / ditentukan / diputus pada : </p></td>
                                </tr>
                                <tr>
                                  <td>&nbsp;</td>
                                  <td>&nbsp;</td>
                                  <td colspan="4"><table width="100%"  border="0" cellspacing="1" cellpadding="1">
                                      <tr>
                                        <td width="11%"> Hari </td>
                                        <td width="1%">:</td>
                                        <td width="19%"><strong><?PHP echo $hari1 = $_POST["hari"]; ?></strong>
                                        </td>
                                        <td width="15%"> Tanggal </td>
                                        <td width="1%">:</td>
                                        <td width="53%">
                                          <strong><?PHP echo $tgl1 = $_POST["tgl"]; ?></strong>                                        </td>
                                      </tr>
                                      <tr>
                                        <td> Jam </td>
                                        <td>:</td>
                                        <td><strong><?PHP echo $jam1 = $_POST["jam"]; ?></strong></td>
                                        <td> Tempat </td>
                                        <td>:</td>
                                        <td> <strong><?PHP echo $tempat1 = $_POST["tempat"]; ?></strong></td>
                                      </tr>
                                      <tr>
                                        <td>&nbsp;</td>
                                        <td>&nbsp;</td>
                                        <td>&nbsp;</td>
                                        <td>&nbsp;</td>
                                        <td>&nbsp;</td>
                                        <td>&nbsp;</td>
                                      </tr>
                                  </table></td>
                                </tr>
                                <tr>
                                  <td>&nbsp;</td>
                                  <td>&nbsp;</td>
                                  <td colspan="4"><p>Sehubungan dengan Perkara atas nama Terdakwa / Terpidana : </p></td>
                                </tr>
                                <tr>
                                  <td>&nbsp;</td>
                                  <td>&nbsp;</td>
                                  <td colspan="4">Dengan ini diminta bantuan Saudara agar kepada orang yang namanya tersebut dibawah ini disampaikan Surat Panggilan sebagaimana terlampir. </td>
                                </tr>
                                <tr>
                                  <td>&nbsp;</td>
                                  <td>&nbsp;</td>
                                  <td colspan="4">Setelah ditanda tangani oleh yang bersangkutan agar tanda terimanya dikembalikan kepada kami. </td>
                                </tr>
                                <tr>
                                  <td>&nbsp;</td>
                                  <td>&nbsp;</td>
                                  <td colspan="4"><table width="100%"  border="0" cellspacing="0" cellpadding="0">
                                      <tr>
                                        <td>&nbsp;</td>
                                      </tr>
                                      <tr>
                                        <td height="25">
                                          <?
mysql_connect("localhost", "root", "benk");
mysql_select_db("cma");
$mytable = "sidang_events";
$day1 = date("d");
$month1 = date("m");
$year1 = date("Y");

if(empty($action))
{
if (empty($order)) $order =  2;
if (empty($page))  $page  =  1;
if (empty($hits))  $hits  = 30;
$start = $hits*($page-1);
$query = "SELECT * FROM $mytable WHERE event_day = '$day1' and  event_month = '$month1' and event_year = '$year1'";
$res = mysql_query("$query"); 
$xnum = mysql_num_rows($res);
$stw2 = (int)($xnum/$hits);
if ($xnum%$hits > 0) {$stw2++;}
$np = $page+1;
$pp = $page-1;
if ($page == 1) { $pp=1; }
if ($np > $stw2) { $np = $stw2;} 
//echo "MOU DATUN <strong>$xnum</strong> | ";
//for ($i=1;$i<=$stw2;$i++) {if($page==$i){
//echo "Halaman <b>$i</b> ";
} 
//else{echo " <font size=\"2\"><a href=\"?id=$id1&page=$i\">$i</A></font> ";}}
//print ('<br><br>');
$query  = "SELECT * FROM ".$mytable." WHERE event_day = '$day1' and  event_month = '$month1' and event_year = '$year1'";
if(!empty($squery)) { $query .= "WHERE event_day = '$day1' and  event_month = '$month1' and event_year = '$year1' LIKE \"%$squery%\" ";}
$query .= "ORDER BY event_id DESC LIMIT $start,$hits";
$res = mysql_query($query);
print ('<table id="myTable" width="100%"  border="0" cellspacing="1" cellpadding="1" bgcolor="#B0B0B0">
        <thead><tr>
<td width="5%"><span class="style1"><strong>NO</strong></span></td>
<td width="35%"><span class="style1"><strong>NAMA TERDAKWA</strong></span></td>
<td width="25%"><span class="style1"><strong>ALAMAT</strong></span></td>
<td width="35%"><span class="style1"><strong>KET / PENUNTUT UMUM</strong></span></td>


</tr></thead><tbody>');
$no=1; // fungsi nomor
 $x=0;
  while($row = mysql_fetch_array($res))
  {
   $x++;
   if($x==2) {$barva = "FFFFFF";$x=0;} else {$barva = "FFFFD9";$x=1;}


print ('<tr bgcolor=#'.$barva.'>');
print ('<td><center>'.$no++.'</center></td>');
print ('<td>'.$row['event_terdakwa'].'</td>');
print ('<td>'.$row['event_alamat'].'</td>');
print ('<td>'.$row['event_jaksa'].' - '.$row['event_agenda'].'</td>');

print ('</tr>');
}
print ('</tbody></table>');
?>
                                          <input name="day" type="hidden" id="day" value="<?PHP echo $day1 = $_GET["day"]; ?>">
                                          <input name="month" type="hidden" id="month" value="<?PHP echo $month1 = $_GET["month"]; ?>">
                                          <input name="year" type="hidden" id="year" value="<?PHP echo $year1 = $_GET["year"]; ?>">
                                          <input name="tipe" type="hidden" id="tipe" value="<?PHP echo $tipe1 = $_GET["tipe"]; ?>"></td>
                                      </tr>
                                      <tr>
                                        <td>&nbsp;</td>
                                      </tr>
                                      <tr>
                                        <td>&nbsp;</td>
                                      </tr>
                                  </table></td>
                                </tr>
                                <tr>
                                  <td>&nbsp;</td>
                                  <td>&nbsp;</td>
                                  <td width="36%">&nbsp;</td>
                                  <td width="3%">&nbsp;</td>
                                  <td width="9%">&nbsp;</td>
                                  <td><div align="center">AN . KEPALA KEJAKSAAN NEGERI <?PHP echo $kota; ?></div></td>
                                </tr>
                                <tr>
                                  <td>&nbsp;</td>
                                  <td>&nbsp;</td>
                                  <td>&nbsp;</td>
                                  <td>&nbsp;</td>
                                  <td>&nbsp;</td>
                                  <td><div align="center"> KEPALA SEKSI TINDAK PIDANA UMUM</div></td>
                                </tr>
                                <tr>
                                  <td>&nbsp;</td>
                                  <td>&nbsp;</td>
                                  <td>&nbsp;</td>
                                  <td>&nbsp;</td>
                                  <td>&nbsp;</td>
                                  <td><p>&nbsp;</p>
                                      <p>&nbsp;</p>
                                      <p>&nbsp;</p></td>
                                </tr>
                                <tr>
                                  <td>&nbsp;</td>
                                  <td>&nbsp;</td>
                                  <td>&nbsp;</td>
                                  <td>&nbsp;</td>
                                  <td>&nbsp;</td>
                                  <td>&nbsp;</td>
                                </tr>
                                <tr>
                                  <td>&nbsp;</td>
                                  <td>&nbsp;</td>
                                  <td>&nbsp;</td>
                                  <td>&nbsp;</td>
                                  <td>&nbsp;</td>
                                  <td><div align="center"> <?PHP echo $kasipidum; ?> </div></td>
                                </tr>
                                <tr>
                                  <td>&nbsp;</td>
                                  <td>&nbsp;</td>
                                  <td>&nbsp;</td>
                                  <td>&nbsp;</td>
                                  <td>&nbsp;</td>
                                  <td><div align="center"></div></td>
                                </tr>
                                <tr>
                                  <td>&nbsp;</td>
                                  <td>&nbsp;</td>
                                  <td>&nbsp;</td>
                                  <td>&nbsp;</td>
                                  <td>&nbsp;</td>
                                  <td>&nbsp;</td>
                                </tr>
                                <tr>
                                  <td colspan="6"><table width="100%"  border="0" cellspacing="0" cellpadding="0">
                                      <tr>
                                        <td width="3%"><div align="center">1.</div></td>
                                        <td colspan="2"><p>YTH. KEPALA KEJAKSAAN NEGERI <?PHP echo $kota; ?> (sebagai laporan) </p></td>
                                      </tr>
                                      <tr>
                                        <td><div align="center">2.</div></td>
                                        <td width="44%">A R S I P </td>
                                        <td width="53%">&nbsp;</td>
                                      </tr>
                                      <tr>
                                        <td>&nbsp;</td>
                                        <td><hr size="1"></td>
                                        <td>&nbsp;</td>
                                      </tr>
                                  </table></td>
                                </tr>
                                <tr>
                                  <td>&nbsp;</td>
                                  <td>&nbsp;</td>
                                  <td>&nbsp;</td>
                                  <td>&nbsp;</td>
                                  <td>&nbsp;</td>
                                  <td>&nbsp;</td>
                                </tr>
                                <tr>
                                  <td>&nbsp;</td>
                                  <td>&nbsp;</td>
                                  <td>&nbsp;</td>
                                  <td>&nbsp;</td>
                                  <td>&nbsp;</td>
                                  <td><div align="center">                                  </div></td>
                                </tr>
                                <tr>
                                  <td>&nbsp;</td>
                                  <td>&nbsp;</td>
                                  <td>&nbsp;</td>
                                  <td>&nbsp;</td>
                                  <td>&nbsp;</td>
                                  <td>&nbsp;</td>
                                </tr>
                            </table></td>
                          </tr>
                        </table>
                      </form>
                  </div></td>
                </tr>
              </table>
              <table width="100%"  border="0" cellspacing="1" cellpadding="1">
                <tr>
                  <td bgcolor="#FF9900"><table width="100%"  border="0" cellspacing="4" cellpadding="4">
                      <tr>
                        <td width="71%">&nbsp;</td>
                        <td width="22%"><div align="center">PRINT P-38 INI </div></td>
                        <td width="7%" bgcolor="#FF6600"><div align="center"><a href="#"  onClick="printF('printData')"><img src="print-icon.png" border="0"></a></div></td>
                      </tr>
                  </table></td>
                </tr>
            </table></td>
        </tr>
    </table></td>
  </tr>
</table>
</body>
</html>
