include("includes/header.php");
if(strstr($_SERVER['HTTP_USER_AGENT'], 'MSIE')==false)
echo '';
$headSection = $p->select('item', 'id = 46');
$faq = $p->select('listAll', 'l.parent = 46');
foreach ($faq as $k => $v)
{
$faq[$k]['questions'] = $p->select('listAll', "l.parent = " . $v['id']);
}
reset($faq);
if(!is_numeric($id))
{
$id = $faq[0]['questions'][0]['id'];
$activeCat = 0;
}
else
{
foreach ($faq as $catKey => $cat)
{
if(is_array($cat))
{
foreach ($cat['questions'] as $vv)
{
if($id == $vv['id'])
$activeCat = $catKey;
}
}
}
}
?>
=$headSection['title']?>
>
foreach ($faq as $mk => $item) { ?>
- =$item['title']?>
>
foreach ($item['questions'] as $q) {
//stefan: faq trqbwa da stane javascriptski, ot wremeto po dogowor za poddryjka
$inln = '';
if($id == $q['id'])
{
$active = $q;
if(strstr($_SERVER['HTTP_USER_AGENT'], 'MSIE')==false)
$inln = ' style="font-weight: bold; padding-left:20px;"';
else
$inln = ' style="font-weight: bold;"';
}
elseif(strstr($_SERVER['HTTP_USER_AGENT'], 'MSIE')==false)
$inln = ' style="padding-left:20px;"';
?>
>=$q['text']?>
} ?>
} ?>
- =$active['text']?>
- =$active['altText']?>
include("includes/footer.php");
?>