<?php

$modalContent = ''; 
$modalContent .= '<div class="row"><div class="col-xs-12">';
	
$modalContent .= '<input type="hidden" name="op" value="'. $op .'" />
				'. $editInpID . '
				<input type="hidden" name="adminType" value="'. $adminType .'" />
				<input type="hidden" name="projectDisp" value="'. $projectDisp .'" />
				<input type="hidden" name="page" value="'. $_POST['page'] .'" />
				<input type="hidden" name="section" value="'. $_POST['section'] .'" />';

$modalContent .= '<div class="table-responsive">';
$modalContent .= '<table class="adminForm table table-condensed">';
$modalContent .= '<tr>
				<th class="col-sm-2">Name:</th>
				<td class="col-sm-4">
					<input type="text" name="projectName" value="'. $projectName .'" data-rule-required="true" data-msg-required="Please enter a Project Name" />
					<div class="row">
						<div class="col-sm-4"><input type="checkbox" name="projectCurrent" value="1" style="width: 25px"'. $currentCheck .' /><strong>Current</strong></div>
						<div class="col-sm-8"><input type="checkbox" name="projectMaint" value="1" style="width: 25px"'. $maintCheck .' /><strong>Covered by Maintenance?</strong></div>
					</div>	
				</td>
				<th class="col-sm-2">Status:</th>
				<td class="col-sm-4">'. $projectStatus .'</td>
			</tr>';	
$modalContent .= '<tr>
				<th>Category:</th>
				<td>'. $projectCat .'</td>
				<th>Type:</th>
				<td>'. $projectType .'</td>
			</tr>';				
				
$modalContent .= '<tr>
				<th>Client:</th>
				<td>'. $projectClient .'</td>
				<th>Priority:</th>
				<td><select name="priority" data-rule-required="true" data-msg-required="Please Select Priority">'. $projectPriority .'</select></td>
			</tr>';	
$modalContent .= '<tr>
				<th>Website:</th>
				<td colspan="3"><input type="text" name="website" value="'. $website .'" style="width: 570px" /></td>
			</tr>';	
$modalContent .= '<tr>
				<th>Description:</th>
				<td colspan="3"><textarea name="projectDesc" style="width: 570px; height: 100px;">'. $projectDesc .'</textarea></td>
			</tr>';
/*$modalContent .= '<tr>
				<th>FTP/Account Information:</th>
				<td colspan="3"><textarea name="loginfo" style="width: 570px; height: 100px;">'. $loginfo .'</textarea></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="projectProgress" name="projectProgress" type="text" value="'. $projectProgress .'" />% Complete</div>
				</td>
			</tr>';
$modalContent .= '<tr>
			<th>Start Date:</th>
				<td><input type="text" name="projectStart" id="projectStart" class="datepicker dateField" value="' . $projectStart . '" data-rule-required="true" data-msg-required="Please Select a Start Date" /></td>
				<th>Target Completion:</th>
				<td><input type="text" name="projectTargetComp" id="projectTargetComp" class="datepicker dateField" value="' . $projectTargetComp . '" /></td>
			</tr>';
$modalContent .= '<tr>
				<th>Estimate:</th>
				<td>
					<input type="text" name="projectTimeEstimate" value="' . $projectTimeEstimate . '" style="width: 50px" /> hours<br>
					'. $projectEstimate .'
					<input type="hidden" name="existEstimateID" value="' . $estID . '" style="width: 50px" />
				</td>
				<th>Rate:</th>
				<td>&#36;<input type="text" name="projectRate" value="' . $projectRate . '" style="width: 50px" />/hour</td>
			</tr>';
$modalContent .= '<tr>
				<th>Rate Plan:</th>
				<td colspan="3">
					'. $billRate .'
					<input type="hidden" name="existRate" value="'. $currentRateID .'">
					<input type="hidden" name="rateHist" value="'. $rateHistory .'">
				</td>
			</tr>';	
$modalContent .= '<tr>
				<th>Amount:</th>
				<td>&#36;<input type="number" name="projectAmount" value="' . $projectAmount . '" /></td>
				<th>Outstanding:</th>
				<td>&#36;' . $outstandingAmount . '</td>
			</tr>';	
		
$modalContent .= '</table>';
$modalContent .= '</div><!-- /table-responsive -->';

 $modalContent .= '<input type="hidden" name="loginfo" value="'. $loginfo .'">';

$modalContent .= '<p style="text-align: center"><input type="submit" name="submit" value="'. $subBtn .'" /></p>';
$modalContent .= '</div></div><!-- /.row -->';

?>