<table width="100%"  border="0" cellspacing="4" cellpadding="4">
  <tr>
    <td>&nbsp;</td>
  </tr>
</table>
<table width="90%"  border="0" align="center" cellpadding="2" cellspacing="2" class="panel">
  <tr>
    <td width="82%"><table width="100%"  border="0" cellspacing="4" cellpadding="4">
      <tr>
        <td><strong>MEDIA INFORMASI PUBLIK </strong></td>
      </tr>
    </table>    </td>
    <td width="18%"><a href="?g=mediainfopublikpost&d=inc" class="menu">TAMBAH BARU </a></td>
  </tr>
</table>
<table width="90%"  border="0" align="center" cellpadding="4" cellspacing="4">
  <tr>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td>Bahwa yang anda masukkan disini akan ditampikan di media informasi publik dan akan dibaca oleh pengunjung/tamu. Isikan dengan informasi yang menarik, judul yang menarik dan layak untuk ditampilkan sebagai konsumsi publik. </td>
  </tr>
  <tr>
    <td>&nbsp;</td>
  </tr>
</table>
<table width="90%"  border="0" align="center" cellpadding="2" cellspacing="2">
  <tr>
    <td><form name="form1" method="post" action="inc/intel_mediainfopublikadd.php">
      <table width="100%"  border="0" cellspacing="4" cellpadding="4">
        <tr>
          <td colspan="3"><strong>Memasukkan data Informasi Publik </strong></td>
          </tr>
        <tr>
          <td width="26%">&nbsp;</td>
          <td width="2%">&nbsp;</td>
          <td width="72%">&nbsp;</td>
        </tr>
        <tr>
          <td> Tanggal Kirim </td>
          <td>:</td>
          <td><?PHP echo date("d/m/Y"); ?></td>
        </tr>
        <tr>
          <td>Judul Berita</td>
          <td>:</td>
          <td><input name="mipjudul" type="text" id="mipjudul2" size="80"></td>
        </tr>
        <tr>
          <td>Isi Berita </td>
          <td>:</td>
          <td><textarea name="mipisi" cols="100" rows="7" wrap="VIRTUAL" id="mipisi"></textarea></td>
        </tr>
        <tr>
          <td>&nbsp;</td>
          <td>&nbsp;</td>
          <td><input type="submit" name="Submit" value="Kirim"></td>
        </tr>
        <tr>
          <td>&nbsp;</td>
          <td>&nbsp;</td>
          <td>&nbsp;</td>
        </tr>
      </table>
    </form></td>
  </tr>
</table>
<table width="90%"  border="0" align="center" cellpadding="4" cellspacing="4">
  <tr>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td><?
include("inc/intel_mediainfopublik.db.inc_.php");
if(empty($action))
{
if (empty($order)) $order =  2;
if (empty($page))  $page  =  1;
if (empty($hits))  $hits  = 3;
$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 "KONTEN MIP <strong>$xnum</strong> | ";
for ($i=1;$i<=$stw2;$i++) {if($page==$i){
echo "Halaman <b>$i</b> ";} 
else{echo " <font size=\"2\"><a href=\"?id=$id1&page=$i\">$i</A></font> ";}}
print ('<br><br>');
$query  = "SELECT * FROM ".$mytable." ";
if(!empty($squery)) { $query .= "WHERE i_id LIKE \"%$squery%\" ";}
$query .= "ORDER BY i_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 POST</strong></span></td>
<td width="65%"><span class="style1"><strong>ISI</strong></span></td>
<td width="5%"><span class="style1"><strong>STATUS</strong></span></td>
<td width="15%"><span class="style1"><strong>PROSES</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['i_id'].'</center></td>');
print ('<td>'.$row['i_tgl'].'</td>');

print ('<td>'.$row['i_judul'].'<br>'.$row['i_isi'].'</td>');

print ('<td>'.$row['i_status'].'</td>');
print ('<td><a href="inc/intel_delete.php?id='.$row['i_id'].'&do=mip" ');
echo "onclick=\"NewWindow(this.href,'mywin','400','200','yes','center');return false\" onfocus=\"this.blur()\" class=\"menu\" target=\"_blank\">DELETE</a></td>";

print ('</tr>');
}
print ('</tbody></table>');
}
?></td>
  </tr>
  <tr>
    <td>&nbsp;</td>
  </tr>
</table>
