""){ if($_REQUEST[faq_id] <> ""){ $file = "faq_001.html"; $var[list_faq] = display_faq($_REQUEST[faq_id]); }else{ if($_REQUEST[subcate_id] <>"")$ex = " and subcate_id = '$_REQUEST[subcate_id]'"; else $ex = ""; $file = "faq.html"; $sql = "select * from faq where g_id = '$_REQUEST[g_id]' $ex"; //page base url// if($_REQUEST[page] == "")$page = 1; else $page = $_REQUEST[page]; //no. of records per page $per = 5; $url = "faq.php"; $normal_class = "normal_page"; $current_class = "current_page"; $all_record = cal_record($sql); $all_page = cal_page($sql,$per); $sql = sql_find_page($sql,$page,$per); $var[page] = show_page($all_page,$per,$page,$_REQUEST[g_id],$_REQUEST[subcate_id],$url,$normal_class,$current_class,$keyword); // $var[body] = list_top_group($sql,"products"); $var[body] = list_faq($sql); // /////////////////Display ShortCut $var[shortcut] = "OUR PROJECT"; if($_REQUEST[g_id] <> ""){ $result_category = mysql_query("select * from category_content where g_id = '$_REQUEST[g_id]'"); if(mysql_num_rows($result_category)){ $category_name = mysql_result($result_category,0,"g_name_".$language); //$var[shortcut] .="     ".$category_name.""; } } if($_REQUEST[subcate_id] <> ""){ $result_subcategory = mysql_query("select * from subcategory_content where subcate_id = '$_REQUEST[subcate_id]'"); if(mysql_num_rows($result_subcategory)){ $subcategory_name = mysql_result($result_subcategory,0,"subcatename_".$language); $var[shortcut] .="     ".$subcategory_name.""; } } $var[shortcut] .= ""; /////////////////Display ShortCut } }else{ $sql = "select * from category"; $var[body] = list_top_group($sql,"products"); } $var[list_category] = list_category_faq($_REQUEST[g_id]); $var[top_banner] = top_banner(); parse_file($file,$var); ?>