<?php

	$modalContent = ''; 
	$modalContent .= '<div class="row"><div class="col-xs-12">';
	
	$modalContent .= '<input type="hidden" name="op" value="'. $op .'" />
				<input type="hidden" name="page" value="'. $page .'" />
				<input type="hidden" name="adminType" value="'. $adminType .'" />';
				
	$modalContent .= '<div class="table-responsive">';			
	$modalContent .= '<table class="adminForm table table-condensed">';
	$modalContent .= '<tr>
					<th>Task Name:</th>
					<td>'. $taskName .'</td>
					<th>Status:</th>
					<td>
						<select name="taskStatus">'. $taskStatusSelect .'</select>
						<input type="hidden" name="currentStatus" value="'. $taskStatus .'" />
					</td>
				</tr>';		
	$modalContent .= '<tr>
					<th>Client:</th>
					<td>'. $taskClient .'</td>
					<th>Priority:</th>
					<td>
						<select name="priority">'. $taskPrioritySelect .'</select>
						<input type="hidden" name="currentPriority" value="'. $taskPriority .'" />
					</td>
				</tr>';	
	$modalContent .= '<tr>
					<th>Project:</th>
					<td>'. $projectName .'</td>
					<th>&nbsp;</th>
					<td>&nbsp;</td>
				</tr>';	
	$modalContent .= '<tr>
					<th>Description:</th>
					<td colspan="4">'. $taskDesc .'</td>
				</tr>';	
	$modalContent .= '<tr>
					<th>Start Date:</th>
					<td>' . Date::convert($startDate, 'Y-m-d', 'M d, Y') . '</td>
					<th>Target Completion:</th>
					<td>' . Date::convert($dueDate, 'Y-m-d', 'M d, Y') . '</td>
				</tr>';
	$modalContent .= '<tr>
					<th>Time Estimate:</th>
					<td>' . $taskEstimate . ' hours</td>
					<th>Billable Time to Date:</th>
					<td>' . $hoursBillable . ' hours</td>
				</tr>';
	$modalContent .= '<tr>
					<th>&nbsp;</th>
					<!--<td><a href="?adminType=task&adminAct=edit&editID=' . $taskID . '" class="mgmtBtn auto">Task Admin</a></td>-->
					<td></td>
					<th>Total Time to Date:</th>
					<td>' . $hoursTotal . ' hours</td>
				</tr>';
	
	$modalContent .= '<tr>
				<th>Progress:</th>
				<td colspan="3">
					<div class="ui-slide slider" min="0" max="100" inc="1"></div>
					<div class="slider-progress"><input class="sliderValue" id="taskProgress" name="taskProgress" type="text" value="'. $taskProgress .'" />% Complete</div>
				</td>
			</tr>';
	
	$modalContent .= '</table>';
	$modalContent .= '<input type="hidden" name="currentProgress" value="'. $taskProgress .'" />';
	$modalContent .= '</div><!-- /table-responsive -->';
	
	$timeHead = '<tr>
					<th class="align-left">Date</th>
					<th class="align-left">Hours</th>
					<th class="align-left" colspan="6">Description</th>
				</tr>';
	
	$modalContent .= '<h2>Task Time</h2>';
	$modalContent .= '<div class="table-responsive">';	
	$modalContent .= '<table class="paymentInfo table table-condensed table-striped">';
	
	$modalContent .= '<tr class="newPayment">
					<td>
						<input type="hidden" name="timeID" value="" />
						<input type="hidden" name="taskID" value="'. $taskID .'" />
						<input type="hidden" name="projectID" value="'. $projectID .'" />
						<label class="small">Date</label><br>
						<input type="text" name="timeDate" id="timeDate" readonly="readonly" class="datepicker dateField" />
						<p style="padding-top: 10px; text-align: center"><input type="checkbox" name="billable" value="1" /> Billable</p>
					</td>
					<td>
						<label class="small">Time</label><br>
						<input type="text" name="timeAmount" style="width: 50px" />
					</td>
					<td colspan="6">
						<label class="small">Description</label><br>
						<textarea name="timeDesc" style="width: 98%; height: 5em;"></textarea>
					</td>
				</tr>';
	$modalContent .= '<tr><td colspan="8"><p style="text-align: center"><input type="submit" name="submit" value="'. $subBtn .'" /></p></td></tr>';
	$modalContent .= $timeHead;	
	$modalContent .= $timeInfo;
	$modalContent .= '</table>';
	$modalContent .= '</div><!-- /table-responsive -->';
	
	$modalContent .= '<p style="text-align: center"><input type="submit" name="submit" value="'. $subBtn .'" /></p>';
	$modalContent .= '</div></div><!-- /.row -->';

?>