'.$mod_strings['LBL_RECENTLY_CREATED'].''; $list .= '
'; for($i=0;$i'.$faq_array[$i]['question'].' '; } if(!$record_exist) $list .= $mod_strings['LBL_NO_FAQ']; $list .= '
'.$faq_array[$i]['answer'].'
'; return $list; } function ListFaqsPerCategory($category_index) { global $mod_strings; $list = ''; $category_array = $_SESSION['category_array']; $faq_array = $_SESSION['faq_array']; $category = $category_array[$category_index]; $list = '
'.$mod_strings['LBL_CATEGORY'].': '.$category.'
'; $list .= '
'; for($i=0;$i'.$faq_array[$i]['question'].' '; } } if(!$flag) $list .= $mod_strings['LBL_NO_FAQ_IN_THIS_CATEGORY']; $list .= '
'.$faq_array[$i]['answer'].'
'; return $list; } function ListFaqsPerProduct($productid) { global $mod_strings; $list = ''; $product_array = $_SESSION['product_array']; $faq_array = $_SESSION['faq_array']; $list = '
'.$mod_strings['LBL_PRODUCT'].': '.getProductname($productid).'
'; $list .= '
'; for($i=0;$i'.$faq_array[$i]['question'].' '; } } if(!$flag) $list .= $mod_strings['LBL_NO_FAQ_IN_THIS_PRODUCT']; $list .= '
'.$faq_array[$i]['answer'].'
'; return $list; } function getArticleIdTime($faqid,$product_id,$faqcategory,$faqcreatedtime,$faqmodifiedtime) { global $mod_strings; $list .='
'.$mod_strings['LBL_ARTICLE_ID'].': '.$faqid.'
'.$mod_strings['LBL_PRODUCT'].': '.getProductName($product_id).'
'.$mod_strings['LBL_CATEGORY'].': '.$faqcategory.'
'.$mod_strings['LBL_CREATED_DATE'].': '.substr($faqcreatedtime,0,10).'
'.$mod_strings['LBL_MODIFIED_DATE'].': '.substr($faqmodifiedtime,0,10).'
'; return $list; } function getPageOption() { global $mod_strings; $list .= '
'.$mod_strings['LBL_PRINT_THIS_PAGE'].' '.$mod_strings['LBL_EMAIL_THIS_PAGE'].' '.$mod_strings['LBL_ADD_TO_FAVORITES'].'
'; $list .= ''; return $list; } function getProductName($productid) { $product_array = $_SESSION['product_array']; $productname = ''; for($i=0;$i'; $comboarray .= ''; for($i=0;$i'.$category_array[$i].''; } $comboarray .= ''; $comboarray .= ''; for($i=0;$i'.$product_array[$i]['productname'].''; } $comboarray .= ''; $comboarray .= ''; return $comboarray; } function getSearchResult($search_text,$search_value,$search_by) { global $mod_strings; $faq_array = $_SESSION['faq_array']; $list = '
'.$mod_strings['LBL_SEARCH_RESULT'].'
'; $list .= '
'; if($search_value == 'All') { for($i=0;$i'.$faq_array[$i]['question'].' '; } } if(!$record_exist) $list .= $mod_strings['LBL_NO_FAQ_IN_THIS_SEARCH_CRITERIA']; } elseif($search_by == 'category') { for($i=0;$i'.$faq_array[$i]['question'].' '; } } if(!$record_exist) $list .= $mod_strings['LBL_NO_FAQ_IN_THIS_SEARCH_CRITERIA']; } elseif($search_by == 'products') { $product_array = $_SESSION['product_array']; $faq_array = $_SESSION['faq_array']; for($i=0;$i'.$faq_array[$j]['question'].' '; } } } } if(!$record_exist) $list .= $mod_strings['LBL_NO_FAQ_IN_THIS_SEARCH_CRITERIA']; } $list .= '
'.$faq_array[$i]['answer'].'
'.$mod_strings['LBL_CATEGORY'].': '.$faq_array[$i]['category'].'
'.$faq_array[$i]['answer'].'
'.$faq_array[$j]['answer'].'
'; return $list; } ?>