Point access keys to top instead of bottom; works better except no access keys will...
[squirrelmail.git] / include / options / accessibility.php
CommitLineData
8949acd6 1<?php
2
3/**
4 * options_accessibility.php
5 *
6 * Displays all options concerning accessibility features in SquirrelMail.
7 *
8 * @copyright &copy; 1999-2007 The SquirrelMail Project Team
9 * @license http://opensource.org/licenses/gpl-license.php GNU Public License
10 * @version $Id$
11 * @package squirrelmail
12 */
13
14/** Define the group constants for this options page. */
15define('SMOPT_GRP_ACCESSKEYS_READ_MESSAGE', 0);
16define('SMOPT_GRP_ACCESSKEYS_COMPOSE', 1);
17
18/**
19 * This function builds an array with all the information about
20 * the options available to the user, and returns it. The options
21 * are grouped by the groups in which they are displayed.
22 * For each option, the following information is stored:
23 * - name: the internal (variable) name
24 * - caption: the description of the option in the UI
25 * - type: one of SMOPT_TYPE_*
26 * - refresh: one of SMOPT_REFRESH_*
27 * - size: one of SMOPT_SIZE_*
28 * - save: the name of a function to call when saving this option
29 * @return array all option information
30 */
31function load_optpage_data_accessibility() {
32
33 global $a_to_z;
34 $my_a_to_z = array_merge(array('NONE' => _("Not used")), $a_to_z);
35
36 /* Build a simple array into which we will build options. */
37 $optgrps = array();
38 $optvals = array();
39
40 /******************************************************/
41 /* LOAD EACH GROUP OF OPTIONS INTO THE OPTIONS ARRAY. */
42 /******************************************************/
43
44 /*** Load the Access Key Options for the Read Message page into the array ***/
45 $optgrps[SMOPT_GRP_ACCESSKEYS_READ_MESSAGE] = _("Access Keys For Read Message Screen");
46 $optvals[SMOPT_GRP_ACCESSKEYS_READ_MESSAGE] = array();
47
48 $optvals[SMOPT_GRP_ACCESSKEYS_READ_MESSAGE][] = array(
49 'name' => 'accesskey_read_msg_reply',
50 'caption' => _("Reply"),
51 'type' => SMOPT_TYPE_STRLIST,
52 'refresh' => SMOPT_REFRESH_NONE,
8949acd6 53 'posvals' => $my_a_to_z,
54 );
55
56 $optvals[SMOPT_GRP_ACCESSKEYS_READ_MESSAGE][] = array(
57 'name' => 'accesskey_read_msg_reply_all',
58 'caption' => _("Reply All"),
59 'type' => SMOPT_TYPE_STRLIST,
60 'refresh' => SMOPT_REFRESH_NONE,
8949acd6 61 'posvals' => $my_a_to_z,
62 );
63
64 $optvals[SMOPT_GRP_ACCESSKEYS_READ_MESSAGE][] = array(
65 'name' => 'accesskey_read_msg_forward',
66 'caption' => _("Forward"),
67 'type' => SMOPT_TYPE_STRLIST,
68 'refresh' => SMOPT_REFRESH_NONE,
8949acd6 69 'posvals' => $my_a_to_z,
70 );
71
72 $optvals[SMOPT_GRP_ACCESSKEYS_READ_MESSAGE][] = array(
73 'name' => 'accesskey_read_msg_as_attach',
74 'caption' => _("As Attachment"),
75 'type' => SMOPT_TYPE_STRLIST,
76 'refresh' => SMOPT_REFRESH_NONE,
8949acd6 77 'posvals' => $my_a_to_z,
78 );
79
80 $optvals[SMOPT_GRP_ACCESSKEYS_READ_MESSAGE][] = array(
81 'name' => 'accesskey_read_msg_delete',
82 'caption' => _("Delete"),
83 'type' => SMOPT_TYPE_STRLIST,
84 'refresh' => SMOPT_REFRESH_NONE,
8949acd6 85 'posvals' => $my_a_to_z,
86 );
87
88 $optvals[SMOPT_GRP_ACCESSKEYS_READ_MESSAGE][] = array(
89 'name' => 'accesskey_read_msg_bypass_trash',
90 'caption' => _("Bypass Trash"),
91 'type' => SMOPT_TYPE_STRLIST,
92 'refresh' => SMOPT_REFRESH_NONE,
8949acd6 93 'posvals' => $my_a_to_z,
94 );
95
96 $optvals[SMOPT_GRP_ACCESSKEYS_READ_MESSAGE][] = array(
97 'name' => 'accesskey_read_msg_move_to',
98 'caption' => _("Move To"),
99 'type' => SMOPT_TYPE_STRLIST,
100 'refresh' => SMOPT_REFRESH_NONE,
8949acd6 101 'posvals' => $my_a_to_z,
102 );
103
104 $optvals[SMOPT_GRP_ACCESSKEYS_READ_MESSAGE][] = array(
105 'name' => 'accesskey_read_msg_move',
106 'caption' => _("Move"),
107 'type' => SMOPT_TYPE_STRLIST,
108 'refresh' => SMOPT_REFRESH_NONE,
8949acd6 109 'posvals' => $my_a_to_z,
110 );
111
112 $optvals[SMOPT_GRP_ACCESSKEYS_READ_MESSAGE][] = array(
113 'name' => 'accesskey_read_msg_copy',
114 'caption' => _("Copy"),
115 'type' => SMOPT_TYPE_STRLIST,
116 'refresh' => SMOPT_REFRESH_NONE,
8949acd6 117 'posvals' => $my_a_to_z,
118 );
119
120
121 /*** Load the Access Key Options for the Compose page into the array ***/
122 $optgrps[SMOPT_GRP_ACCESSKEYS_COMPOSE] = _("Access Keys For Compose Screen");
123 $optvals[SMOPT_GRP_ACCESSKEYS_COMPOSE] = array();
124
125 $optvals[SMOPT_GRP_ACCESSKEYS_COMPOSE][] = array(
5840b9f0 126 'name' => 'accesskey_compose_identity',
127 'caption' => _("From"),
128 'type' => SMOPT_TYPE_STRLIST,
129 'refresh' => SMOPT_REFRESH_NONE,
130 'posvals' => $my_a_to_z,
131 );
132
133 $optvals[SMOPT_GRP_ACCESSKEYS_COMPOSE][] = array(
8949acd6 134 'name' => 'accesskey_compose_to',
135 'caption' => _("To"),
136 'type' => SMOPT_TYPE_STRLIST,
137 'refresh' => SMOPT_REFRESH_NONE,
8949acd6 138 'posvals' => $my_a_to_z,
139 );
140
141 $optvals[SMOPT_GRP_ACCESSKEYS_COMPOSE][] = array(
142 'name' => 'accesskey_compose_cc',
143 'caption' => _("Cc"),
144 'type' => SMOPT_TYPE_STRLIST,
145 'refresh' => SMOPT_REFRESH_NONE,
8949acd6 146 'posvals' => $my_a_to_z,
147 );
148
149 $optvals[SMOPT_GRP_ACCESSKEYS_COMPOSE][] = array(
150 'name' => 'accesskey_compose_bcc',
151 'caption' => _("Bcc"),
152 'type' => SMOPT_TYPE_STRLIST,
153 'refresh' => SMOPT_REFRESH_NONE,
8949acd6 154 'posvals' => $my_a_to_z,
155 );
156
157 $optvals[SMOPT_GRP_ACCESSKEYS_COMPOSE][] = array(
158 'name' => 'accesskey_compose_subject',
159 'caption' => _("Subject"),
160 'type' => SMOPT_TYPE_STRLIST,
161 'refresh' => SMOPT_REFRESH_NONE,
8949acd6 162 'posvals' => $my_a_to_z,
163 );
164
165 $optvals[SMOPT_GRP_ACCESSKEYS_COMPOSE][] = array(
166 'name' => 'accesskey_compose_priority',
167 'caption' => _("Priority"),
168 'type' => SMOPT_TYPE_STRLIST,
169 'refresh' => SMOPT_REFRESH_NONE,
8949acd6 170 'posvals' => $my_a_to_z,
171 );
172
173 $optvals[SMOPT_GRP_ACCESSKEYS_COMPOSE][] = array(
174 'name' => 'accesskey_compose_on_read',
175 'caption' => _("On Read"),
176 'type' => SMOPT_TYPE_STRLIST,
177 'refresh' => SMOPT_REFRESH_NONE,
8949acd6 178 'posvals' => $my_a_to_z,
179 );
180
181 $optvals[SMOPT_GRP_ACCESSKEYS_COMPOSE][] = array(
182 'name' => 'accesskey_compose_on_delivery',
183 'caption' => _("On Delivery"),
184 'type' => SMOPT_TYPE_STRLIST,
185 'refresh' => SMOPT_REFRESH_NONE,
8949acd6 186 'posvals' => $my_a_to_z,
187 );
188
189 $optvals[SMOPT_GRP_ACCESSKEYS_COMPOSE][] = array(
190 'name' => 'accesskey_compose_signature',
191 'caption' => _("Signature"),
192 'type' => SMOPT_TYPE_STRLIST,
193 'refresh' => SMOPT_REFRESH_NONE,
8949acd6 194 'posvals' => $my_a_to_z,
195 );
196
197 $optvals[SMOPT_GRP_ACCESSKEYS_COMPOSE][] = array(
198 'name' => 'accesskey_compose_addresses',
199 'caption' => _("Addresses"),
200 'type' => SMOPT_TYPE_STRLIST,
201 'refresh' => SMOPT_REFRESH_NONE,
8949acd6 202 'posvals' => $my_a_to_z,
203 );
204
205 $optvals[SMOPT_GRP_ACCESSKEYS_COMPOSE][] = array(
206 'name' => 'accesskey_compose_save_draft',
207 'caption' => _("Save Draft"),
208 'type' => SMOPT_TYPE_STRLIST,
209 'refresh' => SMOPT_REFRESH_NONE,
8949acd6 210 'posvals' => $my_a_to_z,
211 );
212
213 $optvals[SMOPT_GRP_ACCESSKEYS_COMPOSE][] = array(
214 'name' => 'accesskey_compose_send',
215 'caption' => _("Send"),
216 'type' => SMOPT_TYPE_STRLIST,
217 'refresh' => SMOPT_REFRESH_NONE,
8949acd6 218 'posvals' => $my_a_to_z,
219 );
220
221 $optvals[SMOPT_GRP_ACCESSKEYS_COMPOSE][] = array(
222 'name' => 'accesskey_compose_body',
223 'caption' => _("Body"),
224 'type' => SMOPT_TYPE_STRLIST,
225 'refresh' => SMOPT_REFRESH_NONE,
8949acd6 226 'posvals' => $my_a_to_z,
227 );
228
229 $optvals[SMOPT_GRP_ACCESSKEYS_COMPOSE][] = array(
230 'name' => 'accesskey_compose_attach_browse',
231 'caption' => _("Browse"),
232 'type' => SMOPT_TYPE_STRLIST,
233 'refresh' => SMOPT_REFRESH_NONE,
8949acd6 234 'posvals' => $my_a_to_z,
235 );
236
237 $optvals[SMOPT_GRP_ACCESSKEYS_COMPOSE][] = array(
238 'name' => 'accesskey_compose_attach',
239 'caption' => _("Attach"),
240 'type' => SMOPT_TYPE_STRLIST,
241 'refresh' => SMOPT_REFRESH_NONE,
8949acd6 242 'posvals' => $my_a_to_z,
243 );
244
245 $optvals[SMOPT_GRP_ACCESSKEYS_COMPOSE][] = array(
246 'name' => 'accesskey_compose_delete_attach',
247 'caption' => _("Delete Selected Attachments"),
248 'type' => SMOPT_TYPE_STRLIST,
249 'refresh' => SMOPT_REFRESH_NONE,
8949acd6 250 'posvals' => $my_a_to_z,
251 );
252
253
254 /* Assemble all this together and return it as our result. */
255 $result = array(
256 'grps' => $optgrps,
257 'vals' => $optvals
258 );
259 return ($result);
260}
261
262/******************************************************************/
263/** Define any specialized save functions for this option page. ***/
264/** ***/
265/** You must add every function that is set in save parameter ***/
266/******************************************************************/
267