fembooru/ext/admin/theme.php
shish 29829efc66 use display_error
git-svn-id: file:///home/shish/svn/shimmie2/trunk@394 7f39781d-f577-437e-ae19-be835c7a54ca
2007-07-28 20:00:05 +00:00

22 lines
558 B
PHP

<?php
class AdminPageTheme extends Themelet {
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"));
}
}
?>