<!DOCTYPE HTML>
<?php 
include('config.php');
$tabid 	= "2";
?>
<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>Product</td>
                    	<td>
						<select multiple="multiple" data-placeholder="All Product" name="pm_autoid[]" id="pm_autoid" class="select-autocomplete" tabindex="1" style="width:80%;">
                    		<option value="">All Product</option>
    		                <?php 
							$sqltranstype = "SELECT * FROM mst_product ORDER BY pm_name";
							$con_transtype = $conn->query($sqltranstype);
							while($intrans = $con_transtype->fetch_assoc()){
							?>
                	        <option <?php if($ven_autoid==$intrans['pm_autoid']){echo "selected='selected'";}?>
                    	    value="<?php echo $intrans['pm_autoid']?>"><?php echo $intrans['pm_name']?></option>
	    					<?php	} ?>
						</select>
 
                        </td>
                        <td></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_2')">                            
                        </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>