<?php

$modalContent = ''; 
$modalContent .= '<div class="row"><div class="col-xs-12">';
$modalContent .= '<div class="table-responsive">';

$modalContent .= '<input type="hidden" name="op" value="'. $op .'" />
			<input type="hidden" name="adminType" value="'. $adminType .'" />';
$modalContent .= '<table class="adminForm table table-condensed">';
$modalContent .= '<tr>
				<th>Project Name:</th>
				<td colspan="3">'. $projectName .'</td>
			</tr>';		
$modalContent .= '<tr>
				<th class="col-sm-2">Client:</th>
				<td class="col-sm-4">'. $projectClient .'</td>
				<th class="col-sm-2">Status:</th>
				<td class="col-sm-4">'. $projectStatus .'</td>
			</tr>';	
$modalContent .= '<tr>
				<th>Description:</th>
				<td colspan="4">'. $projectDesc .'</td>
			</tr>';	
$modalContent .= '<tr>
				<th>Start Date:</th>
				<td>' . Date::convert($projectStart, 'Y-m-d', 'M d, Y') . '</td>
				<th>Target Completion:</th>
				<td>' . Date::convert($projectTargetComp, 'Y-m-d', 'M d, Y') . '</td>
			</tr>';
$modalContent .= '</table>';
$modalContent .= '</div><!-- /table-responsive -->';

$taskHead = '<tr>
				<th class="col-sm-3 align-left">Task</th>
				<th class="col-sm-4 align-left">Description</th>
				<th class="col-sm-1 align-left">Priority</th>
				<th class="col-sm-1 align-left">Start</th>
				<th class="col-sm-1 align-left">Due</th>
				<th class="col-sm-1 align-left">Status</th>
			</tr>'; 

$modalContent .= '<h2>Project Tasks</h2>';

$modalContent .= '<div class="table-responsive">';
$modalContent .= '<table class="paymentInfo table table-striped table-condensed">';
//$modalContent .= $taskHead;

$modalContent .= '<tr class="newTask">
				<td>
					<input type="hidden" name="taskID" value="" />
					<input type="hidden" name="projectID" value="'. $projectID .'" />
					<label class="small">Task Name</label>
					<input type="text" name="taskName" />
				</td>
				<td>
					<label class="small">Task Description</label><br>
					<textarea name="taskDesc"></textarea>
				</td>
				<td>
					<label class="small">Task Priority</label><br>
					<select name="priority">'. $taskPriority .'</select>
				</td>
				<td>
					<label class="small">Start Date</label><br>
					<input type="text" name="startDate" readonly="readonly" class="dateField datepicker" />
				</td>
				<td>
					<label class="small">Due Date</label><br>
					<input type="text" name="dueDate" readonly="readonly" class="dateField datepicker" />
				</td>
				<td>
					<label class="small">Task Status</label><br>
					<select name="taskStatus">'. $taskStatus .'</select>
				</td>
			</tr>';
$modalContent .= '<tr><td colspan="7"><p style="text-align: center"><input type="submit" name="submit" value="'. $subBtn .'" /></p></td></tr>';
$modalContent .= $taskHead;
$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 -->';

?>