<?PHP
session_start();
if(isset($_SESSION['Nama']) and isset($_SESSION['Pass'])) {
$Nama = $_SESSION['Nama'];
if ($Nama == "kajari"){
?><?PHP
include("../index.cma.db.php");
include("../index.embed.php");
include("../index.globalconfig.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(images/index.jpg);
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
}
.style1 {
	color: #FFFFFF;
	font-weight: bold;
}
-->
iframe {
    background-color: transparent;
}
</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="#004000"><table width="100%"  border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td bgcolor="#669900"><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></td>
          </tr>
        </table>
        <table width="100%"  border="0" cellspacing="6" cellpadding="6">
          <tr>
            <td><span class="style1">SELAMAT DATANG <?PHP echo $kepada; ?> </span></td>
          </tr>
        </table></td>
      </tr>
      <tr>
        <td><table width="100%"  border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td bgcolor="#FFFFFF"><table width="100%"  border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td><div class="drop">
                    <ul class="drop_menu">
                      <li><a href='#'><strong>HOME</strong></a>
                          <ul>
                            <li><a href='?g=beranda&i=index'>HALAMAN PEMANTAUAN</a></li>
                            <li><a href='../admin/index.keychange.php?user=kajari' 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>PEMBINAAN</strong></a>
                          <ul>
                            <li><a href="?g=pembinaan&i=index" title="KEPEGAWAIAN">KEPEGAWAIAN</a></li>
							<li><a href="?g=suratmasuk&i=index&jenis=1" title="DAFTAR SURAT MASUK">DAFTAR SURAT MASUK</a></li>
							<li><a href="?g=suratkeluar&i=index&jenis=b&filter=0" title="DAFTAR SURAT KELUAR">DAFTAR SURAT KELUAR</a></li>
							<li><a href="../perpustakaan/index.php" title="PERPUSTAKAAN" target="_blank">PERPUSTAKAAN</a></li>
                          </ul>
                      </li>
                      <li><a href='#'><strong>INTELIJEN</strong></a>
                          <ul>
                            <li><a href="?g=infosmspublik&i=index">1. SMS PUBLIK / PENGADUAN</a></li>
                   <li><a href="?g=lapinsus&i=index" >2. LAPINSUS</a></li>
				   <li><a href="?g=lapinhar&i=index" >3. LAPINHAR</a></li>
				    <li><a href="?g=jadpamgal&i=index" >4. JADWAL PAM/GAL</a></li>
					<li><a href="?g=kirka&i=index" >5. KIRKA</a></li>
					<li><a href="?g=kartutik&i=index" >6. KARTU TIK</a></li>
					<li><a href="?g=jadwaljms&i=index" >7. JADWAL JMS</a></li>
					<li><a href="?g=tp4d&i=index" >8. INFO TP4D</a></li>
                          </ul>
                      </li>
                      <li><a href='#'><strong>PIDUM</strong></a>
                          <ul>
                            <li><a href="?g=pantauanperkara&i=index" title="PIDANA UMUM">PANTAUAN PERKARA</a></li>
							
                          </ul>
                      </li>
                      <li><a href='#'><strong>PIDSUS</strong></a>
                          <ul>
                            <li><a href="?g=penyidikanpidsus&i=index" title="SPDP">1. INFORMASI PENYIDIKAN</a></li>
                     
                          </ul>
                      </li>
                      <li><a href='#'><strong>DATUN</strong></a>
                          <ul>
                            <li><a href="../datun/index.php" title="DATUN" target="_blank">E-TATA USAHA NEGARA</a></li>
                       
                          </ul>
                      </li>
                      <li><a href='#'><strong>BARANGBUKTI & RAMPASAN</strong></a>
                          <ul>
                            <li><a href="?g=barbuk&i=index" title="RANGBUKPAS">E-BAKTI</a></li>
                          </ul>
                      </li>
                      <li><a href='#'><strong>EXTRA</strong></a>
                          <ul>
                            <li><a href="?g=pengaturan&i=index" title="PENGATURAN">PENGATURAN</a></li>
                          </ul>
                      </li>
                      <li><a href="../index.logout.php" title="LOGOUT"><strong>LOGOUT</strong></a> </li>
                    </ul>
                </div></td>
              </tr>
              
              <tr>
                <td><?PHP
$g1 = $_GET["g"];  
$i1 = $_GET["i"]; 
if($g1 == "suratmasuk"){ include("$i1.viewsuratallmasuk.php"); }
elseif($g1 == "suratkeluar"){ include("$i1.viewsuratallkeluar.php"); }
elseif($g1 == "key"){ include("$i1.key.php"); }
elseif($g1 == "tools"){ include("$i1.tools.php"); }
elseif($g1 == "barbuk"){ include("../barbuk/$i1.bball.php"); }
elseif($g1 == "pidum"){ include("$i1.pidum.php"); }
elseif($g1 == "pantauanperkara"){ include("../pidum/$i1.pantauanperkara.php"); }
elseif($g1 == "pidumtelat"){ include("$i1.pidum.telat.php"); }
elseif($g1 == "pidumpratut"){ include("$i1.pidum.pratut.php"); }
elseif($g1 == "pidumtut"){ include("$i1.pidum.tut.php"); }
elseif($g1 == "pidumeksekusi"){ include("$i1.pidum.eksekusi.php"); }
elseif($g1 == "pembinaan"){ include("$i1.pembinaan.php"); }
elseif($g1 == "pembinaanedit"){ include("$i1.pembinaan.edit.php"); }
elseif($g1 == "pembinaaneditset"){ include("$i1.pembinaan.editset.php"); }
elseif($g1 == "pembinaaneditrun"){ include("$i1.pembinaan.editrun.php"); }
elseif($g1 == "pembinaandel"){ include("$i1.pembinaan.del.php"); }
elseif($g1 == "pengaturan"){ include("$i1.pengaturan.php"); }
elseif($g1 == "hitungperkara"){ include("$i1.hitungperkara.php"); }
elseif($g1 == "infosmspublik"){ include("../intel/smscenter.inbox.php"); }
elseif($g1 == "lapinsus"){ include("../intel/inc/intel_lapinsus.php"); }
elseif($g1 == "lapinhar"){ include("../intel/inc/intel_lapinhar.php"); }
elseif($g1 == "jadpamgal"){ include("../intel/inc/intel_jadpamgal.php"); }

elseif($g1 == "kirka"){ include("../intel/inc/intel_kirka.php"); }
elseif($g1 == "kartutik"){ include("../intel/inc/intel_kartutik.php"); }
elseif($g1 == "jadwaljms"){ include("../intel/inc/intel_agendaintel.php"); }
elseif($g1 == "tp4d"){ include("../intel/inc/intel_tp4.php"); }



elseif($g1 == "penyidikanpidsus"){ include("../pidsus/inc/pidsus_penyidikan.php"); }
elseif($g1 == "beranda"){ include("$i1.help.php"); }
else{ include("index.help.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="#669900"><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\">";
}}
?>