echo "<table border=\"0\" cellpadding=\"2\" cellspacing=\"0\"><tr><td>&nbsp;</td><td>\n";
        echo "<b>" . $lang['error_log_desc'] . "</b>\n<ul>\n";
        printf("<li>%s</li>\n", $lang['no_search_results']);
        echo "</ul>\n</td></tr></table>\n";
        echo "</td></tr>\n";
        show_table_footer();
        $action = "final";
    }
}
if ($action == "intro") {
    $category = "\n<select name=\"cat\" class=\"categoryselect\">\n";
    $category .= "<option value=\"0\">" . $lang['all_categories'] . "</option>\n";
    $category .= "<option value=\"0\">-------------------------------</option>\n";
    $drop_down_cat_cache = array();
    $drop_down_cat_cache = $cat_parent_cache;
    $category .= get_category_dropdown_bits($cat_id);
    $category .= "</select>\n";
    show_form_header("files_check.php", "checkimages");
    show_table_header("Files Check", 2);
    show_custom_row("Category", $category);
    show_radio_row("Include sub-categories", "subcat", 1);
    show_input_row("Number of images to do per cycle", "imchksize", 50, 5);
    show_radio_row("Check Remote Files", "local", 1);
    show_radio_row("Check Thumbnails", "thumbs", 1);
    show_radio_row("Include automatic JavaScript redirect to next page", "autoredirect", 1);
    show_form_footer($lang['submit'], $lang['reset'], 2);
}
if ($action == "checkimages") {
    if (isset($HTTP_GET_VARS['cat']) || isset($HTTP_POST_VARS['cat'])) {
        $cat = isset($HTTP_GET_VARS['cat']) ? intval($HTTP_GET_VARS['cat']) : intval($HTTP_POST_VARS['cat']);
    } else {
Exemple #2
0
function get_category_dropdown_check($cat_id = 0)
{
    global $lang, $drop_down_cat_cache, $cat_parent_cache;
    $category = "\n<select name=\"cat_id_p\" class=\"categoryselect\">\n";
    $category .= "<option value=\"0\">" . $lang['all_categories'] . "</option>\n";
    $category .= "<option value=\"0\">-------------------------------</option>\n";
    $drop_down_cat_cache = array();
    $drop_down_cat_cache = $cat_parent_cache;
    $category .= get_category_dropdown_bits($cat_id);
    $category .= "</select>\n";
    return $category;
}
Exemple #3
0
function get_category_dropdown($cat_id, $jump = 0, $admin = 0, $i = 0)
{
    global $lang, $drop_down_cat_cache, $cat_parent_cache;
    // $admin = 1  Main Cat (update/add cats)
    // $admin = 2  All Cats (find/validate images...)
    // $admin = 3  Select Cat (update/add image)
    // $admin = 4  No Cat (check new images)
    switch ($admin) {
        case 1:
            $category = "\n<select name=\"cat_parent_id\" class=\"categoryselect\">\n";
            $category .= "<option value=\"0\">" . $lang['main_category'] . "</option>\n";
            $category .= "<option value=\"0\">--------------</option>\n";
            break;
        case 2:
            $category = "\n<select name=\"cat_id\" class=\"categoryselect\">\n";
            $category .= "<option value=\"0\">" . $lang['all_categories'] . "</option>\n";
            $category .= "<option value=\"0\">-------------------------------</option>\n";
            break;
        case 3:
            $i = $i ? "_" . $i : "";
            $category = "\n<select name=\"cat_id" . $i . "\" class=\"categoryselect\">\n";
            $category .= "<option value=\"0\">" . $lang['select_category'] . "</option>\n";
            $category .= "<option value=\"0\">-------------------------------</option>\n";
            break;
        case 4:
            $category = "\n<select name=\"cat_id\" class=\"categoryselect\">\n";
            $category .= "<option value=\"0\">" . $lang['no_category'] . "</option>\n";
            $category .= "<option value=\"0\">-------------------------------</option>\n";
            break;
        case 0:
        default:
            if ($jump) {
                $category = "\n<select name=\"" . URL_CAT_ID . "\" onchange=\"if (this.options[this.selectedIndex].value != 0){ forms['jumpbox'].submit() }\" class=\"categoryselect\">\n";
            } else {
                $category = "\n<select name=\"" . URL_CAT_ID . "\" class=\"categoryselect\">\n";
            }
            $category .= "<option value=\"0\">" . $lang['select_category'] . "</option>\n";
            $category .= "<option value=\"0\">-------------------------------</option>\n";
    }
    // end switch
    $drop_down_cat_cache = array();
    $drop_down_cat_cache = $cat_parent_cache;
    $category .= get_category_dropdown_bits($cat_id);
    $category .= "</select>\n";
    return $category;
}