Check_User_ID($_GET['user']); // to check profile exist or not ############################################################################################## /// assing templates and javascript with related varibles according to template ############################################################################################## $tpl->assign(array( "T_Body" => 'viewsellerprofile'. $config['tplEx'], "JavaScript" => array("seller.js"), "lang" => $lang, "avg_rating" => $seller->Get_Avg_Skill_User(md5($_GET['user'])), // get skill of user "skill_count" => $seller->Skill_Count_User(md5($_GET['user'])), // get skill count of user "Listing" => $seller->Skills_Listing(md5($_GET['user'])), // get listing of skills "img_path" => $virtual_path['Seller_Logo'], "earn_by_site" => Sellect_Earning_Wallet(md5($_GET['user'])), )); ############################################################################################## ############################################################################################## /// get industry listing with name ############################################################################################## $buyer->GetUserDetails($_GET['user']); $db->next_record(); $str = $_SERVER['HTTP_REFERER']; $str1 = substr(strrchr($str,'/'),1); if($str1 == 'manage_seller.php') { $navigation = ''.$lang['Seller_Activity'].''; $navigation1= ''; } else if($str1 == 'all_portfolio.php') { $navigation = ''.$lang['Find_Portfolio'].''; $navigation1 = ''; } else { $navigation = ''.$lang['Find_Seller'].''; $navigation1 = ''; } $industries = ""; if($db->f('seller_industry') != "") { $arr_industry = explode(",",$db->f('seller_industry')); foreach($arr_industry as $key => $val) { $names = ''.$industry->Get_Industry_Name($val).""; // to get name of industry from id $industries = $industries.$names; } } ############################################################################################## /// get Location(If State is there taken city,state,country else city,country) ############################################################################################## if($db->f('mem_state') != '') { $location = $db->f('mem_city').",".$db->f('mem_state').",".$db->f('country_name'); } else { $location = $db->f('mem_city').",".$db->f('country_name'); } ############################################################################################## // assign to template if($db->f('seller_slogan') == '') { $slogan = $_GET['user'].$lang['Seller_Profile']; } else { $slogan = $db->f('seller_slogan'); } $tpl->assign(array( "seller_slogan" => $slogan, "seller_description" => $db->f('seller_description'), "seller_rate_per_hour" => $db->f('seller_rate_per_hour'), "seller_exp" => $db->f('expe_title'), "location" => $location, "mem_employes" => $db->f('mem_employes'), "membership_id" => $db->f('membership_id'), "seller_logo" => $db->f('seller_logo'), "industries" => $industries, "mother_lang" => $db->f('mother_lang'), "lang_pairs" => $db->f('lang_pairs'), "user_name" => $user_name, "user" => $_GET['user'], "TOP_TITLE" => strtoupper($_GET['user']."
".$db->f('seller_slogan')), "Site_Title" => $_GET['user']." - ".$location, "Meta_Description" => $db->f('seller_description'), "navigation" => $navigation, "navigation1" => $navigation1, "navigation2" => $navigation2, )); $ave_rating = number_format($seller->Average_Seller_Rating($_GET['user']),2); $tpl->assign(array( "rating" => $ave_rating, )); $ave_count = $seller->Average_Seller_Rating_Count($_GET['user']); $tpl->assign(array( "ave_count" => $ave_count, )); ############################################################################################## /// get portfolio listing for partucular user ############################################################################################## $resultset = $seller->GetSellerPortfolio(md5($_GET['user'])); $cnt = $db->num_rows(); $i=0; while($db->next_record()) { $seller_portfolio[$i]['id'] = $db->f('portfolio_id'); $seller_portfolio[$i]['user_auth_id'] = $db->f('user_auth_id'); $seller_portfolio[$i]['user_name'] = $db->f('user_name'); $seller_portfolio[$i]['title'] = $db->f('title'); $seller_portfolio[$i]['desc'] = $db->f('description'); $seller_portfolio[$i]['sample_file'] = $db->f('sample_file'); $seller_portfolio[$i]['industry'] = $db->f('industry_name'); $seller_portfolio[$i]['budget'] = $db->f('development_title'); $seller_portfolio[$i]['time_spent'] = $db->f('exe_name'); $seller_portfolio[$i]['categories'] = $db->f('categories'); $seller_portfolio1 = explode(",",$seller_portfolio[$i]['categories']); $categories = ""; foreach($seller_portfolio1 as $key=>$val) { $cats = $cate->GetCatName($val); $categories = $categories.$cats." ,"; } $new_categories = substr($categories,0,-1); $seller_portfolio[$i]['cats'] = $new_categories; $i++; } ############################################################################################## // assign to template $tpl->assign(array( "Loop" => $cnt, "sportfolio" => $seller_portfolio, "portfolio_imgpath" => $virtual_path['Portfolio'], "user_name1" => $_GET['user'], )); $seller->ViewAll_Seller_Rating1($_SESSION['User_Name']); $rscnt1 = $db1->num_rows(); $i=0; while($db1->next_record()) { $arr_rating[$i]['project_title'] = $db1->f('project_title'); $arr_rating[$i]['dec'] = wordwrap( $db1->f('description'), 15, "\n", 1); $arr_rating[$i]['project_id'] = $db1->f('project_id'); $arr_rating[$i]['date_time'] = $db1->f('date_time'); $arr_rating[$i]['rating_by_user'] = $db1->f('rating_by_user'); $arr_rating[$i]['rating'] = $db1->f('rating'); $arr_rating[$i]['count'] = $buyer->Average_Buyer_Rating_Count($db1->f('rating_by_user')); $i++; } $tpl->assign(array( "arating" => $arr_rating, "Loop1" => $rscnt1, "lang" => $lang, "tab" => 2, )); $tpl->display('default_layout'. $config['tplEx']); // assign to layout template ?>