|
49 | 49 | // The form definition of the first tab. The name of the tab is called 'message'. We refer |
50 | 50 | // to this name in the $form['tab_default'] setting above. |
51 | 51 | $form['tabs']['message'] = array( |
52 | | - 'title' => 'FAQ', // Title of the Tab |
53 | | - 'width' => 100, // Tab width |
54 | | - 'template' => 'templates/faq_edit.htm', // Template file name |
55 | | - 'fields' => array( |
| 52 | + 'title' => 'FAQ', // Title of the Tab |
| 53 | + 'width' => 100, // Tab width |
| 54 | + 'template' => 'templates/faq_edit.htm', // Template file name |
| 55 | + 'fields' => array( |
56 | 56 |
|
57 | 57 | //*** BEGIN Datatable columns ********************************** |
58 | 58 |
|
59 | | - 'hf_section' => array ( |
60 | | - 'datatype' => 'INTEGER', |
61 | | - 'formtype' => 'SELECT', |
62 | | - 'default' => '', |
63 | | - 'datasource' => array ( 'type' => 'SQL', |
64 | | - 'querystring' => 'SELECT hfs_id,hfs_name FROM help_faq_sections', |
65 | | - 'keyfield' => 'hfs_id', |
66 | | - 'valuefield' => 'hfs_name' |
67 | | - ), |
68 | | - 'validators' => array ( 0 => array ( 'type' => 'ISINT', |
69 | | - 'errmsg'=> 'recipient_id_is_not_integer'), |
70 | | - ), |
71 | | - 'value' => ($_SESSION['s']['user']['typ'] != 'admin')?array(1 => 'Administrator'):'' |
72 | | - ), |
73 | | - |
74 | | - 'hf_question' => array( |
75 | | - 'datatype' => 'VARCHAR', |
76 | | - 'formtype' => 'TEXT', |
77 | | - 'validators' => array( 0 => array( 'type' => 'NOTEMPTY', |
78 | | - 'errmsg'=> 'subject_is_empty' |
79 | | - ), |
80 | | - ), |
81 | | - 'default' => '', |
82 | | - 'value' => '', |
83 | | - 'width' => '30', |
84 | | - 'maxlength' => '255' |
85 | | - ), |
86 | | - |
87 | | - 'hf_answer' => array( |
88 | | - 'datatype' => 'TEXT', |
89 | | - 'formtype' => 'TEXTAREA', |
90 | | - 'validators' => array( 0 => array( 'type' => 'NOTEMPTY', |
91 | | - 'errmsg'=> 'message_is_empty' |
92 | | - ), |
93 | | - ), |
94 | | - 'default' => '', |
95 | | - 'value' => '', |
96 | | - 'cols' => '30', |
97 | | - 'rows' => '10', |
98 | | - 'maxlength' => '255' |
99 | | - ), |
100 | | - |
101 | | - //*** END Datatable columns ********************************** |
| 59 | + 'hf_section' => array ( |
| 60 | + 'datatype' => 'INTEGER', |
| 61 | + 'formtype' => 'SELECT', |
| 62 | + 'default' => '', |
| 63 | + 'datasource' => array ( 'type' => 'SQL', |
| 64 | + 'querystring' => 'SELECT hfs_id,hfs_name FROM help_faq_sections', |
| 65 | + 'keyfield' => 'hfs_id', |
| 66 | + 'valuefield' => 'hfs_name' |
| 67 | + ), |
| 68 | + 'validators' => array ( 0 => array ( |
| 69 | + 'type' => 'ISINT', |
| 70 | + 'errmsg'=> 'recipient_id_is_not_integer'), |
| 71 | + ), |
| 72 | + 'value' => ($_SESSION['s']['user']['typ'] != 'admin')?array(1 => 'Administrator'):'' |
| 73 | + ), |
| 74 | + |
| 75 | + 'hf_question' => array( |
| 76 | + 'datatype' => 'VARCHAR', |
| 77 | + 'formtype' => 'TEXT', |
| 78 | + 'validators' => array( 0 => array( 'type' => 'NOTEMPTY', |
| 79 | + 'errmsg'=> 'subject_is_empty' |
| 80 | + ), |
| 81 | + ), |
| 82 | + 'default' => '', |
| 83 | + 'value' => '', |
| 84 | + 'width' => '30', |
| 85 | + 'maxlength' => '255' |
| 86 | + ), |
| 87 | + |
| 88 | + 'hf_answer' => array( |
| 89 | + 'datatype' => 'TEXT', |
| 90 | + 'formtype' => 'TEXTAREA', |
| 91 | + 'validators' => array( 0 => array( 'type' => 'NOTEMPTY', |
| 92 | + 'errmsg' => 'message_is_empty' |
| 93 | + ), |
| 94 | + ), |
| 95 | + 'default' => '', |
| 96 | + 'value' => '', |
| 97 | + 'cols' => '30', |
| 98 | + 'rows' => '10', |
| 99 | + 'maxlength' => '255' |
| 100 | + ), |
| 101 | + |
| 102 | + //*** END Datatable columns ********************************** |
102 | 103 | ) |
103 | 104 | ); |
104 | 105 | ?> |
0 commit comments