From 889960567e0cf7ea3d46b7e1d6d9d5f021626e3e Mon Sep 17 00:00:00 2001 From: Stefan Becker Date: Mon, 10 Mar 2008 16:33:17 +0000 Subject: [PATCH] my first commit: add or delete an categorie to the addresbokk entry. In a popup window, you can select, the categories zu want to modify. You can select more than one addresses. --- addressbook/inc/class.uicontacts.inc.php | 94 ++++++++++++++++++- addressbook/setup/egw_de.lang | 6 ++ addressbook/setup/egw_en.lang | 6 ++ addressbook/setup/etemplates.inc.php | 24 +++-- .../templates/default/index.cat_add.xet | 29 ++++++ 5 files changed, 144 insertions(+), 15 deletions(-) create mode 100644 addressbook/templates/default/index.cat_add.xet diff --git a/addressbook/inc/class.uicontacts.inc.php b/addressbook/inc/class.uicontacts.inc.php index d6c5d75674..d10abff6b1 100644 --- a/addressbook/inc/class.uicontacts.inc.php +++ b/addressbook/inc/class.uicontacts.inc.php @@ -32,6 +32,7 @@ class uicontacts extends bocontacts 'photo' => True, 'emailpopup'=> True, 'migrate2ldap' => True, + 'cat_add' => True, ); /** * use a separate private addressbook (former private flag), for contacts not shareable via regular read acl @@ -260,6 +261,7 @@ class uicontacts extends bocontacts 'csv' => lang('Export as CSV'), 'vcard' => lang('Export as VCard'), // ToDo: move this to importexport framework 'merge' => lang('Merge into first or account, deletes all other!'), + 'cat_add' => lang('Add or delete Categoies'), // add a categirie to multible addresses ); if ($GLOBALS['egw_info']['user']['apps']['infolog']) { @@ -273,8 +275,6 @@ class uicontacts extends bocontacts } $sel_options['action'][lang('Move to addressbook:')] = $m2a; } - - if (($add_lists = $this->get_lists(EGW_ACL_EDIT))) // do we have distribution lists? { $lists = array(); @@ -287,6 +287,8 @@ class uicontacts extends bocontacts $sel_options['action']['remove_from_list'] = lang('Remove selected contacts from distribution list'); $sel_options['action']['delete_list'] = lang('Delete selected distribution list!'); } + + if ($this->prefs['document_dir']) { $sel_options['action'][lang('Insert in document').':'] = $this->get_document_actions(); @@ -545,8 +547,8 @@ class uicontacts extends bocontacts ExecMethod('addressbook.vcaladdressbook.export',$checked); // does not return! $Ok = false; - break; - + break; + case 'infolog': $GLOBALS['egw']->redirect_link('/index.php',array( 'menuaction' => 'infolog.uiinfolog.index', @@ -583,6 +585,56 @@ class uicontacts extends bocontacts case 'document': $msg = $this->download_document($checked,$document); return false; + + case 'cat_add': + foreach($checked as $id) + { + if (($Ok = !!($contact = $this->read($id)) && $this->check_perms(EGW_ACL_EDIT,$contact))) + { + $action_msg = lang('categorie'); + $cat_ids = explode(",",$contact['cat_id']); //existing categiries + if (!is_array($cat_ids_new) && $cat_ids_new) $cat_ids_new = explode(",",$cat_ids_new); + //categarie add + if ((!($cat_ids_new = $GLOBALS['egw']->session->appsession('cat_add','addressbook')) && !($cat_ids_new = $GLOBALS['egw']->session->appsession('cat_delete','addressbook')))) + { + $action_msg = lang('no categories selected'); + } + if ($GLOBALS['egw']->session->appsession('cat_add','addressbook')) + { + if (is_array($cat_ids_new) && ($ids_to_add = array_diff($cat_ids_new,$cat_ids))) + { + $cat_ids = array_merge($cat_ids,$ids_to_add); + $contact['cat_id'] = implode(",",$cat_ids); + $Ok = $this->save($contact); + $success++; + $action_msg = lang('categorie added'); + } + else + { + $failed++; + } + } + //categories delete + if ($GLOBALS['egw']->session->appsession('cat_delete','addressbook')) + { + if (is_array($cat_ids_new) && ($ids_to_delete = array_diff($cat_ids,$cat_ids_new)) or ($cat_ids = $cat_ids_new)) + { + $contact['cat_id'] = implode(",",$ids_to_delete); + $action_msg = lang('categorie delete'); + $Ok = $this->save($contact); + $success++; + } + else + { + $failed++; + } + } + } + } + $checked = array(); // to not start the single actions + $GLOBALS['egw']->session->appsession('cat_add','addressbook',''); //delete stored categories to add + $GLOBALS['egw']->session->appsession('cat_delete','addressbook',''); //delete stored categories to delete + break; } foreach($checked as $id) { @@ -2126,6 +2178,38 @@ $readonlys['button[vcard]'] = true; //_debug_array($calendars); return $calendars; } + + /** + * add a new categorie to any addressbock entry + * + * @author Stefan Becker + * @param array $content=null + */ + function cat_add($content=null) + { + if (is_array($content)) + { + if ($content['cat_id']) //add categorie + { + if ($content['cat_add']) + { + $GLOBALS['egw']->session->appsession('cat_add','addressbook',$content['cat_id']); + $js = "opener.document.getElementById('exec[action]').value='cat_add'; opener.document.forms.eTemplate.submit();"; + } + if ($content['cat_delete']) //delete categorie + { + $GLOBALS['egw']->session->appsession('cat_delete','addressbook',$content['cat_id']); + $js = "opener.document.getElementById('exec[action]').value='cat_add'; opener.document.forms.eTemplate.submit();"; + } + } + echo "\n"; + $GLOBALS['egw']->common->egw_exit(); + } + $content['cat_tab'] = $this->config['cat_tab']; + + $this->tmpl->read('addressbook.index.cat_add'); + return $this->tmpl->exec('addressbook.uicontacts.cat_add',$content,$sel_options,$readonlys,$content, 2); + } } if (!function_exists('array_intersect_key')) // php5.1 function @@ -2143,5 +2227,5 @@ if (!function_exists('array_intersect_key')) // php5.1 function } return $intersection; } + } - diff --git a/addressbook/setup/egw_de.lang b/addressbook/setup/egw_de.lang index 2aec0b6a59..c301244209 100644 --- a/addressbook/setup/egw_de.lang +++ b/addressbook/setup/egw_de.lang @@ -20,6 +20,7 @@ add a single entry by passing the fields. addressbook de Hinzufügen eines einze add business email of whole distribution list? addressbook de E-Mail geschäftl. der kompletten Liste hinzufügen? add custom field addressbook de Benutzerdefiniertes Feld hinzufügen add emails of whole distribution list? addressbook de E-Mails der gesamten Verteilerliste hinzufügen? +add or delete categoies addressbook de Kategorien hinzufügen oder löschen add to distribution list: addressbook de Hinzufügen zu Verteiler: added addressbook de hinzugefügt added by synchronisation addressbook de Hinzugefügt über die Synchronisation @@ -66,6 +67,9 @@ calendar fields: addressbook de Kalender Felder: calendar uri addressbook de Kalender URI can be changed via setup >> configuration admin de Kann über Setup >> Konfiguration geändert werden car phone addressbook de Autotelefon +categorie addressbook de Kategorie +categorie added addressbook de Kategorie (n) hinzugefügt +categorie delete addressbook de Kategorie (n) gelöscht categories, notes, ... addressbook de Kategorien, Notizen, ... category tree admin de Kategoriebaum cell phone addressbook de Mobiltelefon @@ -125,6 +129,7 @@ deletes the photo addressbook de Löscht das Foto department common de Abteilung departments addressbook de Abteilungen directory with documents to insert contacts addressbook de Verzeichnis mit Dokumenten zum Einfügen von Kontakten +display contact addressbook de Kontakte Anzeigen displays a remider for birthdays on the startpage (page you get when you enter egroupware or click on the homepage icon). addressbook de Zeigt auf der Startseite eine Geburtstags Erinnerung an. Die Startseite ist die Seite die Sie sehen, wenn Sie eGroupWare betreten oder auf das Startseiten Icon (Haus) klicken. distribution list deleted addressbook de Verteiler gelöscht distribution lists addressbook de Verteilerlisten @@ -256,6 +261,7 @@ name of current user, all other contact fields are valid too addressbook de Name name, address addressbook de Name, Adresse new contact submitted by %1 at %2 addressbook de Neuer Kontakt eingetragen von %1 am %2 next date addressbook de Nächster Termin +no categories selected addressbook de keine Kategorien ausgewählt no vcard addressbook de Keine VCard number addressbook de Nummer number of records to read (%1) addressbook de Anzahl der einzulesenden Datensätze (%1) diff --git a/addressbook/setup/egw_en.lang b/addressbook/setup/egw_en.lang index b9e7812340..f084433704 100644 --- a/addressbook/setup/egw_en.lang +++ b/addressbook/setup/egw_en.lang @@ -20,6 +20,7 @@ add a single entry by passing the fields. addressbook en Add a single entry by p add business email of whole distribution list? addressbook en Add business email of whole distribution list? add custom field addressbook en Add Custom Field add emails of whole distribution list? addressbook en Add emails of whole distribution list? +add or delete categoies addressbook en Add or delete Categoies add to distribution list: addressbook en Add to distribution list: added addressbook en added added by synchronisation addressbook en added by synchronisation @@ -66,6 +67,9 @@ calendar fields: addressbook en Calendar fields: calendar uri addressbook en Calendar URI can be changed via setup >> configuration admin en Can be changed via Setup >> Configuration car phone addressbook en Car Phone +categorie addressbook en categorie +categorie added addressbook en categorie added +categorie delete addressbook en categorie delete categories, notes, ... addressbook en Categories, Notes, ... category tree admin en Category tree cell phone addressbook en Mobile phone @@ -125,6 +129,7 @@ deletes the photo addressbook en Deletes the photo department common en Department departments addressbook en departments directory with documents to insert contacts addressbook en Directory with documents to insert contacts +display contact addressbook en Display Contact displays a remider for birthdays on the startpage (page you get when you enter egroupware or click on the homepage icon). addressbook en Displays a remider for birthdays on the startpage (page you get when you enter eGroupWare or click on the homepage icon). distribution list deleted addressbook en Distribution list deleted distribution lists addressbook en Distribution lists @@ -256,6 +261,7 @@ name of current user, all other contact fields are valid too addressbook en Name name, address addressbook en Name, Address new contact submitted by %1 at %2 addressbook en New contact submitted by %1 at %2 next date addressbook en Next date +no categories selected addressbook en no categories selected no vcard addressbook en No VCard number addressbook en Number number of records to read (%1) addressbook en Number of records to read (%1) diff --git a/addressbook/setup/etemplates.inc.php b/addressbook/setup/etemplates.inc.php index 8d7e1b8a55..2d5932bb9b 100755 --- a/addressbook/setup/etemplates.inc.php +++ b/addressbook/setup/etemplates.inc.php @@ -1,14 +1,14 @@ 'addressbook.importexport_wizzard_samplefile','t $templ_data[] = array('name' => 'addressbook.index','template' => '','lang' => '','group' => '0','version' => '1.3.001','data' => 'a:1:{i:0;a:6:{s:4:"type";s:4:"grid";s:4:"data";a:5:{i:0;a:3:{s:2:"h1";s:6:",!@msg";s:2:"h2";s:2:",1";s:2:"c4";s:7:"noPrint";}i:1;a:2:{s:1:"A";a:5:{s:4:"type";s:5:"label";s:4:"span";s:13:"all,redItalic";s:5:"align";s:6:"center";s:4:"name";s:3:"msg";s:7:"no_lang";s:1:"1";}s:1:"B";a:1:{s:4:"type";s:5:"label";}}i:2;a:2:{s:1:"A";a:2:{s:4:"type";s:8:"template";s:4:"name";s:22:"addressbook.index.left";}s:1:"B";a:3:{s:4:"type";s:8:"template";s:5:"align";s:5:"right";s:4:"name";s:27:"addressbook.index.right_add";}}i:3;a:2:{s:1:"A";a:4:{s:4:"type";s:9:"nextmatch";s:4:"size";s:22:"addressbook.index.rows";s:4:"name";s:2:"nm";s:4:"span";s:3:"all";}s:1:"B";a:1:{s:4:"type";s:5:"label";}}i:4;a:2:{s:1:"A";a:5:{s:4:"type";s:6:"button";s:4:"name";s:3:"add";s:5:"label";s:3:"Add";s:4:"help";s:17:"Add a new contact";s:7:"onclick";s:164:"window.open(egw::link(\'/index.php\',\'menuaction=addressbook.uicontacts.edit\'),\'_blank\',\'dependent=yes,width=850,height=440,scrollbars=yes,status=yes\'); return false;";}s:1:"B";a:6:{s:4:"type";s:4:"hbox";s:4:"size";s:1:"3";s:5:"align";s:5:"right";i:1;a:5:{s:4:"type";s:8:"checkbox";s:4:"name";s:7:"use_all";s:5:"label";s:11:"whole query";s:8:"onchange";s:126:"if (this.checked==true && !confirm(\'Apply the action on the whole query, NOT only the shown contacts!!!\')) this.checked=false;";s:4:"help";s:67:"Apply the action on the whole query, NOT only the shown contacts!!!";}i:2;a:6:{s:4:"type";s:6:"select";s:8:"onchange";s:60:"if (this.value != \'\') { this.form.submit(); this.value=\'\'; }";s:4:"size";s:45:"Select an action or addressbook to move to...";s:7:"no_lang";s:1:"1";s:4:"name";s:6:"action";s:4:"help";s:42:"Select an action or addressbook to move to";}i:3;a:8:{s:4:"type";s:6:"button";s:4:"size";s:9:"arrow_ltr";s:5:"label";s:9:"Check all";s:4:"name";s:9:"check_all";s:4:"help";s:9:"Check all";s:7:"onclick";s:70:"toggle_all(this.form,form::name(\'nm[rows][checked][]\')); return false;";s:6:"needed";s:1:"1";s:4:"span";s:14:",checkAllArrow";}}}}s:4:"rows";i:4;s:4:"cols";i:2;s:4:"size";s:4:"100%";s:7:"options";a:1:{i:0;s:4:"100%";}}}','size' => '100%','style' => '','modified' => '1145194921',); +$templ_data[] = array('name' => 'addressbook.index','template' => '','lang' => '','group' => '0','version' => '1.5.001','data' => 'a:1:{i:0;a:6:{s:4:"type";s:4:"grid";s:4:"data";a:5:{i:0;a:3:{s:2:"h1";s:6:",!@msg";s:2:"h2";s:2:",1";s:2:"c4";s:7:"noPrint";}i:1;a:2:{s:1:"A";a:5:{s:4:"type";s:5:"label";s:4:"span";s:13:"all,redItalic";s:5:"align";s:6:"center";s:4:"name";s:3:"msg";s:7:"no_lang";s:1:"1";}s:1:"B";a:1:{s:4:"type";s:5:"label";}}i:2;a:2:{s:1:"A";a:2:{s:4:"type";s:8:"template";s:4:"name";s:22:"addressbook.index.left";}s:1:"B";a:3:{s:4:"type";s:8:"template";s:5:"align";s:5:"right";s:4:"name";s:27:"addressbook.index.right_add";}}i:3;a:2:{s:1:"A";a:4:{s:4:"type";s:9:"nextmatch";s:4:"size";s:22:"addressbook.index.rows";s:4:"name";s:2:"nm";s:4:"span";s:3:"all";}s:1:"B";a:1:{s:4:"type";s:5:"label";}}i:4;a:2:{s:1:"A";a:5:{s:4:"type";s:6:"button";s:4:"name";s:3:"add";s:5:"label";s:3:"Add";s:4:"help";s:17:"Add a new contact";s:7:"onclick";s:164:"window.open(egw::link(\'/index.php\',\'menuaction=addressbook.uicontacts.edit\'),\'_blank\',\'dependent=yes,width=850,height=440,scrollbars=yes,status=yes\'); return false;";}s:1:"B";a:6:{s:4:"type";s:4:"hbox";s:4:"size";s:1:"3";s:5:"align";s:5:"right";i:1;a:5:{s:4:"type";s:8:"checkbox";s:4:"name";s:7:"use_all";s:5:"label";s:11:"whole query";s:8:"onchange";s:126:"if (this.checked==true && !confirm(\'Apply the action on the whole query, NOT only the shown contacts!!!\')) this.checked=false;";s:4:"help";s:67:"Apply the action on the whole query, NOT only the shown contacts!!!";}i:2;a:6:{s:4:"type";s:6:"select";s:8:"onchange";s:261:"if (this.value != \'\') {if (this.value == \'cat_add\') {win=window.open(\'/egroupware/etemplate/process_exec.php?menuaction=addressbook.uicontacts.cat_add\',\'_blank\',\'width=300,height=400,left=100,top=200\'); win.focus();} else {this.form.submit(); } this.value=\'\'; }";s:4:"size";s:45:"Select an action or addressbook to move to...";s:7:"no_lang";s:1:"1";s:4:"name";s:6:"action";s:4:"help";s:42:"Select an action or addressbook to move to";}i:3;a:8:{s:4:"type";s:6:"button";s:4:"size";s:9:"arrow_ltr";s:5:"label";s:9:"Check all";s:4:"name";s:9:"check_all";s:4:"help";s:9:"Check all";s:7:"onclick";s:70:"toggle_all(this.form,form::name(\'nm[rows][checked][]\')); return false;";s:6:"needed";s:1:"1";s:4:"span";s:14:",checkAllArrow";}}}}s:4:"rows";i:4;s:4:"cols";i:2;s:4:"size";s:4:"100%";s:7:"options";a:1:{i:0;s:4:"100%";}}}','size' => '100%','style' => '','modified' => '1204812819',); + +$templ_data[] = array('name' => 'addressbook.index.cat_add','template' => '','lang' => '','group' => '0','version' => '1.5.001','data' => 'a:1:{i:0;a:6:{s:4:"type";s:4:"grid";s:4:"data";a:3:{i:0;a:3:{s:2:"c1";s:4:",top";s:1:"C";s:14:",@cat_tab=Tree";s:1:"D";s:15:",!@cat_tab=Tree";}i:1;a:4:{s:1:"A";a:2:{s:4:"type";s:5:"image";s:4:"name";s:6:"folder";}s:1:"B";a:2:{s:4:"type";s:5:"label";s:5:"label";s:10:"Categories";}s:1:"C";a:3:{s:4:"type";s:10:"select-cat";s:4:"name";s:6:"cat_id";s:4:"size";s:14:"013,,width:99%";}s:1:"D";a:3:{s:4:"type";s:8:"tree-cat";s:4:"name";s:6:"cat_id";s:4:"size";s:13:"13,,width:99%";}}i:2;a:4:{s:1:"A";a:6:{s:4:"type";s:4:"hbox";s:4:"size";s:1:"3";i:1;a:3:{s:4:"type";s:6:"button";s:5:"label";s:3:"add";s:4:"name";s:7:"cat_add";}i:2;a:3:{s:4:"type";s:6:"button";s:5:"label";s:6:"delete";s:4:"name";s:10:"cat_delete";}s:4:"span";s:3:"all";i:3;a:4:{s:4:"type";s:6:"button";s:5:"label";s:6:"cancel";s:4:"name";s:10:"cat_cancel";s:7:"onclick";s:15:"window.close();";}}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:4:"rows";i:2;s:4:"cols";i:4;s:4:"size";s:17:"100%,300,,,,,auto";s:7:"options";a:3:{i:0;s:4:"100%";i:1;s:3:"300";i:6;s:4:"auto";}}}','size' => '100%,300,,,,,auto','style' => '','modified' => '1204881537',); + $templ_data[] = array('name' => 'addressbook.index.left','template' => '','lang' => '','group' => '0','version' => '1.3.001','data' => 'a:1:{i:0;a:10:{s:4:"type";s:6:"select";s:4:"data";a:2:{i:0;a:0:{}i:1;a:1:{s:1:"A";a:1:{s:4:"type";s:5:"label";}}}s:4:"rows";i:1;s:4:"cols";i:1;s:4:"name";s:8:"org_view";s:7:"no_lang";s:1:"1";s:4:"help";s:13:"Select a view";s:4:"span";s:5:",bold";s:8:"onchange";i:1;s:4:"size";s:12:"All contacts";}}','size' => '','style' => '','modified' => '1146123855',); $templ_data[] = array('name' => 'addressbook.index.org_rows','template' => '','lang' => '','group' => '0','version' => '1.3.001','data' => 'a:1:{i:0;a:6:{s:4:"type";s:4:"grid";s:4:"data";a:3:{i:0;a:4:{s:2:"c1";s:2:"th";s:2:"c2";s:7:"row,top";s:1:"G";s:2:"90";s:1:"F";s:17:",@no_customfields";}i:1;a:7:{s:1:"A";a:1:{s:4:"type";s:5:"label";}s:1:"B";a:6:{s:4:"type";s:5:"label";i:1;a:3:{s:4:"type";s:5:"label";s:4:"name";s:3:"url";s:5:"label";s:3:"Url";}i:2;a:3:{s:4:"type";s:5:"label";s:5:"label";s:14:"Business email";s:4:"name";s:5:"email";}i:3;a:3:{s:4:"type";s:5:"label";s:4:"name";s:10:"email_home";s:5:"label";s:10:"Home email";}s:5:"label";s:1:"#";s:5:"align";s:6:"center";}s:1:"C";a:3:{s:4:"name";s:8:"org_name";s:5:"label";s:12:"Organisation";s:4:"type";s:20:"nextmatch-sortheader";}s:1:"D";a:2:{s:4:"type";s:5:"label";s:5:"label";s:10:"department";}s:1:"E";a:2:{s:4:"type";s:5:"label";s:5:"label";s:16:"Business address";}s:1:"F";a:6:{s:4:"type";s:4:"grid";s:4:"data";a:2:{i:0;a:0:{}i:1;a:1:{s:1:"A";a:3:{s:4:"type";s:5:"label";s:7:"no_lang";s:1:"1";s:4:"name";s:25:"customfields[$row][label]";}}}s:4:"rows";i:1;s:4:"cols";i:1;s:4:"size";s:7:",,,,0,0";s:7:"options";a:2:{i:4;s:1:"0";i:5;s:1:"0";}}s:1:"G";a:6:{s:4:"type";s:4:"hbox";s:5:"align";s:6:"center";s:4:"size";s:1:"2";i:1;a:3:{s:4:"type";s:5:"label";s:5:"label";s:7:"Actions";s:5:"align";s:6:"center";}i:2;a:8:{s:4:"type";s:6:"button";s:4:"size";s:5:"check";s:5:"label";s:9:"Check all";s:4:"name";s:9:"check_all";s:4:"help";s:9:"Check all";s:7:"onclick";s:60:"toggle_all(this.form,form::name(\'checked[]\')); return false;";s:6:"needed";s:1:"1";s:5:"align";s:5:"right";}s:4:"span";s:8:",noPrint";}}i:2;a:7:{s:1:"A";a:5:{s:4:"type";s:5:"image";s:5:"label";s:21:"$row_cont[type_label]";s:4:"name";s:12:"${row}[type]";s:5:"align";s:6:"center";s:7:"no_lang";s:1:"1";}s:1:"B";a:7:{s:4:"type";s:3:"int";i:1;a:3:{s:4:"type";s:5:"label";s:4:"name";s:3:"url";s:5:"label";s:3:"Url";}i:2;a:3:{s:4:"type";s:5:"label";s:5:"label";s:14:"Business email";s:4:"name";s:5:"email";}i:3;a:3:{s:4:"type";s:5:"label";s:4:"name";s:10:"email_home";s:5:"label";s:10:"Home email";}s:4:"name";s:17:"${row}[org_count]";s:8:"readonly";s:1:"1";s:5:"align";s:6:"center";}s:1:"C";a:8:{s:4:"type";s:5:"label";i:1;a:3:{s:4:"type";s:5:"label";s:4:"name";s:13:"${row}[line1]";s:7:"no_lang";s:1:"1";}i:2;a:3:{s:4:"type";s:5:"label";s:4:"name";s:13:"${row}[line2]";s:7:"no_lang";s:1:"1";}i:3;a:3:{s:4:"type";s:5:"label";s:4:"name";s:16:"${row}[org_unit]";s:7:"no_lang";s:1:"1";}i:4;a:3:{s:4:"type";s:5:"label";s:4:"name";s:13:"${row}[title]";s:7:"no_lang";s:1:"1";}i:5;a:3:{s:4:"type";s:5:"label";s:4:"name";s:17:"${row}[first_org]";s:7:"no_lang";s:1:"1";}s:4:"name";s:16:"${row}[org_name]";s:7:"no_lang";s:1:"1";}s:1:"D";a:3:{s:4:"type";s:5:"label";s:4:"name";s:16:"${row}[org_unit]";s:7:"no_lang";s:1:"1";}s:1:"E";a:6:{s:4:"type";s:4:"vbox";s:4:"size";s:6:"4,,0,0";i:1;a:3:{s:4:"type";s:5:"label";s:4:"name";s:27:"${row}[adr_one_countryname]";s:7:"no_lang";s:1:"1";}i:2;a:4:{s:4:"type";s:4:"hbox";s:4:"size";s:7:"2,0,0,0";i:1;a:3:{s:4:"type";s:5:"label";s:7:"no_lang";s:1:"1";s:4:"name";s:24:"${row}[adr_one_locality]";}i:2;a:5:{s:4:"type";s:5:"label";s:4:"name";s:26:"${row}[adr_one_postalcode]";s:4:"span";s:9:",leftPad5";s:5:"label";s:1:" ";s:7:"no_lang";s:1:"1";}}i:3;a:3:{s:4:"type";s:5:"label";s:7:"no_lang";s:1:"1";s:4:"name";s:22:"${row}[adr_one_street]";}i:4;a:3:{s:4:"type";s:5:"label";s:4:"name";s:23:"${row}[adr_one_street2]";s:7:"no_lang";s:1:"1";}}s:1:"F";a:7:{s:4:"type";s:4:"grid";s:4:"size";s:14:",60,,,0,0,auto";s:4:"name";s:20:"${row}[customfields]";s:4:"data";a:2:{i:0;a:0:{}i:1;a:1:{s:1:"A";a:4:{s:4:"type";s:5:"label";s:4:"span";s:12:",fixedHeight";s:4:"name";s:4:"$row";s:7:"no_lang";s:1:"1";}}}s:4:"rows";i:1;s:4:"cols";i:1;s:7:"options";a:4:{i:1;s:2:"60";i:6;s:4:"auto";i:4;s:1:"0";i:5;s:1:"0";}}s:1:"G";a:7:{s:4:"type";s:4:"hbox";s:4:"size";s:5:"4,0,0";i:1;a:5:{s:4:"type";s:6:"button";s:4:"size";s:4:"view";s:5:"label";s:4:"View";s:4:"name";s:19:"view[$row_cont[id]]";s:4:"help";s:38:"Show the contacts of this organisation";}i:2;a:6:{s:4:"type";s:6:"button";s:4:"size";s:3:"new";s:5:"label";s:3:"Add";s:7:"onclick";s:182:"window.open(egw::link(\'/index.php\',\'menuaction=addressbook.uicontacts.edit&org=$row_cont[id]\'),\'_blank\',\'dependent=yes,width=850,height=440,scrollbars=yes,status=yes\'); return false;";s:4:"name";s:18:"add[$row_cont[id]]";s:4:"help";s:34:"Add a contact to this organisation";}i:3;a:6:{s:4:"type";s:6:"button";s:4:"name";s:21:"delete[$row_cont[id]]";s:4:"size";s:6:"delete";s:5:"label";s:6:"Delete";s:4:"help";s:51:"Delete this organisation including ALL its contacts";s:7:"onclick";s:70:"return confirm(\'Delete this organisation including ALL its contacts\');";}i:4;a:5:{s:4:"type";s:8:"checkbox";s:4:"name";s:9:"checked[]";s:4:"size";s:13:"$row_cont[id]";s:4:"help";s:45:"Select multiple contacts for a further action";s:5:"align";s:5:"right";}s:4:"span";s:8:",noPrint";}}}s:4:"rows";i:2;s:4:"cols";i:7;s:4:"size";s:4:"100%";s:7:"options";a:1:{i:0;s:4:"100%";}}}','size' => '100%','style' => '','modified' => '1161600299',); diff --git a/addressbook/templates/default/index.cat_add.xet b/addressbook/templates/default/index.cat_add.xet new file mode 100644 index 0000000000..8a6c297250 --- /dev/null +++ b/addressbook/templates/default/index.cat_add.xet @@ -0,0 +1,29 @@ + + + + + \ No newline at end of file