<?php

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

$modalContent .= '<input type="hidden" name="op" value="'. $op .'" />
				'. $editInpID . '
				<input type="hidden" name="userActiveDate" value="'. $userActiveDate .'" />
				<input type="hidden" name="userStatus" value="'. $userStatus .'" />
				<input type="hidden" name="adminType" value="'. $adminType .'" />
				<input type="hidden" name="userLastLogin" value="'. $userLastLogin .'" />';

$modalContent .= '<div class="table-responsive">';
$modalContent .= '<table class="adminForm table table-condensed">';
$modalContent .= '<tr>
				<th>First Name:</th>
				<td><input type="text" name="userFirstName" value="'. $userFirstName .'" data-rule-required="true" data-msg-required="Please enter a First Name" /></td>
				<th>Last Name:</th>
				<td><input type="text" name="userLastName" value="'. $userLastName .'" data-rule-required="true" data-msg-required="Please enter a Last Name" /></td>
			</tr>';		
$modalContent .= '<tr>
				<th>User Name:</th>
				<td><input type="text" name="userName" value="'. $userName .'" data-rule-required="true" data-msg-required="Please enter a User Name" /></td>
				<th>Email:</th>
				<td><input type="text" name="userEmail" value="'. $userEmail .'" data-rule-required="true" data-msg-required="Please enter an Email" /></td>
			</tr>';	

$pwRequired = ((empty($userPass)) ? ' data-rule-required="true" data-msg-required="Please enter a Password"' : '');			

$modalContent .= '<tr>
				<th>User Auth:</th>
				<td>'. $userAuthLevel .'</td>
				<th>Password:</th>
				<td>
					<input type="password" id="password" name="newPass" value=""'. $pwRequired .'>
					<input type="hidden" name="userPass" value="'. $userPass .'">
					<input type="hidden" name="userSalt" value="'. $userSalt .'">
					<input type="hidden" name="userPassword" value="'. $userPassword .'" />
				</td>
			</tr>';
$modalContent .= '<tr>
				<th>User Company:</th>
				<td colspan="3">'. $userCompany .'</td>
			</tr>';	
// Last Login
if ($userLastLogin == "0000-00-00") 
	$lastLogin = 'Never';
else {
	$lastLogin = Date::convert($userLastLogin, 'Y-m-d', 'M d, Y');
}
	
// Expire Date
if ($userExpireDate == "0000-00-00") {
	$expDate = 'Never';
	$expDateCal = '';
} 
else {
	$expDate = Date::convert($userExpireDate, 'Y-m-d', 'M d, Y');
	$expDateCal = $row['userExpireDate']; 
}
	
$modalContent .= '<tr>
				<th>Last Login:</th>
				<td>' . $lastLogin . '</td>
				<th>Expires:</th>
				<td>
					<input type="text" name="userExpireDate" id="userExpireDate" readonly="readonly" class="datepicker dateField" value="' . $expDateCal . '" />
				</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 -->';

?>