$catselect .= "<option value=\"" . $cat2['catid'] . ("\" " . $selected . ">  > {$cat2['catname']}</option>\n");
                        }
                    }
                }
            }
        }
        $catselect .= "</select>";
        showhiddenfields(array("siteid" => $_G['gp_siteid'], "fromid" => $_G['gp_fromid'], "novelid" => $novelid));
        showsetting("pdnovel_collect_catname", "", "", $catselect);
        showsetting("pdnovel_collect_name", "name", $name, "text");
        showsetting("pdnovel_collect_initial", "initial", get_initial($name), "text");
        showsetting("pdnovel_collect_author", "author", $author, "text");
        showsetting("pdnovel_collect_cover", "cover", $cover, "text");
        showsetting("pdnovel_collect_full", "", "", show_input($full, "full"));
        showsetting("pdnovel_collect_permission", "", "", show_input($permission, "permission"));
        showsetting("pdnovel_collect_first", "", "", show_input($first, "first"));
        showsetting("pdnovel_collect_keyword", "keyword", $keyword, "text");
        showsetting("pdnovel_collect_notice", "notice", $notice, "text");
        showsetting("pdnovel_collect_intro", "intro", $intro, "textarea");
        showsubmit("collectsubmit");
    }
} else {
    if ($do == "collect") {
        if ($_G['gp_novelid']) {
            $novel_data = array("catid" => $_G['gp_catid'], "name" => addslashes($_G['gp_name']), "initial" => $_G['gp_initial'], "lastupdate" => $_G['timestamp'], "keyword" => addslashes($_G['gp_keyword']), "notice" => addslashes($_G['gp_notice']), "cover" => $_G['gp_cover'], "full" => $_G['gp_full'], "permission" => $_G['gp_permission'], "first" => $_G['gp_first'], "intro" => addslashes($_G['gp_intro']));
            $novelid = $_G['gp_novelid'];
            DB::update("pdnovel_view", $novel_data, "novelid=" . $novelid . " LIMIT 1");
        } else {
            $author = addslashes($_G['gp_author']);
            $authorid = DB::result_first("SELECT authorid FROM " . DB::table("pdnovel_author") . (" WHERE author='" . $author . "';"));
            if (!$authorid) {
    showsubmit("submit");
    showtablefooter();
    showformfooter();
    echo "<form name=\"cpform\" method=\"post\" autocomplete=\"off\" action=\"pdnovel.php?mod=batch&do=ncollect&key={$key}\" id=\"cpform\" ><table class=\"tb tb2 \">\r\n        ";
    showtableheader();
    showtitle("pdnovel_collect_number");
    showsetting("pdnovel_collect_fromsite", "", "", $optselect);
    showsetting("pdnovel_collect_startid", "startid", "", "text");
    showsetting("pdnovel_collect_endid", "endid", "", "text");
    showsetting("pdnovel_collect_method", "", "", show_input($method, "method"));
    showsubmit("submit");
    showtablefooter();
    showformfooter();
    echo "<form name=\"cpform\" method=\"post\" autocomplete=\"off\" action=\"pdnovel.php?mod=batch&do=localcollect&key={$key}\" id=\"cpform\" ><table class=\"tb tb2 \">\r\n        ";
    showtitle("pdnovel_collect_local");
    showsetting("pdnovel_collect_fromsite", "", "", $optselect);
    showsetting("pdnovel_collect_startid", "startid", "", "text");
    showsetting("pdnovel_collect_endid", "endid", "", "text");
    echo "<input type=\"hidden\" name=\"method\" value=\"1\" />";
    showsubmit("submit");
    showtablefooter();
    showformfooter();
    echo "<form name=\"cpform\" method=\"post\" autocomplete=\"off\" action=\"pdnovel.php?mod=batch&do=lcollect&key={$key}\" id=\"cpform\" ><table class=\"tb tb2 \">\r\n        ";
    showtitle("pdnovel_collect_list");
    showsetting("pdnovel_collect_fromsite", "", "", $optselect);
    showsetting("pdnovel_collect_batchids", "batchids", "", "textarea");
    showsetting("pdnovel_collect_method", "", "", show_input($method, "method"));
    showsubmit("submit");
    showtablefooter();
    showformfooter();
}
示例#3
0
文件: 1.php 项目: chwdy/nmb_test
    br();
    br();
    echo "welcome back &nbsp; &nbsp; " . $_COOKIE['name'];
    br();
} else {
    br();
    br();
    br();
    echo "以 游客 身份浏览 " . $_COOKIE['name'];
    br();
}
show_navi();
show_time();
br();
show_current_id();
show_input();
show_all_msg();
function get_status()
{
    $stat = (double) $_COOKIE['id'];
    $res = mysql_query("SELECT * FROM nmb_id WHERE id = {$stat}");
    if ($res) {
        $row1 = mysql_fetch_array($res);
        $stat = (int) $row1['status'];
        return $stat;
    }
}
function check_row()
{
    $res = mysql_query("SELECT * FROM nmb_set WHERE item = 'index'");
    if ($res) {