From 701fe5661b34fd89c7dc3ce2703ececf5801294c Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Fri, 8 May 2009 16:01:33 +0000 Subject: [PATCH] - icon linking to filemanager of entry - configurable limit of height of describtion in list --- infolog/inc/class.infolog_hooks.inc.php | 40 ++++++++++------- infolog/inc/class.infolog_ui.inc.php | 10 +++++ infolog/setup/egw_de.lang | 12 ++++- infolog/setup/egw_en.lang | 4 +- infolog/setup/etemplates.inc.php | 8 ++-- infolog/templates/default/app.css | 3 +- infolog/templates/default/customfields.xet | 6 +-- infolog/templates/default/index.xet | 52 ++++++++++++++-------- 8 files changed, 91 insertions(+), 44 deletions(-) diff --git a/infolog/inc/class.infolog_hooks.inc.php b/infolog/inc/class.infolog_hooks.inc.php index 43b6c6198f..160d606185 100644 --- a/infolog/inc/class.infolog_hooks.inc.php +++ b/infolog/inc/class.infolog_hooks.inc.php @@ -5,7 +5,7 @@ * @link http://www.egroupware.org * @author Ralf Becker * @package infolog - * @copyright (c) 2003-6 by Ralf Becker + * @copyright (c) 2003-9 by Ralf Becker * @license http://opensource.org/licenses/gpl-license.php GPL - GNU General Public License * @version $Id$ */ @@ -111,15 +111,17 @@ class infolog_hooks } /** - * populates $GLOBALS['settings'] for the preferences + * populates $settings for the preferences + * + * @return array */ static function settings() { /* Setup some values to fill the array of this app's settings below */ - $ui = new infolog_ui(); // need some labels from + $info = new infolog_bo(); // need some labels from $filters = $show_home = array(); $show_home[] = lang("DON'T show InfoLog"); - foreach($ui->filters as $key => $label) + foreach($info->filters as $key => $label) { $show_home[$key] = $filters[$key] = lang($label); } @@ -144,7 +146,7 @@ class infolog_hooks ); /* Settings array for this app */ - $GLOBALS['settings'] = array( + $settings = array( 'defaultFilter' => array( 'type' => 'select', 'label' => 'Default Filter for InfoLog', @@ -206,6 +208,15 @@ class infolog_hooks 'xmlrpc' => True, 'admin' => False ), + 'limit_des_lines' => array( + 'type' => 'input', + 'size' => 5, + 'label' => 'Limit number of description lines (default 5, 0 for no limit)', + 'name' => 'limit_des_lines', + 'help' => 'How many describtion lines should be directly visible. Further lines are available via a scrollbar.', + 'xmlrpc' => True, + 'admin' => False + ), 'set_start' => array( 'type' => 'select', 'label' => 'Startdate for new entries', @@ -223,7 +234,7 @@ class infolog_hooks 'type' => 'multiselect', 'label' => 'Which types should the calendar show', 'name' => 'cal_show', - 'values' => $ui->bo->enums['type'], + 'values' => $info->enums['type'], 'help' => 'Can be used to show further InfoLog types in the calendar or limit it to show eg. only tasks.', 'xmlrpc' => True, 'admin' => False @@ -241,7 +252,7 @@ class infolog_hooks ); // notification preferences - $GLOBALS['settings']['notify_creator'] = array( + $settings['notify_creator'] = array( 'type' => 'check', 'label' => 'Receive notifications about own items', 'name' => 'notify_creator', @@ -249,7 +260,7 @@ class infolog_hooks 'xmlrpc' => True, 'admin' => False, ); - $GLOBALS['settings']['notify_assigned'] = array( + $settings['notify_assigned'] = array( 'type' => 'select', 'label' => 'Receive notifications about items assigned to you', 'name' => 'notify_assigned', @@ -272,7 +283,7 @@ class infolog_hooks '2d' => lang('%1 days in advance',2), '3d' => lang('%1 days in advance',3), ); - $GLOBALS['settings']['notify_due_delegated'] = array( + $settings['notify_due_delegated'] = array( 'type' => 'select', 'label' => 'Receive notifications about due entries you delegated', 'name' => 'notify_due_delegated', @@ -281,7 +292,7 @@ class infolog_hooks 'xmlrpc' => True, 'admin' => False, ); - $GLOBALS['settings']['notify_due_responsible'] = array( + $settings['notify_due_responsible'] = array( 'type' => 'select', 'label' => 'Receive notifications about due entries you are responsible for', 'name' => 'notify_due_responsible', @@ -290,7 +301,7 @@ class infolog_hooks 'xmlrpc' => True, 'admin' => False, ); - $GLOBALS['settings']['notify_start_delegated'] = array( + $settings['notify_start_delegated'] = array( 'type' => 'select', 'label' => 'Receive notifications about starting entries you delegated', 'name' => 'notify_start_delegated', @@ -299,7 +310,7 @@ class infolog_hooks 'xmlrpc' => True, 'admin' => False, ); - $GLOBALS['settings']['notify_start_responsible'] = array( + $settings['notify_start_responsible'] = array( 'type' => 'select', 'label' => 'Receive notifications about starting entries you are responsible for', 'name' => 'notify_start_responsible', @@ -309,7 +320,7 @@ class infolog_hooks 'admin' => False, ); - return true; // otherwise prefs say it cant find the file ;-) + return $settings; } /** @@ -346,10 +357,7 @@ class infolog_hooks if ($data['prefs']['notify_due_delegated'] || $data['prefs']['notify_due_responsible'] || $data['prefs']['notify_start_delegated'] || $data['prefs']['notify_start_responsible']) { - require_once(EGW_API_INC.'/class.asyncservice.inc.php'); - $async =& new asyncservice(); - //$async->cancel_timer('infolog-async-notification'); if (!$async->read('infolog-async-notification')) { diff --git a/infolog/inc/class.infolog_ui.inc.php b/infolog/inc/class.infolog_ui.inc.php index 553b9751d2..343fa3901d 100644 --- a/infolog/inc/class.infolog_ui.inc.php +++ b/infolog/inc/class.infolog_ui.inc.php @@ -420,6 +420,9 @@ class infolog_ui $GLOBALS['egw_info']['flags']['app_header'] .= ': '.$title; } } + // disable filemanager icon, if user has no access to it + $readonlys['filemanager/navbar'] = !isset($GLOBALS['egw_info']['user']['apps']['filemanager']); + return $query['total']; } @@ -630,6 +633,13 @@ class infolog_ui { $values['css'] = '"; } + // add scrollbar to long describtion, if user choose so in his prefs + if ($this->prefs['limit_des_lines'] > 0 || (string)$this->prefs['limit_des_lines'] == '') + { + $values['css'] .= ''; + } return $this->tmpl->exec('infolog.infolog_ui.index',$values,array( 'info_type' => $this->bo->enums['type'], ),$readonlys,$persist,$return_html ? -1 : 0); diff --git a/infolog/setup/egw_de.lang b/infolog/setup/egw_de.lang index a2e2c939c1..ceb3ddee47 100644 --- a/infolog/setup/egw_de.lang +++ b/infolog/setup/egw_de.lang @@ -56,6 +56,7 @@ cancel infolog de Abbruch cancelled infolog de abgesagt categories infolog de Kategorien category infolog de Kategorie +change history infolog de Änderungsverlauf change the status of an entry, eg. close it infolog de Status eines Eintrags ändern, zB. ihn als erledigt markieren charset of file infolog de Zeichensatz der Datei check to set startday infolog de ankreutzen um Startdatum zu setzen @@ -150,9 +151,12 @@ from infolog de Von general infolog de Allgemein group owner for infolog de Gruppeneigentümer für high infolog de hoch +history infolog de Historie history logging infolog de Protokollierung der Historie history logging and deleting of items infolog de Protokollierung der Historie und löschen von Einträgen +how many describtion lines should be directly visible. further lines are available via a scrollbar. infolog de Wieviele Zeilen der Beschreibung sollen direkt sichbar sein. Zusätzliche Zeilen können über einen Scrollbar erreicht werden. id infolog de Id +id# infolog de Id# if a type has a group owner, all entries of that type will be owned by the given group and not the user who created it! infolog de Wenn ein Typ einen Gruppeneigentümer hat, gehören alle Einträge dieses Typs der angegebenen Gruppe und NICHT dem Benutzer der sie angelegt hat! 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). infolog de Falls nicht gesetzt, wird die Suche und die Filter ausgeblendet für weniger Einträge als "maximale Treffer pro Seite" (in ihren allg. Einstellungen definiert). import infolog de Import @@ -175,10 +179,12 @@ invalid filename infolog de Ungültiger Dateiname label
helptext infolog de Beschriftung
Hilfetext last changed infolog de letzte Änderung last modified infolog de zuletzt geändert +leave blank to get the used time calculated by timesheet entries infolog de Leer lassen um die Zeit nach den Stundenzetteln zu bekommen leave it empty infolog de leer lassen leave without saveing the entry infolog de Abbruch ohne den Eintrag zu speichern -leaves without saveing infolog de Abbroch ohne speichern +leaves without saveing infolog de Abbruch ohne speichern length
rows infolog de Länge
Zeilen +limit number of description lines (default 5, 0 for no limit) infolog de Begrenze Anzahl Beschreibungszeilen (Vorgabe 5, 0 für keine Grenze) link infolog de Verknüpfung links infolog de Verknüpfungen links of this entry infolog de Verknüpfungen dieses Eintrags @@ -188,6 +194,7 @@ location infolog de Ort longer textual description infolog de längere textliche Beschreibung low infolog de niedrig max length of the input [, length of the inputfield (optional)] infolog de max. Länge der Eingabe [, Länge des Eingabefeldes (optional)] +modifierer infolog de Geändert von name must not be empty !!! infolog de Name darf nicht leer sein !!! name of new type to create infolog de Name des neu anzulegenden Types never hide search and filters infolog de Suche und Filter niemals ausblenden @@ -245,6 +252,8 @@ priority infolog de Priorität private infolog de Privat project infolog de Projekt project settings: price, times infolog de Einstellungen zum Projekt: Preis, Zeiten +re-planned infolog de Umgeplant +re-planned time infolog de Umgeplante Zeit re: infolog de Re: read one record by passing its id. infolog de Einen Datensatz spezifiziert durch seine id lesen. read rights (default) infolog de Leserechte (Vorgabe) @@ -339,6 +348,7 @@ urgent infolog de Dringend used time infolog de benötigte Zeit valid path on clientside
eg. \\server\share or e:\ infolog de gültiger Pfad clientseitig
zB. \\Server\Share oder e:\ valid path on clientside
eg. \servershare or e: infolog de gültiger Pfad clientseitig
zB. \\Server\Share oder e:\ +valid path on clientside
eg. servershare or e: infolog de gültiger Pfad clientseitig
zB. \\Server\Share oder e:\ values for selectbox infolog de Werte für die Auswahlbox view all subs of this entry infolog de alle Untereinträge dieses Eintrag anzeigen view other subs infolog de andere Untereinträge anzeigen diff --git a/infolog/setup/egw_en.lang b/infolog/setup/egw_en.lang index eea0a1b3e5..08eedc40b9 100644 --- a/infolog/setup/egw_en.lang +++ b/infolog/setup/egw_en.lang @@ -41,7 +41,6 @@ add: infolog en Add: all infolog en All all links and attachments infolog en all links and attachments allows to set the status of an entry, eg. set a todo to done if it's finished (values depend on entry-typ) infolog en allows to set the status of an entry, eg. set a ToDo to done if it's finished (values depend on entry-type) -applies the changes infolog en applies the changes apply the changes infolog en Apply the changes archive infolog en archive are you shure you want to delete this entry ? infolog en Are you sure you want to delete this entry ? @@ -155,6 +154,7 @@ high infolog en high history infolog en History history logging infolog en History logging history logging and deleting of items infolog en History logging and deleting of items +how many describtion lines should be directly visible. further lines are available via a scrollbar. infolog en How many describtion lines should be directly visible. Further lines are available via a scrollbar. id infolog en Id id# infolog en Id# if a type has a group owner, all entries of that type will be owned by the given group and not the user who created it! infolog en If a type has a group owner, all entries of that type will be owned by the given group and NOT the user who created it! @@ -184,6 +184,7 @@ leave it empty infolog en leave it empty leave without saveing the entry infolog en leave without saveing the entry leaves without saveing infolog en leaves without saveing length
rows infolog en Length
Rows +limit number of description lines (default 5, 0 for no limit) infolog en Limit number of description lines (default 5, 0 for no limit) link infolog en Link links infolog en Links links of this entry infolog en Links of this entry @@ -251,7 +252,6 @@ priority infolog en Priority private infolog en Private project infolog en Project project settings: price, times infolog en Project settings: price, times -projectmanager infolog en Projectmanager re-planned infolog en Re-planned re-planned time infolog en Re-planned time re: infolog en Re: diff --git a/infolog/setup/etemplates.inc.php b/infolog/setup/etemplates.inc.php index f05cabbd93..cee73d9102 100644 --- a/infolog/setup/etemplates.inc.php +++ b/infolog/setup/etemplates.inc.php @@ -2,7 +2,7 @@ /** * eGroupWare - eTemplates for Application infolog * http://www.egroupware.org - * generated by soetemplate::dump4setup() 2009-04-23 16:34 + * generated by soetemplate::dump4setup() 2009-05-08 17:55 * * @license http://opensource.org/licenses/gpl-license.php GPL - GNU General Public License * @package infolog @@ -20,7 +20,7 @@ $templ_data[] = array('name' => 'infolog.customfields','template' => '','lang' = $templ_data[] = array('name' => 'infolog.customfields','template' => '','lang' => '','group' => '0','version' => '1.3.001','data' => 'a:1:{i:0;a:4:{s:4:"type";s:4:"grid";s:4:"data";a:7:{i:0;a:3:{s:1:"F";s:3:"80%";s:2:"c2";s:6:"header";s:2:"c4";s:6:"header";}i:1;a:6:{s:1:"A";a:2:{s:4:"type";s:5:"label";s:5:"label";s:3:"Typ";}s:1:"B";a:5:{s:4:"type";s:6:"select";s:4:"name";s:5:"type2";s:8:"onchange";i:1;s:4:"help";s:52:"select a typ to edit it\'s status-values or delete it";s:7:"no_lang";s:1:"1";}s:1:"C";a:4:{s:4:"type";s:6:"button";s:5:"label";s:6:"Delete";s:4:"name";s:14:"button[delete]";s:4:"help";s:24:"deletes the selected typ";}s:1:"D";a:5:{s:4:"type";s:4:"text";s:4:"size";s:5:"10,40";s:4:"name";s:8:"new_name";s:4:"help";s:26:"name of new type to create";s:4:"blur";s:8:"new name";}s:1:"E";a:4:{s:4:"type";s:6:"button";s:5:"label";s:6:"Create";s:4:"name";s:14:"button[create]";s:4:"help";s:37:"creates a new typ with the given name";}s:1:"F";a:5:{s:4:"type";s:5:"label";s:4:"span";s:10:",error_msg";s:7:"no_lang";s:1:"1";s:5:"align";s:6:"center";s:4:"name";s:9:"error_msg";}}i:2;a:6:{s:1:"A";a:4:{s:4:"type";s:5:"label";s:4:"span";s:3:"all";s:5:"label";s:21:"Custom status for typ";s:4:"name";s:3:"typ";}s:1:"B";a:1:{s:4:"type";s:5:"label";}s:1:"C";a:1:{s:4:"type";s:5:"label";}s:1:"D";a:1:{s:4:"type";s:5:"label";}s:1:"E";a:1:{s:4:"type";s:5:"label";}s:1:"F";a:1:{s:4:"type";s:5:"label";}}i:3;a:6:{s:1:"A";a:4:{s:4:"type";s:8:"template";s:4:"size";s:6:"status";s:4:"span";s:3:"all";s:4:"name";s:6:"status";}s:1:"B";a:1:{s:4:"type";s:5:"label";}s:1:"C";a:1:{s:4:"type";s:5:"label";}s:1:"D";a:1:{s:4:"type";s:5:"label";}s:1:"E";a:1:{s:4:"type";s:5:"label";}s:1:"F";a:1:{s:4:"type";s:5:"label";}}i:4;a:6:{s:1:"A";a:3:{s:4:"type";s:5:"label";s:4:"span";s:3:"all";s:5:"label";s:13:"Custom fields";}s:1:"B";a:1:{s:4:"type";s:5:"label";}s:1:"C";a:1:{s:4:"type";s:5:"label";}s:1:"D";a:1:{s:4:"type";s:5:"label";}s:1:"E";a:1:{s:4:"type";s:5:"label";}s:1:"F";a:1:{s:4:"type";s:5:"label";}}i:5;a:6:{s:1:"A";a:4:{s:4:"type";s:8:"template";s:4:"size";s:6:"fields";s:4:"span";s:3:"all";s:4:"name";s:6:"fields";}s:1:"B";a:1:{s:4:"type";s:5:"label";}s:1:"C";a:1:{s:4:"type";s:5:"label";}s:1:"D";a:1:{s:4:"type";s:5:"label";}s:1:"E";a:1:{s:4:"type";s:5:"label";}s:1:"F";a:1:{s:4:"type";s:5:"label";}}i:6;a:6:{s:1:"A";a:6:{s:4:"type";s:4:"hbox";s:4:"size";s:1:"3";s:4:"span";s:3:"all";i:1;a:4:{s:4:"type";s:6:"button";s:5:"label";s:4:"Save";s:4:"name";s:12:"button[save]";s:4:"help";s:33:"saves the changes made and leaves";}i:2;a:4:{s:4:"type";s:6:"button";s:5:"label";s:5:"Apply";s:4:"name";s:13:"button[apply]";s:4:"help";s:19:"applies the changes";}i:3;a:4:{s:4:"type";s:6:"button";s:5:"label";s:6:"Cancel";s:4:"name";s:14:"button[cancel]";s:4:"help";s:22:"leaves without saveing";}}s:1:"B";a:1:{s:4:"type";s:5:"label";}s:1:"C";a:1:{s:4:"type";s:5:"label";}s:1:"D";a:1:{s:4:"type";s:5:"label";}s:1:"E";a:1:{s:4:"type";s:5:"label";}s:1:"F";a:1:{s:4:"type";s:5:"label";}}}s:4:"rows";i:6;s:4:"cols";i:6;}}','size' => '','style' => '.header { font-weight: bold; font-size: 120%; } .error_msg { color: red; font-style: italics; }','modified' => '1159943136',); -$templ_data[] = array('name' => 'infolog.customfields','template' => '','lang' => '','group' => '0','version' => '1.3.002','data' => 'a:1:{i:0;a:4:{s:4:"type";s:4:"grid";s:4:"data";a:8:{i:0;a:3:{s:2:"c2";s:6:"header";s:2:"c4";s:6:"header";s:1:"F";s:3:"80%";}i:1;a:6:{s:1:"A";a:2:{s:4:"type";s:5:"label";s:5:"label";s:3:"Typ";}s:1:"B";a:5:{s:4:"type";s:6:"select";s:4:"name";s:5:"type2";s:8:"onchange";i:1;s:4:"help";s:52:"select a typ to edit it\'s status-values or delete it";s:7:"no_lang";s:1:"1";}s:1:"C";a:4:{s:4:"type";s:6:"button";s:5:"label";s:6:"Delete";s:4:"name";s:14:"button[delete]";s:4:"help";s:24:"deletes the selected typ";}s:1:"D";a:5:{s:4:"type";s:4:"text";s:4:"size";s:5:"10,40";s:4:"name";s:8:"new_name";s:4:"help";s:26:"name of new type to create";s:4:"blur";s:8:"new name";}s:1:"E";a:4:{s:4:"type";s:6:"button";s:5:"label";s:6:"Create";s:4:"name";s:14:"button[create]";s:4:"help";s:37:"creates a new typ with the given name";}s:1:"F";a:5:{s:4:"type";s:5:"label";s:4:"span";s:10:",error_msg";s:7:"no_lang";s:1:"1";s:5:"align";s:6:"center";s:4:"name";s:9:"error_msg";}}i:2;a:6:{s:1:"A";a:4:{s:4:"type";s:5:"label";s:4:"span";s:3:"all";s:5:"label";s:21:"Custom status for typ";s:4:"name";s:3:"typ";}s:1:"B";a:1:{s:4:"type";s:5:"label";}s:1:"C";a:1:{s:4:"type";s:5:"label";}s:1:"D";a:1:{s:4:"type";s:5:"label";}s:1:"E";a:1:{s:4:"type";s:5:"label";}s:1:"F";a:1:{s:4:"type";s:5:"label";}}i:3;a:6:{s:1:"A";a:4:{s:4:"type";s:8:"template";s:4:"size";s:6:"status";s:4:"span";s:3:"all";s:4:"name";s:6:"status";}s:1:"B";a:1:{s:4:"type";s:5:"label";}s:1:"C";a:1:{s:4:"type";s:5:"label";}s:1:"D";a:1:{s:4:"type";s:5:"label";}s:1:"E";a:1:{s:4:"type";s:5:"label";}s:1:"F";a:1:{s:4:"type";s:5:"label";}}i:4;a:6:{s:1:"A";a:3:{s:4:"type";s:5:"label";s:4:"span";s:3:"all";s:5:"label";s:13:"Custom fields";}s:1:"B";a:1:{s:4:"type";s:5:"label";}s:1:"C";a:1:{s:4:"type";s:5:"label";}s:1:"D";a:1:{s:4:"type";s:5:"label";}s:1:"E";a:1:{s:4:"type";s:5:"label";}s:1:"F";a:1:{s:4:"type";s:5:"label";}}i:5;a:6:{s:1:"A";a:4:{s:4:"type";s:8:"template";s:4:"size";s:6:"fields";s:4:"span";s:3:"all";s:4:"name";s:6:"fields";}s:1:"B";a:1:{s:4:"type";s:5:"label";}s:1:"C";a:1:{s:4:"type";s:5:"label";}s:1:"D";a:1:{s:4:"type";s:5:"label";}s:1:"E";a:1:{s:4:"type";s:5:"label";}s:1:"F";a:1:{s:4:"type";s:5:"label";}}i:6;a:6:{s:1:"A";a:5:{s:4:"type";s:4:"hbox";s:4:"size";s:6:"2,,0,0";i:1;a:4:{s:4:"type";s:5:"label";s:4:"span";s:7:",header";s:5:"label";s:15:"Group owner for";s:4:"name";s:5:"type2";}i:2;a:5:{s:4:"type";s:14:"select-account";s:4:"size";s:11:"None,groups";s:4:"name";s:11:"group_owner";s:4:"help";s:119:"If a type has a group owner, all entries of that type will be owned by the given group and NOT the user who created it!";s:4:"span";s:10:",lpadding5";}s:4:"span";s:3:"all";}s:1:"B";a:1:{s:4:"type";s:5:"label";}s:1:"C";a:1:{s:4:"type";s:5:"label";}s:1:"D";a:1:{s:4:"type";s:5:"label";}s:1:"E";a:1:{s:4:"type";s:5:"label";}s:1:"F";a:1:{s:4:"type";s:5:"label";}}i:7;a:6:{s:1:"A";a:6:{s:4:"type";s:4:"hbox";s:4:"size";s:1:"3";s:4:"span";s:3:"all";i:1;a:4:{s:4:"type";s:6:"button";s:5:"label";s:4:"Save";s:4:"name";s:12:"button[save]";s:4:"help";s:33:"saves the changes made and leaves";}i:2;a:4:{s:4:"type";s:6:"button";s:5:"label";s:5:"Apply";s:4:"name";s:13:"button[apply]";s:4:"help";s:19:"applies the changes";}i:3;a:4:{s:4:"type";s:6:"button";s:5:"label";s:6:"Cancel";s:4:"name";s:14:"button[cancel]";s:4:"help";s:22:"leaves without saveing";}}s:1:"B";a:1:{s:4:"type";s:5:"label";}s:1:"C";a:1:{s:4:"type";s:5:"label";}s:1:"D";a:1:{s:4:"type";s:5:"label";}s:1:"E";a:1:{s:4:"type";s:5:"label";}s:1:"F";a:1:{s:4:"type";s:5:"label";}}}s:4:"rows";i:7;s:4:"cols";i:6;}}','size' => '','style' => '.header { font-weight: bold; font-size: 120%; } +$templ_data[] = array('name' => 'infolog.customfields','template' => '','lang' => '','group' => '0','version' => '1.3.002','data' => 'a:1:{i:0;a:4:{s:4:"type";s:4:"grid";s:4:"data";a:8:{i:0;a:3:{s:2:"c2";s:6:"header";s:2:"c4";s:6:"header";s:1:"F";s:3:"80%";}i:1;a:6:{s:1:"A";a:2:{s:4:"type";s:5:"label";s:5:"label";s:3:"Typ";}s:1:"B";a:5:{s:4:"type";s:6:"select";s:4:"name";s:5:"type2";s:8:"onchange";i:1;s:4:"help";s:52:"select a typ to edit it\'s status-values or delete it";s:7:"no_lang";s:1:"1";}s:1:"C";a:4:{s:4:"type";s:6:"button";s:5:"label";s:6:"Delete";s:4:"name";s:14:"button[delete]";s:4:"help";s:24:"deletes the selected typ";}s:1:"D";a:5:{s:4:"type";s:4:"text";s:4:"size";s:5:"10,40";s:4:"name";s:8:"new_name";s:4:"help";s:26:"name of new type to create";s:4:"blur";s:8:"new name";}s:1:"E";a:4:{s:4:"type";s:6:"button";s:5:"label";s:6:"Create";s:4:"name";s:14:"button[create]";s:4:"help";s:37:"creates a new typ with the given name";}s:1:"F";a:5:{s:4:"type";s:5:"label";s:4:"span";s:10:",error_msg";s:7:"no_lang";s:1:"1";s:5:"align";s:6:"center";s:4:"name";s:9:"error_msg";}}i:2;a:6:{s:1:"A";a:4:{s:4:"type";s:5:"label";s:4:"span";s:3:"all";s:5:"label";s:21:"Custom status for typ";s:4:"name";s:3:"typ";}s:1:"B";a:1:{s:4:"type";s:5:"label";}s:1:"C";a:1:{s:4:"type";s:5:"label";}s:1:"D";a:1:{s:4:"type";s:5:"label";}s:1:"E";a:1:{s:4:"type";s:5:"label";}s:1:"F";a:1:{s:4:"type";s:5:"label";}}i:3;a:6:{s:1:"A";a:4:{s:4:"type";s:8:"template";s:4:"size";s:6:"status";s:4:"span";s:3:"all";s:4:"name";s:6:"status";}s:1:"B";a:1:{s:4:"type";s:5:"label";}s:1:"C";a:1:{s:4:"type";s:5:"label";}s:1:"D";a:1:{s:4:"type";s:5:"label";}s:1:"E";a:1:{s:4:"type";s:5:"label";}s:1:"F";a:1:{s:4:"type";s:5:"label";}}i:4;a:6:{s:1:"A";a:3:{s:4:"type";s:5:"label";s:4:"span";s:3:"all";s:5:"label";s:13:"Custom fields";}s:1:"B";a:1:{s:4:"type";s:5:"label";}s:1:"C";a:1:{s:4:"type";s:5:"label";}s:1:"D";a:1:{s:4:"type";s:5:"label";}s:1:"E";a:1:{s:4:"type";s:5:"label";}s:1:"F";a:1:{s:4:"type";s:5:"label";}}i:5;a:6:{s:1:"A";a:4:{s:4:"type";s:8:"template";s:4:"size";s:6:"fields";s:4:"span";s:3:"all";s:4:"name";s:6:"fields";}s:1:"B";a:1:{s:4:"type";s:5:"label";}s:1:"C";a:1:{s:4:"type";s:5:"label";}s:1:"D";a:1:{s:4:"type";s:5:"label";}s:1:"E";a:1:{s:4:"type";s:5:"label";}s:1:"F";a:1:{s:4:"type";s:5:"label";}}i:6;a:6:{s:1:"A";a:5:{s:4:"type";s:4:"hbox";s:4:"size";s:6:"2,,0,0";i:1;a:4:{s:4:"type";s:5:"label";s:4:"span";s:7:",header";s:5:"label";s:15:"Group owner for";s:4:"name";s:5:"type2";}i:2;a:5:{s:4:"type";s:14:"select-account";s:4:"size";s:11:"None,groups";s:4:"name";s:11:"group_owner";s:4:"help";s:119:"If a type has a group owner, all entries of that type will be owned by the given group and NOT the user who created it!";s:4:"span";s:10:",lpadding5";}s:4:"span";s:3:"all";}s:1:"B";a:1:{s:4:"type";s:5:"label";}s:1:"C";a:1:{s:4:"type";s:5:"label";}s:1:"D";a:1:{s:4:"type";s:5:"label";}s:1:"E";a:1:{s:4:"type";s:5:"label";}s:1:"F";a:1:{s:4:"type";s:5:"label";}}i:7;a:6:{s:1:"A";a:6:{s:4:"type";s:4:"hbox";s:4:"size";s:1:"3";s:4:"span";s:3:"all";i:1;a:4:{s:4:"type";s:6:"button";s:5:"label";s:4:"Save";s:4:"name";s:12:"button[save]";s:4:"help";s:33:"saves the changes made and leaves";}i:2;a:4:{s:4:"type";s:6:"button";s:5:"label";s:5:"Apply";s:4:"name";s:13:"button[apply]";s:4:"help";s:17:"apply the changes";}i:3;a:4:{s:4:"type";s:6:"button";s:5:"label";s:6:"Cancel";s:4:"name";s:14:"button[cancel]";s:4:"help";s:22:"leaves without saveing";}}s:1:"B";a:1:{s:4:"type";s:5:"label";}s:1:"C";a:1:{s:4:"type";s:5:"label";}s:1:"D";a:1:{s:4:"type";s:5:"label";}s:1:"E";a:1:{s:4:"type";s:5:"label";}s:1:"F";a:1:{s:4:"type";s:5:"label";}}}s:4:"rows";i:7;s:4:"cols";i:6;}}','size' => '','style' => '.header { font-weight: bold; font-size: 120%; } .error_msg { color: red; font-style: italics; }','modified' => '1173687088',); $templ_data[] = array('name' => 'infolog.customfields.fields','template' => '','lang' => '','group' => '0','version' => '1.2.001','data' => 'a:1:{i:0;a:4:{s:4:"type";s:4:"grid";s:4:"data";a:3:{i:0;a:2:{s:2:"c1";s:2:"th";s:2:"c2";s:7:"row,top";}i:1;a:7:{s:1:"A";a:2:{s:4:"type";s:5:"label";s:5:"label";s:3:"Typ";}s:1:"B";a:2:{s:4:"type";s:5:"label";s:5:"label";s:4:"Name";}s:1:"C";a:2:{s:4:"type";s:5:"label";s:5:"label";s:5:"Label";}s:1:"D";a:2:{s:4:"type";s:5:"label";s:5:"label";s:20:"Values for selectbox";}s:1:"E";a:2:{s:4:"type";s:5:"label";s:5:"label";s:14:"Length
Rows";}s:1:"F";a:2:{s:4:"type";s:5:"label";s:5:"label";s:5:"Order";}s:1:"G";a:4:{s:4:"type";s:5:"label";s:5:"label";s:6:"Action";s:5:"align";s:6:"center";s:4:"help";s:18:"deletes this field";}}i:2;a:7:{s:1:"A";a:4:{s:4:"type";s:6:"select";s:4:"size";s:3:"All";s:4:"name";s:11:"${row}[typ]";s:4:"help";s:41:"for which types should this field be used";}s:1:"B";a:4:{s:4:"type";s:4:"text";s:4:"size";s:5:"20,32";s:4:"name";s:12:"${row}[name]";s:4:"help";s:83:"the name used internaly (<= 20 chars), changeing it makes existing data unavailible";}s:1:"C";a:4:{s:4:"type";s:4:"vbox";s:4:"size";s:1:"2";i:1;a:4:{s:4:"type";s:4:"text";s:4:"size";s:4:",255";s:4:"name";s:13:"${row}[label]";s:4:"help";s:30:"the text displayed to the user";}i:2;a:2:{s:4:"type";s:5:"label";s:4:"name";s:13:"${row}[label]";}}s:1:"D";a:4:{s:4:"type";s:8:"textarea";s:4:"size";s:4:"2,30";s:4:"name";s:14:"${row}[values]";s:4:"help";s:40:"each value is a line like [=