From f612f1ebc2b3d70f71da020d9aad01ba09461837 Mon Sep 17 00:00:00 2001
From: filip <filip@ispconfig3>
Date: Thu, 30 Sep 2010 05:45:38 -0400
Subject: [PATCH] Fixed code formatting to tabs
---
interface/web/help/form/faq_sections.tform.php | 36 ++++++------
interface/web/help/faq_list.php | 4
interface/web/help/faq_delete.php | 4
interface/web/help/faq_sections_delete.php | 4
interface/web/help/form/faq.tform.php | 89 +++++++++++++++--------------
interface/web/help/lib/module.conf.php | 24 ++++----
interface/web/help/faq_sections_list.php | 4
interface/web/help/templates/help_faq_sections_list.htm | 2
interface/web/help/faq_sections_edit.php | 6 +-
interface/web/help/faq_edit.php | 6 +-
10 files changed, 90 insertions(+), 89 deletions(-)
diff --git a/interface/web/help/faq_delete.php b/interface/web/help/faq_delete.php
index 1dfc69f..4f6ad61 100644
--- a/interface/web/help/faq_delete.php
+++ b/interface/web/help/faq_delete.php
@@ -10,8 +10,8 @@
// Check module permissions
if(!stristr($_SESSION['s']['user']['modules'],'help')) {
- header('Location: ../index.php');
- die;
+ header('Location: ../index.php');
+ die;
}
// Load the form
diff --git a/interface/web/help/faq_edit.php b/interface/web/help/faq_edit.php
index 02763e8..028c511 100644
--- a/interface/web/help/faq_edit.php
+++ b/interface/web/help/faq_edit.php
@@ -9,8 +9,8 @@
// Check the module permissions and redirect if not allowed.
if(!stristr($_SESSION['s']['user']['modules'],'help')) {
- header('Location: ../index.php');
- die;
+ header('Location: ../index.php');
+ die;
}
// Load the templating and form classes
@@ -20,7 +20,7 @@
// Create a class page_action that extends the tform_actions base class
class page_action extends tform_actions {
- //* Customisations for the page actions will be defined here
+ //* Customisations for the page actions will be defined here
}
diff --git a/interface/web/help/faq_list.php b/interface/web/help/faq_list.php
index ff3ad37..96d281a 100644
--- a/interface/web/help/faq_list.php
+++ b/interface/web/help/faq_list.php
@@ -8,8 +8,8 @@
// Check the module permissions
if(!stristr($_SESSION['s']['user']['modules'],'help')) {
- header('Location: ../index.php');
- die();
+ header('Location: ../index.php');
+ die();
}
// Loading the class
diff --git a/interface/web/help/faq_sections_delete.php b/interface/web/help/faq_sections_delete.php
index 7e087d6..9a47e9b 100644
--- a/interface/web/help/faq_sections_delete.php
+++ b/interface/web/help/faq_sections_delete.php
@@ -10,8 +10,8 @@
// Check module permissions
if(!stristr($_SESSION['s']['user']['modules'],'help')) {
- header('Location: ../index.php');
- die;
+ header('Location: ../index.php');
+ die;
}
// Load the form
diff --git a/interface/web/help/faq_sections_edit.php b/interface/web/help/faq_sections_edit.php
index 7f52d68..73d0280 100644
--- a/interface/web/help/faq_sections_edit.php
+++ b/interface/web/help/faq_sections_edit.php
@@ -9,8 +9,8 @@
// Check the module permissions and redirect if not allowed.
if(!stristr($_SESSION['s']['user']['modules'],'help')) {
- header('Location: ../index.php');
- die;
+ header('Location: ../index.php');
+ die;
}
// Load the templating and form classes
@@ -20,7 +20,7 @@
// Create a class page_action that extends the tform_actions base class
class page_action extends tform_actions {
- //* Customisations for the page actions will be defined here
+ //* Customisations for the page actions will be defined here
}
diff --git a/interface/web/help/faq_sections_list.php b/interface/web/help/faq_sections_list.php
index a24c879..e6f9979 100644
--- a/interface/web/help/faq_sections_list.php
+++ b/interface/web/help/faq_sections_list.php
@@ -8,8 +8,8 @@
// Check the module permissions
if(!stristr($_SESSION['s']['user']['modules'],'help')) {
- header('Location: ../index.php');
- die();
+ header('Location: ../index.php');
+ die();
}
// Loading the class
diff --git a/interface/web/help/form/faq.tform.php b/interface/web/help/form/faq.tform.php
index fd984dd..9b1b338 100644
--- a/interface/web/help/form/faq.tform.php
+++ b/interface/web/help/form/faq.tform.php
@@ -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 **********************************
)
);
?>
diff --git a/interface/web/help/form/faq_sections.tform.php b/interface/web/help/form/faq_sections.tform.php
index 2e61c38..d849f27 100644
--- a/interface/web/help/form/faq_sections.tform.php
+++ b/interface/web/help/form/faq_sections.tform.php
@@ -49,26 +49,26 @@
// 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_sections_edit.htm', // Template file name
- 'fields' => array(
+ 'title' => 'FAQ', // Title of the Tab
+ 'width' => 100, // Tab width
+ 'template' => 'templates/faq_sections_edit.htm', // Template file name
+ 'fields' => array(
- //*** BEGIN Datatable columns **********************************
+ //*** BEGIN Datatable columns **********************************
- 'hfs_name' => array(
- 'datatype' => 'VARCHAR',
- 'formtype' => 'TEXT',
- 'validators' => array( 0 => array( 'type' => 'NOTEMPTY',
- 'errmsg'=> 'subject_is_empty'
- ),
- ),
- 'default' => '',
- 'value' => '',
- 'width' => '30',
- 'maxlength' => '255'
- ),
- //*** END Datatable columns **********************************
+ 'hfs_name' => array(
+ 'datatype' => 'VARCHAR',
+ 'formtype' => 'TEXT',
+ 'validators'=> array( 0 => array( 'type' => 'NOTEMPTY',
+ 'errmsg'=> 'subject_is_empty'
+ ),
+ ),
+ 'default' => '',
+ 'value' => '',
+ 'width' => '30',
+ 'maxlength' => '255'
+ ),
+ //*** END Datatable columns *********************************
)
);
?>
diff --git a/interface/web/help/lib/module.conf.php b/interface/web/help/lib/module.conf.php
index 676e675..ff8da15 100644
--- a/interface/web/help/lib/module.conf.php
+++ b/interface/web/help/lib/module.conf.php
@@ -46,27 +46,27 @@
$itemsfaq = array();
//* admin's tools
if($_SESSION['s']['user']['typ'] == 'admin') {
- $itemsfaq[] = array( 'title' => 'Add a Question & Answer Pair',
- 'target' => 'content',
- 'link' => 'help/faq_edit.php');
- $itemsfaq[] = array( 'title' => 'Manage Sections',
- 'target' => 'content',
- 'link' => 'help/faq_sections_list.php');
+ $itemsfaq[] = array( 'title' => 'Add a Question & Answer Pair',
+ 'target' => 'content',
+ 'link' => 'help/faq_edit.php');
+ $itemsfaq[] = array( 'title' => 'Manage Sections',
+ 'target' => 'content',
+ 'link' => 'help/faq_sections_list.php');
}
$sql = "SELECT * FROM help_faq_sections";
$res = $app->db->queryAllRecords($sql);
//* all the content sections
if(is_array($res)) {
foreach($res as $v) {
- $itemsfaq[] = array( 'title' => $v['hfs_name'],
- 'target' => 'content',
- 'link' => 'help/faq_list.php?hfs_id='.$v['hfs_id']);
+ $itemsfaq[] = array( 'title' => $v['hfs_name'],
+ 'target' => 'content',
+ 'link' => 'help/faq_list.php?hfs_id='.$v['hfs_id']);
}
}
-$module['nav'][] = array( 'title' => 'FAQ',
- 'open' => 1,
- 'items' => $itemsfaq);
+$module['nav'][] = array( 'title' => 'FAQ',
+ 'open' => 1,
+ 'items' => $itemsfaq);
//* -- end of the FAQ menu section
diff --git a/interface/web/help/templates/help_faq_sections_list.htm b/interface/web/help/templates/help_faq_sections_list.htm
index fe4f0f2..bf49fe0 100644
--- a/interface/web/help/templates/help_faq_sections_list.htm
+++ b/interface/web/help/templates/help_faq_sections_list.htm
@@ -12,7 +12,7 @@
<div class="pnl_listarea">
<fieldset><legend><tmpl_var name="faq_sections_txt"></legend>
<table class="list">
- <thead>
+ <thead>
<tr>
<th class="tbl_col_active" scope="col">{tmpl_var name="faq_section_name_txt"}</th>
<th class="tbl_col_server_id" scope="col">{tmpl_var name="faq_delete_txt"}</th>
--
Gitblit v1.9.1