Location: PHPKode > projects > Kwalbum > kwalbum/pages/AdminPermissionsPage.html.php
<?php
/**
 * @version 2.1.2
 * @package kwalbum
 * @since 2008-09-04
 */
?>
<big><b><a href='<?=$URLP->GetExtendedURL()?>p=Admin'>Admin Options:</a> Modify User Permissions</b></big>
<p>
<?=(isset($_POST['act']) ? '<div>Permissions have been updated!</div><br/>':null)?>
<form action='<?=$URLP->GetExtendedURL()?>&amp;p=AdminPermissions' method='post'>
<table border='1'>
<tr><th>Displayed Name</th><th>User Name</th><th>Email Address</th><th>Can View</th><th>Can Add</th><th>Is Admin</th><th>Delete?</th><th>Last Visit</th></tr>
<?
while ($row = $result->fetch_assoc())
{
	echo "<tr><td>$row[UserTitle]</td><td>$row[UserName]</td><td>$row[UserEmail]</td>" .
		"<td><input type='hidden' name='id[]' value='$row[UserId]'/>" .
		"<input type='checkbox' name='view[$row[UserId]]' value='$row[UserId]' ".($row['UserCanView'] ? 'checked' : null)."/></td>" .
		"<td><input type='checkbox' name='add[$row[UserId]]' value='$row[UserId]' ".($row['UserCanAdd'] ? 'checked' : null)."/></td>" .
		"<td><input type='checkbox' name='admin[$row[UserId]]' value='$row[UserId]' ".($row['UserIsAdmin'] ? 'checked' : null)."/></td>" .
		"<td><input type='checkbox' name='del[$row[UserId]]' value='$row[UserId]'/></td>".
		"<td>$row[UserVisitDt]</td></tr>";
}
?>
<tr><td colspan='7'><input type='submit' name='act' value='Save Changes'/></td></tr>
</table>
</form>
</p>
Return current item: Kwalbum