[ Index ] |
|
Code source de eGroupWare 1.2.106-2 |
1 <?php 2 /**************************************************************************\ 3 * eGroupWare - InfoLog Preferences * 4 * http://www.eGroupWare.org * 5 * Written by Ralf Becker <RalfBecker@outdoor-training.de> * 6 * -------------------------------------------- * 7 * This program is free software; you can redistribute it and/or modify it * 8 * under the terms of the GNU General Public License as published by the * 9 * Free Software Foundation; either version 2 of the License, or (at your * 10 * option) any later version. * 11 \**************************************************************************/ 12 13 /* $Id: hook_settings.inc.php 21294 2006-04-09 05:49:22Z ralfbecker $ */ 14 15 /* Setup some values to fill the array of this app's settings below */ 16 $ui =& CreateObject('infolog.uiinfolog'); // need some labels from 17 $filters = $show_home = array(); 18 $show_home[] = lang("DON'T show InfoLog"); 19 foreach($ui->filters as $key => $label) 20 { 21 $show_home[$key] = $filters[$key] = lang($label); 22 } 23 unset($ui); 24 25 // migrage old filter-pref 1,2 to the filter one 'own-open-today' 26 if (in_array($GLOBALS['egw']->preferences->{$GLOBALS['type']}['homeShowEvents'],array('1','2'))) 27 { 28 $GLOBALS['egw']->preferences->add('infolog','homeShowEvents','own-open-today',$GLOBALS['type']); 29 $GLOBALS['egw']->preferences->save_repository(); 30 } 31 $show_links = array( 32 'all' => lang('all links and attachments'), 33 'links' => lang('only the links'), 34 'attach' => lang('only the attachments'), 35 'none' => lang('no links or attachments'), 36 'no_describtion' => lang('no describtion, links or attachments'), 37 ); 38 $show_details = array( 39 0 => lang('No'), 40 1 => lang('Yes'), 41 2 => lang('Only for details'), 42 ); 43 /* Settings array for this app */ 44 $GLOBALS['settings'] = array( 45 'defaultFilter' => array( 46 'type' => 'select', 47 'label' => 'Default Filter for InfoLog', 48 'name' => 'defaultFilter', 49 'values' => $filters, 50 'help' => 'This is the filter InfoLog uses when you enter the application. Filters limit the entries to show in the actual view. There are filters to show only finished, still open or futures entries of yourself or all users.', 51 'xmlrpc' => True, 52 'admin' => False 53 ), 54 'homeShowEvents' => array( 55 'type' => 'select', 56 'label' => 'InfoLog filter for the main screen', 57 'name' => 'homeShowEvents', 58 'values' => $show_home, 59 'help' => 'Should InfoLog show up on the main screen and with which filter. Works only if you dont selected an application for the main screen (in your preferences).', 60 'xmlrpc' => True, 61 'admin' => False 62 ), 63 'listNoSubs' => array( 64 'type' => 'check', 65 'label' => 'List no Subs/Childs', 66 'name' => 'listNoSubs', 67 'help' => 'Should InfoLog show Subtasks, -calls or -notes in the normal view or not. You can always view the Subs via there parent.', 68 'xmlrpc' => True, 69 'admin' => False 70 ), 71 'show_links' => array( 72 'type' => 'select', 73 'label' => 'Show in the InfoLog list', 74 'name' => 'show_links', 75 'values' => $show_links, 76 'help' => 'Should InfoLog show the links to other applications and/or the file-attachments in the InfoLog list (normal view when you enter InfoLog).', 77 'xmlrpc' => True, 78 'admin' => False 79 ), 80 'never_hide' => array( 81 'type' => 'check', 82 'label' => 'Never hide search and filters', 83 'name' => 'never_hide', 84 'help' => 'If not set, the line with search and filters is hidden for less entries then "max matches per page" (as defined in your common preferences).', 85 'xmlrpc' => True, 86 'admin' => False 87 ), 88 'show_times' => array( 89 'type' => 'select', 90 'label' => 'Show times', 91 'name' => 'show_times', 92 'values' => $show_details, 93 'help' => 'Show a column for used and planned times in the list.', 94 'xmlrpc' => True, 95 'admin' => False 96 ), 97 'show_percent' => array( 98 'type' => 'select', 99 'label' => 'Show status and percent done separate', 100 'name' => 'show_percent', 101 'values' => $show_details, 102 'help' => 'Should the Infolog list show the percent done only for status ongoing or two separate icons.', 103 'xmlrpc' => True, 104 'admin' => False 105 ), 106 'show_id' => array( 107 'type' => 'select', 108 'label' => 'Show ticket Id', 109 'name' => 'show_id', 110 'values' => $show_details, 111 'help' => 'Should the Infolog list show a unique numerical Id, which can be used eg. as ticket Id.', 112 'xmlrpc' => True, 113 'admin' => False 114 ), 115 'show_modified' => array( 116 'type' => 'select', 117 'label' => 'Show last modified', 118 'name' => 'show_modified', 119 'values' => $show_details, 120 'help' => 'Should the Infolog list show the column "last modified".', 121 'xmlrpc' => True, 122 'admin' => False 123 ), 124 'set_start' => array( 125 'type' => 'select', 126 'label' => 'Startdate for new entries', 127 'name' => 'set_start', 128 'values' => array( 129 'date' => lang('todays date'), 130 'datetime' => lang('actual date and time'), 131 'empty' => lang('leave it empty'), 132 ), 133 'help' => 'To what should the startdate of new entries be set.', 134 'xmlrpc' => True, 135 'admin' => False 136 ), 137 ); 138 139 unset($show_home); 140 unset($show_details); 141 unset($filters); 142 unset($show_links);
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 |