GetSellerPortfolioByName($_GET['user_name']); $cnt = $db->num_rows(); $i=0; while($db->next_record()) { $seller_portfolio[$i]['id'] = $db->f('portfolio_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++; } $str = $_SERVER['HTTP_REFERER']; $str1 = substr(strrchr($str,'/'),1); if($str1 == "all_portfolio.php") { $navigation = ''.$lang['Find_Portfolio'].''; $navigation1 = ''; } else { $navigation =''.$lang['Find_Seller'].''; $navigation1= ''; } $tpl->assign(array( "T_Body" => 'seller_portfolio'. $config['tplEx'], "lang" => $lang, "JavaScript" => array('seller.js'), "Loop" => $cnt, "user_name" => $_GET['user_name'], "sportfolio" => $seller_portfolio, "portfolio_imgpath" => $virtual_path['Portfolio'], "tab" => 4, "navigation" => $navigation, "navigation1" => $navigation1, "navigation2" => $navigation2, )); $tpl->display('default_layout'. $config['tplEx']); ?>