<?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><?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}
.style3 {	color: #FFFFFF;
	font-size: 12px;
	font-weight: bold;
}
</style>
<style type="text/css">
<!--
body {
	background-image: url();
	margin-top: 0px;
	margin-left: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
	background-color: #003300;
}
-->
</style>
<style type="text/css" media="all">
@import "style.css";
</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 background="../themes/camelon_a.jpg"><img src="../themes/camelon_a.jpg" width="1100" height="200"></td>
  </tr>
  <tr>
    <td bgcolor="#FFFFFF"><table width="100%"  border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td bgcolor="#CCCCCC"><table width="100%"  border="0" cellspacing="8" cellpadding="8">
          <tr>
            <td><form name="form1" method="post" action="../index.mip.denda.cari.php">
              <table width="100%"  border="0" cellspacing="4" cellpadding="4">
                <tr>
                  <td width="68%"><div align="left"><strong>MASUKKAN NOMOR TILANG ANDA </strong></div></td>
                  <td width="32%">
                       
                          <input name="queryd" type="text" id="query" size="20" maxlength="10">
                                             <select name="table" id="table">
                        <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>                        <input type="submit" name="Submit2" value="CARI"></td>
                </tr>
              </table>
            </form></td>
          </tr>
        </table></td>
      </tr>
    </table>
    <table width="100%"  border="0" cellspacing="6" cellpadding="6">
      <tr>
        <td width="94%" valign="top"><table width="100%"  border="0" cellspacing="2" cellpadding="2">
          <tr>
            <td><table width="100%"  border="0" cellspacing="2" cellpadding="2">
              <tr>
                <td><strong>BERDASARKAN TANGGAL SIDANG </strong></td>
              </tr>
              <tr>
                <td>&nbsp;</td>
              </tr>
              <tr>
                <td background="tahukahandabg.jpg"><table width="100%"  border="0" cellspacing="4" cellpadding="4">
                    <tr>
                      <td><?PHP 
mysql_connect("localhost", "root", "benk");
mysql_select_db("cma_tilang");
$month1 = $_GET["month"];
$id1 = $_GET["id"];
$page = $_GET["page"];
$mytable = "$month1";
 if(empty($action))
 {
  if (empty($order)) $order =  2;
  if (empty($page))  $page  =  1;
  if (empty($hits))  $hits  = 100;
  $start = $hits*($page-1);
  //penghitung jumlah isi
  $query2 = "Select * from $mytable";
  $res2 = mysql_query("$query2");
  $xnum2 = mysql_num_rows($res2);
  // $xnum akan menghitung isi dimaksud
  $stw2 = (int)($xnum2/$hits);
  if ($xnum2%$hits > 0) {$stw2++;}
  $np = $page+1;
  $pp = $page-1;
  if ($page == 1) { $pp=1; }
  if ($np > $stw2) { $np = $stw2;} 
  echo "Total Berkas Perkara Tilang Bulan $id1 | <strong>$xnum2</strong> Pelanggar | ";
  for ($i=1;$i<=$stw2;$i++) {if($page==$i){echo "&nbsp;<b><font size=\"4\">$i</font></b>&nbsp;";} else{echo "&nbsp;<font size=\"2\"><a href=\"?month=$month1&id=$id1&page=$i\"> $i </A></font>&nbsp;";}}
  ///menampilkan isi data dari
 // $query  = "SELECT * from $mytable ORDER BY t_index desc LIMIT $start,$hits" ;
 $query2  = "SELECT * from $mytable ORDER BY t_id desc LIMIT $start,$hits" ;
  $res2 = mysql_query($query2);
  echo '<br><br><table id="myTable" cellspacing="1" width="100%" align="center" cellpadding="2" bgcolor="#999999" >';
  echo '<thead><tr>';

    					echo '<td width="4%">Urut</td>';
                       echo ' <td width="8%">No Tilang </td>';
					    echo ' <td width="13%">No Briva</td>';
                       echo ' <td width="25%">Nama</td>';
                       echo ' <td width="7%">Alamat</td>';
                       echo ' <td width="5%">Pasal</td>';
                       echo ' <td width="6%">Barbuk</td>';
                       echo ' <td width="8%">Jumlah Denda </td>';
					   echo '<td width="7%">Biaya Perkara </td>';
					    echo ' <td width="7%">Tgl Sidang </td>';
                    
                       echo ' <td width="10%">Asal Perkara </td>';
					  
                  
                      
  
  
  
				  
				  
				  
  echo '</tr></thead><tbody>';
  
$no=1; // fungsi nomor
 $x=0;
  while($ar2 = mysql_fetch_array($res2))
  {
   $x++;
   if($x==2) {$barva = "FFFFFF";$x=0;} else {$barva = "FFFFD9";$x=1;}


print ('<tr bgcolor=#'.$barva.'>');
print ('<td><center>'.$no++.'</center></td>');
   
//echo"<td>$ar[p_id]</td>";
  

    echo"
   <td>$ar2[t_nomor]</td>
   <td>$ar2[t_nomorbriva]</td>
   <td>$ar2[t_nama]</td>
   <td>$ar2[t_alamat]</td>
   <td>$ar2[t_pasal]</td>
   <td>$ar2[t_bb]</td>
   <td>$ar2[t_denda]</td>
   <td>$ar2[t_biayaperkara]</td>
   <td>$ar2[t_tglsidang]</td>
   <td>$ar2[t_asaltilang]</td>
   </tr>";
  }
  echo "</tbody></table><br>";
  echo "<br>$hits/Halaman";
 }
  ?></td>
                    </tr>
                </table></td>
              </tr>
              <tr>
                <td><p>&nbsp; </p></td>
              </tr>
            </table></td>
          </tr>
          <tr>
            <td>&nbsp;</td>
          </tr>
        </table></td>
      </tr>
    </table></td>
  </tr>
</table>
<div id="fixmetoo" align="center"> 
  <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="#426200"><table width="100%"  border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td><div align="center"></div>
                    <div align="center" class="style1"><strong>QUICK NEWS </strong></div></td>
              </tr>
            </table></td>
            <td bgcolor="#99CC00"><table width="100%"  border="0" cellspacing="2" cellpadding="2">
              <tr>
                <td height="40"><marquee>
                <strong>                ISI SITUS BERSIFAT INFORMATIF BUKAN MERUPAKAN LEGAL OPINION DARI www.tilang.info APABILA TERDAPAT DATA ELEKTRONIK BASED YANG BERBEDA DENGAN DATA RESMI PAPER, MAKA YANG MENJADI ACUAN ADALAH DATA RESMI PAPER BASED.
                </strong>
                </marquee></td>
              </tr>
            </table></td>
          </tr>
      </table></td>
    </tr>
  </table>
</div>
</body>
</html>

