<?PHP
session_start();
if(isset($_SESSION['Nama']) and isset($_SESSION['Pass'])) {
$Nama = $_SESSION['Nama'];
if ($Nama == "kaurtu"){
?><?PHP
include("../index.cma.db.php");
include("../index.globalconfig.php");
$query = "Select * from $mytable"; 
$result = mysql_query($query); 
if($row = mysql_fetch_array($result)){
$query = "Select * from tab_surat where s_id = '1'"; 
$result = mysql_query($query); 
if($row2 = mysql_fetch_array($result)){ 
$tabler = $row2['s_nama'];
?>
<!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;
}
-->
</style>
 <link rel="stylesheet" href="images/jquery-ui.css">
  <script src="images/jquery-1.12.4.js"></script>
  <script src="images/jquery-ui.js"></script>
  <script>
  $( function() {
    $( "#datepicker" ).datepicker();
	dateFormat:"%d/%m/%Y"
  } );
  </script>
<script language="javascript" type="text/javascript">
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>
<script type="text/javascript">
function printF(printData)
{
var a = window.open ('', '',"status=1,scrollbars=1, width=900,height=600");
a.document.write(document.getElementById(printData).innerHTML.replace(/<a\/?[^>]+>/gi, ''));
a.document.close();
a.focus();
a.print();
a.close();
}
</script>
</head>

<body>
<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="0" cellpadding="0">
  <tr>
    <td><table width="100%"  border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td bgcolor="#004000"><table width="100%"  border="0" cellspacing="6" cellpadding="6">
          <tr>
            <td><div align="left"><span class="style1">SELAMAT DATANG OPERATOR TATA USAHA </span></div></td>
            </tr>
        </table></td>
      </tr>
      <tr>
        <td><table width="100%"  border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td bgcolor="#FFFFCC"><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=beranda&i=index'>BERANDA & NOTIFIKASI</a></li>
							<li><a href='index.pencarian.php'>PENCARIAN SURAT</a></li>
							
                            <li><a href='../admin/index.keychange.php?user=kaurtu' onclick="NewWindow(this.href,'mywin','600','300','yes','center');return false" onfocus="this.blur()">UBAH PASSWORD</a></li>
                          </ul>
                      </li>
					
					     <li><a href='#'><strong>EDIT SURAT KELUAR</strong></a>
                          <ul>
                     
							<li><a href="?g=editsuratkeluar&i=index&jenis=b&filter=1" title="BK-">1. SURAT BIASA KELUAR</a></li>
                            <li><a href="?g=editsuratkeluar&i=index&jenis=b&filter=2" title="SD-">2. SURAT DALAM</a></li>
                           <li><a href="?g=editsuratkeluar&i=index&jenis=r&filter=0" title="R-">3. RAHASIA</a></li>
        					 <li><a href="?g=editsuratkeluar&i=index&jenis=sp&filter=0" title="SP-">4. SURAT PERINTAH</a></li>
							  <li><a href="?g=editsuratkeluar&i=index&jenis=sk&filter=0" title="SK-">5. SURAT KEPUTUSAN</a></li>
							  <li><a href="?g=editsuratkeluar&i=index&jenis=tar&filter=0" title="SK-">6. SURAT PENGANTAR</a></li>
						  </ul>
                      </li>
					
               
            
					    <li><a href='#'><strong>EDIT SURAT MASUK</strong></a>
                          <ul>
                     
							<li><a href="?g=editsuratmasuk&i=index&jenis=1" title="HOME">1. SURAT BIASA</a></li>
                            <li><a href="?g=editsuratmasuk&i=index&jenis=2" title="HOME">2. SURAT DALAM</a></li>
                           <li><a href="?g=editsuratmasuk&i=index&jenis=3" title="HOME">3. SPDP</a></li>
                           <li><a href="?g=editsuratmasuk&i=index&jenis=4" title="HOME">4. NOTA DINAS</a></li>
                           <li><a href="?g=editsuratmasuk&i=index&jenis=5" title="HOME">5. KEPUTUSAN</a></li>
                           <li><a href="?g=editsuratmasuk&i=index&jenis=6" title="HOME">6. SURAT PERINTAH</a></li>
                           <li><a href="?g=editsuratmasuk&i=index&jenis=7" title="HOME">7. PENGANTAR</a></li>
                           <li><a href="?g=editsuratmasuk&i=index&jenis=8" title="HOME">8. RAHASIA</a></li>
                         <li><a href="?g=editsuratmasuk&i=index&jenis=9" title="HOME">9. UNDANGAN</a></li>
						  </ul>
                      </li>
					
               
                 
                  
                      <li><a href='../index.logout.php'><strong>LOGOUT</strong></a>
               
                      </li>
               
                    </ul>
                </div></td>
              </tr>
            </table>
            <table width="100%"  border="0" cellspacing="8" cellpadding="8">
              <tr>
                <td><?PHP
$g1 = $_GET["g"];  
$i1 = $_GET["i"]; 
if($g1 == "beranda"){ include("index.kaur.help.php"); }
elseif($g1 == "editsuratmasuk"){ include("$i1.kaur.viewsuratmasuk.edit.php"); }
elseif($g1 == "editsuratkeluar"){ include("$i1.kaur.viewsuratkeluar.edit.php"); }
else{ include("index.kaur.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="#FF6600"><table width="100%"  border="0" cellspacing="4" cellpadding="4">
      <tr>
        <td><strong><?php echo $satker; ?> | <?php echo $alamat; ?></strong></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\">";
}}
?>
