コード例 #1
0
ファイル: welcome_modals.php プロジェクト: jesus143/fs-dev
                     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);
コード例 #2
0
$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);
}
?>