<?php 
$submit_url = $file_name."?page=view_section&document_template_id=$document_template_id"; 
$show_all_page = "page=view_section&document_template_id=$document_template_id";
?>
<!-- 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">
		  <label for="Section" class="col-sm-2 control-label">Section</label>
		  <div class="col-sm-5">
			<input type="text" class="form-control" id="section" name="section" value="<?php echo $section;?>" placeholder="Section">
		  </div>
		  <div class="col-sm-5">
			<button type="submit" class="btn btn-success">Search</button>
			<button type="button" value="Show All" onclick="javascript:window.location='?<?php echo $show_all_page ?>'" class="btn btn-info">Show All</button>
			<a class="btn btn-primary" href="index?page=view" style="float:right;">Back</a>
		   </div>
		</div>
	</div>
</form>
<!-- /.search form -->
<script type="text/javascript">
$(document).ready(function() {
	$('.select2').select2();
});
</script>