コード例 #1
0
ファイル: library-edit.php プロジェクト: dalinhuang/zxtd
define('ROOT', dirname($_SERVER['SCRIPT_FILENAME']));
require ROOT . "/include/admin-init.php";
if (!is_login()) {
    die(html_jump('login.php'));
}
set_page_type('library', 'library_manage');
set_page_power(array(1));
set_title("编辑信息");
get_admin_header();
$category = new library_category();
$category->get_id_list();
$all_user = new user_info();
$all_user->get_id_list();
$library = new library();
$book = $library->get_now_book();
if (!is_array($book)) {
} else {
    ?>
<div id="library-edit">
<h2 align="center">图书信息编辑</h2>
<?php 
    if (isset($_GET['status'])) {
        if ($_GET['status'] == 'OK') {
            echo '<p class="status blue center">成功编辑图书信息</p>';
        } else {
            echo '<p class="status red center">', $_GET['status'], '</p>';
        }
    }
    ?>
<form action="library-action.php" method="post">