diff --git a/addressbook/inc/class.addressbook_ui.inc.php b/addressbook/inc/class.addressbook_ui.inc.php
index 29ba5d46bf..90cd51a3e3 100644
--- a/addressbook/inc/class.addressbook_ui.inc.php
+++ b/addressbook/inc/class.addressbook_ui.inc.php
@@ -127,24 +127,25 @@ class addressbook_ui extends addressbook_bo
if (isset($content['nm']['rows']['delete'])) // handle a single delete like delete with the checkboxes
{
list($id) = @each($content['nm']['rows']['delete']);
- $content['action'] = 'delete';
- $content['nm']['rows']['checked'] = array($id);
+ $content['nm']['action'] = 'delete';
+ $content['nm']['selected'] = array($id);
}
if (isset($content['nm']['rows']['document'])) // handle insert in default document button like an action
{
list($id) = @each($content['nm']['rows']['document']);
- $content['action'] = 'document';
- $content['nm']['rows']['checked'] = array($id);
+ $content['nm']['action'] = 'document';
+ $content['nm']['selected'] = array($id);
}
- if ($content['action'] !== '')
+ if ($content['nm']['action'] !== '')
{
- if (!count($content['nm']['rows']['checked']) && !$content['use_all'] && $content['action'] != 'delete_list')
+ if ($content['use_all']) $content['nm']['select_all'] = $content['use_all']; // legacy support
+ if (!count($content['nm']['selected']) && !$content['nm']['select_all'] && $content['nm']['action'] != 'delete_list')
{
$msg = lang('You need to select some contacts first');
}
else
{
- if ($this->action($content['action'],$content['nm']['rows']['checked'],$content['use_all'],
+ if ($this->action($content['nm']['action'],$content['nm']['selected'],$content['nm']['select_all'],
$success,$failed,$action_msg,$content['do_email'] ? 'email' : 'index',$msg))
{
$msg .= lang('%1 contact(s) %2',$success,$action_msg);
@@ -217,9 +218,11 @@ class addressbook_ui extends addressbook_bo
'filter2_no_lang'=> True, // I set no_lang for filter2 (=dont translate the options)
'lettersearch' => true,
'do_email' => $do_email,
- 'default_cols' => '!cat_id,contact_created_contact_modified,distribution_list,contact_id,owner',
+ 'default_cols' => '!cat_id,contact_created_contact_modified,distribution_list,contact_id,owner,legacy_actions',
'filter2_onchange' => "if(this.value=='add') { add_new_list(document.getElementById(form::name('filter')).value); this.value='';} else this.form.submit();",
'manual' => $do_email ? ' ' : false, // space for the manual icon
+ //'actions' => $this->get_actions(), // set on each request, as it depends on some filters
+ 'row_id' => 'id',
);
$csv_export = new addressbook_csv($this);
$content['nm']['csv_fields'] = $GLOBALS['egw_info']['user']['preferences']['addressbook']['nextmatch-export-definition'] ?
@@ -276,73 +279,11 @@ class addressbook_ui extends addressbook_bo
'cc' => 'Cc',
'bcc' => 'Bcc',
);
- $sel_options['action'] = array();
- if ($do_email)
- {
- $GLOBALS['egw_info']['flags']['include_xajax'] = true;
- $sel_options['action'] = array(
- 'email' => lang('Add %1',lang('business email')),
- 'email_home' => lang('Add %1',lang('home email')),
- );
- }
- $sel_options['action'] += array(
- 'delete' => lang('Delete'),
- );
- if($content['nm']['col_filter']['tid'] == 'D' && !$GLOBALS['egw_info']['user']['apps']['admin'] && $this->config['history'] != 'userpurge')
- {
- // User not allowed to purge
- unset($sel_options['action']['delete']);
- }
+ //$sel_options['action'] = $this->get_legacy_actions($do_email, $content['nm']['col_filter']['tid']);
+ $content['nm']['actions'] = $this->get_actions($do_email, $content['nm']['col_filter']['tid']);
- // check if user is an admin or the export is not generally turned off (contact_export_limit is non-numerical, eg. no)
- if (isset($GLOBALS['egw_info']['user']['apps']['admin']) || !$this->config['contact_export_limit'] || (int)$this->config['contact_export_limit'])
- {
- if($content['nm']['col_filter']['tid'] == 'D')
- {
- $sel_options['action']['undelete'] = lang('Un-delete');
- }
- $sel_options['action'] += array(
- 'csv' => lang('Export as CSV'),
- 'vcard' => lang('Export as VCard'), // ToDo: move this to importexport framework
- );
- }
// if there is any export limit set, pass it on to the nextmatch, to be evaluated by the export
if (isset($this->config['contact_export_limit']) && (int)$this->config['contact_export_limit']) $content['nm']['export_limit']=$this->config['contact_export_limit'];
- $sel_options['action'] += array(
- 'merge' => lang('Merge into first or account, deletes all other!'),
- 'cat_add' => lang('Add or delete Categories'), // add a categirie to multible addresses
- 'infolog_add' => lang('Add a new Infolog'),
- );
- if ($GLOBALS['egw_info']['user']['apps']['infolog'])
- {
- $sel_options['action']['infolog'] = lang('View linked InfoLog entries');
- }
- if (($move2addressbooks=$this->get_addressbooks(EGW_ACL_ADD))) // do we have addressbooks, we should
- {
- foreach ($move2addressbooks as $m2a_id => $m2alabel)
- {
- $m2a['move_to_'.$m2a_id] = $m2alabel;
- }
- $sel_options['action'][lang('Move to addressbook:')] = $m2a;
- }
- if (($add_lists = $this->get_lists(EGW_ACL_EDIT))) // do we have distribution lists?
- {
- $lists = array();
- foreach ($add_lists as $list_id => $label)
- {
- $lists['to_list_'.$list_id] = $label;
- }
- $sel_options['action'][lang('Add to distribution list:')] = $lists;
- unset($lists);
- $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();
- }
- if (!array_key_exists('importexport',$GLOBALS['egw_info']['user']['apps'])) unset($sel_options['action']['export']);
// dont show tid-selection if we have only one content_type
// be a bit more sophisticated asbout it
@@ -391,6 +332,289 @@ class addressbook_ui extends addressbook_bo
$content,$sel_options,$readonlys,$preserv,$do_email ? 2 : 0);
}
+ /**
+ * Get actions / context menu items
+ *
+ * @param boolean $do_email
+ */
+ private function get_actions($do_email=false, $tid_filter=null)
+ {
+ $actions = array(
+ 'view' => array(
+ 'caption' => 'View',
+ 'default' => true,
+ 'allowOnMultiple' => false,
+ 'url' => 'menuaction=addressbook.addressbook_ui.view&contact_id=$id',
+ 'popup' => egw_link::get_registry('addressbook', 'view_popup'),
+ 'group' => $group=1,
+ ),
+ 'edit' => array(
+ 'caption' => 'Edit',
+ 'allowOnMultiple' => false,
+ 'url' => 'menuaction=addressbook.addressbook_ui.edit&contact_id=',
+ 'popup' => egw_link::get_registry('addressbook', 'add_popup'),
+ 'group' => $group,
+ ),
+ 'add' => array(
+ 'caption' => 'Add',
+ 'url' => 'menuaction=addressbook.addressbook_ui.edit',
+ 'popup' => egw_link::get_registry('addressbook', 'add_popup'),
+ 'group' => $group,
+ ),
+ );
+ if ($do_email)
+ {
+ $actions += array(
+ 'email' => array(
+ 'caption' => lang('Add %1',lang('business email')),
+ 'no_lang' => true,
+ 'group' => ++$group,
+ ),
+ 'email_home' => array(
+ 'caption' => lang('Add %1',lang('home email')),
+ 'no_lang' => true,
+ 'group' => $group,
+ ),
+ );
+ }
+
+ ++$group; // other AB related stuff group: lists, AB's, categories
+ // categories submenu
+ $actions['cat'] = array(
+ 'caption' => 'Categories',
+ 'group' => $group,
+ 'children' => array(
+ 'cat_add' => nextmatch_widget::category_action(
+ 'addressbook',$group,'Add category', 'cat_add_'
+ )+array('icon' => 'foldertree_nolines_plus'),
+ 'cat_del' => nextmatch_widget::category_action(
+ 'addressbook',$group,'Delete category', 'cat_del_'
+ )+array('icon' => 'foldertree_nolines_minus'),
+ 'cat_edit' => array(
+ 'caption' => 'Edit categories',
+ 'url' => 'menuaction=preferences.uicategories.index&cats_app=addressbook&cats_level=True&global_cats=True',
+ 'icon' => 'edit',
+ 'group' => $group,
+ ),
+ ),
+ );
+ if (!$GLOBALS['egw_info']['user']['apps']['preferences']) unset($actions['cats']['children']['cat_edit']);
+ // Submenu for all distributionlist stuff
+ $actions['lists'] = array(
+ 'caption' => 'Distribution lists',
+ 'children' => array(
+ 'list_add' => array(
+ 'caption' => 'Add a new list',
+ 'icon' => 'new',
+ 'onExecute' => 'javascript:add_new_list',
+ ),
+ ),
+ 'group' => $group,
+ );
+ if (($add_lists = $this->get_lists(EGW_ACL_EDIT))) // do we have distribution lists?
+ {
+ $actions['lists']['children'] += array(
+ 'to_list' => array(
+ 'caption' => 'Add to distribution list',
+ 'children' => $add_lists,
+ 'prefix' => 'to_list_',
+ 'icon' => 'foldertree_nolines_plus',
+ ),
+ 'remove_from_list' => array(
+ 'caption' => 'Remove from distribution list',
+ 'confirm' => 'Remove selected contacts from distribution list',
+ 'icon' => 'foldertree_nolines_minus',
+ ),
+ 'delete_list' => array(
+ 'caption' => 'Delete selected distribution list!',
+ 'confirm' => 'Delete selected distribution list!',
+ 'icon' => 'delete',
+ ),
+ );
+ }
+ // move to AB
+ if (($move2addressbooks = $this->get_addressbooks(EGW_ACL_ADD))) // do we have addressbooks, we should
+ {
+ $actions['move_to'] = array(
+ 'caption' => 'Move to addressbook',
+ 'children' => $move2addressbooks,
+ 'prefix' => 'move_to_',
+ 'group' => $group,
+ );
+ }
+ $actions['merge'] = array(
+ 'caption' => 'Merge contacts',
+ 'confirm' => 'Merge into first or account, deletes all other!',
+ 'hint' => 'Merge into first or account, deletes all other!',
+ 'group' => $group,
+ );
+
+ ++$group; // integration with other apps: infolog, calendar, filemanager
+ if ($GLOBALS['egw_info']['user']['apps']['infolog'])
+ {
+ $actions['infolog_app'] = array(
+ 'caption' => 'InfoLog',
+ 'icon' => 'infolog/navbar',
+ 'group' => $group,
+ 'children' => array(
+ 'infolog' => array(
+ 'caption' => lang('View linked InfoLog entries'),
+ 'icon' => 'infolog/navbar',
+ ),
+ 'infolog_add' => array(
+ 'caption' => 'Add a new Infolog',
+ 'icon' => 'new',
+ ),
+ )
+ );
+ }
+ if ($GLOBALS['egw_info']['user']['apps']['calendar'])
+ {
+ $actions['calendar'] = array(
+ 'icon' => 'calendar/navbar',
+ 'caption' => 'Add appointment',
+ 'url' => 'menuaction=calendar.calendar_uiforms.edit&participants=c$id',
+ 'popup' => egw_link::get_registry('calendar', 'add_popup'),
+ 'group' => $group,
+ );
+ }
+ if ($GLOBALS['egw_info']['user']['apps']['filemanager'])
+ {
+ $actions['filemanager'] = array(
+ 'icon' => 'filemanager/navbar',
+ 'caption' => 'Filemanager',
+ 'url' => 'menuaction=filemanager.filemanager_ui.index&path=/apps/addressbook/$id',
+ 'group' => $group,
+ );
+ }
+
+ // check if user is an admin or the export is not generally turned off (contact_export_limit is non-numerical, eg. no)
+ if (isset($GLOBALS['egw_info']['user']['apps']['admin']) || !$this->config['contact_export_limit'] || (int)$this->config['contact_export_limit'])
+ {
+ $actions['export'] = array(
+ 'caption' => 'Export',
+ 'icon' => 'filesave',
+ 'group' => ++$group,
+ 'children' => array(
+ 'csv' => 'Export as CSV',
+ 'vcard' => 'Export as VCard',
+ ),
+ );
+ }
+
+ if ($this->prefs['document_dir'])
+ {
+ $actions += array(
+ 'document' => array(
+ 'caption' => lang('Insert in %1',egw_vfs::basename($GLOBALS['egw_info']['user']['preferences']['addressbook']['default_document'])),
+ 'enabled' => (boolean)$GLOBALS['egw_info']['user']['preferences']['addressbook']['default_document'],
+ 'hideOnDisabled' => true,
+ 'group' => ++$group,
+ ),
+ 'documents' => timesheet_merge::document_action(
+ $GLOBALS['egw_info']['user']['preferences']['addressbook']['document_dir'], $group
+ ),
+ );
+ }
+
+ ++$group;
+ if (!($tid_filter == 'D' && !$GLOBALS['egw_info']['user']['apps']['admin'] && $this->config['history'] != 'userpurge'))
+ {
+ $actions['delete'] = array(
+ 'caption' => 'Delete',
+ 'confirm' => 'Delete this contact',
+ 'group' => $group,
+ );
+ }
+ if($tid_filter == 'D')
+ {
+ $actions['undelete'] = array(
+ 'caption' => 'Un-delete',
+ 'group' => $group,
+ );
+ }
+
+ //_debug_array($actions);
+ return $actions;
+ }
+
+ /**
+ * Get actions / context menu items
+ *
+ * @param boolean $do_email
+ */
+ private function get_legacy_actions($do_email=false, $tid_filter=null)
+ {
+ $actions = array();
+ if ($do_email)
+ {
+ $GLOBALS['egw_info']['flags']['include_xajax'] = true;
+ $actions = array(
+ 'email' => lang('Add %1',lang('business email')),
+ 'email_home' => lang('Add %1',lang('home email')),
+ );
+ }
+ $actions += array(
+ 'delete' => lang('Delete'),
+ );
+ if($tid_filter == 'D' && !$GLOBALS['egw_info']['user']['apps']['admin'] && $this->config['history'] != 'userpurge')
+ {
+ // User not allowed to purge
+ unset($actions['delete']);
+ }
+
+ // check if user is an admin or the export is not generally turned off (contact_export_limit is non-numerical, eg. no)
+ if (isset($GLOBALS['egw_info']['user']['apps']['admin']) || !$this->config['contact_export_limit'] || (int)$this->config['contact_export_limit'])
+ {
+ if($tid_filter == 'D')
+ {
+ $actions['undelete'] = lang('Un-delete');
+ }
+ $actions += array(
+ 'csv' => lang('Export as CSV'),
+ 'vcard' => lang('Export as VCard'), // ToDo: move this to importexport framework
+ );
+ }
+ $actions += array(
+ 'merge' => lang('Merge into first or account, deletes all other!'),
+ 'cat_add' => lang('Add or delete Categories'), // add a categirie to multible addresses
+ 'infolog_add' => lang('Add a new Infolog'),
+ );
+ if ($GLOBALS['egw_info']['user']['apps']['infolog'])
+ {
+ $actions['infolog'] = lang('View linked InfoLog entries');
+ }
+ if (($move2addressbooks=$this->get_addressbooks(EGW_ACL_ADD))) // do we have addressbooks, we should
+ {
+ foreach ($move2addressbooks as $m2a_id => $m2alabel)
+ {
+ $m2a['move_to_'.$m2a_id] = $m2alabel;
+ }
+ $actions[lang('Move to addressbook:')] = $m2a;
+ }
+ if (($add_lists = $this->get_lists(EGW_ACL_EDIT))) // do we have distribution lists?
+ {
+ $lists = array();
+ foreach ($add_lists as $list_id => $label)
+ {
+ $lists['to_list_'.$list_id] = $label;
+ }
+ $actions[lang('Add to distribution list:')] = $lists;
+ unset($lists);
+ $actions['remove_from_list'] = lang('Remove selected contacts from distribution list');
+ $actions['delete_list'] = lang('Delete selected distribution list!');
+ }
+
+ if ($this->prefs['document_dir'])
+ {
+ $actions[lang('Insert in document').':'] = $this->get_document_actions();
+ }
+ if (!array_key_exists('importexport',$GLOBALS['egw_info']['user']['apps'])) unset($actions['export']);
+
+ //_debug_array($actions);
+ return $actions;
+ }
+
/**
* Email address-selection popup
*
@@ -1083,10 +1307,8 @@ class addressbook_ui extends addressbook_bo
$readonlys = array();
$photos = $homeaddress = $roles = $notes = false;
- foreach($rows as $n => $val)
+ foreach($rows as $n => &$row)
{
- $row =& $rows[$n];
-
$given = $row['n_given'] ? $row['n_given'] : ($row['n_prefix'] ? $row['n_prefix'] : '');
switch($order)
@@ -2059,8 +2281,9 @@ class addressbook_ui extends addressbook_bo
return false;
}
- function add_new_list(owner)
+ function add_new_list()
{
+ var owner=document.getElementById("exec[nm][filter]").value;
var name = window.prompt("'.lang('Name for the distribution list').'");
if (name)
{
diff --git a/addressbook/setup/etemplates.inc.php b/addressbook/setup/etemplates.inc.php
index 21ad542876..56a14ac675 100755
--- a/addressbook/setup/etemplates.inc.php
+++ b/addressbook/setup/etemplates.inc.php
@@ -2,7 +2,7 @@
/**
* eGroupWare - eTemplates for Application addressbook
* http://www.egroupware.org
- * generated by soetemplate::dump4setup() 2011-02-15 12:22
+ * generated by soetemplate::dump4setup() 2011-04-17 16:05
*
* @license http://opensource.org/licenses/gpl-license.php GPL - GNU General Public License
* @package addressbook
@@ -84,7 +84,7 @@ $templ_data[] = array('name' => 'addressbook.importexport_wizzard_fieldmaping','
$templ_data[] = array('name' => 'addressbook.importexport_wizzard_samplefile','template' => '','lang' => '','group' => '0','version' => '0.0.1','data' => 'a:1:{i:0;a:4:{s:4:"type";s:4:"grid";s:4:"data";a:3:{i:0;a:0:{}i:1;a:1:{s:1:"A";a:3:{s:4:"type";s:5:"label";s:4:"name";s:3:"msg";s:7:"no_lang";s:1:"1";}}i:2;a:1:{s:1:"A";a:2:{s:4:"type";s:4:"file";s:4:"name";s:4:"file";}}}s:4:"rows";i:2;s:4:"cols";i:1;}}','size' => '','style' => '','modified' => '1146650510',);
-$templ_data[] = array('name' => 'addressbook.index','template' => '','lang' => '','group' => '0','version' => '1.7.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:168:"window.open(egw::link(\'/index.php\',\'menuaction=addressbook.addressbook_ui.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:16:"do_action(this);";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' => '1243585623',);
+$templ_data[] = array('name' => 'addressbook.index','template' => '','lang' => '','group' => '0','version' => '1.9.001','data' => 'a:1:{i:0;a:5:{s:4:"type";s:4:"grid";s:4:"data";a:5:{i:0;a:4:{s:2:"h1";s:6:",!@msg";s:2:"h2";s:2:",1";s:2:"c4";s:7:"noPrint";s:2:"h4";s:34:",!@nm[selectcols]=/legacy_actions/";}i:1;a:3:{s:1:"A";a:5:{s:4:"span";s:13:"all,redItalic";s:5:"align";s:6:"center";s:7:"no_lang";s:1:"1";s:4:"name";s:3:"msg";s:4:"type";s:5:"label";}s:1:"B";a:1:{s:4:"type";s:5:"label";}s:1:"C";a:1:{s:4:"type";s:5:"label";}}i:2;a:2:{s:1:"A";a:2:{s:4:"name";s:22:"addressbook.index.left";s:4:"type";s:8:"template";}s:1:"B";a:3:{s:5:"align";s:5:"right";s:4:"name";s:27:"addressbook.index.right_add";s:4:"type";s:8:"template";}}i:3;a:3:{s:1:"A";a:4:{s:4:"span";s:3:"all";s:4:"name";s:2:"nm";s:4:"size";s:22:"addressbook.index.rows";s:4:"type";s:9:"nextmatch";}s:1:"B";a:1:{s:4:"type";s:5:"label";}s:1:"C";a:1:{s:4:"type";s:5:"label";}}i:4;a:2:{s:1:"A";a:5:{s:5:"label";s:3:"Add";s:7:"onclick";s:168:"window.open(egw::link(\'/index.php\',\'menuaction=addressbook.addressbook_ui.edit\'),\'_blank\',\'dependent=yes,width=850,height=440,scrollbars=yes,status=yes\'); return false;";s:4:"name";s:3:"add";s:4:"type";s:6:"button";s:4:"help";s:17:"Add a new contact";}s:1:"B";a:7:{s:5:"align";s:5:"right";s:4:"type";s:4:"hbox";s:4:"size";s:1:"3";i:1;a:5:{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:"name";s:7:"use_all";s:4:"type";s:8:"checkbox";s:4:"help";s:67:"Apply the action on the whole query, NOT only the shown contacts!!!";}i:2;a:6:{s:7:"no_lang";s:1:"1";s:4:"name";s:6:"action";s:4:"type";s:6:"button";s:4:"help";s:42:"Select an action or addressbook to move to";s:5:"label";s:45:"Select an action or addressbook to move to...";s:7:"onclick";s:141:"if (!egw_objectManager.executeActionImplementation(this, \'popup\')) alert(egw::lang(\'You need to select some contacts first\')); return false;;";}i:3;a:8:{s:5:"label";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:"name";s:9:"check_all";s:4:"type";s:6:"button";s:4:"size";s:9:"arrow_ltr";s:4:"help";s:9:"Check all";s:4:"span";s:14:",checkAllArrow";}s:4:"span";s:3:"all";}}}s:4:"cols";i:3;s:4:"rows";i:4;s:4:"size";s:4:"100%";}}','size' => '100%','style' => '','modified' => '1303037490',);
$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',);
@@ -98,7 +98,7 @@ $templ_data[] = array('name' => 'addressbook.index.right_add','template' => '','
$templ_data[] = array('name' => 'addressbook.index.right_addplus','template' => '','lang' => '','group' => '0','version' => '1.7.001','data' => 'a:1:{i:0;a:6:{s:4:"type";s:4:"grid";s:4:"data";a:2:{i:0;a:0:{}i:1;a:3:{s:1:"A";a:6:{s:4:"type";s:6:"select";s:5:"label";s:4:"Type";s:4:"name";s:15:"col_filter[tid]";s:8:"onchange";i:1;s:4:"size";s:3:"All";s:5:"align";s:5:"right";}s:1:"B";a:5:{s:4:"type";s:10:"buttononly";s:4:"name";s:6:"search";s:5:"label";s:15:"Advanced search";s:7:"onclick";s:170:"window.open(egw::link(\'/index.php\',\'menuaction=addressbook.addressbook_ui.search\'),\'_blank\',\'dependent=yes,width=850,height=440,scrollbars=yes,status=yes\'); return false;";s:5:"align";s:5:"right";}s:1:"C";a:7:{s:4:"type";s:10:"buttononly";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:168:"window.open(egw::link(\'/index.php\',\'menuaction=addressbook.addressbook_ui.edit\'),\'_blank\',\'dependent=yes,width=850,height=440,scrollbars=yes,status=yes\'); return false;";s:4:"span";s:12:",rightPadAdd";s:5:"align";s:5:"right";}}}s:4:"rows";i:1;s:4:"cols";i:3;s:5:"align";s:5:"right";s:7:"options";a:0:{}}}','size' => '','style' => '.rightPadAdd { width: 30px; }','modified' => '1257759662',);
-$templ_data[] = array('name' => 'addressbook.index.rows','template' => '','lang' => '','group' => '0','version' => '1.9.003','data' => 'a:1:{i:0;a:6:{s:4:"type";s:4:"grid";s:4:"data";a:3:{i:0;a:9:{s:2:"c1";s:2:"th";s:2:"c2";s:21:"$row_cont[cat_id],top";s:1:"K";s:17:",@no_customfields";s:1:"E";s:12:"60,@no_photo";s:1:"C";s:9:",@no_role";s:1:"H";s:9:",@no_home";s:1:"M";s:22:",@no_distribution_list";s:1:"L";s:9:",@no_note";s:1:"R";s:2:"75";}i:1;a:18:{s:1:"A";a:3:{s:4:"type";s:5:"label";s:4:"size";s:1:"1";i:1;a:1:{s:4:"type";s:5:"label";}}s:1:"B";a:6:{s:4:"type";s:4:"grid";s:4:"data";a:7:{i:0;a:5:{s:2:"h2";s:16:",!@order=n_given";s:2:"h5";s:85:",!@order=/^(org_name|n_fileas|adr_one_postalcode|contact_modified|contact_created|#)/";s:2:"h3";s:17:",!@order=n_family";s:2:"h1";s:17:",!@order=n_fileas";s:2:"h6";s:16:",@order=n_fileas";}i:1;a:2:{s:1:"A";a:4:{s:4:"type";s:20:"nextmatch-sortheader";s:4:"span";s:3:"all";s:5:"label";s:11:"own sorting";s:4:"name";s:8:"n_fileas";}s:1:"B";a:1:{s:4:"type";s:5:"label";}}i:2;a:2:{s:1:"A";a:3:{s:4:"type";s:20:"nextmatch-sortheader";s:4:"name";s:7:"n_given";s:5:"label";s:9:"Firstname";}s:1:"B";a:3:{s:4:"type";s:20:"nextmatch-sortheader";s:5:"label";s:4:"Name";s:4:"name";s:8:"n_family";}}i:3;a:2:{s:1:"A";a:3:{s:4:"type";s:20:"nextmatch-sortheader";s:5:"label";s:4:"Name";s:4:"name";s:8:"n_family";}s:1:"B";a:3:{s:4:"type";s:20:"nextmatch-sortheader";s:4:"name";s:7:"n_given";s:5:"label";s:9:"Firstname";}}i:4;a:2:{s:1:"A";a:4:{s:4:"name";s:8:"org_name";s:5:"label";s:12:"Organisation";s:4:"span";s:3:"all";s:4:"type";s:20:"nextmatch-sortheader";}s:1:"B";a:1:{s:4:"type";s:5:"label";}}i:5;a:2:{s:1:"A";a:3:{s:4:"type";s:20:"nextmatch-sortheader";s:4:"name";s:8:"n_family";s:5:"label";s:4:"Name";}s:1:"B";a:4:{s:4:"type";s:20:"nextmatch-sortheader";s:4:"name";s:7:"n_given";s:5:"label";s:9:"Firstname";s:4:"span";s:9:",leftPad5";}}i:6;a:2:{s:1:"A";a:4:{s:4:"type";s:20:"nextmatch-sortheader";s:4:"span";s:3:"all";s:5:"label";s:11:"own sorting";s:4:"name";s:8:"n_fileas";}s:1:"B";a:1:{s:4:"type";s:5:"label";}}}s:4:"rows";i:6;s:4:"cols";i:2;s:7:"options";a:2:{i:4;s:1:"0";i:5;s:1:"0";}s:4:"size";s:7:",,,,0,0";}s:1:"C";a:3:{s:4:"type";s:16:"nextmatch-header";s:5:"label";s:4:"role";s:4:"name";s:4:"role";}s:1:"D";a:3:{s:4:"type";s:16:"nextmatch-header";s:5:"label";s:8:"Category";s:4:"name";s:6:"cat_id";}s:1:"E";a:3:{s:4:"type";s:16:"nextmatch-header";s:5:"label";s:5:"Photo";s:4:"name";s:5:"photo";}s:1:"F";a:3:{s:4:"type";s:16:"nextmatch-header";s:4:"name";s:4:"bday";s:5:"label";s:8:"Birthday";}s:1:"G";a:5:{s:4:"type";s:4:"vbox";s:4:"size";s:6:"3,,0,0";i:1;a:3:{s:4:"type";s:16:"nextmatch-header";s:5:"label";s:16:"Business address";s:4:"name";s:8:"business";}i:2;a:4:{s:4:"type";s:22:"nextmatch-customfilter";s:4:"name";s:19:"adr_one_countrycode";s:4:"size";s:44:"select-country,Country,0,No country selected";s:4:"span";s:14:",countrySelect";}i:3;a:3:{s:4:"type";s:20:"nextmatch-sortheader";s:4:"name";s:18:"adr_one_postalcode";s:5:"label";s:8:"zip code";}}s:1:"H";a:3:{s:4:"type";s:16:"nextmatch-header";s:5:"label";s:12:"Home address";s:4:"name";s:4:"home";}s:1:"I";a:6:{s:4:"type";s:4:"vbox";s:4:"size";s:6:"4,,0,0";i:1;a:3:{s:4:"type";s:16:"nextmatch-header";s:4:"name";s:8:"tel_work";s:5:"label";s:14:"Business phone";}i:2;a:3:{s:4:"type";s:16:"nextmatch-header";s:5:"label";s:12:"Mobile phone";s:4:"name";s:8:"tel_cell";}i:3;a:3:{s:4:"type";s:16:"nextmatch-header";s:4:"name";s:8:"tel_home";s:5:"label";s:10:"Home phone";}i:4;a:2:{s:4:"type";s:5:"label";s:5:"label";s:3:"Fax";}}s:1:"J";a:5:{s:4:"type";s:4:"vbox";s:4:"size";s:6:"3,,0,0";i:1;a:3:{s:4:"type";s:16:"nextmatch-header";s:4:"name";s:3:"url";s:5:"label";s:3:"Url";}i:2;a:3:{s:4:"type";s:16:"nextmatch-header";s:5:"label";s:14:"Business email";s:4:"name";s:5:"email";}i:3;a:3:{s:4:"type";s:16:"nextmatch-header";s:4:"name";s:10:"email_home";s:5:"label";s:10:"Home email";}}s:1:"K";a:4:{s:4:"type";s:22:"nextmatch-customfields";i:1;a:1:{s:4:"type";s:22:"nextmatch-customfields";}i:2;a:5:{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:4:"name";s:12:"customfields";}s:1:"L";a:3:{s:4:"type";s:16:"nextmatch-header";s:5:"label";s:4:"Note";s:4:"name";s:4:"note";}s:1:"M";a:3:{s:4:"type";s:16:"nextmatch-header";s:5:"label";s:18:"Distribution lists";s:4:"name";s:17:"distribution_list";}s:1:"N";a:3:{s:4:"type";s:16:"nextmatch-header";s:5:"label";s:11:"Addressbook";s:4:"name";s:5:"owner";}s:1:"O";a:3:{s:4:"type";s:20:"nextmatch-sortheader";s:5:"label";s:2:"ID";s:4:"name";s:10:"contact_id";}s:1:"P";a:4:{s:4:"type";s:4:"vbox";s:4:"size";s:6:"2,,0,0";i:1;a:3:{s:4:"type";s:16:"nextmatch-header";s:5:"label";s:9:"Last date";s:4:"name";s:8:"calendar";}i:2;a:3:{s:4:"type";s:16:"nextmatch-header";s:5:"label";s:9:"Next date";s:4:"name";s:8:"calendar";}}s:1:"Q";a:4:{s:4:"type";s:4:"vbox";s:4:"size";s:6:"2,,0,0";i:1;a:3:{s:4:"type";s:20:"nextmatch-sortheader";s:4:"name";s:15:"contact_created";s:5:"label";s:7:"Created";}i:2;a:3:{s:4:"type";s:20:"nextmatch-sortheader";s:4:"name";s:16:"contact_modified";s:5:"label";s:13:"Last modified";}}s:1:"R";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:18:{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:8:{s:4:"type";s:4:"vbox";s:4:"size";s:6:"5,,0,0";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:10:"${row}[id]";}s:1:"C";a:2:{s:4:"type";s:5:"label";s:4:"name";s:12:"${row}[role]";}s:1:"D";a:4:{s:4:"type";s:10:"select-cat";s:4:"size";s:1:"1";s:4:"name";s:14:"${row}[cat_id]";s:8:"readonly";s:1:"1";}s:1:"E";a:3:{s:4:"type";s:5:"image";s:4:"name";s:13:"${row}[photo]";s:4:"span";s:7:",iphoto";}s:1:"F";a:4:{s:4:"type";s:4:"date";s:4:"name";s:12:"${row}[bday]";s:8:"readonly";s:1:"1";s:4:"size";s:5:"Y-m-d";}s:1:"G";a:7:{s:4:"type";s:4:"vbox";s:4:"size";s:6:"5,,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:3:{s:4:"type";s:14:"select-country";s:4:"name";s:27:"${row}[adr_one_countrycode]";s:8:"readonly";s:1:"1";}i:3;a:5:{s:4:"type";s:4:"hbox";s:4:"size";s:7:"3,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:4:{s:4:"type";s:5:"label";s:4:"span";s:9:",leftPad5";s:7:"no_lang";s:1:"1";s:4:"name";s:22:"${row}[adr_one_region]";}i:3;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:4;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:5;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:"H";a:7:{s:4:"type";s:4:"vbox";s:4:"size";s:6:"5,,0,0";i:1;a:3:{s:4:"type";s:5:"label";s:4:"name";s:27:"${row}[adr_two_countryname]";s:7:"no_lang";s:1:"1";}i:2;a:3:{s:4:"type";s:14:"select-country";s:4:"name";s:27:"${row}[adr_two_countrycode]";s:8:"readonly";s:1:"1";}i:3;a:5:{s:4:"type";s:4:"hbox";s:4:"size";s:6:"3,,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_two_locality]";}i:2;a:4:{s:4:"type";s:5:"label";s:7:"no_lang";s:1:"1";s:4:"name";s:22:"${row}[adr_two_region]";s:4:"span";s:9:",leftPad5";}i:3;a:5:{s:4:"type";s:5:"label";s:4:"name";s:26:"${row}[adr_two_postalcode]";s:4:"span";s:9:",leftPad5";s:5:"label";s:1:" ";s:7:"no_lang";s:1:"1";}}i:4;a:3:{s:4:"type";s:5:"label";s:7:"no_lang";s:1:"1";s:4:"name";s:22:"${row}[adr_two_street]";}i:5;a:3:{s:4:"type";s:5:"label";s:4:"name";s:23:"${row}[adr_two_street2]";s:7:"no_lang";s:1:"1";}}s:1:"I";a:7:{s:4:"type";s:4:"vbox";s:4:"size";s:6:"5,,0,0";i:1;a:4:{s:4:"type";s:9:"url-phone";s:4:"name";s:16:"${row}[tel_work]";s:4:"span";s:11:",telNumbers";s:8:"readonly";s:1:"1";}i:2;a:4:{s:4:"type";s:9:"url-phone";s:4:"name";s:16:"${row}[tel_cell]";s:4:"span";s:11:",telNumbers";s:8:"readonly";s:1:"1";}i:3;a:4:{s:4:"type";s:9:"url-phone";s:4:"name";s:16:"${row}[tel_home]";s:4:"span";s:11:",telNumbers";s:8:"readonly";s:1:"1";}i:4;a:3:{s:4:"type";s:9:"url-phone";s:4:"name";s:15:"${row}[tel_fax]";s:8:"readonly";s:1:"1";}i:5;a:4:{s:4:"type";s:5:"label";s:4:"name";s:20:"${row}[tel_prefered]";s:7:"no_lang";s:1:"1";s:4:"size";s:57:",$row_cont[tel_prefered_link],,,calling,$cont[call_popup]";}}s:1:"J";a:5:{s:4:"type";s:4:"vbox";s:4:"size";s:6:"3,,0,0";i:1;a:4:{s:4:"type";s:3:"url";s:4:"span";s:12:",fixedHeight";s:4:"name";s:11:"${row}[url]";s:8:"readonly";s:1:"1";}i:2;a:4:{s:4:"type";s:9:"url-email";s:4:"span";s:12:",fixedHeight";s:4:"name";s:13:"${row}[email]";s:8:"readonly";s:1:"1";}i:3;a:4:{s:4:"type";s:9:"url-email";s:4:"span";s:12:",fixedHeight";s:4:"name";s:18:"${row}[email_home]";s:8:"readonly";s:1:"1";}}s:1:"K";a:6:{s:4:"type";s:17:"customfields-list";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:7:"no_lang";s:1:"1";s:4:"name";s:4:"$row";}}}s:4:"rows";i:1;s:4:"cols";i:1;s:4:"name";s:4:"$row";s:4:"span";s:13:",customfields";}s:1:"L";a:4:{s:4:"type";s:8:"textarea";s:7:"no_lang";s:1:"1";s:4:"name";s:12:"${row}[note]";s:8:"readonly";s:1:"1";}s:1:"M";a:2:{s:4:"type";s:5:"label";s:4:"name";s:21:"${row}[distrib_lists]";}s:1:"N";a:3:{s:4:"type";s:6:"select";s:4:"name";s:13:"${row}[owner]";s:8:"readonly";s:1:"1";}s:1:"O";a:3:{s:4:"type";s:5:"label";s:4:"span";s:10:",contactid";s:4:"name";s:10:"${row}[id]";}s:1:"P";a:4:{s:4:"type";s:4:"vbox";s:4:"size";s:6:"2,,0,0";i:1;a:2:{s:4:"type";s:4:"link";s:4:"name";s:17:"${row}[last_link]";}i:2;a:2:{s:4:"type";s:4:"link";s:4:"name";s:17:"${row}[next_link]";}}s:1:"Q";a:6:{s:4:"type";s:4:"vbox";s:4:"size";s:6:"4,,0,0";i:1;a:4:{s:4:"type";s:9:"date-time";s:4:"name";s:15:"${row}[created]";s:8:"readonly";s:1:"1";s:4:"span";s:7:",noWrap";}i:2;a:3:{s:4:"type";s:14:"select-account";s:4:"name";s:15:"${row}[creator]";s:8:"readonly";s:1:"1";}i:3;a:4:{s:4:"type";s:9:"date-time";s:4:"name";s:16:"${row}[modified]";s:8:"readonly";s:1:"1";s:4:"span";s:8:",noBreak";}i:4;a:3:{s:4:"type";s:14:"select-account";s:4:"name";s:16:"${row}[modifier]";s:8:"readonly";s:1:"1";}}s:1:"R";a:5:{s:4:"type";s:4:"vbox";s:4:"size";s:6:"2,,0,0";s:4:"span";s:8:",noPrint";i:1;a:6:{s:4:"type";s:4:"hbox";s:4:"size";s:4:"4,,0";i:1;a:4:{s:4:"type";s:5:"image";s:4:"size";s:56:"addressbook.addressbook_ui.view&contact_id=$row_cont[id]";s:5:"label";s:4:"View";s:4:"name";s:4:"view";}i:2;a:5:{s:4:"type";s:6:"button";s:4:"size";s:4:"edit";s:5:"label";s:4:"Edit";s:7:"onclick";s:193:"window.open(egw::link(\'/index.php\',\'menuaction=addressbook.addressbook_ui.edit&contact_id=$row_cont[id]\'),\'_blank\',\'dependent=yes,width=870,height=460,scrollbars=yes,status=yes\'); return false;";s:4:"name";s:19:"edit[$row_cont[id]]";}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:19:"Delete this contact";s:7:"onclick";s:38:"return confirm(\'Delete this contact\');";}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";}}i:2;a:5:{s:4:"type";s:4:"hbox";s:4:"size";s:4:"3,,0";i:1;a:5:{s:4:"type";s:6:"button";s:4:"name";s:23:"document[$row_cont[id]]";s:4:"size";s:15:"etemplate/merge";s:5:"label";s:18:"Insert in document";s:4:"span";s:8:",image16";}i:2;a:5:{s:4:"type";s:5:"image";s:4:"name";s:18:"filemanager/navbar";s:4:"size";s:91:"/index.php?menuaction=filemanager.filemanager_ui.index&path=/apps/addressbook/$row_cont[id]";s:4:"span";s:8:",image16";s:5:"label";s:11:"Filemanager";}i:3;a:6:{s:4:"type";s:6:"button";s:4:"size";s:15:"calendar/navbar";s:5:"label";s:15:"Add appointment";s:7:"onclick";s:195:"window.open(egw::link(\'/index.php\',\'menuaction=calendar.calendar_uiforms.edit&participants=c$row_cont[id]\'),\'_blank\',\'dependent=yes,width=750,height=410,scrollbars=yes,status=yes\'); return false;";s:4:"name";s:8:"calendar";s:4:"span";s:8:",image16";}}}}}s:4:"rows";i:2;s:4:"cols";i:18;s:4:"size";s:4:"100%";s:7:"options";a:1:{i:0;s:4:"100%";}}}','size' => '100%','style' => '','modified' => '1296836219',);
+$templ_data[] = array('name' => 'addressbook.index.rows','template' => '','lang' => '','group' => '0','version' => '1.9.004','data' => 'a:1:{i:0;a:5:{s:4:"type";s:4:"grid";s:4:"data";a:3:{i:0;a:9:{s:1:"C";s:9:",@no_role";s:1:"E";s:12:"60,@no_photo";s:1:"H";s:9:",@no_home";s:1:"K";s:17:",@no_customfields";s:1:"L";s:9:",@no_note";s:1:"M";s:22:",@no_distribution_list";s:1:"R";s:2:"75";s:2:"c1";s:2:"th";s:2:"c2";s:21:"$row_cont[cat_id],top";}i:1;a:18:{s:1:"A";a:2:{s:4:"size";s:1:"1";s:4:"type";s:5:"label";}s:1:"B";a:5:{s:4:"type";s:4:"grid";s:4:"data";a:7:{i:0;a:5:{s:2:"h1";s:17:",!@order=n_fileas";s:2:"h2";s:16:",!@order=n_given";s:2:"h3";s:17:",!@order=n_family";s:2:"h5";s:85:",!@order=/^(org_name|n_fileas|adr_one_postalcode|contact_modified|contact_created|#)/";s:2:"h6";s:16:",@order=n_fileas";}i:1;a:2:{s:1:"A";a:4:{s:4:"span";s:3:"all";s:5:"label";s:11:"own sorting";s:4:"name";s:8:"n_fileas";s:4:"type";s:20:"nextmatch-sortheader";}s:1:"B";a:1:{s:4:"type";s:5:"label";}}i:2;a:2:{s:1:"A";a:3:{s:5:"label";s:9:"Firstname";s:4:"name";s:7:"n_given";s:4:"type";s:20:"nextmatch-sortheader";}s:1:"B";a:3:{s:5:"label";s:4:"Name";s:4:"name";s:8:"n_family";s:4:"type";s:20:"nextmatch-sortheader";}}i:3;a:2:{s:1:"A";a:3:{s:5:"label";s:4:"Name";s:4:"name";s:8:"n_family";s:4:"type";s:20:"nextmatch-sortheader";}s:1:"B";a:3:{s:5:"label";s:9:"Firstname";s:4:"name";s:7:"n_given";s:4:"type";s:20:"nextmatch-sortheader";}}i:4;a:2:{s:1:"A";a:4:{s:5:"label";s:12:"Organisation";s:4:"span";s:3:"all";s:4:"name";s:8:"org_name";s:4:"type";s:20:"nextmatch-sortheader";}s:1:"B";a:1:{s:4:"type";s:5:"label";}}i:5;a:2:{s:1:"A";a:3:{s:5:"label";s:4:"Name";s:4:"name";s:8:"n_family";s:4:"type";s:20:"nextmatch-sortheader";}s:1:"B";a:4:{s:5:"label";s:9:"Firstname";s:4:"name";s:7:"n_given";s:4:"type";s:20:"nextmatch-sortheader";s:4:"span";s:9:",leftPad5";}}i:6;a:2:{s:1:"A";a:4:{s:4:"span";s:3:"all";s:5:"label";s:11:"own sorting";s:4:"name";s:8:"n_fileas";s:4:"type";s:20:"nextmatch-sortheader";}s:1:"B";a:1:{s:4:"type";s:5:"label";}}}s:4:"cols";i:2;s:4:"rows";i:6;s:4:"size";s:7:",,,,0,0";}s:1:"C";a:3:{s:5:"label";s:4:"role";s:4:"name";s:4:"role";s:4:"type";s:16:"nextmatch-header";}s:1:"D";a:3:{s:5:"label";s:8:"Category";s:4:"name";s:6:"cat_id";s:4:"type";s:16:"nextmatch-header";}s:1:"E";a:3:{s:5:"label";s:5:"Photo";s:4:"name";s:5:"photo";s:4:"type";s:16:"nextmatch-header";}s:1:"F";a:3:{s:5:"label";s:8:"Birthday";s:4:"name";s:4:"bday";s:4:"type";s:16:"nextmatch-header";}s:1:"G";a:5:{s:4:"size";s:6:"3,,0,0";s:4:"type";s:4:"vbox";i:1;a:3:{s:5:"label";s:16:"Business address";s:4:"name";s:8:"business";s:4:"type";s:16:"nextmatch-header";}i:2;a:4:{s:4:"name";s:19:"adr_one_countrycode";s:4:"size";s:44:"select-country,Country,0,No country selected";s:4:"type";s:22:"nextmatch-customfilter";s:4:"span";s:14:",countrySelect";}i:3;a:3:{s:5:"label";s:8:"zip code";s:4:"name";s:18:"adr_one_postalcode";s:4:"type";s:20:"nextmatch-sortheader";}}s:1:"H";a:3:{s:5:"label";s:12:"Home address";s:4:"name";s:4:"home";s:4:"type";s:16:"nextmatch-header";}s:1:"I";a:6:{s:4:"size";s:6:"4,,0,0";s:4:"type";s:4:"vbox";i:1;a:3:{s:5:"label";s:14:"Business phone";s:4:"name";s:8:"tel_work";s:4:"type";s:16:"nextmatch-header";}i:2;a:3:{s:5:"label";s:12:"Mobile phone";s:4:"name";s:8:"tel_cell";s:4:"type";s:16:"nextmatch-header";}i:3;a:3:{s:5:"label";s:10:"Home phone";s:4:"name";s:8:"tel_home";s:4:"type";s:16:"nextmatch-header";}i:4;a:2:{s:4:"type";s:5:"label";s:5:"label";s:3:"Fax";}}s:1:"J";a:5:{s:4:"size";s:6:"3,,0,0";s:4:"type";s:4:"vbox";i:1;a:3:{s:5:"label";s:3:"Url";s:4:"name";s:3:"url";s:4:"type";s:16:"nextmatch-header";}i:2;a:3:{s:5:"label";s:14:"Business email";s:4:"name";s:5:"email";s:4:"type";s:16:"nextmatch-header";}i:3;a:3:{s:5:"label";s:10:"Home email";s:4:"name";s:10:"email_home";s:4:"type";s:16:"nextmatch-header";}}s:1:"K";a:2:{s:4:"name";s:12:"customfields";s:4:"type";s:22:"nextmatch-customfields";}s:1:"L";a:3:{s:5:"label";s:4:"Note";s:4:"name";s:4:"note";s:4:"type";s:16:"nextmatch-header";}s:1:"M";a:3:{s:5:"label";s:18:"Distribution lists";s:4:"name";s:17:"distribution_list";s:4:"type";s:16:"nextmatch-header";}s:1:"N";a:3:{s:5:"label";s:11:"Addressbook";s:4:"name";s:5:"owner";s:4:"type";s:16:"nextmatch-header";}s:1:"O";a:3:{s:5:"label";s:2:"ID";s:4:"name";s:10:"contact_id";s:4:"type";s:20:"nextmatch-sortheader";}s:1:"P";a:4:{s:4:"size";s:6:"2,,0,0";s:4:"type";s:4:"vbox";i:1;a:3:{s:5:"label";s:9:"Last date";s:4:"name";s:8:"calendar";s:4:"type";s:16:"nextmatch-header";}i:2;a:3:{s:5:"label";s:9:"Next date";s:4:"name";s:8:"calendar";s:4:"type";s:16:"nextmatch-header";}}s:1:"Q";a:4:{s:4:"size";s:6:"2,,0,0";s:4:"type";s:4:"vbox";i:1;a:3:{s:5:"label";s:7:"Created";s:4:"name";s:15:"contact_created";s:4:"type";s:20:"nextmatch-sortheader";}i:2;a:3:{s:5:"label";s:13:"Last modified";s:4:"name";s:16:"contact_modified";s:4:"type";s:20:"nextmatch-sortheader";}}s:1:"R";a:6:{s:5:"align";s:6:"center";s:5:"class";s:7:"noPrint";s:4:"type";s:4:"hbox";s:4:"size";s:1:"2";i:1;a:4:{s:5:"align";s:6:"center";s:4:"type";s:16:"nextmatch-header";s:5:"label";s:7:"Actions";s:4:"name";s:14:"legacy_actions";}i:2;a:8:{s:5:"label";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:"name";s:9:"check_all";s:4:"type";s:6:"button";s:4:"size";s:5:"check";s:4:"help";s:9:"Check all";}}}i:2;a:18:{s:1:"A";a:5:{s:5:"label";s:21:"$row_cont[type_label]";s:5:"align";s:6:"center";s:7:"no_lang";s:1:"1";s:4:"type";s:5:"image";s:4:"name";s:12:"${row}[type]";}s:1:"B";a:8:{s:4:"name";s:10:"${row}[id]";s:4:"size";s:6:"5,,0,0";s:4:"type";s:4:"vbox";i:1;a:3:{s:7:"no_lang";s:1:"1";s:4:"name";s:13:"${row}[line1]";s:4:"type";s:5:"label";}i:2;a:3:{s:7:"no_lang";s:1:"1";s:4:"name";s:13:"${row}[line2]";s:4:"type";s:5:"label";}i:3;a:3:{s:7:"no_lang";s:1:"1";s:4:"name";s:16:"${row}[org_unit]";s:4:"type";s:5:"label";}i:4;a:3:{s:7:"no_lang";s:1:"1";s:4:"name";s:13:"${row}[title]";s:4:"type";s:5:"label";}i:5;a:3:{s:7:"no_lang";s:1:"1";s:4:"name";s:17:"${row}[first_org]";s:4:"type";s:5:"label";}}s:1:"C";a:2:{s:4:"name";s:12:"${row}[role]";s:4:"type";s:5:"label";}s:1:"D";a:4:{s:4:"type";s:10:"select-cat";s:8:"readonly";s:4:"true";s:4:"name";s:14:"${row}[cat_id]";s:4:"size";s:1:"1";}s:1:"E";a:3:{s:4:"type";s:5:"image";s:4:"name";s:13:"${row}[photo]";s:4:"span";s:7:",iphoto";}s:1:"F";a:4:{s:8:"readonly";s:4:"true";s:4:"name";s:12:"${row}[bday]";s:4:"size";s:5:"Y-m-d";s:4:"type";s:4:"date";}s:1:"G";a:7:{s:4:"size";s:6:"5,,0,0";s:4:"type";s:4:"vbox";i:1;a:3:{s:7:"no_lang";s:1:"1";s:4:"name";s:27:"${row}[adr_one_countryname]";s:4:"type";s:5:"label";}i:2;a:3:{s:4:"type";s:14:"select-country";s:8:"readonly";s:4:"true";s:4:"name";s:27:"${row}[adr_one_countrycode]";}i:3;a:6:{s:6:"orient";s:1:"0";s:4:"size";s:7:"3,0,0,0";s:4:"type";s:4:"hbox";i:1;a:3:{s:7:"no_lang";s:1:"1";s:4:"name";s:24:"${row}[adr_one_locality]";s:4:"type";s:5:"label";}i:2;a:4:{s:7:"no_lang";s:1:"1";s:4:"name";s:22:"${row}[adr_one_region]";s:4:"type";s:5:"label";s:4:"span";s:9:",leftPad5";}i:3;a:5:{s:7:"no_lang";s:1:"1";s:4:"name";s:26:"${row}[adr_one_postalcode]";s:4:"type";s:5:"label";s:5:"label";s:1:" ";s:4:"span";s:9:",leftPad5";}}i:4;a:3:{s:7:"no_lang";s:1:"1";s:4:"name";s:22:"${row}[adr_one_street]";s:4:"type";s:5:"label";}i:5;a:3:{s:7:"no_lang";s:1:"1";s:4:"name";s:23:"${row}[adr_one_street2]";s:4:"type";s:5:"label";}}s:1:"H";a:7:{s:4:"size";s:6:"5,,0,0";s:4:"type";s:4:"vbox";i:1;a:3:{s:7:"no_lang";s:1:"1";s:4:"name";s:27:"${row}[adr_two_countryname]";s:4:"type";s:5:"label";}i:2;a:3:{s:4:"type";s:14:"select-country";s:8:"readonly";s:4:"true";s:4:"name";s:27:"${row}[adr_two_countrycode]";}i:3;a:5:{s:4:"size";s:6:"3,,0,0";s:4:"type";s:4:"hbox";i:1;a:3:{s:7:"no_lang";s:1:"1";s:4:"name";s:24:"${row}[adr_two_locality]";s:4:"type";s:5:"label";}i:2;a:4:{s:7:"no_lang";s:1:"1";s:4:"name";s:22:"${row}[adr_two_region]";s:4:"type";s:5:"label";s:4:"span";s:9:",leftPad5";}i:3;a:5:{s:7:"no_lang";s:1:"1";s:4:"name";s:26:"${row}[adr_two_postalcode]";s:4:"type";s:5:"label";s:5:"label";s:1:" ";s:4:"span";s:9:",leftPad5";}}i:4;a:3:{s:7:"no_lang";s:1:"1";s:4:"name";s:22:"${row}[adr_two_street]";s:4:"type";s:5:"label";}i:5;a:3:{s:7:"no_lang";s:1:"1";s:4:"name";s:23:"${row}[adr_two_street2]";s:4:"type";s:5:"label";}}s:1:"I";a:7:{s:4:"size";s:6:"5,,0,0";s:4:"type";s:4:"vbox";i:1;a:4:{s:8:"readonly";s:4:"true";s:4:"name";s:16:"${row}[tel_work]";s:4:"type";s:9:"url-phone";s:4:"span";s:11:",telNumbers";}i:2;a:4:{s:8:"readonly";s:4:"true";s:4:"name";s:16:"${row}[tel_cell]";s:4:"type";s:9:"url-phone";s:4:"span";s:11:",telNumbers";}i:3;a:4:{s:8:"readonly";s:4:"true";s:4:"name";s:16:"${row}[tel_home]";s:4:"type";s:9:"url-phone";s:4:"span";s:11:",telNumbers";}i:4;a:3:{s:8:"readonly";s:4:"true";s:4:"name";s:15:"${row}[tel_fax]";s:4:"type";s:9:"url-phone";}i:5;a:4:{s:7:"no_lang";s:1:"1";s:4:"name";s:20:"${row}[tel_prefered]";s:4:"size";s:57:",$row_cont[tel_prefered_link],,,calling,$cont[call_popup]";s:4:"type";s:5:"label";}}s:1:"J";a:5:{s:4:"size";s:6:"3,,0,0";s:4:"type";s:4:"vbox";i:1;a:4:{s:8:"readonly";s:4:"true";s:4:"name";s:11:"${row}[url]";s:4:"type";s:3:"url";s:4:"span";s:12:",fixedHeight";}i:2;a:4:{s:8:"readonly";s:4:"true";s:4:"name";s:13:"${row}[email]";s:4:"type";s:9:"url-email";s:4:"span";s:12:",fixedHeight";}i:3;a:4:{s:8:"readonly";s:4:"true";s:4:"name";s:18:"${row}[email_home]";s:4:"type";s:9:"url-email";s:4:"span";s:12:",fixedHeight";}}s:1:"K";a:5:{s:4:"rows";s:1:"1";s:4:"cols";s:1:"1";s:4:"name";s:4:"$row";s:4:"type";s:17:"customfields-list";s:4:"span";s:13:",customfields";}s:1:"L";a:4:{s:7:"no_lang";s:1:"1";s:8:"readonly";s:4:"true";s:4:"name";s:12:"${row}[note]";s:4:"type";s:8:"textarea";}s:1:"M";a:2:{s:4:"name";s:21:"${row}[distrib_lists]";s:4:"type";s:5:"label";}s:1:"N";a:3:{s:8:"readonly";s:4:"true";s:4:"name";s:13:"${row}[owner]";s:4:"type";s:6:"select";}s:1:"O";a:3:{s:4:"name";s:10:"${row}[id]";s:4:"type";s:5:"label";s:4:"span";s:10:",contactid";}s:1:"P";a:4:{s:4:"size";s:6:"2,,0,0";s:4:"type";s:4:"vbox";i:1;a:2:{s:4:"name";s:17:"${row}[last_link]";s:4:"type";s:4:"link";}i:2;a:2:{s:4:"name";s:17:"${row}[next_link]";s:4:"type";s:4:"link";}}s:1:"Q";a:6:{s:4:"size";s:6:"4,,0,0";s:4:"type";s:4:"vbox";i:1;a:4:{s:8:"readonly";s:4:"true";s:4:"name";s:15:"${row}[created]";s:4:"type";s:9:"date-time";s:4:"span";s:7:",noWrap";}i:2;a:3:{s:4:"type";s:14:"select-account";s:8:"readonly";s:4:"true";s:4:"name";s:15:"${row}[creator]";}i:3;a:4:{s:8:"readonly";s:4:"true";s:4:"name";s:16:"${row}[modified]";s:4:"type";s:9:"date-time";s:4:"span";s:8:",noBreak";}i:4;a:3:{s:4:"type";s:14:"select-account";s:8:"readonly";s:4:"true";s:4:"name";s:16:"${row}[modifier]";}}s:1:"R";a:5:{s:5:"class";s:7:"noPrint";s:4:"size";s:6:"2,,0,0";s:4:"type";s:4:"vbox";i:1;a:6:{s:4:"size";s:1:"4";s:4:"type";s:4:"hbox";i:1;a:4:{s:5:"label";s:4:"View";s:4:"size";s:56:"addressbook.addressbook_ui.view&contact_id=$row_cont[id]";s:4:"type";s:5:"image";s:4:"name";s:4:"view";}i:2;a:5:{s:5:"label";s:4:"Edit";s:7:"onclick";s:193:"window.open(egw::link(\'/index.php\',\'menuaction=addressbook.addressbook_ui.edit&contact_id=$row_cont[id]\'),\'_blank\',\'dependent=yes,width=870,height=460,scrollbars=yes,status=yes\'); return false;";s:4:"name";s:19:"edit[$row_cont[id]]";s:4:"type";s:6:"button";s:4:"size";s:4:"edit";}i:3;a:6:{s:5:"label";s:6:"Delete";s:7:"onclick";s:38:"return confirm(\'Delete this contact\');";s:4:"name";s:21:"delete[$row_cont[id]]";s:4:"type";s:6:"button";s:4:"size";s:6:"delete";s:4:"help";s:19:"Delete this contact";}i:4;a:5:{s:5:"align";s:5:"right";s:4:"name";s:9:"checked[]";s:4:"size";s:13:"$row_cont[id]";s:4:"type";s:8:"checkbox";s:4:"help";s:45:"Select multiple contacts for a further action";}}i:2;a:5:{s:4:"size";s:1:"3";s:4:"type";s:4:"hbox";i:1;a:5:{s:5:"label";s:18:"Insert in document";s:4:"name";s:23:"document[$row_cont[id]]";s:4:"type";s:6:"button";s:4:"size";s:15:"etemplate/merge";s:4:"span";s:8:",image16";}i:2;a:5:{s:5:"label";s:11:"Filemanager";s:4:"size";s:91:"/index.php?menuaction=filemanager.filemanager_ui.index&path=/apps/addressbook/$row_cont[id]";s:4:"type";s:5:"image";s:4:"name";s:18:"filemanager/navbar";s:4:"span";s:8:",image16";}i:3;a:6:{s:5:"label";s:15:"Add appointment";s:7:"onclick";s:195:"window.open(egw::link(\'/index.php\',\'menuaction=calendar.calendar_uiforms.edit&participants=c$row_cont[id]\'),\'_blank\',\'dependent=yes,width=750,height=410,scrollbars=yes,status=yes\'); return false;";s:4:"name";s:8:"calendar";s:4:"type";s:6:"button";s:4:"size";s:15:"calendar/navbar";s:4:"span";s:8:",image16";}}}}}s:4:"cols";i:18;s:4:"rows";i:2;s:4:"size";s:4:"100%";}}','size' => '100%','style' => '','modified' => '1303037366',);
$templ_data[] = array('name' => 'addressbook.search','template' => '','lang' => '','group' => '0','version' => '1.8.001','data' => 'a:1:{i:0;a:4:{s:4:"type";s:4:"grid";s:4:"data";a:4:{i:0;a:0:{}i:1;a:2:{s:1:"A";a:2:{s:4:"type";s:8:"template";s:4:"name";s:16:"addressbook.edit";}s:1:"B";a:1:{s:4:"type";s:5:"label";}}i:2;a:2:{s:1:"A";a:5:{s:4:"type";s:4:"hbox";s:4:"size";s:1:"2";i:1;a:4:{s:4:"type";s:6:"select";s:5:"label";s:8:"Operator";s:4:"name";s:8:"operator";s:7:"no_lang";s:1:"1";}i:2;a:3:{s:4:"type";s:6:"select";s:4:"name";s:11:"meth_select";s:7:"no_lang";s:1:"1";}s:4:"span";s:3:"all";}s:1:"B";a:1:{s:4:"type";s:5:"label";}}i:3;a:2:{s:1:"A";a:5:{s:4:"type";s:4:"hbox";s:4:"size";s:1:"2";s:4:"span";s:3:"all";i:1;a:4:{s:4:"type";s:6:"button";s:5:"label";s:6:"Search";s:4:"name";s:14:"button[search]";s:7:"onclick";s:37:"xajax_eT_wrapper(this); return false;";}i:2;a:4:{s:4:"type";s:6:"button";s:5:"label";s:6:"Cancel";s:4:"name";s:14:"button[cancel]";s:7:"onclick";s:37:"xajax_eT_wrapper(this); return false;";}}s:1:"B";a:1:{s:4:"type";s:5:"label";}}}s:4:"rows";i:3;s:4:"cols";i:2;}}','size' => '','style' => '','modified' => '1161707411',);
diff --git a/addressbook/templates/default/index.xet b/addressbook/templates/default/index.xet
index b5baec8b81..594725c485 100644
--- a/addressbook/templates/default/index.xet
+++ b/addressbook/templates/default/index.xet
@@ -13,7 +13,7 @@
.rightPadAdd { width: 30px; }
-
+
@@ -48,19 +48,19 @@
-
+
-
+
-
+
-
-
+
+
@@ -70,23 +70,23 @@
-
+
-
+
-
+
-
+
-
+
-
+
@@ -98,114 +98,116 @@
-
-
+
+
-
-
+
+
-
-
-
-
-
-
-
+
+
+
+
+
+
+
-
+
-
+
-
+
-
+
-
+
-
-
+
+
-
+
-
+
-
+
-
+
-
+
-
-
-
-
-
+
+
+
+
+
-
-
-
+
+
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
-
-
-
-
-
+
+
+
+
+
+
-
-
-
-
+
+
+
+
-
+
+
-
+
+
@@ -213,16 +215,14 @@
-
+
-
-
-
-
-
-
-
-
+
+
+
+
+
+