0) { $ids = "(".join(", ", $gdsr_items).")"; if ($_POST["gdsr_delete_articles"] != "") GDSRDatabase::delete_votes($ids, $_POST["gdsr_delete_articles"], $gdsr_items); if ($_POST["gdsr_delete_articles_recc"] != "") GDSRDatabase::delete_votes($ids, $_POST["gdsr_delete_articles_recc"], $gdsr_items, true); if ($_POST["gdsr_delete_comments"] != "") GDSRDatabase::delete_votes($ids, $_POST["gdsr_delete_comments"], $gdsr_items); if ($_POST["gdsr_delete_comments_recc"] != "") GDSRDatabase::delete_votes($ids, $_POST["gdsr_delete_comments_recc"], $gdsr_items, true); if ($_POST["gdsr_review_rating"] != "") { $review = $_POST["gdsr_review_rating"]; if ($_POST["gdsr_review_rating_decimal"] != "" && $_POST["gdsr_review_rating"] < $options["review_stars"]) $review.= ".".$_POST["gdsr_review_rating_decimal"]; gdsrAdmDB::update_reviews($ids, $review, $gdsr_items); } if ($_POST["gdsr_timer_type"] != "") { gdsrAdmDB::update_restrictions($ids, $_POST["gdsr_timer_type"], GDSRHelper::timer_value($_POST["gdsr_timer_type"], $_POST["gdsr_timer_date_value"], $_POST["gdsr_timer_countdown_value"], $_POST["gdsr_timer_countdown_type"])); } if ($_POST["gdsr_timer_type_recc"] != "") { gdsrAdmDB::update_restrictions_thumbs($ids, $_POST["gdsr_timer_type_recc"], GDSRHelper::timer_value($_POST["gdsr_timer_type_recc"], $_POST["gdsr_timer_date_value_recc"], $_POST["gdsr_timer_countdown_value_recc"], $_POST["gdsr_timer_countdown_type_recc"])); } gdsrAdmDB::update_settings($ids, $_POST["gdsr_article_moderation"], $_POST["gdsr_article_voterules"], $_POST["gdsr_comments_moderation"], $_POST["gdsr_comments_voterules"], $_POST["gdsr_article_moderation_recc"], $_POST["gdsr_article_voterules_recc"], $_POST["gdsr_comments_moderation_recc"], $_POST["gdsr_comments_voterules_recc"], $gdsr_items); gdsrAdmDB::upgrade_integration($ids, $_POST["gdsr_integration_active_std"], $_POST["gdsr_integration_active_mur"], $_POST["gdsr_integration_mur"]); } } if ($filter_cats != '' || $filter_cats != '0') $url.= "&cat=".$filter_cats; if ($filter_date != '' || $filter_date != '0') $url.= "&date=".$filter_date; if ($filter_select != '') $url.= "&select=".$filter_select; if ($search != '') $url.= "&s=".$search; $sql_count = gdsrAdmDB::get_stats_count($filter_select, $filter_date, $filter_cats, $search); $number_posts = $wpdb->get_var($sql_count); $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") : ""; ?>

GD Star Rating:

" name="gdsr_search" />

" />

get_results($sql, OBJECT); ?> folder] = $ms->name; foreach ($rows as $row) { $row = gdsrAdmDB::convert_row($row, $multis); $moderate_articles = $moderate_comments = ""; if ($options["moderation_active"] == 1) { $moderate_articles = gdsrAdmDB::get_moderation_count($row->pid); $moderate_comments = gdsrAdmDB::get_moderation_count_joined($row->pid); $recc_moderate_articles = gdsrAdmDB::get_moderation_count($row->pid, "artthumb"); $recc_moderate_comments = gdsrAdmDB::get_moderation_count_joined($row->pid, "artthumb"); if ($moderate_articles == 0) $moderate_articles = "[ 0 ] "; else $moderate_articles = sprintf('[ %s ] ', $row->pid, $moderate_articles); if ($moderate_comments == 0) $moderate_comments = "[ 0 ] "; else $moderate_comments = sprintf('[ %s ] ', $row->pid, $moderate_comments); if ($recc_moderate_articles == 0) $recc_moderate_articles = "[ 0 ] "; else $recc_moderate_articles = sprintf('[ %s ] ', $row->pid, $recc_moderate_articles); if ($recc_moderate_comments == 0) $recc_moderate_comments = "[ 0 ] "; else $recc_moderate_comments = sprintf('[ %s ] ', $row->pid, $recc_moderate_comments); } $timer_info = $recc_timer_info = ""; if ($options["timer_active"] == 1) { if ($row->expiry_type == "D") { $timer_info = ''.__("date limit", "gd-star-rating").'
'; $timer_info.= $row->expiry_value; } else if ($row->expiry_type == "T") { $timer_info = ''.__("countdown", "gd-star-rating").'
'; $timer_info.= substr($row->expiry_value, 1)." "; switch (substr($row->expiry_value, 0, 1)) { case "H": $timer_info.= __("Hours", "gd-star-rating"); break; case "D": $timer_info.= __("Days", "gd-star-rating"); break; case "M": $timer_info.= __("Months", "gd-star-rating"); break; } } else $timer_info = __("no limit", "gd-star-rating").'

'; } if ($options["timer_active"] == 1) { if ($row->recc_expiry_type == "D") { $recc_timer_info = ''.__("date limit", "gd-star-rating").'
'; $recc_timer_info.= $row->recc_expiry_value; } else if ($row->recc_expiry_type == "T") { $recc_timer_info = ''.__("countdown", "gd-star-rating").'
'; $recc_timer_info.= substr($row->recc_expiry_value, 1)." "; switch (substr($row->recc_expiry_value, 0, 1)) { case "H": $recc_timer_info.= __("Hours", "gd-star-rating"); break; case "D": $recc_timer_info.= __("Days", "gd-star-rating"); break; case "M": $recc_timer_info.= __("Months", "gd-star-rating"); break; } } else $recc_timer_info = __("no limit", "gd-star-rating").'

'; } if ($row->rating_total > $options["stars"] || $row->rating_visitors > $options["stars"] || $row->rating_users > $options["stars"]) $tr_class.=" invalidarticle"; $chart_url = STARRATING_CHART_URL."post_charts.php?_ajax_nonce=".wp_create_nonce('gdsr_chart_l8')."&postid=".$row->pid."&action=article"; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; if ($options["timer_active"] == 1) { echo ''; } if ($options["moderation_active"] == 1) { echo ''; } echo ''; echo ''; if ($options["comments_integration_articles_active"] == 1) { echo ''; } echo ''; if ($tr_class == "") $tr_class = "alternate "; else $tr_class = ""; } ?>
'.$row->pid.''; echo ''.__('; echo ''.__(
'; echo ''.__('; echo ''.__('; echo '
'.$row->title.'
'; echo ''.$post_types[$row->post_type].''; $catss = gdsrAdmDB::get_categories($row->pid); if ($catss != "/") echo ": ".$catss; echo ' | '.__("Views", "gd-star-rating").': '.$row->views.'
'; echo '
'; echo '
'; echo $row->rules_articles.'
'.$row->rules_comments; echo '
'; echo '
'; echo '
'; echo $row->recc_rules_articles.'
'.$row->recc_rules_comments; echo '
'; echo '
'; echo $timer_info; echo '
'; echo $recc_timer_info; echo '
'; echo $moderate_articles.$row->moderate_articles.'
'.$moderate_comments.$row->moderate_comments; echo '
'; echo $recc_moderate_articles.$row->recc_moderate_articles.'
'.$recc_moderate_comments.$row->recc_moderate_comments; echo '
'; echo $row->votes; echo '
'; echo $row->thumbs; echo '
'.$row->total.''; echo '
'; echo $row->cmm_integration_std; echo '
'; echo '
'; echo '
'; echo $row->cmm_integration_mur; echo '
'; echo '