Fixed: Not selecting a datalabel used to issue a notice(undefined offset)
[phpmyadmin/ammaryasirr.git] / libraries / config / user_preferences.forms.php
blob550593154937cafe54a3bebf0713835166c390cb
1 <?php
2 /* vim: set expandtab sw=4 ts=4 sts=4: */
3 /**
4 * List of avaible forms, each form is described as an array of fields to display.
5 * Fields MUST have their counterparts in the $cfg array.
7 * To define form field, use the notatnion below:
8 * $forms['Form group']['Form name'] = array('Option/path');
10 * You can assign default values set by special button ("set value: ..."), eg.:
11 * 'Servers/1/pmadb' => 'phpmyadmin'
13 * To group options, use:
14 * ':group:' . __('group name') // just define a group
15 * or
16 * 'option' => ':group' // group starting from this option
17 * End group blocks with:
18 * ':group:end'
20 * @package phpMyAdmin
23 $forms = array();
24 $forms['Features']['General'] = array(
25 'AjaxEnable',
26 'VersionCheck',
27 'NaturalOrder',
28 'InitialSlidersState',
29 'ErrorIconic',
30 'LoginCookieValidity',
31 'ReplaceHelpImg',
32 'Servers/1/only_db', // saves to Server/only_db
33 'Servers/1/hide_db', // saves to Server/hide_db
34 'SkipLockedTables',
35 'DisableMultiTableMaintenance',
36 'MaxDbList',
37 'MaxTableList',
38 'ShowHint');
39 $forms['Features']['Text_fields'] = array(
40 'CharEditing',
41 'CharTextareaCols',
42 'CharTextareaRows',
43 'TextareaCols',
44 'TextareaRows',
45 'LongtextDoubleTextarea');
46 $forms['Features']['Page_titles'] = array(
47 'TitleDefault',
48 'TitleTable',
49 'TitleDatabase',
50 'TitleServer');
51 $forms['Features']['Warnings'] = array(
52 'PmaNoRelation_DisableWarning',
53 'SuhosinDisableWarning',
54 'McryptDisableWarning');
55 // settings from this form are treated specially, see prefs_forms.php and user_preferences.lib.php
56 $forms['Features']['Developer'] = array(
57 'Error_Handler/display',
58 'Error_Handler/gather',
59 'DBG/sql');
60 $forms['Sql_queries']['Sql_queries'] = array(
61 'ShowSQL',
62 'Confirm',
63 'QueryHistoryMax',
64 'IgnoreMultiSubmitErrors',
65 'VerboseMultiSubmit',
66 'MaxCharactersInDisplayedSQL',
67 'EditInWindow',
68 //'QueryWindowWidth', // overridden in theme
69 //'QueryWindowHeight',
70 'QueryWindowDefTab');
71 $forms['Sql_queries']['Sql_box'] = array(
72 'SQLQuery/Edit',
73 'SQLQuery/Explain',
74 'SQLQuery/ShowAsPHP',
75 'SQLQuery/Validate',
76 'SQLQuery/Refresh');
77 $forms['Left_frame']['Left_frame'] = array(
78 'LeftFrameLight',
79 'LeftDisplayLogo',
80 'LeftLogoLink',
81 'LeftLogoLinkWindow',
82 'LeftPointerEnable',
83 'LeftRecentTable');
84 $forms['Left_frame']['Left_databases'] = array(
85 'DisplayDatabasesList',
86 'LeftFrameDBTree',
87 'LeftFrameDBSeparator',
88 'ShowTooltipAliasDB');
89 $forms['Left_frame']['Left_tables'] = array(
90 'LeftDisplayTableFilterMinimum',
91 'LeftDefaultTabTable',
92 'LeftFrameTableSeparator',
93 'LeftFrameTableLevel',
94 'ShowTooltip',
95 'ShowTooltipAliasTB');
96 $forms['Main_frame']['Startup'] = array(
97 'MainPageIconic',
98 'ShowCreateDb' => ':group',
99 'SuggestDBName',
100 ':group:end',
101 'ShowStats',
102 'ShowServerInfo');
103 $forms['Main_frame']['Browse'] = array(
104 'NavigationBarIconic',
105 'PropertiesIconic',
106 'ShowAll',
107 'MaxRows',
108 'Order',
109 'DisplayBinaryAsHex',
110 'BrowsePointerEnable',
111 'BrowseMarkerEnable',
112 'SaveCellsAtOnce',
113 'ShowDisplayDirection',
114 'RepeatCells',
115 'LimitChars',
116 'RowActionLinks',
117 'DefaultDisplay',
118 'RememberSorting');
119 $forms['Main_frame']['Edit'] = array(
120 'ProtectBinary',
121 'ShowFunctionFields',
122 'ShowFieldTypesInDataEditView',
123 'InsertRows',
124 'ForeignKeyDropdownOrder',
125 'ForeignKeyMaxLimit',
126 'DefaultPropDisplay');
127 $forms['Main_frame']['Tabs'] = array(
128 'LightTabs',
129 'DefaultTabServer',
130 'DefaultTabDatabase',
131 'DefaultTabTable');
132 $forms['Import']['Import_defaults'] = array(
133 'Import/format',
134 'Import/charset',
135 'Import/allow_interrupt',
136 'Import/skip_queries');
137 $forms['Import']['Sql'] = array(
138 'Import/sql_compatibility',
139 'Import/sql_no_auto_value_on_zero');
140 $forms['Import']['Csv'] = array(
141 ':group:' . __('CSV'),
142 'Import/csv_replace',
143 'Import/csv_ignore',
144 'Import/csv_terminated',
145 'Import/csv_enclosed',
146 'Import/csv_escaped',
147 'Import/csv_col_names',
148 ':group:end',
149 ':group:' . __('CSV using LOAD DATA'),
150 'Import/ldi_replace',
151 'Import/ldi_ignore',
152 'Import/ldi_terminated',
153 'Import/ldi_enclosed',
154 'Import/ldi_escaped',
155 'Import/ldi_local_option');
156 $forms['Import']['Open_Document'] = array(
157 ':group:' . __('Open Document Spreadsheet'),
158 'Import/ods_col_names',
159 'Import/ods_empty_rows',
160 'Import/ods_recognize_percentages',
161 'Import/ods_recognize_currency');
162 $forms['Export']['Export_defaults'] = array(
163 'Export/method',
164 ':group:' . __('Quick'),
165 'Export/quick_export_onserver',
166 'Export/quick_export_onserver_overwrite',
167 ':group:end',
168 ':group:' . __('Custom'),
169 'Export/format',
170 'Export/compression',
171 'Export/charset',
172 'Export/asfile' => ':group',
173 'Export/onserver',
174 'Export/onserver_overwrite',
175 ':group:end',
176 'Export/file_template_table',
177 'Export/file_template_database',
178 'Export/file_template_server');
179 $forms['Export']['Sql'] = array(
180 'Export/sql_include_comments' => ':group',
181 'Export/sql_dates',
182 'Export/sql_relation',
183 'Export/sql_mime',
184 ':group:end',
185 'Export/sql_use_transaction',
186 'Export/sql_disable_fk',
187 'Export/sql_compatibility',
188 ':group:' . __('Database export options'),
189 'Export/sql_drop_database',
190 'Export/sql_structure_or_data',
191 ':group:end',
192 ':group:' . __('Structure'),
193 'Export/sql_drop_table',
194 'Export/sql_procedure_function',
195 'Export/sql_create_table_statements' => ':group',
196 'Export/sql_if_not_exists',
197 'Export/sql_auto_increment',
198 ':group:end',
199 'Export/sql_backquotes',
200 ':group:end',
201 ':group:' . __('Data'),
202 'Export/sql_delayed',
203 'Export/sql_ignore',
204 'Export/sql_type',
205 'Export/sql_insert_syntax',
206 'Export/sql_max_query_size',
207 'Export/sql_hex_for_blob',
208 'Export/sql_utc_time');
209 $forms['Export']['CodeGen'] = array(
210 'Export/codegen_format');
211 $forms['Export']['Csv'] = array(
212 ':group:' . __('CSV'),
213 'Export/csv_separator',
214 'Export/csv_enclosed',
215 'Export/csv_escaped',
216 'Export/csv_terminated',
217 'Export/csv_null',
218 'Export/csv_removeCRLF',
219 'Export/csv_columns',
220 ':group:end',
221 ':group:' . __('CSV for MS Excel'),
222 'Export/excel_null',
223 'Export/excel_removeCRLF',
224 'Export/excel_columns',
225 'Export/excel_edition');
226 $forms['Export']['Latex'] = array(
227 'Export/latex_caption',
228 'Export/latex_structure_or_data',
229 ':group:' . __('Structure'),
230 'Export/latex_structure_caption',
231 'Export/latex_structure_continued_caption',
232 'Export/latex_structure_label',
233 'Export/latex_relation',
234 'Export/latex_comments',
235 'Export/latex_mime',
236 ':group:end',
237 ':group:' . __('Data'),
238 'Export/latex_columns',
239 'Export/latex_data_caption',
240 'Export/latex_data_continued_caption',
241 'Export/latex_data_label',
242 'Export/latex_null');
243 $forms['Export']['Microsoft_Office'] = array(
244 ':group:' . __('Microsoft Word 2000'),
245 'Export/htmlword_structure_or_data',
246 'Export/htmlword_null',
247 'Export/htmlword_columns');
248 $forms['Export']['Open_Document'] = array(
249 ':group:' . __('Open Document Spreadsheet'),
250 'Export/ods_columns',
251 'Export/ods_null',
252 ':group:end',
253 ':group:' . __('Open Document Text'),
254 'Export/odt_structure_or_data',
255 ':group:' . __('Structure'),
256 'Export/odt_relation',
257 'Export/odt_comments',
258 'Export/odt_mime',
259 ':group:end',
260 ':group:' . __('Data'),
261 'Export/odt_columns',
262 'Export/odt_null');
263 $forms['Export']['Texy'] = array(
264 'Export/texytext_structure_or_data',
265 ':group:' . __('Data'),
266 'Export/texytext_null',
267 'Export/texytext_columns');