<commit_before>
<h3>
	Timesheets
	<?php 
	if(isset($_GET['timeFrame']))
	{
		switch($_GET['timeFrame'])
		{
			case 'year': $reportTitle = "Displaying hours for a year starting from " . date('M, Y', strtotime($data['startDateFormatted']));
			break;
			case 'month': $reportTitle = "Displaying hours for the month of " . date('M, Y', strtotime($data['startDateFormatted']));
			break;
			case 'week':$reportTitle = "Displaying hours for 7 days starting " . date('d-M-Y', strtotime($data['startDateFormatted']));
			break;
			default: $reportTitle = "Please click 'Search' to display hours";
		}
	}else
	{
		$reportTitle = "Please click 'Search' to display hours";
	}
	?>
	<small> <?php echo $reportTitle; ?>
	</small>
</h3>

<div class="panel panel-default">
	<div class="panel-heading">Search</div>
	<div class="panel-body">
		<form class="form-horizontal" role="form" action="#" method="GET">
			<input type="hidden" name="location" value="timesheetPage"> <input
				type="hidden" name="action" value="report">

			<div class="form-group">
				<label class="col-lg-2 control-label">Display</label>
				<div class="col-lg-8 inline">
					<select class="form-control" name="timeFrame">
						<?php 
						$weekSelected = false;
						$monthSelected = false;
						$yearSelected = false;
						if(isset($_GET['timeFrame']))
						{
							if($_GET['timeFrame'] == 'week')
							{
								$weekSelected = true;
							}else if($_GET['timeFrame'] == 'month')
							{
								$monthSelected = true;
							}else if($_GET['timeFrame'] == 'year')
							{
								$yearSelected = true;
							}
						}
						?>
						<option value="week" <?php if($weekSelected){echo "selected";}?>>Week</option>
						<option value="month" <?php if($monthSelected){echo "selected";}?>>Month</option>
						<option value="year" <?php if($yearSelected){echo "selected";}?>>Year</option>
					</select>
				</div>
			</div>

			<div class="form-group">
				<label for="addHoursDate" class="col-lg-2 control-label">Start Date</label>

				<div class="col-lg-8 inline">
					<div class="input-group">
						<input type="text" class="form-control" name="startDate"
							id="displayHours_datePicker"> <span class="input-group-btn">
							<button type="submit"
								class="btn btn-default">Search
							</button>
						</span>
					</div>
				</div>
			</div>
		</form>
	</div>
</div>

<?php 
foreach($data['timesheetData']->toArray() as $tableUser => $tableData)
{
	include 'timesheetDisplayHours_TableTemplate.php';
}
?>

<?php 
$datePickerDate = "";
if(isset($_GET['startDate']))
{<commit_msg>Moved header on timesheet page<commit_after>
<h3>Timesheets</h3>

<div class="panel panel-default">
	<div class="panel-heading">Search</div>
	<div class="panel-body">
		<form class="form-horizontal" role="form" action="#" method="GET">
			<input type="hidden" name="location" value="timesheetPage"> <input
				type="hidden" name="action" value="report">

			<div class="form-group">
				<label class="col-lg-2 control-label">Display</label>
				<div class="col-lg-8 inline">
					<select class="form-control" name="timeFrame">
						<?php 
						$weekSelected = false;
						$monthSelected = false;
						$yearSelected = false;
						if(isset($_GET['timeFrame']))
						{
							if($_GET['timeFrame'] == 'week')
							{
								$weekSelected = true;
							}else if($_GET['timeFrame'] == 'month')
							{
								$monthSelected = true;
							}else if($_GET['timeFrame'] == 'year')
							{
								$yearSelected = true;
							}
						}
						?>
						<option value="week" <?php if($weekSelected){echo "selected";}?>>Week</option>
						<option value="month" <?php if($monthSelected){echo "selected";}?>>Month</option>
						<option value="year" <?php if($yearSelected){echo "selected";}?>>Year</option>
					</select>
				</div>
			</div>

			<div class="form-group">
				<label for="addHoursDate" class="col-lg-2 control-label">Start Date</label>

				<div class="col-lg-8 inline">
					<div class="input-group">
						<input type="text" class="form-control" name="startDate"
							id="displayHours_datePicker"> <span class="input-group-btn">
							<button type="submit" class="btn btn-default">Search</button>
						</span>
					</div>
				</div>
			</div>
		</form>
	</div>
</div>

<?php 
if(isset($_GET['timeFrame']))
{
	switch($_GET['timeFrame'])
	{
		case 'year': $reportTitle = "Displaying hours for a year starting from " . date('M, Y', strtotime($data['startDateFormatted']));
		break;
		case 'month': $reportTitle = "Displaying hours for the month of " . date('M, Y', strtotime($data['startDateFormatted']));
		break;
		case 'week':$reportTitle = "Displaying hours for 7 days starting " . date('d-M-Y', strtotime($data['startDateFormatted']));
		break;
		default: $reportTitle = "Please click 'Search' to display hours";
	}
}else
{
	$reportTitle = "Please click 'Search' to display hours";
}
?>
<h4 class="textAlignCenter"> <?php echo $reportTitle; ?>
</h4>

<?php 
foreach($data['timesheetData']->toArray() as $tableUser => $tableData)
{
	include 'timesheetDisplayHours_TableTemplate.php';
}
?>

<?php 
$datePickerDate = "";
if(isset($_GET['startDate']))
{
{'fraction_non_alphanumeric': 0.19207613128762865, 'fraction_numerical': 0.003107399495047582, 'mean_word_length': 3.6818181818181817, 'pattern_counts': {'":': 0, '<': 101, '<?xml version=': 0, '>': 103, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2142392', 'n_tokens_mistral': 2119, 'n_tokens_neox': 1685, 'n_words': 358}