<?PHP
session_start();
if(isset($_SESSION['Nama']) and isset($_SESSION['Pass'])) {
$Nama = $_SESSION['Nama'];
if ($Nama == "sms"){
?><?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>CASE MANAGEMENT APPLICATION | KEJAKSAAN NEGERI <?PHP echo htmlspecialchars($row['s_satker']); ?></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<LINK href="images/index.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>
<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">SMS CENTER</span></td>
          </tr>
        </table></td>
      </tr>
      <tr>
        <td><table width="100%"  border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td width="10%"><a href="index.php" class="menu">BERANDA</a></td>
            <td width="12%"><a href="smscenter.group.php" target="monitor" class="menu">KIRIM SMS GRUP </a></td>
            <td width="14%"><a href="smscenter.kirimtunggal.php" target="monitor" class="menu">KIRIM SMS SINGLE </a></td>
            <td width="11%"><a href="smscenter.inbox.php" target="monitor" class="menu">SMS MASUK </a></td>
            <td width="13%"><a href="smscenter.outbox.php" target="monitor" class="menu">SMS DALAM PROSES </a></td>
            <td width="11%"><a href="smscenter.sent.php" target="monitor" class="menu">SMS TERKIRIM </a></td>
            <td><a href="gammu/menu.php" target="monitor" class="menu">STATUS SISTEM SMS </a></td>
            <td width="10%"><a href="../index.logout.php" class="menu">LOGOUT</a></td>
          </tr>
        </table></td>
      </tr>
      <tr>
        <td><table width="100%"  border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td bgcolor="#999900"><table width="100%"  border="0" cellspacing="8" cellpadding="8">
              <tr>
                <td width="100%"><table width="100%"  border="0" cellspacing="4" cellpadding="4" class="panel">
                  <tr>
                    <td><table width="100%"  border="0" cellspacing="8" cellpadding="8">
                      <tr>
                        <td width="54%"><iframe title="status" name="status" src="smscenter.monitorservice.php" height="40" width="100%" frameborder="0" scrolling="no"></iframe></td>
                        <td width="46%">&nbsp;</td>
                      </tr>
                      <tr>
                        <td colspan="2"><table width="100%"  border="0" cellspacing="4" cellpadding="4" class="panel">
                            <tr>
                              <td width="54%"><div align="center">Apabila Indikator Sistem SMS Merah agar menyalakan dahulu di menu Status Sistem SMS. </div></td>
                              <td width="46%"><a href="../readme/index.php" target="_blank" class="menupidum">SMS TIDAK TERKIRIM ATAU ERROR? KLIK DISINI UNTUK CARA MENGATASINYA </a></td>
                            </tr>
                        </table></td>
                      </tr>
                    </table></td>
                  </tr>
                </table></td>
                </tr>
            </table>            
              <table width="100%"  border="0" cellspacing="8" cellpadding="8">
                <tr>
                  <td><table width="100%"  border="0" cellspacing="8" cellpadding="8" class="panel">
                    <tr>
                      <td height="450"><iframe title="monitor" name="monitor" height="450" width="100%" src="smscenter.inbox.php" frameborder="0" scrolling="auto"></iframe></td>
                    </tr>
                  </table></td>
                </tr>
              </table>
              <table width="100%"  border="0" cellspacing="2" cellpadding="2">
                <tr>
                  <td>&nbsp;</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><?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\">";
}}
?>
