<?php 
$submit_url = $file_name."?page=view"; 
$show_all_page = "page=view";

$group_number_input = isset($_REQUEST['group_number']) ? $_REQUEST['group_number'] : "";
?>

<form class="form-horizontal" action="<?php echo $submit_url;?>" method="post" name="search_form" id="search_form">
	<div class="card-body">
		<div class="row">
		  
		  <div class="col-lg-3 col-12">
			<label class="control-label">Group Number</label>
			<input type="text" 
			       class="form-control" 
			       name="group_number" 
			       value="<?= htmlspecialchars($group_number_input); ?>" 
			       placeholder="Set Number" 
			       autocomplete="off">
		  </div>
		  <div class="col-lg-3 col-12">
				<label class="control-label">Part Number</label>
				<?= $gsi->getPartNumberList("part_id", $part_id_input, "100%", false, "form-control select2 part_select", ""); ?>
			</div>

		  <div class="col-sm-3">
			<label class="control-label">&nbsp;</label><br>
			<button type="submit" class="btn btn-success">Search</button>
			<button type="button" onclick="window.location='?<?=$show_all_page?>'" class="btn btn-info">Show All</button>
		  </div>

		</div>
	</div>
</form>