当前位置: 首页>>代码示例>>PHP>>正文


PHP myclass::get_all_my_rated_looks_by_month方法代码示例

本文整理汇总了PHP中myclass::get_all_my_rated_looks_by_month方法的典型用法代码示例。如果您正苦于以下问题:PHP myclass::get_all_my_rated_looks_by_month方法的具体用法?PHP myclass::get_all_my_rated_looks_by_month怎么用?PHP myclass::get_all_my_rated_looks_by_month使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在myclass的用法示例。


在下文中一共展示了myclass::get_all_my_rated_looks_by_month方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: intval

$pagenum = intval($_GET['pagenum']);
$rate_style = mysql_real_escape_string($_GET['rate_style']);
$rate_looks = $_GET['rate_looks'];
$rate_status = $_GET['rate_status'];
$rate_limit = intval($_GET['rate_limit']);
$retrievedas = !empty($_GET['retrievedas']) ? $_GET['retrievedas'] : null;
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']);
        $plnos = $mc->remove_rated_looks($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);
开发者ID:jesus143,项目名称:fs-dev,代码行数:31,代码来源:rate-look-modals+-+old+1.php

示例2:

     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:
     echo " this is the page rating..";
     echo "<h4> modals display </h4><br>";
     // modals
     $start = $mc->get_loop_start($pagenum, $rate_limit);
     $end = $mc->get_loop_end($pagenum, $rate_limit);
     $counter = $mc->set_loop_counter(1);
     /** Fetch look or article by basic all sortings */
     $orderby = $mc->get_rate_looks_order_by($rate_latest);
     $mylookrated = $mc->get_all_my_rated_looks_by_month($mno, $mc->date_dif['month_firstday'], $rate_status, $table_name);
     // 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
     //                echo "
     //                            rate_style = $rate_style      <br>
     //                            rate_gender = $rate_gender        <br>
     //                            rate_plus_blogger = $rate_plus_blogger  <br>
     //                            rate_latest = $rate_latest       <br>
开发者ID:jesus143,项目名称:fs-dev,代码行数:31,代码来源:rate-look-modals.php


注:本文中的myclass::get_all_my_rated_looks_by_month方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。