ViewAll_Seller_Rating($_GET['user']); $rscnt = $db1->num_rows(); $i=0; while($db1->next_record()) { $arr_rating[$i]['project_title'] = $db1->f('project_title'); $arr_rating[$i]['clean_title'] = clean_url($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++; } ############################################################################################## /// assing templates and javascript with related varibles according to template ############################################################################################## $tpl->assign(array( "T_Body" => 'feedback'. $config['tplEx'], "arating" => $arr_rating, "Loop" => $rscnt, "user_name" => $_GET['user'], )); ############################################################################################## $ave_rating = number_format($seller->Average_Seller_Rating($_GET['user']),2); $tpl->assign(array( "ave_rating" => $ave_rating, )); $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 = ''; } /* assign language */ $tpl->assign(array( "TOP_TITLE" => strtoupper($_GET['user']."
"."Feedback"), "Total_Reviews" => $lang['Total_Reviews'], "Average_Rating" => $lang['Average_Rating'], "Time" => $lang['Time'], "Buyer" => $lang['Buyer'], "Rating" => $lang['Rating'], "Text1" => $lang['Text1'], "Text3" => $lang['Text3'], "navigation" => $navigation, "navigation1" => $navigation1, "navigation2" => $navigation2, )); $tpl->display('default_layout'. $config['tplEx']); // assign to layout template ?>