/**
* This file is part of the »opcodeCMS« PHP-Framework (Version 1.0)
* Copyright by Dominik Jain (core framework) and Anil K. Jain (modules)
* This code may not be changed, copied or distributed without prior permission.
* Please, visit http://www.opcodecms.de for contact information, licensing and support. Encoding check: ÄÖÜ!
*/
$modules_root = file_exists("open.inc.php") ? "modules" : "..";
$root = "$modules_root/..";
include_once "$modules_root/module.inc.php";
include_once "FAQModule.object.inc.php";
include_once "$root/core/config.inc.php";
?>
$rescategories = mysql_query("select * from faq_categories where id in (select category_id from faqs where faqs.show_generally='1') order by IF(faq_categories.sort_order IS NULL,1,0), faq_categories.sort_order, faq_categories.category");
if(mysql_num_rows($rescategories) > 1 && $FAQModule->useCategories) {
echo '
';
}
$resitems = mysql_query("select faqs.*,faq_categories.category,faq_categories.sort_order from faqs left join faq_categories on faqs.category_id=faq_categories.id where faqs.show_generally='1' order by IF(faq_categories.sort_order IS NULL,1,0), faq_categories.sort_order, faq_categories.category, IF(faqs.sort_order IS NULL,1,0), faqs.sort_order, faqs.question");
$FAQModule->faqs_listing($resitems, 1, false, false, 1, false);
if(!$config_checkframeset)
include "$root/post_content.inc.php";
?>