<?php 
$page = $_REQUEST['page'];
$submit_url = $file_name."?page=$page"; 
$show_all_page = "page=$page";
?>
<!-- search form -->
<form class="form-horizontal" action="<?php echo $submit_url;?>" method="post" name="form1" id="form1">
	<div class="form-group">
		<div class="col-sm-3">
			<label for="Email" class="col-sm-1 control-label">Email</label>
			<input type="text" class="form-control" id="email" name="email" value="<?php echo $email;?>" placeholder="Email">
		</div>
		<div class="col-sm-3">
			<div style="margin-top:25px;">
				<button type="submit" class="btn btn-primary">Search</button>
				<button type="button" value="Show All" onclick="javascript:window.location='?<?php echo $show_all_page ?>'" class="btn btn-primary">Show All</button>
			</div>
		</div>
	</div>
</form>
<!-- /.search form -->
<script type="text/javascript">
$(document).ready(function() {
	$('#created_on_from,#created_on_to').datepicker({
		changeMonth: true,
		changeYear: true,
		format: 'dd-mm-yyyy',
		yearRange: (new Date().getFullYear()-100)+ ':' + new Date().getFullYear(),
		onSelect: function(){
		}
	});
});
</script>