} if ($c % 6 == 0) { echo "<tr>"; } } } echo " \n\t\t\t\t\t</table>"; } break; case 'sf-fb': $pagenum = $_SESSION['csm_fb']++; $limit = $_SESSION['csm_limit']; $fb_friends_on_fs = $_SESSION['fb_friends_on_fs']; $fb_friends_on_fs_len = count($_SESSION['fb_friends_on_fs']); $start = $mc->get_loop_start($pagenum, $limit); $end = $mc->get_loop_end($pagenum, $limit); if ($start < $fb_friends_on_fs_len - 1) { echo " \n\t\t\t\t \t\t\t<table>\n\t\t\t\t\t\t\t\t<tr> "; $c = 0; for ($i = $start; $i < $end; $i++) { $c++; if ($i < $fb_friends_on_fs_len - 1) { $mno1 = $fb_friends_on_fs[$i]; // $mno1 = $mem[0]['mno']; // $mem = $mc->get_fb_user_fs_info( intval($fbid) ); $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\t\t\t<td style='padding-right:10px;' > \n\t\t\t\t\t\t\t\t\t\t\t\t<table border='0' > \n\t\t\t\t\t\t\t\t\t\t\t\t\t<tr> \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\t\t\t<center> \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t"; $mppno = $mc->member_profile_pic_query(array('mno' => $mno1, 'type' => 'get-latest-mppno')); if (file_exists("../../../{$mc->ppic_profile}/{$mppno}.jpg")) {
$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); $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); /*
require "../../../fs_folders/php_functions/myclass.php"; require '../../../fs_folders/php_functions/Database/post.php'; $mc = new myclass(); $mc->post = new Post(); // $profile_tab = $_GET["profile_tab"]; // $mno = $_GET['mno']; // $pagenum = $_GET["pagenum"]; // $_GET['tres'] = 1; # pass the current assign modal who will show next $counter_tres = intval($_GET['tres']); //this is next value passed from javascript counter echo "<Br> <div onclick=\"\$('#fs-general-ajax-response').text('')\" >(x)</div>"; $r = $mc->get_activity(200); $act_len = $mc->get_res_len($r); $start = $mc->get_loop_start($counter_tres, 25); $end = $mc->get_loop_end($counter_tres, 25); $counter = $mc->set_loop_counter(1); echo " start {$start} end {$end} <br>"; $counter_tres++; //increment the counter # add 1 so that when click view more another different modals will show // $_SESSION['counter']++; for ($i = $start; $i < $end; $i++) { if ($i < $act_len) { $ano = intval($r[$i]['ano']); $mno = intval($r[$i]['mno']); $action = $r[$i]['action']; $_table = $r[$i]['_table']; $_table_id = intval($r[$i]['_table_id']); $_date = intval($r[$i]['_date']); $active = intval($r[$i]['active']);