示例#1
0
     					 	}
     					 	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")) {
                     echo " \n\t\t\t\t\t\t\t\t\t\t<td> \n\t\t\t\t\t\t\t\t\t\t\t<div>\n\t\t\t\t\t\t\t\t\t\t\t\t<img id='brand{$bno}' class='brandDefault'   src='{$mc->brand}/{$bno}.png' onclick='select_brand(\"{$bno}\")' style='{$brand_style}; padding-top:5px;'  > \n\t\t\t\t\t\t\t\t\t\t\t</div>\n\n\t\t\t\t\t\t\t\t\t\t\t<div  id='welcome-name-container' >\n\t\t\t\t\t\t\t\t\t\t\t\t{$bname}\n\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t</td> \n\t\t\t\t\t\t\t\t\t";
        $tfollowing--;
        return $tfollowing;
    }
    public function update_following($tfollowing, $mno)
    {
        update1('fs_members', 'tfollowing', $tfollowing, array('mno', $mno));
    }
    public function update_follower($tfollower, $mno)
    {
        update1('fs_members', 'tfollower', $tfollower, array('mno', $mno));
    }
}
$ac = new account_settings();
if ($account_seettings_tab == 'account-settings-brand') {
    $brand_selected = $mc->retreive_specific_user_brand_selected($mno, 'order by bmsno desc');
    $all_brands = $mc->get_all_brand(1000);
    $ac->account_settings_brand_next_page($spnp, $mc, $brand_selected, $all_brands);
} else {
    if ($account_seettings_tab == 'account-settings-suggested-member-follow') {
        $ac->account_settings_suggested_member_follow($mno, $mno1, $action, new myclass());
    } else {
        if ($account_seettings_tab == 'account-settings-suggested-member') {
            $members = $mc->get_all_user(900);
            $ac->account_settings_suggested_member_next_prev($spnp, $mno, $members, $mc);
        } else {
            if ($account_seettings_tab == 'account-invitefriends-fb-friends-on-fs') {
                $ac->print_fb_freinds_on_fs($spnp, $mc, $mno);
            } else {
                if ($account_seettings_tab == 'account-invitefriends-fb-friends-on-fb') {
                    $ac->print_fb_freinds_on_fb($spnp, $mc, $mno, $facebook);
                } else {
示例#3
0
<?php

require "../../../../fs_folders/php_functions/connect.php";
require "../../../../fs_folders/php_functions/function.php";
require "../../../../fs_folders/php_functions/myclass.php";
require "../../../../fs_folders/php_functions/library.php";
require "../../../../fs_folders/php_functions/source.php";
$mc = new myclass();
$_SESSION['mno'] = $mc->get_cookie('mno', 136);
$mno = $mc->get_cookie('mno', 136);
$wtres = $_SESSION['wtres'] = 12;
#  welcome tres use for the welcome total result everytime user clicked show more.
$_SESSION['csb_fs'] = 2;
# suggested brand counter set to 2 because when hit more second page needs to show
$brand_selected = $mc->retreive_specific_user_brand_selected($mno, 'order by bmsno desc');
$all_brands = $mc->get_all_brand($wtres);
?>
 
<div id="welcome-content-container" >  	 
	<center>  
		<div id="welcome-about-container" >    

				<div>
					<table id='accountsetting-wrapper-container-table-body-right-select_brands-table' border="0" cellspacing="0" cellpadding="0" > 
						<tr> 
							<td id='accountsetting-wrapper-container-table-body-right-select_brands-table-title' style=" padding-bottom:20px;text-align:center; "  >  
								<span style='font-size:13px;' >  
									Select the brands you  wear and like. Selecting more Selecting more then one the required <b>(5)</b> brands will pair you with members who have a lot in common with you.
								</span>
							</td>  
						<tr>