<?PHP
session_start();
if(isset($_SESSION['Nama']) and isset($_SESSION['Pass'])) {
$Nama = $_SESSION['Nama'];
if ($Nama == "bukutamu"){
?>
<?PHP
include("../index.globalconfig.php");

?>
<!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;
	background-color: #FF6600;
}
-->
</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="#FF9900"><table width="100%"  border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td bgcolor="FFCC00"><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_kuning.swf">
                <param name="quality" value="high">
                <embed src="../themes/top_kuning.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><strong>OPERATOR BUKU TAMU </strong></td>
          </tr>
        </table></td>
      </tr>
      <tr>
        <td bgcolor="#CCCCCC"><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='index.tamu.php?g=bukutamu&i=index'>BUKU TAMU</a></li>
				<li><a href='tamu_post.php' target="_blank">ISI BUKU TAMU</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="#FFFFFF"><table width="100%"  border="0" cellspacing="6" cellpadding="6">
              <tr>
                <td width="47%"><div align="center"><img src="images/tamu.png" width="600" height="200"></div></td>
                <td width="53%"><table width="100%"  border="0" cellspacing="2" cellpadding="2">
                  <tr>
                    <td colspan="2"><strong>Cara Pakai Buku Tamu dengan Fasilitas Kamera. </strong></td>
                  </tr>
                  <tr>
                    <td width="5%">1. </td>
                    <td width="95%">Klik menu Isi Buku Tamu. Klik Allow untuk mengaktifkan izin kamera pada Flash. Arahkan Kamera ke Tamu. Lalu Klik Ambil Foto. Jika hasil buruk klik Foto Ulang. Jika sudah Baik klik Upload Foto. (KLIK UPLOAD FOTO WAJIB AGAR TERSIMPAN DALAM DATABASE. Jika Tidak dilakukan Aplikasi Akan Error </td>
                  </tr>
                  <tr>
                    <td>2. </td>
                    <td>Isikan Identitas Tamu Tersebut. Sesuai dengan KTP/Indentitas Berlaku Lainnya. </td>
                  </tr>
                  <tr>
                    <td>3. </td>
                    <td>Simpan dan Cetak menggunakan Printer (Bluetooth ataupun Wifi milik anda) </td>
                  </tr>
                  <tr>
                    <td>4. </td>
                    <td>Serahkan Hasil Cetak untuk ditempelkan pada Dada Kiri Tamu. (Bahan cetakan dapat berupa kertas / kertas stiker) </td>
                  </tr>
                  <tr>
                    <td colspan="2">&nbsp;</td>
                  </tr>
                  <tr>
                    <td colspan="2"><a href="tamu_post.php" class="menubin" target="_blank">START HERE </a></td>
                  </tr>
                  <tr>
                    <td colspan="2">&nbsp;</td>
                  </tr>
                </table></td>
              </tr>
              <tr>
                <td colspan="2">                  <table width="100%"  border="0" cellspacing="8" cellpadding="8" class="panel">
                    <tr>
                      <td><?PHP
$g1 = $_GET["g"];  
$i1 = $_GET["i"]; 
if($g1 == "persuratan"){ include("$i1.persuratan.php"); }
elseif($g1 == "bukutamu"){ include("$i1.bukutamu.php"); }
elseif($g1 == "bukutamudel"){ include("$i1.bukutamu.del.php"); }
else{ include("index.bukutamu.php"); }
?></td>
                    </tr>
                  </table></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>&nbsp;</td>
      </tr>
      <tr>
        <td><center><?php echo $satker; ?> | <?php echo $alamat; ?></center></td>
      </tr>
      <tr>
        <td>&nbsp;</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\">";
}}

?>