<!DOCTYPE HTML>
<?php 
include('config.php');
$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) {
			
			$('#fdate').datepicker({
    			format: 'dd/mm/yyyy',
	    		startDate: '-3d'
			});	
	
			$('#tdate').datepicker({
    			format: 'dd/mm/yyyy',
	    		startDate: '-3d'
			});	
			$('.select-autocomplete').select2();
		});
		
    </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">
                <table class="table my-0">
                	<tr>
                    	<td>Vendor</td>
                        <td>
						<select multiple="multiple" data-placeholder="All Vendor" name="ven_autoid[]" id="ven_autoid" class="select-autocomplete" tabindex="1" style="width:80%;">
                    		<option value="">All Vendor</option>
    		                <?php 
							$sqltranstype = "SELECT * FROM mst_vendor WHERE ven_autoid > 1 ORDER BY ven_name";
							$con_transtype = $conn->query($sqltranstype);
						while($intrans = $con_transtype->fetch_assoc()){
							?>
                	        <option <?php if($ven_autoid==$intrans['ven_autoid']){echo "selected='selected'";}?>
                    	    value="<?php echo $intrans['ven_autoid']?>"><?php echo $intrans['ven_name']?></option>
	    					<?php	} ?>
						</select>
                        </td>
                    </tr>
                	<tr>
                    	<td style="width:180px">Tanggal</td>
                        <td>
            				<input type="text" class="input" id="fdate" maxlength="10" name="fdate" value="<?php echo dtostr($tanggal)?>">
                            s/d
            				<input type="text" class="input" id="tdate" maxlength="10" name="tdate" value="<?php echo dtostr($tanggal)?>">
                        	<input type="button" class="btn btn-primary btn-sm" value="Print" onclick="dosubmit2('print_rpt_1')">                            
                        </td>
                    </tr>
                    <tr>
                    	<td colspan="2">

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

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

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

</html>