本文整理汇总了PHP中myclass::ratedUnrated方法的典型用法代码示例。如果您正苦于以下问题:PHP myclass::ratedUnrated方法的具体用法?PHP myclass::ratedUnrated怎么用?PHP myclass::ratedUnrated使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类myclass
的用法示例。
在下文中一共展示了myclass::ratedUnrated方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: count
$looks = $mc->get_looks_filtered($mno, $rate_style, $rate_gender, $rate_plus_blogger, $orderby, $start, $rate_limit, $table_name, $rate_look_topic);
//
echo "<br><BR>filtered looksfiltered looksfiltered looksfiltered looksfiltered looks<bbr><br><br><Br>";
// print_r($looks);
// echo "<br><br>";
/*
echo "<br> rated look not elimated yet <br> ";
echo " total look res ".count($looks).'<br>';
$c=0;
for ($i=0; $i < count($looks) ; $i++) {
$c++;
echo " $c.) ".$looks[$i]['plno'].' style = '.$looks[$i]['style'].' pltratings = '.$looks[$i]['pltratings'].'<br>';
$j = count($mylookrated);
}
echo " Rate Look Modals now <br> pagenum = $pagenum <br> start = $start <br> end = $end <br> limit = $rate_limit <br> rate_style = $rate_style <br> rate_looks = $rate_looks <br> rate_status = $rate_status <BR> ";
echo " <h4> rertrieved from database </h4> ";
// print_r($looks);
echo "<h4> rated look was cleaned by elimation </h4> ";
*/
#display look and fetch with rated and un rated.
//$plnos = $mc->remove_rated_looks( $looks , $mylookrated , $rate_status );
$plnos = $mc->ratedUnrated($looks, $mylookrated, $rate_status, $table_name);
// echo "final result";
// print_r($plnos);
$mc->print_look_modals($plnos, $table_name);
break;
}
echo "</span> ";
?>
示例2: count
$rate_plus_blogger = $_GET['rate_plus_blogger'];
$rate_latest = $_GET['rate_latest'];
$rate_status = $_GET['rate_status'];
echo "\n rate_style = {$rate_style} <br>\n rate_gender = {$rate_gender} <br>\n rate_plus_blogger = {$rate_plus_blogger} <br>\n rate_latest = {$rate_latest} <br>\n rate_status = {$rate_status} <br>\n ";
echo " <span style='color:black'> ";
switch ($retrievedas) {
case 'rate-next-prev':
//this is set that the user can't view his own modal uploaded because of mno<>$mno
if ($rate_style == 'All Style') {
$looks = select_v3('postedlooks', '*', "active = 1 and mno <> {$mno} ");
} else {
$looks = select_v3('postedlooks', '*', "active = 1 and style = '{$rate_style}' and mno <> {$mno}");
}
$mylookrated = $mc->get_all_my_rated_looks_by_month($mno, $mc->date_dif['month_firstday'], $rate_status);
// $plnos = $mc->remove_rated_looks( $looks , $mylookrated , $rate_status );
$plnos = $mc->ratedUnrated($looks, $mylookrated, $rate_status);
$tres = count($plnos);
$np = $mc->generate_next_prev_numbers(intval($tres), $rate_limit);
echo "<nextprev1>";
$mc->print_next_prev_numbers($np, null, 'rate-look', 'loader-down');
echo "<nextprev1>";
echo "<nextprev2>";
$mc->print_next_prev_numbers($np, null, 'rate-look', 'loader-up');
echo "<nextprev2>";
echo "<span style='display:none' ><tres>{$tres}<tres></span>";
break;
default:
// modals
$start = $mc->get_loop_start($pagenum, $rate_limit);
$end = $mc->get_loop_end($pagenum, $rate_limit);
$counter = $mc->set_loop_counter(1);