<?php
$days = unserialize ( $query ['w_day'] );
?>
<div class="page-content">
	<div class="page-header position-relative"></div>
	<!--/.page-header-->

	<div class="row-fluid">
		<div class="span12">
			<!--PAGE CONTENT BEGINS-->





			<div class="row-fluid">
				<div class="span12">
					<div class="widget-box">
						<div class="widget-header widget-header-blue widget-header-flat">
							<h4 class="lighter">Office management Account</h4>


						</div>

						<div class="widget-body">
							<div class="widget-main">
								<div class="row-fluid">


									<div class="step-content row-fluid position-relative"
										id="step-container">
										<div class="step-pane active">

											<form class="form-horizontal" method="post" action="">
												<div class="row-fluid">
													<div class="control-group">

														<div class="control-group">
															<label class="control-label">Working Days</label>


															<div class="controls">

																<div class="span2">
																	<input name="day[monday]" value="1"
																		<?php if($days['monday'] !='') echo 'checked';?>
																		class="ace-checkbox-2" type="checkbox"> <span
																		class="lbl">Monday</span>
																</div>

																<div class="span2">
																	<input name="day[tuesday]" value="2"
																		<?php if($days['tuesday'] !='') echo 'checked';?>
																		class="ace-checkbox-2" type="checkbox"> <span
																		class="lbl">Tuesday</span>
																</div>

																<div class="span2">
																	<input name="day[wednesday]" value="3"
																		<?php if($days['wednesday'] !='') echo 'checked';?>
																		class="ace-checkbox-2" type="checkbox"> <span
																		class="lbl">Wednesday</span>
																</div>

																<div class="span2">
																	<input name="day[thursday]" value="4"
																		<?php if($days['thursday'] !='') echo 'checked';?>
																		class="ace-checkbox-2" type="checkbox"> <span
																		class="lbl">Thrusday</span>
																</div>

																<div class="span2">
																	<input name="day[friday]" value="5"
																		<?php if($days['friday'] !='') echo 'checked';?>
																		class="ace-checkbox-2" type="checkbox"> <span
																		class="lbl">Friday</span>
																</div>

																<div class="span2">
																	<input name="day[saturday]" value="6"
																		<?php if($days['saturday'] !='') echo 'checked';?>
																		class="ace-checkbox-2" type="checkbox"> <span
																		class="lbl">Saturday</span>
																</div>
															</div>
															<!-- row fluid -->
															<div class="row-fluid">
																<div class="span2"></div>
																<div class="span2">
																	<input name="day[sunday]" value="7"
																		<?php if($days['sunday'] !='') echo 'checked';?>
																		class="ace-checkbox-2" type="checkbox"> <span
																		class="lbl">Sunday</span>
																</div>
															</div>
															<!-- row fluid -->
														</div>
														<!-- /controls -->
													</div>


												</div>
												<!-- /control-group -->


												<div class="control-group">
													<label class="control-label" for="password2">Working Hours
													</label>

													<div class="controls">
														<div class="span12">
															<div class="input-append bootstrap-timepicker">
																<input id="timepicker1" type="text" class="input-small"
																	name="office[whr_am]"
																	value="<?php echo $query['whr_am'];?>" /> <span
																	class="add-on"> <i class="icon-time"></i>
																</span>
															</div>
															&nbsp;TO&nbsp;
															<div class="input-append bootstrap-timepicker">
																<input id="timepicker2" type="text" class="input-small"
																	name="office[whr_pm]"
																	value="<?php echo $query['whr_pm'];?>" /> <span
																	class="add-on"> <i class="icon-time"></i>
																</span>
															</div>
														</div>
														<!-- span12 -->
													</div>
													<!-- Controls -->
												</div>
												<!-- Control- Group -->

												<div class="control-group">
													<label class="control-label" for="password2">First Half </label>

													<div class="controls">
														<div class="span12">
															<div class="input-append bootstrap-timepicker">
																<input id="timepicker3" type="text" class="input-small"
																	name="office[first_am]"
																	value="<?php echo $query['first_am'];?>" /> <span
																	class="add-on"> <i class="icon-time"></i>
																</span>
															</div>
															&nbsp;TO&nbsp;
															<div class="input-append bootstrap-timepicker">
																<input id="timepicker4" type="text" class="input-small"
																	name="office[first_pm]"
																	value="<?php echo $query['first_pm'];?>" /> <span
																	class="add-on"> <i class="icon-time"></i>
																</span>
															</div>
														</div>
														<!-- span12 -->
													</div>
													<!-- Controls -->
												</div>
												<!-- Control- Group -->

												<div class="control-group">
													<label class="control-label" for="password2">Second Half</label>

													<div class="controls">
														<div class="span12">
															<div class="input-append bootstrap-timepicker">
																<input id="timepicker5" type="text" class="input-small"
																	name="office[second_am]"
																	value="<?php echo $query['second_am'];?>" /> <span
																	class="add-on"> <i class="icon-time"></i>
																</span>
															</div>
															&nbsp;TO&nbsp;
															<div class="input-append bootstrap-timepicker">
																<input id="timepicker6" type="text" class="input-small"
																	name="office[second_pm]"
																	value="<?php echo $query['second_pm'];?>" /> <span
																	class="add-on"> <i class="icon-time"></i>
																</span>
															</div>
														</div>
														<!-- span12 -->
													</div>
													<!-- Controls -->
												</div>
												<!-- Control- Group -->

												<div class="control-group">
													<label class="control-label">Casual Leave</label>
													<div class="controls">
														<input type="text" class="span6" required="required"
															name="office[c_leave]"
															<?php if($query['c_leave'] !=''){?>
															value="<?php echo $query['c_leave'];?>" <?php }?>>
													</div>
													<!-- /controls -->
												</div>
												<!-- /control-group -->

												<div class="control-group">
													<label class="control-label">Sick Leave</label>
													<div class="controls">
														<input type="text" name="office[s_leave]"
															required="required" class="span6"
															<?php if($query['s_leave'] != ''){?>
															value="<?php echo $query['s_leave'];?>" <?php }?>>
													</div>
													<!-- /controls -->
												</div>
												<!-- /control-group -->

												<div class="control-group">
													<label class="control-label">Earned Leave</label>
													<div class="controls">
														<input type="text" name="office[e_leave]"
															required="required" class="span6"
															<?php if($query['e_leave'] != '') {?>
															value='<?php echo $query['e_leave'];?>' <?php }?>>
													</div>
													<!-- /controls -->
												</div>
												<!-- /control-group -->




												<div class="control-group">
													<label class="control-label">Maternity Leave</label>
													<div class="controls">
														<input type="text" name="office[m_leave]"
															required="required" class="span6"
															<?php if($query['m_leave'] != '') {?>
															value='<?php echo $query['m_leave'];?>' <?php }?>>
													</div>
													<!-- /controls -->
												</div>
												<!-- /control-group -->



												<div class="control-group">
													<label class="control-label">Other Leave</label>
													<div class="controls">
														<input type="text" name="office[o_leave]" class="span6"
															<?php if($query['o_leave'] != ''){?>
															value='<?php echo $query['o_leave'];?>' <?php }?>>
													</div>
													<!-- /controls -->
												</div>
												<!-- /control-group -->


												<div class="control-group">

													<div class="controls">
														<span class="span12"> <input type="hidden" name="check"
															value="office"> <input type="hidden" name="checkday"
															value="day">
															<button type="submit" name="submit"
																class="btn btn-small btn-primary">Save</button>
														</span>
													</div>
												</div>

											</form>
										</div>
									</div>



								</div>
							</div>
							<!--/widget-main-->
						</div>
						<!--/widget-body-->
					</div>
				</div>
			</div>

			<!--PAGE CONTENT ENDS-->
		</div>
		<!--/.span-->
	</div>
	<!--/.row-fluid-->
</div>
<!--/.page-content-->


</div>
<!--/.main-content-->