示例#1
0
function edit_manage_review($option, $review_id)
{
    global $database;
    if (count($review_id) > 1) {
        echo "<script> alert('Please select one review for edit!!!'); window.history.go(-1); </script>\n";
    } else {
        $database->setQuery("SELECT * FROM #__booklibrary_review WHERE id=" . $review_id[0] . " ");
        $review = $database->loadObjectList();
        echo $database->getErrorMsg();
        HTML_booklibrary::edit_manage_review($option, $review);
    }
}