<?php

	$modalContent = ''; 
	$modalContent .= '<div class="row"><div class="col-xs-12">';
	
	$modalContent .= '<input type="hidden" name="op" value="'. $op .'" />
					'. $editInpID . '
					<input type="hidden" name="display" value="'. $display .'" />
					<input type="hidden" name="adminType" value="'. $adminType .'" />';
	$modalContent .= '<table class="adminForm table table-condensed">';
	$modalContent .= '<tr>
					<th>Client:</th>
					<td colspan="3">'. $servideInfoClient .'</td>
				</tr>';
	$modalContent .= '<tr>
					<th>Service:</th>
					<td><select name="svcType">'. $serviceTypes .'"</select></td>
					<th>Provider:</th>
					<td>
						<select name="svcProvider" id="svcProvider">'. $serviceProviders .'"</select>
						<div id="newProvider" style="display: none">
							<input type="text" name="newProviderName" placeholder="Service Provider Name" /><br>
							<input type="text" name="newProviderWebsite" placeholder="Service Provider Website" />
						</div>
					</td>
				</tr>';		
	
	$modalContent .= '<tr>
					<th>Website:</th>
					<td><input type="text" name="domainName" value="'. $domainName .'" /></td>
					<th>Owner:</th>
					<td>'. $serviceOwners .'</td>
				</tr>';	
	
	$modalContent .= '<tr>
					<th>Start Date</th>
					<td>
						<input class="datepicker dateField" type="text" name="svcBeginDate" id="svcBeginDate" value="' . $svcBeginDate . '" />
					</td>
					<th>End/Renew Date:</th>
					<td>
						<input class="datepicker dateField" type="text" name="svcExpDate" id="svcExpDate" value="' . $svcExpDate . '" />
					</td>
				</tr>';
	
	$modalContent .= '<tr>
					<th>Notes:</th>
					<td colspan="3"><textarea name="svcNotes" style="width: 570px; height: 75px;">'. $svcNotes .'</textarea></td>
				</tr>';
		
	$modalContent .= '</table>';
	$modalContent .= '</div><!-- /table-responsive -->';
	
	$modalContent .= '<p style="text-align: center"><input type="submit" name="submit" value="'. $subBtn .'" /></p>';
	$modalContent .= '</div></div><!-- /.row -->';
	
	$modalContent .= '<script>
		$(function () {
		  $("#svcProvider").change(function() {
			var val = $(this).val();
			if(val === "NEW") {
				$("#newProvider").slideDown();
			}
			else {
				$("#newProvider").hide();
			}
		  });
		});
	</script>'; 

?>