<?php
$section = 'admin';
$title = 'Administration';
include('header.php');
?>

<div id="body">
<div class="wrap">

<h2><?=$title?></h2>

<form method="post" id="frmSearch" > 
	<label for="txtSearch" class="hide">Search</label>
	<input type="text" name="txtSearch" id="txtSearch" title="Search by User Name or ID..." class="inlinelabel" style="width:195px;" />
	<button type="submit" class="search">Search</button>
</form>
<div class="buttonrow">
	<button type="button" class="add">Add New User</button>
</div>

<table class="style" cellspacing="0">
	<tr>
		<th scope="col" class="center" style="width:5px;">Active</th>
		<th scope="col">ID</th>
		<th scope="col">User Name</th>
		<th scope="col">Role</th>
		<th scope="col">Store #</th>
		<th scope="col">Email</th>
		<th scope="col" style="width:40px;">Edit</th>
		<th scope="col" style="width:60px;">Delete</th>
	</tr>
	<tr>
		<td class="userActive center">Yes</td>
		<td class="userId">4</td>
		<td class="userName">Tom</td>
		<td class="userRole">Moderator</td>
		<td class="userStore">858</td>
		<td class="userEmail">tom@golfsmith.com</td>
		<td><button type="button" class="edit">Edit</button></td>
		<td><button type="button" class="delete">Delete</button></td>
	</tr>
</table>

<div id="dialog" title="Update User">
	<p id="dialog-message">All form fields are required.</p>
	<form method="post" id="frmUsersUpdate">
	<div class="row">
		<label>Active:</label>
		<label for="radActiveYes" class="radio"><input type="radio" name="radActive" id="radActiveYes" value="1" checked="checked" /> Yes</label>
		<label for="radActiveNo" class="radio"><input type="radio" name="radActive" id="radActiveNo" value="0" /> No</label>
	</div>
	<div class="row">
		<label for="txtName">User Name:</label>
		<input type="text" name="txtName" id="txtName" style="width:200px;" />
	</div>
	<div class="row">
		<label for="txtEmail">Email:</label>
		<input type="text" name="txtEmail" id="txtEmail" style="width:200px;" />
	</div>
	<div class="row">
		<label for="txtPassword">Password:</label>
		<input type="password" name="txtPassword" id="txtPassword" style="width:200px;" />
	</div>
	<div class="row">
		<label for="txtPasswordConfirm">Retype Password:</label>
		<input type="password" name="txtPasswordConfirm" id="txtPasswordConfirm" style="width:200px;" />
	</div>
	<div class="row">
		<label for="selRole">Role:</label>
		<select id="selRole" name="selRole">
			<option value="2">Moderator</option>
		</select>		
	</div>
	<div class="row">
		<label for="txtStore">Store #:</label>
		<input type="text" name="txtStore" id="txtStore" style="width:100px;" />
	</div>
	<div class="buttonrow">
		<button type="button" class="cancel">Cancel</button>
		<button type="button" class="update">Update</button>
	</div>
	</form>
</div><!--/dialog-->

</div><!--/wrap-->
</div><!--/body-->

<?php include('footer.php'); ?>