Location: PHPKode > projects > Projector > projector/user/main.php
<input type="button" onclick="showAdd('user')" value="Add User" />
<br /><br />
<h1>Users</h1>
<?
if ($_users) {?>
<table class="listing"><tr>
<th></th><th></th>
<th>Username</th><th> Group</th></tr>
<form name="del_user_form" id="del_user_form" action="<?= CLIENTROOT ?>/action/user/delete-users/" method="post">
<input type="hidden" name = "loginid" id="loginid" /><?
	$rowCount = 0;
	foreach ($_users as $user) {
		?><tr<? if ($rowCount % 2 == 1) { ?> class="bg"<? } ?>>
		
		<td><input type="checkbox" id="checkBox_<?= $user['loginid'] ?>" value="<?= $user['loginid'] ?>" name="checked_user[]" /></td>
		<td><a onclick="confirm2(event, 'Are you sure you want to<br /> delete <?= $user['login'] ?>?', '$(\'checkBox_<?= $user['loginid']  ?>\').checked = true; $(\'del_user_form\').submit()')" class="customTitle" title="Delete"><img src="<?= CLIENTROOT ?>/images/icons/24-em-cross.png" alt="Delete" /></a></td>
		<td><?= $user['login'] ?></td>
		<td><?= $user['name'] ?></td>
		
			</tr>
		<?
		$rowCount++;
	}


?>
</table>
<br />
<input type="checkbox" id="checkAllBtn" onclick="checkAll('checked_user[]', this.checked);" />&nbsp;Check All
<br />
<a onclick="confirm2(event, 'Delete all checked users?', '$(\'del_user_form\').submit()')" class="customTitle" title="Delete Checked"><img src="<?= CLIENTROOT ?>/images/icons/24-em-cross.png" alt="Delete Checked" /></a>
</form>
<? }
else{
?>No Users Found<? } ?>
Return current item: Projector