<?php
$ROWS_PER_PAGE = 14;
$RS_NAME = "";
$ROOM_LEAP_TIME = "12:00:00";

require_once("lib/dbconn.php");
require_once("lib/form.php");
require_once("lib/functions.php");
$PID = "home";
$SC = $_SERVER["SCRIPT_NAME"];
@session_start();

if (isset($_GET["httpHeader"]) && file_exists("includes/" . $_GET["p"] . ".php")) {
    include("includes/" . $_GET["p"] . ".php");
    exit;
}

$thn1 = getFromTable("select tahun from grf_pendapatan_periode where id = 1");
$thn2 = getFromTable("select tahun from grf_pendapatan_periode where id = 2");
$thn3 = getFromTable("select tahun from grf_pendapatan_periode where id = 3");
?>

<html>
    <head>
        <title>HMS - Saranghe Living </title>
        <LINK rel="icon" href="images/aa.png" type="image/png">
  		<LINK rel="shortcut icon" href="images/aa.png" type="image/png">
        
        <link rel="stylesheet" type="text/css" href="css/components/menu.css">
        <link rel="stylesheet" type="text/css" href="css/semantic.css">
        
        <script src="js/jquery.min.js"></script>
		<script src="css/components/popup.js"></script>
		<script src="css/components/form.js"></script>
		<script src="css/components/transition.js"></script>
		<script src="css/components/dropdown.js"></script>
		<script src="js/iframe.js"></script>
    </head>

    <body bgcolor="#ffffff" >
         <!--HEADER-->
         <table width="100%" border="0" cellspacing="0" cellpadding="0">
             <tr valign="top">
                 <td  valign="absmiddle" >  
                    <table width="100%" border="0" cellspacing="0" cellpadding="0" align="right" >
                        <tr valign="middle" >
                            <td rowspan="2" height="64" align="left" background="images/top.gif"><img src="images/aa.png" width = "100" align="left" hspace="15" />
                                <font color=black>
                                <div class="SUBTITLE_SIM" >&nbsp</div>
                                <div class="TITLE_SIM" >HMS - Saranghe Living</div>
                                
                                 <div class="TITLE_SIM" >"A Little Korea in Every Corner"</div>
                                 
                                <div class="TITLE_SIM"><?php echo $kota = getFromTable("select kota from tbl_pnpm"); ?></div>
                            <td  height="64" align="left" background="images/top.gif">

                            </td>
                        </tr>
                    </table>

                </td>
             </tr>
             <!--MENU-->
             
             <tr>
                 <td>
                     <?php include('includes/menu.php');?>
                 </td>
             </tr> 
             <?php 
             if (empty($_SESSION[uid])) {
                     	echo "<script language='JavaScript'>document.location='index.php'</script>";
             } else {
			 	
			 }
             ?>
             <tr>
             	<td>
             		<div id="load_latest">
             			
             		</div>
             	</td>
             </tr>
             <tr>
             	<td>
             		<?php
			           include("includes/footer.php");
			        ?>
             	</td>
             </tr>
         </table>

       
         <br>
       
    </body>
</html>
<script type="text/javascript">
$("document").ready(function(){
	$('#load_latest').load('dashboard.php');
});
</script>
