Notes:
index.php - example document for main index, default.tpl wrapper
faq.php - example document for faq page, nonav.tpl wrapper
git-svn-id: svn://10.0.0.236/trunk@175939 18797224-902f-48f8-a5cc-f745e15eee43
47 lines
964 B
PHP
47 lines
964 B
PHP
<?php
|
|
/**
|
|
* FAQ page.
|
|
* @package amo
|
|
* @subpackage docs
|
|
*/
|
|
$db->query("
|
|
SELECT
|
|
`title`,
|
|
`text`
|
|
FROM
|
|
`faq`
|
|
WHERE
|
|
`active` = 'YES'
|
|
ORDER BY
|
|
`index` ASC,
|
|
`title` ASC
|
|
",SQL_ALL, SQL_ASSOC);
|
|
|
|
$faq = $db->record;
|
|
|
|
$links = array(
|
|
array( 'href' => './faq.php',
|
|
'title' => 'Frequently Asked Questions',
|
|
'text' => 'FAQ'),
|
|
|
|
array( 'href' => './policy.php',
|
|
'title' => 'Addons Policies',
|
|
'text' => 'Policy'),
|
|
|
|
array( 'href' => './about.php',
|
|
'title' => 'About this Site',
|
|
'text' => 'About'),
|
|
);
|
|
|
|
// Send FAQ data to Smarty object.
|
|
$smarty->assign(
|
|
array( 'faq' => $faq,
|
|
'links' => $links,
|
|
'sidebar' => 'inc/nav.tpl',
|
|
'content' => 'faq.tpl')
|
|
);
|
|
|
|
// No need to set wrapper, since the left-nav wrapper is default.
|
|
// $wrapper = 'inc/wrappers/default.tpl';
|
|
?>
|