Example #1
0
        foreach ($gdsr_items as $it) {
            $parts = explode(",", $it);
            $ids[] = $parts[1];
            $items[$parts[1]] = $parts[0];
        }
        gdsrAdmDB::update_category_settings("(" . join(", ", $gdsr_items) . ")", $ids, $items, $_POST["gdsr_article_moderation"], $_POST["gdsr_article_voterules"], $_POST["gdsr_comments_moderation"], $_POST["gdsr_comments_voterules"], $_POST["gdsr_integration_mur"], $_POST["gdsr_integration_active_std"], $_POST["gdsr_integration_active_mur"]);
    }
}
$all_cats = GDSRDatabase::get_all_categories();
$categories = GDSRHelper::get_categories_hierarchy($all_cats);
$number_posts = count($categories);
$max_page = floor($number_posts / $posts_per_page);
if ($max_page * $posts_per_page != $number_posts) {
    $max_page++;
}
$pager = $max_page > 1 ? gdFunctionsGDSR::draw_pager($max_page, $page_id, $url, "pg") : "";
$cat_from = ($page_id - 1) * $posts_per_page;
$cat_to = $page_id * $posts_per_page;
if ($cat_to > $number_posts) {
    $cat_to = $number_posts;
}
?>

<div class="wrap">
<form id="gdsr-articles" method="post" action="">
<h2 class="gdptlogopage">GD Star Rating: <?php 
_e("Categories", "gd-star-rating");
?>
</h2>
<div class="tablenav">
    <div class="alignleft">
$number_posts_all = $number_posts_post + $number_posts_page;
if ($select == "post") {
    $number_posts = $number_posts_post;
} else {
    if ($select == "page") {
        $number_posts = $number_posts_page;
    } else {
        $number_posts = $number_posts_all;
    }
}
$max_page = floor($number_posts / $posts_per_page);
if ($max_page * $posts_per_page != $number_posts) {
    $max_page++;
}
if ($max_page > 1) {
    $pager = gdFunctionsGDSR::draw_pager($max_page, $page_id, $url, "pg");
}
$set = gd_get_multi_set($set_id);
?>

<div class="wrap" style="max-width: <?php 
echo $options["admin_width"];
?>
px">
<form id="gdsr-articles" method="post" action="">
<h2 class="gdptlogopage">GD Star Rating: <?php 
_e("Multi Set Results", "gd-star-rating");
?>
</h2>
<h3 class="gdsetname"><?php 
_e("Set Name", "gd-star-rating");