<!DOCTYPE HTML>
<?php 
include('config.php');
$pageid = "product";
$pagename = "Product";
$navid 	= "masterdata";
$tabid 	= "3";
?>
<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');?>

</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 style="width:180px">Kategori</td>
                        <td>
            				<select class="input w-80"  id="pt_autoid" name="pt_autoid">
			                <option value="">Semua Kategori</option>
            		        <?php 
								$sql_gol = "select * from mst_partclass ORDER BY pc_name";
								$gol_conn = $conn->query($sql_gol) or die($sql_gol);
								while($gol = $gol_conn->fetch_array()){
								?>
            			        	<option <?php if($row['pt_autoid']==$gol['pt_autoid']){ echo 'selected="selected"';}?>
                        			value="<?php echo $gol['pc_autoid']?>"><?php echo $gol['pc_name']?></option>
		                        <?php } ?>
							</select>
                        </td>
                    </tr>
                    <tr>
                    	<td colspan="2">
                        	<input type="button" class="btn btn-primary" value="Print Listing" onclick="dosubmit2('listing_print')">
                        </td>
                    </tr>
                </table>
                </div>
                
            </div>
		</div>

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

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

</html>