mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-08 12:37:37 +00:00
47 lines
929 B
PHP
47 lines
929 B
PHP
<?php
|
|
/**
|
|
* FAQ page.
|
|
*
|
|
* @package amo
|
|
* @subpackage docs
|
|
*
|
|
* @todo FAQ search?
|
|
*/
|
|
$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')
|
|
);
|
|
|
|
// Send FAQ data to Smarty object.
|
|
$tpl->assign(
|
|
array( 'faq' => $faq,
|
|
'links' => $links,
|
|
'sidebar' => 'inc/nav.tpl',
|
|
'content' => 'faq.tpl',
|
|
'title' => 'Frequently Asked Questions')
|
|
);
|
|
|
|
// No need to set wrapper, since the left-nav wrapper is default.
|
|
// $wrapper = 'inc/wrappers/default.tpl';
|
|
?>
|