<?PHP
include("index.globalconfig.php");
include("index.cma.db.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 rel="stylesheet" href="images/jqbtk.css">

<style type="text/css">
#fixmetoo { position: absolute; right: 0px; bottom: 0px; width: 100%;
}
body > div#fixmetoo { position: fixed; }
</style>
<style type="text/css">
<!--
body {
	background-image: url();
	margin-top: 0px;
	margin-left: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
}
.style2 {color: #FFFFFF}
.style3 {color: #FFFFFF;
	font-weight: bold;
}
.style3 {color: #FFFFFF;
	font-weight: bold;
}
-->
</style>
<style type="text/css" media="all">
@import "style.css";
.style14 {	color: #FFFFFF;
	font-weight: bold;
	font-size: large;
}
</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>
  <script src="images/jquery.min.js"></script>
		
		<script src="images/jqbtk.js"></script>
		<script>
			$(function(){
				$('#default').keyboard();
				$('#number').keyboard();
				
			});
		</script>
<table width="100%"  border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td><div align="center">
      <table width="100%"  border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td width="58%" bgcolor="#669900">
            <div align="left">
              <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>
            </div></td>
          <td width="37%" bgcolor="#669900"><div align="right"><span class="style14"><b><?PHP echo $satker; ?></b></span></div></td>
          <td width="5%" bgcolor="#669900">&nbsp;</td>
        </tr>
      </table>
    </div></td>
  </tr>
  <tr>
    <td><div align="left">
      <table width="100%"  border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td width="90%" colspan="2" bgcolor="#99CC00"><table width="100%"  border="0" cellspacing="8" cellpadding="8">
            <tr>
              <td width="37%"><form name="form1" method="post" action="index.mip.perkara.cari.php">
                  <table width="100%"  border="0" cellspacing="8" cellpadding="8">
                    <tr>
                      <td width="52%"><div align="center" class="style3">PENCARIAN DATA PERKARA </div></td>
                      <td width="48%"><input name="query" type="text" class="keyboard form-control" id="default" size="30"></td>
                    </tr>
                  </table>
                </form>
                  <script src="images/jquery.min.js"></script>
                  <script src="images/bootstrap.min.js"></script>
                  <script src="images/jqbtk.js"></script>
                  <script>
			$(function(){
				$('#default').keyboard();
				$('#number').keyboard();
				
			});
		    </script></td>
              <td width="63%"><form name="form1" method="post" action="index.mip.denda.cari.php">
                  <table width="100%"  border="0" cellspacing="4" cellpadding="4">
                    <tr>
                      <td width="44%"><div align="center" class="style2"><strong>PILIH BULAN LALU MASUKAN NOMOR TILANG </strong></div></td>
                      <td width="22%"><select name="table" id="select3">
                          <option value="tilang_januari">Januari</option>
                          <option value="tilang_februari">Februari</option>
                          <option value="tilang_maret">Maret</option>
                          <option value="tilang_april">April</option>
                          <option value="tilang_mei">Mei</option>
                          <option value="tilang_juni">Juni</option>
                          <option value="tilang_juli">Juli</option>
                          <option value="tilang_agustus">Agustus</option>
                          <option value="tilang_september">September</option>
                          <option value="tilang_oktober">Oktober</option>
                          <option value="tilang_nopember">Nopember</option>
                          <option value="tilang_desember">Desember</option>
                          <option value="tilang_januari" selected>Pilih Bulan Tilang</option>
                        </select>
                      </td>
                      <td><input name="queryd" type="text" class="keyboard form-control" id="number" size="30"></td>
                    </tr>
                  </table>
              </form></td>
            </tr>
          </table></td>
        </tr>
      </table>
      <table width="100%"  border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td width="12%"><a href="index.mip.php" class="menu">BERANDA</a></td>
          <td width="15%"><a href="index.mip.pejabat.php" class="menu">PEJABAT KEJARI </a></td>
          <td width="13%"><a href="index.mip.tp4d.php" class="menu">INFO TP4D </a></td>
          <td width="20%"><a href="index.mip.pidum.php" class="menu">INFO PERKARA PIDANA UMUM </a></td>
          <td width="19%"><a href="index.mip.tilang.php" class="menu">INFO DENDA TILANG </a></td>
          <td width="21%"><a href="besuk.php" class="menu">BESUK SWALAYAN </a></td>
        </tr>
      </table>
      <table width="100%"  border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td width="18%" height="420" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="1">
              <tr>
                <td>
                  <div align="center">
                    <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="235" height="60">
                      <param name="movie" value="themes/koruptor.swf">
                      <param name="quality" value="high">
                      <embed src="themes/koruptor.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="235" height="60"></embed>
                    </object>
                </div></td>
              </tr>
              <tr>
                <td><table width="235"  border="0" cellspacing="4" cellpadding="4">
                    <tr>
                      <td>Gunakan media ini untuk mengetahui informasi-informasi yang anda butuhkan secara mandiri disini tersaji:</td>
                    </tr>
                    <tr>
                      <td><strong>Informasi Perkara</strong> : Anda dapat mengetahui sampai tahap apa perkara tersebut. bagaimana progress atau perkembangannya. Hingga informasi putusan / vonis pengadilan dapat anda lihat disini. </td>
                    </tr>
                    <tr>
                      <td><strong>Informasi Umum</strong> : Anda dapat mendapatkan informasi lainnya yang akan tersaji melalui Anjungan Media Informasi ini. </td>
                    </tr>
                    <tr>
                      <td><div align="center">TERSEDIA LAYANAN INFORMASI BARANG BUKTI, CEK DAN SEGERA MBIL BARANG BUKTI ANDA </div></td>
                    </tr>
                </table></td>
              </tr>
          </table></td>
          <td width="82%" valign="top"><table width="100%"  border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td bgcolor="#666600"><img src="themes/camelon_a.jpg" width="1123" height="223"></td>
              </tr>
            </table>
              <table width="100%"  border="0" cellspacing="0" cellpadding="0">
                <tr>
                  <td bgcolor="#339900"><table width="100%"  border="0" cellspacing="8" cellpadding="8">
                      <tr>
                        <td width="76%"><span class="style2"><strong>INFORMASI MEDIA PUBLIK TP4D </strong></span></td>
                        <td width="24%"><a href="index.mip.tp4d.php" class="menu">SELENGKAPNYA</a></td>
                      </tr>
                  </table></td>
                </tr>
                <tr>
                  <td><table width="100%"  border="0" cellspacing="8" cellpadding="8">
                      <tr>
                        <td><?PHP
					$page = $_GET["page"];
include("intel/inc/intel_tp4.db.inc.php");
if(empty($action))
{
if (empty($order)) $order =  2;
if (empty($page))  $page  =  1;
if (empty($hits))  $hits  = 100;
$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 "JUMLAH DATA : <strong>$xnum</strong> | ";
for ($i=1;$i<=$stw2;$i++) {if($page==$i){
echo "Halaman <b>$i</b> ";} 
else{echo " <font size=\"2\"><a href=\"?page=$i\">$i</A></font> ";}}
print ('<br><br>');
$query  = "SELECT * FROM ".$mytable." ";
if(!empty($squery)) { $query .= "WHERE tid LIKE \"%$squery%\" ";}
$query .= "ORDER BY tid 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="3%"><span class="style1"><strong>NO</strong></span></td>
<td width="10%"><span class="style1"><strong>KEGIATAN</strong></span></td>
<td width="5%"><span class="style1"><strong>K/L/D/I</strong></span></td>
<td width="10%"><span class="style1"><strong>JENIS PEKERJAAN/PROYEK</strong></span></td>
<td width="10%"><span class="style1"><strong>PAGU ANGGARAN</strong></span></td>
<td width="8%"><span class="style1"><strong>SUMBER DANA APBN/APBD</strong></span></td>
<td width="14%"><span class="style1"><strong>TAHAPAN PROYEK/PEKERJAAN</strong></span></td>
<td width="10%"><span class="style1"><strong>TAHAPAN PENGAWASAL & PENGAMANAN</strong></span></td>
<td width="10%"><span class="style1"><strong>NO & TANGGAL SURAT PERINTAH</strong></span></td>
<td width="10%"><span class="style1"><strong>PENYERAPAN ANGGARAN <br>(%)</strong></span></td>
<td width="10%"><span class="style1"><strong>KET</strong></span></td>
</tr></thead><tbody>');
 $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>'.$row['tagenda'].'</center></td>');
print ('<td>'.$row['tkegiatan'].'</td>');
print ('<td>'.$row['tkldi'].'</td>');
print ('<td>'.$row['tjenisproyek'].'</td>');
print ('<td><center>'.$row['tpagu'].'</center></td>');
print ('<td>');
if ($row['tdana'] == "1") {
print ('<center><img src="./intel/images/intel_apbn.jpg" width="80" height="30"></center>');
} 
elseif ($row['tdana'] == "2") {

print ('<center><img src="./images/intel_apbd.jpg" width="80" height="30"></center>');
}
print ('</td>');
print ('<td>'.$row['ttahapan'].'</td>');
print ('<td>'.$row['tkawal'].'</td>');
print ('<td>'.$row['tsprint'].'</td>');
print ('<td><center>'.$row['tserap'].'%<center></td>');
print ('<td>'.$row['tket'].'</td>');


print ('</tr>');
}
print ('</tbody></table>');
}
?></td>
                      </tr>
                  </table></td>
                </tr>
            </table>
              <table width="100%"  border="0" cellspacing="0" cellpadding="0">
                <tr>
                  <td bgcolor="#FFDDDD"><table width="100%"  border="0" cellspacing="0" cellpadding="0">
                      <tr>
                        <td bgcolor="#FF0000"><table width="100%"  border="0" cellspacing="8" cellpadding="8">
                            <tr>
                              <td width="76%"><span class="style2"><strong>INFORMASI 10 PERKARA PIDANA UMUM TERAKHIR </strong></span></td>
                              <td width="24%"><a href="index.mip.pidum.php" class="menupidsus">SELENGKAPNYA</a></td>
                            </tr>
                        </table></td>
                      </tr>
                      <tr>
                        <td><table width="98%"  border="0" cellspacing="6" cellpadding="4">
                            <tr>
                              <td><?PHP
						$page = $_GET["page"];
include("index.cma.db.php");
mysql_connect("$server", "$username", "$password");
mysql_select_db("$database");
$query = "Select * from tab_dataperkara where t_id = '1'"; 
$result = mysql_query($query); 
if($row2 = mysql_fetch_array($result)){ 
$mytable = $row2['t_table'];
$edisi = $row2['t_tahun'];

if(empty($action))
{
if (empty($order)) $order =  2;
if (empty($page))  $page  =  1;
if (empty($hits))  $hits  = 10;
$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 "TOTAL PERKARA <strong>$xnum</strong> | ";
for ($i=1;$i<=$stw2;$i++) {if($page==$i){
echo "<b> HAL $i |</b> ";} 
else{echo "<a href=\"?page=$i\"> $i |</a>";}}
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="#B05800">
        <thead><tr>
<td width="30%"><span class="style1"><strong>NAMA TERSANGKA/TERDAKWA</strong></span></td>
<td width="18%"><span class="style1"><strong>JAKSA</strong></span></td>
<td width="20%"><span class="style1"><strong>PASAL</strong></span></td>

<td width="8%"><span class="style1"><strong>P18</strong></span></td>
<td width="8%"><span class="style1"><strong>P21</strong></span></td>
<td width="8%"><span class="style1"><strong>SIDANG</strong></span></td>
<td width="8%"><span class="style1"><strong>STATUS</strong></span></td>
</tr></thead><tbody>');
 $x=0;
  while($row = mysql_fetch_array($res))
  {
   $x++;
   if($x==2) {$barva = "FFFFB7";$x=0;} else {$barva = "FFD8B0";$x=1;}
print ('<tr bgcolor=#'.$barva.'><td><b>'.$row['spdp_namatsk'] .'</b><br>');
$polisi1 = $row['spdp_dari'];
 mysql_connect("$server", "$username", "$password");
mysql_select_db("$database");
$sql=mysql_query("select * from tab_polisi where p_nomor = '$polisi1'");
while ($data=mysql_fetch_array($sql)){
print(''.$data['p_nama'].'');
}
print ('</td>');
print ('<td>');
//----start
if ($row['p16_jaksa1'] == "0") {print ('<font color="red"><b>---BELUM DITUNJUK---</b></font>');

} 
elseif ($row['p16_jaksa1'] !== "0") {
$jaksa1 = $row['p16_jaksa1'];
 mysql_connect("$server", "$username", "$password");
mysql_select_db("$database");
$sql=mysql_query("select * from tab_personil where daftar_pegid = '$jaksa1'");
while ($data=mysql_fetch_array($sql)){
print('<b>'.$data['daftar_nama'].'</b>');
}
print ('</td>');

} 
//-----end
print ('</td><td>'. $row['spdp_pasal'].'</td>');
print ('<td>');
if ($row['berkas_tahap1p18tgl'] == "") {print ('<center>-</center>');} elseif ($row['berkas_tahap1p18tgl'] !== "") {print ('<center>'.$row['berkas_tahap1p18tgl'] .'</center>');} 
print ('</td>');
print ('<td>');
if ($row['berkas_tahap1p21tgl'] == "") {print ('<center>-</center>');} elseif ($row['berkas_tahap1p21tgl'] !== "") {print ('<center>'.$row['berkas_tahap1p21tgl'] .'</center>');} 
print ('</td>');
print ('<td>');
if ($row['berkas_tahap1p21tgl'] == "") {print ('<center>-</center>');} elseif ($row['berkas_tahap1p21tgl'] !== "") {print ('<center>'.$row['berkas_tahap1p21tgl'] .'</center>');} 
print ('</td>');
print ('<td>');
if ($row['berkas_tahapan'] == "0") {print ('<center>BLM PUTUS</center>');} elseif ($row['berkas_status'] !== "") {
if ($row['berkas_tahapan'] == "1a") {print ('<font color="green"><b><center>EKSEKUSI BADAN</center></b></font>');} 
elseif ($row['berkas_tahapan'] == "1") {print ('<font color="red"><b><center>BHT (BADAN & BB)</center></b></font>');} 
elseif ($row['berkas_tahapan'] == "2") {print ('<font color="red"><b><center>BANDING</center></b></font>');} 
elseif ($row['berkas_tahapan'] == "3") {
print ('<font color="red"><b><center>KASASI</center></b></font>');} 

} 
print ('</td>');
print ('</tr>');
}
print ('</tbody></table>');
echo "<br><br>Ditampilkan $hits /Halaman";
}
?></td>
                            </tr>
                        </table></td>
                      </tr>
                  </table></td>
                </tr>
              </table></td>
        </tr>
      </table>
    </div></td>
  </tr>
</table>
<div align="center" class="style2" id="fixmetoo"> 
  <table width="100%" border="0" cellspacing="0" cellpadding="0">
    <tr>
      <td bgcolor="#CCCCCC"><table width="100%"  border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td width="18%" bgcolor="#669900"><table width="100%"  border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td>
                    <div align="center" class="style7"><strong><? echo date('d/m/Y'); ?></strong></div></td>
                </tr>
            </table></td>
            <td width="82%" bgcolor="#66CC00"><table width="100%"  border="0" cellspacing="2" cellpadding="2">
              <tr>
                <td height="30"><marquee>
                  <?PHP
					$tahun=date("Y");
$link = mysql_connect("localhost", "root", "benk"); mysql_select_db("cma", $link);
$SQL     = "SELECT * FROM pengumuman ORDER By i_id DESC LIMIT 5";
$results = mysql_query($SQL);
while ($row = mysql_fetch_array($results)){
print ('<b>PENGUMUMAN</b> DIKIRIM TANGGAL '.$row['i_tgl'].' [ '.$row['i_kegiatan'].' ] --- ');
} 
print (' -E-N-D- ');
?>
                </marquee></td>
              </tr>
            </table></td>
          </tr>
      </table></td>
    </tr>
  </table>
</div>
</body>
</html>
<? }} ?>
