Location: PHPKode > projects > phpCAMALEO > contents/faq.tpl
<?php
include($_SESSION[skinf].'lang/'.$_SESSION[sitelanguage].'/faq.txt');
$sth=db_query('SELECT * FROM faqcategories WHERE siteid=\''.$_SESSION[misc][skin].'\' ORDER BY category');
$row=db_fetch($sth[0],false);
echo '<ul>';
for($i=0;$i<$sth[1];$i++)
{
	echo '<li class="faqcategory"><a href="javascript:makePopup(\'FAQ.php?category_id='.$row[$i][id].'&cat_name='.$row[$i][category]."','faqs','580','480');\" >".$row[$i][category]."</a></li>\n";
}
?>
</ul>
Return current item: phpCAMALEO