    	<?php if($status=="ok"){ ?>
		<div class="alert alert-success alert-dismissible fade show mx-2 my-2" role="alert">
				 <strong>Saved!</strong> Data Berhasil di Simpan.
					  <button type="button" class="close" data-dismiss="alert" aria-label="Close">
				    	<span aria-hidden="true">&times;</span>
					  </button>
		</div>
		<?php }?>
    
        <table class="tbl-input">
        <tbody>
			<tr>
            	<td style="width:200px">Kategori</td>
                <td>
            	<select class="input" name="pt_autoid" id="pt_autoid">
                <option value="">Pilih Kategori</option>
                <?php
                $sqlpc = "select * from mst_parttype order by pt_name";
				$pc_con = $conn->query($sqlpc) or die($sqlpc);
				while($rpc = $pc_con->fetch_assoc()){
				?>
                	<option <?php if($pt_autoid==$rpc['pt_autoid']){echo "selected='selected'";}?> 
                    value="<?php echo $rpc['pt_autoid']?>"><?php echo $rpc['pt_code']?> | <?php echo $rpc['pt_name']?></option>
                <?php } ?>
                </select>
                </td>
            </tr>
            <tr style="display:none">
                <td>Kode Sub Kategori</td>
                <td>
                    <input type="hidden" id="pc_code" class="input w300" style="width:80%"
                    name="pc_code" value="<?php echo $pc_code?>">
                </td>
            </tr>
            <tr>
                <td>Nama Sub Kategori</td>
                <td>
                    <input type="text" id="pc_name" class="input w300" style="width:80%"
                    name="pc_name" value="<?php echo $pc_name ?>">
                </td>
            </tr>
            <tr>
            	<td colspan="2" class="tl">

	                <input type="button" class="btn btn-sm btn-success" 
                    value="<?php echo $act_desc?>"  onclick="valid_save('save')">
                    <input type="hidden" name="act" value="<?php echo $act?>">
                    <input type="hidden" name="autoid" id="autoid" value="<?php echo $autoid?>">
					<input type="button" class="btn btn-dark btn-sm" value="Back" onclick="dosubmit('index<?php echo $page_filter?>')">
                </td>
            </tr>
		</tbody>
		</table>