<?php
	$data = getDayPlanData($dayDate);
	$currentDate = new DateTime();
	$currentDate->setTime(0, 0);
	$future = $dayDate >= $currentDate;
?>
<form id="frmPlanner" name="frmPlanner">
	<div class="container forms-grids">
		<div class="row forms-grid">
			<div class="col-md-12">
				<p></p>
				<h3 class="title"><i class="fa fa-calendar-week" aria-hidden="true"></i>&nbsp;Planner</h3>
				<p></p>
			</div>
		</div>
		<?php if ($future) { ?>
		<div class="row forms-grid">
			<div class="col-md-8">
				<h4><span class="error"><i class="fa fa-exclamation-triangle"></i></span>&nbsp;Please click on "Save Changes" to save any changes made.</h4>
			</div>
			<div class="col-md-2 forms-grid">
				<input id="btnSavePlan" type="button" onclick="savePlan('<?php echo($dayDate->format('Y-m-d')); ?>');" value="Save Changes" class="submit"/>
			</div>
			<div class="col-md-2 forms-grid">
				<input id="btnSMSNotify" type="button" onclick="SMSNotify('<?php echo($dayDate->format('Y-m-d')); ?>');" value="Send SMS's" class="submit"/>
			</div>
		</div>
		<?php } ?>
		<div class="row forms-grid">
			<div class="col-md-12">
				<table class="planner">
					<tr class="header">
						<td width="<?php echo($timewidth); ?>%">Time</td>
						<?php printTeams(1); ?>
					</tr>
					<?php printTimes($data); ?>
				</table>
			</div>
		</div>		
		
	</div>
</form>