<!doctype html>
<?php 
include('config.php');

$pagename = "Customer";
$tabid 	= "1";
?>
<html>
<head>
	<title>Daftar Customer</title>
    <META HTTP-EQUIV="Pragma" CONTENT="no-cache">
    <?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" value="Input Customer Baru" onclick="dosubmit('new')"  class="btn btn-primary btn-sm" >
						</div>
                        <div class="col-sm-8 tr">
			    		Cari : <input type="text" class="input" id="q" name="q" 
		                style="width:200px;display:inline-block" placeholder="Cari Customer" onKeyUp="getrecord('1')">            
				    	<select name="cust_type" id="f1" class="input" onChange="getrecord(1)">
				        	<option value="99">All Customer</option>
                            <option value="0">Reguler</option>
				            <option value="1">Reseller</option>
				        </select>
				</div>
                </div>
			    </div>

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

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

</html>