Files
Mozilla/mozilla/webtools/addons/faq.php
mike.morgan%oregonstate.edu db730d64b0 .htaccess
added comments and config line for include_path, which is important for install
inc/finish.php, inc/init.php
    adjusted how globals were set up
    tried working with non-global db/tpl but it was not scalable so it was switched back
faq.php, index.php, developers/index.php
    smarty -> tpl
lib/addon.class.php
    proper constructor now in place
lib/amo.class.php
    object definition for all basic objects
    sets up tpl,db globals for use in all extending classes
addon.php
    home page for an addon
item.php
    too generic, nuked it


git-svn-id: svn://10.0.0.236/trunk@176188 18797224-902f-48f8-a5cc-f745e15eee43
2005-07-18 03:50:30 +00:00

47 lines
961 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.
$tpl->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';
?>