[ Index ] |
|
Code source de eGroupWare 1.2.106-2 |
1 <?php 2 /**************************************************************************\ 3 * eGroupWare - Calendar Preferences * 4 * http://www.egroupware.org * 5 * Based on Webcalendar by Craig Knudsen <cknudsen@radix.net> * 6 * http://www.radix.net/~cknudsen * 7 * Modified by Mark Peters <skeeter@phpgroupware.org> * 8 * Modified by Ralf Becker <ralfbecker@outdoor-training.de> * 9 * -------------------------------------------- * 10 * This program is free software; you can redistribute it and/or modify it * 11 * under the terms of the GNU General Public License as published by the * 12 * Free Software Foundation; either version 2 of the License, or (at your * 13 * option) any later version. * 14 \**************************************************************************/ 15 16 /* $Id: hook_settings.inc.php 22347 2006-08-25 08:23:27Z ralfbecker $ */ 17 18 $bocal =& CreateObject('calendar.bocal'); 19 $bocal->check_set_default_prefs(); 20 21 $default = array( 22 'day' => lang('Dayview'), 23 'day4' => lang('Four days view'), 24 'week' => lang('Weekview'), 25 'month' => lang('Monthview'), 26 'planner_cat' => lang('Planner by category'), 27 'planner_user' => lang('Planner by user'), 28 'listview' => lang('Listview'), 29 ); 30 $grid_views = array( 31 '' => lang('all'), 32 'day_week' => lang('Dayview').', '.lang('Four days view').' & '.lang('Weekview'), 33 'day4' => lang('Dayview').' & '.lang('Four days view'), 34 'day' => lang('Dayview'), 35 ); 36 /* Select list with number of day by week */ 37 $week_view = array( 38 '5' => lang('Weekview without weekend'), 39 '7' => lang('Weekview with weekend'), 40 ); 41 42 $mainpage = array( 43 '1' => lang('Yes'), 44 '0' => lang('No'), 45 ); 46 /* 47 $summary = array( 48 'no' => lang('Never'), 49 'daily' => lang('Daily'), 50 'weekly' => lang('Weekly') 51 ); 52 create_select_box('Receive summary of appointments','summary',$summary, 53 'Do you want to receive a regulary summary of your appointsments via email?<br>The summary is sent to your standard email-address on the morning of that day or on Monday for weekly summarys.<br>It is only sent when you have any appointments on that day or week.'); 54 */ 55 $updates = array( 56 'no' => lang('Never'), 57 'add_cancel' => lang('on invitation / cancelation only'), 58 'time_change_4h' => lang('on time change of more than 4 hours too'), 59 'time_change' => lang('on any time change too'), 60 'modifications' => lang('on all modification, but responses'), 61 'responses' => lang('on participant responses too') 62 ); 63 $update_formats = array( 64 'none' => lang('None'), 65 'extended' => lang('Extended'), 66 'ical' => lang('iCal / rfc2445') 67 ); 68 $event_details = array( 69 'to-fullname' => lang('Fullname of person to notify'), 70 'to-firstname'=> lang('Firstname of person to notify'), 71 'to-lastname' => lang('Lastname of person to notify'), 72 'title' => lang('Title of the event'), 73 'description' => lang('Description'), 74 'startdate' => lang('Start Date/Time'), 75 'enddate' => lang('End Date/Time'), 76 'olddate' => lang('Old Startdate'), 77 'category' => lang('Category'), 78 'location' => lang('Location'), 79 'priority' => lang('Priority'), 80 'participants'=> lang('Participants'), 81 'owner' => lang('Owner'), 82 'repetition' => lang('Repetitiondetails (or empty)'), 83 'action' => lang('Action that caused the notify: Added, Canceled, Accepted, Rejected, ...'), 84 'link' => lang('Link to view the event'), 85 'disinvited' => lang('Participants disinvited from an event'), 86 ); 87 $weekdaystarts = array( 88 'Monday' => lang('Monday'), 89 'Sunday' => lang('Sunday'), 90 'Saturday' => lang('Saturday') 91 ); 92 93 for ($i=0; $i < 24; ++$i) 94 { 95 $times[$i] = $GLOBALS['egw']->common->formattime($i,'00'); 96 } 97 98 $intervals = array( 99 5 => '5', 100 10 => '10', 101 15 => '15', 102 20 => '20', 103 30 => '30', 104 45 => '45', 105 60 => '60' 106 ); 107 $groups = $GLOBALS['egw']->accounts->membership($GLOBALS['egw_info']['user']['account_id']); 108 $options = array('0' => lang('none')); 109 if (is_array($groups)) 110 { 111 foreach($groups as $group) 112 { 113 $options[$group['account_id']] = $GLOBALS['egw']->common->grab_owner_name($group['account_id']); 114 } 115 } 116 $defaultfilter = array( 117 'all' => lang('all'), 118 'private' => lang('private only'), 119 // 'public' => lang('global public only'), 120 // 'group' => lang('group public only'), 121 // 'private+public' => lang('private and global public'), 122 // 'private+group' => lang('private and group public'), 123 // 'public+group' => lang('global public and group public') 124 ); 125 $freebusy_url = $bocal->freebusy_url($GLOBALS['egw_info']['user']['account_lid'],$GLOBALS['egw_info']['user']['preferences']['calendar']['freebusy_pw']); 126 $freebusy_help = lang('Should not loged in persons be able to see your freebusy information? You can set an extra password, different from your normal password, to protect this informations. The freebusy information is in iCal format and only include the times when you are busy. It does not include the event-name, description or locations. The URL to your freebusy information is %1.','<a href="'.$freebusy_url.'" target="_blank">'.$freebusy_url.'</a>'); 127 128 $GLOBALS['settings'] = array( 129 'defaultcalendar' => array( 130 'type' => 'select', 131 'label' => 'default calendar view', 132 'name' => 'defaultcalendar', 133 'values' => $default, 134 'help' => 'Which of calendar view do you want to see, when you start calendar ?', 135 'xmlrpc' => True, 136 'admin' => False 137 ), 138 'days_in_weekview' => array( 139 'type' => 'select', 140 'label' => 'default week view', 141 'name' => 'days_in_weekview', 142 'values' => $week_view, 143 'help' => 'Do you want a weekview with or without weekend?', 144 'xmlrpc' => True, 145 'admin' => False 146 ), 147 'mainscreen_showevents' => array( 148 'type' => 'select', 149 'label' => 'show default view on main screen', 150 'name' => 'mainscreen_showevents', 151 'values' => $mainpage, 152 'help' => 'Displays your default calendar view on the startpage (page you get when you enter eGroupWare or click on the homepage icon)?', 153 'xmlrpc' => True, 154 'admin' => False 155 ), 156 'show_rejected' => array( 157 'type' => 'check', 158 'label' => 'Show invitations you rejected', 159 'name' => 'show_rejected', 160 'help' => 'Should invitations you rejected still be shown in your calendar ?<br>You can only accept them later (eg. when your scheduling conflict is removed), if they are still shown in your calendar!' 161 ), 162 'weekdaystarts' => array( 163 'type' => 'select', 164 'label' => 'weekday starts on', 165 'name' => 'weekdaystarts', 166 'values' => $weekdaystarts, 167 'help' => 'This day is shown as first day in the week or month view.', 168 'xmlrpc' => True, 169 'admin' => False 170 ), 171 'workdaystarts' => array( 172 'type' => 'select', 173 'label' => 'work day starts on', 174 'name' => 'workdaystarts', 175 'values' => $times, 176 'help' => 'This defines the start of your dayview. Events before this time, are shown above the dayview.<br>This time is also used as a default starttime for new events.', 177 'xmlrpc' => True, 178 'admin' => False 179 ), 180 'workdayends' => array( 181 'type' => 'select', 182 'label' => 'work day ends on', 183 'name' => 'workdayends', 184 'values' => $times, 185 'help' => 'This defines the end of your dayview. Events after this time, are shown below the dayview.', 186 'xmlrpc' => True, 187 'admin' => False 188 ), 189 'use_time_grid' => array( 190 'type' => 'select', 191 'label' => 'Views with fixed time intervals', 192 'name' => 'use_time_grid', 193 'values' => $grid_views, 194 'help' => 'For which views should calendar show distinct lines with a fixed time interval.', 195 'xmlrpc' => True, 196 'admin' => False 197 ), 198 'interval' => array( 199 'type' => 'select', 200 'label' => 'Length of the time interval', 201 'name' => 'interval', 202 'values' => $intervals, 203 'help' => 'How many minutes should each interval last?', 204 'xmlrpc' => True, 205 'admin' => False 206 ), 207 'defaultlength' => array( 208 'type' => 'input', 209 'label' => 'default appointment length (in minutes)', 210 'name' => 'defaultlength', 211 'help' => 'Default length of newly created events. The length is in minutes, eg. 60 for 1 hour.', 212 'default' => '', 213 'size' => 3, 214 'xmlrpc' => True, 215 'admin' => False 216 ), 217 'planner_start_with_group' => array( 218 'type' => 'select', 219 'label' => 'Preselected group for entering the planner', 220 'name' => 'planner_start_with_group', 221 'values' => $options, 222 'help' => 'This group that is preselected when you enter the planner. You can change it in the planner anytime you want.', 223 'xmlrpc' => True, 224 'admin' => False 225 ), 226 'default_private' => array( 227 'type' => 'check', 228 'label' => 'Set new events to private', 229 'name' => 'default_private', 230 'help' => 'Should new events created as private by default ?', 231 'xmlrpc' => True, 232 'admin' => False 233 ), 234 'receive_updates' => array( 235 'type' => 'select', 236 'label' => 'Receive email updates', 237 'name' => 'receive_updates', 238 'values' => $updates, 239 'help' => "Do you want to be notified about new or changed appointments? You be notified about changes you make yourself.<br>You can limit the notifications to certain changes only. Each item includes all the notification listed above it. All modifications include changes of title, description, participants, but no participant responses. If the owner of an event requested any notifcations, he will always get the participant responses like acceptions and rejections too.", 240 'xmlrpc' => True, 241 'admin' => False 242 ), 243 'update_format' => array( 244 'type' => 'select', 245 'label' => 'Format of event updates', 246 'name' => 'update_format', 247 'values' => $update_formats, 248 'help' => 'Extended updates always include the complete event-details. iCal\'s can be imported by certain other calendar-applications.', 249 'xmlrpc' => True, 250 'admin' => False 251 ), 252 'notifyAdded' => array( 253 'type' => 'notify', 254 'label' => 'Notification messages for added events ', 255 'name' => 'notifyAdded', 256 'rows' => 5, 257 'cols' => 50, 258 'help' => 'This message is sent to every participant of events you own, who has requested notifcations about new events.<br>You can use certain variables which get substituted with the data of the event. The first line is the subject of the email.', 259 'default' => '', 260 'values' => $event_details, 261 'xmlrpc' => True, 262 'admin' => False 263 ), 264 'notifyCanceled' => array( 265 'type' => 'notify', 266 'label' => 'Notification messages for canceled events ', 267 'name' => 'notifyCanceled', 268 'rows' => 5, 269 'cols' => 50, 270 'help' => 'This message is sent for canceled or deleted events.', 271 'default' => '', 272 'values' => $event_details, 273 'subst_help' => False, 274 'xmlrpc' => True, 275 'admin' => False 276 ), 277 'notifyModified' => array( 278 'type' => 'notify', 279 'label' => 'Notification messages for modified events ', 280 'name' => 'notifyModified', 281 'rows' => 5, 282 'cols' => 50, 283 'help' => 'This message is sent for modified or moved events.', 284 'default' => '', 285 'values' => $event_details, 286 'subst_help' => False, 287 'xmlrpc' => True, 288 'admin' => False 289 ), 290 'notifyDisinvited' => array( 291 'type' => 'notify', 292 'label' => 'Notification messages for disinvited participants ', 293 'name' => 'notifyDisinvited', 294 'rows' => 5, 295 'cols' => 50, 296 'help' => 'This message is sent to disinvited participants.', 297 'default' => '', 298 'values' => $event_details, 299 'subst_help' => False, 300 'xmlrpc' => True, 301 'admin' => False 302 ), 303 'notifyResponse' => array( 304 'type' => 'notify', 305 'label' => 'Notification messages for your responses ', 306 'name' => 'notifyResponse', 307 'rows' => 5, 308 'cols' => 50, 309 'help' => 'This message is sent when you accept, tentative accept or reject an event.', 310 'default' => '', 311 'values' => $event_details, 312 'subst_help' => False, 313 'xmlrpc' => True, 314 'admin' => False 315 ), 316 'notifyAlarm' => array( 317 'type' => 'notify', 318 'label' => 'Notification messages for your alarms', 319 'name' => 'notifyAlarm', 320 'rows' => 5, 321 'cols' => 50, 322 'help' => 'This message is sent when you set an Alarm for a certain event. Include all information you might need.', 323 'default' => '', 324 'values' => $event_details, 325 'subst_help' => False, 326 'xmlrpc' => True, 327 'admin' => False 328 ), 329 // disabled free/busy stuff til it gets rewritten with new Horde iCal classes -- RalfBecker 2006/03/03 330 'freebusy' => array( 331 'type' => 'check', 332 'label' => 'Make freebusy information available to not loged in persons?', 333 'name' => 'freebusy', 334 'help' => $freebusy_help, 335 'run_lang' => false, 336 'default' => '', 337 'subst_help' => False, 338 'xmlrpc' => True, 339 'admin' => False, 340 ), 341 'freebusy_pw' => array( 342 'type' => 'input', 343 'label' => 'Password for not loged in users to your freebusy information?', 344 'name' => 'freebusy_pw', 345 'help' => 'If you dont set a password here, the information is available to everyone, who knows the URL!!!', 346 'xmlrpc' => True, 347 'admin' => False 348 ) 349 );
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Sun Feb 25 17:20:01 2007 | par Balluche grâce à PHPXref 0.7 |