<?php 
$submit_url = $file_name."?page=view_ess_template"; 
$show_all_page = "page=view_ess_template";
?>
<!-- search form -->
<form class="form-horizontal" action="<?php echo $submit_url;?>" method="post" name="search_form" id="search_form">
	<div class="form-group">
	  <div class="col-sm-2">
            <label for="To" class="control-label">Title</label>
           <input type="text" autocomplete="off" class="form-control" id="search" name="search" value="<?php echo $search;?>" placeholder="Title">
        </div>
		<!--<div class="col-sm-2">
            <label for="To" class="control-label">Category</label>
            <? echo Keycode::getKeycodeListValue("category", $category, $width = "100%", "Category", "id", "code", "ess_category","","form-control select2",false,""); ?>
        </div>
		<div class="col-sm-2">
            <label for="From" class="control-label">From</label>
            <input type="text" autocomplete="off" disableautocomplete class="form-control datepicker" id="from_date" name="from_date" value="<?php (isset($from_date) && $from_date !="") ? utility::getFormatedDate($from_date) : "";?>" placeholder="DD-MM-YYYY">
        </div>
        <div class="col-sm-2">
            <label for="To" class="control-label">To</label>
            <input type="text" autocomplete="off" disableautocomplete class="form-control datepicker" id="to_date" name="to_date" value="<?php (isset($to_date) && $to_date !="") ? utility::getFormatedDate($to_date) : "";?>" placeholder="DD-MM-YYYY">
        </div>
		<div class="col-sm-2">
			<label class="control-label" for="title">Event Duration</label><br/>
			<input type="checkbox" class="flat-red return_refund" id="event" name="event" value="1" <? echo ($event == 1) ? "checked" : ""; ?> >
		</div>
		<div class="col-sm-2">
			<label class="control-label" for="title">Booking Duration</label><br/>
			<input type="checkbox" class="flat-red return_refund" id="booking" name="booking" value="1" <? echo ($booking == 1) ? "checked" : ""; ?> >
		</div>
		<div class="col-sm-1 hide">
		<label for="two_page_pdf" class="control-label">Two Page PDF</label><br>
		<input type="checkbox" class="flat-red" id="two_page_pdf" name="two_page_pdf" value="1"  <? echo ($two_page_pdf ==1) ? 'checked':''; ?>>
	  </div>-->
	  <div class="col-sm-2">
		<div style="clear:both;margin-top:25px;"></div>
			<button type="submit" class="btn btn-primary" name="submit" value="submit">Search</button>
			<button type="button" value="Show All" onclick="javascript:window.location='?<?php echo $show_all_page ?>'" class="btn btn-primary">Show All</button>
			<!--<a href="" onClick="window.print();" class="btn btn-default hide_search_div" style="float:right !important;margin-bottom:4px;"><i class="fa fa-print"></i> Print</a>-->
		</div>
	</div>
</form>
<!-- /.search form -->