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

$pagename 	= "User Account";
$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>
    function getrecord(hal){
		$.post('record.php',{page:hal,q:$('#q').val(),f1:$('#f1').val(),f2:$('#f2').val()},function(data){
			$('#output').html(data);
			})
		}
		$().ready(function(e) {
            getrecord(1);
        });
	</script>
</head>
<body>
<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-4">
    	        			<input type="button" class="btn btn-primary btn-sm" value="Add New Account" onClick="window.location.href='new'">
						</div>
                        <div class="col-sm-8 tr">
					    	Cari : <input type="text" class="input w-80" id="q" name="q"  placeholder="Cari Produk" onKeyUp="getrecord('1')">            
						</div>
                	</div>
			    </div>

                <div id="output" class="bg_white pb-2">
                <?php include('record.php')?>
                </div>
            </div>
        </div>
        
    </div><!-- end wrapper -->
</form>
</body>

</html>