From ed30c60150ffda0301eb1f8d30c93cac94de41df Mon Sep 17 00:00:00 2001
From: tbrehm <t.brehm@ispconfig.org>
Date: Mon, 25 Jul 2011 10:38:22 -0400
Subject: [PATCH] Fixed some warnings in the installer.
---
interface/web/help/form/faq.tform.php | 91 +++++++++++++++++++++++----------------------
1 files changed, 46 insertions(+), 45 deletions(-)
diff --git a/interface/web/help/form/faq.tform.php b/interface/web/help/form/faq.tform.php
index fd984dd..276b9d8 100644
--- a/interface/web/help/form/faq.tform.php
+++ b/interface/web/help/form/faq.tform.php
@@ -27,7 +27,7 @@
$form['tab_default'] = 'message';
// The name of the default list file of this form
-$form['list_default'] = 'faq_list.php';
+$form['list_default'] = 'faq_manage_questions_list.php';
// Use the internal authentication system for this table. This should
// be set to 'yes' in most cases, otherwise 'no'.
@@ -49,56 +49,57 @@
// The form definition of the first tab. The name of the tab is called 'message'. We refer
// to this name in the $form['tab_default'] setting above.
$form['tabs']['message'] = array(
- 'title' => 'FAQ', // Title of the Tab
- 'width' => 100, // Tab width
- 'template' => 'templates/faq_edit.htm', // Template file name
- 'fields' => array(
+ 'title' => 'FAQ', // Title of the Tab
+ 'width' => 100, // Tab width
+ 'template' => 'templates/faq_edit.htm', // Template file name
+ 'fields' => array(
//*** BEGIN Datatable columns **********************************
- 'hf_section' => array (
- 'datatype' => 'INTEGER',
- 'formtype' => 'SELECT',
- 'default' => '',
- 'datasource' => array ( 'type' => 'SQL',
- 'querystring' => 'SELECT hfs_id,hfs_name FROM help_faq_sections',
- 'keyfield' => 'hfs_id',
- 'valuefield' => 'hfs_name'
- ),
- 'validators' => array ( 0 => array ( 'type' => 'ISINT',
- 'errmsg'=> 'recipient_id_is_not_integer'),
- ),
- 'value' => ($_SESSION['s']['user']['typ'] != 'admin')?array(1 => 'Administrator'):''
- ),
+ 'hf_section' => array (
+ 'datatype' => 'INTEGER',
+ 'formtype' => 'SELECT',
+ 'default' => '',
+ 'datasource' => array ( 'type' => 'SQL',
+ 'querystring' => 'SELECT hfs_id,hfs_name FROM help_faq_sections',
+ 'keyfield' => 'hfs_id',
+ 'valuefield' => 'hfs_name'
+ ),
+ 'validators' => array ( 0 => array (
+ 'type' => 'ISINT',
+ 'errmsg'=> 'recipient_id_is_not_integer'),
+ ),
+ 'value' => ($_SESSION['s']['user']['typ'] != 'admin')?array(1 => 'Administrator'):''
+ ),
- 'hf_question' => array(
- 'datatype' => 'VARCHAR',
- 'formtype' => 'TEXT',
- 'validators' => array( 0 => array( 'type' => 'NOTEMPTY',
- 'errmsg'=> 'subject_is_empty'
- ),
- ),
- 'default' => '',
- 'value' => '',
- 'width' => '30',
- 'maxlength' => '255'
- ),
+ 'hf_question' => array(
+ 'datatype' => 'VARCHAR',
+ 'formtype' => 'TEXT',
+ 'validators' => array( 0 => array( 'type' => 'NOTEMPTY',
+ 'errmsg'=> 'subject_is_empty'
+ ),
+ ),
+ 'default' => '',
+ 'value' => '',
+ 'width' => '30',
+ 'maxlength' => '255'
+ ),
- 'hf_answer' => array(
- 'datatype' => 'TEXT',
- 'formtype' => 'TEXTAREA',
- 'validators' => array( 0 => array( 'type' => 'NOTEMPTY',
- 'errmsg'=> 'message_is_empty'
- ),
- ),
- 'default' => '',
- 'value' => '',
- 'cols' => '30',
- 'rows' => '10',
- 'maxlength' => '255'
- ),
+ 'hf_answer' => array(
+ 'datatype' => 'TEXT',
+ 'formtype' => 'TEXTAREA',
+ 'validators' => array( 0 => array( 'type' => 'NOTEMPTY',
+ 'errmsg' => 'message_is_empty'
+ ),
+ ),
+ 'default' => '',
+ 'value' => '',
+ 'cols' => '30',
+ 'rows' => '10',
+ 'maxlength' => '255'
+ ),
- //*** END Datatable columns **********************************
+ //*** END Datatable columns **********************************
)
);
?>
--
Gitblit v1.9.1