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


PHP myclass::get_all_user方法代码示例

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


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

示例1:

                     echo " \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img id='suggested-member-unfollow-image{$mno1}'  class='suggested-member-unfollow'  src='{$mc->genImgs}/profile-unfollow.png' style='cursor:pointer;' onclick='suggested_member_follow ( \"#suggested-member-unfollow-image{$mno1}\" , \"{$mno1}\" )' /> \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
                 }
                 echo " \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</center> \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</td> \n\t\t\t\t\t\t\t\t\t\t\t\t</table>\n\t\t\t\t\t\t\t\t\t\t\t</td>  \n\t\t\t\t\t\t\t\t\t\t";
                 if ($c % 6 == 0) {
                     echo "<tr>";
                 }
             }
         }
         echo "  \n\t\t\t\t\t\t</table> ";
     }
     break;
 case 'sf-fs':
     $wtres = $_SESSION['wtres'];
     $pagenum = $_SESSION['csm_fs']++;
     $start = $mc->get_loop_start($pagenum, $wtres);
     $members_fs = $mc->get_all_user("{$start} , {$wtres}");
     if (!empty($members_fs)) {
         echo "   \n\t\t\t\t\t<table >\n\t\t\t\t\t\t<tr>";
         $c = 0;
         for ($i = 0; $i < $wtres; $i++) {
             $c++;
             $mno1 = $members_fs[$i]['mno'];
             $followed = $mc->check_if_already_followed($mno, $mno1);
             $fullname = $mc->get_full_name_by_id($mno1);
             // echo " mno1 = $mno1  <br>";
             echo "\n\t\t\t\t\t\t\t\t<td style='padding-right:10px;' >  \n\t\t\t\t\t\t\t\t\t<table border='0' >  \n\t\t\t\t\t\t\t\t\t\t<tr> \n\t\t\t\t\t\t\t\t\t\t\t<td>  \n\t\t\t\t\t\t\t\t\t\t\t\t<center> ";
             $mppno = $mc->member_profile_pic_query(array('mno' => $mno1, 'type' => 'get-latest-mppno'));
             if (file_exists("../../../../{$mc->ppic_profile}/{$mppno}.jpg")) {
                 echo "<img src= '{$mc->ppic_profile}/{$mppno}.jpg' style='cursor:pointer; width:120px;height:120px;'";
             } else {
                 $avatar = $mc->get_male_female_avatar($mno1);
开发者ID:jesus143,项目名称:fs-dev,代码行数:31,代码来源:welcome_modals.php

示例2: count

$mno = $mc->get_cookie('mno', 136);
# fb friends on fs init
$_SESSION['csm_fb'] = 2;
// page number for fb friends suggested
$_SESSION['csm_limit'] = 6;
// limit show every show more
# fs members with simillar interest
$_SESSION['csm_fs'] = 2;
// page num for fs member suggested
$_SESSION['wtres'] = 6;
// this is for the suggested member from fs show 6
# general initialization
$limit = 6;
// show 6 modals because it is showing from latest and the latest is his own modals so thats why query 7 but show 6.
#retrieved the fs members who are almost having same brands
$members_fs = $mc->get_all_user($limit + 1);
# retrieved the fb friends on fs
$fb_friends_on_fs = $mc->get_fb_freinds_on_fs($mno, "-+-");
if ($fb_friends_on_fs != false) {
    $fb_friends_on_fs_len = count($fb_friends_on_fs);
    $_SESSION['fb_friends_on_fs'] = $fb_friends_on_fs;
    #THIS IS USED FOR VIEW MORE fb friends on fb
}
# save  brands selected
if (!empty($_GET['brands'])) {
    // echo " mno $mno <br>";
    $selectedBrand = explode(',', $_GET['brands']);
    $mc->account_settings_brand_insert($selectedBrand, $mno);
}
?>
 
开发者ID:jesus143,项目名称:fs-dev,代码行数:30,代码来源:welcome-suggested-member.php


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