<?php
$page_title = "Add a User";
include('includes/header.php');
include('add-user-post.php');
?>

<!-- <div id="listing"> -->
	<h1>Add A User</h1>
	<p class="orangeText">
		<strong>Please complete the following form to add a user.</strong>
	</p>
	<p class="orangeText">
		<strong>Fields marked with an * are required!</strong>
	</p>
	<form action="<?php echo $_SERVER['REQUEST_URI']; ?>" method="post" id="postForm"  enctype="multipart/form-data" >
	<?php
		if ($strValidation != "")
		{
			echo '<div class="error">'.$strValidation.'</div>';			
		}
	?>
		<label for="fName">First Name *</label>
		<input type="text" name="fName" value="<?php if ($fName != "") echo $fName; ?>" title="Enter in the First Name" required id="fName">
		<label for="lName">Last Name *</label>
		<input type="text" name="lName" value="<?php if ($lName != "") echo $lName;  ?>" title="Enter in the Last Name" required id="lName">
		<!-- <label for="uName">User Name *</label>
		<input type="text" name="uName" value="<?php //if ($uName != "") echo $uName;  ?>" title="Enter the User Name" required id="uName"> -->
		<label for="emailA">Email Address (this is the username) *</label>
		<input type="text" name="emailA" value="<?php if ($emailA != "") echo $emailA; ?>" title="Enter the Email Address" required id="emailA">

		<label for="pswd1">Password *</label>
		<input type="password" name="pswd1" title="Enter in a password from 4 to 20 characters." required id="pswd1">
		<label for="pswd2">Confirm Password *</label>
		<input type="password" name="pswd2" title="Re-enter in the password. It must match the line above." required id="pswd2">
		<label for="security">Please select a security level *</label>
		<select name="security" id="security" title="Choose the access level for this user.">
			<!-- <option <?php if ($security == 0) echo 'selected="selected"'  ?> value="0">Please select a security level</option> -->
			<option <?php if ($security == 25) echo 'selected="selected"'  ?> value="25">Standard User</option>
			<option <?php if ($security == 50) echo 'selected="selected"'  ?> value="50">Administrator</option>
		</select>

		<input type="submit" name="editUser" value="Add User" class="buttonsLINK" title="Click here to save this user." />
		 <a class="buttonsLINK" href="user-listing.php" title="Click here to cancel this user.">Cancel </a>
	</form>
<!-- </div> -->
<?php
	include('includes/footer.php');
?>
