uses('listform_actions'); // Optional limit $hf_section = 0; if(isset($_GET['hfs_id'])) $hf_section = preg_replace("/[^0-9]/","",$_GET['hfs_id']); // if section id is not specified in the url, choose the first existing section if(!$hf_section) { $res = $app->db->queryOneRecord("SELECT MIN(hfs_id) AS min_id FROM help_faq_sections"); $hf_section = $res['min_id']; } $app->listform_actions->SQLExtWhere = "hf_section = $hf_section"; $res = $app->db->queryOneRecord("SELECT hfs_name FROM help_faq_sections WHERE hfs_id=$hf_section"); // Start the form rendering and action ahndling echo "

FAQ: ".$res['hfs_name']."

"; $app->listform_actions->onLoad(); ?>