echo '<province>province required<province>'; } if ( empty($city) ) { echo '<city>city required<city>'; } if ( empty($zipcode) ) { echo '<zipcode>zipcode required<zipcode>'; } */ // add or updated keyword $mc->fs_search(array('type' => 'add-or-updated-keyword', 'table_name' => 'fs_members', 'table_id' => $mno)); break; case 'sb': $wtres = $_SESSION['wtres']; $pagenum = $_SESSION['csb_fs']++; $start = $mc->get_loop_start($pagenum, $wtres); $all_brands = $mc->get_all_brand("{$start} , {$wtres} "); $brand_selected = $mc->retreive_specific_user_brand_selected($mno, 'order by bmsno desc'); // echo " wtres $wtres , pagenum $pagenum , start $start <br><BR><BR><RB><BR>"; if (!empty($all_brands)) { echo " \n\t\t\t\t\t<table border='0' cellspacing='0' cellpadding='0' style='margin-top:0px;' > "; $c = 0; $tbrand = count($all_brands); for ($i = 0; $i < $wtres; $i++) { if ($i < $tbrand) { $c++; $bno = $all_brands[$i]['bno']; $bname = $retVal = !empty($all_brands[$i]['bname']) ? $all_brands[$i]['bname'] : 'Name not available not available'; // echo " $i bno = $bno <br> "; $brand_style = $mc->get_brand_style_as_selected_or_not($brand_selected, $bno); if (file_exists("../../../{$mc->brand}/{$bno}.png")) {
} $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/source.php"; 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']);