<?PHP
session_start();
if(isset($_SESSION['Nama']) and isset($_SESSION['Pass'])) {
$Nama = $_SESSION['Nama'];
if ($Nama == "pidum"){
?>
<?PHP
include("../index.cma.db.php");
include("../index.globalconfig.php");
include("../index.embed.php");
$query = "Select * from $mytable"; 
$result = mysql_query($query); 
if($row = mysql_fetch_array($result)){
?>
<!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/menu.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
body {
	background-image: url();
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
}
.style1 {
	color: #FFFFFF;
	font-weight: bold;
}
-->
</style>
<script language="javascript" type="text/javascript">
<!--
/****************************************************
     Author: Eric King
     Url: http://redrival.com/eak/index.shtml
     This script is free to use as long as this info is left in
     Featured on Dynamic Drive script library (http://www.dynamicdrive.com)
****************************************************/
var win=null;
function NewWindow(mypage,myname,w,h,scroll,pos){
if(pos=="random"){LeftPosition=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;TopPosition=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;}
if(pos=="center"){LeftPosition=(screen.width)?(screen.width-w)/2:100;TopPosition=(screen.height)?(screen.height-h)/2:100;}
else if((pos!="center" && pos!="random") || pos==null){LeftPosition=0;TopPosition=20}
settings='width='+w+',height='+h+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=yes';
win=window.open(mypage,myname,settings);}
// -->
</script></head>

<body>
<table width="100%"  border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><table width="100%"  border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td bgcolor="#FF6600"><table width="100%"  border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td bgcolor="#FF0000"><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_merah.swf">
              <param name="quality" value="high">
              <embed src="../themes/top_merah.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="700" height="50"></embed>
            </object></td>
          </tr>
        </table>
        <table width="100%"  border="0" cellspacing="6" cellpadding="6">
          <tr>
            <td><span class="style1">SELAMAT DATANG OPERATOR PIDUM </span></td>
          </tr>
        </table></td>
      </tr>
      <tr>
        <td><table width="100%"  border="0" align="center" cellpadding="0" cellspacing="0">
            <tr>
              <td><div class="drop">
                  <ul class="drop_menu">
                    <li><a href='index.php'><strong>HOME</strong></a>
                        <ul>
						<li><a href='?g=keterlambatan&i=index'>SUPERVISI SESUAI SOP</a></li>
					<li><a href='database.php'>DATABASE <?PHP echo $dbperkaratahun = substr($tahun_before,15,4); ?></a></li>
                          <li><a href='?g=beranda&i=index'>BERANDA & NOTIFIKASI</a></li>
                            <li><a href='../admin/index.keychange.php?user=pidum' onclick="NewWindow(this.href,'mywin','600','300','yes','center');return false" onfocus="this.blur()">UBAH PASSWORD</a></li>
                        </ul>
                    </li>
					   <li><a href='index.php'><strong>SURAT MASUK PIDUM</strong></a>
                        <ul>
						<li><a href="?g=suratmasuk&i=index&jenis=1" title="Pratut">PANTAUAN SURAT PIDUM</a></li>
						
                 
                        </ul>
                    </li>
                    <li><a href='index.php'><strong>PRA PENUNTUTAN</strong></a>
                        <ul>
						<li><a href="?g=pratut&i=index" title="Pratut">PANTAUAN PRATUT</a></li>
                          <li><a href="?g=p17&i=index" title="P17">P17</a></li>
                          <li><a href="?g=p18&i=index" title="P18">P18</a></li>
						  <li><a href="?g=p19&i=index" title="P19">P19</a></li>
						  <li><a href="?g=p20&i=index" title="P20">P20</a></li>
						  <li><a href="?g=p21&i=index" title="P21">P21</a></li>
                        </ul>
                    </li>
                    <li><a href='#'><strong>PENUNTUTAN</strong></a>
                        <ul>
						<li><a href="?g=tut&i=index" title="HOME">PANTAUAN PENUNTUTAN</a></li>
                          <li><a href="?g=tahap2&i=index" title="HOME">DIGITAL TAHAP 2</a></li>
                        
                        </ul>
                    </li>
					
                    <li><a href='#'><strong>EKSEKUSI</strong></a>
                        <ul>
                          <li><a href="?g=eksekusi&i=index" title="HOME">EKSEKUSI</a></li>

                        </ul>
                    </li>
					 
           
                    <li><a href='../index.logout.php'><strong>LOGOUT</strong></a> </li>
                  </ul>
              </div></td>
            </tr>
          </table></td>
      </tr>
      <tr>
        <td><table width="100%"  border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td bgcolor="#FFF0F0"><table width="100%"  border="0" cellspacing="8" cellpadding="8">
              <tr>
                <td><?PHP
$g1 = $_GET["g"];  
$i1 = $_GET["i"]; 
if($g1 == "pratut"){ include("$i1.pratut.php"); }
elseif($g1 == "p17"){ include("$i1.p17.php"); }
elseif($g1 == "p18"){ include("$i1.p18.php"); }
elseif($g1 == "p19"){ include("$i1.p19.php"); }
elseif($g1 == "p20"){ include("$i1.p20.php"); }
elseif($g1 == "p21"){ include("$i1.p21.php"); }
elseif($g1 == "tahap2"){ include("$i1.tahap2.php"); }
elseif($g1 == "tahap2all"){ include("$i1.tahap2all.php"); }
elseif($g1 == "digrecview"){ include("$i1.digrecview.php"); }
elseif($g1 == "t10"){ include("$i1.besuk.php"); }
elseif($g1 == "barbuk"){ include("$i1.barbuk.php"); }
elseif($g1 == "tut"){ include("$i1.tut.php"); }
elseif($g1 == "eksekusi"){ include("$i1.eksekusi.php"); }
elseif($g1 == "beranda"){ include("$i1.help.php"); }
elseif($g1 == "keterlambatan"){ include("$i1.keterlambatan.php"); }
elseif($g1 == "suratmasuk"){ include("$i1.suratmasuk.php"); }
else{ include("index.keterlambatan.php"); }
?></td>
              </tr>
            </table></td>
          </tr>
        </table></td>
      </tr>
    </table></td>
  </tr>
</table>
<table width="100%"  border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td bgcolor="#FF0000"><table width="100%"  border="0" cellspacing="4" cellpadding="4">
      <tr>
        <td><?PHP echo $satker; ?> | <?PHP echo $alamat; ?></td>
      </tr>
    </table></td>
  </tr>
</table>
</body>
</html>
<? } ?>
<?PHP
}
else {
echo "ANDA BELUM LOGIN, GAGAL AKSES";
echo "<meta http-equiv=\"refresh\" content=\"3; url=../index.php\">";
}}
?>