<LINK href="images/index.css" rel="stylesheet" type="text/css">
</head>

<body>

<table width="98%"  border="0" align="center" cellpadding="2" cellspacing="2">
  <tr>
    <td><strong>DAFTAR AGENDA PERDATA DAN TATA USAHA NEGARA </strong></td>
  </tr>
  <tr>
    <td><table width="100%"  border="0" cellspacing="2" cellpadding="2">
        <tr>
          <td width="82%">Daftar Agenda yang dilakukan bidang Datun untuk diketahui pimpinan</td>
          <td width="18%"><a href="?g=agendapost&d=inc" class="menu">TAMBAH BARU </a></td>
        </tr>
      </table>
        <table width="100%"  border="0" cellspacing="4" cellpadding="4">
          <tr>
            <td><?
include("index.db.php");
$page = $_GET["page"];
$mytable = "agenda";
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 "AGENDA 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=\"index.page.php?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="75%"><span class="style1"><strong>ACARA & TEMPAT</strong></span></td>
<td width="10%"><span class="style1"><strong>View</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>'.$row['d_tgl'].'</td>');

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

print (''.$row['d_tempat'].'</td>');
$id = $row['d_agenda'];
print ('<td><a href="index.page.php?g=agendapostedit&d=inc&uid='.$id.'" class="menu">EDIT/DELETE</a></td>');
print ('</tr>');
}
print ('</tbody></table>');
echo "<br><br>Ditampilkan $hits /Halaman";
}
?>
            </td>
          </tr>
      </table></td>
  </tr>
</table>
<table width="100%"  border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td>&nbsp;</td>
  </tr>
</table>
<table width="98%"  border="0" align="center" cellpadding="4" cellspacing="4">
  <tr>
    <td width="16%"><table width="200"  border="0" align="center" cellpadding="4" cellspacing="4" class="panel">
        <tr>
          <td><div align="center">
              <table width="100%"  border="0" cellspacing="4" cellpadding="4">
                <tr>
                  <td><div align="center"><a href="index.page.php"><img src="images/0.png" width="137" height="130" border="0"></a></div></td>
                </tr>
                <tr>
                  <td><div align="center"><a href="#" >HALAMAN UTAMA </a></div></td>
                </tr>
              </table>
          </div></td>
        </tr>
    </table></td>
    <td width="16%"><table width="200"  border="0" align="center" cellpadding="4" cellspacing="4" class="panel">
      <tr>
        <td><table width="100%"  border="0" cellspacing="4" cellpadding="4">
            <tr>
              <td><div align="center"><a href="?g=suratmasuk&i=index&jenis=1"><img src="images/7.png" width="132" height="139" border="0"></a></div></td>
            </tr>
            <tr>
              <td><div align="center">SURAT MASUK DATUN </div></td>
            </tr>
        </table></td>
      </tr>
    </table></td>
    <td width="17%"><table width="200"  border="0" align="center" cellpadding="4" cellspacing="4" class="panel">
      <tr>
        <td><div align="center">
            <table width="100%"  border="0" cellspacing="4" cellpadding="4">
              <tr>
                <td><div align="center"><a href="?g=mou&d=inc"><img src="images/1.png" width="128" height="132" border="0"></a></div></td>
              </tr>
              <tr>
                <td><div align="center"><a href="?g=mou&d=inc" >PERMOHONAN MOU </a></div></td>
              </tr>
            </table>
        </div></td>
      </tr>
    </table></td>
    <td width="16%"><table width="200"  border="0" align="center" cellpadding="4" cellspacing="4" class="panel">
        <tr>
          <td><div align="center">
              <table width="100%"  border="0" cellspacing="4" cellpadding="4">
                <tr>
                  <td><div align="center"><a href="?g=skk&d=inc"><img src="images/3.png" width="160" height="130" border="0"></a></div></td>
                </tr>
                <tr>
                  <td><div align="center"><a href="?g=skk&d=inc" >SKK</a></div></td>
                </tr>
              </table>
          </div></td>
        </tr>
    </table></td>
    <td width="18%"><table width="200"  border="0" align="center" cellpadding="4" cellspacing="4" class="panel">
      <tr>
        <td><div align="center">
            <table width="100%"  border="0" cellspacing="4" cellpadding="4">
              <tr>
                <td><div align="center"><a href="?g=agenda&d=inc"><img src="images/4.png" width="152" height="130" border="0"></a></div></td>
              </tr>
              <tr>
                <td><div align="center"><a href="?g=agenda&d=inc" >AGENDA DATUN</a></div></td>
              </tr>
            </table>
        </div></td>
      </tr>
    </table></td>
    <td width="17%"><table width="200"  border="0" align="center" cellpadding="4" cellspacing="4" class="panel">
      <tr>
        <td><table width="100%"  border="0" cellspacing="4" cellpadding="4">
            <tr>
              <td><div align="center"><a href="../index.logout.php"><img src="images/6.png" width="149" height="130" border="0"></a></div></td>
            </tr>
            <tr>
              <td><div align="center"><a href="logout.php" >LOGOUT</a></div></td>
            </tr>
        </table></td>
      </tr>
    </table></td>
  </tr>
  <tr>
    <td><table width="200"  border="0" align="center" cellpadding="4" cellspacing="4" class="panel">
        <tr>
          <td><table width="100%"  border="0" cellspacing="4" cellpadding="4">
              <tr>
                <td><div align="center"><a href="?g=penggugat&d=inc"><img src="images/5.png" width="133" height="130" border="0"></a></div></td>
              </tr>
              <tr>
                <td><div align="center"><a href="?g=penggugat&d=inc" >SEBAGAI PENGGUGAT </a></div></td>
              </tr>
          </table></td>
        </tr>
      </table>
        <div align="center"></div></td>
    <td><table width="200"  border="0" align="center" cellpadding="4" cellspacing="4" class="panel">
      <tr>
        <td><table width="100%"  border="0" cellspacing="4" cellpadding="4">
            <tr>
              <td><div align="center"><a href="?g=tergugat&d=inc"><img src="images/5.png" width="133" height="130" border="0"></a></div></td>
            </tr>
            <tr>
              <td><div align="center"><a href="?g=tergugat&d=inc" >SEBAGAI TERGUGAT</a></div></td>
            </tr>
        </table></td>
      </tr>
    </table></td>
    <td><table width="200"  border="0" align="center" cellpadding="4" cellspacing="4" class="panel">
      <tr>
        <td><table width="100%"  border="0" cellspacing="4" cellpadding="4">
            <tr>
              <td><div align="center"><a href="?g=setoran&d=inc"><img src="images/8.png" width="132" height="130" border="0"></a></div></td>
            </tr>
            <tr>
              <td><div align="center"><a href="?g=setoran&d=inc" >PENYELESAIAN UANG PENGGANTI </a></div></td>
            </tr>
        </table></td>
      </tr>
    </table></td>
    <td><a href='../admin/index.keychange.php?user=datun' onclick="NewWindow(this.href,'mywin','600','300','yes','center');return false" onfocus="this.blur()">
</a>    </td>
    <td>&nbsp;</td>
    <td><table width="200"  border="0" align="center" cellpadding="4" cellspacing="4" class="panel">
      <tr>
        <td><table width="100%"  border="0" cellspacing="4" cellpadding="4">
            <tr>
              <td><div align="center"><a href='../admin/index.keychange.php?user=datun' onclick="NewWindow(this.href,'mywin','600','300','no','center');return false" onfocus="this.blur()"><img src="images/10.jpg" width="132" height="132" border="0"></a></div></td>
            </tr>
            <tr>
              <td><div align="center"><a href="?g=setoran&d=inc" >GANTI PASSWORD </a></div></td>
            </tr>
        </table></td>
      </tr>
    </table></td>
  </tr>
</table>
</body>
</html>

