當前位置: 首頁>>代碼示例>>PHP>>正文


PHP myclass::get_rate_looks_order_by方法代碼示例

本文整理匯總了PHP中myclass::get_rate_looks_order_by方法的典型用法代碼示例。如果您正苦於以下問題:PHP myclass::get_rate_looks_order_by方法的具體用法?PHP myclass::get_rate_looks_order_by怎麽用?PHP myclass::get_rate_looks_order_by使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在myclass的用法示例。


在下文中一共展示了myclass::get_rate_looks_order_by方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: count

     $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);
     $orderby = $mc->get_rate_looks_order_by($rate_looks);
     $mylookrated = $mc->get_all_my_rated_looks_by_month($mno, $mc->date_dif['month_firstday']);
     // print_r($mylookrated);
     /*
      	echo " <br>my look rated by this month <br>";
     	$c=0;  
     	for ($i=0; $i < count($mylookrated) ; $i++) { 
     		$c++;
     		echo "  $c.)  ".$mylookrated[$i]['plno'].'<br>'; 
     	} 
     */
     #get look with filter
     $looks = $mc->get_looks_filtered($mno, $rate_style, $orderby, $start, $rate_limit);
     /*
     	echo "<br>  rated look not elimated yet <br> "; 
     	echo " total look res ".count($looks).'<br>';
開發者ID:jesus143,項目名稱:fs-dev,代碼行數:31,代碼來源:rate-look-modals+-+old+1.php

示例2: count

 //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"
 //     );
 // }
 /** Fetch modals if looks or article */
 $looks = $mc->get_looks_filtered($mno, $rate_style, $rate_gender, $rate_plus_blogger, $mc->get_rate_looks_order_by($rate_latest), 0, $rate_limit, $table_name, $rate_look_topic);
 /** Fetch look or article by basic all sortings */
 //$mylookrated = $mc->get_all_my_rated_looks_by_month($mno, $mc->date_dif['month_firstday'], $rate_status, $table_name);
 /**
  * To filter the
  */
 // $plnos = $mc->remove_rated_looks( $looks , $mylookrated ,  $rate_status  );
 //$plnos = $mc->ratedUnrated($looks, $mylookrated, $rate_status, $table_name);
 /**
  * display the next prev numbers
  * arrow left and right
  */
 $tres = count($looks);
 $np = $mc->generate_next_prev_numbers(intval($tres), $rate_limit);
 echo "<nextprev1>";
 $mc->print_next_prev_numbers($np, null, 'rate-look', 'loader-down');
開發者ID:jesus143,項目名稱:fs-dev,代碼行數:31,代碼來源:rate-look-modals.php


注:本文中的myclass::get_rate_looks_order_by方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。