<!DOCTYPE HTML>
<?php 
include('config.php');

$pagename 	= "Jurnal - Biaya";
$tabid 		= "1";
?>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title><?php echo $pagename?></title>
    <?php include('../../common/script_css.php');?>
    <script>
		$().ready(function(e) {
            getrecord(1);
			    
        });
	</script>
</head>
<body onLoad="full_screen()">
<form id="iform">
    <div class="wrapper">
        <!-- Sidebar  -->
		<?php include('../../sys/sidenav.php');?>

        <!-- Page Content  -->
        <div id="content_wrapper" class="mt-0">
			<?php include('../../sys/top_menu.php')?>
            <div class="px-3">
				<div id="tabheader">
				<?php include('tabheader.php')?>
                </div>
                
			    <div class=" tl div_button py-2">
					<div class="row pt-1">
                    	<div class="col-sm-6">
                        <input type="button" class="btn btn-primary btn-sm" value="Input Biaya" onclick="dosubmit('getautoid?type=r')">
						</div>
                        <div class="col-sm-6 tr">
					    	<input type="text" class="input prevent_key" id="q" name="q"  placeholder="Cari" onKeyUp="getrecord('1')">            
<select class="input" name="f1" id="f1">
							<option value="">All Outlet</option>
                                <?php
								if($user_outlet){
									$query = " WHERE outlet_autoid = '$user_outlet'";
									}
                                $sql = "select * from mst_outlet ";
								$dcon = $conn->query($sql) or die($sql);
								while($rst = $dcon->fetch_assoc()){
								?>
                                <option value="<?php echo $rst['outlet_autoid']?>"><?php echo $rst['outlet_name']?></option>
								<?php } ?>
                            </select>
						</div>
                	</div>
			    </div>

                <div id="output" class="bg_white pb-2">

                </div>
            </div>
        </div>
        
    </div><!-- end wrapper -->
</form>
</body>

</html>