set_title("Login"); $page->set_heading("Login"); $page->add_block(new NavBlock()); $page->add_block(new Block("Login There", "There should be a login box to the left")); } /** * @param Page $page * @param User[] $users * @param User $user */ public function display_user_list(Page $page, $users, User $user) { $page->set_title("User List"); $page->set_heading("User List"); $page->add_block(new NavBlock()); $html = "
Name | "; if($user->can('delete_user')) $html .= "Class | "; $html .= "Action | "; $html .= "|
"; if($user->can('delete_user')) $html .= " | "; $html .= " | "; $html .= " | "; $html .= " |
$h_name | "; if($user->can('delete_user')) $html .= "$h_email | "; $html .= "$h_class | "; $html .= "Show Posts | "; $html .= "
'.$tac.'
';} $h_reca = "Name | |
---|---|
Password | |
Repeat Password | |
Email (Optional) | |
Uploaded from: ";
$n = 0;
foreach($uploads as $ip => $count) {
$html .= ' '.$ip.' ('.$count.')'; if(++$n >= 20) { $html .= " ..."; break; } } $html .= " | Commented from:";
$n = 0;
foreach($comments as $ip => $count) {
$html .= ' '.$ip.' ('.$count.')'; if(++$n >= 20) { $html .= " ..."; break; } } $html .= " |
(Most recent at top) |
".make_form(make_link("user_admin/change_name"))."
Change Name | |
---|---|
New name | |
".make_form(make_link("user_admin/change_pass"))."
Change Password | |
---|---|
Password | |
Repeat Password | |
".make_form(make_link("user_admin/change_email"))."
Change Email | |
---|---|
Address | |
".make_form(make_link("user_admin/change_class"))."
Change Class | |
---|---|
".make_form(make_link("user_admin/delete_user"))."
Delete User | |
---|---|
Delete images | |
Delete comments | |