42 $all = checkNumeric($_GET[
'all']);
44 $constraint =
$all ?
"ORDER BY role, email" :
"WHERE active=1 ORDER BY role, email";
51 $table->column(
"Name",
"<a href='/admin/user_form?user_id={user_id}'>{last_name}, {first_name}</a>",
true,
'width: 30%')
52 ->column(
"Title",
"{title}",
true,
'width: 30%')
53 ->column(
"Email Address",
"{email}",
true,
"width: 30%")
54 ->column(
"Role",
"{role}",
true,
"width: 10%");
58 $table->emptyMessage =
"No Site Users have been added.";
65 <input type=
"checkbox" class=
"checkbox" name=
"all" value=
"1"<?
if (
$all) echo
" checked='checked'";?> onclick=
"go('/admin/users?all=' + (this.checked?'1':'0'))">&
nbsp;Show inactive user accounts<br/><br/>
70 <button
class=
"button" onclick=
"go('/admin/user_form')">Add New User</button>
static using()
Import the datamodels, views and manifest for the specified component(s).
static usingFile()
Uses the specified framework file(s) from the framework directory.
static assertRole($role, $redirect="", $message="")
Assert that the user has one of the specified roles.
This class maps the site_user table.