<?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>PERDATA DAN TATA USAHA NEGARA - <?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">
<style type="text/css">
<!--
body {
	background-image: url(images/cma_3.jpg);
	margin-top: 0px;
	margin-left: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
}
.style1 {
	font-size: 14px;
	font-weight: bold;
}
.style3 {
	color: #FFFFFF;
	font-weight: bold;
}
.style4 {
	font-size: 16px;
	font-weight: bold;
}
-->
</style></head>

<body>

<table width="100%"  border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td height="40"><table width="100%"  border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="2%">&nbsp;</td>
        <td width="59%"><strong>KANTOR PENGACARA NEGARA <?PHP echo $Satker; ?> - <?PHP echo $alamat; ?></strong></td>
        <td width="18%">&nbsp;</td>
        <td width="19%"><strong>
          <?PHP date_default_timezone_set('ASIA/JAKARTA'); print date("j F Y, g:i a"); ?>
        </strong></td>
        <td width="2%">&nbsp;</td>
      </tr>
    </table></td>
  </tr>
</table>
<table width="100%"  border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td height="371" background="images/etuna_1.jpg">&nbsp;</td>
  </tr>
  <tr>
    <td background="images/etuna_2.jpg"><table width="100%"  border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td><table width="100%"  border="0" cellspacing="4" cellpadding="4">
            <tr>
              <td width="24%" valign="top"><table width="300" border="0" align="center" cellpadding="0" cellspacing="1">
                <tr>
                  <td><a href="index.php" class="menudatun">BERANDA</a></td>
                </tr>
                <tr>
                  <td><a href="index.agenda.php" class="menudatun">AGENDA DATUN </a></td>
                </tr>
                <tr>
                  <td><a href="index.skk.php" class="menudatun">SKK DATUN TAHUN INI </a></td>
                </tr>
                <tr>
                  <td><a href="index.mou.php" class="menudatun">MOU DATUN TAHUN INI </a></td>
                </tr>
                <tr>
                  <td><a href="index.penagihan.php" class="menudatun">PENAGIHAN UANG PENGGANTI </a></td>
                </tr>
                <tr>
                  <td><a href="index.tergugat.php" class="menudatun">TERGUGAT</a></td>
                </tr>
                <tr>
                  <td><a href="index.tergugat.php" class="menudatun">PENGGUGAT</a></td>
                </tr>
              </table>
              <table width="300"  border="0" align="center" cellpadding="0" cellspacing="0">
                <tr>
                  <td height="200" background="../images/datun.jpg" bgcolor="#FF3300"><table width="300" border="0" align="center" cellpadding="4" cellspacing="4">
                    <tr>
                      <td><div align="center" class="style3"></div></td>
                    </tr>
                    <tr>
                      <td>&nbsp;</td>
                    </tr>
                    <tr>
                      <td>&nbsp;</td>
                    </tr>
                    <tr>
                      <td>&nbsp;</td>
                    </tr>
                    <tr>
                      <td><div align="center"><span class="style4"><?PHP echo $nosmscenter; ?></span></div></td>
                    </tr>
                  </table></td>
                </tr>
              </table></td>
              <td width="71%" valign="top">                <table width="100%"  border="0" cellspacing="0" cellpadding="0">
                <tr>
                  <td bgcolor="#FFCC00"><table width="100%"  border="0" cellspacing="0" cellpadding="0">
                    <tr>
                      <td bgcolor="#FF6600"><table width="100%"  border="0" cellspacing="4" cellpadding="4">
                        <tr>
                          <td><strong>KEGIATAN BIDANG PERDATA DAN TATA USAHA NEGARA </strong></td>
                        </tr>
                      </table></td>
                    </tr>
                  </table>
                  </td>
                </tr>
              </table>
                <table width="100%"  border="0" cellspacing="0" cellpadding="0">
                  <tr>
                    <td bgcolor="#FFCC00"><table width="100%"  border="0" cellspacing="8" cellpadding="8">
                      <tr>
                        <td><strong>AGENDA ACARA BIDANG DATUN TAHUN INI </strong></td>
                      </tr>
                      <tr>
                        <td bgcolor="#FF6600"><?PHP
						
include('index.db.php');
$mytable = 'agenda';
$page = $_GET["page"];
if(empty($action))
{
if (empty($order)) $order =  2;
if (empty($page))  $page  =  1;
if (empty($hits))  $hits  = 200;
$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 "AGENDA ACARA BIDANG 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=\"?page=$i\">$i</A></font> ";}}
print ('<br><br>');
$query  = "SELECT * FROM ".$mytable." ";
if(!empty($squery)) { $query .= "WHERE i_id LIKE \"%$squery%\" ";}
$query .= "ORDER BY d_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="10%"><span class="style1"><strong>TGL</strong></span></td>
<td width="85%"><span class="style1"><strong>ACARA & TEMPAT</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['d_id'].'</center></td>');
print ('<td><center>'.$row['d_tgl'].'</center></td>');

print ('<td><b>'.$row['d_acara'].'</b><br>');

print (''.$row['d_tempat'].'</td>');
print ('</tr>');
}
print ('</tbody></table>');
}
?></td>
                      </tr>
                    </table></td>
                  </tr>
                </table></td>
              <td width="5%">&nbsp;</td>
            </tr>
          </table></td>
        </tr>
      </table></td>
  </tr>
  <tr>
    <td height="100" background="images/etuna_3.jpg"><table width="100%"  border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td height="100">&nbsp;</td>
      </tr>
    </table></td>
  </tr>
</table>
<table width="100%"  border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td height="100" background="images/etuna_bottom.jpg"><table width="90%"  border="0" align="center" cellpadding="0" cellspacing="0">
      <tr>
        <td><div align="center" class="style1">KANTOR JAKSA PENGACARA NEGARA</div></td>
        </tr>
      <tr>
        <td><div align="center"><b><?PHP echo $alamat; ?></b></div></td>
        </tr>
    </table></td>
  </tr>
  <tr>
    <td><table width="80%"  border="0" align="center" cellpadding="6" cellspacing="6">
      <tr>
        <td><div align="center"></div></td>
      </tr>
      <tr>
        <td><div align="center">(c) 2016 - Created By <a href="http://www.chendia.net"><strong>Chendia Studio </strong></a></div></td>
      </tr>
      <tr>
        <td>&nbsp;</td>
      </tr>
    </table></td>
  </tr>
  <tr>
    <td>&nbsp;</td>
  </tr>
</table>
</body>
</html>

