<?PHP
include("index.cma.db.php");
include("index.globalconfig.php");
$query = "Select * from $mytable"; 
$result = mysql_query($query); 
if($row = mysql_fetch_array($result)){
?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title><?PHP echo $satker; ?></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<LINK href="images/index.css" rel="stylesheet" type="text/css">
<link href="images/keyboardstyle.css" type="text/css" rel="stylesheet" />
<style type="text/css">
#fixmetoo { position: absolute; right: 0px; bottom: 0px; width: 100%;
}
body > div#fixmetoo { position: fixed; }
.style1 {color: #FFFFFF}
</style>
<style type="text/css">
<!--
body {
	background-image: url();
	margin-top: 0px;
	margin-left: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
	background-color: #FF6666;
}
-->
</style>
<style type="text/css" media="all">
@import "style.css";
.style2 {font-weight: bold}
.style3 {color: #FFFFFF}
.style3 {color: #FFFFFF}
.style8 {color: #FFFFFF}
.style8 {color: #FFFFFF}
.style9 {	color: #FFCC00;
	font-weight: bold;
}
</style>
<script type="text/javascript">
var message="Sorry, right-click has been disabled";
///////////////////////////////////
function clickIE() {if (document.all) {(message);return false;}}
function clickNS(e) {if
(document.layers||(document.getElementById&&!document.all)) {
if (e.which==2||e.which==3) {(message);return false;}}}
if (document.layers)
{document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}
else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}
document.oncontextmenu=new Function("return false")
</script></head>

<body>
<table width="1100"  border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td height="200" valign="bottom" background="themes/camelon_a.jpg">&nbsp;</td>
  </tr>
  <tr>
    <td height="25" bgcolor="#FFFFFF"><table width="100%"  border="0" cellspacing="6" cellpadding="6">
        <tr>
          <td><div align="center"><?PHP echo $satker; ?> | <?PHP echo $alamat; ?></div></td>
        </tr>
    </table></td>
  </tr>
  <tr>
    <td height="25" bgcolor="#669900"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="700" height="50">
        <param name="movie" value="themes/top_hijau.swf">
        <param name="quality" value="high">
        <embed src="themes/top_hijau.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="700" height="50"></embed>
    </object></td>
  </tr>
  <tr>
    <td bgcolor="#FFFFFF"><table width="100%"  border="0" cellspacing="8" cellpadding="8">
        <tr>
          <td><table width="100%"  border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td height="30" bgcolor="#FF3333"><div align="center">PATROL PENANGANAN PERKARA TINDAK PIDANA KHUSUS </div></td>
            </tr>
            <tr>
              <td height="30" bgcolor="#FF99CC"><div align="center">LAPORAN / PENGADUAN MASUK DAN TELAH LOLOS TELAHAAN | PENYIDIKAN DILAKUKAN OLEH KEJAKSAAN </div></td>
            </tr>
            <tr>
              <td valign="top"><table width="100%"  border="0" cellspacing="6" cellpadding="6">
                  <tr>
                    <td><?
mysql_connect("localhost", "root", "benk");
mysql_select_db("cma_pidsus");
$mytable = "p_laporan";
if(empty($action))
{
if (empty($order)) $order =  2;
if (empty($page))  $page  =  1;
if (empty($hits))  $hits  = 20;
$start = $hits*($page-1);
$query = "SELECT * FROM $mytable where p_tsk !=''";
$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 "LAPORAN/PENGADUAN <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." ";
if(!empty($squery)) { $query .= "WHERE uid LIKE \"%$squery%\" ";}
$query .= "where p_tsk !='' ORDER BY p_uid DESC LIMIT $start,$hits";
$res = mysql_query($query);
print ('<table id="myTable" width="100%"  border="0" cellspacing="1" cellpadding="1" bgcolor="#663333">
        <thead><tr>
<td width="5%"><span class="style1"><strong>NO</strong></span></td>

<td width="35%"><span class="style1"><strong>NAMA TERSANGKA</strong></span></td>
<td width="30%"><span class="style1"><strong>PASAL</strong></span></td>
<td width="30%"><span class="style1"><strong>KASUS POSISI</strong></span></td>

</tr></thead><tbody>');
 $x=0;
  while($row = mysql_fetch_array($res))
  {
   $x++;
   if($x==2) {$barva = "CB9898";$x=0;} else {$barva = "FFCCFF";$x=1;}


print ('<tr bgcolor=#'.$barva.'>');
print ('<td><center>'.$row['uid'] .'</center></td>');




print ('<td>'.$row['p_tsk'].'</td>');
print ('<td>'.$row['p_pasal'].'</td>');
print ('<td>'.$row['p_kasusposisi'].'</td>');





//print ('<td>');
//if ($row['uid_laporan'] == "") {
//print ('<a href="?g=perkaraview1&d=inc&id='.$row['uid'] .'" class="menupidsus">LIHAT</a>');
//} 
 //elseif ($row['uid_laporan'] !== "") {
//print ('<a href="?g=perkaraview2&d=inc&id='.$row['uid'] .'" class="menupidsus">LIHAT</a>');
// } 
//print ('</td>');










print ('</tr>');
}
print ('</tbody></table>');
echo "<br><br>Ditampilkan $hits /Halaman";
}
?></td>
                  </tr>
              </table></td>
            </tr>
            <tr>
              <td valign="top">&nbsp;</td>
            </tr>
            <tr>
              <td valign="top"><table width="90%"  border="0" align="center" cellpadding="4" cellspacing="4" class="panel">
                  <tr>
                    <td><table width="100%"  border="0" cellspacing="4" cellpadding="4">
                        <tr>
                          <td width="12%" bgcolor="#FFCC00"><div align="center"><strong>INFORMATION</strong></div></td>
                          <td width="88%" bgcolor="#FFFF99"><div align="center">UNTUK INFORMASI LEBIH DETAIL MOHON HUBUNGI PETUGAS BAGIAN MEDIA INFORMASI PUBLIK YANG TELAH KAMI SEDIAKAN </div></td>
                        </tr>
                    </table></td>
                  </tr>
              </table></td>
            </tr>
            <tr>
              <td valign="top">&nbsp;</td>
            </tr>
            <tr>
              <td valign="top" bgcolor="#FF99CC"><table width="100%"  border="0" cellspacing="6" cellpadding="6">
                  <tr>
                    <td>PENANGANAN PERKARA </td>
                  </tr>
              </table></td>
            </tr>
            <tr>
              <td valign="top">
                <table width="100%"  border="0" cellspacing="6" cellpadding="6">
                  <tr>
                    <td><?
mysql_connect("localhost", "root", "benk");
mysql_select_db("cma_pidsus");
$mytable = "p_perkara";
if(empty($action))
{
if (empty($order)) $order =  2;
if (empty($page))  $page  =  1;
if (empty($hits))  $hits  = 20;
$start = $hits*($page-1);
$query = "SELECT * FROM $mytable";
$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 "DAFTAR PERKARA / SPDP <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." ";
if(!empty($squery)) { $query .= "WHERE uid LIKE \"%$squery%\" ";}
$query .= "ORDER BY uid DESC LIMIT $start,$hits";
$res = mysql_query($query);
print ('<table id="myTable" width="100%"  border="0" cellspacing="1" cellpadding="1" bgcolor="#663333">
        <thead><tr>
<td width="5%"><span class="style1"><strong>NO</strong></span></td>
<td width="10%"><span class="style1"><strong>SUMBER PENYIDIKAN</strong></span></td>
<td width="25%"><span class="style1"><strong>NAMA TERSANGKA</strong></span></td>
<td width="35%"><span class="style1"><strong>PASAL</strong></span></td>
<td width="25%"><span class="style1"><strong>POSISI TAHAP</strong></span></td>



</tr></thead><tbody>');
 $x=0;
  while($row = mysql_fetch_array($res))
  {
   $x++;
   if($x==2) {$barva = "CB9898";$x=0;} else {$barva = "FFCCFF";$x=1;}


print ('<tr bgcolor=#'.$barva.'>');
print ('<td><center>'.$row['uid'] .'</center></td>');

print ('<td>'.$row['spdp_dari'].'</td>');


print ('<td>'.$row['spdp_namatsk'].'</td>');
print ('<td>'.$row['spdp_pasal'].'</td>');



print ('<td>');
if ($row['berkas_tahapan'] == "") {
print ('SEDANG DALAM PROSES');
} 
 elseif ($row['berkas_tahapan'] !== "") {
print (''.$row['berkas_tahapan'].'');
 } 
print ('</td>');












print ('</tr>');
}
print ('</tbody></table>');
echo "<br><br>Ditampilkan $hits /Halaman";
}
?></td>
                  </tr>
              </table></td>
            </tr>
            <tr>
              <td valign="top">&nbsp;</td>
            </tr>
            <tr>
              <td valign="top"><table width="90%"  border="0" align="center" cellpadding="4" cellspacing="4" class="panel">
                  <tr>
                    <td><table width="100%"  border="0" cellspacing="4" cellpadding="4">
                        <tr>
                          <td width="12%" bgcolor="#FFCC00"><div align="center"><strong>INFORMATION</strong></div></td>
                          <td width="88%" bgcolor="#FFFF99"><div align="center">UNTUK INFORMASI LEBIH DETAIL MOHON HUBUNGI PETUGAS BAGIAN MEDIA INFORMASI PUBLIK YANG TELAH KAMI SEDIAKAN </div></td>
                        </tr>
                    </table></td>
                  </tr>
              </table></td>
            </tr>
            <tr>
              <td valign="top">&nbsp;</td>
            </tr>
          </table></td>
        </tr>
    </table></td>
  </tr>
</table>
<table width="1100" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td bgcolor="#353500"><table width="699"  border="0" align="center" cellpadding="0" cellspacing="0">
        <tr>
          <td>&nbsp;</td>
        </tr>
        <tr>
          <td>&nbsp;</td>
        </tr>
        <tr>
          <td><table width="300" border="0" align="center" cellpadding="0" cellspacing="0">
              <tr>
                <td><center>
                    <?PHP
mysql_connect("localhost", "root", "benk");
mysql_select_db("cma_tilang");
$query = "Select * from tilang_set"; 
$result = mysql_query($query); 
if($row2 = mysql_fetch_array($result)){ 
if($row2['s_status'] == '0'){ 
print ('<img src="tilang/off.jpg" width="200" height="20">');

}
elseif($row2['s_status'] == '1'){ 
print ('<img src="tilang/on.jpg" width="200" height="20">');
print ('<iframe src="tilang/index_respon.php" height="0" width="0" frameborder="0" scrolling="no"></iframe></center>');
}
}
?>
                </center></td>
              </tr>
          </table></td>
        </tr>
        <tr>
          <td>&nbsp;</td>
        </tr>
        <tr>
          <td><div align="center" class="style8">Camelon Atmosphere </div></td>
        </tr>
        <tr>
          <td><div align="center" class="style8">(c) 2013 - 2018 Created By <a href="http://chendia.ihkeren.com" class="style9">Chendia Studio</a></div></td>
        </tr>
        <tr>
          <td>&nbsp;</td>
        </tr>
        <tr>
          <td><div align="center"></div></td>
        </tr>
        <tr>
          <td></td>
        </tr>
        <tr>
          <td>&nbsp;</td>
        </tr>
        <tr>
          <td>&nbsp;</td>
        </tr>
        <tr>
          <td>&nbsp;</td>
        </tr>
        <tr>
          <td>&nbsp;</td>
        </tr>
        <tr>
          <td>&nbsp;</td>
        </tr>
        <tr>
          <td>&nbsp;</td>
        </tr>
    </table></td>
  </tr>
</table>
<div align="center" class="style2" id="fixmetoo"> 
  <table width="100%" border="0" cellspacing="0" cellpadding="0">
    <tr>
      <td><table width="100%"  border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td width="13%" bgcolor="#FF3366"><table width="100%"  border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td><div align="center"></div>
                    <div align="center" class="style1">QUICK NEWS </div></td>
              </tr>
            </table></td>
            <td bgcolor="#FF6666"><table width="100%"  border="0" cellspacing="2" cellpadding="2">
              <tr>
                <td height="40"><marquee>
                                ISI SITUS BERSIFAT INFORMATIF BUKAN MERUPAKAN LEGAL OPINION. APABILA TERDAPAT DATA ELEKTRONIK BASED YANG BERBEDA DENGAN DATA RESMI PAPER, MAKA YANG MENJADI ACUAN ADALAH DATA RESMI PAPER BASED.
                
                </marquee></td>
              </tr>
            </table></td>
          </tr>
      </table></td>
    </tr>
  </table>
</div>
</body>
</html>
<? } ?>
