'.$mod_strings['LBL_RECENTLY_CREATED'].'';
$list .= '
';
for($i=0;$i'.$faq_array[$i]['question'].'
| '.$faq_array[$i]['answer'].' |
|
';
}
if(!$record_exist)
$list .= $mod_strings['LBL_NO_FAQ'];
$list .= '
';
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'].'
| '.$faq_array[$i]['answer'].' |
|
';
}
}
if(!$flag)
$list .= $mod_strings['LBL_NO_FAQ_IN_THIS_CATEGORY'];
$list .= '
';
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'].'
| '.$faq_array[$i]['answer'].' |
|
';
}
}
if(!$flag)
$list .= $mod_strings['LBL_NO_FAQ_IN_THIS_PRODUCT'];
$list .= '
';
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 .= '
';
$list .= '';
return $list;
}
function getProductName($productid)
{
$product_array = $_SESSION['product_array'];
$productname = '';
for($i=0;$i';
$comboarray .= '';
$comboarray .= '';
$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'].'
| '.$faq_array[$i]['answer'].' |
| '.$mod_strings['LBL_CATEGORY'].': '.$faq_array[$i]['category'].' |
|
';
}
}
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'].'
| '.$faq_array[$i]['answer'].' |
';
}
}
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'].'
| '.$faq_array[$j]['answer'].' |
|
';
}
}
}
}
if(!$record_exist)
$list .= $mod_strings['LBL_NO_FAQ_IN_THIS_SEARCH_CRITERIA'];
}
$list .= '
';
return $list;
}
?>