<!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;
}
.style8 {color: #FFFFFF}
.style8 {color: #FFFFFF}
</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/bootstrap.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.pejabat.php" class="menu">INFO TP4D </a></td>
          <td width="19%"><a href="index.mip.pejabat.php" class="menu">INFO PERKARA PIDANA UMUM </a></td>
          <td width="41%"><a href="index.mip.pejabat.php" class="menu">INFO DENDA TILANG </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="8" cellpadding="8">
              <tr>
                <td><div align="center">Untuk melakukan cek informasi denda anda Via SMS Ketik : <strong>TILANG#NOMORTILANG</strong> kirim ke Nomor : <strong><?PHP echo $nosmscenter; ?></strong></div></td>
              </tr>
            </table>
            <table width="100%"  border="0" cellspacing="8" cellpadding="8">
              <tr>
                <td><table width="100%"  border="0" cellspacing="8" cellpadding="8">
                    <tr>
                      <td><table width="100%"  border="0" cellspacing="6" cellpadding="6">
                          <tr>
                            <td colspan="2"><strong>Total Per bulan </strong></td>
                            <td><strong>TOTAL PNPB </strong></td>
                            <td width="53%"><strong>RINCIAN PELANGGAR </strong></td>
                          </tr>
                          <tr>
                            <td width="3%"><div align="center">1.</div></td>
                            <td bgcolor="#FFCCFF">Januari</td>
                            <td width="32%" bgcolor="#CCCCCC"><?php
mysql_connect("localhost","root","benk")or die(mysql_error());
mysql_select_db("cma_tilang") or die(mysql_error());

?>
                                <?php
	
	$qry_jumlah2=mysql_query("SELECT SUM(t_nilai) FROM t_tilang where t_bulan = '1'");
        $data2=mysql_fetch_array($qry_jumlah2);
		$jumlah_tot2 =$data2[0];
		$tot2 = number_format($jumlah_tot2, 2, ',', '.');
        echo "Rp. ".$tot2;
		$query = "UPDATE t_rekap Set t_januari = '$jumlah_tot2' where t_id='$tahun_now'";  
$result = mysql_query($query); 

 ?></td>
                            <td bgcolor="#CCCCCC"><a href="tilang/index_show.php?month=tilang_januari&id=Januari" class="menupidum">LIHAT DAFTAR TILANG JANUARI </a></td>
                          </tr>
                          <tr>
                            <td><div align="center">2.</div></td>
                            <td width="12%" bgcolor="#FFCCFF">Februari</td>
                            <td bgcolor="#CCCCCC">
                              <?php
	
	$qry_jumlah2=mysql_query("SELECT SUM(t_nilai) FROM t_tilang where t_bulan = '2'");
        $data2=mysql_fetch_array($qry_jumlah2);
		$jumlah_tot2 =$data2[0];
		$tot2 = number_format($jumlah_tot2, 2, ',', '.');
        echo "Rp. ".$tot2;
		$query = "UPDATE t_rekap Set t_pebruari = '$jumlah_tot2' where t_id='$tahun_now'";  
$result = mysql_query($query); 

 ?></td>
                            <td bgcolor="#CCCCCC"><a href="tilang/index_show.php?month=tilang_februari&id=februari" class="menupidum">LIHAT DAFTAR TILANG FEBRUARI </a></td>
                          </tr>
                          <tr>
                            <td><div align="center">3.</div></td>
                            <td bgcolor="#FFCCFF">Maret</td>
                            <td bgcolor="#CCCCCC"><?php
	
	$qry_jumlah2=mysql_query("SELECT SUM(t_nilai) FROM t_tilang where t_bulan = '3'");
        $data2=mysql_fetch_array($qry_jumlah2);
		$jumlah_tot2 =$data2[0];
		$tot2 = number_format($jumlah_tot2, 2, ',', '.');
        echo "Rp. ".$tot2;
		$query = "UPDATE t_rekap Set t_maret = '$jumlah_tot2' where t_id='$tahun_now'";  
$result = mysql_query($query); 

 ?></td>
                            <td bgcolor="#CCCCCC" class="style2"><a href="tilang/index_show.php?month=tilang_maret&id=maret" class="menupidum">LIHAT DAFTAR TILANG MARET </a></td>
                          </tr>
                          <tr>
                            <td><div align="center">4.</div></td>
                            <td bgcolor="#FFCCFF">April</td>
                            <td bgcolor="#CCCCCC"><?php
	
	$qry_jumlah2=mysql_query("SELECT SUM(t_nilai) FROM t_tilang where t_bulan = '4'");
        $data2=mysql_fetch_array($qry_jumlah2);
		$jumlah_tot2 =$data2[0];
		$tot2 = number_format($jumlah_tot2, 2, ',', '.');
        echo "Rp. ".$tot2;
		$query = "UPDATE t_rekap Set t_april = '$jumlah_tot2' where t_id='$tahun_now'";  
$result = mysql_query($query); 

 ?></td>
                            <td bgcolor="#CCCCCC" class="style2"><a href="tilang/index_show.php?month=tilang_april&id=april" class="menupidum">LIHAT DAFTAR TILANG APRIL </a></td>
                          </tr>
                          <tr>
                            <td><div align="center">5.</div></td>
                            <td bgcolor="#FFCCFF">Mei</td>
                            <td bgcolor="#CCCCCC"><?php
	
	$qry_jumlah2=mysql_query("SELECT SUM(t_nilai) FROM t_tilang where t_bulan = '5'");
        $data2=mysql_fetch_array($qry_jumlah2);
		$jumlah_tot2 =$data2[0];
		$tot2 = number_format($jumlah_tot2, 2, ',', '.');
        echo "Rp. ".$tot2;
		$query = "UPDATE t_rekap Set t_mei = '$jumlah_tot2' where t_id='$tahun_now'";  
$result = mysql_query($query); 

 ?></td>
                            <td bgcolor="#CCCCCC" class="style2"><a href="tilang/index_show.php?month=tilang_mei&id=mei" class="menupidum">LIHAT DAFTAR TILANG MEI </a></td>
                          </tr>
                          <tr>
                            <td><div align="center">6.</div></td>
                            <td bgcolor="#FFCCFF">Juni</td>
                            <td bgcolor="#CCCCCC"><?php
	
	$qry_jumlah2=mysql_query("SELECT SUM(t_nilai) FROM t_tilang where t_bulan = '6'");
        $data2=mysql_fetch_array($qry_jumlah2);
		$jumlah_tot2 =$data2[0];
		$tot2 = number_format($jumlah_tot2, 2, ',', '.');
        echo "Rp. ".$tot2;
		$query = "UPDATE t_rekap Set t_juni = '$jumlah_tot2' where t_id='$tahun_now'";  
$result = mysql_query($query); 

 ?></td>
                            <td bgcolor="#CCCCCC" class="style2"><a href="tilang/index_show.php?month=tilang_juni&id=juni" class="menupidum">LIHAT DAFTAR TILANG JUNI </a></td>
                          </tr>
                          <tr>
                            <td><div align="center">7.</div></td>
                            <td bgcolor="#FFCCFF">Juli</td>
                            <td bgcolor="#CCCCCC"><?php
	
	$qry_jumlah2=mysql_query("SELECT SUM(t_nilai) FROM t_tilang where t_bulan = '7'");
        $data2=mysql_fetch_array($qry_jumlah2);
		$jumlah_tot2 =$data2[0];
		$tot2 = number_format($jumlah_tot2, 2, ',', '.');
        echo "Rp. ".$tot2;
		$query = "UPDATE t_rekap Set t_juli = '$jumlah_tot2' where t_id='$tahun_now'";  
$result = mysql_query($query); 

 ?></td>
                            <td bgcolor="#CCCCCC" class="style2"><a href="tilang/index_show.php?month=tilang_juli&id=juli" class="menupidum">LIHAT DAFTAR TILANG JULI</a></td>
                          </tr>
                          <tr>
                            <td><div align="center">8.</div></td>
                            <td bgcolor="#FFCCFF">Agustus</td>
                            <td bgcolor="#CCCCCC"><?php
	
	$qry_jumlah2=mysql_query("SELECT SUM(t_nilai) FROM t_tilang where t_bulan = '8'");
        $data2=mysql_fetch_array($qry_jumlah2);
		$jumlah_tot2 =$data2[0];
		$tot2 = number_format($jumlah_tot2, 2, ',', '.');
        echo "Rp. ".$tot2;
		$query = "UPDATE t_rekap Set t_agustus = '$jumlah_tot2' where t_id='$tahun_now'";  
$result = mysql_query($query); 

 ?></td>
                            <td bgcolor="#CCCCCC" class="style2"><a href="tilang/index_show.php?month=tilang_agustus&id=agustus" class="menupidum">LIHAT DAFTAR TILANG AGUSTUS </a></td>
                          </tr>
                          <tr>
                            <td><div align="center">9.</div></td>
                            <td bgcolor="#FFCCFF">September</td>
                            <td bgcolor="#CCCCCC"><?php
	
	$qry_jumlah2=mysql_query("SELECT SUM(t_nilai) FROM t_tilang where t_bulan = '9'");
        $data2=mysql_fetch_array($qry_jumlah2);
		$jumlah_tot2 =$data2[0];
		$tot2 = number_format($jumlah_tot2, 2, ',', '.');
        echo "Rp. ".$tot2;
		$query = "UPDATE t_rekap Set t_september = '$jumlah_tot2' where t_id='$tahun_now'";  
$result = mysql_query($query); 

 ?></td>
                            <td bgcolor="#CCCCCC" class="style2"><a href="tilang/index_show.php?month=tilang_september&id=september" class="menupidum">LIHAT DAFTAR TILANG SEPTEMBER </a></td>
                          </tr>
                          <tr>
                            <td><div align="center">10</div></td>
                            <td bgcolor="#FFCCFF">Oktober</td>
                            <td bgcolor="#CCCCCC"><?php
	
	$qry_jumlah2=mysql_query("SELECT SUM(t_nilai) FROM t_tilang where t_bulan = '10'");
        $data2=mysql_fetch_array($qry_jumlah2);
		$jumlah_tot2 =$data2[0];
		$tot2 = number_format($jumlah_tot2, 2, ',', '.');
        echo "Rp. ".$tot2;
		$query = "UPDATE t_rekap Set t_oktober = '$jumlah_tot2' where t_id='$tahun_now'";  
$result = mysql_query($query); 

 ?></td>
                            <td bgcolor="#CCCCCC" class="style2"><a href="tilang/index_show.php?month=tilang_oktober&id=oktober" class="menupidum">LIHAT DAFTAR TILANG OKTOBER </a></td>
                          </tr>
                          <tr>
                            <td><div align="center">11</div></td>
                            <td bgcolor="#FFCCFF">Nopember</td>
                            <td bgcolor="#CCCCCC"><?php
	
	$qry_jumlah2=mysql_query("SELECT SUM(t_nilai) FROM t_tilang where t_bulan = '11'");
        $data2=mysql_fetch_array($qry_jumlah2);
		$jumlah_tot2 =$data2[0];
		$tot2 = number_format($jumlah_tot2, 2, ',', '.');
        echo "Rp. ".$tot2;
		$query = "UPDATE t_rekap Set t_nopember = '$jumlah_tot2' where t_id='$tahun_now'";  
$result = mysql_query($query); 

 ?></td>
                            <td bgcolor="#CCCCCC" class="style2"><a href="tilang/index_show.php?month=tilang_nopember&id=nopember" class="menupidum">LIHAT DAFTAR TILANG NOPEMBER </a></td>
                          </tr>
                          <tr>
                            <td><div align="center">12.</div></td>
                            <td bgcolor="#FFCCFF">Desember</td>
                            <td bgcolor="#CCCCCC"><?php
	
	$qry_jumlah2=mysql_query("SELECT SUM(t_nilai) FROM t_tilang where t_bulan = '12'");
        $data2=mysql_fetch_array($qry_jumlah2);
		$jumlah_tot2 =$data2[0];
		$tot2 = number_format($jumlah_tot2, 2, ',', '.');
        echo "Rp. ".$tot2;
		$query = "UPDATE t_rekap Set t_desember = '$jumlah_tot2' where t_id='$tahun_now'";  
$result = mysql_query($query); 

 ?></td>
                            <td bgcolor="#CCCCCC" class="style2"><a href="tilang/index_show.php?month=tilang_desember&id=desember" class="menupidum">LIHAT DAFTAR TILANG DESEMBER </a></td>
                          </tr>
                      </table></td>
                    </tr>
                    <tr>
                      <td class="style2">&nbsp;</td>
                    </tr>
                    <tr>
                      <td>CARA BAYAR TILANG ANDA </td>
                    </tr>
                    <tr>
                      <td>DATANG KE KEJAKSAAN MEMBAWA ATM ATAU KE TELLER BANK DENGAN MENGETAHUI JUMLAH DENDA TILANG DENGAN CARA SMS ATAU MEMBUKA WEB BARU MEMBAYAR MELALUI TELLER KE REK PENAMPUNG DENDA TILANG </td>
                    </tr>
                    <tr>
                      <td class="style2">&nbsp;</td>
                    </tr>
                    <tr>
                      <td bgcolor="#FF0000" class="style2"><table width="100%"  border="0" cellspacing="8" cellpadding="8">
                          <tr>
                            <td class="style8"><strong>REKAPAN PENDAPATAN PNBP MINGGUAN DENDA TILANG </strong></td>
                          </tr>
                      </table></td>
                    </tr>
                    <tr>
                      <td><?php
mysql_connect("localhost","root","benk")or die(mysql_error());
mysql_select_db("cma_tilang") or die(mysql_error());

?>
                          <table width="100%" border="0">
                            <tr>
                              <th width="5%"><div align="left">No</div></th>
                              <th width="72%"><div align="left">Nilai PNPB</div></th>
                              <th width="10%"><div align="left">Bulan</div></th>
                              <th width="13%"><div align="left">Tgl Posting </div></th>
                            </tr>
                            <?php
    $sql2="SELECT * FROM t_tilang";
    $query2=mysql_query($sql2);
    while($data=mysql_fetch_array($query2)){
        $no++;
        $out_nilai_a=$data['t_nilai'];
		$a = number_format($out_nilai_a, 2, ',', '.');
		$bulan=$data['t_bulan'];
		$tglinput=$data['t_tglinput'];
       // $out_jumlah=$data['jumlah_nilai'];
	//  $out_jumlah = $out_nilai_a+$out_nilai_b+$out_nilai_c+$out_nilai_d+$out_nilai_e;
		//$jumlah = number_format($out_jumlah, 2, ',', '.');
        ?>
                            <tr bgcolor="#FFFFFF">
                              <td><?php echo $no; ?></td>
                              <td><?php echo "Rp. ".$a; ?></td>
                              <td><?php 
if ($bulan == "1") {print ('Januari');} 
elseif ($bulan == "2") {print ('Pebruari');} 
elseif ($bulan == "3") {print ('Maret');} 
elseif ($bulan == "4") {print ('April');} 
elseif ($bulan == "5") {print ('Mei');}  
elseif ($bulan == "6") {print ('Juni');}  
elseif ($bulan == "7") {print ('Juli');}  
elseif ($bulan == "8") {print ('Agustus');}  
elseif ($bulan == "9") {print ('September');}  
elseif ($bulan == "10") {print ('Oktober');}  
elseif ($bulan == "11") {print ('Nopember');}  
elseif ($bulan == "12") {print ('Desember');}  
?></td>
                              <td><?php echo $tglinput; ?></td>
                            </tr>
                            <?php
        }
    ?>
                            <tr>
                              <td>&nbsp;</td>
                              <td colspan="3">&nbsp; </td>
                            </tr>
                            <tr>
                              <td><div align="right"></div></td>
                              <td colspan="3"><table width="100%"  border="0" cellspacing="8" cellpadding="8">
                                  <tr>
                                    <td width="10%"><div align="right">Jumlah</div></td>
                                    <td width="90%" bgcolor="#FFFFFF"><?php
		//--------------
		
	function penyebut($nilai) {
		$nilai = abs($nilai);
		$huruf = array("", "satu", "dua", "tiga", "empat", "lima", "enam", "tujuh", "delapan", "sembilan", "sepuluh", "sebelas");
		$temp = "";
		if ($nilai < 12) {
			$temp = " ". $huruf[$nilai];
		} else if ($nilai <20) {
			$temp = penyebut($nilai - 10). " belas";
		} else if ($nilai < 100) {
			$temp = penyebut($nilai/10)." puluh". penyebut($nilai % 10);
		} else if ($nilai < 200) {
			$temp = " seratus" . penyebut($nilai - 100);
		} else if ($nilai < 1000) {
			$temp = penyebut($nilai/100) . " ratus" . penyebut($nilai % 100);
		} else if ($nilai < 2000) {
			$temp = " seribu" . penyebut($nilai - 1000);
		} else if ($nilai < 1000000) {
			$temp = penyebut($nilai/1000) . " ribu" . penyebut($nilai % 1000);
		} else if ($nilai < 1000000000) {
			$temp = penyebut($nilai/1000000) . " juta" . penyebut($nilai % 1000000);
		} else if ($nilai < 1000000000000) {
			$temp = penyebut($nilai/1000000000) . " milyar" . penyebut(fmod($nilai,1000000000));
		} else if ($nilai < 1000000000000000) {
			$temp = penyebut($nilai/1000000000000) . " trilyun" . penyebut(fmod($nilai,1000000000000));
		}     
		return $temp;
	}
 
	function terbilang($nilai) {
		if($nilai<0) {
			$hasil = "minus ". trim(penyebut($nilai));
		} else {
			$hasil = trim(penyebut($nilai));
		}     		
		return $hasil;
	}
 
 
	
	//-----------------------
        $qry_jumlah_a=mysql_query("SELECT SUM(t_nilai) FROM t_tilang");
        $data_a=mysql_fetch_array($qry_jumlah_a);
		$jumlah_tot =$data_a[0];
		$tot = number_format($jumlah_tot, 2, ',', '.');
        echo "Rp. ".$tot;
		
        ?></td>
                                  </tr>
                              </table></td>
                            </tr>
                            <tr>
                              <td><div align="right"></div></td>
                              <td colspan="3">
                                <table width="100%"  border="0" cellspacing="8" cellpadding="8">
                                  <tr>
                                    <td width="10%"><div align="right">Terbilang</div></td>
                                    <td width="90%" bgcolor="#FFFFFF"><?PHP echo terbilang($jumlah_tot); ?></td>
                                  </tr>
                              </table></td>
                            </tr>
                        </table></td>
                    </tr>
                </table></td>
              </tr>
            </table>
            <table width="100%"  border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td>&nbsp;</td>
              </tr>
              <tr>
                <td>&nbsp;</td>
              </tr>
              <tr>
                <td>&nbsp;</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>

