<?php 
$submit_url = $file_name."?page=view"; 
$show_all_page = "page=view";
?>
<!-- search form -->
<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 for="Customer Name" class="control-label">Customer Name</label>
			<input type="text" class="form-control" id="search_customer_name" name="search_customer_name" value="<?php echo htmlspecialchars($search_customer_input);?>" placeholder="Customer Name" autocomplete="off">
		  </div>
		  <div class="col-lg-3 col-12">
			<label for="Customer Code" class="control-label">Customer Code</label>
			<input type="text" class="form-control" id="search_customer_code" name="search_customer_code" value="<?php echo htmlspecialchars($search_customer_code_input);?>" placeholder="Customer Code" autocomplete="off">
		  </div>
		  <div style="clear:both;"></div>
		  <div class="col-sm-3">
			<label for="Search" class="control-label">&nbsp;</label><br>
			<button type="submit" class="btn btn-success">Search
				<i class="fa fa-refresh fa-spin" style="display:none;" id="page_load_div"></i>
			</button>
			<button type="button" value="Show All" onclick="javascript:window.location='?<?php echo $show_all_page ?>'" class="btn btn-info">Show All</button>
		  </div>
		</div>
	</div>
</form>
<!-- /.search form -->
<script type="text/javascript">
$(document).ready(function(){
	$('#search_form').submit(function(){
		$("#submit").attr("disabled", true);
		$('#page_load_div').show();
	});
});
</script>