<?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();

include 'lib/function_query.php';


?>

<html>
    <head >
	<title>PNPM MANDIRI - Rekomendasi</title>
        <LINK rel="icon" href="images/icon.png" type="image/png">
        <LINK rel="shortcut icon" href="images/icon.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">
        <LINK rel="stylesheet" type="text/css" href="css/default.css">   
        
		<script type="text/javascript" src="js/jquery.min.js"></script>
        <SCRIPT type="text/javascript" language="JavaScript" src="js/jquery.js"></SCRIPT>
        <script type='text/javascript' language="JavaScript" src='js/jquery.ajaxQueue.js'></script>
        <script type='text/javascript' language="JavaScript" src='js/jquery.bgiframe.min.js'></script>
        <script type='text/javascript' language="JavaScript" src='js/jquery.ui.datepicker.js'></script>
        <script type='text/javascript' language="JavaScript" src='js/thickbox-compressed.js'></script>
        <script type='text/javascript' language="JavaScript" src='js/localdata.js'></script>
        <script type='text/javascript' language="JavaScript" src='js/jquery.ui.core.js'></script>
        <SCRIPT type='text/javascript' language="JavaScript" src='js/floatingtable.js'></SCRIPT>
        <SCRIPT type='text/javascript' language="JavaScript" src='js/jquery-1.8.2.js'></SCRIPT>
        <SCRIPT type='text/javascript' language="JavaScript" src='js/jquery-ui.js'></SCRIPT>
        <SCRIPT type='text/javascript' language="JavaScript" src='js/jquery.table.addrow.js'></SCRIPT>
        <script type='text/javascript' language="JavaScript" src='js/jquery.autocomplete.js'></script>
		<script type="text/javascript" src="js/autoNumeric.js"></script>
		<script type="text/javascript" src="js/numeral.js"></script>

        <link rel="stylesheet" type="text/css" href="css/jquery.gritter.css" />
        <link rel="stylesheet" type="text/css" href="css/template.css" />
        <LINK rel="stylesheet" type="text/css" href="css/tabbar.css">
        <link rel="stylesheet" type="text/css" href="css/jquery.autocomplete.css" />
        <link rel="stylesheet" type="text/css" href="css/jquery-ui.css" /-->

		<SCRIPT type="text/javascript" language="JavaScript" src="js/jquery.js"></SCRIPT>
        <script type='text/javascript' language="JavaScript" src='js/jquery.ajaxQueue.js'></script>
        <script type='text/javascript' language="JavaScript" src='js/jquery.bgiframe.min.js'></script>
        <script type='text/javascript' language="JavaScript" src='js/jquery.ui.datepicker.js'></script>
        <script type='text/javascript' language="JavaScript" src='js/jquery.autocomplete.js'></script>
        <script type='text/javascript' language="JavaScript" src='js/thickbox-compressed.js'></script>
        <script type='text/javascript' language="JavaScript" src='js/localdata.js'></script>
        <script type='text/javascript' language="JavaScript" src='js/jquery.ui.core.js'></script>
        <SCRIPT type='text/javascript' language="JavaScript" src='js/floatingtable.js'></SCRIPT>
        <SCRIPT type='text/javascript' language="JavaScript" src='js/jquery-1.8.2.js'></SCRIPT>
        <SCRIPT type='text/javascript' language="JavaScript" src='js/jquery-ui.js'></SCRIPT>
        <SCRIPT type='text/javascript' language="JavaScript" src='js/jquery.table.addrow.js'></SCRIPT>
        <script type='text/javascript' language="JavaScript" src='js/jquery.autocomplete.js'></script>
		<script type="text/javascript" src="js/autoNumeric.js"></script>
		<script type="text/javascript" src="js/numeral.js"></script>

        <link rel="stylesheet" type="text/css" href="css/jquery.gritter.css" />
        <link rel="stylesheet" type="text/css" href="css/template.css" />
        <LINK rel="stylesheet" type="text/css" href="css/tabbar.css">
        <link rel="stylesheet" type="text/css" href="css/jquery-ui.css" />
        <link rel="stylesheet" type="text/css" href="css/jquery.autocomplete.css" />
        <link rel="stylesheet" type="text/css" href="css/semantic.css">
        <LINK rel="stylesheet" type="text/css" href="css/default.css">
        
        
		<script type="text/javascript">
			jQuery(function($) {
			    $('.auto').autoNumeric('init');
			});
			
			
		</script>
		<style>
			.auto {
				text-align:right;
			}
		</style>
        <script> 
            
            $(function() {
                $( ".tanggal" ).datepicker({
                    dateFormat:'yy-mm-dd',
                    changeMonth :true,
                    changeYear :true
                });
                
                
            });
            
            $().ready(function() {

                function log(event, data, formatted) {
                    $("<li>").html( !data ? "No match!" : "Selected: " + formatted).appendTo("#result");
                }
                function formatItem(row) {
                    return row[0] + " (<strong>id: " + row[1] + "</strong>)";
                }
                function formatResult(row) {
                    return row[0].replace(/(<.+?>)/gi, '');
                }

                
                $("#clear").click(function() {
                    $(":input").unautocomplete();
                });
            });

            
        </script>

    </head>

    <body class="BODY">
         <!--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/logo.png" width = "80" align="left" hspace="5" />
                                <font color=black>
                                <div class="SUBTITLE_SIM" >&nbsp</div>
                                <div class="TITLE_SIM" >PNPM MANDIRI</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>
                 <!--iframe src="includes/menu.php" width="100%" scrolling="no"></iframe-->
                     <?php //include('includes/menu.php');?>
                 </td>
             </tr>
             
             <tr>
                 <td>
                     <?php
                     if (file_exists("includes/" . $_GET["p"] . ".php")) {
                                                  
                        include("includes/" . $_GET["p"] . ".php");
                        exit;
                    } else {
                        echo "File tidak tersedia!";
                    }
                     ?>
                 </td>
             </tr>
         </table>

    </body>

</html>
