<?php 
$submit_url = $file_name."?page=view_week_schedular"; 
$show_all_page = "page=view_week_schedular";
?>
<!-- search form -->
<div class="box-header" >
<form class="form-horizontal" action="<?php echo $submit_url;?>" method="post" name="search_form" id="search_form">
	<div class="form-group">
		<div class="row">
			<div class="col-sm-3">
				<label for="Name" class="control-label">Start Date</label>
				<input type="text" class="form-control datepicker" id="weekStarting" name="weekStarting" value="<?php (isset($_SESSION['weekStarting']) && $_SESSION['weekStarting'] !="") ? utility::getFormatedDate($_SESSION['weekStarting']) : "";?>" placeholder="Start Date">
			</div>
			<? if(!isset($_SESSION['is_architect'])){?>
			<div class="col-sm-3">
				<label for="Name" class="control-label">Users</label>
				<? Admin::getAdminList("user_id_search",$user_id_search,"100%",false,"form-control select2"); ?>
			</div>
			<?}?>
			<div class="col-sm-6">
				<label for="Postcode" class="control-label">&nbsp;</label><br>
				<button type="button" class="btn btn-primary" id="update_week_date">Update</button>
				<button type="button" class="btn btn-default" id="prev_week"><< Prev Week</button>
				<button type="button" class="btn btn-default" id="this_week">This Week</button>		
				<button type="button" class="btn btn-default" id="next_week">Next Week >></button>
			</div>
			<!--<div class="col-sm-4">
				<label for="Name" class="control-label">Choose Date</label>
				<input type="text" class="form-control datepicker" id="weekStarting" name="weekStarting" value="<?php (isset($_SESSION['weekStarting']) && $_SESSION['weekStarting'] !="") ? utility::getFormatedDate($_SESSION['weekStarting']) : "";?>" placeholder="Start Date">
			</div>-->
		
			<div class="col-sm-4">
				<label for="Postcode" class="control-label">&nbsp;</label><br>
				<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>
			</div>
		</div>
	</div>
	<div style="clear:both">
	</div>
</form>
</div>
<!-- /.search form -->