d9af472e6f
git-svn-id: file:///home/shish/svn/shimmie2/trunk@327 7f39781d-f577-437e-ae19-be835c7a54ca
28 lines
787 B
PHP
28 lines
787 B
PHP
<?php
|
|
|
|
class AdminPageTheme extends Themelet {
|
|
public function display_not_admin($page) {
|
|
$page->set_title("Error");
|
|
$page->set_heading("Error");
|
|
$page->add_block(new NavBlock());
|
|
$page->add_block(new Block("Permission Denied", "This page is for admins only"));
|
|
}
|
|
|
|
public function display_page($page) {
|
|
$page->set_title("Admin Tools");
|
|
$page->set_heading("Admin Tools");
|
|
$page->add_block(new NavBlock());
|
|
}
|
|
|
|
public function display_delete_block($page, $image_id) {
|
|
$i_image_id = int_escape($image_id);
|
|
$html = "
|
|
<form action='".make_link("admin/delete_image")."' method='POST'>
|
|
<input type='hidden' name='image_id' value='$i_image_id'>
|
|
<input type='submit' value='Delete'>
|
|
</form>
|
|
";
|
|
$page->add_block(new Block("Admin", $html, "left"));
|
|
}
|
|
}
|
|
?>
|