@@ -26,26 +26,26 @@ discard block |
||
| 26 | 26 | |
| 27 | 27 | // Custom fields |
| 28 | 28 | $custom = Api\Storage\Customfields::get('resources', true); |
| 29 | - foreach($custom as $name => $data) { |
|
| 29 | + foreach ($custom as $name => $data) { |
|
| 30 | 30 | $this->export_fields['#'.$name] = $data['label']; |
| 31 | 31 | } |
| 32 | 32 | } |
| 33 | 33 | |
| 34 | 34 | public function wizard_step50(&$content, &$sel_options, &$readonlys, &$preserv) { |
| 35 | - if($this->debug || true) error_log(get_class($this) . '::wizard_step50->$content '.print_r($content,true)); |
|
| 35 | + if ($this->debug || true) error_log(get_class($this).'::wizard_step50->$content '.print_r($content, true)); |
|
| 36 | 36 | // return |
| 37 | 37 | if ($content['step'] == 'wizard_step50') |
| 38 | 38 | { |
| 39 | 39 | switch (array_search('pressed', $content['button'])) |
| 40 | 40 | { |
| 41 | 41 | case 'next': |
| 42 | - return $GLOBALS['egw']->importexport_definitions_ui->get_step($content['step'],1); |
|
| 42 | + return $GLOBALS['egw']->importexport_definitions_ui->get_step($content['step'], 1); |
|
| 43 | 43 | case 'previous' : |
| 44 | - return $GLOBALS['egw']->importexport_definitions_ui->get_step($content['step'],-1); |
|
| 44 | + return $GLOBALS['egw']->importexport_definitions_ui->get_step($content['step'], -1); |
|
| 45 | 45 | case 'finish': |
| 46 | 46 | return 'wizard_finish'; |
| 47 | 47 | default : |
| 48 | - return $this->wizard_step50($content,$sel_options,$readonlys,$preserv); |
|
| 48 | + return $this->wizard_step50($content, $sel_options, $readonlys, $preserv); |
|
| 49 | 49 | } |
| 50 | 50 | } |
| 51 | 51 | // init step |
@@ -57,7 +57,7 @@ discard block |
||
| 57 | 57 | unset ($preserv['button']); |
| 58 | 58 | $fields = array('pm_used_time', 'pm_planned_time', 'pm_replanned_time'); |
| 59 | 59 | $sel_options = array_fill_keys($fields, array('h' => lang('hours'), 'd' => lang('days'))); |
| 60 | - foreach($fields as $field) { |
|
| 60 | + foreach ($fields as $field) { |
|
| 61 | 61 | $content[$field] = $content[$field] ? $content[$field] : $content['plugin_options'][$field]; |
| 62 | 62 | } |
| 63 | 63 | } |
@@ -14,7 +14,8 @@ discard block |
||
| 14 | 14 | |
| 15 | 15 | class resources_wizard_export_csv extends importexport_wizard_basic_export_csv |
| 16 | 16 | { |
| 17 | - public function __construct() { |
|
| 17 | + public function __construct() |
|
| 18 | + { |
|
| 18 | 19 | parent::__construct(); |
| 19 | 20 | |
| 20 | 21 | // Field mapping |
@@ -26,13 +27,18 @@ discard block |
||
| 26 | 27 | |
| 27 | 28 | // Custom fields |
| 28 | 29 | $custom = Api\Storage\Customfields::get('resources', true); |
| 29 | - foreach($custom as $name => $data) { |
|
| 30 | + foreach($custom as $name => $data) |
|
| 31 | + { |
|
| 30 | 32 | $this->export_fields['#'.$name] = $data['label']; |
| 31 | 33 | } |
| 32 | 34 | } |
| 33 | 35 | |
| 34 | - public function wizard_step50(&$content, &$sel_options, &$readonlys, &$preserv) { |
|
| 35 | - if($this->debug || true) error_log(get_class($this) . '::wizard_step50->$content '.print_r($content,true)); |
|
| 36 | + public function wizard_step50(&$content, &$sel_options, &$readonlys, &$preserv) |
|
| 37 | + { |
|
| 38 | + if($this->debug || true) |
|
| 39 | + { |
|
| 40 | + error_log(get_class($this) . '::wizard_step50->$content '.print_r($content,true)); |
|
| 41 | + } |
|
| 36 | 42 | // return |
| 37 | 43 | if ($content['step'] == 'wizard_step50') |
| 38 | 44 | { |
@@ -57,7 +63,8 @@ discard block |
||
| 57 | 63 | unset ($preserv['button']); |
| 58 | 64 | $fields = array('pm_used_time', 'pm_planned_time', 'pm_replanned_time'); |
| 59 | 65 | $sel_options = array_fill_keys($fields, array('h' => lang('hours'), 'd' => lang('days'))); |
| 60 | - foreach($fields as $field) { |
|
| 66 | + foreach($fields as $field) |
|
| 67 | + { |
|
| 61 | 68 | $content[$field] = $content[$field] ? $content[$field] : $content['plugin_options'][$field]; |
| 62 | 69 | } |
| 63 | 70 | } |
@@ -26,20 +26,20 @@ |
||
| 26 | 26 | $this->id_field = 'res_id'; |
| 27 | 27 | |
| 28 | 28 | $this->field2history = array( |
| 29 | - 'res_id' => 'res_id', |
|
| 30 | - 'name' => 'name', |
|
| 31 | - 'short_description' => 'short_description', |
|
| 32 | - 'cat_id' => 'cat_id', |
|
| 33 | - 'quantity' => 'quantity', |
|
| 34 | - 'useable' => 'useable', |
|
| 35 | - 'location' => 'location', |
|
| 36 | - 'storage_info' => 'storage_info', |
|
| 37 | - 'bookable' => 'bookable', |
|
| 38 | - 'buyable' => 'buyable', |
|
| 39 | - 'prize' => 'prize', |
|
| 40 | - 'long_description' => 'long_description', |
|
| 41 | - 'inventory_number' => 'inventory_number', |
|
| 42 | - 'accessory_of' => 'accessory_of' |
|
| 29 | + 'res_id' => 'res_id', |
|
| 30 | + 'name' => 'name', |
|
| 31 | + 'short_description' => 'short_description', |
|
| 32 | + 'cat_id' => 'cat_id', |
|
| 33 | + 'quantity' => 'quantity', |
|
| 34 | + 'useable' => 'useable', |
|
| 35 | + 'location' => 'location', |
|
| 36 | + 'storage_info' => 'storage_info', |
|
| 37 | + 'bookable' => 'bookable', |
|
| 38 | + 'buyable' => 'buyable', |
|
| 39 | + 'prize' => 'prize', |
|
| 40 | + 'long_description' => 'long_description', |
|
| 41 | + 'inventory_number' => 'inventory_number', |
|
| 42 | + 'accessory_of' => 'accessory_of' |
|
| 43 | 43 | ); |
| 44 | 44 | parent::__construct($this->appname); |
| 45 | 45 | } |
@@ -21,7 +21,8 @@ |
||
| 21 | 21 | { |
| 22 | 22 | |
| 23 | 23 | |
| 24 | - public function __construct() { |
|
| 24 | + public function __construct() |
|
| 25 | + { |
|
| 25 | 26 | $this->appname = 'resources'; |
| 26 | 27 | $this->id_field = 'res_id'; |
| 27 | 28 | |
@@ -34,9 +34,9 @@ discard block |
||
| 34 | 34 | * |
| 35 | 35 | * @param string $_identifier |
| 36 | 36 | */ |
| 37 | - public function __construct( $_identifier='' ) { |
|
| 37 | + public function __construct($_identifier = '') { |
|
| 38 | 38 | $this->identifier = $_identifier; |
| 39 | - if($this->identifier) { |
|
| 39 | + if ($this->identifier) { |
|
| 40 | 40 | $this->record = ExecMethod('resources.resources_bo.read', $this->identifier); |
| 41 | 41 | } |
| 42 | 42 | } |
@@ -90,7 +90,7 @@ discard block |
||
| 90 | 90 | * @todo add some checks |
| 91 | 91 | * @return void |
| 92 | 92 | */ |
| 93 | - public function set_record(array $_record){ |
|
| 93 | + public function set_record(array $_record) { |
|
| 94 | 94 | $this->record = $_record; |
| 95 | 95 | } |
| 96 | 96 | |
@@ -111,7 +111,7 @@ discard block |
||
| 111 | 111 | */ |
| 112 | 112 | public function get_icon() { |
| 113 | 113 | $bo = new resources_bo(); |
| 114 | - if(!$icon = $bo->get_picture($this->identifier,$this->picture_src)) |
|
| 114 | + if (!$icon = $bo->get_picture($this->identifier, $this->picture_src)) |
|
| 115 | 115 | { |
| 116 | 116 | $icon = 'resources/navbar'; |
| 117 | 117 | } |
@@ -123,7 +123,7 @@ discard block |
||
| 123 | 123 | * |
| 124 | 124 | * @return string identifier |
| 125 | 125 | */ |
| 126 | - public function save ( $_dst_identifier ) { |
|
| 126 | + public function save($_dst_identifier) { |
|
| 127 | 127 | |
| 128 | 128 | } |
| 129 | 129 | |
@@ -133,7 +133,7 @@ discard block |
||
| 133 | 133 | * @param string $_dst_identifier |
| 134 | 134 | * @return string dst_identifier |
| 135 | 135 | */ |
| 136 | - public function copy ( $_dst_identifier ) { |
|
| 136 | + public function copy($_dst_identifier) { |
|
| 137 | 137 | |
| 138 | 138 | } |
| 139 | 139 | |
@@ -144,7 +144,7 @@ discard block |
||
| 144 | 144 | * @param string $_dst_identifier |
| 145 | 145 | * @return string dst_identifier |
| 146 | 146 | */ |
| 147 | - public function move ( $_dst_identifier ) { |
|
| 147 | + public function move($_dst_identifier) { |
|
| 148 | 148 | |
| 149 | 149 | } |
| 150 | 150 | |
@@ -152,7 +152,7 @@ discard block |
||
| 152 | 152 | * delets current record from backend |
| 153 | 153 | * |
| 154 | 154 | */ |
| 155 | - public function delete () { |
|
| 155 | + public function delete() { |
|
| 156 | 156 | |
| 157 | 157 | } |
| 158 | 158 | |
@@ -34,9 +34,11 @@ discard block |
||
| 34 | 34 | * |
| 35 | 35 | * @param string $_identifier |
| 36 | 36 | */ |
| 37 | - public function __construct( $_identifier='' ) { |
|
| 37 | + public function __construct( $_identifier='' ) |
|
| 38 | + { |
|
| 38 | 39 | $this->identifier = $_identifier; |
| 39 | - if($this->identifier) { |
|
| 40 | + if($this->identifier) |
|
| 41 | + { |
|
| 40 | 42 | $this->record = ExecMethod('resources.resources_bo.read', $this->identifier); |
| 41 | 43 | } |
| 42 | 44 | } |
@@ -46,7 +48,8 @@ discard block |
||
| 46 | 48 | * |
| 47 | 49 | * @param string $_attribute_name |
| 48 | 50 | */ |
| 49 | - public function __get($_attribute_name) { |
|
| 51 | + public function __get($_attribute_name) |
|
| 52 | + { |
|
| 50 | 53 | return $this->record[$_attribute_name]; |
| 51 | 54 | } |
| 52 | 55 | |
@@ -56,7 +59,8 @@ discard block |
||
| 56 | 59 | * @param string $_attribute_name |
| 57 | 60 | * @param data $data |
| 58 | 61 | */ |
| 59 | - public function __set($_attribute_name, $data) { |
|
| 62 | + public function __set($_attribute_name, $data) |
|
| 63 | + { |
|
| 60 | 64 | $this->record[$_attribute_name] = $data; |
| 61 | 65 | } |
| 62 | 66 | |
@@ -68,7 +72,8 @@ discard block |
||
| 68 | 72 | * |
| 69 | 73 | * @return array complete record as associative array |
| 70 | 74 | */ |
| 71 | - public function get_record_array() { |
|
| 75 | + public function get_record_array() |
|
| 76 | + { |
|
| 72 | 77 | return $this->record; |
| 73 | 78 | } |
| 74 | 79 | |
@@ -77,8 +82,10 @@ discard block |
||
| 77 | 82 | * |
| 78 | 83 | *@return string tiltle |
| 79 | 84 | */ |
| 80 | - public function get_title() { |
|
| 81 | - if (empty($this->record)) { |
|
| 85 | + public function get_title() |
|
| 86 | + { |
|
| 87 | + if (empty($this->record)) |
|
| 88 | + { |
|
| 82 | 89 | $this->get_record(); |
| 83 | 90 | } |
| 84 | 91 | return $this->record['name']; |
@@ -90,7 +97,8 @@ discard block |
||
| 90 | 97 | * @todo add some checks |
| 91 | 98 | * @return void |
| 92 | 99 | */ |
| 93 | - public function set_record(array $_record){ |
|
| 100 | + public function set_record(array $_record) |
|
| 101 | + { |
|
| 94 | 102 | $this->record = $_record; |
| 95 | 103 | } |
| 96 | 104 | |
@@ -99,7 +107,8 @@ discard block |
||
| 99 | 107 | * |
| 100 | 108 | * @return string identifier of current record |
| 101 | 109 | */ |
| 102 | - public function get_identifier() { |
|
| 110 | + public function get_identifier() |
|
| 111 | + { |
|
| 103 | 112 | return $this->identifier; |
| 104 | 113 | } |
| 105 | 114 | |
@@ -109,7 +118,8 @@ discard block |
||
| 109 | 118 | * |
| 110 | 119 | * @return string Full URL of an icon, or appname/icon_name |
| 111 | 120 | */ |
| 112 | - public function get_icon() { |
|
| 121 | + public function get_icon() |
|
| 122 | + { |
|
| 113 | 123 | $bo = new resources_bo(); |
| 114 | 124 | if(!$icon = $bo->get_picture($this->identifier,$this->picture_src)) |
| 115 | 125 | { |
@@ -123,7 +133,8 @@ discard block |
||
| 123 | 133 | * |
| 124 | 134 | * @return string identifier |
| 125 | 135 | */ |
| 126 | - public function save ( $_dst_identifier ) { |
|
| 136 | + public function save ( $_dst_identifier ) |
|
| 137 | + { |
|
| 127 | 138 | |
| 128 | 139 | } |
| 129 | 140 | |
@@ -133,7 +144,8 @@ discard block |
||
| 133 | 144 | * @param string $_dst_identifier |
| 134 | 145 | * @return string dst_identifier |
| 135 | 146 | */ |
| 136 | - public function copy ( $_dst_identifier ) { |
|
| 147 | + public function copy ( $_dst_identifier ) |
|
| 148 | + { |
|
| 137 | 149 | |
| 138 | 150 | } |
| 139 | 151 | |
@@ -144,7 +156,8 @@ discard block |
||
| 144 | 156 | * @param string $_dst_identifier |
| 145 | 157 | * @return string dst_identifier |
| 146 | 158 | */ |
| 147 | - public function move ( $_dst_identifier ) { |
|
| 159 | + public function move ( $_dst_identifier ) |
|
| 160 | + { |
|
| 148 | 161 | |
| 149 | 162 | } |
| 150 | 163 | |
@@ -152,7 +165,8 @@ discard block |
||
| 152 | 165 | * delets current record from backend |
| 153 | 166 | * |
| 154 | 167 | */ |
| 155 | - public function delete () { |
|
| 168 | + public function delete () |
|
| 169 | + { |
|
| 156 | 170 | |
| 157 | 171 | } |
| 158 | 172 | |
@@ -160,7 +174,8 @@ discard block |
||
| 160 | 174 | * destructor |
| 161 | 175 | * |
| 162 | 176 | */ |
| 163 | - public function __destruct() { |
|
| 177 | + public function __destruct() |
|
| 178 | + { |
|
| 164 | 179 | } |
| 165 | 180 | |
| 166 | 181 | } // end of egw_addressbook_record |
@@ -22,8 +22,8 @@ |
||
| 22 | 22 | private $record = array(); |
| 23 | 23 | |
| 24 | 24 | static $types = array( |
| 25 | - 'date-time' => array(), |
|
| 26 | - 'select-cat' => array('cat_id'), |
|
| 25 | + 'date-time' => array(), |
|
| 26 | + 'select-cat' => array('cat_id'), |
|
| 27 | 27 | 'select-bool' => array('bookable'), |
| 28 | 28 | // Links is field name => app name |
| 29 | 29 | 'links' => array('accessory_of' => 'resources') |
@@ -30,7 +30,7 @@ |
||
| 30 | 30 | 'email' => '[email protected]' |
| 31 | 31 | ); |
| 32 | 32 | |
| 33 | -$setup_info['addressbook']['tables'] = array(); // addressbook tables are in the API! |
|
| 33 | +$setup_info['addressbook']['tables'] = array(); // addressbook tables are in the API! |
|
| 34 | 34 | |
| 35 | 35 | /* The hooks this app includes, needed for hooks registration */ |
| 36 | 36 | $setup_info['addressbook']['hooks']['admin'] = 'addressbook_hooks::all_hooks'; |
@@ -47,11 +47,11 @@ |
||
| 47 | 47 | /* Dependencies for this app to work */ |
| 48 | 48 | $setup_info['admin']['depends'][] = array( |
| 49 | 49 | 'appname' => 'phpgwapi', |
| 50 | - 'versions' => Array('14.1') |
|
| 50 | + 'versions' => array('14.1') |
|
| 51 | 51 | ); |
| 52 | 52 | $setup_info['admin']['depends'][] = array( |
| 53 | 53 | 'appname' => 'etemplate', |
| 54 | - 'versions' => Array('14.1') |
|
| 54 | + 'versions' => array('14.1') |
|
| 55 | 55 | ); |
| 56 | 56 | |
| 57 | 57 | |
@@ -10,116 +10,116 @@ |
||
| 10 | 10 | * @version $Id$ |
| 11 | 11 | */ |
| 12 | 12 | |
| 13 | -$templ_version=1; |
|
| 13 | +$templ_version = 1; |
|
| 14 | 14 | |
| 15 | -$templ_data[] = array('name' => 'addressbook.admin.types','template' => '','lang' => '','group' => '0','version' => '','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:3:{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:3:{s:4:"type";s:5:"label";s:5:"label";s:17:"Options for type ";s:4:"span";s:7:",header";}i:2;a:4:{s:4:"type";s:5:"label";s:4:"name";s:4:"type";s:4:"size";s:1:"b";s:7:"no_lang";s:1:"1";}i:3;a:1:{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:3:{s:1:"A";a:2:{s:4:"type";s:5:"label";s:5:"label";s:4:"Icon";}s:1:"B";a:3:{s:4:"type";s:4:"text";s:4:"name";s:4:"icon";s:4:"size";s:2:"40";}s:1:"C";a:2:{s:4:"type";s:5:"label";s:5:"label";s:36:"Choose an icon for this contact type";}}i:3;a:3:{s:1:"A";a:2:{s:4:"type";s:5:"label";s:5:"label";s:8:"Template";}s:1:"B";a:3:{s:4:"type";s:4:"text";s:4:"name";s:8:"template";s:4:"size";s:2:"40";}s:1:"C";a:2:{s:4:"type";s:5:"label";s:5:"label";s:41:"Chosse an eTemplate for this contact type";}}}s:4:"rows";i:3;s:4:"cols";i:3;}}','size' => '','style' => '.header{ |
|
| 15 | +$templ_data[] = array('name' => 'addressbook.admin.types', 'template' => '', 'lang' => '', 'group' => '0', 'version' => '', '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:3:{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:3:{s:4:"type";s:5:"label";s:5:"label";s:17:"Options for type ";s:4:"span";s:7:",header";}i:2;a:4:{s:4:"type";s:5:"label";s:4:"name";s:4:"type";s:4:"size";s:1:"b";s:7:"no_lang";s:1:"1";}i:3;a:1:{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:3:{s:1:"A";a:2:{s:4:"type";s:5:"label";s:5:"label";s:4:"Icon";}s:1:"B";a:3:{s:4:"type";s:4:"text";s:4:"name";s:4:"icon";s:4:"size";s:2:"40";}s:1:"C";a:2:{s:4:"type";s:5:"label";s:5:"label";s:36:"Choose an icon for this contact type";}}i:3;a:3:{s:1:"A";a:2:{s:4:"type";s:5:"label";s:5:"label";s:8:"Template";}s:1:"B";a:3:{s:4:"type";s:4:"text";s:4:"name";s:8:"template";s:4:"size";s:2:"40";}s:1:"C";a:2:{s:4:"type";s:5:"label";s:5:"label";s:41:"Chosse an eTemplate for this contact type";}}}s:4:"rows";i:3;s:4:"cols";i:3;}}', 'size' => '', 'style' => '.header{ |
|
| 16 | 16 | font-weight: bold; |
| 17 | 17 | }','modified' => '1139821192',); |
| 18 | 18 | |
| 19 | -$templ_data[] = array('name' => 'addressbook.contactform','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:24:{i:0;a:26:{s:3:"h14";s:39:",!@show[adr_one_locality]=postcode_city";s:3:"h15";s:45:",!@show[adr_one_locality]=city_state_postcode";s:2:"c3";s:4:",top";s:3:"c14";s:4:",top";s:3:"c15";s:4:",top";s:2:"h2";s:17:",!@show[org_unit]";s:2:"h1";s:17:",!@show[org_name]";s:2:"h3";s:13:",!@show[n_fn]";s:2:"h5";s:14:",!@show[email]";s:2:"h6";s:17:",!@show[tel_work]";s:2:"h7";s:17:",!@show[tel_cell]";s:2:"h8";s:16:",!@show[tel_fax]";s:2:"h9";s:17:",!@show[tel_home]";s:3:"h10";s:12:",!@show[url]";s:3:"h12";s:23:",!@show[adr_one_street]";s:3:"h13";s:24:",!@show[adr_one_street2]";s:3:"h17";s:16:",!@show[custom1]";s:3:"h21";s:13:",!@show[sep5]";s:3:"h19";s:13:",!@show[sep4]";s:3:"h20";s:13:",!@show[note]";s:3:"h16";s:13:",!@show[sep3]";s:3:"h11";s:13:",!@show[sep2]";s:2:"h4";s:13:",!@show[sep1]";s:3:"h22";s:16:",!@show[captcha]";s:3:"c20";s:4:",top";s:3:"h18";s:16:",!@show[custom2]";}i:1;a:7:{s:1:"A";a:2:{s:4:"type";s:5:"image";s:4:"name";s:4:"home";}s:1:"B";a:2:{s:4:"type";s:5:"label";s:5:"label";s:7:"Company";}s:1:"C";a:4:{s:4:"type";s:4:"text";s:4:"size";s:5:"64,64";s:4:"name";s:8:"org_name";s:4:"span";s:1:"4";}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:1:"G";a:1:{s:4:"type";s:5:"label";}}i:2;a:7:{s:1:"A";a:1:{s:4:"type";s:5:"label";}s:1:"B";a:2:{s:4:"type";s:5:"label";s:5:"label";s:10:"Department";}s:1:"C";a:4:{s:4:"type";s:4:"text";s:4:"size";s:5:"64,64";s:4:"span";s:1:"4";s:4:"name";s:8:"org_unit";}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:1:"G";a:1:{s:4:"type";s:5:"label";}}i:3;a:7:{s:1:"A";a:2:{s:4:"type";s:5:"image";s:4:"name";s:8:"accounts";}s:1:"B";a:2:{s:4:"type";s:5:"label";s:5:"label";s:7:"Contact";}s:1:"C";a:4:{s:4:"type";s:4:"text";s:4:"size";s:5:"10,64";s:4:"name";s:8:"n_prefix";s:4:"blur";s:6:"Prefix";}s:1:"D";a:4:{s:4:"type";s:4:"text";s:4:"name";s:7:"n_given";s:4:"size";s:5:"20,64";s:5:"align";s:6:"center";}s:1:"E";a:6:{s:4:"type";s:4:"text";s:4:"name";s:8:"n_family";s:5:"align";s:5:"right";s:4:"size";s:5:"22,64";s:4:"span";s:1:"2";s:6:"needed";s:1:"1";}s:1:"F";a:1:{s:4:"type";s:5:"label";}s:1:"G";a:3:{s:4:"type";s:5:"label";s:4:"span";s:10:",redItalic";s:5:"label";s:1:"*";}}i:4;a:7:{s:1:"A";a:2:{s:4:"type";s:5:"hrule";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";}s:1:"G";a:1:{s:4:"type";s:5:"label";}}i:5;a:7:{s:1:"A";a:2:{s:4:"type";s:5:"image";s:4:"name";s:9:"email.png";}s:1:"B";a:2:{s:4:"type";s:5:"label";s:5:"label";s:5:"Email";}s:1:"C";a:5:{s:4:"type";s:4:"text";s:4:"size";s:49:"64,64,/^[a-z0-9._-]+@[a-z0-9-]+(\\.[a-z0-9-]+)+$/i";s:4:"span";s:1:"4";s:4:"name";s:5:"email";s:6:"needed";s:1:"1";}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:1:"G";a:3:{s:4:"type";s:5:"label";s:4:"span";s:10:",redItalic";s:5:"label";s:1:"*";}}i:6;a:7:{s:1:"A";a:2:{s:4:"type";s:5:"image";s:4:"name";s:5:"phone";}s:1:"B";a:2:{s:4:"type";s:5:"label";s:5:"label";s:14:"Business phone";}s:1:"C";a:4:{s:4:"type";s:4:"text";s:4:"size";s:5:"64,64";s:4:"span";s:1:"4";s:4:"name";s:8:"tel_work";}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:1:"G";a:1:{s:4:"type";s:5:"label";}}i:7;a:7:{s:1:"A";a:1:{s:4:"type";s:5:"label";}s:1:"B";a:2:{s:4:"type";s:5:"label";s:5:"label";s:12:"Mobile phone";}s:1:"C";a:4:{s:4:"type";s:4:"text";s:4:"size";s:5:"64,64";s:4:"span";s:1:"4";s:4:"name";s:8:"tel_cell";}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:1:"G";a:1:{s:4:"type";s:5:"label";}}i:8;a:7:{s:1:"A";a:1:{s:4:"type";s:5:"label";}s:1:"B";a:2:{s:4:"type";s:5:"label";s:5:"label";s:3:"Fax";}s:1:"C";a:4:{s:4:"type";s:4:"text";s:4:"size";s:5:"64,64";s:4:"span";s:1:"4";s:4:"name";s:7:"tel_fax";}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:1:"G";a:1:{s:4:"type";s:5:"label";}}i:9;a:7:{s:1:"A";a:1:{s:4:"type";s:5:"label";}s:1:"B";a:2:{s:4:"type";s:5:"label";s:5:"label";s:10:"Home phone";}s:1:"C";a:4:{s:4:"type";s:4:"text";s:4:"size";s:5:"64,64";s:4:"span";s:1:"4";s:4:"name";s:8:"tel_home";}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:1:"G";a:1:{s:4:"type";s:5:"label";}}i:10;a:7:{s:1:"A";a:2:{s:4:"type";s:5:"image";s:4:"name";s:8:"internet";}s:1:"B";a:2:{s:4:"type";s:5:"label";s:5:"label";s:8:"Internet";}s:1:"C";a:4:{s:4:"type";s:4:"text";s:4:"size";s:5:"64,64";s:4:"span";s:1:"4";s:4:"name";s:3:"url";}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:1:"G";a:1:{s:4:"type";s:5:"label";}}i:11;a:7:{s:1:"A";a:2:{s:4:"type";s:5:"hrule";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";}s:1:"G";a:1:{s:4:"type";s:5:"label";}}i:12;a:7:{s:1:"A";a:2:{s:4:"type";s:5:"image";s:4:"name";s:4:"home";}s:1:"B";a:2:{s:4:"type";s:5:"label";s:5:"label";s:6:"Street";}s:1:"C";a:5:{s:4:"type";s:4:"text";s:4:"size";s:5:"64,64";s:4:"span";s:1:"4";s:4:"name";s:14:"adr_one_street";s:6:"needed";s:1:"1";}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:1:"G";a:3:{s:4:"type";s:5:"label";s:4:"span";s:10:",redItalic";s:5:"label";s:1:"*";}}i:13;a:7:{s:1:"A";a:1:{s:4:"type";s:5:"label";}s:1:"B";a:1:{s:4:"type";s:5:"label";}s:1:"C";a:4:{s:4:"type";s:4:"text";s:4:"size";s:5:"64,64";s:4:"span";s:1:"4";s:4:"name";s:15:"adr_one_street2";}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:1:"G";a:1:{s:4:"type";s:5:"label";}}i:14;a:7:{s:1:"A";a:1:{s:4:"type";s:5:"label";}s:1:"B";a:2:{s:4:"type";s:5:"label";s:5:"label";s:4:"City";}s:1:"C";a:4:{s:4:"type";s:4:"text";s:4:"size";s:5:"10,64";s:4:"name";s:18:"adr_one_postalcode";s:6:"needed";s:1:"1";}s:1:"D";a:6:{s:4:"type";s:4:"text";s:4:"size";s:5:"48,64";s:4:"span";s:1:"3";s:4:"name";s:16:"adr_one_locality";s:5:"align";s:5:"right";s:6:"needed";s:1:"1";}s:1:"E";a:2:{s:4:"type";s:4:"text";s:4:"name";s:14:"adr_one_region";}s:1:"F";a:1:{s:4:"type";s:5:"label";}s:1:"G";a:3:{s:4:"type";s:5:"label";s:4:"span";s:10:",redItalic";s:5:"label";s:1:"*";}}i:15;a:7:{s:1:"A";a:1:{s:4:"type";s:5:"label";}s:1:"B";a:2:{s:4:"type";s:5:"label";s:5:"label";s:5:"Stadt";}s:1:"C";a:5:{s:4:"type";s:4:"text";s:4:"size";s:5:"36,64";s:4:"span";s:1:"2";s:4:"name";s:16:"adr_one_locality";s:6:"needed";s:1:"1";}s:1:"D";a:1:{s:4:"type";s:5:"label";}s:1:"E";a:4:{s:4:"type";s:4:"text";s:4:"size";s:4:"8,64";s:4:"name";s:14:"adr_one_region";s:5:"align";s:6:"center";}s:1:"F";a:5:{s:4:"type";s:4:"text";s:4:"size";s:4:"8,64";s:4:"name";s:18:"adr_one_postalcode";s:5:"align";s:5:"right";s:6:"needed";s:1:"1";}s:1:"G";a:3:{s:4:"type";s:5:"label";s:4:"span";s:10:",redItalic";s:5:"label";s:1:"*";}}i:16;a:7:{s:1:"A";a:2:{s:4:"type";s:5:"hrule";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";}s:1:"G";a:1:{s:4:"type";s:5:"label";}}i:17;a:7:{s:1:"A";a:2:{s:4:"type";s:5:"image";s:4:"name";s:4:"gear";}s:1:"B";a:2:{s:4:"type";s:5:"label";s:5:"label";s:15:"@customlabel[1]";}s:1:"C";a:5:{s:4:"type";s:4:"text";s:4:"name";s:15:"@customfield[1]";s:4:"span";s:1:"4";s:6:"needed";s:1:"1";s:4:"size";s:2:"64";}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:1:"G";a:3:{s:4:"type";s:5:"label";s:4:"span";s:10:",redItalic";s:5:"label";s:1:"*";}}i:18;a:7:{s:1:"A";a:1:{s:4:"type";s:5:"label";}s:1:"B";a:2:{s:4:"type";s:5:"label";s:5:"label";s:15:"@customlabel[2]";}s:1:"C";a:4:{s:4:"type";s:4:"text";s:4:"name";s:15:"@customfield[2]";s:4:"span";s:1:"4";s:4:"size";s:2:"64";}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:1:"G";a:1:{s:4:"type";s:5:"label";}}i:19;a:7:{s:1:"A";a:2:{s:4:"type";s:5:"hrule";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";}s:1:"G";a:1:{s:4:"type";s:5:"label";}}i:20;a:7:{s:1:"A";a:2:{s:4:"type";s:5:"image";s:4:"name";s:8:"edit.png";}s:1:"B";a:2:{s:4:"type";s:5:"label";s:5:"label";s:7:"Message";}s:1:"C";a:5:{s:4:"type";s:8:"textarea";s:4:"size";s:4:"5,45";s:4:"span";s:10:"4,width100";s:6:"needed";s:1:"1";s:4:"name";s:4:"note";}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:1:"G";a:3:{s:4:"type";s:5:"label";s:4:"span";s:10:",redItalic";s:5:"label";s:1:"*";}}i:21;a:7:{s:1:"A";a:2:{s:4:"type";s:5:"hrule";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";}s:1:"G";a:1:{s:4:"type";s:5:"label";}}i:22;a:7:{s:1:"A";a:2:{s:4:"type";s:5:"image";s:4:"name";s:11:"private.png";}s:1:"B";a:2:{s:4:"type";s:5:"label";s:5:"label";s:12:"Verification";}s:1:"C";a:2:{s:4:"type";s:5:"label";s:5:"label";s:13:"@captcha_task";}s:1:"D";a:6:{s:4:"type";s:4:"text";s:5:"label";s:30:"%s please calculate the result";s:6:"needed";s:1:"1";s:4:"span";s:1:"3";s:4:"name";s:7:"captcha";s:4:"size";s:1:"3";}s:1:"E";a:1:{s:4:"type";s:5:"label";}s:1:"F";a:1:{s:4:"type";s:5:"label";}s:1:"G";a:3:{s:4:"type";s:5:"label";s:4:"span";s:10:",redItalic";s:5:"label";s:1:"*";}}i:23;a:7:{s:1:"A";a:1:{s:4:"type";s:5:"label";}s:1:"B";a:1:{s:4:"type";s:5:"label";}s:1:"C";a:3:{s:4:"type";s:6:"button";s:5:"label";s:6:"Submit";s:4:"name";s:8:"submitit";}s:1:"D";a:4:{s:4:"type";s:5:"label";s:4:"span";s:13:"all,redItalic";s:5:"label";s:17:"required fields *";s:5:"align";s:5:"right";}s:1:"E";a:1:{s:4:"type";s:5:"label";}s:1:"F";a:1:{s:4:"type";s:5:"label";}s:1:"G";a:1:{s:4:"type";s:5:"label";}}}s:4:"rows";i:23;s:4:"cols";i:7;s:4:"size";s:3:",,0";s:7:"options";a:1:{i:2;s:1:"0";}}}','size' => ',,0','style' => '.width100 textarea { width: 99%; }','modified' => '1181059124',); |
|
| 19 | +$templ_data[] = array('name' => 'addressbook.contactform', '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:24:{i:0;a:26:{s:3:"h14";s:39:",!@show[adr_one_locality]=postcode_city";s:3:"h15";s:45:",!@show[adr_one_locality]=city_state_postcode";s:2:"c3";s:4:",top";s:3:"c14";s:4:",top";s:3:"c15";s:4:",top";s:2:"h2";s:17:",!@show[org_unit]";s:2:"h1";s:17:",!@show[org_name]";s:2:"h3";s:13:",!@show[n_fn]";s:2:"h5";s:14:",!@show[email]";s:2:"h6";s:17:",!@show[tel_work]";s:2:"h7";s:17:",!@show[tel_cell]";s:2:"h8";s:16:",!@show[tel_fax]";s:2:"h9";s:17:",!@show[tel_home]";s:3:"h10";s:12:",!@show[url]";s:3:"h12";s:23:",!@show[adr_one_street]";s:3:"h13";s:24:",!@show[adr_one_street2]";s:3:"h17";s:16:",!@show[custom1]";s:3:"h21";s:13:",!@show[sep5]";s:3:"h19";s:13:",!@show[sep4]";s:3:"h20";s:13:",!@show[note]";s:3:"h16";s:13:",!@show[sep3]";s:3:"h11";s:13:",!@show[sep2]";s:2:"h4";s:13:",!@show[sep1]";s:3:"h22";s:16:",!@show[captcha]";s:3:"c20";s:4:",top";s:3:"h18";s:16:",!@show[custom2]";}i:1;a:7:{s:1:"A";a:2:{s:4:"type";s:5:"image";s:4:"name";s:4:"home";}s:1:"B";a:2:{s:4:"type";s:5:"label";s:5:"label";s:7:"Company";}s:1:"C";a:4:{s:4:"type";s:4:"text";s:4:"size";s:5:"64,64";s:4:"name";s:8:"org_name";s:4:"span";s:1:"4";}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:1:"G";a:1:{s:4:"type";s:5:"label";}}i:2;a:7:{s:1:"A";a:1:{s:4:"type";s:5:"label";}s:1:"B";a:2:{s:4:"type";s:5:"label";s:5:"label";s:10:"Department";}s:1:"C";a:4:{s:4:"type";s:4:"text";s:4:"size";s:5:"64,64";s:4:"span";s:1:"4";s:4:"name";s:8:"org_unit";}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:1:"G";a:1:{s:4:"type";s:5:"label";}}i:3;a:7:{s:1:"A";a:2:{s:4:"type";s:5:"image";s:4:"name";s:8:"accounts";}s:1:"B";a:2:{s:4:"type";s:5:"label";s:5:"label";s:7:"Contact";}s:1:"C";a:4:{s:4:"type";s:4:"text";s:4:"size";s:5:"10,64";s:4:"name";s:8:"n_prefix";s:4:"blur";s:6:"Prefix";}s:1:"D";a:4:{s:4:"type";s:4:"text";s:4:"name";s:7:"n_given";s:4:"size";s:5:"20,64";s:5:"align";s:6:"center";}s:1:"E";a:6:{s:4:"type";s:4:"text";s:4:"name";s:8:"n_family";s:5:"align";s:5:"right";s:4:"size";s:5:"22,64";s:4:"span";s:1:"2";s:6:"needed";s:1:"1";}s:1:"F";a:1:{s:4:"type";s:5:"label";}s:1:"G";a:3:{s:4:"type";s:5:"label";s:4:"span";s:10:",redItalic";s:5:"label";s:1:"*";}}i:4;a:7:{s:1:"A";a:2:{s:4:"type";s:5:"hrule";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";}s:1:"G";a:1:{s:4:"type";s:5:"label";}}i:5;a:7:{s:1:"A";a:2:{s:4:"type";s:5:"image";s:4:"name";s:9:"email.png";}s:1:"B";a:2:{s:4:"type";s:5:"label";s:5:"label";s:5:"Email";}s:1:"C";a:5:{s:4:"type";s:4:"text";s:4:"size";s:49:"64,64,/^[a-z0-9._-]+@[a-z0-9-]+(\\.[a-z0-9-]+)+$/i";s:4:"span";s:1:"4";s:4:"name";s:5:"email";s:6:"needed";s:1:"1";}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:1:"G";a:3:{s:4:"type";s:5:"label";s:4:"span";s:10:",redItalic";s:5:"label";s:1:"*";}}i:6;a:7:{s:1:"A";a:2:{s:4:"type";s:5:"image";s:4:"name";s:5:"phone";}s:1:"B";a:2:{s:4:"type";s:5:"label";s:5:"label";s:14:"Business phone";}s:1:"C";a:4:{s:4:"type";s:4:"text";s:4:"size";s:5:"64,64";s:4:"span";s:1:"4";s:4:"name";s:8:"tel_work";}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:1:"G";a:1:{s:4:"type";s:5:"label";}}i:7;a:7:{s:1:"A";a:1:{s:4:"type";s:5:"label";}s:1:"B";a:2:{s:4:"type";s:5:"label";s:5:"label";s:12:"Mobile phone";}s:1:"C";a:4:{s:4:"type";s:4:"text";s:4:"size";s:5:"64,64";s:4:"span";s:1:"4";s:4:"name";s:8:"tel_cell";}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:1:"G";a:1:{s:4:"type";s:5:"label";}}i:8;a:7:{s:1:"A";a:1:{s:4:"type";s:5:"label";}s:1:"B";a:2:{s:4:"type";s:5:"label";s:5:"label";s:3:"Fax";}s:1:"C";a:4:{s:4:"type";s:4:"text";s:4:"size";s:5:"64,64";s:4:"span";s:1:"4";s:4:"name";s:7:"tel_fax";}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:1:"G";a:1:{s:4:"type";s:5:"label";}}i:9;a:7:{s:1:"A";a:1:{s:4:"type";s:5:"label";}s:1:"B";a:2:{s:4:"type";s:5:"label";s:5:"label";s:10:"Home phone";}s:1:"C";a:4:{s:4:"type";s:4:"text";s:4:"size";s:5:"64,64";s:4:"span";s:1:"4";s:4:"name";s:8:"tel_home";}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:1:"G";a:1:{s:4:"type";s:5:"label";}}i:10;a:7:{s:1:"A";a:2:{s:4:"type";s:5:"image";s:4:"name";s:8:"internet";}s:1:"B";a:2:{s:4:"type";s:5:"label";s:5:"label";s:8:"Internet";}s:1:"C";a:4:{s:4:"type";s:4:"text";s:4:"size";s:5:"64,64";s:4:"span";s:1:"4";s:4:"name";s:3:"url";}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:1:"G";a:1:{s:4:"type";s:5:"label";}}i:11;a:7:{s:1:"A";a:2:{s:4:"type";s:5:"hrule";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";}s:1:"G";a:1:{s:4:"type";s:5:"label";}}i:12;a:7:{s:1:"A";a:2:{s:4:"type";s:5:"image";s:4:"name";s:4:"home";}s:1:"B";a:2:{s:4:"type";s:5:"label";s:5:"label";s:6:"Street";}s:1:"C";a:5:{s:4:"type";s:4:"text";s:4:"size";s:5:"64,64";s:4:"span";s:1:"4";s:4:"name";s:14:"adr_one_street";s:6:"needed";s:1:"1";}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:1:"G";a:3:{s:4:"type";s:5:"label";s:4:"span";s:10:",redItalic";s:5:"label";s:1:"*";}}i:13;a:7:{s:1:"A";a:1:{s:4:"type";s:5:"label";}s:1:"B";a:1:{s:4:"type";s:5:"label";}s:1:"C";a:4:{s:4:"type";s:4:"text";s:4:"size";s:5:"64,64";s:4:"span";s:1:"4";s:4:"name";s:15:"adr_one_street2";}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:1:"G";a:1:{s:4:"type";s:5:"label";}}i:14;a:7:{s:1:"A";a:1:{s:4:"type";s:5:"label";}s:1:"B";a:2:{s:4:"type";s:5:"label";s:5:"label";s:4:"City";}s:1:"C";a:4:{s:4:"type";s:4:"text";s:4:"size";s:5:"10,64";s:4:"name";s:18:"adr_one_postalcode";s:6:"needed";s:1:"1";}s:1:"D";a:6:{s:4:"type";s:4:"text";s:4:"size";s:5:"48,64";s:4:"span";s:1:"3";s:4:"name";s:16:"adr_one_locality";s:5:"align";s:5:"right";s:6:"needed";s:1:"1";}s:1:"E";a:2:{s:4:"type";s:4:"text";s:4:"name";s:14:"adr_one_region";}s:1:"F";a:1:{s:4:"type";s:5:"label";}s:1:"G";a:3:{s:4:"type";s:5:"label";s:4:"span";s:10:",redItalic";s:5:"label";s:1:"*";}}i:15;a:7:{s:1:"A";a:1:{s:4:"type";s:5:"label";}s:1:"B";a:2:{s:4:"type";s:5:"label";s:5:"label";s:5:"Stadt";}s:1:"C";a:5:{s:4:"type";s:4:"text";s:4:"size";s:5:"36,64";s:4:"span";s:1:"2";s:4:"name";s:16:"adr_one_locality";s:6:"needed";s:1:"1";}s:1:"D";a:1:{s:4:"type";s:5:"label";}s:1:"E";a:4:{s:4:"type";s:4:"text";s:4:"size";s:4:"8,64";s:4:"name";s:14:"adr_one_region";s:5:"align";s:6:"center";}s:1:"F";a:5:{s:4:"type";s:4:"text";s:4:"size";s:4:"8,64";s:4:"name";s:18:"adr_one_postalcode";s:5:"align";s:5:"right";s:6:"needed";s:1:"1";}s:1:"G";a:3:{s:4:"type";s:5:"label";s:4:"span";s:10:",redItalic";s:5:"label";s:1:"*";}}i:16;a:7:{s:1:"A";a:2:{s:4:"type";s:5:"hrule";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";}s:1:"G";a:1:{s:4:"type";s:5:"label";}}i:17;a:7:{s:1:"A";a:2:{s:4:"type";s:5:"image";s:4:"name";s:4:"gear";}s:1:"B";a:2:{s:4:"type";s:5:"label";s:5:"label";s:15:"@customlabel[1]";}s:1:"C";a:5:{s:4:"type";s:4:"text";s:4:"name";s:15:"@customfield[1]";s:4:"span";s:1:"4";s:6:"needed";s:1:"1";s:4:"size";s:2:"64";}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:1:"G";a:3:{s:4:"type";s:5:"label";s:4:"span";s:10:",redItalic";s:5:"label";s:1:"*";}}i:18;a:7:{s:1:"A";a:1:{s:4:"type";s:5:"label";}s:1:"B";a:2:{s:4:"type";s:5:"label";s:5:"label";s:15:"@customlabel[2]";}s:1:"C";a:4:{s:4:"type";s:4:"text";s:4:"name";s:15:"@customfield[2]";s:4:"span";s:1:"4";s:4:"size";s:2:"64";}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:1:"G";a:1:{s:4:"type";s:5:"label";}}i:19;a:7:{s:1:"A";a:2:{s:4:"type";s:5:"hrule";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";}s:1:"G";a:1:{s:4:"type";s:5:"label";}}i:20;a:7:{s:1:"A";a:2:{s:4:"type";s:5:"image";s:4:"name";s:8:"edit.png";}s:1:"B";a:2:{s:4:"type";s:5:"label";s:5:"label";s:7:"Message";}s:1:"C";a:5:{s:4:"type";s:8:"textarea";s:4:"size";s:4:"5,45";s:4:"span";s:10:"4,width100";s:6:"needed";s:1:"1";s:4:"name";s:4:"note";}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:1:"G";a:3:{s:4:"type";s:5:"label";s:4:"span";s:10:",redItalic";s:5:"label";s:1:"*";}}i:21;a:7:{s:1:"A";a:2:{s:4:"type";s:5:"hrule";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";}s:1:"G";a:1:{s:4:"type";s:5:"label";}}i:22;a:7:{s:1:"A";a:2:{s:4:"type";s:5:"image";s:4:"name";s:11:"private.png";}s:1:"B";a:2:{s:4:"type";s:5:"label";s:5:"label";s:12:"Verification";}s:1:"C";a:2:{s:4:"type";s:5:"label";s:5:"label";s:13:"@captcha_task";}s:1:"D";a:6:{s:4:"type";s:4:"text";s:5:"label";s:30:"%s please calculate the result";s:6:"needed";s:1:"1";s:4:"span";s:1:"3";s:4:"name";s:7:"captcha";s:4:"size";s:1:"3";}s:1:"E";a:1:{s:4:"type";s:5:"label";}s:1:"F";a:1:{s:4:"type";s:5:"label";}s:1:"G";a:3:{s:4:"type";s:5:"label";s:4:"span";s:10:",redItalic";s:5:"label";s:1:"*";}}i:23;a:7:{s:1:"A";a:1:{s:4:"type";s:5:"label";}s:1:"B";a:1:{s:4:"type";s:5:"label";}s:1:"C";a:3:{s:4:"type";s:6:"button";s:5:"label";s:6:"Submit";s:4:"name";s:8:"submitit";}s:1:"D";a:4:{s:4:"type";s:5:"label";s:4:"span";s:13:"all,redItalic";s:5:"label";s:17:"required fields *";s:5:"align";s:5:"right";}s:1:"E";a:1:{s:4:"type";s:5:"label";}s:1:"F";a:1:{s:4:"type";s:5:"label";}s:1:"G";a:1:{s:4:"type";s:5:"label";}}}s:4:"rows";i:23;s:4:"cols";i:7;s:4:"size";s:3:",,0";s:7:"options";a:1:{i:2;s:1:"0";}}}', 'size' => ',,0', 'style' => '.width100 textarea { width: 99%; }', 'modified' => '1181059124',); |
|
| 20 | 20 | |
| 21 | -$templ_data[] = array('name' => 'addressbook.contactform.test','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:26:{i:0;a:23:{s:3:"h14";s:24:",!@show[adr_one_street2]";s:3:"h15";s:39:",!@show[adr_one_locality]=postcode_city";s:2:"c3";s:4:",top";s:3:"c15";s:4:",top";s:2:"h2";s:17:",!@show[org_unit]";s:2:"h1";s:17:",!@show[org_name]";s:2:"h3";s:13:",!@show[n_fn]";s:2:"h5";s:14:",!@show[email]";s:2:"h6";s:17:",!@show[tel_work]";s:2:"h7";s:17:",!@show[tel_cell]";s:2:"h8";s:16:",!@show[tel_fax]";s:2:"h9";s:17:",!@show[tel_home]";s:3:"h10";s:12:",!@show[url]";s:3:"h13";s:23:",!@show[adr_one_street]";s:3:"h17";s:13:",!@show[sep3]";s:3:"h20";s:13:",!@show[sep4]";s:3:"h16";s:45:",!@show[adr_one_locality]=city_state_postcode";s:2:"h4";s:13:",!@show[sep1]";s:3:"c16";s:4:",top";s:3:"h22";s:13:",!@show[note]";s:3:"h23";s:13:",!@show[sep5]";s:3:"h24";s:16:",!@show[captcha]";s:3:"c22";s:4:",top";}i:1;a:7:{s:1:"A";a:2:{s:4:"type";s:5:"image";s:4:"name";s:4:"home";}s:1:"B";a:2:{s:4:"type";s:5:"label";s:5:"label";s:7:"Company";}s:1:"C";a:4:{s:4:"type";s:4:"text";s:4:"size";s:5:"64,64";s:4:"name";s:8:"org_name";s:4:"span";s:1:"4";}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:1:"G";a:1:{s:4:"type";s:5:"label";}}i:2;a:7:{s:1:"A";a:1:{s:4:"type";s:5:"label";}s:1:"B";a:2:{s:4:"type";s:5:"label";s:5:"label";s:10:"Department";}s:1:"C";a:4:{s:4:"type";s:4:"text";s:4:"size";s:5:"64,64";s:4:"span";s:1:"4";s:4:"name";s:8:"org_unit";}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:1:"G";a:1:{s:4:"type";s:5:"label";}}i:3;a:7:{s:1:"A";a:2:{s:4:"type";s:5:"image";s:4:"name";s:8:"accounts";}s:1:"B";a:2:{s:4:"type";s:5:"label";s:5:"label";s:7:"Contact";}s:1:"C";a:4:{s:4:"type";s:4:"text";s:4:"size";s:5:"10,64";s:4:"name";s:8:"n_prefix";s:4:"blur";s:6:"Prefix";}s:1:"D";a:4:{s:4:"type";s:4:"text";s:4:"name";s:7:"n_given";s:4:"size";s:5:"20,64";s:5:"align";s:6:"center";}s:1:"E";a:6:{s:4:"type";s:4:"text";s:4:"name";s:8:"n_family";s:5:"align";s:5:"right";s:4:"size";s:5:"22,64";s:4:"span";s:1:"2";s:6:"needed";s:1:"1";}s:1:"F";a:1:{s:4:"type";s:5:"label";}s:1:"G";a:3:{s:4:"type";s:5:"label";s:4:"span";s:10:",redItalic";s:5:"label";s:1:"*";}}i:4;a:7:{s:1:"A";a:2:{s:4:"type";s:5:"hrule";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";}s:1:"G";a:1:{s:4:"type";s:5:"label";}}i:5;a:7:{s:1:"A";a:2:{s:4:"type";s:5:"image";s:4:"name";s:9:"email.png";}s:1:"B";a:2:{s:4:"type";s:5:"label";s:5:"label";s:5:"Email";}s:1:"C";a:5:{s:4:"type";s:4:"text";s:4:"size";s:49:"64,64,/^[a-z0-9._-]+@[a-z0-9-]+(\\.[a-z0-9-]+)+$/i";s:4:"span";s:1:"4";s:4:"name";s:5:"email";s:6:"needed";s:1:"1";}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:1:"G";a:3:{s:4:"type";s:5:"label";s:4:"span";s:10:",redItalic";s:5:"label";s:1:"*";}}i:6;a:7:{s:1:"A";a:2:{s:4:"type";s:5:"image";s:4:"name";s:5:"phone";}s:1:"B";a:2:{s:4:"type";s:5:"label";s:5:"label";s:14:"Business phone";}s:1:"C";a:4:{s:4:"type";s:4:"text";s:4:"size";s:5:"64,64";s:4:"span";s:1:"4";s:4:"name";s:8:"tel_work";}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:1:"G";a:1:{s:4:"type";s:5:"label";}}i:7;a:7:{s:1:"A";a:1:{s:4:"type";s:5:"label";}s:1:"B";a:2:{s:4:"type";s:5:"label";s:5:"label";s:12:"Mobile phone";}s:1:"C";a:4:{s:4:"type";s:4:"text";s:4:"size";s:5:"64,64";s:4:"span";s:1:"4";s:4:"name";s:8:"tel_cell";}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:1:"G";a:1:{s:4:"type";s:5:"label";}}i:8;a:7:{s:1:"A";a:1:{s:4:"type";s:5:"label";}s:1:"B";a:2:{s:4:"type";s:5:"label";s:5:"label";s:3:"Fax";}s:1:"C";a:4:{s:4:"type";s:4:"text";s:4:"size";s:5:"64,64";s:4:"span";s:1:"4";s:4:"name";s:7:"tel_fax";}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:1:"G";a:1:{s:4:"type";s:5:"label";}}i:9;a:7:{s:1:"A";a:1:{s:4:"type";s:5:"label";}s:1:"B";a:2:{s:4:"type";s:5:"label";s:5:"label";s:10:"Home phone";}s:1:"C";a:4:{s:4:"type";s:4:"text";s:4:"size";s:5:"64,64";s:4:"span";s:1:"4";s:4:"name";s:8:"tel_home";}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:1:"G";a:1:{s:4:"type";s:5:"label";}}i:10;a:7:{s:1:"A";a:2:{s:4:"type";s:5:"image";s:4:"name";s:8:"internet";}s:1:"B";a:2:{s:4:"type";s:5:"label";s:5:"label";s:8:"Internet";}s:1:"C";a:4:{s:4:"type";s:4:"text";s:4:"size";s:5:"64,64";s:4:"span";s:1:"4";s:4:"name";s:3:"url";}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:1:"G";a:1:{s:4:"type";s:5:"label";}}i:11;a:7:{s:1:"A";a:2:{s:4:"type";s:5:"hrule";s:4:"span";s:3:"all";}s:1:"B";a:2:{s:4:"type";s:5:"label";s:5:"label";s:78:"YES, please inform me about eGroupWare, communicating and IT-Outsourcing news.";}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:1:"G";a:1:{s:4:"type";s:5:"label";}}i:12;a:7:{s:1:"A";a:3:{s:4:"type";s:5:"label";s:5:"label";s:78:"YES, please inform me about eGroupWare, communicating and IT-Outsourcing news.";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";}s:1:"G";a:1:{s:4:"type";s:5:"label";}}i:13;a:7:{s:1:"A";a:2:{s:4:"type";s:5:"image";s:4:"name";s:4:"home";}s:1:"B";a:2:{s:4:"type";s:5:"label";s:5:"label";s:6:"Street";}s:1:"C";a:5:{s:4:"type";s:4:"text";s:4:"size";s:5:"64,64";s:4:"span";s:1:"4";s:4:"name";s:14:"adr_one_street";s:6:"needed";s:1:"1";}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:1:"G";a:3:{s:4:"type";s:5:"label";s:4:"span";s:10:",redItalic";s:5:"label";s:1:"*";}}i:14;a:7:{s:1:"A";a:1:{s:4:"type";s:5:"label";}s:1:"B";a:1:{s:4:"type";s:5:"label";}s:1:"C";a:4:{s:4:"type";s:4:"text";s:4:"size";s:5:"64,64";s:4:"span";s:1:"4";s:4:"name";s:15:"adr_one_street2";}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:1:"G";a:1:{s:4:"type";s:5:"label";}}i:15;a:7:{s:1:"A";a:1:{s:4:"type";s:5:"label";}s:1:"B";a:2:{s:4:"type";s:5:"label";s:5:"label";s:4:"City";}s:1:"C";a:4:{s:4:"type";s:4:"text";s:4:"size";s:5:"10,64";s:4:"name";s:18:"adr_one_postalcode";s:6:"needed";s:1:"1";}s:1:"D";a:6:{s:4:"type";s:4:"text";s:4:"size";s:5:"48,64";s:4:"span";s:1:"3";s:4:"name";s:16:"adr_one_locality";s:5:"align";s:5:"right";s:6:"needed";s:1:"1";}s:1:"E";a:2:{s:4:"type";s:4:"text";s:4:"name";s:14:"adr_one_region";}s:1:"F";a:1:{s:4:"type";s:5:"label";}s:1:"G";a:3:{s:4:"type";s:5:"label";s:4:"span";s:10:",redItalic";s:5:"label";s:1:"*";}}i:16;a:7:{s:1:"A";a:1:{s:4:"type";s:5:"label";}s:1:"B";a:2:{s:4:"type";s:5:"label";s:5:"label";s:5:"Stadt";}s:1:"C";a:5:{s:4:"type";s:4:"text";s:4:"size";s:5:"36,64";s:4:"span";s:1:"2";s:4:"name";s:16:"adr_one_locality";s:6:"needed";s:1:"1";}s:1:"D";a:1:{s:4:"type";s:5:"label";}s:1:"E";a:4:{s:4:"type";s:4:"text";s:4:"size";s:4:"8,64";s:4:"name";s:14:"adr_one_region";s:5:"align";s:6:"center";}s:1:"F";a:5:{s:4:"type";s:4:"text";s:4:"size";s:4:"8,64";s:4:"name";s:18:"adr_one_postalcode";s:5:"align";s:5:"right";s:6:"needed";s:1:"1";}s:1:"G";a:3:{s:4:"type";s:5:"label";s:4:"span";s:10:",redItalic";s:5:"label";s:1:"*";}}i:17;a:7:{s:1:"A";a:2:{s:4:"type";s:5:"hrule";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";}s:1:"G";a:1:{s:4:"type";s:5:"label";}}i:18;a:7:{s:1:"A";a:2:{s:4:"type";s:5:"image";s:4:"name";s:8:"accounts";}s:1:"B";a:2:{s:4:"type";s:5:"label";s:5:"label";s:8:"Passbild";}s:1:"C";a:2:{s:4:"type";s:4:"file";s:4:"name";s:8:"Passbild";}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:1:"G";a:1:{s:4:"type";s:5:"label";}}i:19;a:7:{s:1:"A";a:1:{s:4:"type";s:5:"label";}s:1:"B";a:2:{s:4:"type";s:5:"label";s:5:"label";s:10:"Lebenslauf";}s:1:"C";a:2:{s:4:"type";s:4:"file";s:4:"name";s:10:"Lebenslauf";}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:1:"G";a:1:{s:4:"type";s:5:"label";}}i:20;a:7:{s:1:"A";a:2:{s:4:"type";s:5:"hrule";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";}s:1:"G";a:1:{s:4:"type";s:5:"label";}}i:21;a:7:{s:1:"A";a:1:{s:4:"type";s:5:"label";}s:1:"B";a:2:{s:4:"type";s:5:"label";s:5:"label";s:11:"Multiselect";}s:1:"C";a:2:{s:4:"type";s:21:"customfields-no-label";s:4:"name";s:12:"#multiselect";}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:1:"G";a:1:{s:4:"type";s:5:"label";}}i:22;a:7:{s:1:"A";a:2:{s:4:"type";s:5:"image";s:4:"name";s:8:"edit.png";}s:1:"B";a:2:{s:4:"type";s:5:"label";s:5:"label";s:7:"Message";}s:1:"C";a:5:{s:4:"type";s:8:"textarea";s:4:"size";s:4:"5,45";s:4:"span";s:10:"4,width100";s:6:"needed";s:1:"1";s:4:"name";s:4:"note";}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:1:"G";a:3:{s:4:"type";s:5:"label";s:4:"span";s:10:",redItalic";s:5:"label";s:1:"*";}}i:23;a:7:{s:1:"A";a:2:{s:4:"type";s:5:"hrule";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";}s:1:"G";a:1:{s:4:"type";s:5:"label";}}i:24;a:7:{s:1:"A";a:2:{s:4:"type";s:5:"image";s:4:"name";s:11:"private.png";}s:1:"B";a:2:{s:4:"type";s:5:"label";s:5:"label";s:12:"Verification";}s:1:"C";a:2:{s:4:"type";s:5:"label";s:5:"label";s:13:"@captcha_task";}s:1:"D";a:6:{s:4:"type";s:4:"text";s:5:"label";s:30:"%s please calculate the result";s:6:"needed";s:1:"1";s:4:"span";s:1:"3";s:4:"name";s:7:"captcha";s:4:"size";s:1:"3";}s:1:"E";a:1:{s:4:"type";s:5:"label";}s:1:"F";a:1:{s:4:"type";s:5:"label";}s:1:"G";a:3:{s:4:"type";s:5:"label";s:4:"span";s:10:",redItalic";s:5:"label";s:1:"*";}}i:25;a:7:{s:1:"A";a:1:{s:4:"type";s:5:"label";}s:1:"B";a:1:{s:4:"type";s:5:"label";}s:1:"C";a:3:{s:4:"type";s:6:"button";s:5:"label";s:6:"Submit";s:4:"name";s:8:"submitit";}s:1:"D";a:4:{s:4:"type";s:5:"label";s:4:"span";s:13:"all,redItalic";s:5:"label";s:17:"required fields *";s:5:"align";s:5:"right";}s:1:"E";a:1:{s:4:"type";s:5:"label";}s:1:"F";a:1:{s:4:"type";s:5:"label";}s:1:"G";a:1:{s:4:"type";s:5:"label";}}}s:4:"rows";i:25;s:4:"cols";i:7;s:4:"size";s:3:",,0";s:7:"options";a:1:{i:2;s:1:"0";}}}','size' => ',,0','style' => '.width100 textarea { width: 99%; }','modified' => '1197011086',); |
|
| 21 | +$templ_data[] = array('name' => 'addressbook.contactform.test', '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:26:{i:0;a:23:{s:3:"h14";s:24:",!@show[adr_one_street2]";s:3:"h15";s:39:",!@show[adr_one_locality]=postcode_city";s:2:"c3";s:4:",top";s:3:"c15";s:4:",top";s:2:"h2";s:17:",!@show[org_unit]";s:2:"h1";s:17:",!@show[org_name]";s:2:"h3";s:13:",!@show[n_fn]";s:2:"h5";s:14:",!@show[email]";s:2:"h6";s:17:",!@show[tel_work]";s:2:"h7";s:17:",!@show[tel_cell]";s:2:"h8";s:16:",!@show[tel_fax]";s:2:"h9";s:17:",!@show[tel_home]";s:3:"h10";s:12:",!@show[url]";s:3:"h13";s:23:",!@show[adr_one_street]";s:3:"h17";s:13:",!@show[sep3]";s:3:"h20";s:13:",!@show[sep4]";s:3:"h16";s:45:",!@show[adr_one_locality]=city_state_postcode";s:2:"h4";s:13:",!@show[sep1]";s:3:"c16";s:4:",top";s:3:"h22";s:13:",!@show[note]";s:3:"h23";s:13:",!@show[sep5]";s:3:"h24";s:16:",!@show[captcha]";s:3:"c22";s:4:",top";}i:1;a:7:{s:1:"A";a:2:{s:4:"type";s:5:"image";s:4:"name";s:4:"home";}s:1:"B";a:2:{s:4:"type";s:5:"label";s:5:"label";s:7:"Company";}s:1:"C";a:4:{s:4:"type";s:4:"text";s:4:"size";s:5:"64,64";s:4:"name";s:8:"org_name";s:4:"span";s:1:"4";}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:1:"G";a:1:{s:4:"type";s:5:"label";}}i:2;a:7:{s:1:"A";a:1:{s:4:"type";s:5:"label";}s:1:"B";a:2:{s:4:"type";s:5:"label";s:5:"label";s:10:"Department";}s:1:"C";a:4:{s:4:"type";s:4:"text";s:4:"size";s:5:"64,64";s:4:"span";s:1:"4";s:4:"name";s:8:"org_unit";}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:1:"G";a:1:{s:4:"type";s:5:"label";}}i:3;a:7:{s:1:"A";a:2:{s:4:"type";s:5:"image";s:4:"name";s:8:"accounts";}s:1:"B";a:2:{s:4:"type";s:5:"label";s:5:"label";s:7:"Contact";}s:1:"C";a:4:{s:4:"type";s:4:"text";s:4:"size";s:5:"10,64";s:4:"name";s:8:"n_prefix";s:4:"blur";s:6:"Prefix";}s:1:"D";a:4:{s:4:"type";s:4:"text";s:4:"name";s:7:"n_given";s:4:"size";s:5:"20,64";s:5:"align";s:6:"center";}s:1:"E";a:6:{s:4:"type";s:4:"text";s:4:"name";s:8:"n_family";s:5:"align";s:5:"right";s:4:"size";s:5:"22,64";s:4:"span";s:1:"2";s:6:"needed";s:1:"1";}s:1:"F";a:1:{s:4:"type";s:5:"label";}s:1:"G";a:3:{s:4:"type";s:5:"label";s:4:"span";s:10:",redItalic";s:5:"label";s:1:"*";}}i:4;a:7:{s:1:"A";a:2:{s:4:"type";s:5:"hrule";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";}s:1:"G";a:1:{s:4:"type";s:5:"label";}}i:5;a:7:{s:1:"A";a:2:{s:4:"type";s:5:"image";s:4:"name";s:9:"email.png";}s:1:"B";a:2:{s:4:"type";s:5:"label";s:5:"label";s:5:"Email";}s:1:"C";a:5:{s:4:"type";s:4:"text";s:4:"size";s:49:"64,64,/^[a-z0-9._-]+@[a-z0-9-]+(\\.[a-z0-9-]+)+$/i";s:4:"span";s:1:"4";s:4:"name";s:5:"email";s:6:"needed";s:1:"1";}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:1:"G";a:3:{s:4:"type";s:5:"label";s:4:"span";s:10:",redItalic";s:5:"label";s:1:"*";}}i:6;a:7:{s:1:"A";a:2:{s:4:"type";s:5:"image";s:4:"name";s:5:"phone";}s:1:"B";a:2:{s:4:"type";s:5:"label";s:5:"label";s:14:"Business phone";}s:1:"C";a:4:{s:4:"type";s:4:"text";s:4:"size";s:5:"64,64";s:4:"span";s:1:"4";s:4:"name";s:8:"tel_work";}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:1:"G";a:1:{s:4:"type";s:5:"label";}}i:7;a:7:{s:1:"A";a:1:{s:4:"type";s:5:"label";}s:1:"B";a:2:{s:4:"type";s:5:"label";s:5:"label";s:12:"Mobile phone";}s:1:"C";a:4:{s:4:"type";s:4:"text";s:4:"size";s:5:"64,64";s:4:"span";s:1:"4";s:4:"name";s:8:"tel_cell";}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:1:"G";a:1:{s:4:"type";s:5:"label";}}i:8;a:7:{s:1:"A";a:1:{s:4:"type";s:5:"label";}s:1:"B";a:2:{s:4:"type";s:5:"label";s:5:"label";s:3:"Fax";}s:1:"C";a:4:{s:4:"type";s:4:"text";s:4:"size";s:5:"64,64";s:4:"span";s:1:"4";s:4:"name";s:7:"tel_fax";}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:1:"G";a:1:{s:4:"type";s:5:"label";}}i:9;a:7:{s:1:"A";a:1:{s:4:"type";s:5:"label";}s:1:"B";a:2:{s:4:"type";s:5:"label";s:5:"label";s:10:"Home phone";}s:1:"C";a:4:{s:4:"type";s:4:"text";s:4:"size";s:5:"64,64";s:4:"span";s:1:"4";s:4:"name";s:8:"tel_home";}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:1:"G";a:1:{s:4:"type";s:5:"label";}}i:10;a:7:{s:1:"A";a:2:{s:4:"type";s:5:"image";s:4:"name";s:8:"internet";}s:1:"B";a:2:{s:4:"type";s:5:"label";s:5:"label";s:8:"Internet";}s:1:"C";a:4:{s:4:"type";s:4:"text";s:4:"size";s:5:"64,64";s:4:"span";s:1:"4";s:4:"name";s:3:"url";}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:1:"G";a:1:{s:4:"type";s:5:"label";}}i:11;a:7:{s:1:"A";a:2:{s:4:"type";s:5:"hrule";s:4:"span";s:3:"all";}s:1:"B";a:2:{s:4:"type";s:5:"label";s:5:"label";s:78:"YES, please inform me about eGroupWare, communicating and IT-Outsourcing news.";}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:1:"G";a:1:{s:4:"type";s:5:"label";}}i:12;a:7:{s:1:"A";a:3:{s:4:"type";s:5:"label";s:5:"label";s:78:"YES, please inform me about eGroupWare, communicating and IT-Outsourcing news.";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";}s:1:"G";a:1:{s:4:"type";s:5:"label";}}i:13;a:7:{s:1:"A";a:2:{s:4:"type";s:5:"image";s:4:"name";s:4:"home";}s:1:"B";a:2:{s:4:"type";s:5:"label";s:5:"label";s:6:"Street";}s:1:"C";a:5:{s:4:"type";s:4:"text";s:4:"size";s:5:"64,64";s:4:"span";s:1:"4";s:4:"name";s:14:"adr_one_street";s:6:"needed";s:1:"1";}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:1:"G";a:3:{s:4:"type";s:5:"label";s:4:"span";s:10:",redItalic";s:5:"label";s:1:"*";}}i:14;a:7:{s:1:"A";a:1:{s:4:"type";s:5:"label";}s:1:"B";a:1:{s:4:"type";s:5:"label";}s:1:"C";a:4:{s:4:"type";s:4:"text";s:4:"size";s:5:"64,64";s:4:"span";s:1:"4";s:4:"name";s:15:"adr_one_street2";}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:1:"G";a:1:{s:4:"type";s:5:"label";}}i:15;a:7:{s:1:"A";a:1:{s:4:"type";s:5:"label";}s:1:"B";a:2:{s:4:"type";s:5:"label";s:5:"label";s:4:"City";}s:1:"C";a:4:{s:4:"type";s:4:"text";s:4:"size";s:5:"10,64";s:4:"name";s:18:"adr_one_postalcode";s:6:"needed";s:1:"1";}s:1:"D";a:6:{s:4:"type";s:4:"text";s:4:"size";s:5:"48,64";s:4:"span";s:1:"3";s:4:"name";s:16:"adr_one_locality";s:5:"align";s:5:"right";s:6:"needed";s:1:"1";}s:1:"E";a:2:{s:4:"type";s:4:"text";s:4:"name";s:14:"adr_one_region";}s:1:"F";a:1:{s:4:"type";s:5:"label";}s:1:"G";a:3:{s:4:"type";s:5:"label";s:4:"span";s:10:",redItalic";s:5:"label";s:1:"*";}}i:16;a:7:{s:1:"A";a:1:{s:4:"type";s:5:"label";}s:1:"B";a:2:{s:4:"type";s:5:"label";s:5:"label";s:5:"Stadt";}s:1:"C";a:5:{s:4:"type";s:4:"text";s:4:"size";s:5:"36,64";s:4:"span";s:1:"2";s:4:"name";s:16:"adr_one_locality";s:6:"needed";s:1:"1";}s:1:"D";a:1:{s:4:"type";s:5:"label";}s:1:"E";a:4:{s:4:"type";s:4:"text";s:4:"size";s:4:"8,64";s:4:"name";s:14:"adr_one_region";s:5:"align";s:6:"center";}s:1:"F";a:5:{s:4:"type";s:4:"text";s:4:"size";s:4:"8,64";s:4:"name";s:18:"adr_one_postalcode";s:5:"align";s:5:"right";s:6:"needed";s:1:"1";}s:1:"G";a:3:{s:4:"type";s:5:"label";s:4:"span";s:10:",redItalic";s:5:"label";s:1:"*";}}i:17;a:7:{s:1:"A";a:2:{s:4:"type";s:5:"hrule";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";}s:1:"G";a:1:{s:4:"type";s:5:"label";}}i:18;a:7:{s:1:"A";a:2:{s:4:"type";s:5:"image";s:4:"name";s:8:"accounts";}s:1:"B";a:2:{s:4:"type";s:5:"label";s:5:"label";s:8:"Passbild";}s:1:"C";a:2:{s:4:"type";s:4:"file";s:4:"name";s:8:"Passbild";}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:1:"G";a:1:{s:4:"type";s:5:"label";}}i:19;a:7:{s:1:"A";a:1:{s:4:"type";s:5:"label";}s:1:"B";a:2:{s:4:"type";s:5:"label";s:5:"label";s:10:"Lebenslauf";}s:1:"C";a:2:{s:4:"type";s:4:"file";s:4:"name";s:10:"Lebenslauf";}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:1:"G";a:1:{s:4:"type";s:5:"label";}}i:20;a:7:{s:1:"A";a:2:{s:4:"type";s:5:"hrule";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";}s:1:"G";a:1:{s:4:"type";s:5:"label";}}i:21;a:7:{s:1:"A";a:1:{s:4:"type";s:5:"label";}s:1:"B";a:2:{s:4:"type";s:5:"label";s:5:"label";s:11:"Multiselect";}s:1:"C";a:2:{s:4:"type";s:21:"customfields-no-label";s:4:"name";s:12:"#multiselect";}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:1:"G";a:1:{s:4:"type";s:5:"label";}}i:22;a:7:{s:1:"A";a:2:{s:4:"type";s:5:"image";s:4:"name";s:8:"edit.png";}s:1:"B";a:2:{s:4:"type";s:5:"label";s:5:"label";s:7:"Message";}s:1:"C";a:5:{s:4:"type";s:8:"textarea";s:4:"size";s:4:"5,45";s:4:"span";s:10:"4,width100";s:6:"needed";s:1:"1";s:4:"name";s:4:"note";}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:1:"G";a:3:{s:4:"type";s:5:"label";s:4:"span";s:10:",redItalic";s:5:"label";s:1:"*";}}i:23;a:7:{s:1:"A";a:2:{s:4:"type";s:5:"hrule";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";}s:1:"G";a:1:{s:4:"type";s:5:"label";}}i:24;a:7:{s:1:"A";a:2:{s:4:"type";s:5:"image";s:4:"name";s:11:"private.png";}s:1:"B";a:2:{s:4:"type";s:5:"label";s:5:"label";s:12:"Verification";}s:1:"C";a:2:{s:4:"type";s:5:"label";s:5:"label";s:13:"@captcha_task";}s:1:"D";a:6:{s:4:"type";s:4:"text";s:5:"label";s:30:"%s please calculate the result";s:6:"needed";s:1:"1";s:4:"span";s:1:"3";s:4:"name";s:7:"captcha";s:4:"size";s:1:"3";}s:1:"E";a:1:{s:4:"type";s:5:"label";}s:1:"F";a:1:{s:4:"type";s:5:"label";}s:1:"G";a:3:{s:4:"type";s:5:"label";s:4:"span";s:10:",redItalic";s:5:"label";s:1:"*";}}i:25;a:7:{s:1:"A";a:1:{s:4:"type";s:5:"label";}s:1:"B";a:1:{s:4:"type";s:5:"label";}s:1:"C";a:3:{s:4:"type";s:6:"button";s:5:"label";s:6:"Submit";s:4:"name";s:8:"submitit";}s:1:"D";a:4:{s:4:"type";s:5:"label";s:4:"span";s:13:"all,redItalic";s:5:"label";s:17:"required fields *";s:5:"align";s:5:"right";}s:1:"E";a:1:{s:4:"type";s:5:"label";}s:1:"F";a:1:{s:4:"type";s:5:"label";}s:1:"G";a:1:{s:4:"type";s:5:"label";}}}s:4:"rows";i:25;s:4:"cols";i:7;s:4:"size";s:3:",,0";s:7:"options";a:1:{i:2;s:1:"0";}}}', 'size' => ',,0', 'style' => '.width100 textarea { width: 99%; }', 'modified' => '1197011086',); |
|
| 22 | 22 | |
| 23 | -$templ_data[] = array('name' => 'addressbook.display','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:4:{i:0;a:2:{s:2:"h1";s:6:",!@msg";s:2:"h2";s:2:",1";}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:1:{s:4:"type";s:5:"label";}s:1:"B";a:1:{s:4:"type";s:5:"label";}}i:3;a:2:{s:1:"A";a:4:{s:4:"type";s:9:"nextmatch";s:4:"size";s:24:"addressbook.display.rows";s:4:"name";s:3:"nm1";s:4:"span";s:3:"all";}s:1:"B";a:1:{s:4:"type";s:5:"label";}}}s:4:"rows";i:3;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' => '1194343373',); |
|
| 23 | +$templ_data[] = array('name' => 'addressbook.display', '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:4:{i:0;a:2:{s:2:"h1";s:6:",!@msg";s:2:"h2";s:2:",1";}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:1:{s:4:"type";s:5:"label";}s:1:"B";a:1:{s:4:"type";s:5:"label";}}i:3;a:2:{s:1:"A";a:4:{s:4:"type";s:9:"nextmatch";s:4:"size";s:24:"addressbook.display.rows";s:4:"name";s:3:"nm1";s:4:"span";s:3:"all";}s:1:"B";a:1:{s:4:"type";s:5:"label";}}}s:4:"rows";i:3;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' => '1194343373',); |
|
| 24 | 24 | |
| 25 | -$templ_data[] = array('name' => 'addressbook.display.rows','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:17:{s:2:"c1";s:2:"th";s:2:"c2";s:7:"row,top";s:1:"B";s:17:",!@show[org_name]";s:1:"C";s:17:",!@show[org_unit]";s:1:"D";s:13:",!@show[n_fn]";s:1:"E";s:14:",!@show[email]";s:1:"F";s:17:",!@show[tel_work]";s:1:"G";s:17:",!@show[tel_cell]";s:1:"H";s:16:",!@show[tel_fax]";s:1:"I";s:17:",!@show[org_home]";s:1:"J";s:12:",!@show[url]";s:1:"K";s:23:",!@show[adr_one_street]";s:1:"L";s:27:",!@show[adr_one_postalcode]";s:1:"M";s:25:",!@show[adr_one_locality]";s:1:"N";s:23:",!@show[adr_one_region]";s:1:"O";s:16:",!@show[custom1]";s:1:"P";s:16:",!@show[custom2]";}i:1;a:17:{s:1:"A";a:2:{s:4:"type";s:16:"nextmatch-header";s:4:"name";s:4:"type";}s:1:"B";a:3:{s:4:"type";s:16:"nextmatch-header";s:5:"label";s:7:"Company";s:4:"name";s:8:"org_name";}s:1:"C";a:3:{s:4:"type";s:16:"nextmatch-header";s:5:"label";s:10:"Department";s:4:"name";s:8:"org_unit";}s:1:"D";a:3:{s:4:"type";s:16:"nextmatch-header";s:5:"label";s:7:"Contact";s:4:"name";s:4:"n_fn";}s:1:"E";a:3:{s:4:"type";s:16:"nextmatch-header";s:5:"label";s:5:"Email";s:4:"name";s:5:"email";}s:1:"F";a:3:{s:4:"type";s:16:"nextmatch-header";s:5:"label";s:14:"Business phone";s:4:"name";s:8:"tel_work";}s:1:"G";a:3:{s:4:"type";s:16:"nextmatch-header";s:5:"label";s:12:"Mobile phone";s:4:"name";s:8:"tel_cell";}s:1:"H";a:3:{s:4:"type";s:16:"nextmatch-header";s:4:"name";s:7:"tel_fax";s:5:"label";s:3:"Fax";}s:1:"I";a:3:{s:4:"type";s:16:"nextmatch-header";s:5:"label";s:10:"Home phone";s:4:"name";s:8:"tel_home";}s:1:"J";a:3:{s:4:"type";s:16:"nextmatch-header";s:5:"label";s:8:"Internet";s:4:"name";s:3:"url";}s:1:"K";a:3:{s:4:"type";s:16:"nextmatch-header";s:5:"label";s:6:"Street";s:4:"name";s:14:"adr_one_street";}s:1:"L";a:3:{s:4:"type";s:20:"nextmatch-sortheader";s:5:"label";s:8:"ZIP Code";s:4:"name";s:18:"adr_one_postalcode";}s:1:"M";a:3:{s:4:"type";s:16:"nextmatch-header";s:5:"label";s:4:"City";s:4:"name";s:16:"adr_one_locality";}s:1:"N";a:3:{s:4:"type";s:16:"nextmatch-header";s:5:"label";s:6:"Region";s:4:"name";s:14:"adr_one_region";}s:1:"O";a:3:{s:4:"type";s:16:"nextmatch-header";s:5:"label";s:15:"@customlabel[1]";s:4:"name";s:7:"custom1";}s:1:"P";a:3:{s:4:"type";s:16:"nextmatch-header";s:5:"label";s:15:"@customlabel[2]";s:4:"name";s:7:"custom2";}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:16:"nextmatch-header";s:5:"label";s:14:"select country";s:4:"name";s:7:"country";}i:2;a:4:{s:4:"type";s:22:"nextmatch-customfilter";s:4:"name";s:19:"adr_one_countryname";s:4:"size";s:24:"select-country,Country,1";s:4:"span";s:14:",countrySelect";}}}i:2;a:17:{s:1:"A";a:5:{s:4:"type";s:5:"image";s:4:"size";s:1:"1";s:4:"name";s:12:"${row}[type]";s:8:"readonly";s:1:"1";s:5:"label";s:21:"$row_cont[type_label]";}s:1:"B";a:2:{s:4:"type";s:5:"label";s:4:"name";s:16:"${row}[org_name]";}s:1:"C";a:2:{s:4:"type";s:5:"label";s:4:"name";s:16:"${row}[org_unit]";}s:1:"D";a:2:{s:4:"type";s:5:"label";s:4:"name";s:13:"${row}[line1]";}s:1:"E";a:2:{s:4:"type";s:5:"label";s:4:"name";s:13:"${row}[email]";}s:1:"F";a:2:{s:4:"type";s:5:"label";s:4:"name";s:16:"${row}[tel_work]";}s:1:"G";a:2:{s:4:"type";s:5:"label";s:4:"name";s:16:"${row}[tel_cell]";}s:1:"H";a:2:{s:4:"type";s:5:"label";s:4:"name";s:15:"${row}[tel_fax]";}s:1:"I";a:2:{s:4:"type";s:5:"label";s:4:"name";s:16:"${row}[tel_home]";}s:1:"J";a:2:{s:4:"type";s:5:"label";s:4:"name";s:11:"${row}[url]";}s:1:"K";a:4:{s:4:"type";s:4:"vbox";s:4:"size";s:1:"2";i:1;a:2:{s:4:"type";s:5:"label";s:4:"name";s:22:"${row}[adr_one_street]";}i:2;a:2:{s:4:"type";s:5:"label";s:4:"name";s:23:"${row}[adr_one_street2]";}}s:1:"L";a:2:{s:4:"type";s:5:"label";s:4:"name";s:26:"${row}[adr_one_postalcode]";}s:1:"M";a:2:{s:4:"type";s:5:"label";s:4:"name";s:24:"${row}[adr_one_locality]";}s:1:"N";a:2:{s:4:"type";s:5:"label";s:4:"name";s:22:"${row}[adr_one_region]";}s:1:"O";a:2:{s:4:"type";s:5:"label";s:4:"name";s:15:"${row}[custom1]";}s:1:"P";a:2:{s:4:"type";s:5:"label";s:4:"name";s:15:"${row}[custom2]";}s:1:"Q";a:2:{s:4:"type";s:5:"label";s:4:"name";s:27:"${row}[adr_one_countryname]";}}}s:4:"rows";i:2;s:4:"cols";i:17;s:4:"size";s:14:"100%,,,,,,auto";s:7:"options";a:2:{i:0;s:4:"100%";i:6;s:4:"auto";}}}','size' => '100%,,,,,,auto','style' => '','modified' => '1195309977',); |
|
| 25 | +$templ_data[] = array('name' => 'addressbook.display.rows', '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:17:{s:2:"c1";s:2:"th";s:2:"c2";s:7:"row,top";s:1:"B";s:17:",!@show[org_name]";s:1:"C";s:17:",!@show[org_unit]";s:1:"D";s:13:",!@show[n_fn]";s:1:"E";s:14:",!@show[email]";s:1:"F";s:17:",!@show[tel_work]";s:1:"G";s:17:",!@show[tel_cell]";s:1:"H";s:16:",!@show[tel_fax]";s:1:"I";s:17:",!@show[org_home]";s:1:"J";s:12:",!@show[url]";s:1:"K";s:23:",!@show[adr_one_street]";s:1:"L";s:27:",!@show[adr_one_postalcode]";s:1:"M";s:25:",!@show[adr_one_locality]";s:1:"N";s:23:",!@show[adr_one_region]";s:1:"O";s:16:",!@show[custom1]";s:1:"P";s:16:",!@show[custom2]";}i:1;a:17:{s:1:"A";a:2:{s:4:"type";s:16:"nextmatch-header";s:4:"name";s:4:"type";}s:1:"B";a:3:{s:4:"type";s:16:"nextmatch-header";s:5:"label";s:7:"Company";s:4:"name";s:8:"org_name";}s:1:"C";a:3:{s:4:"type";s:16:"nextmatch-header";s:5:"label";s:10:"Department";s:4:"name";s:8:"org_unit";}s:1:"D";a:3:{s:4:"type";s:16:"nextmatch-header";s:5:"label";s:7:"Contact";s:4:"name";s:4:"n_fn";}s:1:"E";a:3:{s:4:"type";s:16:"nextmatch-header";s:5:"label";s:5:"Email";s:4:"name";s:5:"email";}s:1:"F";a:3:{s:4:"type";s:16:"nextmatch-header";s:5:"label";s:14:"Business phone";s:4:"name";s:8:"tel_work";}s:1:"G";a:3:{s:4:"type";s:16:"nextmatch-header";s:5:"label";s:12:"Mobile phone";s:4:"name";s:8:"tel_cell";}s:1:"H";a:3:{s:4:"type";s:16:"nextmatch-header";s:4:"name";s:7:"tel_fax";s:5:"label";s:3:"Fax";}s:1:"I";a:3:{s:4:"type";s:16:"nextmatch-header";s:5:"label";s:10:"Home phone";s:4:"name";s:8:"tel_home";}s:1:"J";a:3:{s:4:"type";s:16:"nextmatch-header";s:5:"label";s:8:"Internet";s:4:"name";s:3:"url";}s:1:"K";a:3:{s:4:"type";s:16:"nextmatch-header";s:5:"label";s:6:"Street";s:4:"name";s:14:"adr_one_street";}s:1:"L";a:3:{s:4:"type";s:20:"nextmatch-sortheader";s:5:"label";s:8:"ZIP Code";s:4:"name";s:18:"adr_one_postalcode";}s:1:"M";a:3:{s:4:"type";s:16:"nextmatch-header";s:5:"label";s:4:"City";s:4:"name";s:16:"adr_one_locality";}s:1:"N";a:3:{s:4:"type";s:16:"nextmatch-header";s:5:"label";s:6:"Region";s:4:"name";s:14:"adr_one_region";}s:1:"O";a:3:{s:4:"type";s:16:"nextmatch-header";s:5:"label";s:15:"@customlabel[1]";s:4:"name";s:7:"custom1";}s:1:"P";a:3:{s:4:"type";s:16:"nextmatch-header";s:5:"label";s:15:"@customlabel[2]";s:4:"name";s:7:"custom2";}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:16:"nextmatch-header";s:5:"label";s:14:"select country";s:4:"name";s:7:"country";}i:2;a:4:{s:4:"type";s:22:"nextmatch-customfilter";s:4:"name";s:19:"adr_one_countryname";s:4:"size";s:24:"select-country,Country,1";s:4:"span";s:14:",countrySelect";}}}i:2;a:17:{s:1:"A";a:5:{s:4:"type";s:5:"image";s:4:"size";s:1:"1";s:4:"name";s:12:"${row}[type]";s:8:"readonly";s:1:"1";s:5:"label";s:21:"$row_cont[type_label]";}s:1:"B";a:2:{s:4:"type";s:5:"label";s:4:"name";s:16:"${row}[org_name]";}s:1:"C";a:2:{s:4:"type";s:5:"label";s:4:"name";s:16:"${row}[org_unit]";}s:1:"D";a:2:{s:4:"type";s:5:"label";s:4:"name";s:13:"${row}[line1]";}s:1:"E";a:2:{s:4:"type";s:5:"label";s:4:"name";s:13:"${row}[email]";}s:1:"F";a:2:{s:4:"type";s:5:"label";s:4:"name";s:16:"${row}[tel_work]";}s:1:"G";a:2:{s:4:"type";s:5:"label";s:4:"name";s:16:"${row}[tel_cell]";}s:1:"H";a:2:{s:4:"type";s:5:"label";s:4:"name";s:15:"${row}[tel_fax]";}s:1:"I";a:2:{s:4:"type";s:5:"label";s:4:"name";s:16:"${row}[tel_home]";}s:1:"J";a:2:{s:4:"type";s:5:"label";s:4:"name";s:11:"${row}[url]";}s:1:"K";a:4:{s:4:"type";s:4:"vbox";s:4:"size";s:1:"2";i:1;a:2:{s:4:"type";s:5:"label";s:4:"name";s:22:"${row}[adr_one_street]";}i:2;a:2:{s:4:"type";s:5:"label";s:4:"name";s:23:"${row}[adr_one_street2]";}}s:1:"L";a:2:{s:4:"type";s:5:"label";s:4:"name";s:26:"${row}[adr_one_postalcode]";}s:1:"M";a:2:{s:4:"type";s:5:"label";s:4:"name";s:24:"${row}[adr_one_locality]";}s:1:"N";a:2:{s:4:"type";s:5:"label";s:4:"name";s:22:"${row}[adr_one_region]";}s:1:"O";a:2:{s:4:"type";s:5:"label";s:4:"name";s:15:"${row}[custom1]";}s:1:"P";a:2:{s:4:"type";s:5:"label";s:4:"name";s:15:"${row}[custom2]";}s:1:"Q";a:2:{s:4:"type";s:5:"label";s:4:"name";s:27:"${row}[adr_one_countryname]";}}}s:4:"rows";i:2;s:4:"cols";i:17;s:4:"size";s:14:"100%,,,,,,auto";s:7:"options";a:2:{i:0;s:4:"100%";i:6;s:4:"auto";}}}', 'size' => '100%,,,,,,auto', 'style' => '', 'modified' => '1195309977',); |
|
| 26 | 26 | |
| 27 | -$templ_data[] = array('name' => 'addressbook.edit','template' => '','lang' => '','group' => '0','version' => '1.9.004','data' => 'a:1:{i:0;a:4:{s:4:"type";s:4:"grid";s:4:"data";a:5:{i:0;a:5:{s:1:"A";s:3:"450";s:1:"B";s:3:"350";s:2:"h1";s:6:",!@msg";s:2:"c3";s:4:",top";s:2:"h4";s:13:",@hidebuttons";}i:1;a:2:{s:1:"A";a:5:{s:7:"no_lang";s:1:"1";s:8:"readonly";s:4:"true";s:4:"span";s:13:"all,redItalic";s:4:"name";s:3:"msg";s:4:"type";s:8:"htmlarea";}s:1:"B";a:1:{s:4:"type";s:5:"label";}}i:2;a:2:{s:1:"A";a:6:{s:5:"class";s:6:"fileas";s:4:"blur";s:4:"Name";s:7:"no_lang";s:1:"1";s:4:"name";s:11:"fileas_type";s:4:"type";s:6:"select";s:4:"help";s:11:"own sorting";}s:1:"B";a:4:{s:4:"type";s:4:"grid";s:4:"data";a:2:{i:0;a:1:{s:2:"h1";s:8:",@no_tid";}i:1;a:2:{s:1:"A";a:6:{s:5:"class";s:8:"leftPad5";s:5:"label";s:4:"Type";s:7:"no_lang";s:1:"1";s:8:"onchange";s:1:"1";s:4:"name";s:3:"tid";s:4:"type";s:6:"select";}s:1:"B";a:7:{s:5:"label";s:1:" ";s:6:"needed";s:1:"1";s:7:"no_lang";s:1:"1";s:8:"readonly";s:4:"true";s:4:"name";s:7:"typegfx";s:4:"type";s:4:"html";s:4:"span";s:6:",space";}}}s:4:"cols";i:2;s:4:"rows";i:1;}}i:3;a:2:{s:1:"A";a:4:{s:4:"name";s:232:"addressbook.edit.general|addressbook.edit.cats|addressbook.edit.home|addressbook.edit.details|addressbook.edit.links|addressbook.edit.distribution_list|addressbook.edit.custom|addressbook.edit.custom_private|addressbook.edit.history";s:4:"type";s:3:"tab";s:5:"label";s:87:"General|Categories|Private|Details|Links|Distribution lists|Extra|Extra private|History";s:4:"help";s:142:"Name, Address|Categories|Home address, Birthday, ...|Categories, Notes, ...|Links|Distribution lists, ...|Custom fields|Private custom fields|";}s:1:"B";a:5:{s:4:"type";s:4:"vbox";s:4:"size";s:1:"3";i:1;a:2:{s:4:"name";s:22:"addressbook.editphones";s:4:"type";s:8:"template";}i:2;a:5:{s:4:"type";s:8:"groupbox";s:4:"size";s:1:"1";s:4:"span";s:11:",phoneGroup";s:5:"label";s:13:"Phone Numbers";i:1;a:4:{s:4:"type";s:4:"grid";s:4:"data";a:6:{i:0;a:2:{s:1:"A";s:2:"20";s:1:"B";s:3:"120";}i:1;a:4:{s:1:"A";a:2:{s:4:"type";s:5:"image";s:4:"name";s:5:"phone";}s:1:"B";a:3:{s:3:"for";s:8:"tel_work";s:4:"type";s:5:"label";s:5:"label";s:8:"business";}s:1:"C";a:4:{s:4:"name";s:8:"tel_work";s:4:"size";s:5:"24,40";s:4:"type";s:9:"url-phone";s:4:"span";s:11:",telNumbers";}s:1:"D";a:4:{s:4:"name";s:10:"tel_prefer";s:4:"size";s:17:"tel_work,♥";s:4:"type";s:5:"radio";s:4:"help";s:46:"select phone number as prefered way of contact";}}i:2;a:4:{s:1:"A";a:1:{s:4:"type";s:5:"label";}s:1:"B";a:3:{s:3:"for";s:8:"tel_cell";s:4:"type";s:5:"label";s:5:"label";s:12:"mobile phone";}s:1:"C";a:4:{s:4:"name";s:8:"tel_cell";s:4:"size";s:5:"24,40";s:4:"type";s:9:"url-phone";s:4:"span";s:11:",telNumbers";}s:1:"D";a:4:{s:4:"name";s:10:"tel_prefer";s:4:"size";s:17:"tel_cell,♥";s:4:"type";s:5:"radio";s:4:"help";s:46:"select phone number as prefered way of contact";}}i:3;a:4:{s:1:"A";a:1:{s:4:"type";s:5:"label";}s:1:"B";a:3:{s:3:"for";s:8:"tel_home";s:4:"type";s:5:"label";s:5:"label";s:7:"Private";}s:1:"C";a:4:{s:4:"name";s:8:"tel_home";s:4:"size";s:5:"24,40";s:4:"type";s:9:"url-phone";s:4:"span";s:11:",telNumbers";}s:1:"D";a:4:{s:4:"name";s:10:"tel_prefer";s:4:"size";s:17:"tel_home,♥";s:4:"type";s:5:"radio";s:4:"help";s:46:"select phone number as prefered way of contact";}}i:4;a:4:{s:1:"A";a:1:{s:4:"type";s:5:"label";}s:1:"B";a:2:{s:4:"type";s:5:"label";s:5:"label";s:3:"Fax";}s:1:"C";a:4:{s:4:"name";s:7:"tel_fax";s:4:"size";s:5:"24,40";s:4:"type";s:9:"url-phone";s:4:"span";s:11:",telNumbers";}s:1:"D";a:4:{s:4:"name";s:10:"tel_prefer";s:4:"size";s:16:"tel_fax,♥";s:4:"type";s:5:"radio";s:4:"help";s:46:"select phone number as prefered way of contact";}}i:5;a:4:{s:1:"A";a:1:{s:4:"type";s:5:"label";}s:1:"B";a:1:{s:4:"type";s:5:"label";}s:1:"C";a:5:{s:9:"accesskey";s:1:"m";s:5:"label";s:8:"More ...";s:7:"onclick";s:111:"jQuery(\'table.editphones\').css(\'display\',\'inline\'); if (window.showphones) showphones(this.form); return false;";s:4:"name";s:12:"button[more]";s:4:"type";s:6:"button";}s:1:"D";a:1:{s:4:"type";s:5:"label";}}}s:4:"cols";i:4;s:4:"rows";i:5;}}i:3;a:5:{s:4:"type";s:8:"groupbox";s:4:"size";s:1:"1";s:4:"span";s:11:",emailGroup";s:5:"label";s:16:"Email & Internet";i:1;a:4:{s:4:"type";s:4:"grid";s:4:"data";a:5:{i:0;a:2:{s:1:"A";s:2:"20";s:1:"B";s:3:"120";}i:1;a:3:{s:1:"A";a:2:{s:4:"type";s:5:"image";s:4:"name";s:8:"internet";}s:1:"B";a:3:{s:3:"for";s:3:"url";s:4:"type";s:5:"label";s:5:"label";s:3:"url";}s:1:"C";a:3:{s:4:"name";s:3:"url";s:4:"size";s:6:"28,128";s:4:"type";s:3:"url";}}i:2;a:3:{s:1:"A";a:1:{s:4:"type";s:5:"label";}s:1:"B";a:3:{s:3:"for";s:8:"url_home";s:4:"type";s:5:"label";s:5:"label";s:7:"Private";}s:1:"C";a:3:{s:4:"name";s:8:"url_home";s:4:"size";s:6:"28,128";s:4:"type";s:3:"url";}}i:3;a:3:{s:1:"A";a:2:{s:4:"type";s:5:"image";s:4:"name";s:9:"email.png";}s:1:"B";a:3:{s:3:"for";s:5:"email";s:4:"type";s:5:"label";s:5:"label";s:5:"email";}s:1:"C";a:4:{s:8:"onchange";s:30:"check_value(this,\'$cont[id]\');";s:4:"name";s:5:"email";s:4:"size";s:6:"28,128";s:4:"type";s:9:"url-email";}}i:4;a:3:{s:1:"A";a:1:{s:4:"type";s:5:"label";}s:1:"B";a:3:{s:3:"for";s:10:"email_home";s:4:"type";s:5:"label";s:5:"label";s:7:"Private";}s:1:"C";a:4:{s:8:"onchange";s:30:"check_value(this,\'$cont[id]\');";s:4:"name";s:10:"email_home";s:4:"size";s:6:"28,128";s:4:"type";s:9:"url-email";}}}s:4:"cols";i:3;s:4:"rows";i:4;}}}}i:4;a:2:{s:1:"A";a:9:{s:4:"type";s:4:"hbox";s:4:"size";s:1:"7";i:1;a:4:{s:5:"label";s:4:"Edit";s:7:"onclick";s:189:"window.open(egw::link(\'/index.php\',\'menuaction=addressbook.addressbook_ui.edit&contact_id=$cont[id]\'),\'_blank\',\'dependent=yes,width=850,height=460,scrollbars=yes,status=yes\'); return false;";s:4:"name";s:12:"button[edit]";s:4:"type";s:6:"button";}i:2;a:4:{s:5:"label";s:4:"Copy";s:7:"onclick";s:198:"window.open(egw::link(\'/index.php\',\'menuaction=addressbook.addressbook_ui.edit&contact_id=$cont[id]&makecp=1\'),\'_blank\',\'dependent=yes,width=850,height=440,scrollbars=yes,status=yes\'); return false;";s:4:"name";s:12:"button[copy]";s:4:"type";s:6:"button";}i:3;a:4:{s:5:"label";s:5:"vCard";s:4:"name";s:13:"button[vcard]";s:4:"type";s:6:"button";s:4:"help";s:35:"download this contact as vCard file";}i:4;a:4:{s:9:"accesskey";s:1:"s";s:5:"label";s:4:"Save";s:4:"name";s:12:"button[save]";s:4:"type";s:6:"button";}i:5;a:3:{s:5:"label";s:5:"Apply";s:4:"name";s:13:"button[apply]";s:4:"type";s:6:"button";}i:6;a:4:{s:5:"label";s:6:"Cancel";s:7:"onclick";s:65:"if($cont[view] || false) return true; self.close(); return false;";s:4:"name";s:14:"button[cancel]";s:4:"type";s:6:"button";}i:7;a:5:{s:5:"label";s:31:"change all organisation members";s:4:"span";s:3:"all";s:4:"name";s:10:"change_org";s:4:"type";s:8:"checkbox";s:4:"help";s:73:"Apply changes to all members, whose fields have the same previous content";}}s:1:"B";a:6:{s:5:"align";s:5:"right";s:5:"label";s:6:"Delete";s:7:"onclick";s:65:"return confirm(\'Are you shure you want to delete this contact?\');";s:8:"tabindex";s:2:"25";s:4:"name";s:14:"button[delete]";s:4:"type";s:6:"button";}}}s:4:"cols";i:2;s:4:"rows";i:4;}}','size' => '','style' => '','modified' => '1375194166',); |
|
| 27 | +$templ_data[] = array('name' => 'addressbook.edit', 'template' => '', 'lang' => '', 'group' => '0', 'version' => '1.9.004', 'data' => 'a:1:{i:0;a:4:{s:4:"type";s:4:"grid";s:4:"data";a:5:{i:0;a:5:{s:1:"A";s:3:"450";s:1:"B";s:3:"350";s:2:"h1";s:6:",!@msg";s:2:"c3";s:4:",top";s:2:"h4";s:13:",@hidebuttons";}i:1;a:2:{s:1:"A";a:5:{s:7:"no_lang";s:1:"1";s:8:"readonly";s:4:"true";s:4:"span";s:13:"all,redItalic";s:4:"name";s:3:"msg";s:4:"type";s:8:"htmlarea";}s:1:"B";a:1:{s:4:"type";s:5:"label";}}i:2;a:2:{s:1:"A";a:6:{s:5:"class";s:6:"fileas";s:4:"blur";s:4:"Name";s:7:"no_lang";s:1:"1";s:4:"name";s:11:"fileas_type";s:4:"type";s:6:"select";s:4:"help";s:11:"own sorting";}s:1:"B";a:4:{s:4:"type";s:4:"grid";s:4:"data";a:2:{i:0;a:1:{s:2:"h1";s:8:",@no_tid";}i:1;a:2:{s:1:"A";a:6:{s:5:"class";s:8:"leftPad5";s:5:"label";s:4:"Type";s:7:"no_lang";s:1:"1";s:8:"onchange";s:1:"1";s:4:"name";s:3:"tid";s:4:"type";s:6:"select";}s:1:"B";a:7:{s:5:"label";s:1:" ";s:6:"needed";s:1:"1";s:7:"no_lang";s:1:"1";s:8:"readonly";s:4:"true";s:4:"name";s:7:"typegfx";s:4:"type";s:4:"html";s:4:"span";s:6:",space";}}}s:4:"cols";i:2;s:4:"rows";i:1;}}i:3;a:2:{s:1:"A";a:4:{s:4:"name";s:232:"addressbook.edit.general|addressbook.edit.cats|addressbook.edit.home|addressbook.edit.details|addressbook.edit.links|addressbook.edit.distribution_list|addressbook.edit.custom|addressbook.edit.custom_private|addressbook.edit.history";s:4:"type";s:3:"tab";s:5:"label";s:87:"General|Categories|Private|Details|Links|Distribution lists|Extra|Extra private|History";s:4:"help";s:142:"Name, Address|Categories|Home address, Birthday, ...|Categories, Notes, ...|Links|Distribution lists, ...|Custom fields|Private custom fields|";}s:1:"B";a:5:{s:4:"type";s:4:"vbox";s:4:"size";s:1:"3";i:1;a:2:{s:4:"name";s:22:"addressbook.editphones";s:4:"type";s:8:"template";}i:2;a:5:{s:4:"type";s:8:"groupbox";s:4:"size";s:1:"1";s:4:"span";s:11:",phoneGroup";s:5:"label";s:13:"Phone Numbers";i:1;a:4:{s:4:"type";s:4:"grid";s:4:"data";a:6:{i:0;a:2:{s:1:"A";s:2:"20";s:1:"B";s:3:"120";}i:1;a:4:{s:1:"A";a:2:{s:4:"type";s:5:"image";s:4:"name";s:5:"phone";}s:1:"B";a:3:{s:3:"for";s:8:"tel_work";s:4:"type";s:5:"label";s:5:"label";s:8:"business";}s:1:"C";a:4:{s:4:"name";s:8:"tel_work";s:4:"size";s:5:"24,40";s:4:"type";s:9:"url-phone";s:4:"span";s:11:",telNumbers";}s:1:"D";a:4:{s:4:"name";s:10:"tel_prefer";s:4:"size";s:17:"tel_work,♥";s:4:"type";s:5:"radio";s:4:"help";s:46:"select phone number as prefered way of contact";}}i:2;a:4:{s:1:"A";a:1:{s:4:"type";s:5:"label";}s:1:"B";a:3:{s:3:"for";s:8:"tel_cell";s:4:"type";s:5:"label";s:5:"label";s:12:"mobile phone";}s:1:"C";a:4:{s:4:"name";s:8:"tel_cell";s:4:"size";s:5:"24,40";s:4:"type";s:9:"url-phone";s:4:"span";s:11:",telNumbers";}s:1:"D";a:4:{s:4:"name";s:10:"tel_prefer";s:4:"size";s:17:"tel_cell,♥";s:4:"type";s:5:"radio";s:4:"help";s:46:"select phone number as prefered way of contact";}}i:3;a:4:{s:1:"A";a:1:{s:4:"type";s:5:"label";}s:1:"B";a:3:{s:3:"for";s:8:"tel_home";s:4:"type";s:5:"label";s:5:"label";s:7:"Private";}s:1:"C";a:4:{s:4:"name";s:8:"tel_home";s:4:"size";s:5:"24,40";s:4:"type";s:9:"url-phone";s:4:"span";s:11:",telNumbers";}s:1:"D";a:4:{s:4:"name";s:10:"tel_prefer";s:4:"size";s:17:"tel_home,♥";s:4:"type";s:5:"radio";s:4:"help";s:46:"select phone number as prefered way of contact";}}i:4;a:4:{s:1:"A";a:1:{s:4:"type";s:5:"label";}s:1:"B";a:2:{s:4:"type";s:5:"label";s:5:"label";s:3:"Fax";}s:1:"C";a:4:{s:4:"name";s:7:"tel_fax";s:4:"size";s:5:"24,40";s:4:"type";s:9:"url-phone";s:4:"span";s:11:",telNumbers";}s:1:"D";a:4:{s:4:"name";s:10:"tel_prefer";s:4:"size";s:16:"tel_fax,♥";s:4:"type";s:5:"radio";s:4:"help";s:46:"select phone number as prefered way of contact";}}i:5;a:4:{s:1:"A";a:1:{s:4:"type";s:5:"label";}s:1:"B";a:1:{s:4:"type";s:5:"label";}s:1:"C";a:5:{s:9:"accesskey";s:1:"m";s:5:"label";s:8:"More ...";s:7:"onclick";s:111:"jQuery(\'table.editphones\').css(\'display\',\'inline\'); if (window.showphones) showphones(this.form); return false;";s:4:"name";s:12:"button[more]";s:4:"type";s:6:"button";}s:1:"D";a:1:{s:4:"type";s:5:"label";}}}s:4:"cols";i:4;s:4:"rows";i:5;}}i:3;a:5:{s:4:"type";s:8:"groupbox";s:4:"size";s:1:"1";s:4:"span";s:11:",emailGroup";s:5:"label";s:16:"Email & Internet";i:1;a:4:{s:4:"type";s:4:"grid";s:4:"data";a:5:{i:0;a:2:{s:1:"A";s:2:"20";s:1:"B";s:3:"120";}i:1;a:3:{s:1:"A";a:2:{s:4:"type";s:5:"image";s:4:"name";s:8:"internet";}s:1:"B";a:3:{s:3:"for";s:3:"url";s:4:"type";s:5:"label";s:5:"label";s:3:"url";}s:1:"C";a:3:{s:4:"name";s:3:"url";s:4:"size";s:6:"28,128";s:4:"type";s:3:"url";}}i:2;a:3:{s:1:"A";a:1:{s:4:"type";s:5:"label";}s:1:"B";a:3:{s:3:"for";s:8:"url_home";s:4:"type";s:5:"label";s:5:"label";s:7:"Private";}s:1:"C";a:3:{s:4:"name";s:8:"url_home";s:4:"size";s:6:"28,128";s:4:"type";s:3:"url";}}i:3;a:3:{s:1:"A";a:2:{s:4:"type";s:5:"image";s:4:"name";s:9:"email.png";}s:1:"B";a:3:{s:3:"for";s:5:"email";s:4:"type";s:5:"label";s:5:"label";s:5:"email";}s:1:"C";a:4:{s:8:"onchange";s:30:"check_value(this,\'$cont[id]\');";s:4:"name";s:5:"email";s:4:"size";s:6:"28,128";s:4:"type";s:9:"url-email";}}i:4;a:3:{s:1:"A";a:1:{s:4:"type";s:5:"label";}s:1:"B";a:3:{s:3:"for";s:10:"email_home";s:4:"type";s:5:"label";s:5:"label";s:7:"Private";}s:1:"C";a:4:{s:8:"onchange";s:30:"check_value(this,\'$cont[id]\');";s:4:"name";s:10:"email_home";s:4:"size";s:6:"28,128";s:4:"type";s:9:"url-email";}}}s:4:"cols";i:3;s:4:"rows";i:4;}}}}i:4;a:2:{s:1:"A";a:9:{s:4:"type";s:4:"hbox";s:4:"size";s:1:"7";i:1;a:4:{s:5:"label";s:4:"Edit";s:7:"onclick";s:189:"window.open(egw::link(\'/index.php\',\'menuaction=addressbook.addressbook_ui.edit&contact_id=$cont[id]\'),\'_blank\',\'dependent=yes,width=850,height=460,scrollbars=yes,status=yes\'); return false;";s:4:"name";s:12:"button[edit]";s:4:"type";s:6:"button";}i:2;a:4:{s:5:"label";s:4:"Copy";s:7:"onclick";s:198:"window.open(egw::link(\'/index.php\',\'menuaction=addressbook.addressbook_ui.edit&contact_id=$cont[id]&makecp=1\'),\'_blank\',\'dependent=yes,width=850,height=440,scrollbars=yes,status=yes\'); return false;";s:4:"name";s:12:"button[copy]";s:4:"type";s:6:"button";}i:3;a:4:{s:5:"label";s:5:"vCard";s:4:"name";s:13:"button[vcard]";s:4:"type";s:6:"button";s:4:"help";s:35:"download this contact as vCard file";}i:4;a:4:{s:9:"accesskey";s:1:"s";s:5:"label";s:4:"Save";s:4:"name";s:12:"button[save]";s:4:"type";s:6:"button";}i:5;a:3:{s:5:"label";s:5:"Apply";s:4:"name";s:13:"button[apply]";s:4:"type";s:6:"button";}i:6;a:4:{s:5:"label";s:6:"Cancel";s:7:"onclick";s:65:"if($cont[view] || false) return true; self.close(); return false;";s:4:"name";s:14:"button[cancel]";s:4:"type";s:6:"button";}i:7;a:5:{s:5:"label";s:31:"change all organisation members";s:4:"span";s:3:"all";s:4:"name";s:10:"change_org";s:4:"type";s:8:"checkbox";s:4:"help";s:73:"Apply changes to all members, whose fields have the same previous content";}}s:1:"B";a:6:{s:5:"align";s:5:"right";s:5:"label";s:6:"Delete";s:7:"onclick";s:65:"return confirm(\'Are you shure you want to delete this contact?\');";s:8:"tabindex";s:2:"25";s:4:"name";s:14:"button[delete]";s:4:"type";s:6:"button";}}}s:4:"cols";i:2;s:4:"rows";i:4;}}', 'size' => '', 'style' => '', 'modified' => '1375194166',); |
|
| 28 | 28 | |
| 29 | -$templ_data[] = array('name' => 'addressbook.edit.access','template' => '','lang' => '','group' => '0','version' => '','data' => 'a:1:{i:0;a:6:{s:4:"type";s:4:"grid";s:4:"data";a:3:{i:0;a:1:{s:2:"c2";s:4:",top";}i:1;a:2:{s:1:"A";a:2:{s:4:"type";s:5:"label";s:5:"label";s:20:"Publish into groups:";}s:1:"B";a:3:{s:4:"type";s:6:"manual";s:7:"onclick";s:13:"return false;";s:4:"name";s:30:"ManualAddressbookPublishgroups";}}i:2;a:2:{s:1:"A";a:5:{s:4:"type";s:6:"select";s:4:"size";s:1:"5";s:4:"name";s:16:"published_groups";s:4:"span";s:3:"all";s:7:"no_lang";s:1:"1";}s:1:"B";a:1:{s:4:"type";s:5:"label";}}}s:4:"rows";i:2;s:4:"cols";i:2;s:4:"size";s:4:",250";s:7:"options";a:1:{i:1;s:3:"250";}}}','size' => ',250','style' => '','modified' => '1140005589',); |
|
| 29 | +$templ_data[] = array('name' => 'addressbook.edit.access', 'template' => '', 'lang' => '', 'group' => '0', 'version' => '', 'data' => 'a:1:{i:0;a:6:{s:4:"type";s:4:"grid";s:4:"data";a:3:{i:0;a:1:{s:2:"c2";s:4:",top";}i:1;a:2:{s:1:"A";a:2:{s:4:"type";s:5:"label";s:5:"label";s:20:"Publish into groups:";}s:1:"B";a:3:{s:4:"type";s:6:"manual";s:7:"onclick";s:13:"return false;";s:4:"name";s:30:"ManualAddressbookPublishgroups";}}i:2;a:2:{s:1:"A";a:5:{s:4:"type";s:6:"select";s:4:"size";s:1:"5";s:4:"name";s:16:"published_groups";s:4:"span";s:3:"all";s:7:"no_lang";s:1:"1";}s:1:"B";a:1:{s:4:"type";s:5:"label";}}}s:4:"rows";i:2;s:4:"cols";i:2;s:4:"size";s:4:",250";s:7:"options";a:1:{i:1;s:3:"250";}}}', 'size' => ',250', 'style' => '', 'modified' => '1140005589',); |
|
| 30 | 30 | |
| 31 | -$templ_data[] = array('name' => 'addressbook.edit.cats','template' => '','lang' => '','group' => '0','version' => '1.9.002','data' => 'a:1:{i:0;a:6:{s:4:"type";s:4:"grid";s:4:"data";a:2:{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:11:"cat_id_tree";s:4:"size";s:13:"13,,width:99%";}}}s:4:"rows";i:1;s:4:"cols";i:4;s:4:"size";s:17:"100%,286,,,,,auto";s:7:"options";a:3:{i:0;s:4:"100%";i:1;s:3:"286";i:6;s:4:"auto";}}}','size' => '100%,286,,,,,auto','style' => '','modified' => '1360234197',); |
|
| 31 | +$templ_data[] = array('name' => 'addressbook.edit.cats', 'template' => '', 'lang' => '', 'group' => '0', 'version' => '1.9.002', 'data' => 'a:1:{i:0;a:6:{s:4:"type";s:4:"grid";s:4:"data";a:2:{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:11:"cat_id_tree";s:4:"size";s:13:"13,,width:99%";}}}s:4:"rows";i:1;s:4:"cols";i:4;s:4:"size";s:17:"100%,286,,,,,auto";s:7:"options";a:3:{i:0;s:4:"100%";i:1;s:3:"286";i:6;s:4:"auto";}}}', 'size' => '100%,286,,,,,auto', 'style' => '', 'modified' => '1360234197',); |
|
| 32 | 32 | |
| 33 | -$templ_data[] = array('name' => 'addressbook.edit.custom','template' => '','lang' => '','group' => '0','version' => '1.9.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:2:"th";s:2:"h2";s:4:"100%";s:2:"h1";s:2:"20";}i:1;a:1:{s:1:"A";a:2:{s:4:"type";s:5:"label";s:5:"label";s:13:"Custom fields";}}i:2;a:1:{s:1:"A";a:2:{s:4:"type";s:12:"customfields";s:4:"size";s:32:"$cont[tid],$cont[no_private_cfs]";}}}s:4:"rows";i:2;s:4:"cols";i:1;s:4:"size";s:25:"100%,286,,row_on,0,0,auto";s:7:"options";a:6:{i:3;s:6:"row_on";i:0;s:4:"100%";i:1;s:3:"286";i:6;s:4:"auto";i:4;s:1:"0";i:5;s:1:"0";}}}','size' => '100%,286,,row_on,0,0,auto','style' => '','modified' => '1200540144',); |
|
| 33 | +$templ_data[] = array('name' => 'addressbook.edit.custom', 'template' => '', 'lang' => '', 'group' => '0', 'version' => '1.9.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:2:"th";s:2:"h2";s:4:"100%";s:2:"h1";s:2:"20";}i:1;a:1:{s:1:"A";a:2:{s:4:"type";s:5:"label";s:5:"label";s:13:"Custom fields";}}i:2;a:1:{s:1:"A";a:2:{s:4:"type";s:12:"customfields";s:4:"size";s:32:"$cont[tid],$cont[no_private_cfs]";}}}s:4:"rows";i:2;s:4:"cols";i:1;s:4:"size";s:25:"100%,286,,row_on,0,0,auto";s:7:"options";a:6:{i:3;s:6:"row_on";i:0;s:4:"100%";i:1;s:3:"286";i:6;s:4:"auto";i:4;s:1:"0";i:5;s:1:"0";}}}', 'size' => '100%,286,,row_on,0,0,auto', 'style' => '', 'modified' => '1200540144',); |
|
| 34 | 34 | |
| 35 | -$templ_data[] = array('name' => 'addressbook.edit.custom_private','template' => '','lang' => '','group' => '0','version' => '1.9.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:2:"th";s:2:"h2";s:4:"100%";s:2:"h1";s:2:"20";}i:1;a:1:{s:1:"A";a:2:{s:4:"type";s:5:"label";s:5:"label";s:13:"Custom fields";}}i:2;a:1:{s:1:"A";a:3:{s:4:"type";s:12:"customfields";s:4:"size";s:12:"$cont[tid],1";s:4:"name";s:11:"private_cfs";}}}s:4:"rows";i:2;s:4:"cols";i:1;s:4:"size";s:25:"100%,286,,row_on,0,0,auto";s:7:"options";a:6:{i:3;s:6:"row_on";i:0;s:4:"100%";i:1;s:3:"286";i:6;s:4:"auto";i:4;s:1:"0";i:5;s:1:"0";}}}','size' => '100%,286,,row_on,0,0,auto','style' => '','modified' => '1200540111',); |
|
| 35 | +$templ_data[] = array('name' => 'addressbook.edit.custom_private', 'template' => '', 'lang' => '', 'group' => '0', 'version' => '1.9.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:2:"th";s:2:"h2";s:4:"100%";s:2:"h1";s:2:"20";}i:1;a:1:{s:1:"A";a:2:{s:4:"type";s:5:"label";s:5:"label";s:13:"Custom fields";}}i:2;a:1:{s:1:"A";a:3:{s:4:"type";s:12:"customfields";s:4:"size";s:12:"$cont[tid],1";s:4:"name";s:11:"private_cfs";}}}s:4:"rows";i:2;s:4:"cols";i:1;s:4:"size";s:25:"100%,286,,row_on,0,0,auto";s:7:"options";a:6:{i:3;s:6:"row_on";i:0;s:4:"100%";i:1;s:3:"286";i:6;s:4:"auto";i:4;s:1:"0";i:5;s:1:"0";}}}', 'size' => '100%,286,,row_on,0,0,auto', 'style' => '', 'modified' => '1200540111',); |
|
| 36 | 36 | |
| 37 | -$templ_data[] = array('name' => 'addressbook.edit.details','template' => '','lang' => '','group' => '0','version' => '1.9.002','data' => 'a:1:{i:0;a:6:{s:4:"type";s:4:"grid";s:4:"data";a:7:{i:0;a:5:{s:2:"c1";s:4:",top";s:2:"c2";s:11:"row_off,top";s:2:"h1";s:9:",@cat_tab";s:2:"c6";s:6:"row_on";s:2:"c5";s:11:"row_off,top";}i:1;a:3:{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:12:"3,,width:99%";}}i:2;a:3:{s:1:"A";a:2:{s:4:"type";s:5:"image";s:4:"name";s:4:"edit";}s:1:"B";a:2:{s:4:"type";s:5:"label";s:5:"label";s:5:"Notes";}s:1:"C";a:3:{s:4:"type";s:8:"textarea";s:4:"size";s:4:"6,50";s:4:"name";s:4:"note";}}i:3;a:3:{s:1:"A";a:2:{s:4:"type";s:5:"image";s:4:"name";s:4:"home";}s:1:"B";a:2:{s:4:"type";s:5:"label";s:5:"label";s:9:"Last date";}s:1:"C";a:2:{s:4:"type";s:4:"link";s:4:"name";s:9:"last_link";}}i:4;a:3:{s:1:"A";a:1:{s:4:"type";s:5:"label";}s:1:"B";a:2:{s:4:"type";s:5:"label";s:5:"label";s:9:"Next date";}s:1:"C";a:2:{s:4:"type";s:4:"link";s:4:"name";s:9:"next_link";}}i:5;a:3:{s:1:"A";a:2:{s:4:"type";s:5:"image";s:4:"name";s:4:"gear";}s:1:"B";a:3:{s:4:"type";s:14:"select-account";s:8:"readonly";s:1:"1";s:5:"label";s:7:"Created";}s:1:"C";a:5:{s:4:"type";s:4:"hbox";s:8:"readonly";s:1:"1";s:4:"size";s:6:"2,,0,0";i:1;a:4:{s:4:"type";s:14:"select-account";s:4:"name";s:7:"creator";s:8:"readonly";s:1:"1";i:1;a:4:{s:4:"type";s:4:"hbox";s:4:"name";s:7:"creator";s:8:"readonly";s:1:"1";s:4:"span";s:9:",leftPad5";}}i:2;a:4:{s:4:"type";s:9:"date-time";s:4:"name";s:7:"created";s:4:"span";s:9:",leftPad5";s:8:"readonly";s:1:"1";}}}i:6;a:3:{s:1:"A";a:1:{s:4:"type";s:5:"label";}s:1:"B";a:2:{s:4:"type";s:5:"label";s:5:"label";s:13:"Last modified";}s:1:"C";a:5:{s:4:"type";s:4:"hbox";s:8:"readonly";s:1:"1";s:4:"size";s:6:"2,,0,0";i:1;a:4:{s:4:"type";s:14:"select-account";s:4:"name";s:8:"modifier";s:8:"readonly";s:1:"1";i:1;a:4:{s:4:"type";s:4:"hbox";s:4:"name";s:7:"creator";s:8:"readonly";s:1:"1";s:4:"span";s:9:",leftPad5";}}i:2;a:4:{s:4:"type";s:9:"date-time";s:4:"name";s:8:"modified";s:4:"span";s:9:",leftPad5";s:8:"readonly";s:1:"1";}}}}s:4:"rows";i:6;s:4:"cols";i:3;s:4:"size";s:17:"100%,286,,,,,auto";s:7:"options";a:3:{i:0;s:4:"100%";i:1;s:3:"286";i:6;s:4:"auto";}}}','size' => '100%,286,,,,,auto','style' => '','modified' => '1165511695',); |
|
| 37 | +$templ_data[] = array('name' => 'addressbook.edit.details', 'template' => '', 'lang' => '', 'group' => '0', 'version' => '1.9.002', 'data' => 'a:1:{i:0;a:6:{s:4:"type";s:4:"grid";s:4:"data";a:7:{i:0;a:5:{s:2:"c1";s:4:",top";s:2:"c2";s:11:"row_off,top";s:2:"h1";s:9:",@cat_tab";s:2:"c6";s:6:"row_on";s:2:"c5";s:11:"row_off,top";}i:1;a:3:{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:12:"3,,width:99%";}}i:2;a:3:{s:1:"A";a:2:{s:4:"type";s:5:"image";s:4:"name";s:4:"edit";}s:1:"B";a:2:{s:4:"type";s:5:"label";s:5:"label";s:5:"Notes";}s:1:"C";a:3:{s:4:"type";s:8:"textarea";s:4:"size";s:4:"6,50";s:4:"name";s:4:"note";}}i:3;a:3:{s:1:"A";a:2:{s:4:"type";s:5:"image";s:4:"name";s:4:"home";}s:1:"B";a:2:{s:4:"type";s:5:"label";s:5:"label";s:9:"Last date";}s:1:"C";a:2:{s:4:"type";s:4:"link";s:4:"name";s:9:"last_link";}}i:4;a:3:{s:1:"A";a:1:{s:4:"type";s:5:"label";}s:1:"B";a:2:{s:4:"type";s:5:"label";s:5:"label";s:9:"Next date";}s:1:"C";a:2:{s:4:"type";s:4:"link";s:4:"name";s:9:"next_link";}}i:5;a:3:{s:1:"A";a:2:{s:4:"type";s:5:"image";s:4:"name";s:4:"gear";}s:1:"B";a:3:{s:4:"type";s:14:"select-account";s:8:"readonly";s:1:"1";s:5:"label";s:7:"Created";}s:1:"C";a:5:{s:4:"type";s:4:"hbox";s:8:"readonly";s:1:"1";s:4:"size";s:6:"2,,0,0";i:1;a:4:{s:4:"type";s:14:"select-account";s:4:"name";s:7:"creator";s:8:"readonly";s:1:"1";i:1;a:4:{s:4:"type";s:4:"hbox";s:4:"name";s:7:"creator";s:8:"readonly";s:1:"1";s:4:"span";s:9:",leftPad5";}}i:2;a:4:{s:4:"type";s:9:"date-time";s:4:"name";s:7:"created";s:4:"span";s:9:",leftPad5";s:8:"readonly";s:1:"1";}}}i:6;a:3:{s:1:"A";a:1:{s:4:"type";s:5:"label";}s:1:"B";a:2:{s:4:"type";s:5:"label";s:5:"label";s:13:"Last modified";}s:1:"C";a:5:{s:4:"type";s:4:"hbox";s:8:"readonly";s:1:"1";s:4:"size";s:6:"2,,0,0";i:1;a:4:{s:4:"type";s:14:"select-account";s:4:"name";s:8:"modifier";s:8:"readonly";s:1:"1";i:1;a:4:{s:4:"type";s:4:"hbox";s:4:"name";s:7:"creator";s:8:"readonly";s:1:"1";s:4:"span";s:9:",leftPad5";}}i:2;a:4:{s:4:"type";s:9:"date-time";s:4:"name";s:8:"modified";s:4:"span";s:9:",leftPad5";s:8:"readonly";s:1:"1";}}}}s:4:"rows";i:6;s:4:"cols";i:3;s:4:"size";s:17:"100%,286,,,,,auto";s:7:"options";a:3:{i:0;s:4:"100%";i:1;s:3:"286";i:6;s:4:"auto";}}}', 'size' => '100%,286,,,,,auto', 'style' => '', 'modified' => '1165511695',); |
|
| 38 | 38 | |
| 39 | -$templ_data[] = array('name' => 'addressbook.edit.distribution_list','template' => '','lang' => '','group' => '0','version' => '1.9.001','data' => 'a:1:{i:0;a:6:{s:4:"type";s:4:"grid";s:4:"data";a:3:{i:0;a:1:{s:2:"c1";s:2:"th";}i:1;a:1:{s:1:"A";a:2:{s:4:"type";s:5:"label";s:5:"label";s:18:"Distribution lists";}}i:2;a:1:{s:1:"A";a:5:{s:4:"type";s:4:"grid";s:7:"options";a:0:{}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:4:"span";s:3:"all";s:4:"name";s:13:"distrib_lists";}}}s:4:"rows";i:1;s:4:"cols";i:1;}}}s:4:"rows";i:2;s:4:"cols";i:1;s:4:"size";s:17:"100%,286,,,,,auto";s:7:"options";a:3:{i:0;s:4:"100%";i:1;s:3:"286";i:6;s:4:"auto";}}}','size' => '100%,286,,,,,auto','style' => '','modified' => '1200059576',); |
|
| 39 | +$templ_data[] = array('name' => 'addressbook.edit.distribution_list', 'template' => '', 'lang' => '', 'group' => '0', 'version' => '1.9.001', 'data' => 'a:1:{i:0;a:6:{s:4:"type";s:4:"grid";s:4:"data";a:3:{i:0;a:1:{s:2:"c1";s:2:"th";}i:1;a:1:{s:1:"A";a:2:{s:4:"type";s:5:"label";s:5:"label";s:18:"Distribution lists";}}i:2;a:1:{s:1:"A";a:5:{s:4:"type";s:4:"grid";s:7:"options";a:0:{}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:4:"span";s:3:"all";s:4:"name";s:13:"distrib_lists";}}}s:4:"rows";i:1;s:4:"cols";i:1;}}}s:4:"rows";i:2;s:4:"cols";i:1;s:4:"size";s:17:"100%,286,,,,,auto";s:7:"options";a:3:{i:0;s:4:"100%";i:1;s:3:"286";i:6;s:4:"auto";}}}', 'size' => '100%,286,,,,,auto', 'style' => '', 'modified' => '1200059576',); |
|
| 40 | 40 | |
| 41 | -$templ_data[] = array('name' => 'addressbook.edit.general','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:11:{i:0;a:7:{s:2:"c1";s:4:",top";s:3:"c10";s:7:",bottom";s:3:"h10";s:2:"25";s:2:"h9";s:34:",!@addr_format=city_state_postcode";s:2:"h8";s:34:",!@addr_format=city_state_postcode";s:2:"h6";s:33:",@addr_format=city_state_postcode";s:2:"h7";s:33:",@addr_format=city_state_postcode";}i:1;a:3:{s:1:"A";a:2:{s:4:"type";s:5:"image";s:4:"name";s:8:"accounts";}s:1:"B";a:4:{s:4:"type";s:4:"vbox";s:4:"size";s:1:"2";i:1;a:4:{s:4:"type";s:5:"image";s:4:"name";s:5:"photo";s:4:"span";s:6:",photo";s:7:"onclick";s:66:"jQuery(\'table.uploadphoto\').css(\'display\',\'inline\'); return false;";}i:2;a:2:{s:4:"type";s:8:"template";s:4:"name";s:23:"addressbook.edit.upload";}}s:1:"C";a:49:{s:4:"type";s:4:"grid";s:4:"data";a:5:{i:0;a:0:{}i:1;a:4:{s:1:"A";a:2:{s:4:"type";s:5:"label";s:5:"label";s:4:"Name";}s:1:"B";a:9:{s:4:"type";s:4:"text";s:4:"data";a:2:{i:0;a:2:{s:1:"A";s:11:",!@org_name";s:1:"B";s:11:",!@org_name";}i:1;a:3:{s:1:"A";a:4:{s:4:"type";s:4:"text";s:4:"name";s:8:"org_name";s:8:"readonly";s:1:"1";s:7:"no_lang";s:1:"1";}s:1:"B";a:2:{s:4:"type";s:5:"label";s:5:"label";s:1:":";}s:1:"C";a:4:{s:4:"type";s:4:"text";s:4:"name";s:4:"n_fn";s:7:"no_lang";s:1:"1";s:8:"readonly";s:1:"1";}}}s:4:"rows";i:1;s:4:"name";s:4:"n_fn";s:7:"no_lang";s:1:"1";s:7:"onclick";s:245:"jQuery(\'table.editname\').css(\'display\',\'inline\'); var focElem = document.getElementById(form::name(\'n_prefix\')); if (!(typeof(focElem) == \'undefined\') && typeof(focElem.focus)==\'function\') document.getElementById(form::name(\'n_prefix\')).focus();";s:4:"size";s:3:"-36";s:4:"span";s:12:"2,cursorHand";s:8:"readonly";s:1:"1";}s:1:"C";a:1:{s:4:"type";s:5:"label";}s:1:"D";a:3:{s:4:"type";s:5:"label";s:4:"span";s:10:",contactid";s:4:"name";s:2:"id";}}i:2;a:4:{s:1:"A";a:1:{s:4:"type";s:5:"label";}s:1:"B";a:2:{s:4:"type";s:8:"template";s:4:"name";s:21:"addressbook.edit.name";}s:1:"C";a:1:{s:4:"type";s:5:"label";}s:1:"D";a:1:{s:4:"type";s:5:"label";}}i:3;a:4:{s:1:"A";a:3:{s:4:"type";s:5:"label";s:4:"size";s:8:",,,title";s:5:"label";s:5:"Title";}s:1:"B";a:4:{s:4:"type";s:4:"text";s:4:"size";s:5:"36,64";s:4:"name";s:5:"title";s:4:"span";s:1:"2";}s:1:"C";a:1:{s:4:"type";s:5:"label";}s:1:"D";a:1:{s:4:"type";s:5:"label";}}i:4;a:4:{s:1:"A";a:3:{s:4:"type";s:5:"label";s:4:"size";s:7:",,,role";s:5:"label";s:4:"Role";}s:1:"B";a:3:{s:4:"type";s:4:"text";s:4:"size";s:5:"20,64";s:4:"name";s:4:"role";}s:1:"C";a:4:{s:4:"type";s:4:"text";s:4:"size";s:1:"5";s:5:"label";s:4:"Room";s:4:"name";s:4:"room";}s:1:"D";a:1:{s:4:"type";s:5:"label";}}}s:4:"rows";i:4;s:4:"cols";i:4;s:7:"no_lang";s:1:"1";i:3;a:1:{s:4:"type";s:5:"label";}i:4;a:1:{s:4:"type";s:5:"label";}i:5;a:1:{s:4:"type";s:5:"label";}i:6;a:1:{s:4:"type";s:5:"label";}i:7;a:1:{s:4:"type";s:5:"label";}i:8;a:1:{s:4:"type";s:5:"label";}i:9;a:1:{s:4:"type";s:5:"label";}i:10;a:1:{s:4:"type";s:5:"label";}i:11;a:1:{s:4:"type";s:5:"label";}i:12;a:1:{s:4:"type";s:5:"label";}i:13;a:1:{s:4:"type";s:5:"label";}i:14;a:1:{s:4:"type";s:5:"label";}i:15;a:1:{s:4:"type";s:5:"label";}i:16;a:1:{s:4:"type";s:5:"label";}i:17;a:1:{s:4:"type";s:5:"label";}i:18;a:1:{s:4:"type";s:5:"label";}i:19;a:1:{s:4:"type";s:5:"label";}i:20;a:1:{s:4:"type";s:5:"label";}i:21;a:1:{s:4:"type";s:5:"label";}i:22;a:1:{s:4:"type";s:5:"label";}i:23;a:1:{s:4:"type";s:5:"label";}i:24;a:1:{s:4:"type";s:5:"label";}i:25;a:1:{s:4:"type";s:5:"label";}i:26;a:1:{s:4:"type";s:5:"label";}i:27;a:1:{s:4:"type";s:5:"label";}i:28;a:1:{s:4:"type";s:5:"label";}i:29;a:1:{s:4:"type";s:5:"label";}i:30;a:1:{s:4:"type";s:5:"label";}i:31;a:1:{s:4:"type";s:5:"label";}i:32;a:1:{s:4:"type";s:5:"label";}i:33;a:1:{s:4:"type";s:5:"label";}i:34;a:1:{s:4:"type";s:5:"label";}i:35;a:1:{s:4:"type";s:5:"label";}i:36;a:1:{s:4:"type";s:5:"label";}i:37;a:1:{s:4:"type";s:5:"label";}i:38;a:1:{s:4:"type";s:5:"label";}i:39;a:1:{s:4:"type";s:5:"label";}i:40;a:1:{s:4:"type";s:5:"label";}i:41;a:1:{s:4:"type";s:5:"label";}i:42;a:1:{s:4:"type";s:5:"label";}i:43;a:1:{s:4:"type";s:5:"label";}i:44;a:1:{s:4:"type";s:5:"label";}i:45;a:1:{s:4:"type";s:5:"label";}s:7:"options";a:0:{}}}i:2;a:3:{s:1:"A";a:2:{s:4:"type";s:5:"image";s:4:"name";s:4:"home";}s:1:"B";a:2:{s:4:"type";s:5:"label";s:5:"label";s:12:"Organisation";}s:1:"C";a:4:{s:4:"type";s:4:"text";s:4:"name";s:8:"org_name";s:4:"size";s:6:"45,128";s:8:"onchange";s:30:"check_value(this,\'$cont[id]\');";}}i:3;a:3:{s:1:"A";a:1:{s:4:"type";s:5:"label";}s:1:"B";a:3:{s:4:"type";s:5:"label";s:5:"label";s:10:"department";s:4:"size";s:11:",,,org_unit";}s:1:"C";a:4:{s:4:"type";s:4:"text";s:4:"name";s:8:"org_unit";s:4:"size";s:5:"45,64";s:8:"onchange";s:30:"check_value(this,\'$cont[id]\');";}}i:4;a:3:{s:1:"A";a:2:{s:4:"type";s:5:"image";s:4:"name";s:6:"gohome";}s:1:"B";a:3:{s:4:"type";s:5:"label";s:5:"label";s:6:"street";s:4:"size";s:17:",,,adr_one_street";}s:1:"C";a:3:{s:4:"type";s:4:"text";s:4:"size";s:5:"45,64";s:4:"name";s:14:"adr_one_street";}}i:5;a:3:{s:1:"A";a:1:{s:4:"type";s:5:"label";}s:1:"B";a:1:{s:4:"type";s:5:"label";}s:1:"C";a:4:{s:4:"type";s:4:"text";s:4:"size";s:5:"45,64";s:4:"name";s:15:"adr_one_street2";s:4:"help";s:14:"address line 2";}}i:6;a:3:{s:1:"A";a:1:{s:4:"type";s:5:"label";}s:1:"B";a:3:{s:4:"type";s:5:"label";s:5:"label";s:4:"city";s:4:"size";s:19:",,,adr_one_locality";}s:1:"C";a:47:{s:4:"type";s:4:"hbox";s:4:"size";s:6:"2,,0,0";i:1;a:4:{s:4:"type";s:4:"text";s:4:"size";s:4:"5,64";s:4:"name";s:18:"adr_one_postalcode";s:4:"help";s:8:"ZIP Code";}i:2;a:5:{s:4:"type";s:4:"text";s:4:"size";s:5:"35,64";s:4:"name";s:16:"adr_one_locality";s:4:"help";s:4:"City";s:4:"span";s:9:",leftPad5";}i:3;a:1:{s:4:"type";s:5:"label";}i:4;a:1:{s:4:"type";s:5:"label";}i:5;a:1:{s:4:"type";s:5:"label";}i:6;a:1:{s:4:"type";s:5:"label";}i:7;a:1:{s:4:"type";s:5:"label";}i:8;a:1:{s:4:"type";s:5:"label";}i:9;a:1:{s:4:"type";s:5:"label";}i:10;a:1:{s:4:"type";s:5:"label";}i:11;a:1:{s:4:"type";s:5:"label";}i:12;a:1:{s:4:"type";s:5:"label";}i:13;a:1:{s:4:"type";s:5:"label";}i:14;a:1:{s:4:"type";s:5:"label";}i:15;a:1:{s:4:"type";s:5:"label";}i:16;a:1:{s:4:"type";s:5:"label";}i:17;a:1:{s:4:"type";s:5:"label";}i:18;a:1:{s:4:"type";s:5:"label";}i:19;a:1:{s:4:"type";s:5:"label";}i:20;a:1:{s:4:"type";s:5:"label";}i:21;a:1:{s:4:"type";s:5:"label";}i:22;a:1:{s:4:"type";s:5:"label";}i:23;a:1:{s:4:"type";s:5:"label";}i:24;a:1:{s:4:"type";s:5:"label";}i:25;a:1:{s:4:"type";s:5:"label";}i:26;a:1:{s:4:"type";s:5:"label";}i:27;a:1:{s:4:"type";s:5:"label";}i:28;a:1:{s:4:"type";s:5:"label";}i:29;a:1:{s:4:"type";s:5:"label";}i:30;a:1:{s:4:"type";s:5:"label";}i:31;a:1:{s:4:"type";s:5:"label";}i:32;a:1:{s:4:"type";s:5:"label";}i:33;a:1:{s:4:"type";s:5:"label";}i:34;a:1:{s:4:"type";s:5:"label";}i:35;a:1:{s:4:"type";s:5:"label";}i:36;a:1:{s:4:"type";s:5:"label";}i:37;a:1:{s:4:"type";s:5:"label";}i:38;a:1:{s:4:"type";s:5:"label";}i:39;a:1:{s:4:"type";s:5:"label";}i:40;a:1:{s:4:"type";s:5:"label";}i:41;a:1:{s:4:"type";s:5:"label";}i:42;a:1:{s:4:"type";s:5:"label";}i:43;a:1:{s:4:"type";s:5:"label";}i:44;a:1:{s:4:"type";s:5:"label";}i:45;a:1:{s:4:"type";s:5:"label";}}}i:7;a:3:{s:1:"A";a:1:{s:4:"type";s:5:"label";}s:1:"B";a:3:{s:4:"type";s:5:"label";s:5:"label";s:7:"country";s:4:"size";s:22:",,,adr_one_countryname";}s:1:"C";a:5:{s:4:"type";s:4:"hbox";s:4:"size";s:6:"3,,0,0";i:1;a:5:{s:4:"type";s:14:"select-country";s:4:"size";s:14:"Select one,0,1";s:4:"name";s:19:"adr_one_countrycode";s:4:"span";s:14:",countrySelect";s:8:"onchange";s:26:"show_custom_country(this);";}i:2;a:3:{s:4:"type";s:4:"text";s:4:"name";s:19:"adr_one_countryname";s:4:"span";s:15:",custom_country";}i:3;a:5:{s:4:"type";s:4:"text";s:4:"span";s:9:",leftPad5";s:4:"size";s:5:"19,64";s:4:"name";s:14:"adr_one_region";s:4:"help";s:5:"State";}}}i:8;a:3:{s:1:"A";a:1:{s:4:"type";s:5:"label";}s:1:"B";a:2:{s:4:"type";s:5:"label";s:5:"label";s:4:"City";}s:1:"C";a:5:{s:4:"type";s:4:"hbox";s:4:"size";s:6:"3,,0,0";i:1;a:4:{s:4:"type";s:4:"text";s:4:"size";s:5:"30,64";s:4:"name";s:16:"adr_one_locality";s:4:"help";s:4:"City";}i:2;a:5:{s:4:"type";s:4:"text";s:4:"span";s:9:",leftPad5";s:4:"size";s:4:"3,64";s:4:"name";s:14:"adr_one_region";s:4:"help";s:5:"State";}i:3;a:5:{s:4:"type";s:4:"text";s:4:"size";s:4:"5,64";s:4:"name";s:18:"adr_one_postalcode";s:4:"help";s:8:"ZIP Code";s:4:"span";s:9:",leftPad5";}}}i:9;a:3:{s:1:"A";a:1:{s:4:"type";s:5:"label";}s:1:"B";a:3:{s:4:"type";s:5:"label";s:5:"label";s:7:"country";s:4:"size";s:22:",,,adr_one_countryname";}s:1:"C";a:4:{s:4:"type";s:4:"hbox";s:4:"size";s:6:"2,,0,0";i:1;a:5:{s:4:"type";s:14:"select-country";s:4:"size";s:14:"Select one,0,1";s:4:"name";s:19:"adr_one_countrycode";s:8:"onchange";s:26:"show_custom_country(this);";s:4:"span";s:14:",countrySelect";}i:2;a:3:{s:4:"type";s:4:"text";s:4:"name";s:19:"adr_one_countryname";s:4:"span";s:15:",custom_country";}}}i:10;a:3:{s:1:"A";a:2:{s:4:"type";s:5:"image";s:4:"name";s:11:"private.png";}s:1:"B";a:2:{s:4:"type";s:5:"label";s:5:"label";s:11:"Addressbook";}s:1:"C";a:5:{s:4:"type";s:6:"select";s:4:"name";s:5:"owner";s:4:"help";s:42:"Addressbook the contact should be saved to";s:7:"no_lang";s:1:"1";s:4:"span";s:6:",owner";}}}s:4:"rows";i:10;s:4:"cols";i:3;s:4:"size";s:8:"100%,286";s:7:"options";a:2:{i:0;s:4:"100%";i:1;s:3:"286";}}}','size' => '100%,286','style' => '','modified' => '1285754805',); |
|
| 41 | +$templ_data[] = array('name' => 'addressbook.edit.general', '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:11:{i:0;a:7:{s:2:"c1";s:4:",top";s:3:"c10";s:7:",bottom";s:3:"h10";s:2:"25";s:2:"h9";s:34:",!@addr_format=city_state_postcode";s:2:"h8";s:34:",!@addr_format=city_state_postcode";s:2:"h6";s:33:",@addr_format=city_state_postcode";s:2:"h7";s:33:",@addr_format=city_state_postcode";}i:1;a:3:{s:1:"A";a:2:{s:4:"type";s:5:"image";s:4:"name";s:8:"accounts";}s:1:"B";a:4:{s:4:"type";s:4:"vbox";s:4:"size";s:1:"2";i:1;a:4:{s:4:"type";s:5:"image";s:4:"name";s:5:"photo";s:4:"span";s:6:",photo";s:7:"onclick";s:66:"jQuery(\'table.uploadphoto\').css(\'display\',\'inline\'); return false;";}i:2;a:2:{s:4:"type";s:8:"template";s:4:"name";s:23:"addressbook.edit.upload";}}s:1:"C";a:49:{s:4:"type";s:4:"grid";s:4:"data";a:5:{i:0;a:0:{}i:1;a:4:{s:1:"A";a:2:{s:4:"type";s:5:"label";s:5:"label";s:4:"Name";}s:1:"B";a:9:{s:4:"type";s:4:"text";s:4:"data";a:2:{i:0;a:2:{s:1:"A";s:11:",!@org_name";s:1:"B";s:11:",!@org_name";}i:1;a:3:{s:1:"A";a:4:{s:4:"type";s:4:"text";s:4:"name";s:8:"org_name";s:8:"readonly";s:1:"1";s:7:"no_lang";s:1:"1";}s:1:"B";a:2:{s:4:"type";s:5:"label";s:5:"label";s:1:":";}s:1:"C";a:4:{s:4:"type";s:4:"text";s:4:"name";s:4:"n_fn";s:7:"no_lang";s:1:"1";s:8:"readonly";s:1:"1";}}}s:4:"rows";i:1;s:4:"name";s:4:"n_fn";s:7:"no_lang";s:1:"1";s:7:"onclick";s:245:"jQuery(\'table.editname\').css(\'display\',\'inline\'); var focElem = document.getElementById(form::name(\'n_prefix\')); if (!(typeof(focElem) == \'undefined\') && typeof(focElem.focus)==\'function\') document.getElementById(form::name(\'n_prefix\')).focus();";s:4:"size";s:3:"-36";s:4:"span";s:12:"2,cursorHand";s:8:"readonly";s:1:"1";}s:1:"C";a:1:{s:4:"type";s:5:"label";}s:1:"D";a:3:{s:4:"type";s:5:"label";s:4:"span";s:10:",contactid";s:4:"name";s:2:"id";}}i:2;a:4:{s:1:"A";a:1:{s:4:"type";s:5:"label";}s:1:"B";a:2:{s:4:"type";s:8:"template";s:4:"name";s:21:"addressbook.edit.name";}s:1:"C";a:1:{s:4:"type";s:5:"label";}s:1:"D";a:1:{s:4:"type";s:5:"label";}}i:3;a:4:{s:1:"A";a:3:{s:4:"type";s:5:"label";s:4:"size";s:8:",,,title";s:5:"label";s:5:"Title";}s:1:"B";a:4:{s:4:"type";s:4:"text";s:4:"size";s:5:"36,64";s:4:"name";s:5:"title";s:4:"span";s:1:"2";}s:1:"C";a:1:{s:4:"type";s:5:"label";}s:1:"D";a:1:{s:4:"type";s:5:"label";}}i:4;a:4:{s:1:"A";a:3:{s:4:"type";s:5:"label";s:4:"size";s:7:",,,role";s:5:"label";s:4:"Role";}s:1:"B";a:3:{s:4:"type";s:4:"text";s:4:"size";s:5:"20,64";s:4:"name";s:4:"role";}s:1:"C";a:4:{s:4:"type";s:4:"text";s:4:"size";s:1:"5";s:5:"label";s:4:"Room";s:4:"name";s:4:"room";}s:1:"D";a:1:{s:4:"type";s:5:"label";}}}s:4:"rows";i:4;s:4:"cols";i:4;s:7:"no_lang";s:1:"1";i:3;a:1:{s:4:"type";s:5:"label";}i:4;a:1:{s:4:"type";s:5:"label";}i:5;a:1:{s:4:"type";s:5:"label";}i:6;a:1:{s:4:"type";s:5:"label";}i:7;a:1:{s:4:"type";s:5:"label";}i:8;a:1:{s:4:"type";s:5:"label";}i:9;a:1:{s:4:"type";s:5:"label";}i:10;a:1:{s:4:"type";s:5:"label";}i:11;a:1:{s:4:"type";s:5:"label";}i:12;a:1:{s:4:"type";s:5:"label";}i:13;a:1:{s:4:"type";s:5:"label";}i:14;a:1:{s:4:"type";s:5:"label";}i:15;a:1:{s:4:"type";s:5:"label";}i:16;a:1:{s:4:"type";s:5:"label";}i:17;a:1:{s:4:"type";s:5:"label";}i:18;a:1:{s:4:"type";s:5:"label";}i:19;a:1:{s:4:"type";s:5:"label";}i:20;a:1:{s:4:"type";s:5:"label";}i:21;a:1:{s:4:"type";s:5:"label";}i:22;a:1:{s:4:"type";s:5:"label";}i:23;a:1:{s:4:"type";s:5:"label";}i:24;a:1:{s:4:"type";s:5:"label";}i:25;a:1:{s:4:"type";s:5:"label";}i:26;a:1:{s:4:"type";s:5:"label";}i:27;a:1:{s:4:"type";s:5:"label";}i:28;a:1:{s:4:"type";s:5:"label";}i:29;a:1:{s:4:"type";s:5:"label";}i:30;a:1:{s:4:"type";s:5:"label";}i:31;a:1:{s:4:"type";s:5:"label";}i:32;a:1:{s:4:"type";s:5:"label";}i:33;a:1:{s:4:"type";s:5:"label";}i:34;a:1:{s:4:"type";s:5:"label";}i:35;a:1:{s:4:"type";s:5:"label";}i:36;a:1:{s:4:"type";s:5:"label";}i:37;a:1:{s:4:"type";s:5:"label";}i:38;a:1:{s:4:"type";s:5:"label";}i:39;a:1:{s:4:"type";s:5:"label";}i:40;a:1:{s:4:"type";s:5:"label";}i:41;a:1:{s:4:"type";s:5:"label";}i:42;a:1:{s:4:"type";s:5:"label";}i:43;a:1:{s:4:"type";s:5:"label";}i:44;a:1:{s:4:"type";s:5:"label";}i:45;a:1:{s:4:"type";s:5:"label";}s:7:"options";a:0:{}}}i:2;a:3:{s:1:"A";a:2:{s:4:"type";s:5:"image";s:4:"name";s:4:"home";}s:1:"B";a:2:{s:4:"type";s:5:"label";s:5:"label";s:12:"Organisation";}s:1:"C";a:4:{s:4:"type";s:4:"text";s:4:"name";s:8:"org_name";s:4:"size";s:6:"45,128";s:8:"onchange";s:30:"check_value(this,\'$cont[id]\');";}}i:3;a:3:{s:1:"A";a:1:{s:4:"type";s:5:"label";}s:1:"B";a:3:{s:4:"type";s:5:"label";s:5:"label";s:10:"department";s:4:"size";s:11:",,,org_unit";}s:1:"C";a:4:{s:4:"type";s:4:"text";s:4:"name";s:8:"org_unit";s:4:"size";s:5:"45,64";s:8:"onchange";s:30:"check_value(this,\'$cont[id]\');";}}i:4;a:3:{s:1:"A";a:2:{s:4:"type";s:5:"image";s:4:"name";s:6:"gohome";}s:1:"B";a:3:{s:4:"type";s:5:"label";s:5:"label";s:6:"street";s:4:"size";s:17:",,,adr_one_street";}s:1:"C";a:3:{s:4:"type";s:4:"text";s:4:"size";s:5:"45,64";s:4:"name";s:14:"adr_one_street";}}i:5;a:3:{s:1:"A";a:1:{s:4:"type";s:5:"label";}s:1:"B";a:1:{s:4:"type";s:5:"label";}s:1:"C";a:4:{s:4:"type";s:4:"text";s:4:"size";s:5:"45,64";s:4:"name";s:15:"adr_one_street2";s:4:"help";s:14:"address line 2";}}i:6;a:3:{s:1:"A";a:1:{s:4:"type";s:5:"label";}s:1:"B";a:3:{s:4:"type";s:5:"label";s:5:"label";s:4:"city";s:4:"size";s:19:",,,adr_one_locality";}s:1:"C";a:47:{s:4:"type";s:4:"hbox";s:4:"size";s:6:"2,,0,0";i:1;a:4:{s:4:"type";s:4:"text";s:4:"size";s:4:"5,64";s:4:"name";s:18:"adr_one_postalcode";s:4:"help";s:8:"ZIP Code";}i:2;a:5:{s:4:"type";s:4:"text";s:4:"size";s:5:"35,64";s:4:"name";s:16:"adr_one_locality";s:4:"help";s:4:"City";s:4:"span";s:9:",leftPad5";}i:3;a:1:{s:4:"type";s:5:"label";}i:4;a:1:{s:4:"type";s:5:"label";}i:5;a:1:{s:4:"type";s:5:"label";}i:6;a:1:{s:4:"type";s:5:"label";}i:7;a:1:{s:4:"type";s:5:"label";}i:8;a:1:{s:4:"type";s:5:"label";}i:9;a:1:{s:4:"type";s:5:"label";}i:10;a:1:{s:4:"type";s:5:"label";}i:11;a:1:{s:4:"type";s:5:"label";}i:12;a:1:{s:4:"type";s:5:"label";}i:13;a:1:{s:4:"type";s:5:"label";}i:14;a:1:{s:4:"type";s:5:"label";}i:15;a:1:{s:4:"type";s:5:"label";}i:16;a:1:{s:4:"type";s:5:"label";}i:17;a:1:{s:4:"type";s:5:"label";}i:18;a:1:{s:4:"type";s:5:"label";}i:19;a:1:{s:4:"type";s:5:"label";}i:20;a:1:{s:4:"type";s:5:"label";}i:21;a:1:{s:4:"type";s:5:"label";}i:22;a:1:{s:4:"type";s:5:"label";}i:23;a:1:{s:4:"type";s:5:"label";}i:24;a:1:{s:4:"type";s:5:"label";}i:25;a:1:{s:4:"type";s:5:"label";}i:26;a:1:{s:4:"type";s:5:"label";}i:27;a:1:{s:4:"type";s:5:"label";}i:28;a:1:{s:4:"type";s:5:"label";}i:29;a:1:{s:4:"type";s:5:"label";}i:30;a:1:{s:4:"type";s:5:"label";}i:31;a:1:{s:4:"type";s:5:"label";}i:32;a:1:{s:4:"type";s:5:"label";}i:33;a:1:{s:4:"type";s:5:"label";}i:34;a:1:{s:4:"type";s:5:"label";}i:35;a:1:{s:4:"type";s:5:"label";}i:36;a:1:{s:4:"type";s:5:"label";}i:37;a:1:{s:4:"type";s:5:"label";}i:38;a:1:{s:4:"type";s:5:"label";}i:39;a:1:{s:4:"type";s:5:"label";}i:40;a:1:{s:4:"type";s:5:"label";}i:41;a:1:{s:4:"type";s:5:"label";}i:42;a:1:{s:4:"type";s:5:"label";}i:43;a:1:{s:4:"type";s:5:"label";}i:44;a:1:{s:4:"type";s:5:"label";}i:45;a:1:{s:4:"type";s:5:"label";}}}i:7;a:3:{s:1:"A";a:1:{s:4:"type";s:5:"label";}s:1:"B";a:3:{s:4:"type";s:5:"label";s:5:"label";s:7:"country";s:4:"size";s:22:",,,adr_one_countryname";}s:1:"C";a:5:{s:4:"type";s:4:"hbox";s:4:"size";s:6:"3,,0,0";i:1;a:5:{s:4:"type";s:14:"select-country";s:4:"size";s:14:"Select one,0,1";s:4:"name";s:19:"adr_one_countrycode";s:4:"span";s:14:",countrySelect";s:8:"onchange";s:26:"show_custom_country(this);";}i:2;a:3:{s:4:"type";s:4:"text";s:4:"name";s:19:"adr_one_countryname";s:4:"span";s:15:",custom_country";}i:3;a:5:{s:4:"type";s:4:"text";s:4:"span";s:9:",leftPad5";s:4:"size";s:5:"19,64";s:4:"name";s:14:"adr_one_region";s:4:"help";s:5:"State";}}}i:8;a:3:{s:1:"A";a:1:{s:4:"type";s:5:"label";}s:1:"B";a:2:{s:4:"type";s:5:"label";s:5:"label";s:4:"City";}s:1:"C";a:5:{s:4:"type";s:4:"hbox";s:4:"size";s:6:"3,,0,0";i:1;a:4:{s:4:"type";s:4:"text";s:4:"size";s:5:"30,64";s:4:"name";s:16:"adr_one_locality";s:4:"help";s:4:"City";}i:2;a:5:{s:4:"type";s:4:"text";s:4:"span";s:9:",leftPad5";s:4:"size";s:4:"3,64";s:4:"name";s:14:"adr_one_region";s:4:"help";s:5:"State";}i:3;a:5:{s:4:"type";s:4:"text";s:4:"size";s:4:"5,64";s:4:"name";s:18:"adr_one_postalcode";s:4:"help";s:8:"ZIP Code";s:4:"span";s:9:",leftPad5";}}}i:9;a:3:{s:1:"A";a:1:{s:4:"type";s:5:"label";}s:1:"B";a:3:{s:4:"type";s:5:"label";s:5:"label";s:7:"country";s:4:"size";s:22:",,,adr_one_countryname";}s:1:"C";a:4:{s:4:"type";s:4:"hbox";s:4:"size";s:6:"2,,0,0";i:1;a:5:{s:4:"type";s:14:"select-country";s:4:"size";s:14:"Select one,0,1";s:4:"name";s:19:"adr_one_countrycode";s:8:"onchange";s:26:"show_custom_country(this);";s:4:"span";s:14:",countrySelect";}i:2;a:3:{s:4:"type";s:4:"text";s:4:"name";s:19:"adr_one_countryname";s:4:"span";s:15:",custom_country";}}}i:10;a:3:{s:1:"A";a:2:{s:4:"type";s:5:"image";s:4:"name";s:11:"private.png";}s:1:"B";a:2:{s:4:"type";s:5:"label";s:5:"label";s:11:"Addressbook";}s:1:"C";a:5:{s:4:"type";s:6:"select";s:4:"name";s:5:"owner";s:4:"help";s:42:"Addressbook the contact should be saved to";s:7:"no_lang";s:1:"1";s:4:"span";s:6:",owner";}}}s:4:"rows";i:10;s:4:"cols";i:3;s:4:"size";s:8:"100%,286";s:7:"options";a:2:{i:0;s:4:"100%";i:1;s:3:"286";}}}', 'size' => '100%,286', 'style' => '', 'modified' => '1285754805',); |
|
| 42 | 42 | |
| 43 | -$templ_data[] = array('name' => 'addressbook.edit.history','template' => '','lang' => '','group' => '0','version' => '1.9.001','data' => 'a:1:{i:0;a:6:{s:4:"type";s:4:"grid";s:4:"data";a:2:{i:0;a:1:{s:2:"c1";s:4:",top";}i:1;a:1:{s:1:"A";a:2:{s:4:"type";s:10:"historylog";s:4:"name";s:7:"history";}}}s:4:"rows";i:1;s:4:"cols";i:1;s:4:"size";s:17:"100%,286,,,,,auto";s:7:"options";a:3:{i:0;s:4:"100%";i:1;s:3:"286";i:6;s:4:"auto";}}}','size' => '100%,286,,,,,auto','style' => '','modified' => '1265051832',); |
|
| 43 | +$templ_data[] = array('name' => 'addressbook.edit.history', 'template' => '', 'lang' => '', 'group' => '0', 'version' => '1.9.001', 'data' => 'a:1:{i:0;a:6:{s:4:"type";s:4:"grid";s:4:"data";a:2:{i:0;a:1:{s:2:"c1";s:4:",top";}i:1;a:1:{s:1:"A";a:2:{s:4:"type";s:10:"historylog";s:4:"name";s:7:"history";}}}s:4:"rows";i:1;s:4:"cols";i:1;s:4:"size";s:17:"100%,286,,,,,auto";s:7:"options";a:3:{i:0;s:4:"100%";i:1;s:3:"286";i:6;s:4:"auto";}}}', 'size' => '100%,286,,,,,auto', 'style' => '', 'modified' => '1265051832',); |
|
| 44 | 44 | |
| 45 | -$templ_data[] = array('name' => 'addressbook.edit.home','template' => '','lang' => '','group' => '0','version' => '1.9.001','data' => 'a:1:{i:0;a:6:{s:4:"type";s:4:"grid";s:4:"data";a:9:{i:0;a:6:{s:2:"h5";s:35:",!@addr_format2=city_state_postcode";s:2:"c8";s:4:",top";s:2:"h7";s:2:"30";s:2:"h6";s:35:",!@addr_format2=city_state_postcode";s:2:"h4";s:34:",@addr_format2=city_state_postcode";s:2:"h3";s:34:",@addr_format2=city_state_postcode";}i:1;a:3:{s:1:"A";a:2:{s:4:"type";s:5:"image";s:4:"name";s:8:"accounts";}s:1:"B";a:3:{s:4:"type";s:5:"label";s:5:"label";s:6:"street";s:4:"size";s:17:",,,adr_two_street";}s:1:"C";a:3:{s:4:"type";s:4:"text";s:4:"size";s:5:"45,64";s:4:"name";s:14:"adr_two_street";}}i:2;a:3:{s:1:"A";a:1:{s:4:"type";s:5:"label";}s:1:"B";a:2:{s:4:"type";s:5:"label";s:4:"size";s:18:",,,adr_two_street2";}s:1:"C";a:4:{s:4:"type";s:4:"text";s:4:"size";s:5:"45,64";s:4:"name";s:15:"adr_two_street2";s:4:"help";s:14:"address line 2";}}i:3;a:3:{s:1:"A";a:1:{s:4:"type";s:5:"label";}s:1:"B";a:3:{s:4:"type";s:5:"label";s:5:"label";s:4:"city";s:4:"size";s:19:",,,adr_two_locality";}s:1:"C";a:47:{s:4:"type";s:4:"hbox";s:4:"size";s:6:"2,,0,0";i:1;a:4:{s:4:"type";s:4:"text";s:4:"size";s:4:"5,64";s:4:"name";s:18:"adr_two_postalcode";s:4:"help";s:8:"ZIP Code";}i:2;a:5:{s:4:"type";s:4:"text";s:4:"size";s:5:"35,64";s:4:"name";s:16:"adr_two_locality";s:4:"help";s:4:"City";s:4:"span";s:9:",leftPad5";}i:3;a:1:{s:4:"type";s:5:"label";}i:4;a:1:{s:4:"type";s:5:"label";}i:5;a:1:{s:4:"type";s:5:"label";}i:6;a:1:{s:4:"type";s:5:"label";}i:7;a:1:{s:4:"type";s:5:"label";}i:8;a:1:{s:4:"type";s:5:"label";}i:9;a:1:{s:4:"type";s:5:"label";}i:10;a:1:{s:4:"type";s:5:"label";}i:11;a:1:{s:4:"type";s:5:"label";}i:12;a:1:{s:4:"type";s:5:"label";}i:13;a:1:{s:4:"type";s:5:"label";}i:14;a:1:{s:4:"type";s:5:"label";}i:15;a:1:{s:4:"type";s:5:"label";}i:16;a:1:{s:4:"type";s:5:"label";}i:17;a:1:{s:4:"type";s:5:"label";}i:18;a:1:{s:4:"type";s:5:"label";}i:19;a:1:{s:4:"type";s:5:"label";}i:20;a:1:{s:4:"type";s:5:"label";}i:21;a:1:{s:4:"type";s:5:"label";}i:22;a:1:{s:4:"type";s:5:"label";}i:23;a:1:{s:4:"type";s:5:"label";}i:24;a:1:{s:4:"type";s:5:"label";}i:25;a:1:{s:4:"type";s:5:"label";}i:26;a:1:{s:4:"type";s:5:"label";}i:27;a:1:{s:4:"type";s:5:"label";}i:28;a:1:{s:4:"type";s:5:"label";}i:29;a:1:{s:4:"type";s:5:"label";}i:30;a:1:{s:4:"type";s:5:"label";}i:31;a:1:{s:4:"type";s:5:"label";}i:32;a:1:{s:4:"type";s:5:"label";}i:33;a:1:{s:4:"type";s:5:"label";}i:34;a:1:{s:4:"type";s:5:"label";}i:35;a:1:{s:4:"type";s:5:"label";}i:36;a:1:{s:4:"type";s:5:"label";}i:37;a:1:{s:4:"type";s:5:"label";}i:38;a:1:{s:4:"type";s:5:"label";}i:39;a:1:{s:4:"type";s:5:"label";}i:40;a:1:{s:4:"type";s:5:"label";}i:41;a:1:{s:4:"type";s:5:"label";}i:42;a:1:{s:4:"type";s:5:"label";}i:43;a:1:{s:4:"type";s:5:"label";}i:44;a:1:{s:4:"type";s:5:"label";}i:45;a:1:{s:4:"type";s:5:"label";}}}i:4;a:3:{s:1:"A";a:1:{s:4:"type";s:5:"label";}s:1:"B";a:3:{s:4:"type";s:5:"label";s:5:"label";s:7:"country";s:4:"size";s:22:",,,adr_two_countryname";}s:1:"C";a:5:{s:4:"type";s:4:"hbox";s:4:"size";s:6:"3,,0,0";i:1;a:5:{s:4:"type";s:14:"select-country";s:4:"size";s:14:"Select one,0,1";s:4:"name";s:19:"adr_two_countrycode";s:4:"span";s:14:",countrySelect";s:8:"onchange";s:26:"show_custom_country(this);";}i:2;a:3:{s:4:"type";s:4:"text";s:4:"name";s:19:"adr_two_countryname";s:4:"span";s:15:",custom_country";}i:3;a:5:{s:4:"type";s:4:"text";s:4:"span";s:9:",leftPad5";s:4:"size";s:5:"19,64";s:4:"name";s:14:"adr_two_region";s:4:"help";s:5:"State";}}}i:5;a:3:{s:1:"A";a:1:{s:4:"type";s:5:"label";}s:1:"B";a:3:{s:4:"type";s:5:"label";s:5:"label";s:4:"city";s:4:"size";s:19:",,,adr_two_locality";}s:1:"C";a:5:{s:4:"type";s:4:"hbox";s:4:"size";s:6:"3,,0,0";i:1;a:4:{s:4:"type";s:4:"text";s:4:"size";s:5:"30,64";s:4:"name";s:16:"adr_two_locality";s:4:"help";s:4:"City";}i:2;a:5:{s:4:"type";s:4:"text";s:4:"span";s:9:",leftPad5";s:4:"size";s:4:"3,64";s:4:"name";s:14:"adr_two_region";s:4:"help";s:5:"State";}i:3;a:5:{s:4:"type";s:4:"text";s:4:"size";s:4:"5,64";s:4:"name";s:18:"adr_two_postalcode";s:4:"help";s:8:"ZIP Code";s:4:"span";s:9:",leftPad5";}}}i:6;a:3:{s:1:"A";a:1:{s:4:"type";s:5:"label";}s:1:"B";a:2:{s:4:"type";s:5:"label";s:5:"label";s:7:"Country";}s:1:"C";a:4:{s:4:"type";s:4:"hbox";s:4:"size";s:6:"2,,0,0";i:1;a:5:{s:4:"type";s:14:"select-country";s:4:"size";s:14:"Select one,0,1";s:4:"name";s:19:"adr_two_countrycode";s:8:"onchange";s:26:"show_custom_country(this);";s:4:"span";s:14:",countrySelect";}i:2;a:3:{s:4:"type";s:4:"text";s:4:"name";s:19:"adr_two_countryname";s:4:"span";s:15:",custom_country";}}}i:7;a:3:{s:1:"A";a:2:{s:4:"type";s:5:"image";s:4:"name";s:4:"gear";}s:1:"B";a:3:{s:4:"type";s:5:"label";s:4:"size";s:7:",,,bday";s:5:"label";s:8:"Birthday";}s:1:"C";a:4:{s:4:"type";s:4:"hbox";i:1;a:3:{s:4:"type";s:4:"date";s:4:"size";s:5:"Y-m-d";s:4:"name";s:4:"bday";}s:4:"size";s:6:"2,,0,0";i:2;a:5:{s:4:"type";s:6:"select";s:4:"name";s:2:"tz";s:7:"no_lang";s:1:"1";s:5:"label";s:8:"Timezone";s:5:"align";s:5:"right";}}}i:8;a:3:{s:1:"A";a:2:{s:4:"type";s:5:"image";s:4:"name";s:11:"private.png";}s:1:"B";a:3:{s:4:"type";s:5:"label";s:5:"label";s:10:"Public key";s:4:"size";s:9:",,,pubkey";}s:1:"C";a:3:{s:4:"type";s:8:"textarea";s:4:"size";s:4:"4,40";s:4:"name";s:6:"pubkey";}}}s:4:"rows";i:8;s:4:"cols";i:3;s:4:"size";s:8:"100%,286";s:7:"options";a:2:{i:0;s:4:"100%";i:1;s:3:"286";}}}','size' => '100%,286','style' => '','modified' => '1178179149',); |
|
| 45 | +$templ_data[] = array('name' => 'addressbook.edit.home', 'template' => '', 'lang' => '', 'group' => '0', 'version' => '1.9.001', 'data' => 'a:1:{i:0;a:6:{s:4:"type";s:4:"grid";s:4:"data";a:9:{i:0;a:6:{s:2:"h5";s:35:",!@addr_format2=city_state_postcode";s:2:"c8";s:4:",top";s:2:"h7";s:2:"30";s:2:"h6";s:35:",!@addr_format2=city_state_postcode";s:2:"h4";s:34:",@addr_format2=city_state_postcode";s:2:"h3";s:34:",@addr_format2=city_state_postcode";}i:1;a:3:{s:1:"A";a:2:{s:4:"type";s:5:"image";s:4:"name";s:8:"accounts";}s:1:"B";a:3:{s:4:"type";s:5:"label";s:5:"label";s:6:"street";s:4:"size";s:17:",,,adr_two_street";}s:1:"C";a:3:{s:4:"type";s:4:"text";s:4:"size";s:5:"45,64";s:4:"name";s:14:"adr_two_street";}}i:2;a:3:{s:1:"A";a:1:{s:4:"type";s:5:"label";}s:1:"B";a:2:{s:4:"type";s:5:"label";s:4:"size";s:18:",,,adr_two_street2";}s:1:"C";a:4:{s:4:"type";s:4:"text";s:4:"size";s:5:"45,64";s:4:"name";s:15:"adr_two_street2";s:4:"help";s:14:"address line 2";}}i:3;a:3:{s:1:"A";a:1:{s:4:"type";s:5:"label";}s:1:"B";a:3:{s:4:"type";s:5:"label";s:5:"label";s:4:"city";s:4:"size";s:19:",,,adr_two_locality";}s:1:"C";a:47:{s:4:"type";s:4:"hbox";s:4:"size";s:6:"2,,0,0";i:1;a:4:{s:4:"type";s:4:"text";s:4:"size";s:4:"5,64";s:4:"name";s:18:"adr_two_postalcode";s:4:"help";s:8:"ZIP Code";}i:2;a:5:{s:4:"type";s:4:"text";s:4:"size";s:5:"35,64";s:4:"name";s:16:"adr_two_locality";s:4:"help";s:4:"City";s:4:"span";s:9:",leftPad5";}i:3;a:1:{s:4:"type";s:5:"label";}i:4;a:1:{s:4:"type";s:5:"label";}i:5;a:1:{s:4:"type";s:5:"label";}i:6;a:1:{s:4:"type";s:5:"label";}i:7;a:1:{s:4:"type";s:5:"label";}i:8;a:1:{s:4:"type";s:5:"label";}i:9;a:1:{s:4:"type";s:5:"label";}i:10;a:1:{s:4:"type";s:5:"label";}i:11;a:1:{s:4:"type";s:5:"label";}i:12;a:1:{s:4:"type";s:5:"label";}i:13;a:1:{s:4:"type";s:5:"label";}i:14;a:1:{s:4:"type";s:5:"label";}i:15;a:1:{s:4:"type";s:5:"label";}i:16;a:1:{s:4:"type";s:5:"label";}i:17;a:1:{s:4:"type";s:5:"label";}i:18;a:1:{s:4:"type";s:5:"label";}i:19;a:1:{s:4:"type";s:5:"label";}i:20;a:1:{s:4:"type";s:5:"label";}i:21;a:1:{s:4:"type";s:5:"label";}i:22;a:1:{s:4:"type";s:5:"label";}i:23;a:1:{s:4:"type";s:5:"label";}i:24;a:1:{s:4:"type";s:5:"label";}i:25;a:1:{s:4:"type";s:5:"label";}i:26;a:1:{s:4:"type";s:5:"label";}i:27;a:1:{s:4:"type";s:5:"label";}i:28;a:1:{s:4:"type";s:5:"label";}i:29;a:1:{s:4:"type";s:5:"label";}i:30;a:1:{s:4:"type";s:5:"label";}i:31;a:1:{s:4:"type";s:5:"label";}i:32;a:1:{s:4:"type";s:5:"label";}i:33;a:1:{s:4:"type";s:5:"label";}i:34;a:1:{s:4:"type";s:5:"label";}i:35;a:1:{s:4:"type";s:5:"label";}i:36;a:1:{s:4:"type";s:5:"label";}i:37;a:1:{s:4:"type";s:5:"label";}i:38;a:1:{s:4:"type";s:5:"label";}i:39;a:1:{s:4:"type";s:5:"label";}i:40;a:1:{s:4:"type";s:5:"label";}i:41;a:1:{s:4:"type";s:5:"label";}i:42;a:1:{s:4:"type";s:5:"label";}i:43;a:1:{s:4:"type";s:5:"label";}i:44;a:1:{s:4:"type";s:5:"label";}i:45;a:1:{s:4:"type";s:5:"label";}}}i:4;a:3:{s:1:"A";a:1:{s:4:"type";s:5:"label";}s:1:"B";a:3:{s:4:"type";s:5:"label";s:5:"label";s:7:"country";s:4:"size";s:22:",,,adr_two_countryname";}s:1:"C";a:5:{s:4:"type";s:4:"hbox";s:4:"size";s:6:"3,,0,0";i:1;a:5:{s:4:"type";s:14:"select-country";s:4:"size";s:14:"Select one,0,1";s:4:"name";s:19:"adr_two_countrycode";s:4:"span";s:14:",countrySelect";s:8:"onchange";s:26:"show_custom_country(this);";}i:2;a:3:{s:4:"type";s:4:"text";s:4:"name";s:19:"adr_two_countryname";s:4:"span";s:15:",custom_country";}i:3;a:5:{s:4:"type";s:4:"text";s:4:"span";s:9:",leftPad5";s:4:"size";s:5:"19,64";s:4:"name";s:14:"adr_two_region";s:4:"help";s:5:"State";}}}i:5;a:3:{s:1:"A";a:1:{s:4:"type";s:5:"label";}s:1:"B";a:3:{s:4:"type";s:5:"label";s:5:"label";s:4:"city";s:4:"size";s:19:",,,adr_two_locality";}s:1:"C";a:5:{s:4:"type";s:4:"hbox";s:4:"size";s:6:"3,,0,0";i:1;a:4:{s:4:"type";s:4:"text";s:4:"size";s:5:"30,64";s:4:"name";s:16:"adr_two_locality";s:4:"help";s:4:"City";}i:2;a:5:{s:4:"type";s:4:"text";s:4:"span";s:9:",leftPad5";s:4:"size";s:4:"3,64";s:4:"name";s:14:"adr_two_region";s:4:"help";s:5:"State";}i:3;a:5:{s:4:"type";s:4:"text";s:4:"size";s:4:"5,64";s:4:"name";s:18:"adr_two_postalcode";s:4:"help";s:8:"ZIP Code";s:4:"span";s:9:",leftPad5";}}}i:6;a:3:{s:1:"A";a:1:{s:4:"type";s:5:"label";}s:1:"B";a:2:{s:4:"type";s:5:"label";s:5:"label";s:7:"Country";}s:1:"C";a:4:{s:4:"type";s:4:"hbox";s:4:"size";s:6:"2,,0,0";i:1;a:5:{s:4:"type";s:14:"select-country";s:4:"size";s:14:"Select one,0,1";s:4:"name";s:19:"adr_two_countrycode";s:8:"onchange";s:26:"show_custom_country(this);";s:4:"span";s:14:",countrySelect";}i:2;a:3:{s:4:"type";s:4:"text";s:4:"name";s:19:"adr_two_countryname";s:4:"span";s:15:",custom_country";}}}i:7;a:3:{s:1:"A";a:2:{s:4:"type";s:5:"image";s:4:"name";s:4:"gear";}s:1:"B";a:3:{s:4:"type";s:5:"label";s:4:"size";s:7:",,,bday";s:5:"label";s:8:"Birthday";}s:1:"C";a:4:{s:4:"type";s:4:"hbox";i:1;a:3:{s:4:"type";s:4:"date";s:4:"size";s:5:"Y-m-d";s:4:"name";s:4:"bday";}s:4:"size";s:6:"2,,0,0";i:2;a:5:{s:4:"type";s:6:"select";s:4:"name";s:2:"tz";s:7:"no_lang";s:1:"1";s:5:"label";s:8:"Timezone";s:5:"align";s:5:"right";}}}i:8;a:3:{s:1:"A";a:2:{s:4:"type";s:5:"image";s:4:"name";s:11:"private.png";}s:1:"B";a:3:{s:4:"type";s:5:"label";s:5:"label";s:10:"Public key";s:4:"size";s:9:",,,pubkey";}s:1:"C";a:3:{s:4:"type";s:8:"textarea";s:4:"size";s:4:"4,40";s:4:"name";s:6:"pubkey";}}}s:4:"rows";i:8;s:4:"cols";i:3;s:4:"size";s:8:"100%,286";s:7:"options";a:2:{i:0;s:4:"100%";i:1;s:3:"286";}}}', 'size' => '100%,286', 'style' => '', 'modified' => '1178179149',); |
|
| 46 | 46 | |
| 47 | -$templ_data[] = array('name' => 'addressbook.edit.links','template' => '','lang' => '','group' => '0','version' => '1.9.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:"c3";s:2:"th";s:2:"h1";s:6:",@view";s:2:"c1";s:2:"th";}i:1;a:1:{s:1:"A";a:2:{s:4:"type";s:5:"label";s:5:"label";s:16:"Create new links";}}i:2;a:1:{s:1:"A";a:2:{s:4:"type";s:7:"link-to";s:4:"name";s:7:"link_to";}}i:3;a:1:{s:1:"A";a:2:{s:4:"type";s:5:"label";s:5:"label";s:14:"Existing links";}}i:4;a:1:{s:1:"A";a:2:{s:4:"type";s:9:"link-list";s:4:"name";s:7:"link_to";}}}s:4:"rows";i:4;s:4:"cols";i:1;s:4:"size";s:17:"100%,286,,,,,auto";s:7:"options";a:3:{i:0;s:4:"100%";i:1;s:3:"286";i:6;s:4:"auto";}}}','size' => '100%,286,,,,,auto','style' => '','modified' => '1131900825',); |
|
| 47 | +$templ_data[] = array('name' => 'addressbook.edit.links', 'template' => '', 'lang' => '', 'group' => '0', 'version' => '1.9.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:"c3";s:2:"th";s:2:"h1";s:6:",@view";s:2:"c1";s:2:"th";}i:1;a:1:{s:1:"A";a:2:{s:4:"type";s:5:"label";s:5:"label";s:16:"Create new links";}}i:2;a:1:{s:1:"A";a:2:{s:4:"type";s:7:"link-to";s:4:"name";s:7:"link_to";}}i:3;a:1:{s:1:"A";a:2:{s:4:"type";s:5:"label";s:5:"label";s:14:"Existing links";}}i:4;a:1:{s:1:"A";a:2:{s:4:"type";s:9:"link-list";s:4:"name";s:7:"link_to";}}}s:4:"rows";i:4;s:4:"cols";i:1;s:4:"size";s:17:"100%,286,,,,,auto";s:7:"options";a:3:{i:0;s:4:"100%";i:1;s:3:"286";i:6;s:4:"auto";}}}', 'size' => '100%,286,,,,,auto', 'style' => '', 'modified' => '1131900825',); |
|
| 48 | 48 | |
| 49 | -$templ_data[] = array('name' => 'addressbook.edit.name','template' => '','lang' => '','group' => '0','version' => '1.9.001','data' => 'a:1:{i:0;a:6:{s:4:"type";s:4:"grid";s:4:"data";a:7:{i:0;a:1:{s:1:"A";s:3:"20%";}i:1;a:2:{s:1:"A";a:3:{s:4:"type";s:5:"label";s:4:"size";s:11:",,,n_prefix";s:5:"label";s:6:"prefix";}s:1:"B";a:4:{s:4:"type";s:4:"text";s:4:"name";s:8:"n_prefix";s:4:"size";s:5:"35,64";s:8:"onchange";s:30:"check_value(this,\'$cont[id]\');";}}i:2;a:2:{s:1:"A";a:3:{s:4:"type";s:5:"label";s:5:"label";s:10:"first name";s:4:"size";s:10:",,,n_given";}s:1:"B";a:4:{s:4:"type";s:4:"text";s:4:"name";s:7:"n_given";s:4:"size";s:5:"35,64";s:8:"onchange";s:30:"check_value(this,\'$cont[id]\');";}}i:3;a:2:{s:1:"A";a:3:{s:4:"type";s:5:"label";s:4:"size";s:11:",,,n_middle";s:5:"label";s:11:"middle name";}s:1:"B";a:4:{s:4:"type";s:4:"text";s:4:"name";s:8:"n_middle";s:4:"size";s:5:"35,64";s:8:"onchange";s:30:"check_value(this,\'$cont[id]\');";}}i:4;a:2:{s:1:"A";a:3:{s:4:"type";s:5:"label";s:4:"size";s:11:",,,n_family";s:5:"label";s:9:"last name";}s:1:"B";a:4:{s:4:"type";s:4:"text";s:4:"name";s:8:"n_family";s:4:"size";s:5:"35,64";s:8:"onchange";s:30:"check_value(this,\'$cont[id]\');";}}i:5;a:2:{s:1:"A";a:3:{s:4:"type";s:5:"label";s:4:"size";s:11:",,,n_suffix";s:5:"label";s:6:"suffix";}s:1:"B";a:4:{s:4:"type";s:4:"text";s:4:"name";s:8:"n_suffix";s:4:"size";s:5:"35,64";s:8:"onchange";s:30:"check_value(this,\'$cont[id]\');";}}i:6;a:2:{s:1:"A";a:1:{s:4:"type";s:5:"label";}s:1:"B";a:4:{s:4:"type";s:6:"button";s:5:"label";s:2:"Ok";s:7:"onclick";s:165:"jQuery(\'table.editname\').css(\'display\',\'none\'); if(document.getElementById(form::name(\'title\'))){document.getElementById(form::name(\'title\')).focus();} return false;";s:4:"name";s:10:"button[ok]";}}}s:4:"rows";i:6;s:4:"cols";i:2;s:4:"size";s:17:"310,160,,editname";s:7:"options";a:3:{i:3;s:8:"editname";i:0;s:3:"310";i:1;s:3:"160";}}}','size' => '310,160,,editname','style' => '','modified' => '1165488941',); |
|
| 49 | +$templ_data[] = array('name' => 'addressbook.edit.name', 'template' => '', 'lang' => '', 'group' => '0', 'version' => '1.9.001', 'data' => 'a:1:{i:0;a:6:{s:4:"type";s:4:"grid";s:4:"data";a:7:{i:0;a:1:{s:1:"A";s:3:"20%";}i:1;a:2:{s:1:"A";a:3:{s:4:"type";s:5:"label";s:4:"size";s:11:",,,n_prefix";s:5:"label";s:6:"prefix";}s:1:"B";a:4:{s:4:"type";s:4:"text";s:4:"name";s:8:"n_prefix";s:4:"size";s:5:"35,64";s:8:"onchange";s:30:"check_value(this,\'$cont[id]\');";}}i:2;a:2:{s:1:"A";a:3:{s:4:"type";s:5:"label";s:5:"label";s:10:"first name";s:4:"size";s:10:",,,n_given";}s:1:"B";a:4:{s:4:"type";s:4:"text";s:4:"name";s:7:"n_given";s:4:"size";s:5:"35,64";s:8:"onchange";s:30:"check_value(this,\'$cont[id]\');";}}i:3;a:2:{s:1:"A";a:3:{s:4:"type";s:5:"label";s:4:"size";s:11:",,,n_middle";s:5:"label";s:11:"middle name";}s:1:"B";a:4:{s:4:"type";s:4:"text";s:4:"name";s:8:"n_middle";s:4:"size";s:5:"35,64";s:8:"onchange";s:30:"check_value(this,\'$cont[id]\');";}}i:4;a:2:{s:1:"A";a:3:{s:4:"type";s:5:"label";s:4:"size";s:11:",,,n_family";s:5:"label";s:9:"last name";}s:1:"B";a:4:{s:4:"type";s:4:"text";s:4:"name";s:8:"n_family";s:4:"size";s:5:"35,64";s:8:"onchange";s:30:"check_value(this,\'$cont[id]\');";}}i:5;a:2:{s:1:"A";a:3:{s:4:"type";s:5:"label";s:4:"size";s:11:",,,n_suffix";s:5:"label";s:6:"suffix";}s:1:"B";a:4:{s:4:"type";s:4:"text";s:4:"name";s:8:"n_suffix";s:4:"size";s:5:"35,64";s:8:"onchange";s:30:"check_value(this,\'$cont[id]\');";}}i:6;a:2:{s:1:"A";a:1:{s:4:"type";s:5:"label";}s:1:"B";a:4:{s:4:"type";s:6:"button";s:5:"label";s:2:"Ok";s:7:"onclick";s:165:"jQuery(\'table.editname\').css(\'display\',\'none\'); if(document.getElementById(form::name(\'title\'))){document.getElementById(form::name(\'title\')).focus();} return false;";s:4:"name";s:10:"button[ok]";}}}s:4:"rows";i:6;s:4:"cols";i:2;s:4:"size";s:17:"310,160,,editname";s:7:"options";a:3:{i:3;s:8:"editname";i:0;s:3:"310";i:1;s:3:"160";}}}', 'size' => '310,160,,editname', 'style' => '', 'modified' => '1165488941',); |
|
| 50 | 50 | |
| 51 | -$templ_data[] = array('name' => 'addressbook.edit.organisation','template' => '','lang' => '','group' => '0','version' => '1.3.004','data' => 'a:1:{i:0;a:6:{s:4:"type";s:4:"grid";s:4:"data";a:9:{i:0;a:3:{s:2:"c1";s:4:",top";s:2:"h8";s:2:"30";s:2:"c8";s:7:",bottom";}i:1;a:3:{s:1:"A";a:2:{s:4:"type";s:5:"image";s:4:"name";s:8:"accounts";}s:1:"B";a:4:{s:4:"type";s:4:"vbox";s:4:"size";s:1:"2";i:1;a:4:{s:4:"type";s:5:"image";s:4:"name";s:5:"photo";s:4:"span";s:6:",photo";s:7:"onclick";s:75:"set_style_by_class(\'table\',\'uploadphoto\',\'display\',\'inline\'); return false;";}i:2;a:2:{s:4:"type";s:8:"template";s:4:"name";s:23:"addressbook.edit.upload";}}s:1:"C";a:50:{s:4:"type";s:4:"grid";s:4:"data";a:5:{i:0;a:0:{}i:1;a:3:{s:1:"A";a:2:{s:4:"type";s:5:"label";s:5:"label";s:4:"Name";}s:1:"B";a:10:{s:4:"type";s:4:"text";s:4:"data";a:2:{i:0;a:2:{s:1:"A";s:11:",!@org_name";s:1:"B";s:11:",!@org_name";}i:1;a:3:{s:1:"A";a:4:{s:4:"type";s:4:"text";s:4:"name";s:8:"org_name";s:8:"readonly";s:1:"1";s:7:"no_lang";s:1:"1";}s:1:"B";a:2:{s:4:"type";s:5:"label";s:5:"label";s:1:":";}s:1:"C";a:4:{s:4:"type";s:4:"text";s:4:"name";s:4:"n_fn";s:7:"no_lang";s:1:"1";s:8:"readonly";s:1:"1";}}}s:4:"rows";i:1;s:4:"cols";i:3;s:4:"name";s:4:"n_fn";s:7:"no_lang";s:1:"1";s:8:"readonly";s:1:"1";s:7:"onclick";s:58:"set_style_by_class(\'table\',\'editname\',\'display\',\'inline\');";s:4:"size";s:2:"35";s:4:"span";s:1:"2";}s:1:"C";a:1:{s:4:"type";s:5:"label";}}i:2;a:3:{s:1:"A";a:3:{s:4:"type";s:5:"label";s:4:"size";s:8:",,,title";s:5:"label";s:5:"Title";}s:1:"B";a:4:{s:4:"type";s:4:"text";s:4:"size";s:5:"35,64";s:4:"name";s:5:"title";s:4:"span";s:1:"2";}s:1:"C";a:1:{s:4:"type";s:5:"label";}}i:3;a:3:{s:1:"A";a:3:{s:4:"type";s:5:"label";s:4:"size";s:7:",,,role";s:5:"label";s:4:"Role";}s:1:"B";a:3:{s:4:"type";s:4:"text";s:4:"size";s:5:"20,64";s:4:"name";s:4:"role";}s:1:"C";a:4:{s:4:"type";s:4:"text";s:4:"size";s:1:"5";s:5:"label";s:4:"Room";s:4:"name";s:4:"room";}}i:4;a:3:{s:1:"A";a:1:{s:4:"type";s:5:"label";}s:1:"B";a:2:{s:4:"type";s:8:"template";s:4:"name";s:22:"addressbook.edit.namex";}s:1:"C";a:1:{s:4:"type";s:5:"label";}}}s:4:"rows";i:4;s:4:"cols";i:3;s:7:"no_lang";s:1:"1";s:8:"readonly";s:1:"1";i:3;a:1:{s:4:"type";s:5:"label";}i:4;a:1:{s:4:"type";s:5:"label";}i:5;a:1:{s:4:"type";s:5:"label";}i:6;a:1:{s:4:"type";s:5:"label";}i:7;a:1:{s:4:"type";s:5:"label";}i:8;a:1:{s:4:"type";s:5:"label";}i:9;a:1:{s:4:"type";s:5:"label";}i:10;a:1:{s:4:"type";s:5:"label";}i:11;a:1:{s:4:"type";s:5:"label";}i:12;a:1:{s:4:"type";s:5:"label";}i:13;a:1:{s:4:"type";s:5:"label";}i:14;a:1:{s:4:"type";s:5:"label";}i:15;a:1:{s:4:"type";s:5:"label";}i:16;a:1:{s:4:"type";s:5:"label";}i:17;a:1:{s:4:"type";s:5:"label";}i:18;a:1:{s:4:"type";s:5:"label";}i:19;a:1:{s:4:"type";s:5:"label";}i:20;a:1:{s:4:"type";s:5:"label";}i:21;a:1:{s:4:"type";s:5:"label";}i:22;a:1:{s:4:"type";s:5:"label";}i:23;a:1:{s:4:"type";s:5:"label";}i:24;a:1:{s:4:"type";s:5:"label";}i:25;a:1:{s:4:"type";s:5:"label";}i:26;a:1:{s:4:"type";s:5:"label";}i:27;a:1:{s:4:"type";s:5:"label";}i:28;a:1:{s:4:"type";s:5:"label";}i:29;a:1:{s:4:"type";s:5:"label";}i:30;a:1:{s:4:"type";s:5:"label";}i:31;a:1:{s:4:"type";s:5:"label";}i:32;a:1:{s:4:"type";s:5:"label";}i:33;a:1:{s:4:"type";s:5:"label";}i:34;a:1:{s:4:"type";s:5:"label";}i:35;a:1:{s:4:"type";s:5:"label";}i:36;a:1:{s:4:"type";s:5:"label";}i:37;a:1:{s:4:"type";s:5:"label";}i:38;a:1:{s:4:"type";s:5:"label";}i:39;a:1:{s:4:"type";s:5:"label";}i:40;a:1:{s:4:"type";s:5:"label";}i:41;a:1:{s:4:"type";s:5:"label";}i:42;a:1:{s:4:"type";s:5:"label";}i:43;a:1:{s:4:"type";s:5:"label";}i:44;a:1:{s:4:"type";s:5:"label";}i:45;a:1:{s:4:"type";s:5:"label";}s:7:"options";a:3:{i:3;s:1:"0";i:0;s:1:"2";i:2;s:1:"0";}}}i:2;a:3:{s:1:"A";a:2:{s:4:"type";s:5:"image";s:4:"name";s:4:"home";}s:1:"B";a:2:{s:4:"type";s:5:"label";s:5:"label";s:12:"Organisation";}s:1:"C";a:4:{s:4:"type";s:4:"text";s:4:"name";s:8:"org_name";s:4:"size";s:5:"45,64";s:8:"onchange";s:14:"setName(this);";}}i:3;a:3:{s:1:"A";a:1:{s:4:"type";s:5:"label";}s:1:"B";a:3:{s:4:"type";s:5:"label";s:5:"label";s:10:"department";s:4:"size";s:11:",,,org_unit";}s:1:"C";a:3:{s:4:"type";s:4:"text";s:4:"name";s:8:"org_unit";s:4:"size";s:5:"45,64";}}i:4;a:3:{s:1:"A";a:2:{s:4:"type";s:5:"image";s:4:"name";s:6:"gohome";}s:1:"B";a:3:{s:4:"type";s:5:"label";s:5:"label";s:6:"street";s:4:"size";s:17:",,,adr_one_street";}s:1:"C";a:3:{s:4:"type";s:4:"text";s:4:"size";s:5:"45,64";s:4:"name";s:14:"adr_one_street";}}i:5;a:3:{s:1:"A";a:1:{s:4:"type";s:5:"label";}s:1:"B";a:3:{s:4:"type";s:5:"label";s:5:"label";s:14:"address line 2";s:4:"size";s:18:",,,adr_one_street2";}s:1:"C";a:3:{s:4:"type";s:4:"text";s:4:"size";s:5:"45,64";s:4:"name";s:15:"adr_one_street2";}}i:6;a:3:{s:1:"A";a:1:{s:4:"type";s:5:"label";}s:1:"B";a:3:{s:4:"type";s:5:"label";s:5:"label";s:4:"city";s:4:"size";s:19:",,,adr_one_locality";}s:1:"C";a:47:{s:4:"type";s:4:"hbox";s:4:"size";s:6:"2,,0,0";i:1;a:4:{s:4:"type";s:4:"text";s:4:"size";s:4:"5,64";s:4:"name";s:18:"adr_one_postalcode";s:4:"help";s:8:"ZIP Code";}i:2;a:5:{s:4:"type";s:4:"text";s:4:"size";s:5:"36,64";s:4:"name";s:16:"adr_one_locality";s:4:"help";s:4:"City";s:4:"span";s:9:",leftPad5";}i:3;a:1:{s:4:"type";s:5:"label";}i:4;a:1:{s:4:"type";s:5:"label";}i:5;a:1:{s:4:"type";s:5:"label";}i:6;a:1:{s:4:"type";s:5:"label";}i:7;a:1:{s:4:"type";s:5:"label";}i:8;a:1:{s:4:"type";s:5:"label";}i:9;a:1:{s:4:"type";s:5:"label";}i:10;a:1:{s:4:"type";s:5:"label";}i:11;a:1:{s:4:"type";s:5:"label";}i:12;a:1:{s:4:"type";s:5:"label";}i:13;a:1:{s:4:"type";s:5:"label";}i:14;a:1:{s:4:"type";s:5:"label";}i:15;a:1:{s:4:"type";s:5:"label";}i:16;a:1:{s:4:"type";s:5:"label";}i:17;a:1:{s:4:"type";s:5:"label";}i:18;a:1:{s:4:"type";s:5:"label";}i:19;a:1:{s:4:"type";s:5:"label";}i:20;a:1:{s:4:"type";s:5:"label";}i:21;a:1:{s:4:"type";s:5:"label";}i:22;a:1:{s:4:"type";s:5:"label";}i:23;a:1:{s:4:"type";s:5:"label";}i:24;a:1:{s:4:"type";s:5:"label";}i:25;a:1:{s:4:"type";s:5:"label";}i:26;a:1:{s:4:"type";s:5:"label";}i:27;a:1:{s:4:"type";s:5:"label";}i:28;a:1:{s:4:"type";s:5:"label";}i:29;a:1:{s:4:"type";s:5:"label";}i:30;a:1:{s:4:"type";s:5:"label";}i:31;a:1:{s:4:"type";s:5:"label";}i:32;a:1:{s:4:"type";s:5:"label";}i:33;a:1:{s:4:"type";s:5:"label";}i:34;a:1:{s:4:"type";s:5:"label";}i:35;a:1:{s:4:"type";s:5:"label";}i:36;a:1:{s:4:"type";s:5:"label";}i:37;a:1:{s:4:"type";s:5:"label";}i:38;a:1:{s:4:"type";s:5:"label";}i:39;a:1:{s:4:"type";s:5:"label";}i:40;a:1:{s:4:"type";s:5:"label";}i:41;a:1:{s:4:"type";s:5:"label";}i:42;a:1:{s:4:"type";s:5:"label";}i:43;a:1:{s:4:"type";s:5:"label";}i:44;a:1:{s:4:"type";s:5:"label";}i:45;a:1:{s:4:"type";s:5:"label";}}}i:7;a:3:{s:1:"A";a:1:{s:4:"type";s:5:"label";}s:1:"B";a:3:{s:4:"type";s:5:"label";s:5:"label";s:7:"country";s:4:"size";s:22:",,,adr_one_countryname";}s:1:"C";a:4:{s:4:"type";s:4:"hbox";s:4:"size";s:6:"2,,0,0";i:1;a:4:{s:4:"type";s:14:"select-country";s:4:"size";s:12:"Select one,1";s:4:"name";s:19:"adr_one_countryname";s:4:"span";s:14:",countrySelect";}i:2;a:5:{s:4:"type";s:4:"text";s:4:"span";s:9:",leftPad5";s:4:"size";s:5:"20,64";s:4:"name";s:14:"adr_one_region";s:4:"help";s:5:"State";}}}i:8;a:3:{s:1:"A";a:2:{s:4:"type";s:5:"image";s:4:"name";s:7:"private";}s:1:"B";a:2:{s:4:"type";s:5:"label";s:5:"label";s:11:"Addressbook";}s:1:"C";a:5:{s:4:"type";s:6:"select";s:4:"name";s:5:"owner";s:4:"help";s:42:"Addressbook the contact should be saved to";s:7:"no_lang";s:1:"1";s:4:"span";s:6:",owner";}}}s:4:"rows";i:8;s:4:"cols";i:3;s:4:"size";s:4:",258";s:7:"options";a:1:{i:1;s:3:"258";}}}','size' => ',258','style' => '','modified' => '1165501094',); |
|
| 51 | +$templ_data[] = array('name' => 'addressbook.edit.organisation', 'template' => '', 'lang' => '', 'group' => '0', 'version' => '1.3.004', 'data' => 'a:1:{i:0;a:6:{s:4:"type";s:4:"grid";s:4:"data";a:9:{i:0;a:3:{s:2:"c1";s:4:",top";s:2:"h8";s:2:"30";s:2:"c8";s:7:",bottom";}i:1;a:3:{s:1:"A";a:2:{s:4:"type";s:5:"image";s:4:"name";s:8:"accounts";}s:1:"B";a:4:{s:4:"type";s:4:"vbox";s:4:"size";s:1:"2";i:1;a:4:{s:4:"type";s:5:"image";s:4:"name";s:5:"photo";s:4:"span";s:6:",photo";s:7:"onclick";s:75:"set_style_by_class(\'table\',\'uploadphoto\',\'display\',\'inline\'); return false;";}i:2;a:2:{s:4:"type";s:8:"template";s:4:"name";s:23:"addressbook.edit.upload";}}s:1:"C";a:50:{s:4:"type";s:4:"grid";s:4:"data";a:5:{i:0;a:0:{}i:1;a:3:{s:1:"A";a:2:{s:4:"type";s:5:"label";s:5:"label";s:4:"Name";}s:1:"B";a:10:{s:4:"type";s:4:"text";s:4:"data";a:2:{i:0;a:2:{s:1:"A";s:11:",!@org_name";s:1:"B";s:11:",!@org_name";}i:1;a:3:{s:1:"A";a:4:{s:4:"type";s:4:"text";s:4:"name";s:8:"org_name";s:8:"readonly";s:1:"1";s:7:"no_lang";s:1:"1";}s:1:"B";a:2:{s:4:"type";s:5:"label";s:5:"label";s:1:":";}s:1:"C";a:4:{s:4:"type";s:4:"text";s:4:"name";s:4:"n_fn";s:7:"no_lang";s:1:"1";s:8:"readonly";s:1:"1";}}}s:4:"rows";i:1;s:4:"cols";i:3;s:4:"name";s:4:"n_fn";s:7:"no_lang";s:1:"1";s:8:"readonly";s:1:"1";s:7:"onclick";s:58:"set_style_by_class(\'table\',\'editname\',\'display\',\'inline\');";s:4:"size";s:2:"35";s:4:"span";s:1:"2";}s:1:"C";a:1:{s:4:"type";s:5:"label";}}i:2;a:3:{s:1:"A";a:3:{s:4:"type";s:5:"label";s:4:"size";s:8:",,,title";s:5:"label";s:5:"Title";}s:1:"B";a:4:{s:4:"type";s:4:"text";s:4:"size";s:5:"35,64";s:4:"name";s:5:"title";s:4:"span";s:1:"2";}s:1:"C";a:1:{s:4:"type";s:5:"label";}}i:3;a:3:{s:1:"A";a:3:{s:4:"type";s:5:"label";s:4:"size";s:7:",,,role";s:5:"label";s:4:"Role";}s:1:"B";a:3:{s:4:"type";s:4:"text";s:4:"size";s:5:"20,64";s:4:"name";s:4:"role";}s:1:"C";a:4:{s:4:"type";s:4:"text";s:4:"size";s:1:"5";s:5:"label";s:4:"Room";s:4:"name";s:4:"room";}}i:4;a:3:{s:1:"A";a:1:{s:4:"type";s:5:"label";}s:1:"B";a:2:{s:4:"type";s:8:"template";s:4:"name";s:22:"addressbook.edit.namex";}s:1:"C";a:1:{s:4:"type";s:5:"label";}}}s:4:"rows";i:4;s:4:"cols";i:3;s:7:"no_lang";s:1:"1";s:8:"readonly";s:1:"1";i:3;a:1:{s:4:"type";s:5:"label";}i:4;a:1:{s:4:"type";s:5:"label";}i:5;a:1:{s:4:"type";s:5:"label";}i:6;a:1:{s:4:"type";s:5:"label";}i:7;a:1:{s:4:"type";s:5:"label";}i:8;a:1:{s:4:"type";s:5:"label";}i:9;a:1:{s:4:"type";s:5:"label";}i:10;a:1:{s:4:"type";s:5:"label";}i:11;a:1:{s:4:"type";s:5:"label";}i:12;a:1:{s:4:"type";s:5:"label";}i:13;a:1:{s:4:"type";s:5:"label";}i:14;a:1:{s:4:"type";s:5:"label";}i:15;a:1:{s:4:"type";s:5:"label";}i:16;a:1:{s:4:"type";s:5:"label";}i:17;a:1:{s:4:"type";s:5:"label";}i:18;a:1:{s:4:"type";s:5:"label";}i:19;a:1:{s:4:"type";s:5:"label";}i:20;a:1:{s:4:"type";s:5:"label";}i:21;a:1:{s:4:"type";s:5:"label";}i:22;a:1:{s:4:"type";s:5:"label";}i:23;a:1:{s:4:"type";s:5:"label";}i:24;a:1:{s:4:"type";s:5:"label";}i:25;a:1:{s:4:"type";s:5:"label";}i:26;a:1:{s:4:"type";s:5:"label";}i:27;a:1:{s:4:"type";s:5:"label";}i:28;a:1:{s:4:"type";s:5:"label";}i:29;a:1:{s:4:"type";s:5:"label";}i:30;a:1:{s:4:"type";s:5:"label";}i:31;a:1:{s:4:"type";s:5:"label";}i:32;a:1:{s:4:"type";s:5:"label";}i:33;a:1:{s:4:"type";s:5:"label";}i:34;a:1:{s:4:"type";s:5:"label";}i:35;a:1:{s:4:"type";s:5:"label";}i:36;a:1:{s:4:"type";s:5:"label";}i:37;a:1:{s:4:"type";s:5:"label";}i:38;a:1:{s:4:"type";s:5:"label";}i:39;a:1:{s:4:"type";s:5:"label";}i:40;a:1:{s:4:"type";s:5:"label";}i:41;a:1:{s:4:"type";s:5:"label";}i:42;a:1:{s:4:"type";s:5:"label";}i:43;a:1:{s:4:"type";s:5:"label";}i:44;a:1:{s:4:"type";s:5:"label";}i:45;a:1:{s:4:"type";s:5:"label";}s:7:"options";a:3:{i:3;s:1:"0";i:0;s:1:"2";i:2;s:1:"0";}}}i:2;a:3:{s:1:"A";a:2:{s:4:"type";s:5:"image";s:4:"name";s:4:"home";}s:1:"B";a:2:{s:4:"type";s:5:"label";s:5:"label";s:12:"Organisation";}s:1:"C";a:4:{s:4:"type";s:4:"text";s:4:"name";s:8:"org_name";s:4:"size";s:5:"45,64";s:8:"onchange";s:14:"setName(this);";}}i:3;a:3:{s:1:"A";a:1:{s:4:"type";s:5:"label";}s:1:"B";a:3:{s:4:"type";s:5:"label";s:5:"label";s:10:"department";s:4:"size";s:11:",,,org_unit";}s:1:"C";a:3:{s:4:"type";s:4:"text";s:4:"name";s:8:"org_unit";s:4:"size";s:5:"45,64";}}i:4;a:3:{s:1:"A";a:2:{s:4:"type";s:5:"image";s:4:"name";s:6:"gohome";}s:1:"B";a:3:{s:4:"type";s:5:"label";s:5:"label";s:6:"street";s:4:"size";s:17:",,,adr_one_street";}s:1:"C";a:3:{s:4:"type";s:4:"text";s:4:"size";s:5:"45,64";s:4:"name";s:14:"adr_one_street";}}i:5;a:3:{s:1:"A";a:1:{s:4:"type";s:5:"label";}s:1:"B";a:3:{s:4:"type";s:5:"label";s:5:"label";s:14:"address line 2";s:4:"size";s:18:",,,adr_one_street2";}s:1:"C";a:3:{s:4:"type";s:4:"text";s:4:"size";s:5:"45,64";s:4:"name";s:15:"adr_one_street2";}}i:6;a:3:{s:1:"A";a:1:{s:4:"type";s:5:"label";}s:1:"B";a:3:{s:4:"type";s:5:"label";s:5:"label";s:4:"city";s:4:"size";s:19:",,,adr_one_locality";}s:1:"C";a:47:{s:4:"type";s:4:"hbox";s:4:"size";s:6:"2,,0,0";i:1;a:4:{s:4:"type";s:4:"text";s:4:"size";s:4:"5,64";s:4:"name";s:18:"adr_one_postalcode";s:4:"help";s:8:"ZIP Code";}i:2;a:5:{s:4:"type";s:4:"text";s:4:"size";s:5:"36,64";s:4:"name";s:16:"adr_one_locality";s:4:"help";s:4:"City";s:4:"span";s:9:",leftPad5";}i:3;a:1:{s:4:"type";s:5:"label";}i:4;a:1:{s:4:"type";s:5:"label";}i:5;a:1:{s:4:"type";s:5:"label";}i:6;a:1:{s:4:"type";s:5:"label";}i:7;a:1:{s:4:"type";s:5:"label";}i:8;a:1:{s:4:"type";s:5:"label";}i:9;a:1:{s:4:"type";s:5:"label";}i:10;a:1:{s:4:"type";s:5:"label";}i:11;a:1:{s:4:"type";s:5:"label";}i:12;a:1:{s:4:"type";s:5:"label";}i:13;a:1:{s:4:"type";s:5:"label";}i:14;a:1:{s:4:"type";s:5:"label";}i:15;a:1:{s:4:"type";s:5:"label";}i:16;a:1:{s:4:"type";s:5:"label";}i:17;a:1:{s:4:"type";s:5:"label";}i:18;a:1:{s:4:"type";s:5:"label";}i:19;a:1:{s:4:"type";s:5:"label";}i:20;a:1:{s:4:"type";s:5:"label";}i:21;a:1:{s:4:"type";s:5:"label";}i:22;a:1:{s:4:"type";s:5:"label";}i:23;a:1:{s:4:"type";s:5:"label";}i:24;a:1:{s:4:"type";s:5:"label";}i:25;a:1:{s:4:"type";s:5:"label";}i:26;a:1:{s:4:"type";s:5:"label";}i:27;a:1:{s:4:"type";s:5:"label";}i:28;a:1:{s:4:"type";s:5:"label";}i:29;a:1:{s:4:"type";s:5:"label";}i:30;a:1:{s:4:"type";s:5:"label";}i:31;a:1:{s:4:"type";s:5:"label";}i:32;a:1:{s:4:"type";s:5:"label";}i:33;a:1:{s:4:"type";s:5:"label";}i:34;a:1:{s:4:"type";s:5:"label";}i:35;a:1:{s:4:"type";s:5:"label";}i:36;a:1:{s:4:"type";s:5:"label";}i:37;a:1:{s:4:"type";s:5:"label";}i:38;a:1:{s:4:"type";s:5:"label";}i:39;a:1:{s:4:"type";s:5:"label";}i:40;a:1:{s:4:"type";s:5:"label";}i:41;a:1:{s:4:"type";s:5:"label";}i:42;a:1:{s:4:"type";s:5:"label";}i:43;a:1:{s:4:"type";s:5:"label";}i:44;a:1:{s:4:"type";s:5:"label";}i:45;a:1:{s:4:"type";s:5:"label";}}}i:7;a:3:{s:1:"A";a:1:{s:4:"type";s:5:"label";}s:1:"B";a:3:{s:4:"type";s:5:"label";s:5:"label";s:7:"country";s:4:"size";s:22:",,,adr_one_countryname";}s:1:"C";a:4:{s:4:"type";s:4:"hbox";s:4:"size";s:6:"2,,0,0";i:1;a:4:{s:4:"type";s:14:"select-country";s:4:"size";s:12:"Select one,1";s:4:"name";s:19:"adr_one_countryname";s:4:"span";s:14:",countrySelect";}i:2;a:5:{s:4:"type";s:4:"text";s:4:"span";s:9:",leftPad5";s:4:"size";s:5:"20,64";s:4:"name";s:14:"adr_one_region";s:4:"help";s:5:"State";}}}i:8;a:3:{s:1:"A";a:2:{s:4:"type";s:5:"image";s:4:"name";s:7:"private";}s:1:"B";a:2:{s:4:"type";s:5:"label";s:5:"label";s:11:"Addressbook";}s:1:"C";a:5:{s:4:"type";s:6:"select";s:4:"name";s:5:"owner";s:4:"help";s:42:"Addressbook the contact should be saved to";s:7:"no_lang";s:1:"1";s:4:"span";s:6:",owner";}}}s:4:"rows";i:8;s:4:"cols";i:3;s:4:"size";s:4:",258";s:7:"options";a:1:{i:1;s:3:"258";}}}', 'size' => ',258', 'style' => '', 'modified' => '1165501094',); |
|
| 52 | 52 | |
| 53 | -$templ_data[] = array('name' => 'addressbook.edit.personal','template' => '','lang' => '','group' => '0','version' => '1.3.002','data' => 'a:1:{i:0;a:6:{s:4:"type";s:4:"grid";s:4:"data";a:5:{i:0;a:4:{s:2:"c1";s:4:",top";s:2:"h2";s:2:"28";s:2:"c3";s:4:",top";s:2:"h3";s:2:"70";}i:1;a:3:{s:1:"A";a:2:{s:4:"type";s:5:"image";s:4:"name";s:8:"accounts";}s:1:"B";a:5:{s:4:"type";s:4:"vbox";s:4:"size";s:1:"3";i:1;a:3:{s:4:"type";s:5:"image";s:4:"name";s:5:"photo";s:4:"span";s:6:",photo";}i:2;a:5:{s:4:"type";s:6:"button";s:5:"label";s:6:"change";s:4:"name";s:12:"change_photo";s:4:"help";s:26:"Upload or delete the photo";s:7:"onclick";s:75:"set_style_by_class(\'table\',\'uploadphoto\',\'display\',\'inline\'); return false;";}i:3;a:2:{s:4:"type";s:8:"template";s:4:"name";s:6:"upload";}}s:1:"C";a:5:{s:4:"type";s:4:"grid";s:4:"data";a:6:{i:0;a:1:{s:1:"A";s:3:"20%";}i:1;a:2:{s:1:"A";a:3:{s:4:"type";s:5:"label";s:4:"size";s:11:",,,n_prefix";s:5:"label";s:6:"prefix";}s:1:"B";a:4:{s:4:"type";s:4:"text";s:4:"name";s:8:"n_prefix";s:4:"size";s:5:"35,64";s:8:"onchange";s:23:"setFileasOptions(this);";}}i:2;a:2:{s:1:"A";a:3:{s:4:"type";s:5:"label";s:5:"label";s:10:"first name";s:4:"size";s:10:",,,n_given";}s:1:"B";a:4:{s:4:"type";s:4:"text";s:4:"name";s:7:"n_given";s:4:"size";s:5:"35,64";s:8:"onchange";s:23:"setFileasOptions(this);";}}i:3;a:2:{s:1:"A";a:3:{s:4:"type";s:5:"label";s:4:"size";s:11:",,,n_middle";s:5:"label";s:11:"middle name";}s:1:"B";a:4:{s:4:"type";s:4:"text";s:4:"name";s:8:"n_middle";s:4:"size";s:5:"35,64";s:8:"onchange";s:23:"setFileasOptions(this);";}}i:4;a:2:{s:1:"A";a:3:{s:4:"type";s:5:"label";s:4:"size";s:11:",,,n_family";s:5:"label";s:9:"last name";}s:1:"B";a:4:{s:4:"type";s:4:"text";s:4:"name";s:8:"n_family";s:4:"size";s:5:"35,64";s:8:"onchange";s:23:"setFileasOptions(this);";}}i:5;a:2:{s:1:"A";a:3:{s:4:"type";s:5:"label";s:4:"size";s:11:",,,n_suffix";s:5:"label";s:6:"suffix";}s:1:"B";a:4:{s:4:"type";s:4:"text";s:4:"name";s:8:"n_suffix";s:4:"size";s:5:"35,64";s:8:"onchange";s:23:"setFileasOptions(this);";}}}s:4:"rows";i:5;s:4:"cols";i:2;s:7:"options";a:0:{}}}i:2;a:3:{s:1:"A";a:2:{s:4:"type";s:5:"image";s:4:"name";s:4:"home";}s:1:"B";a:3:{s:4:"type";s:5:"label";s:5:"label";s:12:"organisation";s:4:"size";s:11:",,,org_name";}s:1:"C";a:4:{s:4:"type";s:4:"text";s:4:"size";s:5:"45,64";s:4:"name";s:8:"org_name";s:8:"onchange";s:23:"setFileasOptions(this);";}}i:3;a:3:{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:8:"category";}s:1:"C";a:4:{s:4:"type";s:10:"select-cat";s:4:"name";s:6:"cat_id";s:4:"size";s:12:"3,,width:99%";s:4:"span";s:1:"4";}}i:4;a:3:{s:1:"A";a:2:{s:4:"type";s:5:"image";s:4:"name";s:11:"private.png";}s:1:"B";a:3:{s:4:"type";s:5:"label";s:5:"label";s:11:"Addressbook";s:4:"size";s:8:",,,owner";}s:1:"C";a:5:{s:4:"type";s:6:"select";s:4:"name";s:5:"owner";s:4:"help";s:42:"Addressbook the contact should be saved to";s:7:"no_lang";s:1:"1";s:4:"span";s:6:",owner";}}}s:4:"rows";i:4;s:4:"cols";i:3;s:4:"size";s:4:",258";s:7:"options";a:1:{i:1;s:3:"258";}}}','size' => ',258','style' => '','modified' => '1130404323',); |
|
| 53 | +$templ_data[] = array('name' => 'addressbook.edit.personal', 'template' => '', 'lang' => '', 'group' => '0', 'version' => '1.3.002', 'data' => 'a:1:{i:0;a:6:{s:4:"type";s:4:"grid";s:4:"data";a:5:{i:0;a:4:{s:2:"c1";s:4:",top";s:2:"h2";s:2:"28";s:2:"c3";s:4:",top";s:2:"h3";s:2:"70";}i:1;a:3:{s:1:"A";a:2:{s:4:"type";s:5:"image";s:4:"name";s:8:"accounts";}s:1:"B";a:5:{s:4:"type";s:4:"vbox";s:4:"size";s:1:"3";i:1;a:3:{s:4:"type";s:5:"image";s:4:"name";s:5:"photo";s:4:"span";s:6:",photo";}i:2;a:5:{s:4:"type";s:6:"button";s:5:"label";s:6:"change";s:4:"name";s:12:"change_photo";s:4:"help";s:26:"Upload or delete the photo";s:7:"onclick";s:75:"set_style_by_class(\'table\',\'uploadphoto\',\'display\',\'inline\'); return false;";}i:3;a:2:{s:4:"type";s:8:"template";s:4:"name";s:6:"upload";}}s:1:"C";a:5:{s:4:"type";s:4:"grid";s:4:"data";a:6:{i:0;a:1:{s:1:"A";s:3:"20%";}i:1;a:2:{s:1:"A";a:3:{s:4:"type";s:5:"label";s:4:"size";s:11:",,,n_prefix";s:5:"label";s:6:"prefix";}s:1:"B";a:4:{s:4:"type";s:4:"text";s:4:"name";s:8:"n_prefix";s:4:"size";s:5:"35,64";s:8:"onchange";s:23:"setFileasOptions(this);";}}i:2;a:2:{s:1:"A";a:3:{s:4:"type";s:5:"label";s:5:"label";s:10:"first name";s:4:"size";s:10:",,,n_given";}s:1:"B";a:4:{s:4:"type";s:4:"text";s:4:"name";s:7:"n_given";s:4:"size";s:5:"35,64";s:8:"onchange";s:23:"setFileasOptions(this);";}}i:3;a:2:{s:1:"A";a:3:{s:4:"type";s:5:"label";s:4:"size";s:11:",,,n_middle";s:5:"label";s:11:"middle name";}s:1:"B";a:4:{s:4:"type";s:4:"text";s:4:"name";s:8:"n_middle";s:4:"size";s:5:"35,64";s:8:"onchange";s:23:"setFileasOptions(this);";}}i:4;a:2:{s:1:"A";a:3:{s:4:"type";s:5:"label";s:4:"size";s:11:",,,n_family";s:5:"label";s:9:"last name";}s:1:"B";a:4:{s:4:"type";s:4:"text";s:4:"name";s:8:"n_family";s:4:"size";s:5:"35,64";s:8:"onchange";s:23:"setFileasOptions(this);";}}i:5;a:2:{s:1:"A";a:3:{s:4:"type";s:5:"label";s:4:"size";s:11:",,,n_suffix";s:5:"label";s:6:"suffix";}s:1:"B";a:4:{s:4:"type";s:4:"text";s:4:"name";s:8:"n_suffix";s:4:"size";s:5:"35,64";s:8:"onchange";s:23:"setFileasOptions(this);";}}}s:4:"rows";i:5;s:4:"cols";i:2;s:7:"options";a:0:{}}}i:2;a:3:{s:1:"A";a:2:{s:4:"type";s:5:"image";s:4:"name";s:4:"home";}s:1:"B";a:3:{s:4:"type";s:5:"label";s:5:"label";s:12:"organisation";s:4:"size";s:11:",,,org_name";}s:1:"C";a:4:{s:4:"type";s:4:"text";s:4:"size";s:5:"45,64";s:4:"name";s:8:"org_name";s:8:"onchange";s:23:"setFileasOptions(this);";}}i:3;a:3:{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:8:"category";}s:1:"C";a:4:{s:4:"type";s:10:"select-cat";s:4:"name";s:6:"cat_id";s:4:"size";s:12:"3,,width:99%";s:4:"span";s:1:"4";}}i:4;a:3:{s:1:"A";a:2:{s:4:"type";s:5:"image";s:4:"name";s:11:"private.png";}s:1:"B";a:3:{s:4:"type";s:5:"label";s:5:"label";s:11:"Addressbook";s:4:"size";s:8:",,,owner";}s:1:"C";a:5:{s:4:"type";s:6:"select";s:4:"name";s:5:"owner";s:4:"help";s:42:"Addressbook the contact should be saved to";s:7:"no_lang";s:1:"1";s:4:"span";s:6:",owner";}}}s:4:"rows";i:4;s:4:"cols";i:3;s:4:"size";s:4:",258";s:7:"options";a:1:{i:1;s:3:"258";}}}', 'size' => ',258', 'style' => '', 'modified' => '1130404323',); |
|
| 54 | 54 | |
| 55 | -$templ_data[] = array('name' => 'addressbook.edit.personal.upload','template' => '','lang' => '','group' => '0','version' => '1.3.002','data' => 'a:1:{i:0;a:6:{s:4:"type";s:4:"grid";s:4:"data";a:4:{i:0;a:1:{s:2:"h1";s:12:",!@jpegphoto";}i:1;a:1:{s:1:"A";a:4:{s:4:"type";s:8:"checkbox";s:5:"label";s:6:"delete";s:4:"name";s:12:"delete_photo";s:4:"help";s:17:"Deletes the photo";}}i:2;a:1:{s:1:"A";a:4:{s:4:"type";s:4:"file";s:4:"name";s:12:"upload_photo";s:4:"span";s:6:",photo";s:4:"help";s:74:"Select a portrait format jpeg photo. It will be resized to 60 pixel width.";}}i:3;a:1:{s:1:"A";a:4:{s:4:"type";s:6:"button";s:5:"label";s:2:"Ok";s:5:"align";s:6:"center";s:7:"onclick";s:73:"set_style_by_class(\'table\',\'uploadphoto\',\'display\',\'none\'); return false;";}}}s:4:"rows";i:3;s:4:"cols";i:1;s:4:"size";s:14:",,,uploadphoto";s:7:"options";a:1:{i:3;s:11:"uploadphoto";}}}','size' => ',,,uploadphoto','style' => '','modified' => '1145724831',); |
|
| 55 | +$templ_data[] = array('name' => 'addressbook.edit.personal.upload', 'template' => '', 'lang' => '', 'group' => '0', 'version' => '1.3.002', 'data' => 'a:1:{i:0;a:6:{s:4:"type";s:4:"grid";s:4:"data";a:4:{i:0;a:1:{s:2:"h1";s:12:",!@jpegphoto";}i:1;a:1:{s:1:"A";a:4:{s:4:"type";s:8:"checkbox";s:5:"label";s:6:"delete";s:4:"name";s:12:"delete_photo";s:4:"help";s:17:"Deletes the photo";}}i:2;a:1:{s:1:"A";a:4:{s:4:"type";s:4:"file";s:4:"name";s:12:"upload_photo";s:4:"span";s:6:",photo";s:4:"help";s:74:"Select a portrait format jpeg photo. It will be resized to 60 pixel width.";}}i:3;a:1:{s:1:"A";a:4:{s:4:"type";s:6:"button";s:5:"label";s:2:"Ok";s:5:"align";s:6:"center";s:7:"onclick";s:73:"set_style_by_class(\'table\',\'uploadphoto\',\'display\',\'none\'); return false;";}}}s:4:"rows";i:3;s:4:"cols";i:1;s:4:"size";s:14:",,,uploadphoto";s:7:"options";a:1:{i:3;s:11:"uploadphoto";}}}', 'size' => ',,,uploadphoto', 'style' => '', 'modified' => '1145724831',); |
|
| 56 | 56 | |
| 57 | -$templ_data[] = array('name' => 'addressbook.edit.upload','template' => '','lang' => '','group' => '0','version' => '1.3.004','data' => 'a:1:{i:0;a:6:{s:4:"type";s:4:"grid";s:4:"data";a:4:{i:0;a:1:{s:2:"h1";s:12:",!@jpegphoto";}i:1;a:1:{s:1:"A";a:4:{s:4:"type";s:8:"checkbox";s:5:"label";s:6:"delete";s:4:"name";s:12:"delete_photo";s:4:"help";s:17:"Deletes the photo";}}i:2;a:1:{s:1:"A";a:4:{s:4:"type";s:4:"file";s:4:"name";s:12:"upload_photo";s:4:"span";s:6:",photo";s:4:"help";s:74:"Select a portrait format jpeg photo. It will be resized to 60 pixel width.";}}i:3;a:1:{s:1:"A";a:4:{s:4:"type";s:6:"button";s:5:"label";s:2:"Ok";s:5:"align";s:6:"center";s:7:"onclick";s:64:"jQuery(\'table.uploadphoto\').css(\'display\',\'none\'); return false;";}}}s:4:"rows";i:3;s:4:"cols";i:1;s:4:"size";s:14:",,,uploadphoto";s:7:"options";a:1:{i:3;s:11:"uploadphoto";}}}','size' => ',,,uploadphoto','style' => '','modified' => '1165505380',); |
|
| 57 | +$templ_data[] = array('name' => 'addressbook.edit.upload', 'template' => '', 'lang' => '', 'group' => '0', 'version' => '1.3.004', 'data' => 'a:1:{i:0;a:6:{s:4:"type";s:4:"grid";s:4:"data";a:4:{i:0;a:1:{s:2:"h1";s:12:",!@jpegphoto";}i:1;a:1:{s:1:"A";a:4:{s:4:"type";s:8:"checkbox";s:5:"label";s:6:"delete";s:4:"name";s:12:"delete_photo";s:4:"help";s:17:"Deletes the photo";}}i:2;a:1:{s:1:"A";a:4:{s:4:"type";s:4:"file";s:4:"name";s:12:"upload_photo";s:4:"span";s:6:",photo";s:4:"help";s:74:"Select a portrait format jpeg photo. It will be resized to 60 pixel width.";}}i:3;a:1:{s:1:"A";a:4:{s:4:"type";s:6:"button";s:5:"label";s:2:"Ok";s:5:"align";s:6:"center";s:7:"onclick";s:64:"jQuery(\'table.uploadphoto\').css(\'display\',\'none\'); return false;";}}}s:4:"rows";i:3;s:4:"cols";i:1;s:4:"size";s:14:",,,uploadphoto";s:7:"options";a:1:{i:3;s:11:"uploadphoto";}}}', 'size' => ',,,uploadphoto', 'style' => '', 'modified' => '1165505380',); |
|
| 58 | 58 | |
| 59 | -$templ_data[] = array('name' => 'addressbook.editphones','template' => '','lang' => '','group' => '0','version' => '1.9.001','data' => 'a:1:{i:0;a:6:{s:4:"type";s:4:"grid";s:4:"data";a:18:{i:0;a:1:{s:2:"c2";s:2:"th";}i:1;a:3:{s:1:"A";a:6:{s:4:"type";s:5:"label";s:4:"span";s:16:"all,windowheader";s:5:"label";s:20:"Edit Phonenumbers - ";s:7:"no_lang";s:1:"1";s:5:"align";s:6:"center";s:4:"name";s:2:"fn";}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:3:{s:1:"A";a:2:{s:4:"type";s:5:"label";s:5:"label";s:11:"Description";}s:1:"B";a:2:{s:4:"type";s:5:"label";s:5:"label";s:6:"Number";}s:1:"C";a:2:{s:4:"type";s:5:"label";s:5:"label";s:4:"pref";}}i:3;a:3:{s:1:"A";a:4:{s:4:"type";s:5:"label";s:5:"label";s:8:"business";s:4:"size";s:12:",,,tel_work2";s:4:"span";s:5:",bold";}s:1:"B";a:3:{s:4:"type";s:9:"url-phone";s:4:"size";s:2:"30";s:4:"name";s:9:"tel_work2";}s:1:"C";a:4:{s:4:"type";s:5:"radio";s:4:"size";s:17:"tel_work,♥";s:4:"name";s:10:"tel_prefer";s:4:"help";s:46:"select phone number as prefered way of contact";}}i:4;a:3:{s:1:"A";a:3:{s:4:"type";s:5:"label";s:5:"label";s:12:"mobile phone";s:4:"size";s:12:",,,tel_cell2";}s:1:"B";a:3:{s:4:"type";s:9:"url-phone";s:4:"size";s:2:"30";s:4:"name";s:9:"tel_cell2";}s:1:"C";a:4:{s:4:"type";s:5:"radio";s:4:"size";s:17:"tel_cell,♥";s:4:"name";s:10:"tel_prefer";s:4:"help";s:46:"select phone number as prefered way of contact";}}i:5;a:3:{s:1:"A";a:3:{s:4:"type";s:5:"label";s:5:"label";s:3:"fax";s:4:"size";s:10:",,,tel_fax";}s:1:"B";a:3:{s:4:"type";s:9:"url-phone";s:4:"size";s:2:"30";s:4:"name";s:8:"tel_fax2";}s:1:"C";a:4:{s:4:"type";s:5:"radio";s:4:"size";s:16:"tel_fax,♥";s:4:"name";s:10:"tel_prefer";s:4:"help";s:46:"select phone number as prefered way of contact";}}i:6;a:3:{s:1:"A";a:3:{s:4:"type";s:5:"label";s:5:"label";s:9:"car phone";s:4:"size";s:10:",,,tel_car";}s:1:"B";a:3:{s:4:"type";s:9:"url-phone";s:4:"size";s:2:"30";s:4:"name";s:7:"tel_car";}s:1:"C";a:4:{s:4:"type";s:5:"radio";s:4:"size";s:16:"tel_car,♥";s:4:"name";s:10:"tel_prefer";s:4:"help";s:46:"select phone number as prefered way of contact";}}i:7;a:3:{s:1:"A";a:3:{s:4:"type";s:5:"label";s:5:"label";s:5:"pager";s:4:"size";s:12:",,,tel_pager";}s:1:"B";a:3:{s:4:"type";s:9:"url-phone";s:4:"size";s:2:"30";s:4:"name";s:9:"tel_pager";}s:1:"C";a:4:{s:4:"type";s:5:"radio";s:4:"size";s:18:"tel_pager,♥";s:4:"name";s:10:"tel_prefer";s:4:"help";s:46:"select phone number as prefered way of contact";}}i:8;a:3:{s:1:"A";a:2:{s:4:"type";s:5:"hrule";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";}}i:9;a:3:{s:1:"A";a:4:{s:4:"type";s:5:"label";s:5:"label";s:9:"Assistent";s:4:"size";s:12:",,,assistent";s:4:"span";s:5:",bold";}s:1:"B";a:4:{s:4:"type";s:4:"text";s:4:"size";s:2:"35";s:4:"name";s:9:"assistent";s:4:"span";s:1:"2";}s:1:"C";a:1:{s:4:"type";s:5:"label";}}i:10;a:3:{s:1:"A";a:3:{s:4:"type";s:5:"label";s:5:"label";s:6:"number";s:4:"size";s:16:",,,tel_assistent";}s:1:"B";a:3:{s:4:"type";s:9:"url-phone";s:4:"size";s:2:"30";s:4:"name";s:13:"tel_assistent";}s:1:"C";a:4:{s:4:"type";s:5:"radio";s:4:"size";s:22:"tel_assistent,♥";s:4:"name";s:10:"tel_prefer";s:4:"help";s:46:"select phone number as prefered way of contact";}}i:11;a:3:{s:1:"A";a:2:{s:4:"type";s:5:"hrule";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";}}i:12;a:3:{s:1:"A";a:4:{s:4:"type";s:5:"label";s:5:"label";s:7:"Private";s:4:"size";s:12:",,,tel_home2";s:4:"span";s:5:",bold";}s:1:"B";a:3:{s:4:"type";s:9:"url-phone";s:4:"size";s:2:"30";s:4:"name";s:9:"tel_home2";}s:1:"C";a:4:{s:4:"type";s:5:"radio";s:4:"size";s:17:"tel_home,♥";s:4:"name";s:10:"tel_prefer";s:4:"help";s:46:"select phone number as prefered way of contact";}}i:13;a:3:{s:1:"A";a:3:{s:4:"type";s:5:"label";s:5:"label";s:12:"mobile phone";s:4:"size";s:19:",,,tel_cell_private";}s:1:"B";a:3:{s:4:"type";s:9:"url-phone";s:4:"size";s:2:"30";s:4:"name";s:16:"tel_cell_private";}s:1:"C";a:4:{s:4:"type";s:5:"radio";s:4:"size";s:25:"tel_cell_private,♥";s:4:"name";s:10:"tel_prefer";s:4:"help";s:46:"select phone number as prefered way of contact";}}i:14;a:3:{s:1:"A";a:3:{s:4:"type";s:5:"label";s:5:"label";s:3:"fax";s:4:"size";s:15:",,,tel_fax_home";}s:1:"B";a:3:{s:4:"type";s:9:"url-phone";s:4:"size";s:2:"30";s:4:"name";s:12:"tel_fax_home";}s:1:"C";a:4:{s:4:"type";s:5:"radio";s:4:"size";s:21:"tel_fax_home,♥";s:4:"name";s:10:"tel_prefer";s:4:"help";s:46:"select phone number as prefered way of contact";}}i:15;a:3:{s:1:"A";a:2:{s:4:"type";s:5:"hrule";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";}}i:16;a:3:{s:1:"A";a:3:{s:4:"type";s:5:"label";s:5:"label";s:12:" Other Phone";s:4:"size";s:12:",,,tel_other";}s:1:"B";a:3:{s:4:"type";s:9:"url-phone";s:4:"size";s:2:"30";s:4:"name";s:9:"tel_other";}s:1:"C";a:4:{s:4:"type";s:5:"radio";s:4:"size";s:18:"tel_other,♥";s:4:"name";s:10:"tel_prefer";s:4:"help";s:46:"select phone number as prefered way of contact";}}i:17;a:3:{s:1:"A";a:6:{s:4:"type";s:6:"button";s:5:"label";s:2:"Ok";s:7:"onclick";s:109:"jQuery(\'table.editphones\').css(\'display\',\'none\'); if (window.hidephones) hidephones(this.form); return false;";s:4:"span";s:3:"all";s:5:"align";s:6:"center";s:4:"name";s:10:"button[ok]";}s:1:"B";a:1:{s:4:"type";s:5:"label";}s:1:"C";a:1:{s:4:"type";s:5:"label";}}}s:4:"rows";i:17;s:4:"cols";i:3;s:4:"size";s:13:",,,editphones";s:7:"options";a:1:{i:3;s:10:"editphones";}}}','size' => ',,,editphones','style' => '','modified' => '1131901207',); |
|
| 59 | +$templ_data[] = array('name' => 'addressbook.editphones', 'template' => '', 'lang' => '', 'group' => '0', 'version' => '1.9.001', 'data' => 'a:1:{i:0;a:6:{s:4:"type";s:4:"grid";s:4:"data";a:18:{i:0;a:1:{s:2:"c2";s:2:"th";}i:1;a:3:{s:1:"A";a:6:{s:4:"type";s:5:"label";s:4:"span";s:16:"all,windowheader";s:5:"label";s:20:"Edit Phonenumbers - ";s:7:"no_lang";s:1:"1";s:5:"align";s:6:"center";s:4:"name";s:2:"fn";}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:3:{s:1:"A";a:2:{s:4:"type";s:5:"label";s:5:"label";s:11:"Description";}s:1:"B";a:2:{s:4:"type";s:5:"label";s:5:"label";s:6:"Number";}s:1:"C";a:2:{s:4:"type";s:5:"label";s:5:"label";s:4:"pref";}}i:3;a:3:{s:1:"A";a:4:{s:4:"type";s:5:"label";s:5:"label";s:8:"business";s:4:"size";s:12:",,,tel_work2";s:4:"span";s:5:",bold";}s:1:"B";a:3:{s:4:"type";s:9:"url-phone";s:4:"size";s:2:"30";s:4:"name";s:9:"tel_work2";}s:1:"C";a:4:{s:4:"type";s:5:"radio";s:4:"size";s:17:"tel_work,♥";s:4:"name";s:10:"tel_prefer";s:4:"help";s:46:"select phone number as prefered way of contact";}}i:4;a:3:{s:1:"A";a:3:{s:4:"type";s:5:"label";s:5:"label";s:12:"mobile phone";s:4:"size";s:12:",,,tel_cell2";}s:1:"B";a:3:{s:4:"type";s:9:"url-phone";s:4:"size";s:2:"30";s:4:"name";s:9:"tel_cell2";}s:1:"C";a:4:{s:4:"type";s:5:"radio";s:4:"size";s:17:"tel_cell,♥";s:4:"name";s:10:"tel_prefer";s:4:"help";s:46:"select phone number as prefered way of contact";}}i:5;a:3:{s:1:"A";a:3:{s:4:"type";s:5:"label";s:5:"label";s:3:"fax";s:4:"size";s:10:",,,tel_fax";}s:1:"B";a:3:{s:4:"type";s:9:"url-phone";s:4:"size";s:2:"30";s:4:"name";s:8:"tel_fax2";}s:1:"C";a:4:{s:4:"type";s:5:"radio";s:4:"size";s:16:"tel_fax,♥";s:4:"name";s:10:"tel_prefer";s:4:"help";s:46:"select phone number as prefered way of contact";}}i:6;a:3:{s:1:"A";a:3:{s:4:"type";s:5:"label";s:5:"label";s:9:"car phone";s:4:"size";s:10:",,,tel_car";}s:1:"B";a:3:{s:4:"type";s:9:"url-phone";s:4:"size";s:2:"30";s:4:"name";s:7:"tel_car";}s:1:"C";a:4:{s:4:"type";s:5:"radio";s:4:"size";s:16:"tel_car,♥";s:4:"name";s:10:"tel_prefer";s:4:"help";s:46:"select phone number as prefered way of contact";}}i:7;a:3:{s:1:"A";a:3:{s:4:"type";s:5:"label";s:5:"label";s:5:"pager";s:4:"size";s:12:",,,tel_pager";}s:1:"B";a:3:{s:4:"type";s:9:"url-phone";s:4:"size";s:2:"30";s:4:"name";s:9:"tel_pager";}s:1:"C";a:4:{s:4:"type";s:5:"radio";s:4:"size";s:18:"tel_pager,♥";s:4:"name";s:10:"tel_prefer";s:4:"help";s:46:"select phone number as prefered way of contact";}}i:8;a:3:{s:1:"A";a:2:{s:4:"type";s:5:"hrule";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";}}i:9;a:3:{s:1:"A";a:4:{s:4:"type";s:5:"label";s:5:"label";s:9:"Assistent";s:4:"size";s:12:",,,assistent";s:4:"span";s:5:",bold";}s:1:"B";a:4:{s:4:"type";s:4:"text";s:4:"size";s:2:"35";s:4:"name";s:9:"assistent";s:4:"span";s:1:"2";}s:1:"C";a:1:{s:4:"type";s:5:"label";}}i:10;a:3:{s:1:"A";a:3:{s:4:"type";s:5:"label";s:5:"label";s:6:"number";s:4:"size";s:16:",,,tel_assistent";}s:1:"B";a:3:{s:4:"type";s:9:"url-phone";s:4:"size";s:2:"30";s:4:"name";s:13:"tel_assistent";}s:1:"C";a:4:{s:4:"type";s:5:"radio";s:4:"size";s:22:"tel_assistent,♥";s:4:"name";s:10:"tel_prefer";s:4:"help";s:46:"select phone number as prefered way of contact";}}i:11;a:3:{s:1:"A";a:2:{s:4:"type";s:5:"hrule";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";}}i:12;a:3:{s:1:"A";a:4:{s:4:"type";s:5:"label";s:5:"label";s:7:"Private";s:4:"size";s:12:",,,tel_home2";s:4:"span";s:5:",bold";}s:1:"B";a:3:{s:4:"type";s:9:"url-phone";s:4:"size";s:2:"30";s:4:"name";s:9:"tel_home2";}s:1:"C";a:4:{s:4:"type";s:5:"radio";s:4:"size";s:17:"tel_home,♥";s:4:"name";s:10:"tel_prefer";s:4:"help";s:46:"select phone number as prefered way of contact";}}i:13;a:3:{s:1:"A";a:3:{s:4:"type";s:5:"label";s:5:"label";s:12:"mobile phone";s:4:"size";s:19:",,,tel_cell_private";}s:1:"B";a:3:{s:4:"type";s:9:"url-phone";s:4:"size";s:2:"30";s:4:"name";s:16:"tel_cell_private";}s:1:"C";a:4:{s:4:"type";s:5:"radio";s:4:"size";s:25:"tel_cell_private,♥";s:4:"name";s:10:"tel_prefer";s:4:"help";s:46:"select phone number as prefered way of contact";}}i:14;a:3:{s:1:"A";a:3:{s:4:"type";s:5:"label";s:5:"label";s:3:"fax";s:4:"size";s:15:",,,tel_fax_home";}s:1:"B";a:3:{s:4:"type";s:9:"url-phone";s:4:"size";s:2:"30";s:4:"name";s:12:"tel_fax_home";}s:1:"C";a:4:{s:4:"type";s:5:"radio";s:4:"size";s:21:"tel_fax_home,♥";s:4:"name";s:10:"tel_prefer";s:4:"help";s:46:"select phone number as prefered way of contact";}}i:15;a:3:{s:1:"A";a:2:{s:4:"type";s:5:"hrule";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";}}i:16;a:3:{s:1:"A";a:3:{s:4:"type";s:5:"label";s:5:"label";s:12:" Other Phone";s:4:"size";s:12:",,,tel_other";}s:1:"B";a:3:{s:4:"type";s:9:"url-phone";s:4:"size";s:2:"30";s:4:"name";s:9:"tel_other";}s:1:"C";a:4:{s:4:"type";s:5:"radio";s:4:"size";s:18:"tel_other,♥";s:4:"name";s:10:"tel_prefer";s:4:"help";s:46:"select phone number as prefered way of contact";}}i:17;a:3:{s:1:"A";a:6:{s:4:"type";s:6:"button";s:5:"label";s:2:"Ok";s:7:"onclick";s:109:"jQuery(\'table.editphones\').css(\'display\',\'none\'); if (window.hidephones) hidephones(this.form); return false;";s:4:"span";s:3:"all";s:5:"align";s:6:"center";s:4:"name";s:10:"button[ok]";}s:1:"B";a:1:{s:4:"type";s:5:"label";}s:1:"C";a:1:{s:4:"type";s:5:"label";}}}s:4:"rows";i:17;s:4:"cols";i:3;s:4:"size";s:13:",,,editphones";s:7:"options";a:1:{i:3;s:10:"editphones";}}}', 'size' => ',,,editphones', 'style' => '', 'modified' => '1131901207',); |
|
| 60 | 60 | |
| 61 | -$templ_data[] = array('name' => 'addressbook.email','template' => '','lang' => '','group' => '0','version' => '1.3.001','data' => 'a:1:{i:0;a:5:{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:3:{s:1:"A";a:5:{s:5:"align";s:6:"center";s:7:"no_lang";s:1:"1";s:4:"span";s:13:"all,redItalic";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.email.left";s:4:"type";s:8:"template";}s:1:"B";a:2:{s:5:"align";s:5:"right";s:4:"type";s:5:"label";}}i:3;a:3:{s:1:"A";a:4:{s:4:"span";s:3:"all";s:4:"name";s:2:"nm";s:4:"type";s:9:"nextmatch";s:4:"size";s:22:"addressbook.email.rows";}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: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:4:"name";s:3:"add";s:4:"type";s:6:"button";s:4:"help";s:17:"Add a new contact";}s:1:"B";a:6:{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:8:"onchange";s:60:"if (this.value != \'\') { this.form.submit(); this.value=\'\'; }";s:4:"name";s:6:"action";s:4:"size";s:45:"Select an action or addressbook to move to...";s:4:"type";s:6:"select";s:4:"help";s:42:"Select an action or addressbook to move to";}i:3;a:8:{s:5:"label";s:9:"Check all";s:6:"needed";s:1:"1";s:7:"onclick";s:70:"toggle_all(this.form,form::name(\'nm[rows][checked][]\')); return false;";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:"cols";i:3;s:4:"rows";i:4;s:4:"size";s:4:"100%";}}','size' => '100%','style' => '','modified' => '1374069394',); |
|
| 61 | +$templ_data[] = array('name' => 'addressbook.email', 'template' => '', 'lang' => '', 'group' => '0', 'version' => '1.3.001', 'data' => 'a:1:{i:0;a:5:{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:3:{s:1:"A";a:5:{s:5:"align";s:6:"center";s:7:"no_lang";s:1:"1";s:4:"span";s:13:"all,redItalic";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.email.left";s:4:"type";s:8:"template";}s:1:"B";a:2:{s:5:"align";s:5:"right";s:4:"type";s:5:"label";}}i:3;a:3:{s:1:"A";a:4:{s:4:"span";s:3:"all";s:4:"name";s:2:"nm";s:4:"type";s:9:"nextmatch";s:4:"size";s:22:"addressbook.email.rows";}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: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:4:"name";s:3:"add";s:4:"type";s:6:"button";s:4:"help";s:17:"Add a new contact";}s:1:"B";a:6:{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:8:"onchange";s:60:"if (this.value != \'\') { this.form.submit(); this.value=\'\'; }";s:4:"name";s:6:"action";s:4:"size";s:45:"Select an action or addressbook to move to...";s:4:"type";s:6:"select";s:4:"help";s:42:"Select an action or addressbook to move to";}i:3;a:8:{s:5:"label";s:9:"Check all";s:6:"needed";s:1:"1";s:7:"onclick";s:70:"toggle_all(this.form,form::name(\'nm[rows][checked][]\')); return false;";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:"cols";i:3;s:4:"rows";i:4;s:4:"size";s:4:"100%";}}', 'size' => '100%', 'style' => '', 'modified' => '1374069394',); |
|
| 62 | 62 | |
| 63 | -$templ_data[] = array('name' => 'addressbook.email.left','template' => '','lang' => '','group' => '0','version' => '1.5.001','data' => 'a:2:{i:0;a:10:{s:4:"rows";s:1:"1";s:4:"cols";s:1:"1";s:7:"no_lang";s:1:"1";s:5:"class";s:4:"bold";s:4:"type";s:4:"hbox";s:4:"size";s:1:"3";i:1;a:9:{s:4:"rows";s:1:"1";s:4:"cols";s:1:"1";s:7:"no_lang";s:1:"1";s:5:"label";s:2:"To";s:4:"name";s:2:"to";s:4:"size";s:2:"to";s:4:"type";s:5:"radio";s:4:"help";s:30:"where to add the email address";s:4:"span";s:5:",bold";}i:2;a:9:{s:4:"rows";s:1:"1";s:4:"cols";s:1:"1";s:7:"no_lang";s:1:"1";s:5:"label";s:2:"Cc";s:4:"name";s:2:"to";s:4:"size";s:2:"cc";s:4:"type";s:5:"radio";s:4:"help";s:30:"where to add the email address";s:4:"span";s:5:",bold";}i:3;a:9:{s:4:"rows";s:1:"1";s:4:"cols";s:1:"1";s:7:"no_lang";s:1:"1";s:5:"label";s:3:"Bcc";s:4:"name";s:2:"to";s:4:"size";s:3:"bcc";s:4:"type";s:5:"radio";s:4:"help";s:30:"where to add the email address";s:4:"span";s:5:",bold";}i:4;a:1:{s:4:"type";s:5:"label";}}i:1;a:6:{s:5:"class";s:4:"bold";s:7:"no_lang";s:1:"1";s:4:"type";s:4:"hbox";s:4:"size";s:1:"2";i:1;a:7:{s:5:"label";s:14:"Business email";s:7:"no_lang";s:1:"1";s:4:"name";s:10:"email_type";s:4:"size";s:5:"email";s:4:"type";s:5:"radio";s:4:"help";s:61:"preferred type of email address to add for distribution lists";s:4:"span";s:5:",bold";}i:2;a:7:{s:5:"label";s:10:"Home email";s:7:"no_lang";s:1:"1";s:4:"name";s:10:"email_type";s:4:"size";s:10:"email_home";s:4:"type";s:5:"radio";s:4:"help";s:61:"preferred type of email address to add for distribution lists";s:4:"span";s:5:",bold";}}}','size' => '','style' => '','modified' => '1194360774',); |
|
| 63 | +$templ_data[] = array('name' => 'addressbook.email.left', 'template' => '', 'lang' => '', 'group' => '0', 'version' => '1.5.001', 'data' => 'a:2:{i:0;a:10:{s:4:"rows";s:1:"1";s:4:"cols";s:1:"1";s:7:"no_lang";s:1:"1";s:5:"class";s:4:"bold";s:4:"type";s:4:"hbox";s:4:"size";s:1:"3";i:1;a:9:{s:4:"rows";s:1:"1";s:4:"cols";s:1:"1";s:7:"no_lang";s:1:"1";s:5:"label";s:2:"To";s:4:"name";s:2:"to";s:4:"size";s:2:"to";s:4:"type";s:5:"radio";s:4:"help";s:30:"where to add the email address";s:4:"span";s:5:",bold";}i:2;a:9:{s:4:"rows";s:1:"1";s:4:"cols";s:1:"1";s:7:"no_lang";s:1:"1";s:5:"label";s:2:"Cc";s:4:"name";s:2:"to";s:4:"size";s:2:"cc";s:4:"type";s:5:"radio";s:4:"help";s:30:"where to add the email address";s:4:"span";s:5:",bold";}i:3;a:9:{s:4:"rows";s:1:"1";s:4:"cols";s:1:"1";s:7:"no_lang";s:1:"1";s:5:"label";s:3:"Bcc";s:4:"name";s:2:"to";s:4:"size";s:3:"bcc";s:4:"type";s:5:"radio";s:4:"help";s:30:"where to add the email address";s:4:"span";s:5:",bold";}i:4;a:1:{s:4:"type";s:5:"label";}}i:1;a:6:{s:5:"class";s:4:"bold";s:7:"no_lang";s:1:"1";s:4:"type";s:4:"hbox";s:4:"size";s:1:"2";i:1;a:7:{s:5:"label";s:14:"Business email";s:7:"no_lang";s:1:"1";s:4:"name";s:10:"email_type";s:4:"size";s:5:"email";s:4:"type";s:5:"radio";s:4:"help";s:61:"preferred type of email address to add for distribution lists";s:4:"span";s:5:",bold";}i:2;a:7:{s:5:"label";s:10:"Home email";s:7:"no_lang";s:1:"1";s:4:"name";s:10:"email_type";s:4:"size";s:10:"email_home";s:4:"type";s:5:"radio";s:4:"help";s:61:"preferred type of email address to add for distribution lists";s:4:"span";s:5:",bold";}}}', 'size' => '', 'style' => '', 'modified' => '1194360774',); |
|
| 64 | 64 | |
| 65 | -$templ_data[] = array('name' => 'addressbook.email.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:5:{s:2:"c1";s:2:"th";s:2:"c2";s:7:"row,top";s:1:"C";s:17:",!@order=n_family";s:1:"B";s:16:",!@order=n_given";s:1:"E";s:32:",!@order=/^(org_name|n_fileas)$/";}i:1;a:8:{s:1:"A";a:1:{s:4:"type";s:5:"label";}s:1:"B";a:4:{s:4:"type";s:4:"hbox";s:4:"size";s:6:"2,,0,0";i:1;a:3:{s:4:"type";s:20:"nextmatch-sortheader";s:4:"name";s:7:"n_given";s:5:"label";s:9:"Firstname";}i:2;a:3:{s:4:"type";s:20:"nextmatch-sortheader";s:5:"label";s:4:"Name";s:4:"name";s:8:"n_family";}}s:1:"C";a:4:{s:4:"type";s:4:"hbox";s:4:"size";s:6:"2,,0,0";i:1;a:3:{s:4:"type";s:20:"nextmatch-sortheader";s:5:"label";s:4:"Name";s:4:"name";s:8:"n_family";}i:2;a:3:{s:4:"type";s:20:"nextmatch-sortheader";s:4:"name";s:7:"n_given";s:5:"label";s:9:"Firstname";}}s:1:"D";a:3:{s:4:"name";s:8:"org_name";s:5:"label";s:7:"Company";s:4:"type";s:20:"nextmatch-sortheader";}s:1:"E";a:4:{s:4:"type";s:4:"hbox";s:4:"size";s:6:"2,,0,0";i:1;a:3:{s:4:"type";s:20:"nextmatch-sortheader";s:5:"label";s:4:"Name";s:4:"name";s:8:"n_family";}i:2;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";}}s:1:"F";a:3:{s:4:"type";s:16:"nextmatch-header";s:5:"label";s:14:"Business email";s:4:"name";s:5:"email";}s:1:"G";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:"H";a:6:{s:4:"type";s:4:"hbox";s:5:"align";s:6:"center";s:4:"size";s:1:"2";i:1;a:4:{s:4:"type";s:16:"nextmatch-header";s:5:"label";s:7:"Actions";s:5:"align";s:6:"center";s:4:"name";s:14:"legacy_actions";}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:98:"egw_globalObjectManager.getObjectById(\'addressbook.email.rows\').toggleAllSelected(); return false;";s:6:"needed";s:1:"1";s:5:"align";s:5:"right";}s:4:"span";s:8:",noPrint";}}i:2;a:8:{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:4:{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:"name";s:15:"${row}[n_given]";s:5:"label";s:1:" ";s:7:"no_lang";s:1:"1";}i:2;a:4:{s:4:"type";s:5:"label";s:7:"no_lang";s:1:"1";s:4:"name";s:16:"${row}[n_family]";s:4:"span";s:9:",leftPad5";}}s:1:"C";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:16:"${row}[n_family]";}i:2;a:5:{s:4:"type";s:5:"label";s:4:"name";s:15:"${row}[n_given]";s:4:"span";s:9:",leftPad5";s:5:"label";s:1:" ";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_name]";s:7:"no_lang";s:1:"1";}s:1:"E";a:4:{s:4:"type";s:4:"hbox";s:4:"size";s:6:"2,,0,0";i:1;a:3:{s:4:"type";s:5:"label";s:7:"no_lang";s:1:"1";s:4:"name";s:16:"${row}[n_family]";}i:2;a:5:{s:4:"type";s:5:"label";s:4:"name";s:15:"${row}[n_given]";s:4:"span";s:9:",leftPad5";s:5:"label";s:1:" ";s:7:"no_lang";s:1:"1";}}s:1:"F";a:5:{s:4:"type";s:3:"box";s:4:"size";s:6:"1,,0,0";s:7:"no_lang";s:1:"1";s:4:"span";s:9:",emailCol";i:1;a:4:{s:4:"type";s:5:"label";s:4:"size";s:129:","javascript:var nfn=\'$row_cont[n_fn]\';nfn=nfn.replace(/,|@/g,\'\');this.addEmail(nfn+\' <$row_cont[email]>\');",,,,,$row_cont[email]";s:4:"name";s:13:"${row}[email]";s:7:"no_lang";s:1:"1";}}s:1:"G";a:5:{s:4:"type";s:3:"box";s:4:"size";s:6:"1,,0,0";s:7:"no_lang";s:1:"1";s:4:"span";s:9:",emailCol";i:1;a:4:{s:4:"type";s:5:"label";s:4:"size";s:139:","javascript:var nfn=\'$row_cont[n_fn]\';nfn=nfn.replace(/,|@/g,\'\');this.addEmail(nfn+\' <$row_cont[email_home]>\');",,,,,$row_cont[email_home]";s:4:"name";s:18:"${row}[email_home]";s:7:"no_lang";s:1:"1";}}s:1:"H";a:6:{s:4:"type";s:4:"hbox";s:4:"size";s:5:"3,0,0";i:1;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=850,height=440,scrollbars=yes,status=yes\'); return false;";s:4:"name";s:19:"edit[$row_cont[id]]";}i:2;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:3;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:8;s:4:"size";s:4:"100%";s:7:"options";a:1:{i:0;s:4:"100%";}}}','size' => '100%','style' => '','modified' => '1374069887',); |
|
| 65 | +$templ_data[] = array('name' => 'addressbook.email.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:5:{s:2:"c1";s:2:"th";s:2:"c2";s:7:"row,top";s:1:"C";s:17:",!@order=n_family";s:1:"B";s:16:",!@order=n_given";s:1:"E";s:32:",!@order=/^(org_name|n_fileas)$/";}i:1;a:8:{s:1:"A";a:1:{s:4:"type";s:5:"label";}s:1:"B";a:4:{s:4:"type";s:4:"hbox";s:4:"size";s:6:"2,,0,0";i:1;a:3:{s:4:"type";s:20:"nextmatch-sortheader";s:4:"name";s:7:"n_given";s:5:"label";s:9:"Firstname";}i:2;a:3:{s:4:"type";s:20:"nextmatch-sortheader";s:5:"label";s:4:"Name";s:4:"name";s:8:"n_family";}}s:1:"C";a:4:{s:4:"type";s:4:"hbox";s:4:"size";s:6:"2,,0,0";i:1;a:3:{s:4:"type";s:20:"nextmatch-sortheader";s:5:"label";s:4:"Name";s:4:"name";s:8:"n_family";}i:2;a:3:{s:4:"type";s:20:"nextmatch-sortheader";s:4:"name";s:7:"n_given";s:5:"label";s:9:"Firstname";}}s:1:"D";a:3:{s:4:"name";s:8:"org_name";s:5:"label";s:7:"Company";s:4:"type";s:20:"nextmatch-sortheader";}s:1:"E";a:4:{s:4:"type";s:4:"hbox";s:4:"size";s:6:"2,,0,0";i:1;a:3:{s:4:"type";s:20:"nextmatch-sortheader";s:5:"label";s:4:"Name";s:4:"name";s:8:"n_family";}i:2;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";}}s:1:"F";a:3:{s:4:"type";s:16:"nextmatch-header";s:5:"label";s:14:"Business email";s:4:"name";s:5:"email";}s:1:"G";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:"H";a:6:{s:4:"type";s:4:"hbox";s:5:"align";s:6:"center";s:4:"size";s:1:"2";i:1;a:4:{s:4:"type";s:16:"nextmatch-header";s:5:"label";s:7:"Actions";s:5:"align";s:6:"center";s:4:"name";s:14:"legacy_actions";}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:98:"egw_globalObjectManager.getObjectById(\'addressbook.email.rows\').toggleAllSelected(); return false;";s:6:"needed";s:1:"1";s:5:"align";s:5:"right";}s:4:"span";s:8:",noPrint";}}i:2;a:8:{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:4:{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:"name";s:15:"${row}[n_given]";s:5:"label";s:1:" ";s:7:"no_lang";s:1:"1";}i:2;a:4:{s:4:"type";s:5:"label";s:7:"no_lang";s:1:"1";s:4:"name";s:16:"${row}[n_family]";s:4:"span";s:9:",leftPad5";}}s:1:"C";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:16:"${row}[n_family]";}i:2;a:5:{s:4:"type";s:5:"label";s:4:"name";s:15:"${row}[n_given]";s:4:"span";s:9:",leftPad5";s:5:"label";s:1:" ";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_name]";s:7:"no_lang";s:1:"1";}s:1:"E";a:4:{s:4:"type";s:4:"hbox";s:4:"size";s:6:"2,,0,0";i:1;a:3:{s:4:"type";s:5:"label";s:7:"no_lang";s:1:"1";s:4:"name";s:16:"${row}[n_family]";}i:2;a:5:{s:4:"type";s:5:"label";s:4:"name";s:15:"${row}[n_given]";s:4:"span";s:9:",leftPad5";s:5:"label";s:1:" ";s:7:"no_lang";s:1:"1";}}s:1:"F";a:5:{s:4:"type";s:3:"box";s:4:"size";s:6:"1,,0,0";s:7:"no_lang";s:1:"1";s:4:"span";s:9:",emailCol";i:1;a:4:{s:4:"type";s:5:"label";s:4:"size";s:129:","javascript:var nfn=\'$row_cont[n_fn]\';nfn=nfn.replace(/,|@/g,\'\');this.addEmail(nfn+\' <$row_cont[email]>\');",,,,,$row_cont[email]";s:4:"name";s:13:"${row}[email]";s:7:"no_lang";s:1:"1";}}s:1:"G";a:5:{s:4:"type";s:3:"box";s:4:"size";s:6:"1,,0,0";s:7:"no_lang";s:1:"1";s:4:"span";s:9:",emailCol";i:1;a:4:{s:4:"type";s:5:"label";s:4:"size";s:139:","javascript:var nfn=\'$row_cont[n_fn]\';nfn=nfn.replace(/,|@/g,\'\');this.addEmail(nfn+\' <$row_cont[email_home]>\');",,,,,$row_cont[email_home]";s:4:"name";s:18:"${row}[email_home]";s:7:"no_lang";s:1:"1";}}s:1:"H";a:6:{s:4:"type";s:4:"hbox";s:4:"size";s:5:"3,0,0";i:1;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=850,height=440,scrollbars=yes,status=yes\'); return false;";s:4:"name";s:19:"edit[$row_cont[id]]";}i:2;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:3;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:8;s:4:"size";s:4:"100%";s:7:"options";a:1:{i:0;s:4:"100%";}}}', 'size' => '100%', 'style' => '', 'modified' => '1374069887',); |
|
| 66 | 66 | |
| 67 | -$templ_data[] = array('name' => 'addressbook.export_csv_options','template' => '','lang' => '','group' => '0','version' => '1.9.001','data' => 'a:1:{i:0;a:4:{s:4:"type";s:4:"grid";s:4:"data";a:4:{i:0;a:1:{s:1:"B";s:5:"180px";}i:1;a:2:{s:1:"A";a:4:{s:4:"type";s:5:"label";s:7:"no_lang";s:1:"1";s:4:"name";s:3:"msg";s:4:"span";s:3:"all";}s:1:"B";a:1:{s:4:"type";s:5:"label";}}i:2;a:2:{s:1:"A";a:2:{s:4:"type";s:5:"label";s:5:"label";s:14:"Fieldseperator";}s:1:"B";a:4:{s:4:"type";s:4:"text";s:7:"no_lang";s:1:"1";s:4:"name";s:9:"delimiter";s:4:"size";s:1:"1";}}i:3;a:2:{s:1:"A";a:2:{s:4:"type";s:5:"label";s:5:"label";s:14:"Include header";}s:1:"B";a:2:{s:4:"type";s:11:"select-bool";s:4:"name";s:21:"begin_with_fieldnames";}}}s:4:"rows";i:3;s:4:"cols";i:2;}}','size' => '','style' => '.width180 select { width:150px;}','modified' => '1286490285',); |
|
| 67 | +$templ_data[] = array('name' => 'addressbook.export_csv_options', 'template' => '', 'lang' => '', 'group' => '0', 'version' => '1.9.001', 'data' => 'a:1:{i:0;a:4:{s:4:"type";s:4:"grid";s:4:"data";a:4:{i:0;a:1:{s:1:"B";s:5:"180px";}i:1;a:2:{s:1:"A";a:4:{s:4:"type";s:5:"label";s:7:"no_lang";s:1:"1";s:4:"name";s:3:"msg";s:4:"span";s:3:"all";}s:1:"B";a:1:{s:4:"type";s:5:"label";}}i:2;a:2:{s:1:"A";a:2:{s:4:"type";s:5:"label";s:5:"label";s:14:"Fieldseperator";}s:1:"B";a:4:{s:4:"type";s:4:"text";s:7:"no_lang";s:1:"1";s:4:"name";s:9:"delimiter";s:4:"size";s:1:"1";}}i:3;a:2:{s:1:"A";a:2:{s:4:"type";s:5:"label";s:5:"label";s:14:"Include header";}s:1:"B";a:2:{s:4:"type";s:11:"select-bool";s:4:"name";s:21:"begin_with_fieldnames";}}}s:4:"rows";i:3;s:4:"cols";i:2;}}', 'size' => '', 'style' => '.width180 select { width:150px;}', 'modified' => '1286490285',); |
|
| 68 | 68 | |
| 69 | -$templ_data[] = array('name' => 'addressbook.export_csv_selectors','template' => '','lang' => '','group' => '0','version' => '','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:4:{s:4:"type";s:5:"radio";s:5:"label";s:7:"Use all";s:4:"size";s:12:"all_contacts";s:4:"name";s:9:"selection";}}i:2;a:1:{s:1:"A";a:4:{s:4:"type";s:5:"radio";s:5:"label";s:18:"Use search results";s:4:"name";s:9:"selection";s:4:"size";s:7:"use_all";}}}s:4:"rows";i:2;s:4:"cols";i:1;}}','size' => '','style' => '','modified' => '1268429802',); |
|
| 69 | +$templ_data[] = array('name' => 'addressbook.export_csv_selectors', 'template' => '', 'lang' => '', 'group' => '0', 'version' => '', '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:4:{s:4:"type";s:5:"radio";s:5:"label";s:7:"Use all";s:4:"size";s:12:"all_contacts";s:4:"name";s:9:"selection";}}i:2;a:1:{s:1:"A";a:4:{s:4:"type";s:5:"radio";s:5:"label";s:18:"Use search results";s:4:"name";s:9:"selection";s:4:"size";s:7:"use_all";}}}s:4:"rows";i:2;s:4:"cols";i:1;}}', 'size' => '', 'style' => '', 'modified' => '1268429802',); |
|
| 70 | 70 | |
| 71 | -$templ_data[] = array('name' => 'addressbook.export_explode_fields','template' => '','lang' => '','group' => '0','version' => '1.9.001','data' => 'a:1:{i:0;a:4:{s:4:"type";s:4:"grid";s:4:"data";a:4:{i:0;a:2:{s:2:"h2";s:23:",!@explode_multiselects";s:2:"h3";s:22:",@explode_multiselects";}i:1;a:1:{s:1:"A";a:2:{s:4:"type";s:5:"label";s:5:"label";s:24:"List as seperate columns";}}i:2;a:1:{s:1:"A";a:7:{s:4:"type";s:4:"grid";s:4:"size";s:4:"100%";s:4:"name";s:20:"explode_multiselects";s:4:"data";a:3:{i:0;a:1:{s:2:"c1";s:2:"th";}i:1;a:2:{s:1:"A";a:2:{s:4:"type";s:5:"label";s:5:"label";s:5:"Field";}s:1:"B";a:2:{s:4:"type";s:5:"label";s:5:"label";s:5:"Style";}}i:2;a:2:{s:1:"A";a:2:{s:4:"type";s:5:"label";s:4:"name";s:12:"${row}[name]";}s:1:"B";a:2:{s:4:"type";s:6:"select";s:4:"name";s:15:"${row}[explode]";}}}s:4:"rows";i:2;s:4:"cols";i:2;s:7:"options";a:1:{i:0;s:4:"100%";}}}i:3;a:1:{s:1:"A";a:2:{s:4:"type";s:5:"label";s:5:"label";s:43:"No multi-select columns selected for export";}}}s:4:"rows";i:3;s:4:"cols";i:1;}}','size' => '','style' => '','modified' => '1289253873',); |
|
| 71 | +$templ_data[] = array('name' => 'addressbook.export_explode_fields', 'template' => '', 'lang' => '', 'group' => '0', 'version' => '1.9.001', 'data' => 'a:1:{i:0;a:4:{s:4:"type";s:4:"grid";s:4:"data";a:4:{i:0;a:2:{s:2:"h2";s:23:",!@explode_multiselects";s:2:"h3";s:22:",@explode_multiselects";}i:1;a:1:{s:1:"A";a:2:{s:4:"type";s:5:"label";s:5:"label";s:24:"List as seperate columns";}}i:2;a:1:{s:1:"A";a:7:{s:4:"type";s:4:"grid";s:4:"size";s:4:"100%";s:4:"name";s:20:"explode_multiselects";s:4:"data";a:3:{i:0;a:1:{s:2:"c1";s:2:"th";}i:1;a:2:{s:1:"A";a:2:{s:4:"type";s:5:"label";s:5:"label";s:5:"Field";}s:1:"B";a:2:{s:4:"type";s:5:"label";s:5:"label";s:5:"Style";}}i:2;a:2:{s:1:"A";a:2:{s:4:"type";s:5:"label";s:4:"name";s:12:"${row}[name]";}s:1:"B";a:2:{s:4:"type";s:6:"select";s:4:"name";s:15:"${row}[explode]";}}}s:4:"rows";i:2;s:4:"cols";i:2;s:7:"options";a:1:{i:0;s:4:"100%";}}}i:3;a:1:{s:1:"A";a:2:{s:4:"type";s:5:"label";s:5:"label";s:43:"No multi-select columns selected for export";}}}s:4:"rows";i:3;s:4:"cols";i:1;}}', 'size' => '', 'style' => '', 'modified' => '1289253873',); |
|
| 72 | 72 | |
| 73 | -$templ_data[] = array('name' => 'addressbook.importexport_wizard_chooseowner','template' => '','lang' => '','group' => '0','version' => '1.9.001','data' => 'a:1:{i:0;a:4:{s:4:"type";s:4:"grid";s:4:"data";a:6:{i:0;a:1:{s:2:"h2";s:14:",@no_owner_map";}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:3:{s:4:"type";s:8:"checkbox";s:5:"label";s:30:"Use field from CSV if possible";s:4:"name";s:14:"owner_from_csv";}}i:3;a:1:{s:1:"A";a:2:{s:4:"type";s:6:"select";s:4:"name";s:13:"contact_owner";}}i:4;a:1:{s:1:"A";a:1:{s:4:"type";s:5:"label";}}i:5;a:1:{s:1:"A";a:3:{s:4:"type";s:11:"select-bool";s:5:"label";s:32:"Change addressbook when updating";s:4:"name";s:12:"change_owner";}}}s:4:"rows";i:5;s:4:"cols";i:1;}}','size' => '','style' => '','modified' => '1320351347',); |
|
| 73 | +$templ_data[] = array('name' => 'addressbook.importexport_wizard_chooseowner', 'template' => '', 'lang' => '', 'group' => '0', 'version' => '1.9.001', 'data' => 'a:1:{i:0;a:4:{s:4:"type";s:4:"grid";s:4:"data";a:6:{i:0;a:1:{s:2:"h2";s:14:",@no_owner_map";}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:3:{s:4:"type";s:8:"checkbox";s:5:"label";s:30:"Use field from CSV if possible";s:4:"name";s:14:"owner_from_csv";}}i:3;a:1:{s:1:"A";a:2:{s:4:"type";s:6:"select";s:4:"name";s:13:"contact_owner";}}i:4;a:1:{s:1:"A";a:1:{s:4:"type";s:5:"label";}}i:5;a:1:{s:1:"A";a:3:{s:4:"type";s:11:"select-bool";s:5:"label";s:32:"Change addressbook when updating";s:4:"name";s:12:"change_owner";}}}s:4:"rows";i:5;s:4:"cols";i:1;}}', 'size' => '', 'style' => '', 'modified' => '1320351347',); |
|
| 74 | 74 | |
| 75 | -$templ_data[] = array('name' => 'addressbook.importexport_wizard_vcard_charset','template' => '','lang' => '','group' => '0','version' => '1.9.001','data' => 'a:1:{i:0;a:4:{s:4:"type";s:4:"grid";s:4:"data";a:3:{i:0;a:1:{s:1:"B";s:5:"180px";}i:1;a:2:{s:1:"A";a:4:{s:4:"type";s:5:"label";s:7:"no_lang";s:1:"1";s:4:"name";s:3:"msg";s:4:"span";s:3:"all";}s:1:"B";a:1:{s:4:"type";s:5:"label";}}i:2;a:2:{s:1:"A";a:2:{s:4:"type";s:5:"label";s:5:"label";s:15:"Charset of file";}s:1:"B";a:4:{s:4:"type";s:6:"select";s:7:"no_lang";s:1:"1";s:4:"name";s:7:"charset";s:4:"span";s:9:",width180";}}}s:4:"rows";i:2;s:4:"cols";i:2;}}','size' => '','style' => '.width180 select { width:150px;}','modified' => '1349113607',); |
|
| 75 | +$templ_data[] = array('name' => 'addressbook.importexport_wizard_vcard_charset', 'template' => '', 'lang' => '', 'group' => '0', 'version' => '1.9.001', 'data' => 'a:1:{i:0;a:4:{s:4:"type";s:4:"grid";s:4:"data";a:3:{i:0;a:1:{s:1:"B";s:5:"180px";}i:1;a:2:{s:1:"A";a:4:{s:4:"type";s:5:"label";s:7:"no_lang";s:1:"1";s:4:"name";s:3:"msg";s:4:"span";s:3:"all";}s:1:"B";a:1:{s:4:"type";s:5:"label";}}i:2;a:2:{s:1:"A";a:2:{s:4:"type";s:5:"label";s:5:"label";s:15:"Charset of file";}s:1:"B";a:4:{s:4:"type";s:6:"select";s:7:"no_lang";s:1:"1";s:4:"name";s:7:"charset";s:4:"span";s:9:",width180";}}}s:4:"rows";i:2;s:4:"cols";i:2;}}', 'size' => '', 'style' => '.width180 select { width:150px;}', 'modified' => '1349113607',); |
|
| 76 | 76 | |
| 77 | -$templ_data[] = array('name' => 'addressbook.importexport_wizard_vcard_chooseowner','template' => '','lang' => '','group' => '0','version' => '1.9.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: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:6:"select";s:4:"name";s:13:"contact_owner";}}i:3;a:1:{s:1:"A";a:1:{s:4:"type";s:5:"label";}}}s:4:"rows";i:3;s:4:"cols";i:1;}}','size' => '','style' => '','modified' => '1347980440',); |
|
| 77 | +$templ_data[] = array('name' => 'addressbook.importexport_wizard_vcard_chooseowner', 'template' => '', 'lang' => '', 'group' => '0', 'version' => '1.9.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: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:6:"select";s:4:"name";s:13:"contact_owner";}}i:3;a:1:{s:1:"A";a:1:{s:4:"type";s:5:"label";}}}s:4:"rows";i:3;s:4:"cols";i:1;}}', 'size' => '', 'style' => '', 'modified' => '1347980440',); |
|
| 78 | 78 | |
| 79 | -$templ_data[] = array('name' => 'addressbook.importexport_wizzard_chooseowner','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:3:{s:4:"type";s:6:"select";s:4:"name";s:13:"contact_owner";s:4:"size";s:4:"None";}}}s:4:"rows";i:2;s:4:"cols";i:1;}}','size' => '','style' => '','modified' => '1146646360',); |
|
| 79 | +$templ_data[] = array('name' => 'addressbook.importexport_wizzard_chooseowner', '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:3:{s:4:"type";s:6:"select";s:4:"name";s:13:"contact_owner";s:4:"size";s:4:"None";}}}s:4:"rows";i:2;s:4:"cols";i:1;}}', 'size' => '', 'style' => '', 'modified' => '1146646360',); |
|
| 80 | 80 | |
| 81 | -$templ_data[] = array('name' => 'addressbook.importexport_wizzard_choosesepncharset','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:5:{i:0;a:1:{s:1:"B";s:5:"180px";}i:1;a:2:{s:1:"A";a:4:{s:4:"type";s:5:"label";s:7:"no_lang";s:1:"1";s:4:"name";s:3:"msg";s:4:"span";s:3:"all";}s:1:"B";a:1:{s:4:"type";s:5:"label";}}i:2;a:2:{s:1:"A";a:2:{s:4:"type";s:5:"label";s:5:"label";s:14:"Fieldseperator";}s:1:"B";a:4:{s:4:"type";s:4:"text";s:7:"no_lang";s:1:"1";s:4:"name";s:8:"fieldsep";s:4:"size";s:1:"1";}}i:3;a:2:{s:1:"A";a:2:{s:4:"type";s:5:"label";s:5:"label";s:15:"Charset of file";}s:1:"B";a:4:{s:4:"type";s:6:"select";s:7:"no_lang";s:1:"1";s:4:"name";s:7:"charset";s:4:"span";s:9:",width180";}}i:4;a:2:{s:1:"A";a:2:{s:4:"type";s:5:"label";s:5:"label";s:20:"Header lines to skip";}s:1:"B";a:3:{s:4:"type";s:3:"int";s:4:"name";s:16:"num_header_lines";s:4:"size";s:1:"0";}}}s:4:"rows";i:4;s:4:"cols";i:2;}}','size' => '','style' => '.width180 select { width:150px;}','modified' => '1145979153',); |
|
| 81 | +$templ_data[] = array('name' => 'addressbook.importexport_wizzard_choosesepncharset', '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:5:{i:0;a:1:{s:1:"B";s:5:"180px";}i:1;a:2:{s:1:"A";a:4:{s:4:"type";s:5:"label";s:7:"no_lang";s:1:"1";s:4:"name";s:3:"msg";s:4:"span";s:3:"all";}s:1:"B";a:1:{s:4:"type";s:5:"label";}}i:2;a:2:{s:1:"A";a:2:{s:4:"type";s:5:"label";s:5:"label";s:14:"Fieldseperator";}s:1:"B";a:4:{s:4:"type";s:4:"text";s:7:"no_lang";s:1:"1";s:4:"name";s:8:"fieldsep";s:4:"size";s:1:"1";}}i:3;a:2:{s:1:"A";a:2:{s:4:"type";s:5:"label";s:5:"label";s:15:"Charset of file";}s:1:"B";a:4:{s:4:"type";s:6:"select";s:7:"no_lang";s:1:"1";s:4:"name";s:7:"charset";s:4:"span";s:9:",width180";}}i:4;a:2:{s:1:"A";a:2:{s:4:"type";s:5:"label";s:5:"label";s:20:"Header lines to skip";}s:1:"B";a:3:{s:4:"type";s:3:"int";s:4:"name";s:16:"num_header_lines";s:4:"size";s:1:"0";}}}s:4:"rows";i:4;s:4:"cols";i:2;}}', 'size' => '', 'style' => '.width180 select { width:150px;}', 'modified' => '1145979153',); |
|
| 82 | 82 | |
| 83 | -$templ_data[] = array('name' => 'addressbook.importexport_wizzard_choosetype','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:7:"no_lang";s:1:"1";s:4:"name";s:3:"msg";}}i:2;a:1:{s:1:"A";a:3:{s:4:"type";s:6:"select";s:7:"no_lang";s:1:"1";s:4:"name";s:11:"import_type";}}}s:4:"rows";i:2;s:4:"cols";i:1;}}','size' => '','style' => '','modified' => '1145977925',); |
|
| 83 | +$templ_data[] = array('name' => 'addressbook.importexport_wizzard_choosetype', '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:7:"no_lang";s:1:"1";s:4:"name";s:3:"msg";}}i:2;a:1:{s:1:"A";a:3:{s:4:"type";s:6:"select";s:7:"no_lang";s:1:"1";s:4:"name";s:11:"import_type";}}}s:4:"rows";i:2;s:4:"cols";i:1;}}', 'size' => '', 'style' => '', 'modified' => '1145977925',); |
|
| 84 | 84 | |
| 85 | -$templ_data[] = array('name' => 'addressbook.importexport_wizzard_conditions','template' => '','lang' => '','group' => '0','version' => '','data' => 'a:1:{i:0;a:7:{s:4:"type";s:4:"vbox";s:4:"data";a:2:{i:0;a:0:{}i:1;a:4:{s:1:"A";a:2:{s:4:"type";s:6:"select";s:4:"name";s:14:"${row}[string]";}s:1:"B";a:4:{s:4:"type";s:4:"hbox";s:4:"size";s:6:"2,,0,0";i:1;a:2:{s:4:"type";s:6:"select";s:4:"name";s:12:"${row}[type]";}i:2;a:2:{s:4:"type";s:4:"text";s:4:"name";s:12:"${row}[op_2]";}}s:1:"C";a:2:{s:4:"type";s:6:"select";s:4:"name";s:12:"${row}[true]";}s:1:"D";a:2:{s:4:"type";s:6:"select";s:4:"name";s:13:"${row}[false]";}}}s:4:"rows";i:1;s:4:"cols";i:4;s:4:"size";s:1:"2";i:1;a:6:{s:4:"type";s:4:"grid";s:4:"data";a:3:{i:0;a:1:{s:2:"c1";s:2:"th";}i:1;a:6:{s:1:"A";a:2:{s:4:"type";s:5:"label";s:5:"label";s:5:"Field";}s:1:"B";a:2:{s:4:"type";s:5:"label";s:5:"label";s:9:"Condition";}s:1:"C";a:5:{s:4:"type";s:4:"vbox";s:4:"size";s:1:"2";s:4:"span";s:1:"2";i:1;a:4:{s:4:"type";s:5:"label";s:4:"span";s:1:"2";s:5:"label";s:4:"True";s:5:"align";s:6:"center";}i:2;a:4:{s:4:"type";s:4:"hbox";s:4:"size";s:6:"2,,2,0";i:1;a:2:{s:4:"type";s:5:"label";s:5:"label";s:6:"Action";}i:2;a:3:{s:4:"type";s:5:"label";s:5:"label";s:4:"Stop";s:5:"align";s:5:"right";}}}s:1:"D";a:1:{s:4:"type";s:5:"label";}s:1:"E";a:5:{s:4:"type";s:4:"vbox";s:4:"size";s:1:"2";s:4:"span";s:1:"2";i:1;a:4:{s:4:"type";s:5:"label";s:4:"span";s:1:"2";s:5:"label";s:5:"False";s:5:"align";s:6:"center";}i:2;a:4:{s:4:"type";s:4:"hbox";s:4:"size";s:6:"2,,2,0";i:1;a:2:{s:4:"type";s:5:"label";s:5:"label";s:6:"Action";}i:2;a:3:{s:4:"type";s:5:"label";s:5:"label";s:4:"Stop";s:5:"align";s:5:"right";}}}s:1:"F";a:1:{s:4:"type";s:5:"label";}}i:2;a:6:{s:1:"A";a:2:{s:4:"type";s:6:"select";s:4:"name";s:14:"${row}[string]";}s:1:"B";a:4:{s:4:"type";s:4:"hbox";s:4:"size";s:6:"2,,0,0";i:1;a:2:{s:4:"type";s:6:"select";s:4:"name";s:12:"${row}[type]";}i:2;a:2:{s:4:"type";s:4:"text";s:4:"name";s:12:"${row}[op_2]";}}s:1:"C";a:2:{s:4:"type";s:6:"select";s:4:"name";s:20:"${row}[true][action]";}s:1:"D";a:3:{s:4:"type";s:8:"checkbox";s:5:"align";s:6:"center";s:4:"name";s:18:"${row}[true][stop]";}s:1:"E";a:2:{s:4:"type";s:6:"select";s:4:"name";s:21:"${row}[false][action]";}s:1:"F";a:3:{s:4:"type";s:8:"checkbox";s:5:"align";s:6:"center";s:4:"name";s:19:"${row}[false][stop]";}}}s:4:"rows";i:2;s:4:"cols";i:6;s:4:"name";s:10:"conditions";s:7:"options";a:0:{}}i:2;a:5:{s:4:"type";s:6:"button";s:4:"name";s:3:"add";s:5:"label";s:3:"add";s:4:"help";s:59:"This causes a segfault... haven\'t figured out how to fix it";s:8:"disabled";s:1:"1";}}}','size' => '','style' => '','modified' => '1266963791',); |
|
| 85 | +$templ_data[] = array('name' => 'addressbook.importexport_wizzard_conditions', 'template' => '', 'lang' => '', 'group' => '0', 'version' => '', 'data' => 'a:1:{i:0;a:7:{s:4:"type";s:4:"vbox";s:4:"data";a:2:{i:0;a:0:{}i:1;a:4:{s:1:"A";a:2:{s:4:"type";s:6:"select";s:4:"name";s:14:"${row}[string]";}s:1:"B";a:4:{s:4:"type";s:4:"hbox";s:4:"size";s:6:"2,,0,0";i:1;a:2:{s:4:"type";s:6:"select";s:4:"name";s:12:"${row}[type]";}i:2;a:2:{s:4:"type";s:4:"text";s:4:"name";s:12:"${row}[op_2]";}}s:1:"C";a:2:{s:4:"type";s:6:"select";s:4:"name";s:12:"${row}[true]";}s:1:"D";a:2:{s:4:"type";s:6:"select";s:4:"name";s:13:"${row}[false]";}}}s:4:"rows";i:1;s:4:"cols";i:4;s:4:"size";s:1:"2";i:1;a:6:{s:4:"type";s:4:"grid";s:4:"data";a:3:{i:0;a:1:{s:2:"c1";s:2:"th";}i:1;a:6:{s:1:"A";a:2:{s:4:"type";s:5:"label";s:5:"label";s:5:"Field";}s:1:"B";a:2:{s:4:"type";s:5:"label";s:5:"label";s:9:"Condition";}s:1:"C";a:5:{s:4:"type";s:4:"vbox";s:4:"size";s:1:"2";s:4:"span";s:1:"2";i:1;a:4:{s:4:"type";s:5:"label";s:4:"span";s:1:"2";s:5:"label";s:4:"True";s:5:"align";s:6:"center";}i:2;a:4:{s:4:"type";s:4:"hbox";s:4:"size";s:6:"2,,2,0";i:1;a:2:{s:4:"type";s:5:"label";s:5:"label";s:6:"Action";}i:2;a:3:{s:4:"type";s:5:"label";s:5:"label";s:4:"Stop";s:5:"align";s:5:"right";}}}s:1:"D";a:1:{s:4:"type";s:5:"label";}s:1:"E";a:5:{s:4:"type";s:4:"vbox";s:4:"size";s:1:"2";s:4:"span";s:1:"2";i:1;a:4:{s:4:"type";s:5:"label";s:4:"span";s:1:"2";s:5:"label";s:5:"False";s:5:"align";s:6:"center";}i:2;a:4:{s:4:"type";s:4:"hbox";s:4:"size";s:6:"2,,2,0";i:1;a:2:{s:4:"type";s:5:"label";s:5:"label";s:6:"Action";}i:2;a:3:{s:4:"type";s:5:"label";s:5:"label";s:4:"Stop";s:5:"align";s:5:"right";}}}s:1:"F";a:1:{s:4:"type";s:5:"label";}}i:2;a:6:{s:1:"A";a:2:{s:4:"type";s:6:"select";s:4:"name";s:14:"${row}[string]";}s:1:"B";a:4:{s:4:"type";s:4:"hbox";s:4:"size";s:6:"2,,0,0";i:1;a:2:{s:4:"type";s:6:"select";s:4:"name";s:12:"${row}[type]";}i:2;a:2:{s:4:"type";s:4:"text";s:4:"name";s:12:"${row}[op_2]";}}s:1:"C";a:2:{s:4:"type";s:6:"select";s:4:"name";s:20:"${row}[true][action]";}s:1:"D";a:3:{s:4:"type";s:8:"checkbox";s:5:"align";s:6:"center";s:4:"name";s:18:"${row}[true][stop]";}s:1:"E";a:2:{s:4:"type";s:6:"select";s:4:"name";s:21:"${row}[false][action]";}s:1:"F";a:3:{s:4:"type";s:8:"checkbox";s:5:"align";s:6:"center";s:4:"name";s:19:"${row}[false][stop]";}}}s:4:"rows";i:2;s:4:"cols";i:6;s:4:"name";s:10:"conditions";s:7:"options";a:0:{}}i:2;a:5:{s:4:"type";s:6:"button";s:4:"name";s:3:"add";s:5:"label";s:3:"add";s:4:"help";s:59:"This causes a segfault... haven\'t figured out how to fix it";s:8:"disabled";s:1:"1";}}}', 'size' => '', 'style' => '', 'modified' => '1266963791',); |
|
| 86 | 86 | |
| 87 | -$templ_data[] = array('name' => 'addressbook.importexport_wizzard_fieldmaping','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:4:{s:4:"type";s:5:"label";s:7:"no_lang";s:1:"1";s:4:"name";s:3:"msg";s:4:"span";s:3:"all";}}i:2;a:1:{s:1:"A";a:6:{s:4:"type";s:4:"grid";s:4:"data";a:3:{i:0;a:1:{s:2:"c1";s:2:"th";}i:1;a:4:{s:1:"A";a:1:{s:4:"type";s:5:"label";}s:1:"B";a:2:{s:4:"type";s:5:"label";s:5:"label";s:9:"CSV Field";}s:1:"C";a:2:{s:4:"type";s:5:"label";s:5:"label";s:17:"Addressbook Field";}s:1:"D";a:2:{s:4:"type";s:5:"label";s:5:"label";s:11:"Translation";}}i:2;a:4:{s:1:"A";a:3:{s:4:"type";s:5:"label";s:5:"label";s:6:"${row}";s:7:"no_lang";s:1:"1";}s:1:"B";a:3:{s:4:"type";s:5:"label";s:4:"name";s:16:"csv_fields[$row]";s:7:"no_lang";s:1:"1";}s:1:"C";a:3:{s:4:"type";s:6:"select";s:7:"no_lang";s:1:"1";s:4:"name";s:19:"field_mapping[$row]";}s:1:"D";a:2:{s:4:"type";s:4:"text";s:4:"name";s:22:"field_conversion[$row]";}}}s:4:"rows";i:2;s:4:"cols";i:4;s:4:"size";s:10:",,,,,,auto";s:7:"options";a:1:{i:6;s:4:"auto";}}}}s:4:"rows";i:2;s:4:"cols";i:1;}}','size' => '','style' => '','modified' => '1146036809',); |
|
| 87 | +$templ_data[] = array('name' => 'addressbook.importexport_wizzard_fieldmaping', '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:4:{s:4:"type";s:5:"label";s:7:"no_lang";s:1:"1";s:4:"name";s:3:"msg";s:4:"span";s:3:"all";}}i:2;a:1:{s:1:"A";a:6:{s:4:"type";s:4:"grid";s:4:"data";a:3:{i:0;a:1:{s:2:"c1";s:2:"th";}i:1;a:4:{s:1:"A";a:1:{s:4:"type";s:5:"label";}s:1:"B";a:2:{s:4:"type";s:5:"label";s:5:"label";s:9:"CSV Field";}s:1:"C";a:2:{s:4:"type";s:5:"label";s:5:"label";s:17:"Addressbook Field";}s:1:"D";a:2:{s:4:"type";s:5:"label";s:5:"label";s:11:"Translation";}}i:2;a:4:{s:1:"A";a:3:{s:4:"type";s:5:"label";s:5:"label";s:6:"${row}";s:7:"no_lang";s:1:"1";}s:1:"B";a:3:{s:4:"type";s:5:"label";s:4:"name";s:16:"csv_fields[$row]";s:7:"no_lang";s:1:"1";}s:1:"C";a:3:{s:4:"type";s:6:"select";s:7:"no_lang";s:1:"1";s:4:"name";s:19:"field_mapping[$row]";}s:1:"D";a:2:{s:4:"type";s:4:"text";s:4:"name";s:22:"field_conversion[$row]";}}}s:4:"rows";i:2;s:4:"cols";i:4;s:4:"size";s:10:",,,,,,auto";s:7:"options";a:1:{i:6;s:4:"auto";}}}}s:4:"rows";i:2;s:4:"cols";i:1;}}', 'size' => '', 'style' => '', 'modified' => '1146036809',); |
|
| 88 | 88 | |
| 89 | -$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',); |
|
| 89 | +$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',); |
|
| 90 | 90 | |
| 91 | -$templ_data[] = array('name' => 'addressbook.index','template' => '','lang' => '','group' => '0','version' => '1.9.002','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:9:{s:1:"A";a:5:{s:5:"align";s:6:"center";s:7:"no_lang";s:1:"1";s:4:"span";s:13:"all,redItalic";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";}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:1:"G";a:1:{s:4:"type";s:5:"label";}s:1:"H";a:1:{s:4:"type";s:5:"label";}s:1:"I";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:9:{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";}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:1:"G";a:1:{s:4:"type";s:5:"label";}s:1:"H";a:1:{s:4:"type";s:5:"label";}s:1:"I";a:1:{s:4:"type";s:5:"label";}}i:4;a:9:{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:6:{s:5:"align";s:5:"right";s:4:"span";s:3:"all";s:4:"type";s:4:"hbox";s:4:"size";s:1:"2";i:1;a:5:{s:5:"label";s:13:"Select action";s:7:"onclick";s:231:"if (!egw_globalObjectManager.getObjectById(\'addressbook.\'+({$cont[nm][do_email]} ? \'email\' : \'index\') + \'.rows\').executeActionImplementation(this, \'popup\')) alert(egw::lang(\'You need to select some entries first!\')); return false;;";s:4:"name";s:14:"legacy_actions";s:4:"type";s:10:"buttononly";s:4:"help";s:13:"Select action";}i:2;a:8:{s:5:"label";s:9:"Check all";s:6:"needed";s:1:"1";s:7:"onclick";s:142:"egw_globalObjectManager.getObjectById(\'addressbook.\'+({$cont[nm][do_email]} ? \'email\' : \'index\') + \'.rows\').toggleAllSelected(); return false;";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: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:1:"G";a:1:{s:4:"type";s:5:"label";}s:1:"H";a:1:{s:4:"type";s:5:"label";}s:1:"I";a:1:{s:4:"type";s:5:"label";}}}s:4:"cols";i:9;s:4:"rows";i:4;s:4:"size";s:4:"100%";}}','size' => '100%','style' => '','modified' => '1372179804',); |
|
| 91 | +$templ_data[] = array('name' => 'addressbook.index', 'template' => '', 'lang' => '', 'group' => '0', 'version' => '1.9.002', '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:9:{s:1:"A";a:5:{s:5:"align";s:6:"center";s:7:"no_lang";s:1:"1";s:4:"span";s:13:"all,redItalic";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";}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:1:"G";a:1:{s:4:"type";s:5:"label";}s:1:"H";a:1:{s:4:"type";s:5:"label";}s:1:"I";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:9:{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";}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:1:"G";a:1:{s:4:"type";s:5:"label";}s:1:"H";a:1:{s:4:"type";s:5:"label";}s:1:"I";a:1:{s:4:"type";s:5:"label";}}i:4;a:9:{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:6:{s:5:"align";s:5:"right";s:4:"span";s:3:"all";s:4:"type";s:4:"hbox";s:4:"size";s:1:"2";i:1;a:5:{s:5:"label";s:13:"Select action";s:7:"onclick";s:231:"if (!egw_globalObjectManager.getObjectById(\'addressbook.\'+({$cont[nm][do_email]} ? \'email\' : \'index\') + \'.rows\').executeActionImplementation(this, \'popup\')) alert(egw::lang(\'You need to select some entries first!\')); return false;;";s:4:"name";s:14:"legacy_actions";s:4:"type";s:10:"buttononly";s:4:"help";s:13:"Select action";}i:2;a:8:{s:5:"label";s:9:"Check all";s:6:"needed";s:1:"1";s:7:"onclick";s:142:"egw_globalObjectManager.getObjectById(\'addressbook.\'+({$cont[nm][do_email]} ? \'email\' : \'index\') + \'.rows\').toggleAllSelected(); return false;";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: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:1:"G";a:1:{s:4:"type";s:5:"label";}s:1:"H";a:1:{s:4:"type";s:5:"label";}s:1:"I";a:1:{s:4:"type";s:5:"label";}}}s:4:"cols";i:9;s:4:"rows";i:4;s:4:"size";s:4:"100%";}}', 'size' => '100%', 'style' => '', 'modified' => '1372179804',); |
|
| 92 | 92 | |
| 93 | -$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',); |
|
| 93 | +$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',); |
|
| 94 | 94 | |
| 95 | -$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',); |
|
| 95 | +$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',); |
|
| 96 | 96 | |
| 97 | -$templ_data[] = array('name' => 'addressbook.index.org_rows','template' => '','lang' => '','group' => '0','version' => '1.9.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:2:"th";s:2:"c2";s:7:"row,top";s:1:"F";s:2:"90";}i:1;a:6:{s:1:"A";a:1:{s:4:"type";s:5:"label";}s:1:"B";a:8:{s:4:"type";s:16:"nextmatch-header";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:4:"name";s:6:"number";s:4:"size";s:6:"Number";}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:3:{s:4:"type";s:16:"nextmatch-header";s:5:"label";s:10:"Department";s:4:"name";s:8:"org_unit";}s:1:"E";a:3:{s:4:"type";s:16:"nextmatch-header";s:5:"label";s:16:"Business address";s:4:"name";s:8:"business";}s:1:"F";a:6:{s:4:"type";s:4:"hbox";s:5:"align";s:6:"center";s:4:"size";s:1:"2";i:1;a:4:{s:4:"type";s:16:"nextmatch-header";s:5:"label";s:7:"Actions";s:5:"align";s:6:"center";s:4:"name";s:14:"legacy_actions";}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:6:{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:8:{s:4:"type";s:4:"hbox";s:4:"size";s:5:"5,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:186:"window.open(egw::link(\'/index.php\',\'menuaction=addressbook.addressbook_ui.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:6:"button";s:4:"size";s:7:"infolog";s:5:"label";s:7:"InfoLog";s:4:"name";s:22:"infolog[$row_cont[id]]";s:4:"help";s:42:"Show InfoLog entries for this organisation";}s:4:"span";s:8:",noPrint";i:5;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:"rows";i:2;s:4:"cols";i:6;s:4:"size";s:4:"100%";s:7:"options";a:1:{i:0;s:4:"100%";}}}','size' => '100%','style' => '','modified' => '1303075218',); |
|
| 97 | +$templ_data[] = array('name' => 'addressbook.index.org_rows', 'template' => '', 'lang' => '', 'group' => '0', 'version' => '1.9.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:2:"th";s:2:"c2";s:7:"row,top";s:1:"F";s:2:"90";}i:1;a:6:{s:1:"A";a:1:{s:4:"type";s:5:"label";}s:1:"B";a:8:{s:4:"type";s:16:"nextmatch-header";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:4:"name";s:6:"number";s:4:"size";s:6:"Number";}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:3:{s:4:"type";s:16:"nextmatch-header";s:5:"label";s:10:"Department";s:4:"name";s:8:"org_unit";}s:1:"E";a:3:{s:4:"type";s:16:"nextmatch-header";s:5:"label";s:16:"Business address";s:4:"name";s:8:"business";}s:1:"F";a:6:{s:4:"type";s:4:"hbox";s:5:"align";s:6:"center";s:4:"size";s:1:"2";i:1;a:4:{s:4:"type";s:16:"nextmatch-header";s:5:"label";s:7:"Actions";s:5:"align";s:6:"center";s:4:"name";s:14:"legacy_actions";}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:6:{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:8:{s:4:"type";s:4:"hbox";s:4:"size";s:5:"5,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:186:"window.open(egw::link(\'/index.php\',\'menuaction=addressbook.addressbook_ui.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:6:"button";s:4:"size";s:7:"infolog";s:5:"label";s:7:"InfoLog";s:4:"name";s:22:"infolog[$row_cont[id]]";s:4:"help";s:42:"Show InfoLog entries for this organisation";}s:4:"span";s:8:",noPrint";i:5;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:"rows";i:2;s:4:"cols";i:6;s:4:"size";s:4:"100%";s:7:"options";a:1:{i:0;s:4:"100%";}}}', 'size' => '100%', 'style' => '', 'modified' => '1303075218',); |
|
| 98 | 98 | |
| 99 | -$templ_data[] = array('name' => 'addressbook.index.right','template' => '','lang' => '','group' => '0','version' => '1.5.001','data' => 'a:1:{i:0;a:6:{s:4:"type";s:6:"select";s:4:"name";s:15:"col_filter[tid]";s:4:"help";s:23:"Select addressbook type";s:8:"onchange";i:1;s:4:"size";s:3:"All";s:5:"label";s:4:"Type";}}','size' => '','style' => '','modified' => '1145286218',); |
|
| 99 | +$templ_data[] = array('name' => 'addressbook.index.right', 'template' => '', 'lang' => '', 'group' => '0', 'version' => '1.5.001', 'data' => 'a:1:{i:0;a:6:{s:4:"type";s:6:"select";s:4:"name";s:15:"col_filter[tid]";s:4:"help";s:23:"Select addressbook type";s:8:"onchange";i:1;s:4:"size";s:3:"All";s:5:"label";s:4:"Type";}}', 'size' => '', 'style' => '', 'modified' => '1145286218',); |
|
| 100 | 100 | |
| 101 | -$templ_data[] = array('name' => 'addressbook.index.right_add','template' => '','lang' => '','group' => '0','version' => '1.7.001','data' => 'a:1:{i:0;a:4:{s:4:"type";s:4:"hbox";s:4:"size";s:1:"2";i:1;a:4:{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;";}i:2;a:5:{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;";}}}','size' => '','style' => '.rightPadAdd { width: 30px; }','modified' => '1257757888',); |
|
| 101 | +$templ_data[] = array('name' => 'addressbook.index.right_add', 'template' => '', 'lang' => '', 'group' => '0', 'version' => '1.7.001', 'data' => 'a:1:{i:0;a:4:{s:4:"type";s:4:"hbox";s:4:"size";s:1:"2";i:1;a:4:{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;";}i:2;a:5:{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;";}}}', 'size' => '', 'style' => '.rightPadAdd { width: 30px; }', 'modified' => '1257757888',); |
|
| 102 | 102 | |
| 103 | -$templ_data[] = array('name' => 'addressbook.index.right_addplus','template' => '','lang' => '','group' => '0','version' => '1.9.001','data' => 'a:1:{i:0;a:4:{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:5:"align";s:5:"right";s:5:"label";s:4:"Type";s:8:"onchange";s:1:"1";s:4:"name";s:15:"col_filter[tid]";s:4:"size";s:3:"All";s:4:"type";s:6:"select";}s:1:"B";a:5:{s:5:"align";s:5:"right";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:4:"name";s:6:"search";s:4:"type";s:10:"buttononly";}s:1:"C";a:6:{s:5:"align";s:5:"right";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:10:"buttononly";s:4:"help";s:17:"Add a new contact";}}}s:4:"cols";i:3;s:4:"rows";i:1;}}','size' => '','style' => '.rightPadAdd { width: 30px; }','modified' => '1360250716',); |
|
| 103 | +$templ_data[] = array('name' => 'addressbook.index.right_addplus', 'template' => '', 'lang' => '', 'group' => '0', 'version' => '1.9.001', 'data' => 'a:1:{i:0;a:4:{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:5:"align";s:5:"right";s:5:"label";s:4:"Type";s:8:"onchange";s:1:"1";s:4:"name";s:15:"col_filter[tid]";s:4:"size";s:3:"All";s:4:"type";s:6:"select";}s:1:"B";a:5:{s:5:"align";s:5:"right";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:4:"name";s:6:"search";s:4:"type";s:10:"buttononly";}s:1:"C";a:6:{s:5:"align";s:5:"right";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:10:"buttononly";s:4:"help";s:17:"Add a new contact";}}}s:4:"cols";i:3;s:4:"rows";i:1;}}', 'size' => '', 'style' => '.rightPadAdd { width: 30px; }', 'modified' => '1360250716',); |
|
| 104 | 104 | |
| 105 | -$templ_data[] = array('name' => 'addressbook.index.rows','template' => '','lang' => '','group' => '0','version' => '1.9.005','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:"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:38:"$row_cont[cat_id] $row_cont[class],top";s:1:"H";s:48:",@no_home_adr_two_countrycode_adr_two_postalcode";}i:1;a:18:{s:1:"A";a:3:{s:4:"size";s:1:"1";s:4:"type";s:16:"nextmatch-header";s:4:"name";s:4:"icon";}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:5:"label";s:11:"own sorting";s:4:"span";s:3:"all";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:5:"label";s:11:"own sorting";s:4:"span";s:3:"all";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:5:{s:4:"size";s:6:"3,,0,0";s:4:"type";s:4:"vbox";i:1;a:3:{s:5:"label";s:12:"Home address";s:4:"name";s:4:"home";s:4:"type";s:16:"nextmatch-header";}i:2;a:4:{s:4:"name";s:19:"adr_two_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_two_postalcode";s:4:"type";s:20:"nextmatch-sortheader";}}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:5:"label";s:7:"Actions";s:4:"name";s:14:"legacy_actions";s:4:"type";s:16:"nextmatch-header";}i:2;a:8:{s:5:"align";s:5:"right";s:5:"label";s:9:"Check all";s:6:"needed";s:1:"1";s:7:"onclick";s:98:"egw_globalObjectManager.getObjectById(\'addressbook.index.rows\').toggleAllSelected(); return false;";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:"align";s:6:"center";s:5:"label";s:21:"$row_cont[type_label]";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:1:"1";s:4:"name";s:14:"${row}[cat_id]";s:4:"size";s:1:"2";}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:"cols";s:1:"1";s:4:"rows";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:"type";s:4:"hbox";s:4:"size";s:1:"4";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:"type";s:4:"hbox";s:4:"size";s:1:"3";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' => '1307033727',); |
|
| 105 | +$templ_data[] = array('name' => 'addressbook.index.rows', 'template' => '', 'lang' => '', 'group' => '0', 'version' => '1.9.005', '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:"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:38:"$row_cont[cat_id] $row_cont[class],top";s:1:"H";s:48:",@no_home_adr_two_countrycode_adr_two_postalcode";}i:1;a:18:{s:1:"A";a:3:{s:4:"size";s:1:"1";s:4:"type";s:16:"nextmatch-header";s:4:"name";s:4:"icon";}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:5:"label";s:11:"own sorting";s:4:"span";s:3:"all";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:5:"label";s:11:"own sorting";s:4:"span";s:3:"all";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:5:{s:4:"size";s:6:"3,,0,0";s:4:"type";s:4:"vbox";i:1;a:3:{s:5:"label";s:12:"Home address";s:4:"name";s:4:"home";s:4:"type";s:16:"nextmatch-header";}i:2;a:4:{s:4:"name";s:19:"adr_two_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_two_postalcode";s:4:"type";s:20:"nextmatch-sortheader";}}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:5:"label";s:7:"Actions";s:4:"name";s:14:"legacy_actions";s:4:"type";s:16:"nextmatch-header";}i:2;a:8:{s:5:"align";s:5:"right";s:5:"label";s:9:"Check all";s:6:"needed";s:1:"1";s:7:"onclick";s:98:"egw_globalObjectManager.getObjectById(\'addressbook.index.rows\').toggleAllSelected(); return false;";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:"align";s:6:"center";s:5:"label";s:21:"$row_cont[type_label]";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:1:"1";s:4:"name";s:14:"${row}[cat_id]";s:4:"size";s:1:"2";}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:"cols";s:1:"1";s:4:"rows";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:"type";s:4:"hbox";s:4:"size";s:1:"4";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:"type";s:4:"hbox";s:4:"size";s:1:"3";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' => '1307033727',); |
|
| 106 | 106 | |
| 107 | -$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',); |
|
| 107 | +$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',); |
|
| 108 | 108 | |
| 109 | -$templ_data[] = array('name' => 'addressbook.test','template' => '','lang' => '','group' => '0','version' => '','data' => 'a:1:{i:0;a:4:{s:4:"type";s:4:"grid";s:4:"data";a:2:{i:0;a:0:{}i:1;a:1:{s:1:"A";a:2:{s:4:"type";s:19:"customfields-single";s:4:"name";s:14:"${row}[#woher]";}}}s:4:"rows";i:1;s:4:"cols";i:1;}}','size' => '','style' => '','modified' => '1195762644',); |
|
| 109 | +$templ_data[] = array('name' => 'addressbook.test', 'template' => '', 'lang' => '', 'group' => '0', 'version' => '', 'data' => 'a:1:{i:0;a:4:{s:4:"type";s:4:"grid";s:4:"data";a:2:{i:0;a:0:{}i:1;a:1:{s:1:"A";a:2:{s:4:"type";s:19:"customfields-single";s:4:"name";s:14:"${row}[#woher]";}}}s:4:"rows";i:1;s:4:"cols";i:1;}}', 'size' => '', 'style' => '', 'modified' => '1195762644',); |
|
| 110 | 110 | |
| 111 | -$templ_data[] = array('name' => 'addressbook.view','template' => '','lang' => '','group' => '0','version' => '','data' => 'a:1:{i:0;a:6:{s:4:"type";s:4:"grid";s:4:"data";a:5:{i:0;a:1:{s:1:"A";s:3:"750";}i:1;a:1:{s:1:"A";a:1:{s:4:"type";s:5:"label";}}i:2;a:1:{s:1:"A";a:3:{s:4:"type";s:3:"tab";s:5:"label";s:28:"overview|link|details|custom";s:4:"name";s:28:"overview|link|details|custom";}}i:3;a:1:{s:1:"A";a:4:{s:4:"type";s:4:"hbox";s:4:"size";s:1:"2";i:1;a:4:{s:4:"type";s:4:"hbox";s:4:"size";s:1:"2";i:1;a:2:{s:4:"type";s:5:"label";s:5:"label";s:5:"owner";}i:2;a:3:{s:4:"type";s:14:"select-account";s:4:"name";s:5:"owner";s:8:"readonly";s:1:"1";}}i:2;a:5:{s:4:"type";s:4:"hbox";s:4:"size";s:1:"2";s:5:"align";s:5:"right";i:1;a:2:{s:4:"type";s:5:"label";s:5:"label";s:13:"last modified";}i:2;a:3:{s:4:"type";s:9:"date-time";s:4:"name";s:8:"last_mod";s:8:"readonly";s:1:"1";}}}}i:4;a:1:{s:1:"A";a:4:{s:4:"type";s:4:"hbox";s:4:"size";s:1:"2";i:1;a:7:{s:4:"type";s:4:"hbox";s:4:"size";s:1:"5";i:1;a:5:{s:4:"name";s:15:"button[private]";s:7:"onclick";s:13:"return false;";s:5:"label";s:7:"private";s:4:"size";s:8:"password";s:4:"type";s:6:"button";}i:2;a:4:{s:4:"type";s:6:"button";s:5:"label";s:4:"Edit";s:4:"name";s:12:"button[edit]";s:7:"onclick";s:213:"window.open(egw::link(\'/index.php\',\'menuaction=addressbook.uicontacts.edit&contact_id=$cont[id]\'),\'\',\'dependent=yes,width=800,height=600,location=no,menubar=no,toolbar=no,scrollbars=yes,status=yes\'); return false;";}i:3;a:4:{s:4:"type";s:6:"button";s:5:"label";s:4:"Copy";s:4:"name";s:12:"button[copy]";s:7:"onclick";s:222:"window.open(egw::link(\'/index.php\',\'menuaction=addressbook.uicontacts.edit&contact_id=$cont[id]&makecp=1\'),\'\',\'dependent=yes,width=800,height=600,location=no,menubar=no,toolbar=no,scrollbars=yes,status=yes\'); return false;";}i:4;a:3:{s:4:"type";s:6:"button";s:5:"label";s:5:"Vcard";s:4:"name";s:13:"button[vcard]";}i:5;a:3:{s:4:"type";s:6:"button";s:5:"label";s:6:"Cancel";s:4:"name";s:14:"button[cancel]";}}i:2;a:4:{s:4:"type";s:4:"hbox";s:4:"size";s:1:"1";s:5:"align";s:5:"right";i:1;a:4:{s:4:"type";s:6:"button";s:5:"label";s:6:"Delete";s:4:"name";s:14:"button[delete]";s:7:"onclick";s:60:"return confirm(\'Do you really want do delte this contact?\');";}}}}}s:4:"rows";i:4;s:4:"cols";i:1;s:5:"align";s:6:"center";s:7:"options";a:0:{}}}','size' => '','style' => '.contactviewblock{ |
|
| 111 | +$templ_data[] = array('name' => 'addressbook.view', 'template' => '', 'lang' => '', 'group' => '0', 'version' => '', 'data' => 'a:1:{i:0;a:6:{s:4:"type";s:4:"grid";s:4:"data";a:5:{i:0;a:1:{s:1:"A";s:3:"750";}i:1;a:1:{s:1:"A";a:1:{s:4:"type";s:5:"label";}}i:2;a:1:{s:1:"A";a:3:{s:4:"type";s:3:"tab";s:5:"label";s:28:"overview|link|details|custom";s:4:"name";s:28:"overview|link|details|custom";}}i:3;a:1:{s:1:"A";a:4:{s:4:"type";s:4:"hbox";s:4:"size";s:1:"2";i:1;a:4:{s:4:"type";s:4:"hbox";s:4:"size";s:1:"2";i:1;a:2:{s:4:"type";s:5:"label";s:5:"label";s:5:"owner";}i:2;a:3:{s:4:"type";s:14:"select-account";s:4:"name";s:5:"owner";s:8:"readonly";s:1:"1";}}i:2;a:5:{s:4:"type";s:4:"hbox";s:4:"size";s:1:"2";s:5:"align";s:5:"right";i:1;a:2:{s:4:"type";s:5:"label";s:5:"label";s:13:"last modified";}i:2;a:3:{s:4:"type";s:9:"date-time";s:4:"name";s:8:"last_mod";s:8:"readonly";s:1:"1";}}}}i:4;a:1:{s:1:"A";a:4:{s:4:"type";s:4:"hbox";s:4:"size";s:1:"2";i:1;a:7:{s:4:"type";s:4:"hbox";s:4:"size";s:1:"5";i:1;a:5:{s:4:"name";s:15:"button[private]";s:7:"onclick";s:13:"return false;";s:5:"label";s:7:"private";s:4:"size";s:8:"password";s:4:"type";s:6:"button";}i:2;a:4:{s:4:"type";s:6:"button";s:5:"label";s:4:"Edit";s:4:"name";s:12:"button[edit]";s:7:"onclick";s:213:"window.open(egw::link(\'/index.php\',\'menuaction=addressbook.uicontacts.edit&contact_id=$cont[id]\'),\'\',\'dependent=yes,width=800,height=600,location=no,menubar=no,toolbar=no,scrollbars=yes,status=yes\'); return false;";}i:3;a:4:{s:4:"type";s:6:"button";s:5:"label";s:4:"Copy";s:4:"name";s:12:"button[copy]";s:7:"onclick";s:222:"window.open(egw::link(\'/index.php\',\'menuaction=addressbook.uicontacts.edit&contact_id=$cont[id]&makecp=1\'),\'\',\'dependent=yes,width=800,height=600,location=no,menubar=no,toolbar=no,scrollbars=yes,status=yes\'); return false;";}i:4;a:3:{s:4:"type";s:6:"button";s:5:"label";s:5:"Vcard";s:4:"name";s:13:"button[vcard]";}i:5;a:3:{s:4:"type";s:6:"button";s:5:"label";s:6:"Cancel";s:4:"name";s:14:"button[cancel]";}}i:2;a:4:{s:4:"type";s:4:"hbox";s:4:"size";s:1:"1";s:5:"align";s:5:"right";i:1;a:4:{s:4:"type";s:6:"button";s:5:"label";s:6:"Delete";s:4:"name";s:14:"button[delete]";s:7:"onclick";s:60:"return confirm(\'Do you really want do delte this contact?\');";}}}}}s:4:"rows";i:4;s:4:"cols";i:1;s:5:"align";s:6:"center";s:7:"options";a:0:{}}}', 'size' => '', 'style' => '.contactviewblock{ |
|
| 112 | 112 | vertical-align: top; |
| 113 | 113 | } |
| 114 | 114 | .contactviewicon{ |
| 115 | 115 | vertical-align: top; |
| 116 | 116 | }','modified' => '1131713623',); |
| 117 | 117 | |
| 118 | -$templ_data[] = array('name' => 'addressbook.view.custom','template' => '','lang' => '','group' => '0','version' => '','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:1:{s:1:"A";a:2:{s:4:"type";s:12:"customfields";s:8:"readonly";s:1:"1";}}}s:4:"rows";i:1;s:4:"cols";i:1;s:4:"size";s:4:",280";s:7:"options";a:1:{i:1;s:3:"280";}}}','size' => ',280','style' => '','modified' => '1131720533',); |
|
| 118 | +$templ_data[] = array('name' => 'addressbook.view.custom', 'template' => '', 'lang' => '', 'group' => '0', 'version' => '', '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:1:{s:1:"A";a:2:{s:4:"type";s:12:"customfields";s:8:"readonly";s:1:"1";}}}s:4:"rows";i:1;s:4:"cols";i:1;s:4:"size";s:4:",280";s:7:"options";a:1:{i:1;s:3:"280";}}}', 'size' => ',280', 'style' => '', 'modified' => '1131720533',); |
|
| 119 | 119 | |
| 120 | -$templ_data[] = array('name' => 'addressbook.view.details','template' => '','lang' => '','group' => '0','version' => '','data' => 'a:1:{i:0;a:6:{s:4:"type";s:4:"grid";s:4:"data";a:4:{i:0;a:3:{s:2:"c1";s:4:",top";s:2:"c2";s:4:",top";s:2:"c3";s:4:",top";}i:1;a:3:{s:1:"A";a:1:{s:4:"type";s:5:"label";}s:1:"B";a:2:{s:4:"type";s:5:"label";s:5:"label";s:5:"notes";}s:1:"C";a:4:{s:4:"type";s:8:"textarea";s:4:"size";s:4:"4,80";s:7:"no_lang";s:1:"1";s:4:"name";s:4:"note";}}i:2;a:3:{s:1:"A";a:1:{s:4:"type";s:5:"label";}s:1:"B";a:2:{s:4:"type";s:5:"label";s:5:"label";s:5:"Label";}s:1:"C";a:4:{s:4:"type";s:8:"textarea";s:4:"size";s:4:"4,80";s:4:"name";s:5:"label";s:7:"no_lang";s:1:"1";}}i:3;a:3:{s:1:"A";a:1:{s:4:"type";s:5:"label";}s:1:"B";a:2:{s:4:"type";s:5:"label";s:5:"label";s:10:"public key";}s:1:"C";a:4:{s:4:"type";s:8:"textarea";s:4:"size";s:4:"4,80";s:7:"no_lang";s:1:"1";s:4:"name";s:6:"pubkey";}}}s:4:"rows";i:3;s:4:"cols";i:3;s:4:"size";s:4:",280";s:7:"options";a:1:{i:1;s:3:"280";}}}','size' => ',280','style' => '','modified' => '1131721350',); |
|
| 120 | +$templ_data[] = array('name' => 'addressbook.view.details', 'template' => '', 'lang' => '', 'group' => '0', 'version' => '', 'data' => 'a:1:{i:0;a:6:{s:4:"type";s:4:"grid";s:4:"data";a:4:{i:0;a:3:{s:2:"c1";s:4:",top";s:2:"c2";s:4:",top";s:2:"c3";s:4:",top";}i:1;a:3:{s:1:"A";a:1:{s:4:"type";s:5:"label";}s:1:"B";a:2:{s:4:"type";s:5:"label";s:5:"label";s:5:"notes";}s:1:"C";a:4:{s:4:"type";s:8:"textarea";s:4:"size";s:4:"4,80";s:7:"no_lang";s:1:"1";s:4:"name";s:4:"note";}}i:2;a:3:{s:1:"A";a:1:{s:4:"type";s:5:"label";}s:1:"B";a:2:{s:4:"type";s:5:"label";s:5:"label";s:5:"Label";}s:1:"C";a:4:{s:4:"type";s:8:"textarea";s:4:"size";s:4:"4,80";s:4:"name";s:5:"label";s:7:"no_lang";s:1:"1";}}i:3;a:3:{s:1:"A";a:1:{s:4:"type";s:5:"label";}s:1:"B";a:2:{s:4:"type";s:5:"label";s:5:"label";s:10:"public key";}s:1:"C";a:4:{s:4:"type";s:8:"textarea";s:4:"size";s:4:"4,80";s:7:"no_lang";s:1:"1";s:4:"name";s:6:"pubkey";}}}s:4:"rows";i:3;s:4:"cols";i:3;s:4:"size";s:4:",280";s:7:"options";a:1:{i:1;s:3:"280";}}}', 'size' => ',280', 'style' => '', 'modified' => '1131721350',); |
|
| 121 | 121 | |
| 122 | -$templ_data[] = array('name' => 'addressbook.view.link','template' => '','lang' => '','group' => '0','version' => '','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:1:{s:1:"A";a:1:{s:4:"type";s:5:"label";}}}s:4:"rows";i:1;s:4:"cols";i:1;s:4:"size";s:4:",280";s:7:"options";a:1:{i:1;s:3:"280";}}}','size' => ',280','style' => '','modified' => '1131721121',); |
|
| 122 | +$templ_data[] = array('name' => 'addressbook.view.link', 'template' => '', 'lang' => '', 'group' => '0', 'version' => '', '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:1:{s:1:"A";a:1:{s:4:"type";s:5:"label";}}}s:4:"rows";i:1;s:4:"cols";i:1;s:4:"size";s:4:",280";s:7:"options";a:1:{i:1;s:3:"280";}}}', 'size' => ',280', 'style' => '', 'modified' => '1131721121',); |
|
| 123 | 123 | |
| 124 | -$templ_data[] = array('name' => 'addressbook.view.overview','template' => '','lang' => '','group' => '0','version' => '','data' => 'a:1:{i:0;a:7:{s:4:"type";s:4:"grid";s:4:"data";a:4:{i:0;a:3:{s:2:"c2";s:4:",top";s:1:"A";s:4:"100%";s:2:"c3";s:4:",top";}i:1;a:1:{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:5:"label";s:4:"size";s:1:"b";s:4:"name";s:2:"fn";s:7:"no_lang";s:1:"1";}i:2;a:5:{s:4:"type";s:4:"hbox";s:4:"size";s:1:"2";i:1;a:5:{s:4:"type";s:5:"label";s:4:"name";s:2:"tz";s:8:"readonly";s:1:"1";s:7:"no_lang";s:1:"1";s:5:"label";s:9:"time zone";}i:2;a:5:{s:4:"type";s:4:"date";s:5:"label";s:8:"birthday";s:4:"name";s:4:"bday";s:8:"readonly";s:1:"1";s:7:"no_lang";s:1:"1";}s:5:"align";s:5:"right";}s:4:"span";s:3:"all";}}i:2;a:1:{s:1:"A";a:4:{s:4:"type";s:4:"grid";s:4:"data";a:2:{i:0;a:1:{s:2:"c1";s:4:",top";}i:1;a:2:{s:1:"A";a:4:{s:4:"type";s:4:"vbox";s:4:"size";s:1:"2";i:1;a:5:{s:4:"type";s:4:"grid";s:4:"span";s:17:",contactviewblock";s:4:"data";a:2:{i:0;a:2:{s:2:"c1";s:4:",top";s:2:"h1";s:19:",@!personal_entries";}i:1;a:2:{s:1:"A";a:2:{s:4:"type";s:5:"image";s:4:"name";s:8:"personal";}s:1:"B";a:5:{s:4:"type";s:4:"grid";s:4:"name";s:16:"personal_entries";s:4:"data";a:2:{i:0;a:1:{s:2:"c1";s:3:"nmr";}i:1;a:2:{s:1:"A";a:3:{s:4:"type";s:5:"label";s:4:"size";s:1:"b";s:4:"name";s:13:"${row}[field]";}s:1:"B";a:3:{s:4:"type";s:5:"label";s:7:"no_lang";s:1:"1";s:4:"name";s:13:"${row}[value]";}}}s:4:"rows";i:1;s:4:"cols";i:2;}}}s:4:"rows";i:1;s:4:"cols";i:2;}i:2;a:6:{s:4:"type";s:4:"grid";s:4:"span";s:17:",contactviewblock";s:4:"data";a:2:{i:0;a:2:{s:2:"c1";s:4:",top";s:2:"h1";s:23:",@!organisation_entries";}i:1;a:2:{s:1:"A";a:2:{s:4:"type";s:5:"image";s:4:"name";s:6:"gohome";}s:1:"B";a:5:{s:4:"type";s:4:"grid";s:4:"name";s:20:"organisation_entries";s:4:"data";a:2:{i:0;a:1:{s:2:"c1";s:3:"nmr";}i:1;a:2:{s:1:"A";a:3:{s:4:"type";s:5:"label";s:4:"size";s:1:"b";s:4:"name";s:13:"${row}[field]";}s:1:"B";a:3:{s:4:"type";s:5:"label";s:7:"no_lang";s:1:"1";s:4:"name";s:13:"${row}[value]";}}}s:4:"rows";i:1;s:4:"cols";i:2;}}}s:4:"rows";i:1;s:4:"cols";i:2;s:7:"options";a:0:{}}}s:1:"B";a:5:{s:4:"type";s:4:"vbox";s:4:"size";s:1:"3";i:1;a:5:{s:4:"type";s:4:"grid";s:4:"span";s:17:",contactviewblock";s:4:"data";a:2:{i:0;a:2:{s:2:"c1";s:4:",top";s:2:"h1";s:16:",@!phone_entries";}i:1;a:2:{s:1:"A";a:2:{s:4:"type";s:5:"image";s:4:"name";s:12:"kaddressbook";}s:1:"B";a:5:{s:4:"type";s:4:"grid";s:4:"name";s:13:"phone_entries";s:4:"data";a:2:{i:0;a:1:{s:2:"c1";s:3:"nmr";}i:1;a:2:{s:1:"A";a:3:{s:4:"type";s:5:"label";s:4:"size";s:1:"b";s:4:"name";s:13:"${row}[field]";}s:1:"B";a:3:{s:4:"type";s:5:"label";s:7:"no_lang";s:1:"1";s:4:"name";s:13:"${row}[value]";}}}s:4:"rows";i:1;s:4:"cols";i:2;}}}s:4:"rows";i:1;s:4:"cols";i:2;}i:2;a:5:{s:4:"type";s:4:"grid";s:4:"span";s:17:",contactviewblock";s:4:"data";a:2:{i:0;a:2:{s:2:"c1";s:4:",top";s:2:"h1";s:16:",@!email_entries";}i:1;a:2:{s:1:"A";a:2:{s:4:"type";s:5:"image";s:4:"name";s:10:"email_icon";}s:1:"B";a:5:{s:4:"type";s:4:"grid";s:4:"name";s:13:"email_entries";s:4:"data";a:2:{i:0;a:1:{s:2:"c1";s:3:"nmr";}i:1;a:2:{s:1:"A";a:3:{s:4:"type";s:5:"label";s:4:"size";s:1:"b";s:4:"name";s:13:"${row}[field]";}s:1:"B";a:3:{s:4:"type";s:5:"label";s:7:"no_lang";s:1:"1";s:4:"name";s:13:"${row}[value]";}}}s:4:"rows";i:1;s:4:"cols";i:2;}}}s:4:"rows";i:1;s:4:"cols";i:2;}i:3;a:5:{s:4:"type";s:4:"grid";s:4:"span";s:17:",contactviewblock";s:4:"data";a:2:{i:0;a:2:{s:2:"c1";s:4:",top";s:2:"h1";s:14:",@!url_entries";}i:1;a:2:{s:1:"A";a:2:{s:4:"type";s:5:"image";s:4:"name";s:15:"package_network";}s:1:"B";a:5:{s:4:"type";s:4:"grid";s:4:"name";s:11:"url_entries";s:4:"data";a:2:{i:0;a:1:{s:2:"c1";s:3:"nmr";}i:1;a:2:{s:1:"A";a:3:{s:4:"type";s:5:"label";s:4:"size";s:1:"b";s:4:"name";s:13:"${row}[field]";}s:1:"B";a:3:{s:4:"type";s:5:"label";s:7:"no_lang";s:1:"1";s:4:"name";s:13:"${row}[value]";}}}s:4:"rows";i:1;s:4:"cols";i:2;}}}s:4:"rows";i:1;s:4:"cols";i:2;}}}}s:4:"rows";i:1;s:4:"cols";i:2;}}i:3;a:1:{s:1:"A";a:4:{s:4:"type";s:10:"select-cat";s:4:"size";s:1:"3";s:4:"name";s:6:"cat_id";s:8:"readonly";s:1:"1";}}}s:4:"rows";i:3;s:4:"cols";i:1;s:4:"span";s:16:",contactviewicon";s:4:"size";s:4:",280";s:7:"options";a:1:{i:1;s:3:"280";}}}','size' => ',280','style' => '','modified' => '1131713767',); |
|
| 124 | +$templ_data[] = array('name' => 'addressbook.view.overview', 'template' => '', 'lang' => '', 'group' => '0', 'version' => '', 'data' => 'a:1:{i:0;a:7:{s:4:"type";s:4:"grid";s:4:"data";a:4:{i:0;a:3:{s:2:"c2";s:4:",top";s:1:"A";s:4:"100%";s:2:"c3";s:4:",top";}i:1;a:1:{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:5:"label";s:4:"size";s:1:"b";s:4:"name";s:2:"fn";s:7:"no_lang";s:1:"1";}i:2;a:5:{s:4:"type";s:4:"hbox";s:4:"size";s:1:"2";i:1;a:5:{s:4:"type";s:5:"label";s:4:"name";s:2:"tz";s:8:"readonly";s:1:"1";s:7:"no_lang";s:1:"1";s:5:"label";s:9:"time zone";}i:2;a:5:{s:4:"type";s:4:"date";s:5:"label";s:8:"birthday";s:4:"name";s:4:"bday";s:8:"readonly";s:1:"1";s:7:"no_lang";s:1:"1";}s:5:"align";s:5:"right";}s:4:"span";s:3:"all";}}i:2;a:1:{s:1:"A";a:4:{s:4:"type";s:4:"grid";s:4:"data";a:2:{i:0;a:1:{s:2:"c1";s:4:",top";}i:1;a:2:{s:1:"A";a:4:{s:4:"type";s:4:"vbox";s:4:"size";s:1:"2";i:1;a:5:{s:4:"type";s:4:"grid";s:4:"span";s:17:",contactviewblock";s:4:"data";a:2:{i:0;a:2:{s:2:"c1";s:4:",top";s:2:"h1";s:19:",@!personal_entries";}i:1;a:2:{s:1:"A";a:2:{s:4:"type";s:5:"image";s:4:"name";s:8:"personal";}s:1:"B";a:5:{s:4:"type";s:4:"grid";s:4:"name";s:16:"personal_entries";s:4:"data";a:2:{i:0;a:1:{s:2:"c1";s:3:"nmr";}i:1;a:2:{s:1:"A";a:3:{s:4:"type";s:5:"label";s:4:"size";s:1:"b";s:4:"name";s:13:"${row}[field]";}s:1:"B";a:3:{s:4:"type";s:5:"label";s:7:"no_lang";s:1:"1";s:4:"name";s:13:"${row}[value]";}}}s:4:"rows";i:1;s:4:"cols";i:2;}}}s:4:"rows";i:1;s:4:"cols";i:2;}i:2;a:6:{s:4:"type";s:4:"grid";s:4:"span";s:17:",contactviewblock";s:4:"data";a:2:{i:0;a:2:{s:2:"c1";s:4:",top";s:2:"h1";s:23:",@!organisation_entries";}i:1;a:2:{s:1:"A";a:2:{s:4:"type";s:5:"image";s:4:"name";s:6:"gohome";}s:1:"B";a:5:{s:4:"type";s:4:"grid";s:4:"name";s:20:"organisation_entries";s:4:"data";a:2:{i:0;a:1:{s:2:"c1";s:3:"nmr";}i:1;a:2:{s:1:"A";a:3:{s:4:"type";s:5:"label";s:4:"size";s:1:"b";s:4:"name";s:13:"${row}[field]";}s:1:"B";a:3:{s:4:"type";s:5:"label";s:7:"no_lang";s:1:"1";s:4:"name";s:13:"${row}[value]";}}}s:4:"rows";i:1;s:4:"cols";i:2;}}}s:4:"rows";i:1;s:4:"cols";i:2;s:7:"options";a:0:{}}}s:1:"B";a:5:{s:4:"type";s:4:"vbox";s:4:"size";s:1:"3";i:1;a:5:{s:4:"type";s:4:"grid";s:4:"span";s:17:",contactviewblock";s:4:"data";a:2:{i:0;a:2:{s:2:"c1";s:4:",top";s:2:"h1";s:16:",@!phone_entries";}i:1;a:2:{s:1:"A";a:2:{s:4:"type";s:5:"image";s:4:"name";s:12:"kaddressbook";}s:1:"B";a:5:{s:4:"type";s:4:"grid";s:4:"name";s:13:"phone_entries";s:4:"data";a:2:{i:0;a:1:{s:2:"c1";s:3:"nmr";}i:1;a:2:{s:1:"A";a:3:{s:4:"type";s:5:"label";s:4:"size";s:1:"b";s:4:"name";s:13:"${row}[field]";}s:1:"B";a:3:{s:4:"type";s:5:"label";s:7:"no_lang";s:1:"1";s:4:"name";s:13:"${row}[value]";}}}s:4:"rows";i:1;s:4:"cols";i:2;}}}s:4:"rows";i:1;s:4:"cols";i:2;}i:2;a:5:{s:4:"type";s:4:"grid";s:4:"span";s:17:",contactviewblock";s:4:"data";a:2:{i:0;a:2:{s:2:"c1";s:4:",top";s:2:"h1";s:16:",@!email_entries";}i:1;a:2:{s:1:"A";a:2:{s:4:"type";s:5:"image";s:4:"name";s:10:"email_icon";}s:1:"B";a:5:{s:4:"type";s:4:"grid";s:4:"name";s:13:"email_entries";s:4:"data";a:2:{i:0;a:1:{s:2:"c1";s:3:"nmr";}i:1;a:2:{s:1:"A";a:3:{s:4:"type";s:5:"label";s:4:"size";s:1:"b";s:4:"name";s:13:"${row}[field]";}s:1:"B";a:3:{s:4:"type";s:5:"label";s:7:"no_lang";s:1:"1";s:4:"name";s:13:"${row}[value]";}}}s:4:"rows";i:1;s:4:"cols";i:2;}}}s:4:"rows";i:1;s:4:"cols";i:2;}i:3;a:5:{s:4:"type";s:4:"grid";s:4:"span";s:17:",contactviewblock";s:4:"data";a:2:{i:0;a:2:{s:2:"c1";s:4:",top";s:2:"h1";s:14:",@!url_entries";}i:1;a:2:{s:1:"A";a:2:{s:4:"type";s:5:"image";s:4:"name";s:15:"package_network";}s:1:"B";a:5:{s:4:"type";s:4:"grid";s:4:"name";s:11:"url_entries";s:4:"data";a:2:{i:0;a:1:{s:2:"c1";s:3:"nmr";}i:1;a:2:{s:1:"A";a:3:{s:4:"type";s:5:"label";s:4:"size";s:1:"b";s:4:"name";s:13:"${row}[field]";}s:1:"B";a:3:{s:4:"type";s:5:"label";s:7:"no_lang";s:1:"1";s:4:"name";s:13:"${row}[value]";}}}s:4:"rows";i:1;s:4:"cols";i:2;}}}s:4:"rows";i:1;s:4:"cols";i:2;}}}}s:4:"rows";i:1;s:4:"cols";i:2;}}i:3;a:1:{s:1:"A";a:4:{s:4:"type";s:10:"select-cat";s:4:"size";s:1:"3";s:4:"name";s:6:"cat_id";s:8:"readonly";s:1:"1";}}}s:4:"rows";i:3;s:4:"cols";i:1;s:4:"span";s:16:",contactviewicon";s:4:"size";s:4:",280";s:7:"options";a:1:{i:1;s:3:"280";}}}', 'size' => ',280', 'style' => '', 'modified' => '1131713767',); |
|
| 125 | 125 | |
@@ -45,8 +45,8 @@ discard block |
||
| 45 | 45 | private $bocontacts; |
| 46 | 46 | |
| 47 | 47 | /** |
| 48 | - * For figuring out if a contact has changed |
|
| 49 | - */ |
|
| 48 | + * For figuring out if a contact has changed |
|
| 49 | + */ |
|
| 50 | 50 | protected $tracking; |
| 51 | 51 | |
| 52 | 52 | /** |
@@ -76,9 +76,9 @@ discard block |
||
| 76 | 76 | protected $errors = array(); |
| 77 | 77 | |
| 78 | 78 | /** |
| 79 | - * List of actions, and how many times that action was taken |
|
| 80 | - */ |
|
| 81 | - protected $results = array(); |
|
| 79 | + * List of actions, and how many times that action was taken |
|
| 80 | + */ |
|
| 81 | + protected $results = array(); |
|
| 82 | 82 | |
| 83 | 83 | /** |
| 84 | 84 | * imports entries according to given definition object. |
@@ -93,14 +93,14 @@ discard block |
||
| 93 | 93 | $this->is_admin = isset( $GLOBALS['egw_info']['user']['apps']['admin'] ) && $GLOBALS['egw_info']['user']['apps']['admin']; |
| 94 | 94 | $this->user = $GLOBALS['egw_info']['user']['account_id']; |
| 95 | 95 | |
| 96 | - // set contact owner |
|
| 97 | - $contact_owner = isset( $_definition->plugin_options['contact_owner'] ) ? |
|
| 98 | - $_definition->plugin_options['contact_owner'] : $this->user; |
|
| 99 | - // Import into importer's personal addressbook |
|
| 100 | - if($contact_owner == 'personal') |
|
| 101 | - { |
|
| 102 | - $contact_owner = $this->user; |
|
| 103 | - } |
|
| 96 | + // set contact owner |
|
| 97 | + $contact_owner = isset( $_definition->plugin_options['contact_owner'] ) ? |
|
| 98 | + $_definition->plugin_options['contact_owner'] : $this->user; |
|
| 99 | + // Import into importer's personal addressbook |
|
| 100 | + if($contact_owner == 'personal') |
|
| 101 | + { |
|
| 102 | + $contact_owner = $this->user; |
|
| 103 | + } |
|
| 104 | 104 | |
| 105 | 105 | // dry run? |
| 106 | 106 | $this->dry_run = isset( $_definition->plugin_options['dry_run'] ) ? $_definition->plugin_options['dry_run'] : false; |
@@ -123,7 +123,7 @@ discard block |
||
| 123 | 123 | $this->errors = array(); |
| 124 | 124 | |
| 125 | 125 | // Fix for Apple Addressbook |
| 126 | - $vCard = preg_replace('/item\d\.(ADR|TEL|EMAIL|URL)/', '\1', stream_get_contents($_stream)); |
|
| 126 | + $vCard = preg_replace('/item\d\.(ADR|TEL|EMAIL|URL)/', '\1', stream_get_contents($_stream)); |
|
| 127 | 127 | |
| 128 | 128 | $contacts = new Api\CalDAV\IcalIterator($vCard, '', $charset, array($this, '_vcard'),array( |
| 129 | 129 | // Owner (addressbook) |
@@ -277,7 +277,7 @@ discard block |
||
| 277 | 277 | foreach($this->preview_records as $record) |
| 278 | 278 | { |
| 279 | 279 | // Convert to human-friendly |
| 280 | - importexport_export_csv::convert($record,$record_class::$types,$_definition->application); |
|
| 280 | + importexport_export_csv::convert($record,$record_class::$types,$_definition->application); |
|
| 281 | 281 | $record = $record->get_record_array(); |
| 282 | 282 | $row = array(); |
| 283 | 283 | foreach(array_keys($labels) as $field) |
@@ -350,38 +350,38 @@ discard block |
||
| 350 | 350 | } |
| 351 | 351 | |
| 352 | 352 | /** |
| 353 | - * Returns warnings that were encountered during importing |
|
| 354 | - * Maximum of one warning message per record, but you can append if you need to |
|
| 355 | - * |
|
| 356 | - * @return Array ( |
|
| 357 | - * record_# => warning message |
|
| 358 | - * ) |
|
| 359 | - */ |
|
| 360 | - public function get_warnings() { |
|
| 353 | + * Returns warnings that were encountered during importing |
|
| 354 | + * Maximum of one warning message per record, but you can append if you need to |
|
| 355 | + * |
|
| 356 | + * @return Array ( |
|
| 357 | + * record_# => warning message |
|
| 358 | + * ) |
|
| 359 | + */ |
|
| 360 | + public function get_warnings() { |
|
| 361 | 361 | return $this->warnings; |
| 362 | 362 | } |
| 363 | 363 | |
| 364 | 364 | /** |
| 365 | - * Returns errors that were encountered during importing |
|
| 366 | - * Maximum of one error message per record, but you can append if you need to |
|
| 367 | - * |
|
| 368 | - * @return Array ( |
|
| 369 | - * record_# => error message |
|
| 370 | - * ) |
|
| 371 | - */ |
|
| 372 | - public function get_errors() { |
|
| 365 | + * Returns errors that were encountered during importing |
|
| 366 | + * Maximum of one error message per record, but you can append if you need to |
|
| 367 | + * |
|
| 368 | + * @return Array ( |
|
| 369 | + * record_# => error message |
|
| 370 | + * ) |
|
| 371 | + */ |
|
| 372 | + public function get_errors() { |
|
| 373 | 373 | return $this->errors; |
| 374 | 374 | } |
| 375 | 375 | |
| 376 | 376 | /** |
| 377 | - * Returns a list of actions taken, and the number of records for that action. |
|
| 378 | - * Actions are things like 'insert', 'update', 'delete', and may be different for each plugin. |
|
| 379 | - * |
|
| 380 | - * @return Array ( |
|
| 381 | - * action => record count |
|
| 382 | - * ) |
|
| 383 | - */ |
|
| 384 | - public function get_results() { |
|
| 385 | - return $this->results; |
|
| 386 | - } |
|
| 377 | + * Returns a list of actions taken, and the number of records for that action. |
|
| 378 | + * Actions are things like 'insert', 'update', 'delete', and may be different for each plugin. |
|
| 379 | + * |
|
| 380 | + * @return Array ( |
|
| 381 | + * action => record count |
|
| 382 | + * ) |
|
| 383 | + */ |
|
| 384 | + public function get_results() { |
|
| 385 | + return $this->results; |
|
| 386 | + } |
|
| 387 | 387 | } |
@@ -82,8 +82,7 @@ discard block |
||
| 82 | 82 | /** |
| 83 | 83 | * imports entries according to given definition object. |
| 84 | 84 | * @param resource $_stream |
| 85 | - * @param string $_charset |
|
| 86 | - * @param definition $_definition |
|
| 85 | + * @param importexport_definition $_definition |
|
| 87 | 86 | */ |
| 88 | 87 | public function import( $_stream, importexport_definition $_definition ) { |
| 89 | 88 | $this->definition = $_definition; |
@@ -190,7 +189,7 @@ discard block |
||
| 190 | 189 | * perform the required action |
| 191 | 190 | * |
| 192 | 191 | * @param int $_action one of $this->actions |
| 193 | - * @param array $_data contact data for the action |
|
| 192 | + * @param Horde_iCalendar $_data contact data for the action |
|
| 194 | 193 | * @return bool success or not |
| 195 | 194 | */ |
| 196 | 195 | private function action ( $_action, $_data, $record_num = 0 ) { |
@@ -14,7 +14,7 @@ discard block |
||
| 14 | 14 | /** |
| 15 | 15 | * Plugin to import vCard files |
| 16 | 16 | */ |
| 17 | -class addressbook_import_vcard implements importexport_iface_import_plugin { |
|
| 17 | +class addressbook_import_vcard implements importexport_iface_import_plugin { |
|
| 18 | 18 | |
| 19 | 19 | private static $plugin_options = array( |
| 20 | 20 | |
@@ -85,24 +85,24 @@ discard block |
||
| 85 | 85 | * @param string $_charset |
| 86 | 86 | * @param definition $_definition |
| 87 | 87 | */ |
| 88 | - public function import( $_stream, importexport_definition $_definition ) { |
|
| 88 | + public function import($_stream, importexport_definition $_definition) { |
|
| 89 | 89 | $this->definition = $_definition; |
| 90 | 90 | |
| 91 | 91 | // user, is admin ? |
| 92 | - $this->is_admin = isset( $GLOBALS['egw_info']['user']['apps']['admin'] ) && $GLOBALS['egw_info']['user']['apps']['admin']; |
|
| 92 | + $this->is_admin = isset($GLOBALS['egw_info']['user']['apps']['admin']) && $GLOBALS['egw_info']['user']['apps']['admin']; |
|
| 93 | 93 | $this->user = $GLOBALS['egw_info']['user']['account_id']; |
| 94 | 94 | |
| 95 | 95 | // set contact owner |
| 96 | - $contact_owner = isset( $_definition->plugin_options['contact_owner'] ) ? |
|
| 96 | + $contact_owner = isset($_definition->plugin_options['contact_owner']) ? |
|
| 97 | 97 | $_definition->plugin_options['contact_owner'] : $this->user; |
| 98 | 98 | // Import into importer's personal addressbook |
| 99 | - if($contact_owner == 'personal') |
|
| 99 | + if ($contact_owner == 'personal') |
|
| 100 | 100 | { |
| 101 | 101 | $contact_owner = $this->user; |
| 102 | 102 | } |
| 103 | 103 | |
| 104 | 104 | // dry run? |
| 105 | - $this->dry_run = isset( $_definition->plugin_options['dry_run'] ) ? $_definition->plugin_options['dry_run'] : false; |
|
| 105 | + $this->dry_run = isset($_definition->plugin_options['dry_run']) ? $_definition->plugin_options['dry_run'] : false; |
|
| 106 | 106 | |
| 107 | 107 | // Needed for categories to work right |
| 108 | 108 | $GLOBALS['egw_info']['flags']['currentapp'] = 'addressbook'; |
@@ -111,7 +111,7 @@ discard block |
||
| 111 | 111 | $this->bocontacts = new addressbook_vcal(); |
| 112 | 112 | |
| 113 | 113 | $charset = $_definition->plugin_options['charset']; |
| 114 | - if($charset == 'user') $charset = $GLOBALS['egw_info']['user']['preferences']['addressbook']['vcard_charset']; |
|
| 114 | + if ($charset == 'user') $charset = $GLOBALS['egw_info']['user']['preferences']['addressbook']['vcard_charset']; |
|
| 115 | 115 | |
| 116 | 116 | // Start counting successes |
| 117 | 117 | $this->current = 0; |
@@ -124,24 +124,24 @@ discard block |
||
| 124 | 124 | // Fix for Apple Addressbook |
| 125 | 125 | $vCard = preg_replace('/item\d\.(ADR|TEL|EMAIL|URL)/', '\1', stream_get_contents($_stream)); |
| 126 | 126 | |
| 127 | - $contacts = new egw_ical_iterator($vCard, '', $charset, array($this, '_vcard'),array( |
|
| 127 | + $contacts = new egw_ical_iterator($vCard, '', $charset, array($this, '_vcard'), array( |
|
| 128 | 128 | // Owner (addressbook) |
| 129 | 129 | $contact_owner |
| 130 | 130 | )); |
| 131 | 131 | $contacts->next(); |
| 132 | - while($contacts->valid()) { |
|
| 132 | + while ($contacts->valid()) { |
|
| 133 | 133 | $this->current++; |
| 134 | 134 | $contact = $contacts->current(); |
| 135 | 135 | |
| 136 | 136 | $this->action('insert', $contact, $this->current); |
| 137 | 137 | |
| 138 | 138 | // Stop if we have enough records for a preview |
| 139 | - if($this->dry_run) |
|
| 139 | + if ($this->dry_run) |
|
| 140 | 140 | { |
| 141 | 141 | $egw_record = new addressbook_egw_record(); |
| 142 | 142 | $egw_record->set_record($contact); |
| 143 | 143 | $this->preview_records[] = $egw_record; |
| 144 | - if($count >= $GLOBALS['egw_info']['user']['preferences']['common']['maxmatchs']) break; |
|
| 144 | + if ($count >= $GLOBALS['egw_info']['user']['preferences']['common']['maxmatchs']) break; |
|
| 145 | 145 | } |
| 146 | 146 | |
| 147 | 147 | $count++; |
@@ -157,13 +157,13 @@ discard block |
||
| 157 | 157 | public function _vcard($_vcard, $owner) |
| 158 | 158 | { |
| 159 | 159 | $charset = $_definition->plugin_options['charset']; |
| 160 | - if($charset == 'user') $charset = $GLOBALS['egw_info']['user']['preferences']['addressbook']['vcard_charset']; |
|
| 161 | - $record = $this->bocontacts->vcardtoegw($_vcard,$charset); |
|
| 160 | + if ($charset == 'user') $charset = $GLOBALS['egw_info']['user']['preferences']['addressbook']['vcard_charset']; |
|
| 161 | + $record = $this->bocontacts->vcardtoegw($_vcard, $charset); |
|
| 162 | 162 | |
| 163 | 163 | $record['owner'] = $owner; |
| 164 | 164 | |
| 165 | 165 | // Check that owner (addressbook) is allowed |
| 166 | - if(!array_key_exists($record['owner'], $this->bocontacts->get_addressbooks())) |
|
| 166 | + if (!array_key_exists($record['owner'], $this->bocontacts->get_addressbooks())) |
|
| 167 | 167 | { |
| 168 | 168 | $this->errors[$this->current] = lang("Unable to import into %1, using %2", |
| 169 | 169 | common::grab_owner_name($record['owner']), |
@@ -174,14 +174,14 @@ discard block |
||
| 174 | 174 | |
| 175 | 175 | // Do not allow owner == 0 (accounts) without an account_id |
| 176 | 176 | // It causes the contact to be filed as an account, and can't delete |
| 177 | - if(!$record['owner'] && !$record['account_id']) |
|
| 177 | + if (!$record['owner'] && !$record['account_id']) |
|
| 178 | 178 | { |
| 179 | 179 | $record['owner'] = $this->user; |
| 180 | 180 | } |
| 181 | 181 | |
| 182 | 182 | if (is_array($record['cat_id'])) |
| 183 | 183 | { |
| 184 | - $record['cat_id'] = implode(',',$this->bocontacts->find_or_add_categories($record['cat_id'], -1)); |
|
| 184 | + $record['cat_id'] = implode(',', $this->bocontacts->find_or_add_categories($record['cat_id'], -1)); |
|
| 185 | 185 | } |
| 186 | 186 | return $record; |
| 187 | 187 | } |
@@ -193,7 +193,7 @@ discard block |
||
| 193 | 193 | * @param array $_data contact data for the action |
| 194 | 194 | * @return bool success or not |
| 195 | 195 | */ |
| 196 | - private function action ( $_action, $_data, $record_num = 0 ) { |
|
| 196 | + private function action($_action, $_data, $record_num = 0) { |
|
| 197 | 197 | switch ($_action) { |
| 198 | 198 | case 'none' : |
| 199 | 199 | return true; |
@@ -201,13 +201,13 @@ discard block |
||
| 201 | 201 | // Only update if there are changes |
| 202 | 202 | $old = $this->bocontacts->read($_data['id']); |
| 203 | 203 | // if we get countrycodes as countryname, try to translate them -> the rest should be handled by bo classes. |
| 204 | - foreach(array('adr_one_', 'adr_two_') as $c_prefix) { |
|
| 205 | - if (strlen(trim($_data[$c_prefix.'countryname']))==2) $_data[$c_prefix.'countryname'] = $GLOBALS['egw']->country->get_full_name(trim($_data[$c_prefix.'countryname']),$translated=true); |
|
| 204 | + foreach (array('adr_one_', 'adr_two_') as $c_prefix) { |
|
| 205 | + if (strlen(trim($_data[$c_prefix.'countryname'])) == 2) $_data[$c_prefix.'countryname'] = $GLOBALS['egw']->country->get_full_name(trim($_data[$c_prefix.'countryname']), $translated = true); |
|
| 206 | 206 | } |
| 207 | 207 | // Don't change a user account into a contact |
| 208 | - if($old['owner'] == 0) { |
|
| 208 | + if ($old['owner'] == 0) { |
|
| 209 | 209 | unset($_data['owner']); |
| 210 | - } elseif(!$this->definition->plugin_options['change_owner']) { |
|
| 210 | + } elseif (!$this->definition->plugin_options['change_owner']) { |
|
| 211 | 211 | // Don't change addressbook of an existing contact |
| 212 | 212 | unset($_data['owner']); |
| 213 | 213 | } |
@@ -215,7 +215,7 @@ discard block |
||
| 215 | 215 | // Merge to deal with fields not in import record |
| 216 | 216 | $_data = array_merge($old, $_data); |
| 217 | 217 | $changed = $this->tracking->changed_fields($_data, $old); |
| 218 | - if(count($changed) == 0) { |
|
| 218 | + if (count($changed) == 0) { |
|
| 219 | 219 | return true; |
| 220 | 220 | } else { |
| 221 | 221 | //error_log(__METHOD__.__LINE__.array2string($changed).' Old:'.$old['adr_one_countryname'].' ('.$old['adr_one_countrycode'].') New:'.$_data['adr_one_countryname'].' ('.$_data['adr_one_countryname'].')'); |
@@ -226,22 +226,22 @@ discard block |
||
| 226 | 226 | |
| 227 | 227 | // Fall through |
| 228 | 228 | case 'insert' : |
| 229 | - if($_action == 'insert') { |
|
| 229 | + if ($_action == 'insert') { |
|
| 230 | 230 | // Addressbook backend doesn't like inserting with ID specified, it screws up the owner & etag |
| 231 | 231 | unset($_data['id']); |
| 232 | 232 | } |
| 233 | - if(!isset($_data['org_name'])) { |
|
| 233 | + if (!isset($_data['org_name'])) { |
|
| 234 | 234 | // org_name is a trigger to update n_fileas |
| 235 | 235 | $_data['org_name'] = ''; |
| 236 | 236 | } |
| 237 | 237 | |
| 238 | - if ( $this->dry_run ) { |
|
| 238 | + if ($this->dry_run) { |
|
| 239 | 239 | //print_r($_data); |
| 240 | 240 | $this->results[$_action]++; |
| 241 | 241 | return true; |
| 242 | 242 | } else { |
| 243 | - $result = $this->bocontacts->save( $_data, $this->is_admin); |
|
| 244 | - if(!$result) { |
|
| 243 | + $result = $this->bocontacts->save($_data, $this->is_admin); |
|
| 244 | + if (!$result) { |
|
| 245 | 245 | $this->errors[$record_num] = $this->bocontacts->error; |
| 246 | 246 | } else { |
| 247 | 247 | $this->results[$_action]++; |
@@ -249,14 +249,14 @@ discard block |
||
| 249 | 249 | return $result; |
| 250 | 250 | } |
| 251 | 251 | default: |
| 252 | - throw new egw_exception('Unsupported action: '. $_action); |
|
| 252 | + throw new egw_exception('Unsupported action: '.$_action); |
|
| 253 | 253 | |
| 254 | 254 | } |
| 255 | 255 | } |
| 256 | 256 | |
| 257 | - public function preview( $_stream, importexport_definition $_definition ) |
|
| 257 | + public function preview($_stream, importexport_definition $_definition) |
|
| 258 | 258 | { |
| 259 | - $rows = array('h1'=>array(),'f1'=>array(),'.h1'=>'class=th'); |
|
| 259 | + $rows = array('h1'=>array(), 'f1'=>array(), '.h1'=>'class=th'); |
|
| 260 | 260 | |
| 261 | 261 | // Set this so plugin doesn't do any data changes |
| 262 | 262 | $_definition->plugin_options = (array)$_definition->plugin_options + array('dry_run' => true); |
@@ -269,18 +269,18 @@ discard block |
||
| 269 | 269 | |
| 270 | 270 | $record_class = get_class($this->preview_records[0]); |
| 271 | 271 | |
| 272 | - foreach($this->preview_records as $i => $record) |
|
| 272 | + foreach ($this->preview_records as $i => $record) |
|
| 273 | 273 | { |
| 274 | 274 | // Convert to human-friendly |
| 275 | - importexport_export_csv::convert($record,$record_class::$types,$_definition->application); |
|
| 275 | + importexport_export_csv::convert($record, $record_class::$types, $_definition->application); |
|
| 276 | 276 | $record = $record->get_record_array(); |
| 277 | 277 | $row = array(); |
| 278 | - foreach($labels as $field => $label) |
|
| 278 | + foreach ($labels as $field => $label) |
|
| 279 | 279 | { |
| 280 | 280 | $row[$field] = $record[$field]; |
| 281 | 281 | |
| 282 | 282 | // Don't scare users, do something with jpeg |
| 283 | - if($field == 'jpegphoto' && $row[$field]) |
|
| 283 | + if ($field == 'jpegphoto' && $row[$field]) |
|
| 284 | 284 | { |
| 285 | 285 | $row[$field] = '<img style="max-width:50px;max-height:50px;" src="data:image/jpeg;base64,'.$row[$field].'"/>'; |
| 286 | 286 | } |
@@ -14,7 +14,8 @@ discard block |
||
| 14 | 14 | /** |
| 15 | 15 | * Plugin to import vCard files |
| 16 | 16 | */ |
| 17 | -class addressbook_import_vcard implements importexport_iface_import_plugin { |
|
| 17 | +class addressbook_import_vcard implements importexport_iface_import_plugin |
|
| 18 | +{ |
|
| 18 | 19 | |
| 19 | 20 | private static $plugin_options = array( |
| 20 | 21 | |
@@ -85,7 +86,8 @@ discard block |
||
| 85 | 86 | * @param string $_charset |
| 86 | 87 | * @param definition $_definition |
| 87 | 88 | */ |
| 88 | - public function import( $_stream, importexport_definition $_definition ) { |
|
| 89 | + public function import( $_stream, importexport_definition $_definition ) |
|
| 90 | + { |
|
| 89 | 91 | $this->definition = $_definition; |
| 90 | 92 | |
| 91 | 93 | // user, is admin ? |
@@ -111,7 +113,10 @@ discard block |
||
| 111 | 113 | $this->bocontacts = new addressbook_vcal(); |
| 112 | 114 | |
| 113 | 115 | $charset = $_definition->plugin_options['charset']; |
| 114 | - if($charset == 'user') $charset = $GLOBALS['egw_info']['user']['preferences']['addressbook']['vcard_charset']; |
|
| 116 | + if($charset == 'user') |
|
| 117 | + { |
|
| 118 | + $charset = $GLOBALS['egw_info']['user']['preferences']['addressbook']['vcard_charset']; |
|
| 119 | + } |
|
| 115 | 120 | |
| 116 | 121 | // Start counting successes |
| 117 | 122 | $this->current = 0; |
@@ -129,7 +134,8 @@ discard block |
||
| 129 | 134 | $contact_owner |
| 130 | 135 | )); |
| 131 | 136 | $contacts->next(); |
| 132 | - while($contacts->valid()) { |
|
| 137 | + while($contacts->valid()) |
|
| 138 | + { |
|
| 133 | 139 | $this->current++; |
| 134 | 140 | $contact = $contacts->current(); |
| 135 | 141 | |
@@ -141,7 +147,10 @@ discard block |
||
| 141 | 147 | $egw_record = new addressbook_egw_record(); |
| 142 | 148 | $egw_record->set_record($contact); |
| 143 | 149 | $this->preview_records[] = $egw_record; |
| 144 | - if($count >= $GLOBALS['egw_info']['user']['preferences']['common']['maxmatchs']) break; |
|
| 150 | + if($count >= $GLOBALS['egw_info']['user']['preferences']['common']['maxmatchs']) |
|
| 151 | + { |
|
| 152 | + break; |
|
| 153 | + } |
|
| 145 | 154 | } |
| 146 | 155 | |
| 147 | 156 | $count++; |
@@ -157,7 +166,10 @@ discard block |
||
| 157 | 166 | public function _vcard($_vcard, $owner) |
| 158 | 167 | { |
| 159 | 168 | $charset = $_definition->plugin_options['charset']; |
| 160 | - if($charset == 'user') $charset = $GLOBALS['egw_info']['user']['preferences']['addressbook']['vcard_charset']; |
|
| 169 | + if($charset == 'user') |
|
| 170 | + { |
|
| 171 | + $charset = $GLOBALS['egw_info']['user']['preferences']['addressbook']['vcard_charset']; |
|
| 172 | + } |
|
| 161 | 173 | $record = $this->bocontacts->vcardtoegw($_vcard,$charset); |
| 162 | 174 | |
| 163 | 175 | $record['owner'] = $owner; |
@@ -193,21 +205,30 @@ discard block |
||
| 193 | 205 | * @param array $_data contact data for the action |
| 194 | 206 | * @return bool success or not |
| 195 | 207 | */ |
| 196 | - private function action ( $_action, $_data, $record_num = 0 ) { |
|
| 197 | - switch ($_action) { |
|
| 208 | + private function action ( $_action, $_data, $record_num = 0 ) |
|
| 209 | + { |
|
| 210 | + switch ($_action) |
|
| 211 | + { |
|
| 198 | 212 | case 'none' : |
| 199 | 213 | return true; |
| 200 | 214 | case 'update' : |
| 201 | 215 | // Only update if there are changes |
| 202 | 216 | $old = $this->bocontacts->read($_data['id']); |
| 203 | 217 | // if we get countrycodes as countryname, try to translate them -> the rest should be handled by bo classes. |
| 204 | - foreach(array('adr_one_', 'adr_two_') as $c_prefix) { |
|
| 205 | - if (strlen(trim($_data[$c_prefix.'countryname']))==2) $_data[$c_prefix.'countryname'] = $GLOBALS['egw']->country->get_full_name(trim($_data[$c_prefix.'countryname']),$translated=true); |
|
| 218 | + foreach(array('adr_one_', 'adr_two_') as $c_prefix) |
|
| 219 | + { |
|
| 220 | + if (strlen(trim($_data[$c_prefix.'countryname']))==2) |
|
| 221 | + { |
|
| 222 | + $_data[$c_prefix.'countryname'] = $GLOBALS['egw']->country->get_full_name(trim($_data[$c_prefix.'countryname']),$translated=true); |
|
| 223 | + } |
|
| 206 | 224 | } |
| 207 | 225 | // Don't change a user account into a contact |
| 208 | - if($old['owner'] == 0) { |
|
| 226 | + if($old['owner'] == 0) |
|
| 227 | + { |
|
| 209 | 228 | unset($_data['owner']); |
| 210 | - } elseif(!$this->definition->plugin_options['change_owner']) { |
|
| 229 | + } |
|
| 230 | + elseif(!$this->definition->plugin_options['change_owner']) |
|
| 231 | + { |
|
| 211 | 232 | // Don't change addressbook of an existing contact |
| 212 | 233 | unset($_data['owner']); |
| 213 | 234 | } |
@@ -215,9 +236,12 @@ discard block |
||
| 215 | 236 | // Merge to deal with fields not in import record |
| 216 | 237 | $_data = array_merge($old, $_data); |
| 217 | 238 | $changed = $this->tracking->changed_fields($_data, $old); |
| 218 | - if(count($changed) == 0) { |
|
| 239 | + if(count($changed) == 0) |
|
| 240 | + { |
|
| 219 | 241 | return true; |
| 220 | - } else { |
|
| 242 | + } |
|
| 243 | + else |
|
| 244 | + { |
|
| 221 | 245 | //error_log(__METHOD__.__LINE__.array2string($changed).' Old:'.$old['adr_one_countryname'].' ('.$old['adr_one_countrycode'].') New:'.$_data['adr_one_countryname'].' ('.$_data['adr_one_countryname'].')'); |
| 222 | 246 | } |
| 223 | 247 | |
@@ -226,24 +250,32 @@ discard block |
||
| 226 | 250 | |
| 227 | 251 | // Fall through |
| 228 | 252 | case 'insert' : |
| 229 | - if($_action == 'insert') { |
|
| 253 | + if($_action == 'insert') |
|
| 254 | + { |
|
| 230 | 255 | // Addressbook backend doesn't like inserting with ID specified, it screws up the owner & etag |
| 231 | 256 | unset($_data['id']); |
| 232 | 257 | } |
| 233 | - if(!isset($_data['org_name'])) { |
|
| 258 | + if(!isset($_data['org_name'])) |
|
| 259 | + { |
|
| 234 | 260 | // org_name is a trigger to update n_fileas |
| 235 | 261 | $_data['org_name'] = ''; |
| 236 | 262 | } |
| 237 | 263 | |
| 238 | - if ( $this->dry_run ) { |
|
| 264 | + if ( $this->dry_run ) |
|
| 265 | + { |
|
| 239 | 266 | //print_r($_data); |
| 240 | 267 | $this->results[$_action]++; |
| 241 | 268 | return true; |
| 242 | - } else { |
|
| 269 | + } |
|
| 270 | + else |
|
| 271 | + { |
|
| 243 | 272 | $result = $this->bocontacts->save( $_data, $this->is_admin); |
| 244 | - if(!$result) { |
|
| 273 | + if(!$result) |
|
| 274 | + { |
|
| 245 | 275 | $this->errors[$record_num] = $this->bocontacts->error; |
| 246 | - } else { |
|
| 276 | + } |
|
| 277 | + else |
|
| 278 | + { |
|
| 247 | 279 | $this->results[$_action]++; |
| 248 | 280 | } |
| 249 | 281 | return $result; |
@@ -297,7 +329,8 @@ discard block |
||
| 297 | 329 | * |
| 298 | 330 | * @return string name |
| 299 | 331 | */ |
| 300 | - public static function get_name() { |
|
| 332 | + public static function get_name() |
|
| 333 | + { |
|
| 301 | 334 | return lang('Addressbook vCard import'); |
| 302 | 335 | } |
| 303 | 336 | |
@@ -306,7 +339,8 @@ discard block |
||
| 306 | 339 | * |
| 307 | 340 | * @return string descriprion |
| 308 | 341 | */ |
| 309 | - public static function get_description() { |
|
| 342 | + public static function get_description() |
|
| 343 | + { |
|
| 310 | 344 | return lang("Imports contacts into your Addressbook from a vCard File. "); |
| 311 | 345 | } |
| 312 | 346 | |
@@ -315,7 +349,8 @@ discard block |
||
| 315 | 349 | * |
| 316 | 350 | * @return string suffix (comma seperated) |
| 317 | 351 | */ |
| 318 | - public static function get_filesuffix() { |
|
| 352 | + public static function get_filesuffix() |
|
| 353 | + { |
|
| 319 | 354 | return 'vcf'; |
| 320 | 355 | } |
| 321 | 356 | |
@@ -331,7 +366,8 @@ discard block |
||
| 331 | 366 | * preserv => array, |
| 332 | 367 | * ) |
| 333 | 368 | */ |
| 334 | - public function get_options_etpl() { |
|
| 369 | + public function get_options_etpl() |
|
| 370 | + { |
|
| 335 | 371 | // lets do it! |
| 336 | 372 | } |
| 337 | 373 | |
@@ -340,7 +376,8 @@ discard block |
||
| 340 | 376 | * |
| 341 | 377 | * @return string etemplate name |
| 342 | 378 | */ |
| 343 | - public function get_selectors_etpl() { |
|
| 379 | + public function get_selectors_etpl() |
|
| 380 | + { |
|
| 344 | 381 | // lets do it! |
| 345 | 382 | } |
| 346 | 383 | |
@@ -352,7 +389,8 @@ discard block |
||
| 352 | 389 | * record_# => warning message |
| 353 | 390 | * ) |
| 354 | 391 | */ |
| 355 | - public function get_warnings() { |
|
| 392 | + public function get_warnings() |
|
| 393 | + { |
|
| 356 | 394 | return $this->warnings; |
| 357 | 395 | } |
| 358 | 396 | |
@@ -364,7 +402,8 @@ discard block |
||
| 364 | 402 | * record_# => error message |
| 365 | 403 | * ) |
| 366 | 404 | */ |
| 367 | - public function get_errors() { |
|
| 405 | + public function get_errors() |
|
| 406 | + { |
|
| 368 | 407 | return $this->errors; |
| 369 | 408 | } |
| 370 | 409 | |
@@ -376,7 +415,8 @@ discard block |
||
| 376 | 415 | * action => record count |
| 377 | 416 | * ) |
| 378 | 417 | */ |
| 379 | - public function get_results() { |
|
| 418 | + public function get_results() |
|
| 419 | + { |
|
| 380 | 420 | return $this->results; |
| 381 | 421 | } |
| 382 | 422 | } // end of iface_export_plugin |
@@ -365,10 +365,10 @@ discard block |
||
| 365 | 365 | } |
| 366 | 366 | |
| 367 | 367 | /** |
| 368 | - * Convert some internal data to something with more meaning |
|
| 369 | - * |
|
| 370 | - * Dates, times, user IDs, category IDs |
|
| 371 | - */ |
|
| 368 | + * Convert some internal data to something with more meaning |
|
| 369 | + * |
|
| 370 | + * Dates, times, user IDs, category IDs |
|
| 371 | + */ |
|
| 372 | 372 | public static function convert(addressbook_egw_record &$record, $options) { |
| 373 | 373 | |
| 374 | 374 | if ($record->tel_prefer) { |
@@ -436,7 +436,7 @@ discard block |
||
| 436 | 436 | * Adjust automatically generated filter fields |
| 437 | 437 | */ |
| 438 | 438 | public function get_filter_fields(Array &$filters) |
| 439 | - { |
|
| 439 | + { |
|
| 440 | 440 | unset($filters['last_event']); |
| 441 | 441 | unset($filters['next_event']); |
| 442 | 442 | foreach($filters as $field_name => &$settings) |
@@ -29,7 +29,7 @@ |
||
| 29 | 29 | /** |
| 30 | 30 | * Exports records as defined in $_definition |
| 31 | 31 | * |
| 32 | - * @param egw_record $_definition |
|
| 32 | + * @param importexport_definition $_definition |
|
| 33 | 33 | */ |
| 34 | 34 | public function export( $_stream, importexport_definition $_definition) { |
| 35 | 35 | $options = $_definition->plugin_options; |
@@ -21,13 +21,13 @@ discard block |
||
| 21 | 21 | * Constants used for exploding categories & multi-selectboxes into seperate fields |
| 22 | 22 | */ |
| 23 | 23 | const NO_EXPLODE = False; |
| 24 | - const MAIN_CATS = 'main_cats'; // Only the top-level categories get their own field |
|
| 25 | - const EACH_CAT = 'each_cat'; // Every category gets its own field |
|
| 26 | - const EXPLODE = 'explode'; // For [custom] multi-selects, each option gets its own field |
|
| 24 | + const MAIN_CATS = 'main_cats'; // Only the top-level categories get their own field |
|
| 25 | + const EACH_CAT = 'each_cat'; // Every category gets its own field |
|
| 26 | + const EXPLODE = 'explode'; // For [custom] multi-selects, each option gets its own field |
|
| 27 | 27 | |
| 28 | 28 | public function __construct() |
| 29 | 29 | { |
| 30 | - $this->ui= new addressbook_ui(); |
|
| 30 | + $this->ui = new addressbook_ui(); |
|
| 31 | 31 | $this->get_selects(); |
| 32 | 32 | } |
| 33 | 33 | |
@@ -36,7 +36,7 @@ discard block |
||
| 36 | 36 | * |
| 37 | 37 | * @param egw_record $_definition |
| 38 | 38 | */ |
| 39 | - public function export( $_stream, importexport_definition $_definition) { |
|
| 39 | + public function export($_stream, importexport_definition $_definition) { |
|
| 40 | 40 | |
| 41 | 41 | $options = $_definition->plugin_options; |
| 42 | 42 | $this->export_object = $export_object = new importexport_export_csv($_stream, (array)$options); |
@@ -45,9 +45,9 @@ discard block |
||
| 45 | 45 | |
| 46 | 46 | // Addressbook defines its own export imits |
| 47 | 47 | $limit_exception = bo_merge::is_export_limit_excepted(); |
| 48 | - $export_limit = bo_merge::getExportLimit($app='addressbook'); |
|
| 48 | + $export_limit = bo_merge::getExportLimit($app = 'addressbook'); |
|
| 49 | 49 | if (!$limit_exception) $export_object->export_limit = $export_limit; // we may not need that after all |
| 50 | - if($export_limit == 'no' && !$limit_exception) { |
|
| 50 | + if ($export_limit == 'no' && !$limit_exception) { |
|
| 51 | 51 | return; |
| 52 | 52 | } |
| 53 | 53 | |
@@ -57,18 +57,18 @@ discard block |
||
| 57 | 57 | |
| 58 | 58 | if ($options['selection'] == 'search') { |
| 59 | 59 | // uicontacts selection with checkbox 'use_all' |
| 60 | - $query = $GLOBALS['egw']->session->appsession('index','addressbook'); |
|
| 61 | - $query['num_rows'] = -1; // all |
|
| 62 | - $query['csv_export'] = true; // so get_rows method _can_ produce different content or not store state in the session |
|
| 60 | + $query = $GLOBALS['egw']->session->appsession('index', 'addressbook'); |
|
| 61 | + $query['num_rows'] = -1; // all |
|
| 62 | + $query['csv_export'] = true; // so get_rows method _can_ produce different content or not store state in the session |
|
| 63 | 63 | $query['order'] = 'contact_id'; |
| 64 | - if(!array_key_exists('filter',$query)) $query['filter'] = $GLOBALS['egw_info']['user']['account_id']; |
|
| 65 | - $this->ui->get_rows($query,$selection,$readonlys, true); // only return the ids |
|
| 64 | + if (!array_key_exists('filter', $query)) $query['filter'] = $GLOBALS['egw_info']['user']['account_id']; |
|
| 65 | + $this->ui->get_rows($query, $selection, $readonlys, true); // only return the ids |
|
| 66 | 66 | } |
| 67 | - elseif ( $options['selection'] == 'all' ) { |
|
| 67 | + elseif ($options['selection'] == 'all') { |
|
| 68 | 68 | if ($GLOBALS['egw_info']['user']['preferences']['addressbook']['hide_accounts']) { |
| 69 | 69 | $col_filter['account_id'] = null; |
| 70 | 70 | } |
| 71 | - $selection = ExecMethod2('addressbook.addressbook_bo.search', array(), true, '', '','',false,'AND',false,$col_filter); |
|
| 71 | + $selection = ExecMethod2('addressbook.addressbook_bo.search', array(), true, '', '', '', false, 'AND', false, $col_filter); |
|
| 72 | 72 | //$uicontacts->get_rows($query,$selection,$readonlys,true); |
| 73 | 73 | } |
| 74 | 74 | elseif ($options['selection'] == 'filter') |
@@ -79,90 +79,90 @@ discard block |
||
| 79 | 79 | $query = array(); |
| 80 | 80 | |
| 81 | 81 | // Handle ranges |
| 82 | - foreach($filter as $field => $value) |
|
| 82 | + foreach ($filter as $field => $value) |
|
| 83 | 83 | { |
| 84 | - if($field == 'cat_id') |
|
| 84 | + if ($field == 'cat_id') |
|
| 85 | 85 | { |
| 86 | - $query['col_filter'][$field] = implode(',',$value); |
|
| 86 | + $query['col_filter'][$field] = implode(',', $value); |
|
| 87 | 87 | continue; |
| 88 | 88 | } |
| 89 | 89 | |
| 90 | 90 | // Birthdays in addressbook are formatted Y-m-d |
| 91 | - if($field == 'bday') |
|
| 91 | + if ($field == 'bday') |
|
| 92 | 92 | { |
| 93 | - if($value['from']) |
|
| 93 | + if ($value['from']) |
|
| 94 | 94 | { |
| 95 | - $query['col_filter'][] = "contact_bday >= " . $GLOBALS['egw']->db->quote(date('Y-m-d', (int)$value['from'])); |
|
| 95 | + $query['col_filter'][] = "contact_bday >= ".$GLOBALS['egw']->db->quote(date('Y-m-d', (int)$value['from'])); |
|
| 96 | 96 | } |
| 97 | - if($value['to']) |
|
| 97 | + if ($value['to']) |
|
| 98 | 98 | { |
| 99 | - $query['col_filter'][] = "contact_bday <= " . $GLOBALS['egw']->db->quote(date('Y-m-d', (int)$value['to'])); |
|
| 99 | + $query['col_filter'][] = "contact_bday <= ".$GLOBALS['egw']->db->quote(date('Y-m-d', (int)$value['to'])); |
|
| 100 | 100 | } |
| 101 | 101 | continue; |
| 102 | 102 | } |
| 103 | 103 | // Custom fields & listed exceptions are not filtered with contact_ prefix |
| 104 | - if(strpos($field, '#') !== 0 && !in_array($field, array('tid','owner'))) |
|
| 104 | + if (strpos($field, '#') !== 0 && !in_array($field, array('tid', 'owner'))) |
|
| 105 | 105 | { |
| 106 | 106 | $field = 'contact_'.$field; |
| 107 | 107 | } |
| 108 | 108 | $query['col_filter'][$field] = $value; |
| 109 | - if(!is_array($value) || (!$value['from'] && !$value['to'])) continue; |
|
| 109 | + if (!is_array($value) || (!$value['from'] && !$value['to'])) continue; |
|
| 110 | 110 | |
| 111 | 111 | // Ranges are inclusive, so should be provided that way (from 2 to 10 includes 2 and 10) |
| 112 | - if($value['from']) $query['col_filter'][] = "$field >= " . (int)$value['from']; |
|
| 113 | - if($value['to']) $query['col_filter'][] = "$field <= " . (int)$value['to']; |
|
| 112 | + if ($value['from']) $query['col_filter'][] = "$field >= ".(int)$value['from']; |
|
| 113 | + if ($value['to']) $query['col_filter'][] = "$field <= ".(int)$value['to']; |
|
| 114 | 114 | unset($query['col_filter'][$field]); |
| 115 | 115 | } |
| 116 | - $selection = ExecMethod2('addressbook.addressbook_bo.search', array(), true, '', '','',false,'AND',false,$query['col_filter']); |
|
| 116 | + $selection = ExecMethod2('addressbook.addressbook_bo.search', array(), true, '', '', '', false, 'AND', false, $query['col_filter']); |
|
| 117 | 117 | } |
| 118 | 118 | else |
| 119 | 119 | { |
| 120 | - $selection = explode(',',$options['selection']); |
|
| 120 | + $selection = explode(',', $options['selection']); |
|
| 121 | 121 | } |
| 122 | - if(!is_array($selection)) |
|
| 122 | + if (!is_array($selection)) |
|
| 123 | 123 | { |
| 124 | 124 | $selection = array(); |
| 125 | 125 | } |
| 126 | 126 | $GLOBALS['egw_info']['flags']['currentapp'] = $old_app; |
| 127 | 127 | |
| 128 | - if(bo_merge::hasExportLimit($export_limit) && !$limit_exception) { |
|
| 128 | + if (bo_merge::hasExportLimit($export_limit) && !$limit_exception) { |
|
| 129 | 129 | $selection = array_slice($selection, 0, $export_limit); |
| 130 | 130 | } |
| 131 | 131 | |
| 132 | - if($options['explode_multiselects']) { |
|
| 132 | + if ($options['explode_multiselects']) { |
|
| 133 | 133 | $customfields = config::get_customfields('addressbook'); |
| 134 | 134 | $additional_fields = array(); |
| 135 | 135 | $cat_obj = new categories('', 'addressbook'); |
| 136 | - foreach($options['explode_multiselects'] as $field => $explode) { |
|
| 137 | - switch($explode['explode']) { |
|
| 136 | + foreach ($options['explode_multiselects'] as $field => $explode) { |
|
| 137 | + switch ($explode['explode']) { |
|
| 138 | 138 | case self::MAIN_CATS: |
| 139 | - $cats = $cat_obj->return_array('mains', 0, false,'','ASC','',true); |
|
| 140 | - foreach($cats as $settings) { |
|
| 139 | + $cats = $cat_obj->return_array('mains', 0, false, '', 'ASC', '', true); |
|
| 140 | + foreach ($cats as $settings) { |
|
| 141 | 141 | $additional_fields[$field][$settings['id']] = array( |
| 142 | 142 | 'count' => 0, |
| 143 | 143 | 'label' => $settings['name'], |
| 144 | 144 | 'subs' => array(), |
| 145 | 145 | ); |
| 146 | 146 | $subs = $cat_obj->return_sorted_array(0, False, '', 'ASC', 'cat_name', True, $settings['id']); |
| 147 | - foreach($subs as $sub) { |
|
| 147 | + foreach ($subs as $sub) { |
|
| 148 | 148 | $name = $sub['name']; |
| 149 | 149 | $path = $sub; |
| 150 | - while($path['parent'] != $settings['id']) { |
|
| 150 | + while ($path['parent'] != $settings['id']) { |
|
| 151 | 151 | $path = $cat_obj->read($path['parent']); |
| 152 | - $name = $path['name'] . '/' . $name; |
|
| 152 | + $name = $path['name'].'/'.$name; |
|
| 153 | 153 | } |
| 154 | 154 | $additional_fields[$field][$settings['id']]['subs'][$sub['id']] = $name; |
| 155 | 155 | } |
| 156 | 156 | } |
| 157 | 157 | break; |
| 158 | 158 | case self::EACH_CAT: |
| 159 | - $cats = $cat_obj->return_array('all', 0, false,'','ASC','',true); |
|
| 160 | - foreach($cats as $settings) { |
|
| 159 | + $cats = $cat_obj->return_array('all', 0, false, '', 'ASC', '', true); |
|
| 160 | + foreach ($cats as $settings) { |
|
| 161 | 161 | $name = $settings['name']; |
| 162 | 162 | $path = $settings; |
| 163 | - while($path['level'] != 0) { |
|
| 163 | + while ($path['level'] != 0) { |
|
| 164 | 164 | $path = $cat_obj->read($path['parent']); |
| 165 | - $name = $path['name'] . '/' . $name; |
|
| 165 | + $name = $path['name'].'/'.$name; |
|
| 166 | 166 | } |
| 167 | 167 | $additional_fields[$field][$settings['id']] = array( |
| 168 | 168 | 'count' => 0, |
@@ -173,10 +173,10 @@ discard block |
||
| 173 | 173 | case self::EXPLODE: |
| 174 | 174 | // Only works for custom fields |
| 175 | 175 | $index = substr($field, 1); |
| 176 | - foreach($customfields[$index]['values'] as $key => $value) { |
|
| 176 | + foreach ($customfields[$index]['values'] as $key => $value) { |
|
| 177 | 177 | $additional_fields[$field][$key] = array( |
| 178 | 178 | 'count' => 0, |
| 179 | - 'label' => $customfields[$index]['label'] . ': ' . $value, |
|
| 179 | + 'label' => $customfields[$index]['label'].': '.$value, |
|
| 180 | 180 | ); |
| 181 | 181 | } |
| 182 | 182 | break; |
@@ -185,29 +185,29 @@ discard block |
||
| 185 | 185 | |
| 186 | 186 | // Check records to see if additional fields are actually used |
| 187 | 187 | foreach ($selection as $_contact) { |
| 188 | - if(is_array($_contact) && array_key_exists('photo', $_contact)) { |
|
| 188 | + if (is_array($_contact) && array_key_exists('photo', $_contact)) { |
|
| 189 | 189 | unset($_contact['photo']); |
| 190 | 190 | } |
| 191 | - if(is_array($_contact) && count($_contact) == 1 && $_contact['id']) { |
|
| 191 | + if (is_array($_contact) && count($_contact) == 1 && $_contact['id']) { |
|
| 192 | 192 | $_contact = $_contact['id']; |
| 193 | 193 | } |
| 194 | - if(is_array($_contact) && $_contact['id']) { |
|
| 194 | + if (is_array($_contact) && $_contact['id']) { |
|
| 195 | 195 | $contact = new addressbook_egw_record(); |
| 196 | 196 | $contact->set_record($_contact); |
| 197 | 197 | } else { |
| 198 | 198 | $contact = new addressbook_egw_record($_contact); |
| 199 | 199 | } |
| 200 | - foreach($additional_fields as $field => &$values) { |
|
| 201 | - if(!$contact->$field) continue; |
|
| 202 | - foreach($values as $value => &$settings) { |
|
| 203 | - if(!is_array($contact->$field)) { |
|
| 200 | + foreach ($additional_fields as $field => &$values) { |
|
| 201 | + if (!$contact->$field) continue; |
|
| 202 | + foreach ($values as $value => &$settings) { |
|
| 203 | + if (!is_array($contact->$field)) { |
|
| 204 | 204 | $contact->$field = explode(',', $contact->$field); |
| 205 | 205 | } |
| 206 | - if(is_array($contact->$field) && in_array($value, $contact->$field)) { |
|
| 206 | + if (is_array($contact->$field) && in_array($value, $contact->$field)) { |
|
| 207 | 207 | $settings['count']++; |
| 208 | - } elseif($contact->$field == $value) { |
|
| 208 | + } elseif ($contact->$field == $value) { |
|
| 209 | 209 | $settings['count']++; |
| 210 | - } elseif($options['explode_multiselects'][$field]['explode'] == self::MAIN_CATS && array_intersect($contact->$field, array_keys($settings['subs']))) { |
|
| 210 | + } elseif ($options['explode_multiselects'][$field]['explode'] == self::MAIN_CATS && array_intersect($contact->$field, array_keys($settings['subs']))) { |
|
| 211 | 211 | $settings['count']++; |
| 212 | 212 | } |
| 213 | 213 | } |
@@ -219,18 +219,18 @@ discard block |
||
| 219 | 219 | unset($settings); |
| 220 | 220 | |
| 221 | 221 | // Add additional columns |
| 222 | - foreach($additional_fields as $field => $additional_values) { |
|
| 222 | + foreach ($additional_fields as $field => $additional_values) { |
|
| 223 | 223 | // Remove original |
| 224 | 224 | unset($options['mapping'][$field]); |
| 225 | 225 | // Add exploded |
| 226 | 226 | $field_count = 0; |
| 227 | - foreach($additional_values as $value => $settings) { |
|
| 228 | - if($settings['count'] > 0) { |
|
| 227 | + foreach ($additional_values as $value => $settings) { |
|
| 228 | + if ($settings['count'] > 0) { |
|
| 229 | 229 | $field_count += $settings['count']; |
| 230 | 230 | $options['mapping'][$field.'-'.$value] = $settings['label']; |
| 231 | 231 | } |
| 232 | 232 | } |
| 233 | - if($field_count > 0) { |
|
| 233 | + if ($field_count > 0) { |
|
| 234 | 234 | // Set some options for converting |
| 235 | 235 | $options['explode_multiselects'][$field]['values'] = $additional_values; |
| 236 | 236 | } else { |
@@ -243,12 +243,12 @@ discard block |
||
| 243 | 243 | $export_object->set_mapping($options['mapping']); |
| 244 | 244 | |
| 245 | 245 | // Add in last/next event, if needed |
| 246 | - if($options['mapping']['last_date'] || $options['mapping']['next_date']) |
|
| 246 | + if ($options['mapping']['last_date'] || $options['mapping']['next_date']) |
|
| 247 | 247 | { |
| 248 | 248 | $contact_ids = array(); |
| 249 | - foreach($selection as $_contact) |
|
| 249 | + foreach ($selection as $_contact) |
|
| 250 | 250 | { |
| 251 | - if(is_array($_contact) && $_contact['id']) |
|
| 251 | + if (is_array($_contact) && $_contact['id']) |
|
| 252 | 252 | { |
| 253 | 253 | $contact_ids[] = $_contact['id']; |
| 254 | 254 | } |
@@ -263,20 +263,20 @@ discard block |
||
| 263 | 263 | // $options['selection'] is array of identifiers as this plugin doesn't |
| 264 | 264 | // support other selectors atm. |
| 265 | 265 | foreach ($selection as $_contact) { |
| 266 | - if(is_array($_contact) && array_key_exists('photo', $_contact)) { |
|
| 266 | + if (is_array($_contact) && array_key_exists('photo', $_contact)) { |
|
| 267 | 267 | unset($_contact['photo']); |
| 268 | 268 | } |
| 269 | - if(is_array($_contact) && count($_contact) == 1 && $_contact['id']) { |
|
| 269 | + if (is_array($_contact) && count($_contact) == 1 && $_contact['id']) { |
|
| 270 | 270 | $_contact = $_contact['id']; |
| 271 | 271 | } |
| 272 | - if(is_array($_contact) && $_contact['id']) { |
|
| 272 | + if (is_array($_contact) && $_contact['id']) { |
|
| 273 | 273 | $contact = new addressbook_egw_record(); |
| 274 | 274 | $contact->set_record($_contact); |
| 275 | 275 | } else { |
| 276 | 276 | $contact = new addressbook_egw_record($_contact); |
| 277 | 277 | } |
| 278 | 278 | |
| 279 | - if($events && $events[$contact->id]) |
|
| 279 | + if ($events && $events[$contact->id]) |
|
| 280 | 280 | { |
| 281 | 281 | // NB: last_date and next_date are used instead of last_event & next_event |
| 282 | 282 | // to avoid automatic conversion - we want to export link title, not date-time |
@@ -285,12 +285,12 @@ discard block |
||
| 285 | 285 | } |
| 286 | 286 | // Some conversion |
| 287 | 287 | $this->convert($contact, $options); |
| 288 | - if($options['convert']) { |
|
| 289 | - importexport_export_csv::convert($contact, addressbook_egw_record::$types, 'addressbook',$this->selects); |
|
| 288 | + if ($options['convert']) { |
|
| 289 | + importexport_export_csv::convert($contact, addressbook_egw_record::$types, 'addressbook', $this->selects); |
|
| 290 | 290 | } else { |
| 291 | 291 | // Implode arrays, so they don't say 'Array' |
| 292 | - foreach($contact->get_record_array() as $key => $value) { |
|
| 293 | - if(is_array($value)) $contact->$key = implode(',', $value); |
|
| 292 | + foreach ($contact->get_record_array() as $key => $value) { |
|
| 293 | + if (is_array($value)) $contact->$key = implode(',', $value); |
|
| 294 | 294 | } |
| 295 | 295 | } |
| 296 | 296 | |
@@ -337,7 +337,7 @@ discard block |
||
| 337 | 337 | */ |
| 338 | 338 | public function get_filename() |
| 339 | 339 | { |
| 340 | - if(is_object($this->export_object) && $this->export_object->get_num_of_records() == 1) |
|
| 340 | + if (is_object($this->export_object) && $this->export_object->get_num_of_records() == 1) |
|
| 341 | 341 | { |
| 342 | 342 | return $this->export_object->record->get_title(); |
| 343 | 343 | } |
@@ -368,26 +368,26 @@ discard block |
||
| 368 | 368 | * |
| 369 | 369 | * Dates, times, user IDs, category IDs |
| 370 | 370 | */ |
| 371 | - public static function convert(addressbook_egw_record &$record, $options) { |
|
| 371 | + public static function convert(addressbook_egw_record&$record, $options) { |
|
| 372 | 372 | |
| 373 | 373 | if ($record->tel_prefer) { |
| 374 | 374 | $field = $record->tel_prefer; |
| 375 | 375 | $record->tel_prefer = $record->$field; |
| 376 | 376 | } |
| 377 | 377 | |
| 378 | - if(!is_array($options['explode_multiselects'])) |
|
| 378 | + if (!is_array($options['explode_multiselects'])) |
|
| 379 | 379 | { |
| 380 | 380 | return; |
| 381 | 381 | } |
| 382 | - foreach((array)$options['explode_multiselects'] as $field => $explode_settings) { |
|
| 383 | - if(!is_array($record->$field)) $record->$field = explode(',', $record->$field); |
|
| 384 | - foreach((array)$explode_settings['values'] as $value => $settings) { |
|
| 382 | + foreach ((array)$options['explode_multiselects'] as $field => $explode_settings) { |
|
| 383 | + if (!is_array($record->$field)) $record->$field = explode(',', $record->$field); |
|
| 384 | + foreach ((array)$explode_settings['values'] as $value => $settings) { |
|
| 385 | 385 | $field_name = "$field-$value"; |
| 386 | 386 | $record->$field_name = array(); |
| 387 | - if(is_array($record->$field) && in_array($value, $record->$field) || $record->$field == $value) { |
|
| 388 | - if($explode_settings['explode'] != self::MAIN_CATS) { |
|
| 387 | + if (is_array($record->$field) && in_array($value, $record->$field) || $record->$field == $value) { |
|
| 388 | + if ($explode_settings['explode'] != self::MAIN_CATS) { |
|
| 389 | 389 | $record->$field_name = $options['convert'] ? lang('Yes') : true; |
| 390 | - } elseif($options['convert']) { |
|
| 390 | + } elseif ($options['convert']) { |
|
| 391 | 391 | // 3 part assign due to magic get method |
| 392 | 392 | $record_value = $record->$field_name; |
| 393 | 393 | $record_value[] = $settings['label']; |
@@ -396,16 +396,16 @@ discard block |
||
| 396 | 396 | $record->$field_name = $value; |
| 397 | 397 | } |
| 398 | 398 | } |
| 399 | - if($explode_settings['explode'] == self::MAIN_CATS && count(array_intersect($record->$field, array_keys($settings['subs'])))) { |
|
| 399 | + if ($explode_settings['explode'] == self::MAIN_CATS && count(array_intersect($record->$field, array_keys($settings['subs'])))) { |
|
| 400 | 400 | // 3 part assign due to magic get method |
| 401 | 401 | $record_value = $record->$field_name; |
| 402 | - if(!is_array($record_value)) $record_value = array($record_value); |
|
| 403 | - foreach(array_intersect($record->$field, array_keys($settings['subs'])) as $sub_id) { |
|
| 402 | + if (!is_array($record_value)) $record_value = array($record_value); |
|
| 403 | + foreach (array_intersect($record->$field, array_keys($settings['subs'])) as $sub_id) { |
|
| 404 | 404 | $record_value[] = $options['convert'] ? $settings['subs'][$sub_id] : $sub_id; |
| 405 | 405 | } |
| 406 | 406 | $record->$field_name = $record_value; |
| 407 | 407 | } |
| 408 | - if(is_array($record->$field_name)) $record->$field_name = implode(($options['convert'] ? ', ' : ','), $record->$field_name); |
|
| 408 | + if (is_array($record->$field_name)) $record->$field_name = implode(($options['convert'] ? ', ' : ','), $record->$field_name); |
|
| 409 | 409 | } |
| 410 | 410 | } |
| 411 | 411 | } |
@@ -416,7 +416,7 @@ discard block |
||
| 416 | 416 | $this->selects = array( |
| 417 | 417 | 'tid' => array('n' => 'Contact') |
| 418 | 418 | ); |
| 419 | - foreach($this->ui->content_types as $tid => $data) |
|
| 419 | + foreach ($this->ui->content_types as $tid => $data) |
|
| 420 | 420 | { |
| 421 | 421 | $this->selects['tid'][$tid] = $data['name']; |
| 422 | 422 | } |
@@ -429,9 +429,9 @@ discard block |
||
| 429 | 429 | { |
| 430 | 430 | unset($filters['last_event']); |
| 431 | 431 | unset($filters['next_event']); |
| 432 | - foreach($filters as $field_name => &$settings) |
|
| 432 | + foreach ($filters as $field_name => &$settings) |
|
| 433 | 433 | { |
| 434 | - if($this->selects[$field_name]) $settings['values'] = $this->selects[$field_name]; |
|
| 434 | + if ($this->selects[$field_name]) $settings['values'] = $this->selects[$field_name]; |
|
| 435 | 435 | } |
| 436 | 436 | $filters['owner'] = array( |
| 437 | 437 | 'name' => 'owner', |
@@ -14,7 +14,8 @@ discard block |
||
| 14 | 14 | /** |
| 15 | 15 | * export plugin of addressbook |
| 16 | 16 | */ |
| 17 | -class addressbook_export_contacts_csv implements importexport_iface_export_plugin { |
|
| 17 | +class addressbook_export_contacts_csv implements importexport_iface_export_plugin |
|
| 18 | +{ |
|
| 18 | 19 | |
| 19 | 20 | |
| 20 | 21 | /** |
@@ -36,7 +37,8 @@ discard block |
||
| 36 | 37 | * |
| 37 | 38 | * @param egw_record $_definition |
| 38 | 39 | */ |
| 39 | - public function export( $_stream, importexport_definition $_definition) { |
|
| 40 | + public function export( $_stream, importexport_definition $_definition) |
|
| 41 | + { |
|
| 40 | 42 | |
| 41 | 43 | $options = $_definition->plugin_options; |
| 42 | 44 | $this->export_object = $export_object = new importexport_export_csv($_stream, (array)$options); |
@@ -46,8 +48,13 @@ discard block |
||
| 46 | 48 | // Addressbook defines its own export imits |
| 47 | 49 | $limit_exception = bo_merge::is_export_limit_excepted(); |
| 48 | 50 | $export_limit = bo_merge::getExportLimit($app='addressbook'); |
| 49 | - if (!$limit_exception) $export_object->export_limit = $export_limit; // we may not need that after all |
|
| 50 | - if($export_limit == 'no' && !$limit_exception) { |
|
| 51 | + if (!$limit_exception) |
|
| 52 | + { |
|
| 53 | + $export_object->export_limit = $export_limit; |
|
| 54 | + } |
|
| 55 | + // we may not need that after all |
|
| 56 | + if($export_limit == 'no' && !$limit_exception) |
|
| 57 | + { |
|
| 51 | 58 | return; |
| 52 | 59 | } |
| 53 | 60 | |
@@ -55,17 +62,23 @@ discard block |
||
| 55 | 62 | $old_app = $GLOBALS['egw_info']['flags']['currentapp']; |
| 56 | 63 | $GLOBALS['egw_info']['flags']['currentapp'] = 'addressbook'; |
| 57 | 64 | |
| 58 | - if ($options['selection'] == 'search') { |
|
| 65 | + if ($options['selection'] == 'search') |
|
| 66 | + { |
|
| 59 | 67 | // uicontacts selection with checkbox 'use_all' |
| 60 | 68 | $query = $GLOBALS['egw']->session->appsession('index','addressbook'); |
| 61 | 69 | $query['num_rows'] = -1; // all |
| 62 | 70 | $query['csv_export'] = true; // so get_rows method _can_ produce different content or not store state in the session |
| 63 | 71 | $query['order'] = 'contact_id'; |
| 64 | - if(!array_key_exists('filter',$query)) $query['filter'] = $GLOBALS['egw_info']['user']['account_id']; |
|
| 72 | + if(!array_key_exists('filter',$query)) |
|
| 73 | + { |
|
| 74 | + $query['filter'] = $GLOBALS['egw_info']['user']['account_id']; |
|
| 75 | + } |
|
| 65 | 76 | $this->ui->get_rows($query,$selection,$readonlys, true); // only return the ids |
| 66 | 77 | } |
| 67 | - elseif ( $options['selection'] == 'all' ) { |
|
| 68 | - if ($GLOBALS['egw_info']['user']['preferences']['addressbook']['hide_accounts']) { |
|
| 78 | + elseif ( $options['selection'] == 'all' ) |
|
| 79 | + { |
|
| 80 | + if ($GLOBALS['egw_info']['user']['preferences']['addressbook']['hide_accounts']) |
|
| 81 | + { |
|
| 69 | 82 | $col_filter['account_id'] = null; |
| 70 | 83 | } |
| 71 | 84 | $selection = ExecMethod2('addressbook.addressbook_bo.search', array(), true, '', '','',false,'AND',false,$col_filter); |
@@ -106,11 +119,20 @@ discard block |
||
| 106 | 119 | $field = 'contact_'.$field; |
| 107 | 120 | } |
| 108 | 121 | $query['col_filter'][$field] = $value; |
| 109 | - if(!is_array($value) || (!$value['from'] && !$value['to'])) continue; |
|
| 122 | + if(!is_array($value) || (!$value['from'] && !$value['to'])) |
|
| 123 | + { |
|
| 124 | + continue; |
|
| 125 | + } |
|
| 110 | 126 | |
| 111 | 127 | // Ranges are inclusive, so should be provided that way (from 2 to 10 includes 2 and 10) |
| 112 | - if($value['from']) $query['col_filter'][] = "$field >= " . (int)$value['from']; |
|
| 113 | - if($value['to']) $query['col_filter'][] = "$field <= " . (int)$value['to']; |
|
| 128 | + if($value['from']) |
|
| 129 | + { |
|
| 130 | + $query['col_filter'][] = "$field >= " . (int)$value['from']; |
|
| 131 | + } |
|
| 132 | + if($value['to']) |
|
| 133 | + { |
|
| 134 | + $query['col_filter'][] = "$field <= " . (int)$value['to']; |
|
| 135 | + } |
|
| 114 | 136 | unset($query['col_filter'][$field]); |
| 115 | 137 | } |
| 116 | 138 | $selection = ExecMethod2('addressbook.addressbook_bo.search', array(), true, '', '','',false,'AND',false,$query['col_filter']); |
@@ -125,29 +147,36 @@ discard block |
||
| 125 | 147 | } |
| 126 | 148 | $GLOBALS['egw_info']['flags']['currentapp'] = $old_app; |
| 127 | 149 | |
| 128 | - if(bo_merge::hasExportLimit($export_limit) && !$limit_exception) { |
|
| 150 | + if(bo_merge::hasExportLimit($export_limit) && !$limit_exception) |
|
| 151 | + { |
|
| 129 | 152 | $selection = array_slice($selection, 0, $export_limit); |
| 130 | 153 | } |
| 131 | 154 | |
| 132 | - if($options['explode_multiselects']) { |
|
| 155 | + if($options['explode_multiselects']) |
|
| 156 | + { |
|
| 133 | 157 | $customfields = config::get_customfields('addressbook'); |
| 134 | 158 | $additional_fields = array(); |
| 135 | 159 | $cat_obj = new categories('', 'addressbook'); |
| 136 | - foreach($options['explode_multiselects'] as $field => $explode) { |
|
| 137 | - switch($explode['explode']) { |
|
| 160 | + foreach($options['explode_multiselects'] as $field => $explode) |
|
| 161 | + { |
|
| 162 | + switch($explode['explode']) |
|
| 163 | + { |
|
| 138 | 164 | case self::MAIN_CATS: |
| 139 | 165 | $cats = $cat_obj->return_array('mains', 0, false,'','ASC','',true); |
| 140 | - foreach($cats as $settings) { |
|
| 166 | + foreach($cats as $settings) |
|
| 167 | + { |
|
| 141 | 168 | $additional_fields[$field][$settings['id']] = array( |
| 142 | 169 | 'count' => 0, |
| 143 | 170 | 'label' => $settings['name'], |
| 144 | 171 | 'subs' => array(), |
| 145 | 172 | ); |
| 146 | 173 | $subs = $cat_obj->return_sorted_array(0, False, '', 'ASC', 'cat_name', True, $settings['id']); |
| 147 | - foreach($subs as $sub) { |
|
| 174 | + foreach($subs as $sub) |
|
| 175 | + { |
|
| 148 | 176 | $name = $sub['name']; |
| 149 | 177 | $path = $sub; |
| 150 | - while($path['parent'] != $settings['id']) { |
|
| 178 | + while($path['parent'] != $settings['id']) |
|
| 179 | + { |
|
| 151 | 180 | $path = $cat_obj->read($path['parent']); |
| 152 | 181 | $name = $path['name'] . '/' . $name; |
| 153 | 182 | } |
@@ -157,10 +186,12 @@ discard block |
||
| 157 | 186 | break; |
| 158 | 187 | case self::EACH_CAT: |
| 159 | 188 | $cats = $cat_obj->return_array('all', 0, false,'','ASC','',true); |
| 160 | - foreach($cats as $settings) { |
|
| 189 | + foreach($cats as $settings) |
|
| 190 | + { |
|
| 161 | 191 | $name = $settings['name']; |
| 162 | 192 | $path = $settings; |
| 163 | - while($path['level'] != 0) { |
|
| 193 | + while($path['level'] != 0) |
|
| 194 | + { |
|
| 164 | 195 | $path = $cat_obj->read($path['parent']); |
| 165 | 196 | $name = $path['name'] . '/' . $name; |
| 166 | 197 | } |
@@ -173,7 +204,8 @@ discard block |
||
| 173 | 204 | case self::EXPLODE: |
| 174 | 205 | // Only works for custom fields |
| 175 | 206 | $index = substr($field, 1); |
| 176 | - foreach($customfields[$index]['values'] as $key => $value) { |
|
| 207 | + foreach($customfields[$index]['values'] as $key => $value) |
|
| 208 | + { |
|
| 177 | 209 | $additional_fields[$field][$key] = array( |
| 178 | 210 | 'count' => 0, |
| 179 | 211 | 'label' => $customfields[$index]['label'] . ': ' . $value, |
@@ -184,30 +216,47 @@ discard block |
||
| 184 | 216 | } |
| 185 | 217 | |
| 186 | 218 | // Check records to see if additional fields are actually used |
| 187 | - foreach ($selection as $_contact) { |
|
| 188 | - if(is_array($_contact) && array_key_exists('photo', $_contact)) { |
|
| 219 | + foreach ($selection as $_contact) |
|
| 220 | + { |
|
| 221 | + if(is_array($_contact) && array_key_exists('photo', $_contact)) |
|
| 222 | + { |
|
| 189 | 223 | unset($_contact['photo']); |
| 190 | 224 | } |
| 191 | - if(is_array($_contact) && count($_contact) == 1 && $_contact['id']) { |
|
| 225 | + if(is_array($_contact) && count($_contact) == 1 && $_contact['id']) |
|
| 226 | + { |
|
| 192 | 227 | $_contact = $_contact['id']; |
| 193 | 228 | } |
| 194 | - if(is_array($_contact) && $_contact['id']) { |
|
| 229 | + if(is_array($_contact) && $_contact['id']) |
|
| 230 | + { |
|
| 195 | 231 | $contact = new addressbook_egw_record(); |
| 196 | 232 | $contact->set_record($_contact); |
| 197 | - } else { |
|
| 233 | + } |
|
| 234 | + else |
|
| 235 | + { |
|
| 198 | 236 | $contact = new addressbook_egw_record($_contact); |
| 199 | 237 | } |
| 200 | - foreach($additional_fields as $field => &$values) { |
|
| 201 | - if(!$contact->$field) continue; |
|
| 202 | - foreach($values as $value => &$settings) { |
|
| 203 | - if(!is_array($contact->$field)) { |
|
| 238 | + foreach($additional_fields as $field => &$values) |
|
| 239 | + { |
|
| 240 | + if(!$contact->$field) |
|
| 241 | + { |
|
| 242 | + continue; |
|
| 243 | + } |
|
| 244 | + foreach($values as $value => &$settings) |
|
| 245 | + { |
|
| 246 | + if(!is_array($contact->$field)) |
|
| 247 | + { |
|
| 204 | 248 | $contact->$field = explode(',', $contact->$field); |
| 205 | 249 | } |
| 206 | - if(is_array($contact->$field) && in_array($value, $contact->$field)) { |
|
| 250 | + if(is_array($contact->$field) && in_array($value, $contact->$field)) |
|
| 251 | + { |
|
| 207 | 252 | $settings['count']++; |
| 208 | - } elseif($contact->$field == $value) { |
|
| 253 | + } |
|
| 254 | + elseif($contact->$field == $value) |
|
| 255 | + { |
|
| 209 | 256 | $settings['count']++; |
| 210 | - } elseif($options['explode_multiselects'][$field]['explode'] == self::MAIN_CATS && array_intersect($contact->$field, array_keys($settings['subs']))) { |
|
| 257 | + } |
|
| 258 | + elseif($options['explode_multiselects'][$field]['explode'] == self::MAIN_CATS && array_intersect($contact->$field, array_keys($settings['subs']))) |
|
| 259 | + { |
|
| 211 | 260 | $settings['count']++; |
| 212 | 261 | } |
| 213 | 262 | } |
@@ -219,21 +268,27 @@ discard block |
||
| 219 | 268 | unset($settings); |
| 220 | 269 | |
| 221 | 270 | // Add additional columns |
| 222 | - foreach($additional_fields as $field => $additional_values) { |
|
| 271 | + foreach($additional_fields as $field => $additional_values) |
|
| 272 | + { |
|
| 223 | 273 | // Remove original |
| 224 | 274 | unset($options['mapping'][$field]); |
| 225 | 275 | // Add exploded |
| 226 | 276 | $field_count = 0; |
| 227 | - foreach($additional_values as $value => $settings) { |
|
| 228 | - if($settings['count'] > 0) { |
|
| 277 | + foreach($additional_values as $value => $settings) |
|
| 278 | + { |
|
| 279 | + if($settings['count'] > 0) |
|
| 280 | + { |
|
| 229 | 281 | $field_count += $settings['count']; |
| 230 | 282 | $options['mapping'][$field.'-'.$value] = $settings['label']; |
| 231 | 283 | } |
| 232 | 284 | } |
| 233 | - if($field_count > 0) { |
|
| 285 | + if($field_count > 0) |
|
| 286 | + { |
|
| 234 | 287 | // Set some options for converting |
| 235 | 288 | $options['explode_multiselects'][$field]['values'] = $additional_values; |
| 236 | - } else { |
|
| 289 | + } |
|
| 290 | + else |
|
| 291 | + { |
|
| 237 | 292 | // Don't need this anymore |
| 238 | 293 | unset($options['explode_multiselects'][$field]); |
| 239 | 294 | } |
@@ -262,17 +317,23 @@ discard block |
||
| 262 | 317 | |
| 263 | 318 | // $options['selection'] is array of identifiers as this plugin doesn't |
| 264 | 319 | // support other selectors atm. |
| 265 | - foreach ($selection as $_contact) { |
|
| 266 | - if(is_array($_contact) && array_key_exists('photo', $_contact)) { |
|
| 320 | + foreach ($selection as $_contact) |
|
| 321 | + { |
|
| 322 | + if(is_array($_contact) && array_key_exists('photo', $_contact)) |
|
| 323 | + { |
|
| 267 | 324 | unset($_contact['photo']); |
| 268 | 325 | } |
| 269 | - if(is_array($_contact) && count($_contact) == 1 && $_contact['id']) { |
|
| 326 | + if(is_array($_contact) && count($_contact) == 1 && $_contact['id']) |
|
| 327 | + { |
|
| 270 | 328 | $_contact = $_contact['id']; |
| 271 | 329 | } |
| 272 | - if(is_array($_contact) && $_contact['id']) { |
|
| 330 | + if(is_array($_contact) && $_contact['id']) |
|
| 331 | + { |
|
| 273 | 332 | $contact = new addressbook_egw_record(); |
| 274 | 333 | $contact->set_record($_contact); |
| 275 | - } else { |
|
| 334 | + } |
|
| 335 | + else |
|
| 336 | + { |
|
| 276 | 337 | $contact = new addressbook_egw_record($_contact); |
| 277 | 338 | } |
| 278 | 339 | |
@@ -285,12 +346,19 @@ discard block |
||
| 285 | 346 | } |
| 286 | 347 | // Some conversion |
| 287 | 348 | $this->convert($contact, $options); |
| 288 | - if($options['convert']) { |
|
| 349 | + if($options['convert']) |
|
| 350 | + { |
|
| 289 | 351 | importexport_export_csv::convert($contact, addressbook_egw_record::$types, 'addressbook',$this->selects); |
| 290 | - } else { |
|
| 352 | + } |
|
| 353 | + else |
|
| 354 | + { |
|
| 291 | 355 | // Implode arrays, so they don't say 'Array' |
| 292 | - foreach($contact->get_record_array() as $key => $value) { |
|
| 293 | - if(is_array($value)) $contact->$key = implode(',', $value); |
|
| 356 | + foreach($contact->get_record_array() as $key => $value) |
|
| 357 | + { |
|
| 358 | + if(is_array($value)) |
|
| 359 | + { |
|
| 360 | + $contact->$key = implode(',', $value); |
|
| 361 | + } |
|
| 294 | 362 | } |
| 295 | 363 | } |
| 296 | 364 | |
@@ -305,7 +373,8 @@ discard block |
||
| 305 | 373 | * |
| 306 | 374 | * @return string name |
| 307 | 375 | */ |
| 308 | - public static function get_name() { |
|
| 376 | + public static function get_name() |
|
| 377 | + { |
|
| 309 | 378 | return lang('Addressbook CSV export'); |
| 310 | 379 | } |
| 311 | 380 | |
@@ -314,7 +383,8 @@ discard block |
||
| 314 | 383 | * |
| 315 | 384 | * @return string descriprion |
| 316 | 385 | */ |
| 317 | - public static function get_description() { |
|
| 386 | + public static function get_description() |
|
| 387 | + { |
|
| 318 | 388 | return lang("Exports contacts from your Addressbook into a CSV File."); |
| 319 | 389 | } |
| 320 | 390 | |
@@ -323,11 +393,13 @@ discard block |
||
| 323 | 393 | * |
| 324 | 394 | * @return string suffix |
| 325 | 395 | */ |
| 326 | - public static function get_filesuffix() { |
|
| 396 | + public static function get_filesuffix() |
|
| 397 | + { |
|
| 327 | 398 | return 'csv'; |
| 328 | 399 | } |
| 329 | 400 | |
| 330 | - public static function get_mimetype() { |
|
| 401 | + public static function get_mimetype() |
|
| 402 | + { |
|
| 331 | 403 | return 'text/csv'; |
| 332 | 404 | } |
| 333 | 405 | |
@@ -350,14 +422,16 @@ discard block |
||
| 350 | 422 | * |
| 351 | 423 | * @return string html |
| 352 | 424 | */ |
| 353 | - public function get_options_etpl() { |
|
| 425 | + public function get_options_etpl() |
|
| 426 | + { |
|
| 354 | 427 | } |
| 355 | 428 | |
| 356 | 429 | /** |
| 357 | 430 | * returns slectors of this plugin via xajax |
| 358 | 431 | * |
| 359 | 432 | */ |
| 360 | - public function get_selectors_etpl() { |
|
| 433 | + public function get_selectors_etpl() |
|
| 434 | + { |
|
| 361 | 435 | return array( |
| 362 | 436 | 'name' => 'importexport.export_csv_selectors', |
| 363 | 437 | ); |
@@ -368,9 +442,11 @@ discard block |
||
| 368 | 442 | * |
| 369 | 443 | * Dates, times, user IDs, category IDs |
| 370 | 444 | */ |
| 371 | - public static function convert(addressbook_egw_record &$record, $options) { |
|
| 445 | + public static function convert(addressbook_egw_record &$record, $options) |
|
| 446 | + { |
|
| 372 | 447 | |
| 373 | - if ($record->tel_prefer) { |
|
| 448 | + if ($record->tel_prefer) |
|
| 449 | + { |
|
| 374 | 450 | $field = $record->tel_prefer; |
| 375 | 451 | $record->tel_prefer = $record->$field; |
| 376 | 452 | } |
@@ -379,33 +455,52 @@ discard block |
||
| 379 | 455 | { |
| 380 | 456 | return; |
| 381 | 457 | } |
| 382 | - foreach((array)$options['explode_multiselects'] as $field => $explode_settings) { |
|
| 383 | - if(!is_array($record->$field)) $record->$field = explode(',', $record->$field); |
|
| 384 | - foreach((array)$explode_settings['values'] as $value => $settings) { |
|
| 458 | + foreach((array)$options['explode_multiselects'] as $field => $explode_settings) |
|
| 459 | + { |
|
| 460 | + if(!is_array($record->$field)) |
|
| 461 | + { |
|
| 462 | + $record->$field = explode(',', $record->$field); |
|
| 463 | + } |
|
| 464 | + foreach((array)$explode_settings['values'] as $value => $settings) |
|
| 465 | + { |
|
| 385 | 466 | $field_name = "$field-$value"; |
| 386 | 467 | $record->$field_name = array(); |
| 387 | - if(is_array($record->$field) && in_array($value, $record->$field) || $record->$field == $value) { |
|
| 388 | - if($explode_settings['explode'] != self::MAIN_CATS) { |
|
| 468 | + if(is_array($record->$field) && in_array($value, $record->$field) || $record->$field == $value) |
|
| 469 | + { |
|
| 470 | + if($explode_settings['explode'] != self::MAIN_CATS) |
|
| 471 | + { |
|
| 389 | 472 | $record->$field_name = $options['convert'] ? lang('Yes') : true; |
| 390 | - } elseif($options['convert']) { |
|
| 473 | + } |
|
| 474 | + elseif($options['convert']) |
|
| 475 | + { |
|
| 391 | 476 | // 3 part assign due to magic get method |
| 392 | 477 | $record_value = $record->$field_name; |
| 393 | 478 | $record_value[] = $settings['label']; |
| 394 | 479 | $record->$field_name = $record_value; |
| 395 | - } else { |
|
| 480 | + } |
|
| 481 | + else |
|
| 482 | + { |
|
| 396 | 483 | $record->$field_name = $value; |
| 397 | 484 | } |
| 398 | 485 | } |
| 399 | - if($explode_settings['explode'] == self::MAIN_CATS && count(array_intersect($record->$field, array_keys($settings['subs'])))) { |
|
| 486 | + if($explode_settings['explode'] == self::MAIN_CATS && count(array_intersect($record->$field, array_keys($settings['subs'])))) |
|
| 487 | + { |
|
| 400 | 488 | // 3 part assign due to magic get method |
| 401 | 489 | $record_value = $record->$field_name; |
| 402 | - if(!is_array($record_value)) $record_value = array($record_value); |
|
| 403 | - foreach(array_intersect($record->$field, array_keys($settings['subs'])) as $sub_id) { |
|
| 490 | + if(!is_array($record_value)) |
|
| 491 | + { |
|
| 492 | + $record_value = array($record_value); |
|
| 493 | + } |
|
| 494 | + foreach(array_intersect($record->$field, array_keys($settings['subs'])) as $sub_id) |
|
| 495 | + { |
|
| 404 | 496 | $record_value[] = $options['convert'] ? $settings['subs'][$sub_id] : $sub_id; |
| 405 | 497 | } |
| 406 | 498 | $record->$field_name = $record_value; |
| 407 | 499 | } |
| 408 | - if(is_array($record->$field_name)) $record->$field_name = implode(($options['convert'] ? ', ' : ','), $record->$field_name); |
|
| 500 | + if(is_array($record->$field_name)) |
|
| 501 | + { |
|
| 502 | + $record->$field_name = implode(($options['convert'] ? ', ' : ','), $record->$field_name); |
|
| 503 | + } |
|
| 409 | 504 | } |
| 410 | 505 | } |
| 411 | 506 | } |
@@ -426,12 +521,15 @@ discard block |
||
| 426 | 521 | * Adjust automatically generated filter fields |
| 427 | 522 | */ |
| 428 | 523 | public function get_filter_fields(Array &$filters) |
| 429 | - { |
|
| 524 | + { |
|
| 430 | 525 | unset($filters['last_event']); |
| 431 | 526 | unset($filters['next_event']); |
| 432 | 527 | foreach($filters as $field_name => &$settings) |
| 433 | 528 | { |
| 434 | - if($this->selects[$field_name]) $settings['values'] = $this->selects[$field_name]; |
|
| 529 | + if($this->selects[$field_name]) |
|
| 530 | + { |
|
| 531 | + $settings['values'] = $this->selects[$field_name]; |
|
| 532 | + } |
|
| 435 | 533 | } |
| 436 | 534 | $filters['owner'] = array( |
| 437 | 535 | 'name' => 'owner', |
@@ -247,7 +247,7 @@ |
||
| 247 | 247 | $this->selects['info_status'] = $this->bo->get_status(); |
| 248 | 248 | } |
| 249 | 249 | |
| 250 | - public function get_filter_fields(Array &$filters) |
|
| 250 | + public function get_filter_fields(array &$filters) |
|
| 251 | 251 | { |
| 252 | 252 | foreach($filters as $field_name => &$settings) |
| 253 | 253 | { |
@@ -90,20 +90,20 @@ discard block |
||
| 90 | 90 | */ |
| 91 | 91 | var $clientProperties; |
| 92 | 92 | /** |
| 93 | - * Set Logging |
|
| 94 | - * |
|
| 95 | - * @var string |
|
| 96 | - * off = false; |
|
| 97 | - */ |
|
| 93 | + * Set Logging |
|
| 94 | + * |
|
| 95 | + * @var string |
|
| 96 | + * off = false; |
|
| 97 | + */ |
|
| 98 | 98 | var $log = false; |
| 99 | 99 | var $logfile="/tmp/log-vcard"; |
| 100 | 100 | /** |
| 101 | - * Constructor |
|
| 102 | - * |
|
| 103 | - * @param string $contact_app the current application |
|
| 104 | - * @param string $_contentType the content type (version) |
|
| 105 | - * @param array $_clientProperties client properties |
|
| 106 | - */ |
|
| 101 | + * Constructor |
|
| 102 | + * |
|
| 103 | + * @param string $contact_app the current application |
|
| 104 | + * @param string $_contentType the content type (version) |
|
| 105 | + * @param array $_clientProperties client properties |
|
| 106 | + */ |
|
| 107 | 107 | function __construct($contact_app='addressbook', $_contentType='text/x-vcard', &$_clientProperties = array()) |
| 108 | 108 | { |
| 109 | 109 | parent::__construct($contact_app); |
@@ -126,15 +126,15 @@ discard block |
||
| 126 | 126 | $this->supportedFields = $this->databaseFields; |
| 127 | 127 | } |
| 128 | 128 | /** |
| 129 | - * import a vard into addressbook |
|
| 130 | - * |
|
| 131 | - * @param string $_vcard the vcard |
|
| 132 | - * @param int/string $_abID =null the internal addressbook id or !$_abID for a new enty |
|
| 133 | - * @param boolean $merge =false merge data with existing entry |
|
| 134 | - * @param string $charset The encoding charset for $text. Defaults to |
|
| 135 | - * utf-8 for new format, iso-8859-1 for old format. |
|
| 136 | - * @return int contact id |
|
| 137 | - */ |
|
| 129 | + * import a vard into addressbook |
|
| 130 | + * |
|
| 131 | + * @param string $_vcard the vcard |
|
| 132 | + * @param int/string $_abID =null the internal addressbook id or !$_abID for a new enty |
|
| 133 | + * @param boolean $merge =false merge data with existing entry |
|
| 134 | + * @param string $charset The encoding charset for $text. Defaults to |
|
| 135 | + * utf-8 for new format, iso-8859-1 for old format. |
|
| 136 | + * @return int contact id |
|
| 137 | + */ |
|
| 138 | 138 | function addVCard($_vcard, $_abID=null, $merge=false, $charset=null) |
| 139 | 139 | { |
| 140 | 140 | if (!($contact = $this->vcardtoegw($_vcard, $charset))) return false; |
@@ -174,17 +174,17 @@ discard block |
||
| 174 | 174 | $contact['id'] = $_abID; |
| 175 | 175 | } |
| 176 | 176 | else |
| 177 | - { |
|
| 178 | - if (is_array($contact['cat_id'])) |
|
| 177 | + { |
|
| 178 | + if (is_array($contact['cat_id'])) |
|
| 179 | 179 | { |
| 180 | 180 | $contact['cat_id'] = implode(',',$this->find_or_add_categories($contact['cat_id'], -1)); |
| 181 | 181 | } |
| 182 | - } |
|
| 183 | - if (isset($contact['owner']) && $contact['owner'] != $this->user) |
|
| 184 | - { |
|
| 185 | - $contact['private'] = 0; // foreign contacts are never private! |
|
| 186 | - } |
|
| 187 | - if ($this->log) |
|
| 182 | + } |
|
| 183 | + if (isset($contact['owner']) && $contact['owner'] != $this->user) |
|
| 184 | + { |
|
| 185 | + $contact['private'] = 0; // foreign contacts are never private! |
|
| 186 | + } |
|
| 187 | + if ($this->log) |
|
| 188 | 188 | { |
| 189 | 189 | error_log(__FILE__.'['.__LINE__.'] '.__METHOD__."()\n" . |
| 190 | 190 | array2string($contact)."\n",3,$this->logfile); |
@@ -193,13 +193,13 @@ discard block |
||
| 193 | 193 | } |
| 194 | 194 | |
| 195 | 195 | /** |
| 196 | - * return a vcard |
|
| 197 | - * |
|
| 198 | - * @param int/string $_id the id of the contact |
|
| 199 | - * @param string $_charset ='UTF-8' encoding of the vcard, default UTF-8 |
|
| 200 | - * @param boolean $extra_charset_attribute =true GroupDAV/CalDAV dont need the charset attribute and some clients have problems with it |
|
| 201 | - * @return string containing the vcard |
|
| 202 | - */ |
|
| 196 | + * return a vcard |
|
| 197 | + * |
|
| 198 | + * @param int/string $_id the id of the contact |
|
| 199 | + * @param string $_charset ='UTF-8' encoding of the vcard, default UTF-8 |
|
| 200 | + * @param boolean $extra_charset_attribute =true GroupDAV/CalDAV dont need the charset attribute and some clients have problems with it |
|
| 201 | + * @return string containing the vcard |
|
| 202 | + */ |
|
| 203 | 203 | function getVCard($_id,$_charset='UTF-8',$extra_charset_attribute=true) |
| 204 | 204 | { |
| 205 | 205 | $vCard = new Horde_Icalendar_Vcard($this->version); |
@@ -533,14 +533,14 @@ discard block |
||
| 533 | 533 | } |
| 534 | 534 | |
| 535 | 535 | /** |
| 536 | - * Parses a string containing vCard data. |
|
| 537 | - * |
|
| 538 | - * @param string $_vcard The data to parse. |
|
| 539 | - * @param string $charset The encoding charset for $text. Defaults to |
|
| 540 | - * utf-8 for new format, iso-8859-1 for old format. |
|
| 541 | - * |
|
| 542 | - * @return array|boolean The contact data or false on errors. |
|
| 543 | - */ |
|
| 536 | + * Parses a string containing vCard data. |
|
| 537 | + * |
|
| 538 | + * @param string $_vcard The data to parse. |
|
| 539 | + * @param string $charset The encoding charset for $text. Defaults to |
|
| 540 | + * utf-8 for new format, iso-8859-1 for old format. |
|
| 541 | + * |
|
| 542 | + * @return array|boolean The contact data or false on errors. |
|
| 543 | + */ |
|
| 544 | 544 | function vcardtoegw($_vcard, $charset=null) |
| 545 | 545 | { |
| 546 | 546 | // the horde class does the charset conversion. DO NOT CONVERT HERE. |
@@ -799,7 +799,7 @@ discard block |
||
| 799 | 799 | } |
| 800 | 800 | break; |
| 801 | 801 | case 'TEL;OTHER;VOICE': |
| 802 | - if (!in_array('TEL;OTHER', $rowNames) |
|
| 802 | + if (!in_array('TEL;OTHER', $rowNames) |
|
| 803 | 803 | && !isset($finalRowNames['TEL;OTHER'])) |
| 804 | 804 | { |
| 805 | 805 | $finalRowNames['TEL;OTHER'] = $vcardKey; |
@@ -137,7 +137,10 @@ discard block |
||
| 137 | 137 | */ |
| 138 | 138 | function addVCard($_vcard, $_abID=null, $merge=false, $charset=null) |
| 139 | 139 | { |
| 140 | - if (!($contact = $this->vcardtoegw($_vcard, $charset))) return false; |
|
| 140 | + if (!($contact = $this->vcardtoegw($_vcard, $charset))) |
|
| 141 | + { |
|
| 142 | + return false; |
|
| 143 | + } |
|
| 141 | 144 | |
| 142 | 145 | if ($_abID) |
| 143 | 146 | { |
@@ -174,9 +177,9 @@ discard block |
||
| 174 | 177 | $contact['id'] = $_abID; |
| 175 | 178 | } |
| 176 | 179 | else |
| 177 | - { |
|
| 180 | + { |
|
| 178 | 181 | if (is_array($contact['cat_id'])) |
| 179 | - { |
|
| 182 | + { |
|
| 180 | 183 | $contact['cat_id'] = implode(',',$this->find_or_add_categories($contact['cat_id'], -1)); |
| 181 | 184 | } |
| 182 | 185 | } |
@@ -185,7 +188,7 @@ discard block |
||
| 185 | 188 | $contact['private'] = 0; // foreign contacts are never private! |
| 186 | 189 | } |
| 187 | 190 | if ($this->log) |
| 188 | - { |
|
| 191 | + { |
|
| 189 | 192 | error_log(__FILE__.'['.__LINE__.'] '.__METHOD__."()\n" . |
| 190 | 193 | array2string($contact)."\n",3,$this->logfile); |
| 191 | 194 | } |
@@ -331,9 +334,12 @@ discard block |
||
| 331 | 334 | break; |
| 332 | 335 | |
| 333 | 336 | case 'cat_id': |
| 334 | - if (!empty($value) && ($values = /*str_replace(',','\\,',*/$this->get_categories($value)))//) |
|
| 337 | + if (!empty($value) && ($values = /*str_replace(',','\\,',*/$this->get_categories($value))) |
|
| 338 | + { |
|
| 339 | + //) |
|
| 335 | 340 | { |
| 336 | 341 | $values = (array) Api\Translation::convert($values, $sysCharSet, $_charset); |
| 342 | + } |
|
| 337 | 343 | $value = implode(',', $values); // just for the CHARSET recognition |
| 338 | 344 | if (($size > 0) && strlen($value) > $size) |
| 339 | 345 | { |
@@ -386,8 +392,14 @@ discard block |
||
| 386 | 392 | if (isset($this->supportedFields['X-ABSHOWAS']) && |
| 387 | 393 | $entry['org_name'] == $entry['n_fileas'] && $entry['fileas_type'] == 'org_name') |
| 388 | 394 | { |
| 389 | - if ($vcardField == 'X-ABSHOWAS') $value = 'COMPANY'; |
|
| 390 | - if ($databaseField == 'n_fn') $value = $entry['org_name']; |
|
| 395 | + if ($vcardField == 'X-ABSHOWAS') |
|
| 396 | + { |
|
| 397 | + $value = 'COMPANY'; |
|
| 398 | + } |
|
| 399 | + if ($databaseField == 'n_fn') |
|
| 400 | + { |
|
| 401 | + $value = $entry['org_name']; |
|
| 402 | + } |
|
| 391 | 403 | } |
| 392 | 404 | //error_log("vcardField='$vcardField', databaseField='$databaseField', this->supportedFields['X-ABSHOWAS']=".array2string($this->supportedFields['X-ABSHOWAS'])." --> value='$value'"); |
| 393 | 405 | // fall-through |
@@ -524,12 +536,18 @@ discard block |
||
| 524 | 536 | $this->productManufacturer = strtolower($_productManufacturer); |
| 525 | 537 | $this->productName = strtolower($_productName); |
| 526 | 538 | |
| 527 | - if (is_array($_supportedFields)) $this->supportedFields = $_supportedFields; |
|
| 539 | + if (is_array($_supportedFields)) |
|
| 540 | + { |
|
| 541 | + $this->supportedFields = $_supportedFields; |
|
| 542 | + } |
|
| 528 | 543 | } |
| 529 | 544 | |
| 530 | 545 | function setDatabaseFields($_databaseFields) |
| 531 | 546 | { |
| 532 | - if (is_array($_databaseFields)) $this->databaseFields = $_databaseFields; |
|
| 547 | + if (is_array($_databaseFields)) |
|
| 548 | + { |
|
| 549 | + $this->databaseFields = $_databaseFields; |
|
| 550 | + } |
|
| 533 | 551 | } |
| 534 | 552 | |
| 535 | 553 | /** |
@@ -681,7 +699,10 @@ discard block |
||
| 681 | 699 | case 'VOICE': |
| 682 | 700 | case 'OTHER': |
| 683 | 701 | case 'CELL': |
| 684 | - if ($rowName != 'TEL') break; |
|
| 702 | + if ($rowName != 'TEL') |
|
| 703 | + { |
|
| 704 | + break; |
|
| 705 | + } |
|
| 685 | 706 | case 'WORK': |
| 686 | 707 | case 'HOME': |
| 687 | 708 | $rowName .= ';' . $pname; |
@@ -801,7 +822,7 @@ discard block |
||
| 801 | 822 | case 'TEL;OTHER;VOICE': |
| 802 | 823 | if (!in_array('TEL;OTHER', $rowNames) |
| 803 | 824 | && !isset($finalRowNames['TEL;OTHER'])) |
| 804 | - { |
|
| 825 | + { |
|
| 805 | 826 | $finalRowNames['TEL;OTHER'] = $vcardKey; |
| 806 | 827 | } |
| 807 | 828 | break; |
@@ -924,7 +945,10 @@ discard block |
||
| 924 | 945 | { |
| 925 | 946 | foreach($fields as $field) |
| 926 | 947 | { |
| 927 | - if ($field != 'fileas_type') $contact[$field] = null; |
|
| 948 | + if ($field != 'fileas_type') |
|
| 949 | + { |
|
| 950 | + $contact[$field] = null; |
|
| 951 | + } |
|
| 928 | 952 | } |
| 929 | 953 | } |
| 930 | 954 | |
@@ -982,7 +1006,8 @@ discard block |
||
| 982 | 1006 | break; |
| 983 | 1007 | |
| 984 | 1008 | case 'uid': |
| 985 | - if (strlen($value) < $minimum_uid_length) { |
|
| 1009 | + if (strlen($value) < $minimum_uid_length) |
|
| 1010 | + { |
|
| 986 | 1011 | // we don't use it |
| 987 | 1012 | break; |
| 988 | 1013 | } |
@@ -35,20 +35,20 @@ discard block |
||
| 35 | 35 | * @var array |
| 36 | 36 | */ |
| 37 | 37 | var $databaseFields = array( // all entries e.g. for groupdav |
| 38 | - 'ADR;WORK' => array('','adr_one_street2','adr_one_street','adr_one_locality','adr_one_region', |
|
| 39 | - 'adr_one_postalcode','adr_one_countryname'), |
|
| 40 | - 'ADR;HOME' => array('','adr_two_street2','adr_two_street','adr_two_locality','adr_two_region', |
|
| 41 | - 'adr_two_postalcode','adr_two_countryname'), |
|
| 38 | + 'ADR;WORK' => array('', 'adr_one_street2', 'adr_one_street', 'adr_one_locality', 'adr_one_region', |
|
| 39 | + 'adr_one_postalcode', 'adr_one_countryname'), |
|
| 40 | + 'ADR;HOME' => array('', 'adr_two_street2', 'adr_two_street', 'adr_two_locality', 'adr_two_region', |
|
| 41 | + 'adr_two_postalcode', 'adr_two_countryname'), |
|
| 42 | 42 | 'BDAY' => array('bday'), |
| 43 | 43 | 'CLASS' => array('private'), |
| 44 | 44 | 'CATEGORIES' => array('cat_id'), |
| 45 | 45 | 'EMAIL;WORK' => array('email'), |
| 46 | 46 | 'EMAIL;HOME' => array('email_home'), |
| 47 | - 'N' => array('n_family','n_given','n_middle', |
|
| 48 | - 'n_prefix','n_suffix'), |
|
| 47 | + 'N' => array('n_family', 'n_given', 'n_middle', |
|
| 48 | + 'n_prefix', 'n_suffix'), |
|
| 49 | 49 | 'FN' => array('n_fn'), |
| 50 | 50 | 'NOTE' => array('note'), |
| 51 | - 'ORG' => array('org_name','org_unit','room'), |
|
| 51 | + 'ORG' => array('org_name', 'org_unit', 'room'), |
|
| 52 | 52 | 'TEL;CELL;WORK' => array('tel_cell'), |
| 53 | 53 | 'TEL;CELL;HOME' => array('tel_cell_private'), |
| 54 | 54 | 'TEL;CAR' => array('tel_car'), |
@@ -93,7 +93,7 @@ discard block |
||
| 93 | 93 | * off = false; |
| 94 | 94 | */ |
| 95 | 95 | var $log = false; |
| 96 | - var $logfile="/tmp/log-vcard"; |
|
| 96 | + var $logfile = "/tmp/log-vcard"; |
|
| 97 | 97 | /** |
| 98 | 98 | * Constructor |
| 99 | 99 | * |
@@ -101,16 +101,16 @@ discard block |
||
| 101 | 101 | * @param string $_contentType the content type (version) |
| 102 | 102 | * @param array $_clientProperties client properties |
| 103 | 103 | */ |
| 104 | - function __construct($contact_app='addressbook', $_contentType='text/x-vcard', &$_clientProperties = array()) |
|
| 104 | + function __construct($contact_app = 'addressbook', $_contentType = 'text/x-vcard', &$_clientProperties = array()) |
|
| 105 | 105 | { |
| 106 | 106 | parent::__construct($contact_app); |
| 107 | 107 | if ($this->log) |
| 108 | 108 | { |
| 109 | 109 | $this->logfile = $GLOBALS['egw_info']['server']['temp_dir']."/log-vcard"; |
| 110 | - error_log(__FILE__.'['.__LINE__.'] '.__METHOD__."()\n" . |
|
| 111 | - array2string($_contentType)."\n",3,$this->logfile); |
|
| 110 | + error_log(__FILE__.'['.__LINE__.'] '.__METHOD__."()\n". |
|
| 111 | + array2string($_contentType)."\n", 3, $this->logfile); |
|
| 112 | 112 | } |
| 113 | - switch($_contentType) |
|
| 113 | + switch ($_contentType) |
|
| 114 | 114 | { |
| 115 | 115 | case 'text/vcard': |
| 116 | 116 | $this->version = '3.0'; |
@@ -132,7 +132,7 @@ discard block |
||
| 132 | 132 | * utf-8 for new format, iso-8859-1 for old format. |
| 133 | 133 | * @return int contact id |
| 134 | 134 | */ |
| 135 | - function addVCard($_vcard, $_abID=null, $merge=false, $charset=null) |
|
| 135 | + function addVCard($_vcard, $_abID = null, $merge = false, $charset = null) |
|
| 136 | 136 | { |
| 137 | 137 | if (!($contact = $this->vcardtoegw($_vcard, $charset))) return false; |
| 138 | 138 | |
@@ -158,7 +158,7 @@ discard block |
||
| 158 | 158 | } |
| 159 | 159 | if (is_array($contact['cat_id'])) |
| 160 | 160 | { |
| 161 | - $contact['cat_id'] = implode(',',$this->find_or_add_categories($contact['cat_id'], $_abID)); |
|
| 161 | + $contact['cat_id'] = implode(',', $this->find_or_add_categories($contact['cat_id'], $_abID)); |
|
| 162 | 162 | } |
| 163 | 163 | else |
| 164 | 164 | { |
@@ -174,17 +174,17 @@ discard block |
||
| 174 | 174 | { |
| 175 | 175 | if (is_array($contact['cat_id'])) |
| 176 | 176 | { |
| 177 | - $contact['cat_id'] = implode(',',$this->find_or_add_categories($contact['cat_id'], -1)); |
|
| 177 | + $contact['cat_id'] = implode(',', $this->find_or_add_categories($contact['cat_id'], -1)); |
|
| 178 | 178 | } |
| 179 | 179 | } |
| 180 | 180 | if (isset($contact['owner']) && $contact['owner'] != $this->user) |
| 181 | 181 | { |
| 182 | - $contact['private'] = 0; // foreign contacts are never private! |
|
| 182 | + $contact['private'] = 0; // foreign contacts are never private! |
|
| 183 | 183 | } |
| 184 | 184 | if ($this->log) |
| 185 | 185 | { |
| 186 | - error_log(__FILE__.'['.__LINE__.'] '.__METHOD__."()\n" . |
|
| 187 | - array2string($contact)."\n",3,$this->logfile); |
|
| 186 | + error_log(__FILE__.'['.__LINE__.'] '.__METHOD__."()\n". |
|
| 187 | + array2string($contact)."\n", 3, $this->logfile); |
|
| 188 | 188 | } |
| 189 | 189 | return $this->save($contact); |
| 190 | 190 | } |
@@ -197,10 +197,10 @@ discard block |
||
| 197 | 197 | * @param boolean $extra_charset_attribute =true GroupDAV/CalDAV dont need the charset attribute and some clients have problems with it |
| 198 | 198 | * @return string containing the vcard |
| 199 | 199 | */ |
| 200 | - function getVCard($_id,$_charset='UTF-8',$extra_charset_attribute=true) |
|
| 200 | + function getVCard($_id, $_charset = 'UTF-8', $extra_charset_attribute = true) |
|
| 201 | 201 | { |
| 202 | 202 | $vCard = new Horde_Icalendar_Vcard($this->version); |
| 203 | - $vCard->setAttribute('PRODID','-//EGroupware//NONSGML EGroupware Addressbook '.$GLOBALS['egw_info']['apps']['phpgwapi']['version'].'//'. |
|
| 203 | + $vCard->setAttribute('PRODID', '-//EGroupware//NONSGML EGroupware Addressbook '.$GLOBALS['egw_info']['apps']['phpgwapi']['version'].'//'. |
|
| 204 | 204 | strtoupper($GLOBALS['egw_info']['user']['preferences']['common']['lang'])); |
| 205 | 205 | |
| 206 | 206 | $sysCharSet = translation::charset(); |
@@ -234,7 +234,7 @@ discard block |
||
| 234 | 234 | if (!$oval && ($this->version == '3.0')) |
| 235 | 235 | { |
| 236 | 236 | // declare OPTION as TYPE=OPTION |
| 237 | - $options['TYPE'][] = $oname ; |
|
| 237 | + $options['TYPE'][] = $oname; |
|
| 238 | 238 | } |
| 239 | 239 | else |
| 240 | 240 | { |
@@ -254,9 +254,9 @@ discard block |
||
| 254 | 254 | $noTruncate = $this->clientProperties[$vcardField]['NoTruncate']; |
| 255 | 255 | if ($this->log && $size > 0) |
| 256 | 256 | { |
| 257 | - error_log(__FILE__.'['.__LINE__.'] '.__METHOD__ . |
|
| 258 | - "() $vcardField Size: $size, NoTruncate: " . |
|
| 259 | - ($noTruncate ? 'TRUE' : 'FALSE') . "\n",3,$this->logfile); |
|
| 257 | + error_log(__FILE__.'['.__LINE__.'] '.__METHOD__. |
|
| 258 | + "() $vcardField Size: $size, NoTruncate: ". |
|
| 259 | + ($noTruncate ? 'TRUE' : 'FALSE')."\n", 3, $this->logfile); |
|
| 260 | 260 | } |
| 261 | 261 | //Horde::logMessage("vCalAddressbook $vcardField Size: $size, NoTruncate: " . |
| 262 | 262 | // ($noTruncate ? 'TRUE' : 'FALSE'), __FILE__, __LINE__, PEAR_LOG_DEBUG); |
@@ -278,7 +278,7 @@ discard block |
||
| 278 | 278 | switch ($databaseField) |
| 279 | 279 | { |
| 280 | 280 | case 'modified': |
| 281 | - $value = gmdate("Y-m-d\TH:i:s\Z",egw_time::user2server($value)); |
|
| 281 | + $value = gmdate("Y-m-d\TH:i:s\Z", egw_time::user2server($value)); |
|
| 282 | 282 | $hasdata++; |
| 283 | 283 | break; |
| 284 | 284 | |
@@ -292,14 +292,14 @@ discard block |
||
| 292 | 292 | { |
| 293 | 293 | if ($size == 8) |
| 294 | 294 | { |
| 295 | - $value = str_replace('-','',$value); |
|
| 295 | + $value = str_replace('-', '', $value); |
|
| 296 | 296 | } |
| 297 | 297 | elseif (isset($options['TYPE']) && ( |
| 298 | 298 | $options['TYPE'] == 'BASIC')) |
| 299 | 299 | { |
| 300 | 300 | unset($options['TYPE']); |
| 301 | 301 | // used by old SyncML implementations |
| 302 | - $value = str_replace('-','',$value).'T000000Z'; |
|
| 302 | + $value = str_replace('-', '', $value).'T000000Z'; |
|
| 303 | 303 | } |
| 304 | 304 | $hasdata++; |
| 305 | 305 | } |
@@ -330,7 +330,7 @@ discard block |
||
| 330 | 330 | case 'cat_id': |
| 331 | 331 | if (!empty($value) && ($values = /*str_replace(',','\\,',*/$this->get_categories($value)))//) |
| 332 | 332 | { |
| 333 | - $values = (array) translation::convert($values, $sysCharSet, $_charset); |
|
| 333 | + $values = (array)translation::convert($values, $sysCharSet, $_charset); |
|
| 334 | 334 | $value = implode(',', $values); // just for the CHARSET recognition |
| 335 | 335 | if (($size > 0) && strlen($value) > $size) |
| 336 | 336 | { |
@@ -340,8 +340,8 @@ discard block |
||
| 340 | 340 | { |
| 341 | 341 | if ($this->log) |
| 342 | 342 | { |
| 343 | - error_log(__FILE__.'['.__LINE__.'] '.__METHOD__ . |
|
| 344 | - "() $vcardField omitted due to maximum size $size\n",3,$this->logfile); |
|
| 343 | + error_log(__FILE__.'['.__LINE__.'] '.__METHOD__. |
|
| 344 | + "() $vcardField omitted due to maximum size $size\n", 3, $this->logfile); |
|
| 345 | 345 | } |
| 346 | 346 | // Horde::logMessage("vCalAddressbook $vcardField omitted due to maximum size $size", |
| 347 | 347 | // __FILE__, __LINE__, PEAR_LOG_WARNING); |
@@ -390,14 +390,14 @@ discard block |
||
| 390 | 390 | // fall-through |
| 391 | 391 | |
| 392 | 392 | default: |
| 393 | - if (($size > 0) && strlen(implode(',', $values) . $value) > $size) |
|
| 393 | + if (($size > 0) && strlen(implode(',', $values).$value) > $size) |
|
| 394 | 394 | { |
| 395 | 395 | if ($noTruncate) |
| 396 | 396 | { |
| 397 | 397 | if ($this->log) |
| 398 | 398 | { |
| 399 | - error_log(__FILE__.'['.__LINE__.'] '.__METHOD__ . |
|
| 400 | - "() $vcardField omitted due to maximum size $size\n",3,$this->logfile); |
|
| 399 | + error_log(__FILE__.'['.__LINE__.'] '.__METHOD__. |
|
| 400 | + "() $vcardField omitted due to maximum size $size\n", 3, $this->logfile); |
|
| 401 | 401 | } |
| 402 | 402 | // Horde::logMessage("vCalAddressbook $vcardField omitted due to maximum size $size", |
| 403 | 403 | // __FILE__, __LINE__, PEAR_LOG_WARNING); |
@@ -416,14 +416,14 @@ discard block |
||
| 416 | 416 | } |
| 417 | 417 | if ($this->log) |
| 418 | 418 | { |
| 419 | - error_log(__FILE__.'['.__LINE__.'] '.__METHOD__ . |
|
| 420 | - "() $vcardField truncated to maximum size $size\n",3,$this->logfile); |
|
| 419 | + error_log(__FILE__.'['.__LINE__.'] '.__METHOD__. |
|
| 420 | + "() $vcardField truncated to maximum size $size\n", 3, $this->logfile); |
|
| 421 | 421 | } |
| 422 | 422 | //Horde::logMessage("vCalAddressbook $vcardField truncated to maximum size $size", |
| 423 | 423 | // __FILE__, __LINE__, PEAR_LOG_INFO); |
| 424 | 424 | } |
| 425 | 425 | if (!empty($value) // required field |
| 426 | - || in_array($vcardField,array('FN','ORG','N')) |
|
| 426 | + || in_array($vcardField, array('FN', 'ORG', 'N')) |
|
| 427 | 427 | || ($size >= 0 && !$noTruncate)) |
| 428 | 428 | { |
| 429 | 429 | $value = translation::convert(trim($value), $sysCharSet, $_charset); |
@@ -488,15 +488,15 @@ discard block |
||
| 488 | 488 | |
| 489 | 489 | if ($this->log) |
| 490 | 490 | { |
| 491 | - error_log(__FILE__.'['.__LINE__.'] '.__METHOD__ . |
|
| 492 | - "() '$this->productManufacturer','$this->productName'\n",3,$this->logfile); |
|
| 493 | - error_log(__FILE__.'['.__LINE__.'] '.__METHOD__."()\n" . |
|
| 494 | - array2string($result)."\n",3,$this->logfile); |
|
| 491 | + error_log(__FILE__.'['.__LINE__.'] '.__METHOD__. |
|
| 492 | + "() '$this->productManufacturer','$this->productName'\n", 3, $this->logfile); |
|
| 493 | + error_log(__FILE__.'['.__LINE__.'] '.__METHOD__."()\n". |
|
| 494 | + array2string($result)."\n", 3, $this->logfile); |
|
| 495 | 495 | } |
| 496 | 496 | return $result; |
| 497 | 497 | } |
| 498 | 498 | |
| 499 | - function search($_vcard, $contentID=null, $relax=false, $charset=null) |
|
| 499 | + function search($_vcard, $contentID = null, $relax = false, $charset = null) |
|
| 500 | 500 | { |
| 501 | 501 | $result = array(); |
| 502 | 502 | |
@@ -504,7 +504,7 @@ discard block |
||
| 504 | 504 | { |
| 505 | 505 | if (is_array($contact['category'])) |
| 506 | 506 | { |
| 507 | - $contact['category'] = implode(',',$this->find_or_add_categories($contact['category'], |
|
| 507 | + $contact['category'] = implode(',', $this->find_or_add_categories($contact['category'], |
|
| 508 | 508 | $contentID ? $contentID : -1)); |
| 509 | 509 | } |
| 510 | 510 | if ($contentID) |
@@ -516,7 +516,7 @@ discard block |
||
| 516 | 516 | return $result; |
| 517 | 517 | } |
| 518 | 518 | |
| 519 | - function setSupportedFields($_productManufacturer='file', $_productName='', $_supportedFields = null) |
|
| 519 | + function setSupportedFields($_productManufacturer = 'file', $_productName = '', $_supportedFields = null) |
|
| 520 | 520 | { |
| 521 | 521 | $this->productManufacturer = strtolower($_productManufacturer); |
| 522 | 522 | $this->productName = strtolower($_productName); |
@@ -538,18 +538,18 @@ discard block |
||
| 538 | 538 | * |
| 539 | 539 | * @return array|boolean The contact data or false on errors. |
| 540 | 540 | */ |
| 541 | - function vcardtoegw($_vcard, $charset=null) |
|
| 541 | + function vcardtoegw($_vcard, $charset = null) |
|
| 542 | 542 | { |
| 543 | 543 | // the horde class does the charset conversion. DO NOT CONVERT HERE. |
| 544 | 544 | // be as flexible as possible |
| 545 | 545 | |
| 546 | 546 | if ($this->log) |
| 547 | 547 | { |
| 548 | - error_log(__FILE__.'['.__LINE__.'] '.__METHOD__."()\n" . |
|
| 549 | - array2string($_vcard)."\n",3,$this->logfile); |
|
| 548 | + error_log(__FILE__.'['.__LINE__.'] '.__METHOD__."()\n". |
|
| 549 | + array2string($_vcard)."\n", 3, $this->logfile); |
|
| 550 | 550 | } |
| 551 | 551 | |
| 552 | - if(!($_vcard instanceof Horde_Icalendar)) |
|
| 552 | + if (!($_vcard instanceof Horde_Icalendar)) |
|
| 553 | 553 | { |
| 554 | 554 | $container = false; |
| 555 | 555 | $vCard = Horde_Icalendar::newComponent('vcard', $container); |
@@ -590,10 +590,10 @@ discard block |
||
| 590 | 590 | $pref_tel = false; |
| 591 | 591 | |
| 592 | 592 | $rowNames = array(); |
| 593 | - foreach($vcardValues as $key => $vcardRow) |
|
| 593 | + foreach ($vcardValues as $key => $vcardRow) |
|
| 594 | 594 | { |
| 595 | - $rowName = strtoupper($vcardRow['name']); |
|
| 596 | - if ($vcardRow['value'] == '' && implode('', $vcardRow['values']) == '') |
|
| 595 | + $rowName = strtoupper($vcardRow['name']); |
|
| 596 | + if ($vcardRow['value'] == '' && implode('', $vcardRow['values']) == '') |
|
| 597 | 597 | { |
| 598 | 598 | unset($vcardRow); |
| 599 | 599 | continue; |
@@ -668,7 +668,7 @@ discard block |
||
| 668 | 668 | switch ($pname) |
| 669 | 669 | { |
| 670 | 670 | case 'PREF': |
| 671 | - if (substr($rowName,0,3) == 'TEL' && !$pref_tel) |
|
| 671 | + if (substr($rowName, 0, 3) == 'TEL' && !$pref_tel) |
|
| 672 | 672 | { |
| 673 | 673 | $pref_tel = $key; |
| 674 | 674 | } |
@@ -681,7 +681,7 @@ discard block |
||
| 681 | 681 | if ($rowName != 'TEL') break; |
| 682 | 682 | case 'WORK': |
| 683 | 683 | case 'HOME': |
| 684 | - $rowName .= ';' . $pname; |
|
| 684 | + $rowName .= ';'.$pname; |
|
| 685 | 685 | break; |
| 686 | 686 | case 'CAR': |
| 687 | 687 | case 'X-CUSTOMLABEL-CAR': |
@@ -701,7 +701,7 @@ discard block |
||
| 701 | 701 | if (strpos($pname, 'X-FUNAMBOL-') === 0) |
| 702 | 702 | { |
| 703 | 703 | // Propriatary Funambol extension will be ignored |
| 704 | - $rowName .= ';' . $pname; |
|
| 704 | + $rowName .= ';'.$pname; |
|
| 705 | 705 | } |
| 706 | 706 | break; |
| 707 | 707 | } |
@@ -709,39 +709,39 @@ discard block |
||
| 709 | 709 | |
| 710 | 710 | if ($rowName == 'EMAIL') |
| 711 | 711 | { |
| 712 | - $rowName .= ';X-egw-Ref' . $email++; |
|
| 712 | + $rowName .= ';X-egw-Ref'.$email++; |
|
| 713 | 713 | } |
| 714 | 714 | |
| 715 | 715 | if (($rowName == 'TEL;CELL') || |
| 716 | 716 | ($rowName == 'TEL;CELL;VOICE')) |
| 717 | 717 | { |
| 718 | - $rowName = 'TEL;CELL;X-egw-Ref' . $cell++; |
|
| 718 | + $rowName = 'TEL;CELL;X-egw-Ref'.$cell++; |
|
| 719 | 719 | } |
| 720 | 720 | |
| 721 | 721 | if (($rowName == 'TEL') || |
| 722 | 722 | ($rowName == 'TEL;VOICE')) |
| 723 | 723 | { |
| 724 | - $rowName = 'TEL;X-egw-Ref' . $tel++; |
|
| 724 | + $rowName = 'TEL;X-egw-Ref'.$tel++; |
|
| 725 | 725 | } |
| 726 | 726 | |
| 727 | 727 | if ($rowName == 'URL') |
| 728 | 728 | { |
| 729 | - $rowName = 'URL;X-egw-Ref' . $url++; |
|
| 729 | + $rowName = 'URL;X-egw-Ref'.$url++; |
|
| 730 | 730 | } |
| 731 | 731 | |
| 732 | 732 | // current algorithm cant cope with multiple attributes of same name |
| 733 | 733 | // --> cumulate them in values, so they can be used later (works only for values, not for parameters!) |
| 734 | 734 | if (($k = array_search($rowName, $rowNames)) != false) |
| 735 | 735 | { |
| 736 | - $vcardValues[$k]['values'] = array_merge($vcardValues[$k]['values'],$vcardValues[$key]['values']); |
|
| 736 | + $vcardValues[$k]['values'] = array_merge($vcardValues[$k]['values'], $vcardValues[$key]['values']); |
|
| 737 | 737 | } |
| 738 | 738 | $rowNames[$key] = $rowName; |
| 739 | 739 | } |
| 740 | 740 | |
| 741 | 741 | if ($this->log) |
| 742 | 742 | { |
| 743 | - error_log(__FILE__.'['.__LINE__.'] '.__METHOD__."()\n" . |
|
| 744 | - array2string($rowNames)."\n",3,$this->logfile); |
|
| 743 | + error_log(__FILE__.'['.__LINE__.'] '.__METHOD__."()\n". |
|
| 744 | + array2string($rowNames)."\n", 3, $this->logfile); |
|
| 745 | 745 | } |
| 746 | 746 | |
| 747 | 747 | // All rowNames of the vCard are now concatenated with their qualifiers. |
@@ -911,15 +911,15 @@ discard block |
||
| 911 | 911 | |
| 912 | 912 | if ($this->log) |
| 913 | 913 | { |
| 914 | - error_log(__FILE__.'['.__LINE__.'] '.__METHOD__."()\n" . |
|
| 915 | - array2string($finalRowNames)."\n",3,$this->logfile); |
|
| 914 | + error_log(__FILE__.'['.__LINE__.'] '.__METHOD__."()\n". |
|
| 915 | + array2string($finalRowNames)."\n", 3, $this->logfile); |
|
| 916 | 916 | } |
| 917 | 917 | |
| 918 | 918 | $contact = array(); |
| 919 | 919 | // to be able to delete fields, we have to set all supported fields to at least null |
| 920 | - foreach($this->supportedFields as $fields) |
|
| 920 | + foreach ($this->supportedFields as $fields) |
|
| 921 | 921 | { |
| 922 | - foreach($fields as $field) |
|
| 922 | + foreach ($fields as $field) |
|
| 923 | 923 | { |
| 924 | 924 | if ($field != 'fileas_type') $contact[$field] = null; |
| 925 | 925 | } |
@@ -942,16 +942,16 @@ discard block |
||
| 942 | 942 | { |
| 943 | 943 | $contact['tel_prefer'] = $fieldName; |
| 944 | 944 | } |
| 945 | - switch($fieldName) |
|
| 945 | + switch ($fieldName) |
|
| 946 | 946 | { |
| 947 | 947 | case 'bday': |
| 948 | - $contact[$fieldName] = $vcardValues[$vcardKey]['value']['year'] . |
|
| 949 | - '-' . $vcardValues[$vcardKey]['value']['month'] . |
|
| 950 | - '-' . $vcardValues[$vcardKey]['value']['mday']; |
|
| 948 | + $contact[$fieldName] = $vcardValues[$vcardKey]['value']['year']. |
|
| 949 | + '-'.$vcardValues[$vcardKey]['value']['month']. |
|
| 950 | + '-'.$vcardValues[$vcardKey]['value']['mday']; |
|
| 951 | 951 | break; |
| 952 | 952 | |
| 953 | 953 | case 'private': |
| 954 | - $contact[$fieldName] = (int) ( strtoupper($value) == 'PRIVATE'); |
|
| 954 | + $contact[$fieldName] = (int)(strtoupper($value) == 'PRIVATE'); |
|
| 955 | 955 | break; |
| 956 | 956 | |
| 957 | 957 | case 'cat_id': |
@@ -960,7 +960,7 @@ discard block |
||
| 960 | 960 | |
| 961 | 961 | case 'jpegphoto': |
| 962 | 962 | $contact[$fieldName] = $vcardValues[$vcardKey]['value']; |
| 963 | - if(in_array($vcardValues[$vcardKey]['params']['ENCODING'],array('b','B','BASE64'))) |
|
| 963 | + if (in_array($vcardValues[$vcardKey]['params']['ENCODING'], array('b', 'B', 'BASE64'))) |
|
| 964 | 964 | { |
| 965 | 965 | $contact[$fieldName] = base64_decode($contact[$fieldName]); |
| 966 | 966 | } |
@@ -991,7 +991,7 @@ discard block |
||
| 991 | 991 | } |
| 992 | 992 | } |
| 993 | 993 | // add unsupported attributes as with '##' prefix |
| 994 | - elseif(($attribute = $vcardValues[$vcardKey]) && !in_array($attribute['name'],array('PRODID','REV'))) |
|
| 994 | + elseif (($attribute = $vcardValues[$vcardKey]) && !in_array($attribute['name'], array('PRODID', 'REV'))) |
|
| 995 | 995 | { |
| 996 | 996 | // for attributes with multiple values in multiple lines, merge the values |
| 997 | 997 | if (isset($contact['##'.$attribute['name']])) |
@@ -1010,10 +1010,10 @@ discard block |
||
| 1010 | 1010 | |
| 1011 | 1011 | if ($this->log) |
| 1012 | 1012 | { |
| 1013 | - error_log(__FILE__.'['.__LINE__.'] '.__METHOD__ . |
|
| 1014 | - "() '$this->productManufacturer','$this->productName'\n",3,$this->logfile); |
|
| 1015 | - error_log(__FILE__.'['.__LINE__.'] '.__METHOD__."()\n" . |
|
| 1016 | - array2string($contact)."\n",3,$this->logfile); |
|
| 1013 | + error_log(__FILE__.'['.__LINE__.'] '.__METHOD__. |
|
| 1014 | + "() '$this->productManufacturer','$this->productName'\n", 3, $this->logfile); |
|
| 1015 | + error_log(__FILE__.'['.__LINE__.'] '.__METHOD__."()\n". |
|
| 1016 | + array2string($contact)."\n", 3, $this->logfile); |
|
| 1017 | 1017 | } |
| 1018 | 1018 | return $contact; |
| 1019 | 1019 | } |
@@ -1024,14 +1024,14 @@ discard block |
||
| 1024 | 1024 | * @param array $ids contact-ids |
| 1025 | 1025 | * @param string $file filename or null for download |
| 1026 | 1026 | */ |
| 1027 | - function export($ids, $file=null) |
|
| 1027 | + function export($ids, $file = null) |
|
| 1028 | 1028 | { |
| 1029 | 1029 | if (!$file) |
| 1030 | 1030 | { |
| 1031 | - $filename = count($ids) == 1 ? egw_link::title('addressbook',$ids[0]): 'egw_addressbook_'.date('Y-m-d'); |
|
| 1032 | - html::content_header(($filename ? $filename : 'addressbook').'.vcf','text/x-vcard'); |
|
| 1031 | + $filename = count($ids) == 1 ? egw_link::title('addressbook', $ids[0]) : 'egw_addressbook_'.date('Y-m-d'); |
|
| 1032 | + html::content_header(($filename ? $filename : 'addressbook').'.vcf', 'text/x-vcard'); |
|
| 1033 | 1033 | } |
| 1034 | - if (!($fp = fopen($file ? $file : 'php://output','w'))) |
|
| 1034 | + if (!($fp = fopen($file ? $file : 'php://output', 'w'))) |
|
| 1035 | 1035 | { |
| 1036 | 1036 | return false; |
| 1037 | 1037 | } |
@@ -1045,7 +1045,7 @@ discard block |
||
| 1045 | 1045 | } |
| 1046 | 1046 | foreach ($ids as $id) |
| 1047 | 1047 | { |
| 1048 | - fwrite($fp,$this->getVCard($id, $charset)); |
|
| 1048 | + fwrite($fp, $this->getVCard($id, $charset)); |
|
| 1049 | 1049 | } |
| 1050 | 1050 | fclose($fp); |
| 1051 | 1051 | |
@@ -1063,22 +1063,22 @@ discard block |
||
| 1063 | 1063 | * @param string $version ='3.0' vcard version |
| 1064 | 1064 | * @return string containing the vcard |
| 1065 | 1065 | */ |
| 1066 | - function getGroupVCard(array $list,$version='3.0') |
|
| 1066 | + function getGroupVCard(array $list, $version = '3.0') |
|
| 1067 | 1067 | { |
| 1068 | 1068 | $vCard = new Horde_Icalendar_Vcard($version); |
| 1069 | - $vCard->setAttribute('PRODID','-//EGroupware//NONSGML EGroupware Addressbook '.$GLOBALS['egw_info']['apps']['phpgwapi']['version'].'//'. |
|
| 1069 | + $vCard->setAttribute('PRODID', '-//EGroupware//NONSGML EGroupware Addressbook '.$GLOBALS['egw_info']['apps']['phpgwapi']['version'].'//'. |
|
| 1070 | 1070 | strtoupper($GLOBALS['egw_info']['user']['preferences']['common']['lang'])); |
| 1071 | 1071 | |
| 1072 | - $vCard->setAttribute('N',$list['list_name'],array(),true,array($list['list_name'],'','','','')); |
|
| 1073 | - $vCard->setAttribute('FN',$list['list_name']); |
|
| 1072 | + $vCard->setAttribute('N', $list['list_name'], array(), true, array($list['list_name'], '', '', '', '')); |
|
| 1073 | + $vCard->setAttribute('FN', $list['list_name']); |
|
| 1074 | 1074 | |
| 1075 | - $vCard->setAttribute('X-ADDRESSBOOKSERVER-KIND','group'); |
|
| 1076 | - foreach($list['members'] as $uid) |
|
| 1075 | + $vCard->setAttribute('X-ADDRESSBOOKSERVER-KIND', 'group'); |
|
| 1076 | + foreach ($list['members'] as $uid) |
|
| 1077 | 1077 | { |
| 1078 | - $vCard->setAttribute('X-ADDRESSBOOKSERVER-MEMBER','urn:uuid:'.$uid); |
|
| 1078 | + $vCard->setAttribute('X-ADDRESSBOOKSERVER-MEMBER', 'urn:uuid:'.$uid); |
|
| 1079 | 1079 | } |
| 1080 | - $vCard->setAttribute('REV',egw_time::to($list['list_modified'],'Y-m-d\TH:i:s\Z')); |
|
| 1081 | - $vCard->setAttribute('UID',$list['list_uid']); |
|
| 1080 | + $vCard->setAttribute('REV', egw_time::to($list['list_modified'], 'Y-m-d\TH:i:s\Z')); |
|
| 1081 | + $vCard->setAttribute('UID', $list['list_uid']); |
|
| 1082 | 1082 | |
| 1083 | 1083 | return $vCard->exportvCalendar(); |
| 1084 | 1084 | } |
@@ -1885,12 +1885,12 @@ discard block |
||
| 1885 | 1885 | } |
| 1886 | 1886 | |
| 1887 | 1887 | /** |
| 1888 | - * Edit a contact |
|
| 1889 | - * |
|
| 1890 | - * @param array $content=null submitted content |
|
| 1891 | - * @param int $_GET['contact_id'] contact_id mainly for popup use |
|
| 1892 | - * @param bool $_GET['makecp'] true if you want to copy the contact given by $_GET['contact_id'] |
|
| 1893 | - */ |
|
| 1888 | + * Edit a contact |
|
| 1889 | + * |
|
| 1890 | + * @param array $content=null submitted content |
|
| 1891 | + * @param int $_GET['contact_id'] contact_id mainly for popup use |
|
| 1892 | + * @param bool $_GET['makecp'] true if you want to copy the contact given by $_GET['contact_id'] |
|
| 1893 | + */ |
|
| 1894 | 1894 | function edit($content=null) |
| 1895 | 1895 | { |
| 1896 | 1896 | if (is_array($content)) |
@@ -3069,8 +3069,8 @@ discard block |
||
| 3069 | 3069 | } |
| 3070 | 3070 | |
| 3071 | 3071 | /** |
| 3072 | - * Set up history log widget |
|
| 3073 | - */ |
|
| 3072 | + * Set up history log widget |
|
| 3073 | + */ |
|
| 3074 | 3074 | protected function setup_history(&$content, &$sel_options) |
| 3075 | 3075 | { |
| 3076 | 3076 | if ($this->contact_repository == 'ldap' || !$content['id'] || |
@@ -112,9 +112,8 @@ discard block |
||
| 112 | 112 | /** |
| 113 | 113 | * List contacts of an addressbook |
| 114 | 114 | * |
| 115 | - * @param array $content=null submitted content |
|
| 116 | - * @param string $msg=null message to show |
|
| 117 | - * @param boolean $do_email=false do an email-selection popup or the regular index-page |
|
| 115 | + * @param array $content submitted content |
|
| 116 | + * @param boolean $do_email do an email-selection popup or the regular index-page |
|
| 118 | 117 | */ |
| 119 | 118 | function index($content=null,$msg=null,$do_email=false) |
| 120 | 119 | { |
@@ -353,8 +352,8 @@ discard block |
||
| 353 | 352 | /** |
| 354 | 353 | * Get actions / context menu items |
| 355 | 354 | * |
| 356 | - * @param string $tid_filter=null |
|
| 357 | - * @param string $org_view=null |
|
| 355 | + * @param string $tid_filter |
|
| 356 | + * @param string $org_view |
|
| 358 | 357 | * @return array see nextmatch_widget::get_actions() |
| 359 | 358 | */ |
| 360 | 359 | public function get_actions($tid_filter=null, $org_view=null) |
@@ -762,8 +761,7 @@ discard block |
||
| 762 | 761 | /** |
| 763 | 762 | * Email address-selection popup |
| 764 | 763 | * |
| 765 | - * @param array $content=null submitted content |
|
| 766 | - * @param string $msg=null message to show |
|
| 764 | + * @param array $content submitted content |
|
| 767 | 765 | */ |
| 768 | 766 | function emailpopup($content=null,$msg=null) |
| 769 | 767 | { |
@@ -952,7 +950,7 @@ discard block |
||
| 952 | 950 | * @param int &$failed number of failed actions (not enought permissions) |
| 953 | 951 | * @param string &$action_msg translated verb for the actions, to be used in a message like %1 contacts 'deleted' |
| 954 | 952 | * @param string/array $session_name 'index' or 'email', or array with session-data depending if we are in the main list or the popup |
| 955 | - * @return boolean true if all actions succeded, false otherwise |
|
| 953 | + * @return null|boolean true if all actions succeded, false otherwise |
|
| 956 | 954 | */ |
| 957 | 955 | function action($action,$checked,$use_all,&$success,&$failed,&$action_msg,$session_name,&$msg, $checkboxes = NULL) |
| 958 | 956 | { |
@@ -1303,7 +1301,7 @@ discard block |
||
| 1303 | 1301 | * @param array &$query |
| 1304 | 1302 | * @param array &$rows returned rows/cups |
| 1305 | 1303 | * @param array &$readonlys eg. to disable buttons based on acl |
| 1306 | - * @param boolean $id_only=false if true only return (via $rows) an array of contact-ids, dont save state to session |
|
| 1304 | + * @param boolean $id_only if true only return (via $rows) an array of contact-ids, dont save state to session |
|
| 1307 | 1305 | * @return int total number of contacts matching the selection |
| 1308 | 1306 | */ |
| 1309 | 1307 | function get_rows(&$query,&$rows,&$readonlys,$id_only=false) |
@@ -1798,9 +1796,7 @@ discard block |
||
| 1798 | 1796 | /** |
| 1799 | 1797 | * Edit a contact |
| 1800 | 1798 | * |
| 1801 | - * @param array $content=null submitted content |
|
| 1802 | - * @param int $_GET['contact_id'] contact_id mainly for popup use |
|
| 1803 | - * @param bool $_GET['makecp'] true if you want to copy the contact given by $_GET['contact_id'] |
|
| 1799 | + * @param array $content submitted content |
|
| 1804 | 1800 | */ |
| 1805 | 1801 | function edit($content=null) |
| 1806 | 1802 | { |
@@ -2375,7 +2371,7 @@ discard block |
||
| 2375 | 2371 | * |
| 2376 | 2372 | * @param array $values contact values from form |
| 2377 | 2373 | * @param string $name name of changed value, eg. "email" |
| 2378 | - * @param int $own_id=0 own contact id, to not check against it |
|
| 2374 | + * @param int $own_id own contact id, to not check against it |
|
| 2379 | 2375 | * @return array with keys 'msg' => "EMail address exists, do you want to open contact?" (or null if not existing) |
| 2380 | 2376 | * 'data' => array of id => "full name (addressbook)" pairs |
| 2381 | 2377 | * 'fileas_options' |
@@ -71,7 +71,7 @@ discard block |
||
| 71 | 71 | * |
| 72 | 72 | * @param string $contact_app |
| 73 | 73 | */ |
| 74 | - function __construct($contact_app='addressbook') |
|
| 74 | + function __construct($contact_app = 'addressbook') |
|
| 75 | 75 | { |
| 76 | 76 | parent::__construct($contact_app); |
| 77 | 77 | |
@@ -84,23 +84,23 @@ discard block |
||
| 84 | 84 | ); |
| 85 | 85 | |
| 86 | 86 | // make sure the hook for export_limit is registered |
| 87 | - if (!$GLOBALS['egw']->hooks->hook_exists('export_limit','addressbook')) $GLOBALS['egw']->hooks->register_single_app_hook('addressbook','export_limit'); |
|
| 87 | + if (!$GLOBALS['egw']->hooks->hook_exists('export_limit', 'addressbook')) $GLOBALS['egw']->hooks->register_single_app_hook('addressbook', 'export_limit'); |
|
| 88 | 88 | |
| 89 | - $this->config =& $GLOBALS['egw_info']['server']; |
|
| 89 | + $this->config = & $GLOBALS['egw_info']['server']; |
|
| 90 | 90 | |
| 91 | 91 | // check if a contact specific export limit is set, if yes use it also for etemplate's csv export |
| 92 | - $this->config['export_limit'] = $this->config['contact_export_limit'] = bo_merge::getExportLimit($app='addressbook'); |
|
| 92 | + $this->config['export_limit'] = $this->config['contact_export_limit'] = bo_merge::getExportLimit($app = 'addressbook'); |
|
| 93 | 93 | |
| 94 | 94 | if ($this->config['copy_fields'] && ($fields = is_array($this->config['copy_fields']) ? |
| 95 | 95 | $this->config['copy_fields'] : unserialize($this->config['copy_fields']))) |
| 96 | 96 | { |
| 97 | 97 | // Set country code if country name is selected |
| 98 | - $supported_fields = $this->get_fields('supported',null,0); |
|
| 99 | - if(in_array('adr_one_countrycode', $supported_fields) && in_array('adr_one_countryname',$fields)) |
|
| 98 | + $supported_fields = $this->get_fields('supported', null, 0); |
|
| 99 | + if (in_array('adr_one_countrycode', $supported_fields) && in_array('adr_one_countryname', $fields)) |
|
| 100 | 100 | { |
| 101 | 101 | $fields[] = 'adr_one_countrycode'; |
| 102 | 102 | } |
| 103 | - if(in_array('adr_two_countrycode', $supported_fields) && in_array('adr_two_countryname',$fields)) |
|
| 103 | + if (in_array('adr_two_countrycode', $supported_fields) && in_array('adr_two_countryname', $fields)) |
|
| 104 | 104 | { |
| 105 | 105 | $fields[] = 'adr_two_countrycode'; |
| 106 | 106 | } |
@@ -116,7 +116,7 @@ discard block |
||
| 116 | 116 | * @param string $msg=null message to show |
| 117 | 117 | * @param boolean $do_email=false do an email-selection popup or the regular index-page |
| 118 | 118 | */ |
| 119 | - function index($content=null,$msg=null,$do_email=false) |
|
| 119 | + function index($content = null, $msg = null, $do_email = false) |
|
| 120 | 120 | { |
| 121 | 121 | //echo "<p>uicontacts::index(".print_r($content,true).",'$msg')</p>\n"; |
| 122 | 122 | if (($re_submit = is_array($content))) |
@@ -147,16 +147,16 @@ discard block |
||
| 147 | 147 | } |
| 148 | 148 | else |
| 149 | 149 | { |
| 150 | - if ($this->action($content['nm']['action'],$content['nm']['selected'],$content['nm']['select_all'], |
|
| 151 | - $success,$failed,$action_msg,$content['do_email'] ? 'email' : 'index',$msg,$content['nm']['checkboxes'])) |
|
| 150 | + if ($this->action($content['nm']['action'], $content['nm']['selected'], $content['nm']['select_all'], |
|
| 151 | + $success, $failed, $action_msg, $content['do_email'] ? 'email' : 'index', $msg, $content['nm']['checkboxes'])) |
|
| 152 | 152 | { |
| 153 | - $msg .= lang('%1 contact(s) %2',$success,$action_msg); |
|
| 153 | + $msg .= lang('%1 contact(s) %2', $success, $action_msg); |
|
| 154 | 154 | egw_framework::message($msg); |
| 155 | 155 | } |
| 156 | - elseif(is_null($msg)) |
|
| 156 | + elseif (is_null($msg)) |
|
| 157 | 157 | { |
| 158 | - $msg .= lang('%1 contact(s) %2, %3 failed because of insufficent rights !!!',$success,$action_msg,$failed); |
|
| 159 | - egw_framework::message($msg,'error'); |
|
| 158 | + $msg .= lang('%1 contact(s) %2, %3 failed because of insufficent rights !!!', $success, $action_msg, $failed); |
|
| 159 | + egw_framework::message($msg, 'error'); |
|
| 160 | 160 | } |
| 161 | 161 | $msg = ''; |
| 162 | 162 | } |
@@ -176,9 +176,9 @@ discard block |
||
| 176 | 176 | } |
| 177 | 177 | $typeselection = $content['nm']['col_filter']['tid']; |
| 178 | 178 | } |
| 179 | - elseif($_GET['add_list']) |
|
| 179 | + elseif ($_GET['add_list']) |
|
| 180 | 180 | { |
| 181 | - $list = $this->add_list($_GET['add_list'],$_GET['owner']?$_GET['owner']:$this->user); |
|
| 181 | + $list = $this->add_list($_GET['add_list'], $_GET['owner'] ? $_GET['owner'] : $this->user); |
|
| 182 | 182 | if ($list === true) |
| 183 | 183 | { |
| 184 | 184 | $msg = lang('List already exists!'); |
@@ -197,31 +197,31 @@ discard block |
||
| 197 | 197 | ); |
| 198 | 198 | $to = $content['nm']['to']; |
| 199 | 199 | $content = array(); |
| 200 | - if($msg || $_GET['msg']) |
|
| 200 | + if ($msg || $_GET['msg']) |
|
| 201 | 201 | { |
| 202 | 202 | egw_framework::message($msg ? $msg : $_GET['msg']); |
| 203 | 203 | } |
| 204 | 204 | |
| 205 | - $content['nm'] = egw_session::appsession($do_email ? 'email' : 'index','addressbook'); |
|
| 205 | + $content['nm'] = egw_session::appsession($do_email ? 'email' : 'index', 'addressbook'); |
|
| 206 | 206 | if (!is_array($content['nm'])) |
| 207 | 207 | { |
| 208 | 208 | $content['nm'] = array( |
| 209 | - 'get_rows' => 'addressbook.addressbook_ui.get_rows', // I method/callback to request the data for the rows eg. 'notes.bo.get_rows' |
|
| 210 | - 'bottom_too' => false, // I show the nextmatch-line (arrows, filters, search, ...) again after the rows |
|
| 211 | - 'never_hide' => True, // I never hide the nextmatch-line if less then maxmatch entrie |
|
| 212 | - 'start' => 0, // IO position in list |
|
| 213 | - 'cat_id' => '', // IO category, if not 'no_cat' => True |
|
| 214 | - 'search' => '', // IO search pattern |
|
| 215 | - 'order' => 'n_family', // IO name of the column to sort after (optional for the sortheaders) |
|
| 216 | - 'sort' => 'ASC', // IO direction of the sort: 'ASC' or 'DESC' |
|
| 217 | - 'col_filter' => array(), // IO array of column-name value pairs (optional for the filterheaders) |
|
| 218 | - 'filter_label' => lang('Addressbook'), // I label for filter (optional) |
|
| 219 | - 'filter' => '', // =All // IO filter, if not 'no_filter' => True |
|
| 220 | - 'filter_no_lang' => True, // I set no_lang for filter (=dont translate the options) |
|
| 221 | - 'no_filter2' => True, // I disable the 2. filter (params are the same as for filter) |
|
| 222 | - 'filter2_label' => lang('Distribution lists'), // IO filter2, if not 'no_filter2' => True |
|
| 223 | - 'filter2' => '', // IO filter2, if not 'no_filter2' => True |
|
| 224 | - 'filter2_no_lang'=> True, // I set no_lang for filter2 (=dont translate the options) |
|
| 209 | + 'get_rows' => 'addressbook.addressbook_ui.get_rows', // I method/callback to request the data for the rows eg. 'notes.bo.get_rows' |
|
| 210 | + 'bottom_too' => false, // I show the nextmatch-line (arrows, filters, search, ...) again after the rows |
|
| 211 | + 'never_hide' => True, // I never hide the nextmatch-line if less then maxmatch entrie |
|
| 212 | + 'start' => 0, // IO position in list |
|
| 213 | + 'cat_id' => '', // IO category, if not 'no_cat' => True |
|
| 214 | + 'search' => '', // IO search pattern |
|
| 215 | + 'order' => 'n_family', // IO name of the column to sort after (optional for the sortheaders) |
|
| 216 | + 'sort' => 'ASC', // IO direction of the sort: 'ASC' or 'DESC' |
|
| 217 | + 'col_filter' => array(), // IO array of column-name value pairs (optional for the filterheaders) |
|
| 218 | + 'filter_label' => lang('Addressbook'), // I label for filter (optional) |
|
| 219 | + 'filter' => '', // =All // IO filter, if not 'no_filter' => True |
|
| 220 | + 'filter_no_lang' => True, // I set no_lang for filter (=dont translate the options) |
|
| 221 | + 'no_filter2' => True, // I disable the 2. filter (params are the same as for filter) |
|
| 222 | + 'filter2_label' => lang('Distribution lists'), // IO filter2, if not 'no_filter2' => True |
|
| 223 | + 'filter2' => '', // IO filter2, if not 'no_filter2' => True |
|
| 224 | + 'filter2_no_lang'=> True, // I set no_lang for filter2 (=dont translate the options) |
|
| 225 | 225 | 'lettersearch' => true, |
| 226 | 226 | 'do_email' => $do_email ? 1 : 0, |
| 227 | 227 | // using a positiv list now, as we constantly adding new columns in addressbook, but not removing them from default |
@@ -231,7 +231,7 @@ discard block |
||
| 231 | 231 | /* old negative list |
| 232 | 232 | 'default_cols' => '!cat_id,contact_created_contact_modified,distribution_list,contact_id,owner,room',*/ |
| 233 | 233 | 'filter2_onchange' => "app.addressbook.filter2_onchange();", |
| 234 | - 'manual' => $do_email ? ' ' : false, // space for the manual icon |
|
| 234 | + 'manual' => $do_email ? ' ' : false, // space for the manual icon |
|
| 235 | 235 | //'actions' => $this->get_actions(), // set on each request, as it depends on some filters |
| 236 | 236 | 'row_id' => 'id', |
| 237 | 237 | 'row_modified' => 'modified', |
@@ -246,13 +246,13 @@ discard block |
||
| 246 | 246 | // use the state of the last session stored in the user prefs |
| 247 | 247 | if (($state = @unserialize($this->prefs[$do_email ? 'email_state' : 'index_state']))) |
| 248 | 248 | { |
| 249 | - $content['nm'] = array_merge($content['nm'],$state); |
|
| 249 | + $content['nm'] = array_merge($content['nm'], $state); |
|
| 250 | 250 | } |
| 251 | 251 | } |
| 252 | 252 | $sel_options['cat_id'] = array('' => lang('all'), '0' => lang('None')); |
| 253 | 253 | |
| 254 | 254 | // Edit and delete list actions depends on permissions |
| 255 | - if($this->get_lists(EGW_ACL_EDIT)) |
|
| 255 | + if ($this->get_lists(EGW_ACL_EDIT)) |
|
| 256 | 256 | { |
| 257 | 257 | $content['nm']['placeholder_actions'][] = 'rename_list'; |
| 258 | 258 | $content['nm']['placeholder_actions'][] = 'delete_list'; |
@@ -265,11 +265,11 @@ discard block |
||
| 265 | 265 | if (isset($typeselection)) $content['nm']['col_filter']['tid'] = $typeselection; |
| 266 | 266 | // save the tid for use in creating new addressbook entrys via UI. Current tid is to be used as type of new entrys |
| 267 | 267 | //error_log(__METHOD__.__LINE__.' '.$content['nm']['col_filter']['tid']); |
| 268 | - egw_cache::setSession('addressbook','active_tid',$content['nm']['col_filter']['tid']); |
|
| 268 | + egw_cache::setSession('addressbook', 'active_tid', $content['nm']['col_filter']['tid']); |
|
| 269 | 269 | if ($this->lists_available()) |
| 270 | 270 | { |
| 271 | - $sel_options['filter2'] = $this->get_lists(EGW_ACL_READ,array('' => lang('none'))); |
|
| 272 | - $sel_options['filter2']['add'] = lang('Add a new list').'...'; // put it at the end |
|
| 271 | + $sel_options['filter2'] = $this->get_lists(EGW_ACL_READ, array('' => lang('none'))); |
|
| 272 | + $sel_options['filter2']['add'] = lang('Add a new list').'...'; // put it at the end |
|
| 273 | 273 | } |
| 274 | 274 | if ($do_email) |
| 275 | 275 | { |
@@ -287,11 +287,11 @@ discard block |
||
| 287 | 287 | $content['nm']['header_left'] = 'addressbook.email.left'; |
| 288 | 288 | } |
| 289 | 289 | // Organisation stuff is not (yet) availible with ldap |
| 290 | - elseif($GLOBALS['egw_info']['server']['contact_repository'] != 'ldap') |
|
| 290 | + elseif ($GLOBALS['egw_info']['server']['contact_repository'] != 'ldap') |
|
| 291 | 291 | { |
| 292 | 292 | $content['nm']['header_left'] = 'addressbook.index.left'; |
| 293 | 293 | } |
| 294 | - $sel_options['filter'] = $sel_options['owner'] = $this->get_addressbooks(EGW_ACL_READ,lang('All')); |
|
| 294 | + $sel_options['filter'] = $sel_options['owner'] = $this->get_addressbooks(EGW_ACL_READ, lang('All')); |
|
| 295 | 295 | $sel_options['to'] = array( |
| 296 | 296 | 'to' => 'To', |
| 297 | 297 | 'cc' => 'Cc', |
@@ -300,13 +300,13 @@ discard block |
||
| 300 | 300 | $sel_options['adr_one_countrycode']['-custom-'] = lang('No country selected'); |
| 301 | 301 | |
| 302 | 302 | // if there is any export limit set, pass it on to the nextmatch, to be evaluated by the export |
| 303 | - if (isset($this->config['contact_export_limit']) && (int)$this->config['contact_export_limit']) $content['nm']['export_limit']=$this->config['contact_export_limit']; |
|
| 303 | + if (isset($this->config['contact_export_limit']) && (int)$this->config['contact_export_limit']) $content['nm']['export_limit'] = $this->config['contact_export_limit']; |
|
| 304 | 304 | |
| 305 | 305 | // dont show tid-selection if we have only one content_type |
| 306 | 306 | // be a bit more sophisticated about it |
| 307 | 307 | $content['nm']['header_right'] = 'addressbook.index.right_add'; |
| 308 | 308 | $availabletypes = array_keys($this->content_types); |
| 309 | - if ($content['nm']['col_filter']['tid'] && !in_array($content['nm']['col_filter']['tid'],$availabletypes)) |
|
| 309 | + if ($content['nm']['col_filter']['tid'] && !in_array($content['nm']['col_filter']['tid'], $availabletypes)) |
|
| 310 | 310 | { |
| 311 | 311 | //_debug_array(array('Typefilter:'=> $content['nm']['col_filter']['tid'],'Available Types:'=>$availabletypes,'action:'=>'remove invalid filter')); |
| 312 | 312 | unset($content['nm']['col_filter']['tid']); |
@@ -314,7 +314,7 @@ discard block |
||
| 314 | 314 | if (!isset($content['nm']['col_filter']['tid'])) $content['nm']['col_filter']['tid'] = $availabletypes[0]; |
| 315 | 315 | if (count($this->content_types) > 1) |
| 316 | 316 | { |
| 317 | - foreach($this->content_types as $tid => $data) |
|
| 317 | + foreach ($this->content_types as $tid => $data) |
|
| 318 | 318 | { |
| 319 | 319 | $sel_options['tid'][$tid] = $data['name']; |
| 320 | 320 | } |
@@ -332,22 +332,22 @@ discard block |
||
| 332 | 332 | |
| 333 | 333 | $content['nm']['actions'] = $this->get_actions($content['nm']['col_filter']['tid'], $content['nm']['org_view']); |
| 334 | 334 | |
| 335 | - if (!isset($sel_options['org_view'][(string) $content['nm']['org_view']])) |
|
| 335 | + if (!isset($sel_options['org_view'][(string)$content['nm']['org_view']])) |
|
| 336 | 336 | { |
| 337 | 337 | $sel_options['org_view'] += $this->_get_org_name((string)$content['nm']['org_view']); |
| 338 | 338 | } |
| 339 | 339 | // unset the filters regarding organisations, when there is no organisation selected |
| 340 | - if (empty($sel_options['org_view'][(string) $content['nm']['org_view']]) || stripos($org_view,":") === false ) |
|
| 340 | + if (empty($sel_options['org_view'][(string)$content['nm']['org_view']]) || stripos($org_view, ":") === false) |
|
| 341 | 341 | { |
| 342 | 342 | unset($content['nm']['col_filter']['org_name']); |
| 343 | 343 | unset($content['nm']['col_filter']['org_unit']); |
| 344 | 344 | unset($content['nm']['col_filter']['adr_one_locality']); |
| 345 | 345 | } |
| 346 | - $content['nm']['org_view_label'] = $sel_options['org_view'][(string) $content['nm']['org_view']]; |
|
| 346 | + $content['nm']['org_view_label'] = $sel_options['org_view'][(string)$content['nm']['org_view']]; |
|
| 347 | 347 | |
| 348 | 348 | $this->tmpl->read($do_email ? 'addressbook.email' : 'addressbook.index'); |
| 349 | 349 | return $this->tmpl->exec($do_email ? 'addressbook.addressbook_ui.emailpopup' : 'addressbook.addressbook_ui.index', |
| 350 | - $content,$sel_options,$readonlys,$preserv,$do_email ? 2 : 0); |
|
| 350 | + $content, $sel_options, $readonlys, $preserv, $do_email ? 2 : 0); |
|
| 351 | 351 | } |
| 352 | 352 | |
| 353 | 353 | /** |
@@ -357,17 +357,17 @@ discard block |
||
| 357 | 357 | * @param string $org_view=null |
| 358 | 358 | * @return array see nextmatch_widget::get_actions() |
| 359 | 359 | */ |
| 360 | - public function get_actions($tid_filter=null, $org_view=null) |
|
| 360 | + public function get_actions($tid_filter = null, $org_view = null) |
|
| 361 | 361 | { |
| 362 | 362 | // we have no org view (view of one org has context menu like regular "add contacts" view, as it shows contacts |
| 363 | - if (!isset($this->org_views[(string) $org_view])) |
|
| 363 | + if (!isset($this->org_views[(string)$org_view])) |
|
| 364 | 364 | { |
| 365 | 365 | $actions = array( |
| 366 | 366 | 'view' => array( |
| 367 | 367 | 'caption' => 'CRM-View', |
| 368 | 368 | 'default' => $GLOBALS['egw_info']['user']['preferences']['addressbook']['crm_list'] != '~edit~', |
| 369 | 369 | 'allowOnMultiple' => false, |
| 370 | - 'group' => $group=1, |
|
| 370 | + 'group' => $group = 1, |
|
| 371 | 371 | 'onExecute' => 'javaScript:app.addressbook.view', |
| 372 | 372 | // Children added below |
| 373 | 373 | 'children' => array() |
@@ -402,14 +402,14 @@ discard block |
||
| 402 | 402 | ); |
| 403 | 403 | // CRM view options |
| 404 | 404 | $crm_count = 0; |
| 405 | - $crm_apps = array('infolog','tracker'); |
|
| 406 | - foreach($crm_apps as $app) |
|
| 405 | + $crm_apps = array('infolog', 'tracker'); |
|
| 406 | + foreach ($crm_apps as $app) |
|
| 407 | 407 | { |
| 408 | 408 | if ($GLOBALS['egw_info']['user']['apps'][$app]) $crm_count++; |
| 409 | 409 | } |
| 410 | - if($crm_count > 1) |
|
| 410 | + if ($crm_count > 1) |
|
| 411 | 411 | { |
| 412 | - foreach($crm_apps as $app) |
|
| 412 | + foreach ($crm_apps as $app) |
|
| 413 | 413 | { |
| 414 | 414 | $actions['view']['children']["view-$app"] = array( |
| 415 | 415 | 'caption' => $app, |
@@ -425,7 +425,7 @@ discard block |
||
| 425 | 425 | 'caption' => 'View', |
| 426 | 426 | 'default' => true, |
| 427 | 427 | 'allowOnMultiple' => false, |
| 428 | - 'group' => $group=1, |
|
| 428 | + 'group' => $group = 1, |
|
| 429 | 429 | ), |
| 430 | 430 | 'add' => array( |
| 431 | 431 | 'caption' => 'Add', |
@@ -437,23 +437,23 @@ discard block |
||
| 437 | 437 | ); |
| 438 | 438 | } |
| 439 | 439 | |
| 440 | - ++$group; // other AB related stuff group: lists, AB's, categories |
|
| 440 | + ++$group; // other AB related stuff group: lists, AB's, categories |
|
| 441 | 441 | // categories submenu |
| 442 | 442 | $actions['cat'] = array( |
| 443 | 443 | 'caption' => 'Categories', |
| 444 | 444 | 'group' => $group, |
| 445 | 445 | 'children' => array( |
| 446 | 446 | 'cat_add' => nextmatch_widget::category_action( |
| 447 | - 'addressbook',$group,'Add category', 'cat_add_', |
|
| 448 | - true, 0,nextmatch_widget::DEFAULT_MAX_MENU_LENGTH,false |
|
| 449 | - )+array( |
|
| 447 | + 'addressbook', $group, 'Add category', 'cat_add_', |
|
| 448 | + true, 0, nextmatch_widget::DEFAULT_MAX_MENU_LENGTH, false |
|
| 449 | + ) + array( |
|
| 450 | 450 | 'icon' => 'foldertree_nolines_plus', |
| 451 | 451 | 'disableClass' => 'rowNoEdit', |
| 452 | 452 | ), |
| 453 | 453 | 'cat_del' => nextmatch_widget::category_action( |
| 454 | - 'addressbook',$group,'Delete category', 'cat_del_', |
|
| 455 | - true, 0,nextmatch_widget::DEFAULT_MAX_MENU_LENGTH,false |
|
| 456 | - )+array( |
|
| 454 | + 'addressbook', $group, 'Delete category', 'cat_del_', |
|
| 455 | + true, 0, nextmatch_widget::DEFAULT_MAX_MENU_LENGTH, false |
|
| 456 | + ) + array( |
|
| 457 | 457 | 'icon' => 'foldertree_nolines_minus', |
| 458 | 458 | 'disableClass' => 'rowNoEdit', |
| 459 | 459 | ), |
@@ -480,7 +480,7 @@ discard block |
||
| 480 | 480 | 'children' => $add_lists, |
| 481 | 481 | 'prefix' => 'to_list_', |
| 482 | 482 | 'icon' => 'foldertree_nolines_plus', |
| 483 | - 'enabled' => ($add_lists?true:false), // if there are editable lists, allow to add a contact to one of them, |
|
| 483 | + 'enabled' => ($add_lists ? true : false), // if there are editable lists, allow to add a contact to one of them, |
|
| 484 | 484 | //'disableClass' => 'rowNoEdit', // wether you are allowed to edit the contact or not, as you alter a list, not the contact |
| 485 | 485 | ), |
| 486 | 486 | 'remove_from_list' => array( |
@@ -489,14 +489,14 @@ discard block |
||
| 489 | 489 | 'icon' => 'foldertree_nolines_minus', |
| 490 | 490 | 'enabled' => 'javaScript:app.addressbook.nm_compare_field', |
| 491 | 491 | 'fieldId' => 'exec[nm][filter2]', |
| 492 | - 'fieldValue' => '!', // enable if list != '' |
|
| 492 | + 'fieldValue' => '!', // enable if list != '' |
|
| 493 | 493 | ), |
| 494 | 494 | 'rename_list' => array( |
| 495 | 495 | 'caption' => 'Rename selected distribution list', |
| 496 | 496 | 'icon' => 'edit', |
| 497 | 497 | 'enabled' => 'javaScript:app.addressbook.nm_compare_field', |
| 498 | 498 | 'fieldId' => 'exec[nm][filter2]', |
| 499 | - 'fieldValue' => '!', // enable if list != '' |
|
| 499 | + 'fieldValue' => '!', // enable if list != '' |
|
| 500 | 500 | 'onExecute' => 'javaScript:app.addressbook.rename_list' |
| 501 | 501 | ), |
| 502 | 502 | 'delete_list' => array( |
@@ -505,10 +505,10 @@ discard block |
||
| 505 | 505 | 'icon' => 'delete', |
| 506 | 506 | 'enabled' => 'javaScript:app.addressbook.nm_compare_field', |
| 507 | 507 | 'fieldId' => 'exec[nm][filter2]', |
| 508 | - 'fieldValue' => '!', // enable if list != '' |
|
| 508 | + 'fieldValue' => '!', // enable if list != '' |
|
| 509 | 509 | ), |
| 510 | 510 | ); |
| 511 | - if(is_subclass_of('etemplate', 'etemplate_new')) |
|
| 511 | + if (is_subclass_of('etemplate', 'etemplate_new')) |
|
| 512 | 512 | { |
| 513 | 513 | $actions['lists']['children']['remove_from_list']['fieldId'] = 'filter2'; |
| 514 | 514 | $actions['lists']['children']['rename_list']['fieldId'] = 'filter2'; |
@@ -518,17 +518,17 @@ discard block |
||
| 518 | 518 | // move to AB |
| 519 | 519 | if (($move2addressbooks = $this->get_addressbooks(EGW_ACL_ADD))) // do we have addressbooks, we should |
| 520 | 520 | { |
| 521 | - unset($move2addressbooks[0]); // do not offer action to move contact to an account, as we dont support that currrently |
|
| 522 | - foreach($move2addressbooks as $owner => $label) |
|
| 521 | + unset($move2addressbooks[0]); // do not offer action to move contact to an account, as we dont support that currrently |
|
| 522 | + foreach ($move2addressbooks as $owner => $label) |
|
| 523 | 523 | { |
| 524 | - $this->type_icon((int)$owner, substr($owner,-1) == 'p', 'n', $icon, $type_label); |
|
| 524 | + $this->type_icon((int)$owner, substr($owner, -1) == 'p', 'n', $icon, $type_label); |
|
| 525 | 525 | $move2addressbooks[$owner] = array( |
| 526 | 526 | 'icon' => $icon, |
| 527 | 527 | 'caption' => $label, |
| 528 | 528 | ); |
| 529 | 529 | } |
| 530 | 530 | // copy checkbox |
| 531 | - $move2addressbooks= array( |
|
| 531 | + $move2addressbooks = array( |
|
| 532 | 532 | 'copy' =>array( |
| 533 | 533 | 'id' => 'move_to_copy', |
| 534 | 534 | 'caption' => 'Copy instead of move', |
@@ -550,7 +550,7 @@ discard block |
||
| 550 | 550 | 'group' => $group, |
| 551 | 551 | ); |
| 552 | 552 | |
| 553 | - ++$group; // integration with other apps: infolog, calendar, filemanager |
|
| 553 | + ++$group; // integration with other apps: infolog, calendar, filemanager |
|
| 554 | 554 | if ($GLOBALS['egw_info']['user']['apps']['infolog']) |
| 555 | 555 | { |
| 556 | 556 | $actions['infolog_app'] = array( |
@@ -569,7 +569,7 @@ discard block |
||
| 569 | 569 | 'icon' => 'new', |
| 570 | 570 | 'url' => 'menuaction=infolog.infolog_ui.edit&type=task&action=addressbook&action_id=$id', |
| 571 | 571 | 'popup' => egw_link::get_registry('infolog', 'add_popup'), |
| 572 | - 'onExecute' => 'javaScript:app.addressbook.add_task', // call server for org-view only |
|
| 572 | + 'onExecute' => 'javaScript:app.addressbook.add_task', // call server for org-view only |
|
| 573 | 573 | ), |
| 574 | 574 | ) |
| 575 | 575 | ); |
@@ -586,7 +586,7 @@ discard block |
||
| 586 | 586 | 'icon' => 'view', |
| 587 | 587 | 'url' => 'menuaction=calendar.calendar_uiforms.edit&participants=c$id', |
| 588 | 588 | 'onExecute' => 'javaScript:app.addressbook.view_calendar', |
| 589 | - 'targetapp' => 'calendar', // open in calendar tab, |
|
| 589 | + 'targetapp' => 'calendar', // open in calendar tab, |
|
| 590 | 590 | 'hideOnDisabled' => true, |
| 591 | 591 | ), |
| 592 | 592 | 'calendar_add' => array( |
@@ -653,12 +653,12 @@ discard block |
||
| 653 | 653 | 'allowOnMultiple' => false, |
| 654 | 654 | 'group' => $group, |
| 655 | 655 | // disable for for org-views, as it needs contact-ids |
| 656 | - 'enabled' => !isset($this->org_views[(string) $org_view]), |
|
| 656 | + 'enabled' => !isset($this->org_views[(string)$org_view]), |
|
| 657 | 657 | ); |
| 658 | 658 | } |
| 659 | 659 | // check if user is an admin or the export is not generally turned off (contact_export_limit is non-numerical, eg. no) |
| 660 | 660 | $exception = bo_merge::is_export_limit_excepted(); |
| 661 | - if ((isset($GLOBALS['egw_info']['user']['apps']['admin']) || $exception) || !$this->config['contact_export_limit'] || (int)$this->config['contact_export_limit']) |
|
| 661 | + if ((isset($GLOBALS['egw_info']['user']['apps']['admin']) || $exception) || !$this->config['contact_export_limit'] || (int)$this->config['contact_export_limit']) |
|
| 662 | 662 | { |
| 663 | 663 | $actions['export'] = array( |
| 664 | 664 | 'caption' => 'Export', |
@@ -673,7 +673,7 @@ discard block |
||
| 673 | 673 | ), |
| 674 | 674 | 'vcard' => array( |
| 675 | 675 | 'caption' => 'Export as VCard', |
| 676 | - 'postSubmit' => true, // download needs post submit (not Ajax) to work |
|
| 676 | + 'postSubmit' => true, // download needs post submit (not Ajax) to work |
|
| 677 | 677 | 'icon' => egw_vfs::mime_icon('text/vcard'), |
| 678 | 678 | ), |
| 679 | 679 | ), |
@@ -684,7 +684,7 @@ discard block |
||
| 684 | 684 | $this->prefs['document_dir'], $group, 'Insert in document', 'document_', |
| 685 | 685 | $this->prefs['default_document'], $this->config['contact_export_limit'] |
| 686 | 686 | ); |
| 687 | - if (isset($GLOBALS['egw_info']['apps']['stylite']) && ($GLOBALS['egw_info']['user']['apps']['felamimail']||$GLOBALS['egw_info']['user']['apps']['mail'])) |
|
| 687 | + if (isset($GLOBALS['egw_info']['apps']['stylite']) && ($GLOBALS['egw_info']['user']['apps']['felamimail'] || $GLOBALS['egw_info']['user']['apps']['mail'])) |
|
| 688 | 688 | { |
| 689 | 689 | $actions['mail'] = array( |
| 690 | 690 | 'caption' => lang('Mail VCard'), |
@@ -704,7 +704,7 @@ discard block |
||
| 704 | 704 | 'disableClass' => 'rowNoDelete', |
| 705 | 705 | ); |
| 706 | 706 | } |
| 707 | - if ($this->grants[0] & EGW_ACL_DELETE) |
|
| 707 | + if ($this->grants[0]&EGW_ACL_DELETE) |
|
| 708 | 708 | { |
| 709 | 709 | $actions['delete_account'] = array( |
| 710 | 710 | 'caption' => 'Delete', |
@@ -717,7 +717,7 @@ discard block |
||
| 717 | 717 | ); |
| 718 | 718 | $actions['delete']['hideOnDisabled'] = true; |
| 719 | 719 | } |
| 720 | - if($tid_filter == 'D') |
|
| 720 | + if ($tid_filter == 'D') |
|
| 721 | 721 | { |
| 722 | 722 | $actions['undelete'] = array( |
| 723 | 723 | 'caption' => 'Un-delete', |
@@ -726,7 +726,7 @@ discard block |
||
| 726 | 726 | 'disableClass' => 'rowNoEdit', |
| 727 | 727 | ); |
| 728 | 728 | } |
| 729 | - if (isset($actions['export']['children']['csv']) && !importexport_helper_functions::has_definitions('addressbook','export')) unset($actions['export']['children']['csv']); |
|
| 729 | + if (isset($actions['export']['children']['csv']) && !importexport_helper_functions::has_definitions('addressbook', 'export')) unset($actions['export']['children']['csv']); |
|
| 730 | 730 | |
| 731 | 731 | //echo "<p>".__METHOD__."($do_email, $tid_filter, $org_view)</p>\n"; _debug_array($actions); |
| 732 | 732 | |
@@ -749,13 +749,13 @@ discard block |
||
| 749 | 749 | private function _get_org_name($org) |
| 750 | 750 | { |
| 751 | 751 | $org_name = array(); |
| 752 | - if (strpos($org,'*AND*')!== false) $org = str_replace('*AND*','&',$org); |
|
| 753 | - foreach(explode('|||',$org) as $part) |
|
| 752 | + if (strpos($org, '*AND*') !== false) $org = str_replace('*AND*', '&', $org); |
|
| 753 | + foreach (explode('|||', $org) as $part) |
|
| 754 | 754 | { |
| 755 | - list(,$name) = explode(':',$part,2); |
|
| 755 | + list(,$name) = explode(':', $part, 2); |
|
| 756 | 756 | if ($name) $org_name[] = $name; |
| 757 | 757 | } |
| 758 | - $org_name = implode(': ',$org_name); |
|
| 758 | + $org_name = implode(': ', $org_name); |
|
| 759 | 759 | return $org_name ? array($org => $org_name) : array(); |
| 760 | 760 | } |
| 761 | 761 | |
@@ -765,12 +765,12 @@ discard block |
||
| 765 | 765 | * @param array $content=null submitted content |
| 766 | 766 | * @param string $msg=null message to show |
| 767 | 767 | */ |
| 768 | - function emailpopup($content=null,$msg=null) |
|
| 768 | + function emailpopup($content = null, $msg = null) |
|
| 769 | 769 | { |
| 770 | - if (strpos($GLOBALS['egw_info']['flags']['java_script'],'addEmail') === false) |
|
| 770 | + if (strpos($GLOBALS['egw_info']['flags']['java_script'], 'addEmail') === false) |
|
| 771 | 771 | { |
| 772 | 772 | $handler = 'opener.addEmail(to,email)'; |
| 773 | - $GLOBALS['egw_info']['flags']['java_script'].= " |
|
| 773 | + $GLOBALS['egw_info']['flags']['java_script'] .= " |
|
| 774 | 774 | <script> |
| 775 | 775 | window.egw_LAB.wait(function() { |
| 776 | 776 | window.focus(); |
@@ -800,7 +800,7 @@ discard block |
||
| 800 | 800 | </script> |
| 801 | 801 | "; |
| 802 | 802 | } |
| 803 | - return $this->index($content,$msg,true); |
|
| 803 | + return $this->index($content, $msg, true); |
|
| 804 | 804 | } |
| 805 | 805 | |
| 806 | 806 | /** |
@@ -813,21 +813,21 @@ discard block |
||
| 813 | 813 | public function ajax_organisation_contacts($org, $query = null) |
| 814 | 814 | { |
| 815 | 815 | $org_contacts = array(); |
| 816 | - $query = $query == null ? egw_session::appsession('index','addressbook') : $query; |
|
| 817 | - $query['num_rows'] = -1; // all |
|
| 818 | - if(!is_array($query['col_filter'])) $query['col_filter'] = array(); |
|
| 816 | + $query = $query == null ? egw_session::appsession('index', 'addressbook') : $query; |
|
| 817 | + $query['num_rows'] = -1; // all |
|
| 818 | + if (!is_array($query['col_filter'])) $query['col_filter'] = array(); |
|
| 819 | 819 | |
| 820 | - if(!is_array($org)) $org = array($org); |
|
| 821 | - foreach($org as $org_name) |
|
| 820 | + if (!is_array($org)) $org = array($org); |
|
| 821 | + foreach ($org as $org_name) |
|
| 822 | 822 | { |
| 823 | 823 | error_log("Org: $org_name"); |
| 824 | 824 | $query['org_view'] = $org_name; |
| 825 | 825 | $checked = array(); |
| 826 | - $count = $this->get_rows($query,$checked,$readonlys,true); // true = only return the id's |
|
| 827 | - error_log("Count: $count " . array2string($checked)); |
|
| 828 | - if($checked[0]) |
|
| 826 | + $count = $this->get_rows($query, $checked, $readonlys, true); // true = only return the id's |
|
| 827 | + error_log("Count: $count ".array2string($checked)); |
|
| 828 | + if ($checked[0]) |
|
| 829 | 829 | { |
| 830 | - $org_contacts = array_merge($org_contacts,$checked); |
|
| 830 | + $org_contacts = array_merge($org_contacts, $checked); |
|
| 831 | 831 | } |
| 832 | 832 | } |
| 833 | 833 | egw_json_response::get()->data(array_unique($org_contacts)); |
@@ -840,40 +840,40 @@ discard block |
||
| 840 | 840 | */ |
| 841 | 841 | function infolog_org_view($org) |
| 842 | 842 | { |
| 843 | - $query = egw_session::appsession('index','addressbook'); |
|
| 844 | - $query['num_rows'] = -1; // all |
|
| 843 | + $query = egw_session::appsession('index', 'addressbook'); |
|
| 844 | + $query['num_rows'] = -1; // all |
|
| 845 | 845 | $query['org_view'] = $org; |
| 846 | 846 | $query['searchletter'] = ''; |
| 847 | - $this->get_rows($query,$checked,$readonlys,true); // true = only return the id's |
|
| 847 | + $this->get_rows($query, $checked, $readonlys, true); // true = only return the id's |
|
| 848 | 848 | |
| 849 | 849 | if (count($checked) > 1) // use a nicely formatted org-name as title in infolog |
| 850 | 850 | { |
| 851 | 851 | $parts = array(); |
| 852 | - if (strpos($org,'*AND*')!== false) $org = str_replace('*AND*','&',$org); |
|
| 853 | - foreach(explode('|||',$org) as $part) |
|
| 852 | + if (strpos($org, '*AND*') !== false) $org = str_replace('*AND*', '&', $org); |
|
| 853 | + foreach (explode('|||', $org) as $part) |
|
| 854 | 854 | { |
| 855 | - list(,$part) = explode(':',$part,2); |
|
| 855 | + list(,$part) = explode(':', $part, 2); |
|
| 856 | 856 | if ($part) $parts[] = $part; |
| 857 | 857 | } |
| 858 | - $org = implode(', ',$parts); |
|
| 858 | + $org = implode(', ', $parts); |
|
| 859 | 859 | } |
| 860 | 860 | else |
| 861 | 861 | { |
| 862 | - $org = ''; // use infolog default of link-title |
|
| 862 | + $org = ''; // use infolog default of link-title |
|
| 863 | 863 | } |
| 864 | - egw::redirect_link('/index.php',array( |
|
| 864 | + egw::redirect_link('/index.php', array( |
|
| 865 | 865 | 'menuaction' => 'infolog.infolog_ui.index', |
| 866 | 866 | 'action' => 'addressbook', |
| 867 | - 'action_id' => implode(',',$checked), |
|
| 867 | + 'action_id' => implode(',', $checked), |
|
| 868 | 868 | 'action_title' => $org, |
| 869 | - ),'infolog'); |
|
| 869 | + ), 'infolog'); |
|
| 870 | 870 | } |
| 871 | 871 | |
| 872 | 872 | function ajax_add_whole_list($list, $email_type = 'email') |
| 873 | 873 | { |
| 874 | - $query = egw_session::appsession('email','addressbook'); |
|
| 874 | + $query = egw_session::appsession('email', 'addressbook'); |
|
| 875 | 875 | $query['filter2'] = (int)$list; |
| 876 | - $this->action($email_type,array(),true,$success,$failed,$action_msg,$query,$msg); |
|
| 876 | + $this->action($email_type, array(), true, $success, $failed, $action_msg, $query, $msg); |
|
| 877 | 877 | |
| 878 | 878 | $response = egw_json_response::get(); |
| 879 | 879 | |
@@ -882,8 +882,7 @@ discard block |
||
| 882 | 882 | // close window only if no errors AND something added |
| 883 | 883 | if ($failed || !$success) |
| 884 | 884 | { |
| 885 | - if (!$msg) $msg = $failed ? lang('%1 contact(s) %2, %3 failed because of insufficent rights !!!',$success,$action_msg,$failed) : |
|
| 886 | - lang('%1 contact(s) %2',$success,$action_msg); |
|
| 885 | + if (!$msg) $msg = $failed ? lang('%1 contact(s) %2, %3 failed because of insufficent rights !!!', $success, $action_msg, $failed) : lang('%1 contact(s) %2', $success, $action_msg); |
|
| 887 | 886 | |
| 888 | 887 | $response->addScript("alert('".addslashes($msg)."')"); |
| 889 | 888 | // reset the filter |
@@ -891,7 +890,7 @@ discard block |
||
| 891 | 890 | } |
| 892 | 891 | else |
| 893 | 892 | { |
| 894 | - if (!$msg) $msg = lang('%1 contact(s) %2',$success,$action_msg); |
|
| 893 | + if (!$msg) $msg = lang('%1 contact(s) %2', $success, $action_msg); |
|
| 895 | 894 | $response->addScript("alert('".addslashes($msg)."')"); |
| 896 | 895 | $response->addScript('egw(window).close();'); |
| 897 | 896 | } |
@@ -912,27 +911,27 @@ discard block |
||
| 912 | 911 | $owner = $owner ? $owner : $GLOBALS['egw_info']['user']['account_id']; |
| 913 | 912 | |
| 914 | 913 | // Check for valid list & permissions |
| 915 | - if(!(int)$list_id && !$this->check_list(null,EGW_ACL_ADD|EGW_ACL_EDIT,$owner)) |
|
| 914 | + if (!(int)$list_id && !$this->check_list(null, EGW_ACL_ADD|EGW_ACL_EDIT, $owner)) |
|
| 916 | 915 | { |
| 917 | - egw_json_response::get()->apply('egw.message', array( lang('List creation failed, no rights!'),'error')); |
|
| 916 | + egw_json_response::get()->apply('egw.message', array(lang('List creation failed, no rights!'), 'error')); |
|
| 918 | 917 | return; |
| 919 | 918 | } |
| 920 | 919 | if ((int)$list_id && !$this->check_list((int)$list_id, EGW_ACL_EDIT, $owner)) |
| 921 | 920 | { |
| 922 | - egw_json_response::get()->apply('egw.message', array( lang('Insufficent rights to edit this list!'),'error')); |
|
| 921 | + egw_json_response::get()->apply('egw.message', array(lang('Insufficent rights to edit this list!'), 'error')); |
|
| 923 | 922 | return; |
| 924 | 923 | } |
| 925 | 924 | |
| 926 | 925 | $list = array('list_owner' => $owner); |
| 927 | 926 | |
| 928 | 927 | // Rename |
| 929 | - if($list_id) |
|
| 928 | + if ($list_id) |
|
| 930 | 929 | { |
| 931 | 930 | $list = $this->read_list((int)$list_id); |
| 932 | 931 | } |
| 933 | 932 | $list['list_name'] = $new_name; |
| 934 | 933 | |
| 935 | - $new_id = $this->add_list(array('list_id' => (int)$list_id), $list['list_owner'],array(),$list); |
|
| 934 | + $new_id = $this->add_list(array('list_id' => (int)$list_id), $list['list_owner'], array(), $list); |
|
| 936 | 935 | |
| 937 | 936 | egw_json_response::get()->apply('egw.message', array( |
| 938 | 937 | $new_id == $list_id ? lang('Distribution list renamed') : lang('List created'), |
@@ -954,86 +953,86 @@ discard block |
||
| 954 | 953 | * @param string/array $session_name 'index' or 'email', or array with session-data depending if we are in the main list or the popup |
| 955 | 954 | * @return boolean true if all actions succeded, false otherwise |
| 956 | 955 | */ |
| 957 | - function action($action,$checked,$use_all,&$success,&$failed,&$action_msg,$session_name,&$msg, $checkboxes = NULL) |
|
| 956 | + function action($action, $checked, $use_all, &$success, &$failed, &$action_msg, $session_name, &$msg, $checkboxes = NULL) |
|
| 958 | 957 | { |
| 959 | 958 | //echo "<p>uicontacts::action('$action',".print_r($checked,true).','.(int)$use_all.",...)</p>\n"; |
| 960 | 959 | $success = $failed = 0; |
| 961 | - if ($use_all || in_array($action,array('remove_from_list','delete_list'))) |
|
| 960 | + if ($use_all || in_array($action, array('remove_from_list', 'delete_list'))) |
|
| 962 | 961 | { |
| 963 | 962 | // get the whole selection |
| 964 | - $query = is_array($session_name) ? $session_name : egw_session::appsession($session_name,'addressbook'); |
|
| 963 | + $query = is_array($session_name) ? $session_name : egw_session::appsession($session_name, 'addressbook'); |
|
| 965 | 964 | |
| 966 | 965 | if ($use_all) |
| 967 | 966 | { |
| 968 | - @set_time_limit(0); // switch off the execution time limit, as it's for big selections to small |
|
| 969 | - $query['num_rows'] = -1; // all |
|
| 970 | - $this->get_rows($query,$checked,$readonlys,true); // true = only return the id's |
|
| 967 | + @set_time_limit(0); // switch off the execution time limit, as it's for big selections to small |
|
| 968 | + $query['num_rows'] = -1; // all |
|
| 969 | + $this->get_rows($query, $checked, $readonlys, true); // true = only return the id's |
|
| 971 | 970 | } |
| 972 | 971 | } |
| 973 | 972 | // replace org_name:* id's with all id's of that org |
| 974 | 973 | $org_contacts = array(); |
| 975 | - foreach((array)$checked as $n => $id) |
|
| 974 | + foreach ((array)$checked as $n => $id) |
|
| 976 | 975 | { |
| 977 | - if (substr($id,0,9) == 'org_name:') |
|
| 976 | + if (substr($id, 0, 9) == 'org_name:') |
|
| 978 | 977 | { |
| 979 | 978 | if (count($checked) == 1 && !count($org_contacts) && $action == 'infolog') |
| 980 | 979 | { |
| 981 | - return $this->infolog_org_view($id); // uses the org-name, instead of 'selected contacts' |
|
| 980 | + return $this->infolog_org_view($id); // uses the org-name, instead of 'selected contacts' |
|
| 982 | 981 | } |
| 983 | 982 | unset($checked[$n]); |
| 984 | - $query = egw_session::appsession($session_name,'addressbook'); |
|
| 985 | - $query['num_rows'] = -1; // all |
|
| 983 | + $query = egw_session::appsession($session_name, 'addressbook'); |
|
| 984 | + $query['num_rows'] = -1; // all |
|
| 986 | 985 | $query['org_view'] = $id; |
| 987 | 986 | unset($query['filter2']); |
| 988 | - $this->get_rows($query,$extra,$readonlys,true); // true = only return the id's |
|
| 989 | - if ($extra[0]) $org_contacts = array_merge($org_contacts,$extra); |
|
| 987 | + $this->get_rows($query, $extra, $readonlys, true); // true = only return the id's |
|
| 988 | + if ($extra[0]) $org_contacts = array_merge($org_contacts, $extra); |
|
| 990 | 989 | } |
| 991 | 990 | } |
| 992 | - if ($org_contacts) $checked = array_unique($checked ? array_merge($checked,$org_contacts) : $org_contacts); |
|
| 991 | + if ($org_contacts) $checked = array_unique($checked ? array_merge($checked, $org_contacts) : $org_contacts); |
|
| 993 | 992 | //_debug_array($checked); exit; |
| 994 | 993 | |
| 995 | - if (substr($action,0,8) == 'move_to_') |
|
| 994 | + if (substr($action, 0, 8) == 'move_to_') |
|
| 996 | 995 | { |
| 997 | - $action = (int)substr($action,8).(substr($action,-1) == 'p' ? 'p' : ''); |
|
| 996 | + $action = (int)substr($action, 8).(substr($action, -1) == 'p' ? 'p' : ''); |
|
| 998 | 997 | } |
| 999 | - elseif (substr($action,0,8) == 'to_list_') |
|
| 998 | + elseif (substr($action, 0, 8) == 'to_list_') |
|
| 1000 | 999 | { |
| 1001 | - $to_list = (int)substr($action,8); |
|
| 1000 | + $to_list = (int)substr($action, 8); |
|
| 1002 | 1001 | $action = 'to_list'; |
| 1003 | 1002 | } |
| 1004 | - elseif (substr($action,0,9) == 'document_') |
|
| 1003 | + elseif (substr($action, 0, 9) == 'document_') |
|
| 1005 | 1004 | { |
| 1006 | - $document = substr($action,9); |
|
| 1005 | + $document = substr($action, 9); |
|
| 1007 | 1006 | $action = 'document'; |
| 1008 | 1007 | } |
| 1009 | - elseif(substr($action,0,4) == 'cat_') // cat_add_123 or cat_del_456 |
|
| 1008 | + elseif (substr($action, 0, 4) == 'cat_') // cat_add_123 or cat_del_456 |
|
| 1010 | 1009 | { |
| 1011 | 1010 | $cat_id = (int)substr($action, 8); |
| 1012 | - $action = substr($action,0,7); |
|
| 1011 | + $action = substr($action, 0, 7); |
|
| 1013 | 1012 | } |
| 1014 | 1013 | // Security: stop non-admins to export more then the configured number of contacts |
| 1015 | - if (in_array($action,array('csv','vcard')) && $this->config['contact_export_limit'] && !bo_merge::is_export_limit_excepted() && |
|
| 1014 | + if (in_array($action, array('csv', 'vcard')) && $this->config['contact_export_limit'] && !bo_merge::is_export_limit_excepted() && |
|
| 1016 | 1015 | (!is_numeric($this->config['contact_export_limit']) || count($checked) > $this->config['contact_export_limit'])) |
| 1017 | 1016 | { |
| 1018 | 1017 | $action_msg = lang('exported'); |
| 1019 | 1018 | $failed = count($checked); |
| 1020 | 1019 | return false; |
| 1021 | 1020 | } |
| 1022 | - switch($action) |
|
| 1021 | + switch ($action) |
|
| 1023 | 1022 | { |
| 1024 | 1023 | case 'vcard': |
| 1025 | 1024 | $action_msg = lang('exported'); |
| 1026 | - $vcard = new addressbook_vcal('addressbook','text/vcard'); |
|
| 1025 | + $vcard = new addressbook_vcal('addressbook', 'text/vcard'); |
|
| 1027 | 1026 | $vcard->export($checked); |
| 1028 | 1027 | // does not return! |
| 1029 | 1028 | $Ok = false; |
| 1030 | 1029 | break; |
| 1031 | 1030 | |
| 1032 | 1031 | case 'merge': |
| 1033 | - $success = $this->merge($checked,$error_msg); |
|
| 1032 | + $success = $this->merge($checked, $error_msg); |
|
| 1034 | 1033 | $failed = count($checked) - (int)$success; |
| 1035 | 1034 | $action_msg = lang('merged'); |
| 1036 | - $checked = array(); // to not start the single actions |
|
| 1035 | + $checked = array(); // to not start the single actions |
|
| 1037 | 1036 | break; |
| 1038 | 1037 | |
| 1039 | 1038 | case 'delete_list': |
@@ -1041,7 +1040,7 @@ discard block |
||
| 1041 | 1040 | { |
| 1042 | 1041 | $msg = lang('You need to select a distribution list'); |
| 1043 | 1042 | } |
| 1044 | - elseif($this->delete_list($query['filter2']) === false) |
|
| 1043 | + elseif ($this->delete_list($query['filter2']) === false) |
|
| 1045 | 1044 | { |
| 1046 | 1045 | $msg = lang('Insufficent rights to delete this list!'); |
| 1047 | 1046 | } |
@@ -1049,7 +1048,7 @@ discard block |
||
| 1049 | 1048 | { |
| 1050 | 1049 | $msg = lang('Distribution list deleted'); |
| 1051 | 1050 | unset($query['filter2']); |
| 1052 | - egw_session::appsession($session_name,'addressbook',$query); |
|
| 1051 | + egw_session::appsession($session_name, 'addressbook', $query); |
|
| 1053 | 1052 | } |
| 1054 | 1053 | return false; |
| 1055 | 1054 | |
@@ -1061,54 +1060,54 @@ discard block |
||
| 1061 | 1060 | return false; |
| 1062 | 1061 | |
| 1063 | 1062 | case 'infolog_add': |
| 1064 | - list($width,$height) = explode('x',egw_link::get_registry('infolog', 'add_popup')); |
|
| 1063 | + list($width, $height) = explode('x', egw_link::get_registry('infolog', 'add_popup')); |
|
| 1065 | 1064 | egw_framework::set_onload( |
| 1066 | - "egw_openWindowCentered2('".egw::link('/index.php',array( |
|
| 1065 | + "egw_openWindowCentered2('".egw::link('/index.php', array( |
|
| 1067 | 1066 | 'menuaction' => 'infolog.infolog_ui.edit', |
| 1068 | 1067 | 'type' => 'task', |
| 1069 | 1068 | 'action' => 'addressbook', |
| 1070 | - 'action_id' => implode(',',$checked), |
|
| 1069 | + 'action_id' => implode(',', $checked), |
|
| 1071 | 1070 | ))."','_blank',$width,$height);"); |
| 1072 | - $msg = ''; // no message, as we send none in javascript too and users sees opening popup |
|
| 1071 | + $msg = ''; // no message, as we send none in javascript too and users sees opening popup |
|
| 1073 | 1072 | return false; |
| 1074 | 1073 | |
| 1075 | 1074 | case 'calendar_add': // add appointment for org-views, other views are handled directly in javascript |
| 1076 | - list($width,$height) = explode('x',egw_link::get_registry('calendar', 'add_popup')); |
|
| 1075 | + list($width, $height) = explode('x', egw_link::get_registry('calendar', 'add_popup')); |
|
| 1077 | 1076 | egw_framework::set_onload( |
| 1078 | - "egw_openWindowCentered2('".egw::link('/index.php',array( |
|
| 1077 | + "egw_openWindowCentered2('".egw::link('/index.php', array( |
|
| 1079 | 1078 | 'menuaction' => 'calendar.calendar_uiforms.edit', |
| 1080 | - 'participants' => 'c'.implode(',c',$checked), |
|
| 1079 | + 'participants' => 'c'.implode(',c', $checked), |
|
| 1081 | 1080 | ))."','_blank',$width,$height);"); |
| 1082 | - $msg = ''; // no message, as we send none in javascript too and users sees opening popup |
|
| 1081 | + $msg = ''; // no message, as we send none in javascript too and users sees opening popup |
|
| 1083 | 1082 | return false; |
| 1084 | 1083 | |
| 1085 | 1084 | case 'calendar_view': // show calendar for org-views, although all views are handled directly in javascript |
| 1086 | - list($width,$height) = explode('x',egw_link::get_registry('calendar', 'add_popup')); |
|
| 1087 | - egw::redirect_link('/index.php',array( |
|
| 1085 | + list($width, $height) = explode('x', egw_link::get_registry('calendar', 'add_popup')); |
|
| 1086 | + egw::redirect_link('/index.php', array( |
|
| 1088 | 1087 | 'menuaction' => 'calendar.calendar_uiviews.index', |
| 1089 | - 'owner' => 'c'.implode(',c',$checked), |
|
| 1088 | + 'owner' => 'c'.implode(',c', $checked), |
|
| 1090 | 1089 | )); |
| 1091 | 1090 | } |
| 1092 | - foreach($checked as $id) |
|
| 1091 | + foreach ($checked as $id) |
|
| 1093 | 1092 | { |
| 1094 | - switch($action) |
|
| 1093 | + switch ($action) |
|
| 1095 | 1094 | { |
| 1096 | 1095 | case 'cat_add': |
| 1097 | 1096 | case 'cat_del': |
| 1098 | - if (($Ok = !!($contact = $this->read($id)) && $this->check_perms(EGW_ACL_EDIT,$contact))) |
|
| 1097 | + if (($Ok = !!($contact = $this->read($id)) && $this->check_perms(EGW_ACL_EDIT, $contact))) |
|
| 1099 | 1098 | { |
| 1100 | 1099 | $action_msg = $action == 'cat_add' ? lang('categorie added') : lang('categorie delete'); |
| 1101 | - $cat_ids = $contact['cat_id'] ? explode(',', $contact['cat_id']) : array(); //existing categories |
|
| 1100 | + $cat_ids = $contact['cat_id'] ? explode(',', $contact['cat_id']) : array(); //existing categories |
|
| 1102 | 1101 | if ($action == 'cat_add') |
| 1103 | 1102 | { |
| 1104 | 1103 | $cat_ids[] = $cat_id; |
| 1105 | 1104 | $cat_ids = array_unique($cat_ids); |
| 1106 | 1105 | } |
| 1107 | - elseif ((($key = array_search($cat_id,$cat_ids))) !== false) |
|
| 1106 | + elseif ((($key = array_search($cat_id, $cat_ids))) !== false) |
|
| 1108 | 1107 | { |
| 1109 | 1108 | unset($cat_ids[$key]); |
| 1110 | 1109 | } |
| 1111 | - $cat_ids = $cat_ids ? implode(',',$cat_ids) : null; |
|
| 1110 | + $cat_ids = $cat_ids ? implode(',', $cat_ids) : null; |
|
| 1112 | 1111 | if ($cat_ids !== $contact['cat_id']) |
| 1113 | 1112 | { |
| 1114 | 1113 | $contact['cat_id'] = $cat_ids; |
@@ -1119,10 +1118,10 @@ discard block |
||
| 1119 | 1118 | |
| 1120 | 1119 | case 'delete': |
| 1121 | 1120 | $action_msg = lang('deleted'); |
| 1122 | - if (($Ok = !!($contact = $this->read($id)) && $this->check_perms(EGW_ACL_DELETE,$contact))) |
|
| 1121 | + if (($Ok = !!($contact = $this->read($id)) && $this->check_perms(EGW_ACL_DELETE, $contact))) |
|
| 1123 | 1122 | { |
| 1124 | - if ($contact['owner'] || // regular contact or |
|
| 1125 | - empty($contact['account_id']) || // accounts without account_id |
|
| 1123 | + if ($contact['owner'] || // regular contact or |
|
| 1124 | + empty($contact['account_id']) || // accounts without account_id |
|
| 1126 | 1125 | // already deleted account (should no longer happen, but needed to allow for cleanup) |
| 1127 | 1126 | $contact['tid'] == addressbook_so::DELETED_TYPE) |
| 1128 | 1127 | { |
@@ -1131,7 +1130,7 @@ discard block |
||
| 1131 | 1130 | // delete single account --> redirect to admin |
| 1132 | 1131 | elseif (count($checked) == 1 && $contact['account_id']) |
| 1133 | 1132 | { |
| 1134 | - egw::redirect_link('/index.php',array( |
|
| 1133 | + egw::redirect_link('/index.php', array( |
|
| 1135 | 1134 | 'menuaction' => 'admin.admin_account.delete', |
| 1136 | 1135 | 'account_id' => $contact['account_id'], |
| 1137 | 1136 | )); |
@@ -1157,13 +1156,13 @@ discard block |
||
| 1157 | 1156 | case 'email_home': |
| 1158 | 1157 | $action == 'email' ? $action_fallback = 'email_home' : $action_fallback = 'email'; |
| 1159 | 1158 | $action_msg = lang('added'); |
| 1160 | - if($contact = $this->read($id)) |
|
| 1159 | + if ($contact = $this->read($id)) |
|
| 1161 | 1160 | { |
| 1162 | - if(strpos($contact[$action],'@') !== false) |
|
| 1161 | + if (strpos($contact[$action], '@') !== false) |
|
| 1163 | 1162 | { |
| 1164 | 1163 | $email = $contact[$action]; |
| 1165 | 1164 | } |
| 1166 | - elseif(strpos($contact[$action_fallback],'@') !== false) |
|
| 1165 | + elseif (strpos($contact[$action_fallback], '@') !== false) |
|
| 1167 | 1166 | { |
| 1168 | 1167 | $email = $contact[$action_fallback]; |
| 1169 | 1168 | } |
@@ -1171,9 +1170,9 @@ discard block |
||
| 1171 | 1170 | { |
| 1172 | 1171 | $Ok = $email = false; |
| 1173 | 1172 | } |
| 1174 | - if($email) |
|
| 1173 | + if ($email) |
|
| 1175 | 1174 | { |
| 1176 | - $contact['n_fn'] = str_replace(array(',','@'),' ',$contact['n_fn']); |
|
| 1175 | + $contact['n_fn'] = str_replace(array(',', '@'), ' ', $contact['n_fn']); |
|
| 1177 | 1176 | egw_framework::set_onload("addEmail('".addslashes( |
| 1178 | 1177 | $contact['n_fn'] ? $contact['n_fn'].' <'.trim($email).'>' : trim($email))."');"); |
| 1179 | 1178 | //error_log(__METHOD__.__LINE__."addEmail('".addslashes( |
@@ -1192,7 +1191,7 @@ discard block |
||
| 1192 | 1191 | } |
| 1193 | 1192 | else |
| 1194 | 1193 | { |
| 1195 | - $Ok = $this->remove_from_list($id,$query['filter2']) !== false; |
|
| 1194 | + $Ok = $this->remove_from_list($id, $query['filter2']) !== false; |
|
| 1196 | 1195 | } |
| 1197 | 1196 | break; |
| 1198 | 1197 | |
@@ -1205,28 +1204,28 @@ discard block |
||
| 1205 | 1204 | } |
| 1206 | 1205 | else |
| 1207 | 1206 | { |
| 1208 | - $Ok = $this->add2list($id,$to_list) !== false; |
|
| 1207 | + $Ok = $this->add2list($id, $to_list) !== false; |
|
| 1209 | 1208 | } |
| 1210 | 1209 | break; |
| 1211 | 1210 | |
| 1212 | 1211 | default: // move to an other addressbook |
| 1213 | - if (!(int)$action || !($this->grants[(string) (int) $action] & EGW_ACL_EDIT)) // might be ADD in the future |
|
| 1212 | + if (!(int)$action || !($this->grants[(string)(int)$action]&EGW_ACL_EDIT)) // might be ADD in the future |
|
| 1214 | 1213 | { |
| 1215 | 1214 | return false; |
| 1216 | 1215 | } |
| 1217 | 1216 | if (!$checkboxes['move_to_copy']) |
| 1218 | 1217 | { |
| 1219 | 1218 | $action_msg = lang('moved'); |
| 1220 | - if (($Ok = !!($contact = $this->read($id)) && $this->check_perms(EGW_ACL_DELETE,$contact))) |
|
| 1219 | + if (($Ok = !!($contact = $this->read($id)) && $this->check_perms(EGW_ACL_DELETE, $contact))) |
|
| 1221 | 1220 | { |
| 1222 | 1221 | if (!$contact['owner']) // no (mass-)move of accounts |
| 1223 | 1222 | { |
| 1224 | 1223 | $Ok = false; |
| 1225 | 1224 | } |
| 1226 | - elseif ($contact['owner'] != (int)$action || $contact['private'] != (int)(substr($action,-1) == 'p')) |
|
| 1225 | + elseif ($contact['owner'] != (int)$action || $contact['private'] != (int)(substr($action, -1) == 'p')) |
|
| 1227 | 1226 | { |
| 1228 | - $contact['owner'] = (int) $action; |
|
| 1229 | - $contact['private'] = (int)(substr($action,-1) == 'p'); |
|
| 1227 | + $contact['owner'] = (int)$action; |
|
| 1228 | + $contact['private'] = (int)(substr($action, -1) == 'p'); |
|
| 1230 | 1229 | $Ok = $this->save($contact); |
| 1231 | 1230 | } |
| 1232 | 1231 | } |
@@ -1234,14 +1233,14 @@ discard block |
||
| 1234 | 1233 | else |
| 1235 | 1234 | { |
| 1236 | 1235 | $action_msg = lang('copied'); |
| 1237 | - if (($Ok = !!($contact = $this->read($id)) && $this->check_perms(EGW_ACL_READ,$contact))) |
|
| 1236 | + if (($Ok = !!($contact = $this->read($id)) && $this->check_perms(EGW_ACL_READ, $contact))) |
|
| 1238 | 1237 | { |
| 1239 | - if ($contact['owner'] != (int)$action || $contact['private'] != (int)(substr($action,-1) == 'p')) |
|
| 1238 | + if ($contact['owner'] != (int)$action || $contact['private'] != (int)(substr($action, -1) == 'p')) |
|
| 1240 | 1239 | { |
| 1241 | - $this->copy_contact($contact, false); // do NOT use self::$copy_fields, copy everything but uid etc. |
|
| 1240 | + $this->copy_contact($contact, false); // do NOT use self::$copy_fields, copy everything but uid etc. |
|
| 1242 | 1241 | $links = $contact['link_to']['to_id']; |
| 1243 | - $contact['owner'] = (int) $action; |
|
| 1244 | - $contact['private'] = (int)(substr($action,-1) == 'p'); |
|
| 1242 | + $contact['owner'] = (int)$action; |
|
| 1243 | + $contact['private'] = (int)(substr($action, -1) == 'p'); |
|
| 1245 | 1244 | $Ok = $this->save($contact); |
| 1246 | 1245 | if ($Ok && is_array($links)) |
| 1247 | 1246 | { |
@@ -1273,22 +1272,22 @@ discard block |
||
| 1273 | 1272 | * @param boolean $only_copy_fields =true true: only copy fields configured for copying (eg. no name), |
| 1274 | 1273 | * false: copy everything, but never to copy fields |
| 1275 | 1274 | */ |
| 1276 | - function copy_contact(array &$content, $only_copy_fields=true) |
|
| 1275 | + function copy_contact(array &$content, $only_copy_fields = true) |
|
| 1277 | 1276 | { |
| 1278 | 1277 | $content['link_to']['to_id'] = 0; |
| 1279 | - egw_link::link('addressbook',$content['link_to']['to_id'],'addressbook',$content['id'], |
|
| 1280 | - lang('Copied by %1, from record #%2.',common::display_fullname('', |
|
| 1281 | - $GLOBALS['egw_info']['user']['account_firstname'],$GLOBALS['egw_info']['user']['account_lastname']), |
|
| 1278 | + egw_link::link('addressbook', $content['link_to']['to_id'], 'addressbook', $content['id'], |
|
| 1279 | + lang('Copied by %1, from record #%2.', common::display_fullname('', |
|
| 1280 | + $GLOBALS['egw_info']['user']['account_firstname'], $GLOBALS['egw_info']['user']['account_lastname']), |
|
| 1282 | 1281 | $content['id'])); |
| 1283 | 1282 | // create a new contact with the content of the old |
| 1284 | - foreach(array_keys($content) as $key) |
|
| 1283 | + foreach (array_keys($content) as $key) |
|
| 1285 | 1284 | { |
| 1286 | - if($only_copy_fields && !in_array($key, self::$copy_fields) || in_array($key, array('id','etag','carddav_name','uid'))) |
|
| 1285 | + if ($only_copy_fields && !in_array($key, self::$copy_fields) || in_array($key, array('id', 'etag', 'carddav_name', 'uid'))) |
|
| 1287 | 1286 | { |
| 1288 | 1287 | unset($content[$key]); |
| 1289 | 1288 | } |
| 1290 | 1289 | } |
| 1291 | - if(!isset($content['owner'])) |
|
| 1290 | + if (!isset($content['owner'])) |
|
| 1292 | 1291 | { |
| 1293 | 1292 | $content['owner'] = $this->default_private ? $this->user.'p' : $this->default_addressbook; |
| 1294 | 1293 | } |
@@ -1306,7 +1305,7 @@ discard block |
||
| 1306 | 1305 | * @param boolean $id_only=false if true only return (via $rows) an array of contact-ids, dont save state to session |
| 1307 | 1306 | * @return int total number of contacts matching the selection |
| 1308 | 1307 | */ |
| 1309 | - function get_rows(&$query,&$rows,&$readonlys,$id_only=false) |
|
| 1308 | + function get_rows(&$query, &$rows, &$readonlys, $id_only = false) |
|
| 1310 | 1309 | { |
| 1311 | 1310 | $do_email = $query['do_email']; |
| 1312 | 1311 | $what = $query['sitemgr_display'] ? $query['sitemgr_display'] : ($do_email ? 'email' : 'index'); |
@@ -1315,46 +1314,46 @@ discard block |
||
| 1315 | 1314 | { |
| 1316 | 1315 | $store_query = $query; |
| 1317 | 1316 | // Do not store these |
| 1318 | - foreach(array('options-cat_id','actions') as $key) |
|
| 1317 | + foreach (array('options-cat_id', 'actions') as $key) |
|
| 1319 | 1318 | { |
| 1320 | 1319 | unset($store_query[$key]); |
| 1321 | 1320 | } |
| 1322 | - $old_state = egw_session::appsession($what,'addressbook',$store_query); |
|
| 1321 | + $old_state = egw_session::appsession($what, 'addressbook', $store_query); |
|
| 1323 | 1322 | } |
| 1324 | 1323 | else |
| 1325 | 1324 | { |
| 1326 | - $old_state = egw_session::appsession($what,'addressbook'); |
|
| 1325 | + $old_state = egw_session::appsession($what, 'addressbook'); |
|
| 1327 | 1326 | } |
| 1328 | - if (!isset($this->org_views[(string) $query['org_view']])) // we dont have an org view, unset the according col_filters |
|
| 1327 | + if (!isset($this->org_views[(string)$query['org_view']])) // we dont have an org view, unset the according col_filters |
|
| 1329 | 1328 | { |
| 1330 | 1329 | if (isset($query['col_filter']['org_name'])) unset($query['col_filter']['org_name']); |
| 1331 | 1330 | if (isset($query['col_filter']['adr_one_locality'])) unset($query['col_filter']['adr_one_locality']); |
| 1332 | 1331 | if (isset($query['col_filter']['org_unit'])) unset($query['col_filter']['org_unit']); |
| 1333 | 1332 | } |
| 1334 | 1333 | |
| 1335 | - if (isset($this->org_views[(string) $query['org_view']])) // we have an org view, reset the advanced search |
|
| 1334 | + if (isset($this->org_views[(string)$query['org_view']])) // we have an org view, reset the advanced search |
|
| 1336 | 1335 | { |
| 1337 | 1336 | //_debug_array(array('Search'=>$query['search'], |
| 1338 | 1337 | // 'AdvancedSearch'=>$query['advanced_search'])); |
| 1339 | 1338 | //if (is_array($query['search'])) unset($query['search']); |
| 1340 | 1339 | //unset($query['advanced_search']); |
| 1341 | - if(!$query['search'] && $old_state['advanced_search']) $query['advanced_search'] = $old_state['advanced_search']; |
|
| 1340 | + if (!$query['search'] && $old_state['advanced_search']) $query['advanced_search'] = $old_state['advanced_search']; |
|
| 1342 | 1341 | } |
| 1343 | - elseif(!$query['search'] && $old_state['advanced_search']) // eg. paging in an advanced search |
|
| 1342 | + elseif (!$query['search'] && $old_state['advanced_search']) // eg. paging in an advanced search |
|
| 1344 | 1343 | { |
| 1345 | 1344 | $query['advanced_search'] = $old_state['advanced_search']; |
| 1346 | 1345 | } |
| 1347 | 1346 | if ($do_email && etemplate::$loop) |
| 1348 | 1347 | { // remove previous addEmail() calls, otherwise they will be run again |
| 1349 | - egw_framework::set_onload(preg_replace('/addEmail\([^)]+\);/','',egw_framework::set_onload()),true); |
|
| 1348 | + egw_framework::set_onload(preg_replace('/addEmail\([^)]+\);/', '', egw_framework::set_onload()), true); |
|
| 1350 | 1349 | } |
| 1351 | 1350 | |
| 1352 | 1351 | // Make sure old lettersearch filter doesn't stay - current letter filter will be added later |
| 1353 | - foreach($query['col_filter'] as $key => $col_filter) |
|
| 1352 | + foreach ($query['col_filter'] as $key => $col_filter) |
|
| 1354 | 1353 | { |
| 1355 | - if(!is_numeric($key)) continue; |
|
| 1356 | - if(preg_match('/'.$GLOBALS['egw']->db->capabilities['case_insensitive_like']. |
|
| 1357 | - ' '.$GLOBALS['egw']->db->quote('[a-z]%').'$/i',$col_filter) == 1 |
|
| 1354 | + if (!is_numeric($key)) continue; |
|
| 1355 | + if (preg_match('/'.$GLOBALS['egw']->db->capabilities['case_insensitive_like']. |
|
| 1356 | + ' '.$GLOBALS['egw']->db->quote('[a-z]%').'$/i', $col_filter) == 1 |
|
| 1358 | 1357 | ) |
| 1359 | 1358 | { |
| 1360 | 1359 | unset($query['col_filter'][$key]); |
@@ -1369,16 +1368,16 @@ discard block |
||
| 1369 | 1368 | { |
| 1370 | 1369 | if ($old_state['filter'] === '0') // user changed to org_view |
| 1371 | 1370 | { |
| 1372 | - $query['filter'] = ''; // --> change filter to all contacts |
|
| 1371 | + $query['filter'] = ''; // --> change filter to all contacts |
|
| 1373 | 1372 | } |
| 1374 | 1373 | else // user changed to accounts |
| 1375 | 1374 | { |
| 1376 | - $query['org_view'] = ''; // --> change to regular contacts view |
|
| 1375 | + $query['org_view'] = ''; // --> change to regular contacts view |
|
| 1377 | 1376 | } |
| 1378 | 1377 | } |
| 1379 | 1378 | if ($query['org_view'] && isset($this->org_views[$old_state['org_view']]) && !isset($this->org_views[$query['org_view']])) |
| 1380 | 1379 | { |
| 1381 | - $query['searchletter'] = ''; // reset lettersearch if viewing the contacts of one organisation |
|
| 1380 | + $query['searchletter'] = ''; // reset lettersearch if viewing the contacts of one organisation |
|
| 1382 | 1381 | } |
| 1383 | 1382 | // save the state of the index in the user prefs |
| 1384 | 1383 | $state = serialize(array( |
@@ -1391,9 +1390,9 @@ discard block |
||
| 1391 | 1390 | )); |
| 1392 | 1391 | if ($state != $this->prefs[$what.'_state'] && !$query['csv_export']) |
| 1393 | 1392 | { |
| 1394 | - $GLOBALS['egw']->preferences->add('addressbook',$what.'_state',$state); |
|
| 1393 | + $GLOBALS['egw']->preferences->add('addressbook', $what.'_state', $state); |
|
| 1395 | 1394 | // save prefs, but do NOT invalid the cache (unnecessary) |
| 1396 | - $GLOBALS['egw']->preferences->save_repository(false,'user',false); |
|
| 1395 | + $GLOBALS['egw']->preferences->save_repository(false, 'user', false); |
|
| 1397 | 1396 | } |
| 1398 | 1397 | } |
| 1399 | 1398 | unset($old_state); |
@@ -1408,11 +1407,11 @@ discard block |
||
| 1408 | 1407 | } |
| 1409 | 1408 | if ($query['filter'] !== '') // not all addressbooks |
| 1410 | 1409 | { |
| 1411 | - $query['col_filter']['owner'] = (string) (int) $query['filter']; |
|
| 1410 | + $query['col_filter']['owner'] = (string)(int)$query['filter']; |
|
| 1412 | 1411 | |
| 1413 | 1412 | if ($this->private_addressbook) |
| 1414 | 1413 | { |
| 1415 | - $query['col_filter']['private'] = substr($query['filter'],-1) == 'p' ? 1 : 0; |
|
| 1414 | + $query['col_filter']['private'] = substr($query['filter'], -1) == 'p' ? 1 : 0; |
|
| 1416 | 1415 | } |
| 1417 | 1416 | } |
| 1418 | 1417 | else |
@@ -1422,7 +1421,7 @@ discard block |
||
| 1422 | 1421 | } |
| 1423 | 1422 | if ((int)$query['filter2']) // not no distribution list |
| 1424 | 1423 | { |
| 1425 | - $query['col_filter']['list'] = (string) (int) $query['filter2']; |
|
| 1424 | + $query['col_filter']['list'] = (string)(int)$query['filter2']; |
|
| 1426 | 1425 | } |
| 1427 | 1426 | else |
| 1428 | 1427 | { |
@@ -1435,15 +1434,15 @@ discard block |
||
| 1435 | 1434 | // enable/disable distribution lists depending on backend |
| 1436 | 1435 | $query['no_filter2'] = !$this->lists_available($query['filter']); |
| 1437 | 1436 | |
| 1438 | - if (isset($this->org_views[(string) $query['org_view']])) // we have an org view |
|
| 1437 | + if (isset($this->org_views[(string)$query['org_view']])) // we have an org view |
|
| 1439 | 1438 | { |
| 1440 | - if($query['actions'] && $query['actions']['open']) |
|
| 1439 | + if ($query['actions'] && $query['actions']['open']) |
|
| 1441 | 1440 | { |
| 1442 | 1441 | // Just switched from contact view, update actions |
| 1443 | 1442 | $query['actions'] = $this->get_actions($query['col_filter']['tid'], $query['org_view']); |
| 1444 | 1443 | } |
| 1445 | - unset($query['col_filter']['list']); // does not work together |
|
| 1446 | - $query['no_filter2'] = true; // switch the distribution list selection off |
|
| 1444 | + unset($query['col_filter']['list']); // does not work together |
|
| 1445 | + $query['no_filter2'] = true; // switch the distribution list selection off |
|
| 1447 | 1446 | |
| 1448 | 1447 | $query['template'] = 'addressbook.index.org_rows'; |
| 1449 | 1448 | |
@@ -1483,25 +1482,25 @@ discard block |
||
| 1483 | 1482 | } |
| 1484 | 1483 | if ($query['org_view']) // view the contacts of one organisation only |
| 1485 | 1484 | { |
| 1486 | - if (strpos($query['org_view'],'*AND*') !== false) $query['org_view'] = str_replace('*AND*','&',$query['org_view']); |
|
| 1487 | - foreach(explode('|||',$query['org_view']) as $part) |
|
| 1485 | + if (strpos($query['org_view'], '*AND*') !== false) $query['org_view'] = str_replace('*AND*', '&', $query['org_view']); |
|
| 1486 | + foreach (explode('|||', $query['org_view']) as $part) |
|
| 1488 | 1487 | { |
| 1489 | - list($name,$value) = explode(':',$part,2); |
|
| 1488 | + list($name, $value) = explode(':', $part, 2); |
|
| 1490 | 1489 | // do NOT set invalid column, as this gives an SQL error ("AND AND" in sql) |
| 1491 | - if (in_array($name, array('org_name','org_unit','adr_one_location'))) |
|
| 1490 | + if (in_array($name, array('org_name', 'org_unit', 'adr_one_location'))) |
|
| 1492 | 1491 | { |
| 1493 | 1492 | $query['col_filter'][$name] = $value; |
| 1494 | 1493 | } |
| 1495 | 1494 | } |
| 1496 | 1495 | } |
| 1497 | - else if($query['actions'] && !$query['actions']['edit']) |
|
| 1496 | + else if ($query['actions'] && !$query['actions']['edit']) |
|
| 1498 | 1497 | { |
| 1499 | 1498 | // Just switched from org view, update actions |
| 1500 | 1499 | $query['actions'] = $this->get_actions($query['col_filter']['tid'], $query['org_view']); |
| 1501 | 1500 | } |
| 1502 | 1501 | // translate the select order to the really used over all 3 columns |
| 1503 | 1502 | $sort = $query['sort']; |
| 1504 | - switch($query['order']) // "xxx<>'' DESC" sorts contacts with empty order-criteria always at the end |
|
| 1503 | + switch ($query['order']) // "xxx<>'' DESC" sorts contacts with empty order-criteria always at the end |
|
| 1505 | 1504 | { // we don't exclude them, as the total would otherwise depend on the order-criteria |
| 1506 | 1505 | case 'org_name': |
| 1507 | 1506 | $order = "egw_addressbook.org_name<>''DESC,egw_addressbook.org_name $sort,n_family $sort,n_given $sort"; |
@@ -1535,8 +1534,8 @@ discard block |
||
| 1535 | 1534 | } |
| 1536 | 1535 | if ($query['searchletter']) // only show contacts if the order-criteria starts with the given letter |
| 1537 | 1536 | { |
| 1538 | - $no_letter_search = array('adr_one_postalcode', 'adr_two_postalcode', 'contact_id', 'contact_created','contact_modified'); |
|
| 1539 | - $query['col_filter'][] = (in_array($query['order'],$no_letter_search) ? 'org_name' : (substr($query['order'],0,1)=='#'?'':'egw_addressbook.').$query['order']).' '. |
|
| 1537 | + $no_letter_search = array('adr_one_postalcode', 'adr_two_postalcode', 'contact_id', 'contact_created', 'contact_modified'); |
|
| 1538 | + $query['col_filter'][] = (in_array($query['order'], $no_letter_search) ? 'org_name' : (substr($query['order'], 0, 1) == '#' ? '' : 'egw_addressbook.').$query['order']).' '. |
|
| 1540 | 1539 | $GLOBALS['egw']->db->capabilities['case_insensitive_like'].' '.$GLOBALS['egw']->db->quote(strtolower($query['searchletter']).'%'); |
| 1541 | 1540 | } |
| 1542 | 1541 | $wildcard = '%'; |
@@ -1550,39 +1549,39 @@ discard block |
||
| 1550 | 1549 | unset($query['advanced_search']['meth_select']); |
| 1551 | 1550 | } |
| 1552 | 1551 | //if ($do_email ) $email_only = array('id','owner','tid','n_fn','n_family','n_given','org_name','email','email_home'); |
| 1553 | - $rows = parent::search($query['advanced_search'] ? $query['advanced_search'] : $query['search'],$id_only, |
|
| 1554 | - $order,'',$wildcard,false,$op,array((int)$query['start'],(int) $query['num_rows']),$query['col_filter']); |
|
| 1552 | + $rows = parent::search($query['advanced_search'] ? $query['advanced_search'] : $query['search'], $id_only, |
|
| 1553 | + $order, '', $wildcard, false, $op, array((int)$query['start'], (int)$query['num_rows']), $query['col_filter']); |
|
| 1555 | 1554 | |
| 1556 | 1555 | // do we need to read the custom fields, depends on the column is enabled and customfields exist |
| 1557 | 1556 | // $query['csv_export'] allways needs to read ALL cf's |
| 1558 | 1557 | $columselection = $this->prefs['nextmatch-addressbook.'.($do_email ? 'email' : 'index').'.rows']; |
| 1559 | - $available_distib_lists=$this->get_lists(EGW_ACL_READ); |
|
| 1560 | - $columselection = $columselection && !$query['csv_export'] ? explode(',',$columselection) : array(); |
|
| 1558 | + $available_distib_lists = $this->get_lists(EGW_ACL_READ); |
|
| 1559 | + $columselection = $columselection && !$query['csv_export'] ? explode(',', $columselection) : array(); |
|
| 1561 | 1560 | if (!$id_only && $rows) |
| 1562 | 1561 | { |
| 1563 | - $show_custom_fields = (!$columselection || in_array('customfields',$columselection) || $query['csv_export']) && $this->customfields; |
|
| 1564 | - $show_calendar = !$columselection || in_array('calendar_calendar',$columselection); |
|
| 1565 | - $show_distributionlist = !$columselection || in_array('distrib_lists',$columselection) || count($available_distib_lists); |
|
| 1562 | + $show_custom_fields = (!$columselection || in_array('customfields', $columselection) || $query['csv_export']) && $this->customfields; |
|
| 1563 | + $show_calendar = !$columselection || in_array('calendar_calendar', $columselection); |
|
| 1564 | + $show_distributionlist = !$columselection || in_array('distrib_lists', $columselection) || count($available_distib_lists); |
|
| 1566 | 1565 | if ($show_calendar || $show_custom_fields || $show_distributionlist) |
| 1567 | 1566 | { |
| 1568 | - foreach($rows as $val) |
|
| 1567 | + foreach ($rows as $val) |
|
| 1569 | 1568 | { |
| 1570 | 1569 | $ids[] = $val['id']; |
| 1571 | 1570 | } |
| 1572 | 1571 | if ($show_custom_fields) |
| 1573 | 1572 | { |
| 1574 | - foreach($columselection as $col) |
|
| 1573 | + foreach ($columselection as $col) |
|
| 1575 | 1574 | { |
| 1576 | - if ($col[0] == '#') $selected_cfs[] = substr($col,1); |
|
| 1575 | + if ($col[0] == '#') $selected_cfs[] = substr($col, 1); |
|
| 1577 | 1576 | } |
| 1578 | - $customfields = $this->read_customfields($ids,$selected_cfs); |
|
| 1577 | + $customfields = $this->read_customfields($ids, $selected_cfs); |
|
| 1579 | 1578 | } |
| 1580 | 1579 | if ($show_calendar && !empty($ids)) $calendar = $this->read_calendar($ids); |
| 1581 | 1580 | // distributionlist memership for the entrys |
| 1582 | 1581 | //_debug_array($this->get_lists(EGW_ACL_EDIT)); |
| 1583 | 1582 | if ($show_distributionlist && $available_distib_lists) |
| 1584 | 1583 | { |
| 1585 | - $distributionlist = $this->read_distributionlist($ids,array_keys($available_distib_lists)); |
|
| 1584 | + $distributionlist = $this->read_distributionlist($ids, array_keys($available_distib_lists)); |
|
| 1586 | 1585 | } |
| 1587 | 1586 | } |
| 1588 | 1587 | } |
@@ -1591,20 +1590,20 @@ discard block |
||
| 1591 | 1590 | |
| 1592 | 1591 | if ($id_only) |
| 1593 | 1592 | { |
| 1594 | - foreach($rows as $n => $row) |
|
| 1593 | + foreach ($rows as $n => $row) |
|
| 1595 | 1594 | { |
| 1596 | 1595 | $rows[$n] = $row['id']; |
| 1597 | 1596 | } |
| 1598 | - return $this->total; // no need to set other fields or $readonlys |
|
| 1597 | + return $this->total; // no need to set other fields or $readonlys |
|
| 1599 | 1598 | } |
| 1600 | 1599 | $order = $query['order']; |
| 1601 | 1600 | |
| 1602 | 1601 | $readonlys = array(); |
| 1603 | - foreach($rows as $n => &$row) |
|
| 1602 | + foreach ($rows as $n => &$row) |
|
| 1604 | 1603 | { |
| 1605 | 1604 | $given = $row['n_given'] ? $row['n_given'] : ($row['n_prefix'] ? $row['n_prefix'] : ''); |
| 1606 | 1605 | |
| 1607 | - switch($order) |
|
| 1606 | + switch ($order) |
|
| 1608 | 1607 | { |
| 1609 | 1608 | default: // postalcode, created, modified, ... |
| 1610 | 1609 | case 'org_name': |
@@ -1621,37 +1620,37 @@ discard block |
||
| 1621 | 1620 | break; |
| 1622 | 1621 | case 'n_fileas': |
| 1623 | 1622 | if (!$row['n_fileas']) $row['n_fileas'] = $this->fileas($row); |
| 1624 | - list($row['line1'],$row['line2']) = explode(': ',$row['n_fileas']); |
|
| 1623 | + list($row['line1'], $row['line2']) = explode(': ', $row['n_fileas']); |
|
| 1625 | 1624 | break; |
| 1626 | 1625 | } |
| 1627 | - if (isset($this->org_views[(string) $query['org_view']])) |
|
| 1626 | + if (isset($this->org_views[(string)$query['org_view']])) |
|
| 1628 | 1627 | { |
| 1629 | 1628 | $row['type'] = 'home'; |
| 1630 | 1629 | $row['type_label'] = lang('Organisation'); |
| 1631 | 1630 | |
| 1632 | - if ($query['filter'] && !($this->grants[(int)$query['filter']] & EGW_ACL_DELETE)) |
|
| 1631 | + if ($query['filter'] && !($this->grants[(int)$query['filter']]&EGW_ACL_DELETE)) |
|
| 1633 | 1632 | { |
| 1634 | 1633 | $row['class'] .= 'rowNoDelete '; |
| 1635 | 1634 | } |
| 1636 | - $row['class'] .= 'rowNoEdit '; // no edit in OrgView |
|
| 1635 | + $row['class'] .= 'rowNoEdit '; // no edit in OrgView |
|
| 1637 | 1636 | } |
| 1638 | 1637 | else |
| 1639 | 1638 | { |
| 1640 | - $this->type_icon($row['owner'],$row['private'],$row['tid'],$row['type'],$row['type_label']); |
|
| 1639 | + $this->type_icon($row['owner'], $row['private'], $row['tid'], $row['type'], $row['type_label']); |
|
| 1641 | 1640 | |
| 1642 | - static $tel2show = array('tel_work','tel_cell','tel_home','tel_fax'); |
|
| 1641 | + static $tel2show = array('tel_work', 'tel_cell', 'tel_home', 'tel_fax'); |
|
| 1643 | 1642 | static $prefer_marker; |
| 1644 | 1643 | if (is_null($prefer_marker)) |
| 1645 | 1644 | { |
| 1646 | 1645 | // as et2 adds options with .text(), it can't be entities, but php knows no string literals with utf-8 |
| 1647 | 1646 | $prefer_marker = html_entity_decode(' ♥', ENT_NOQUOTES, 'utf-8'); |
| 1648 | 1647 | } |
| 1649 | - foreach($tel2show as $name) |
|
| 1648 | + foreach ($tel2show as $name) |
|
| 1650 | 1649 | { |
| 1651 | - $row[$name] .= ' '.($row['tel_prefer'] == $name ? $prefer_marker : ''); // .' ' to NOT remove the field |
|
| 1650 | + $row[$name] .= ' '.($row['tel_prefer'] == $name ? $prefer_marker : ''); // .' ' to NOT remove the field |
|
| 1652 | 1651 | } |
| 1653 | 1652 | // allways show the prefered phone, if not already shown |
| 1654 | - if (!in_array($row['tel_prefer'],$tel2show) && $row[$row['tel_prefer']]) |
|
| 1653 | + if (!in_array($row['tel_prefer'], $tel2show) && $row[$row['tel_prefer']]) |
|
| 1655 | 1654 | { |
| 1656 | 1655 | $row['tel_prefered'] = $row[$row['tel_prefer']].$prefer_marker; |
| 1657 | 1656 | } |
@@ -1659,32 +1658,32 @@ discard block |
||
| 1659 | 1658 | { |
| 1660 | 1659 | $row['class'] .= 'rowAccount rowNoDelete '; |
| 1661 | 1660 | } |
| 1662 | - elseif (!$this->check_perms(EGW_ACL_DELETE,$row) || (!$GLOBALS['egw_info']['user']['apps']['admin'] && $this->config['history'] != 'userpurge' && $query['col_filter']['tid'] == addressbook_so::DELETED_TYPE)) |
|
| 1661 | + elseif (!$this->check_perms(EGW_ACL_DELETE, $row) || (!$GLOBALS['egw_info']['user']['apps']['admin'] && $this->config['history'] != 'userpurge' && $query['col_filter']['tid'] == addressbook_so::DELETED_TYPE)) |
|
| 1663 | 1662 | { |
| 1664 | 1663 | $row['class'] .= 'rowNoDelete '; |
| 1665 | 1664 | } |
| 1666 | - if (!$this->check_perms(EGW_ACL_EDIT,$row)) |
|
| 1665 | + if (!$this->check_perms(EGW_ACL_EDIT, $row)) |
|
| 1667 | 1666 | { |
| 1668 | 1667 | $row['class'] .= 'rowNoEdit '; |
| 1669 | 1668 | } |
| 1670 | 1669 | |
| 1671 | - unset($row['jpegphoto']); // unused and messes up json encoding (not utf-8) |
|
| 1670 | + unset($row['jpegphoto']); // unused and messes up json encoding (not utf-8) |
|
| 1672 | 1671 | |
| 1673 | 1672 | if (isset($customfields[$row['id']])) |
| 1674 | 1673 | { |
| 1675 | - foreach($this->customfields as $name => $data) |
|
| 1674 | + foreach ($this->customfields as $name => $data) |
|
| 1676 | 1675 | { |
| 1677 | 1676 | $row['#'.$name] = $customfields[$row['id']]['#'.$name]; |
| 1678 | 1677 | } |
| 1679 | 1678 | } |
| 1680 | 1679 | if (isset($distributionlist[$row['id']])) |
| 1681 | 1680 | { |
| 1682 | - $row['distrib_lists'] = implode("\n",array_values($distributionlist[$row['id']])); |
|
| 1681 | + $row['distrib_lists'] = implode("\n", array_values($distributionlist[$row['id']])); |
|
| 1683 | 1682 | //if ($show_distributionlist) $readonlys['distrib_lists'] =true; |
| 1684 | 1683 | } |
| 1685 | 1684 | if (isset($calendar[$row['id']])) |
| 1686 | 1685 | { |
| 1687 | - foreach($calendar[$row['id']] as $name => $data) |
|
| 1686 | + foreach ($calendar[$row['id']] as $name => $data) |
|
| 1688 | 1687 | { |
| 1689 | 1688 | $row[$name] = $data; |
| 1690 | 1689 | } |
@@ -1692,13 +1691,13 @@ discard block |
||
| 1692 | 1691 | } |
| 1693 | 1692 | |
| 1694 | 1693 | // hide region for address format 'postcode_city' |
| 1695 | - if (($row['addr_format'] = $this->addr_format_by_country($row['adr_one_countryname']))=='postcode_city') unset($row['adr_one_region']); |
|
| 1696 | - if (($row['addr_format2'] = $this->addr_format_by_country($row['adr_two_countryname']))=='postcode_city') unset($row['adr_two_region']); |
|
| 1694 | + if (($row['addr_format'] = $this->addr_format_by_country($row['adr_one_countryname'])) == 'postcode_city') unset($row['adr_one_region']); |
|
| 1695 | + if (($row['addr_format2'] = $this->addr_format_by_country($row['adr_two_countryname'])) == 'postcode_city') unset($row['adr_two_region']); |
|
| 1697 | 1696 | |
| 1698 | 1697 | // respect category permissions |
| 1699 | - if(!empty($row['cat_id'])) |
|
| 1698 | + if (!empty($row['cat_id'])) |
|
| 1700 | 1699 | { |
| 1701 | - $row['cat_id'] = $this->categories->check_list(EGW_ACL_READ,$row['cat_id']); |
|
| 1700 | + $row['cat_id'] = $this->categories->check_list(EGW_ACL_READ, $row['cat_id']); |
|
| 1702 | 1701 | } |
| 1703 | 1702 | } |
| 1704 | 1703 | $readonlys['no_distrib_lists'] = (bool)$show_distributionlist; |
@@ -1714,23 +1713,21 @@ discard block |
||
| 1714 | 1713 | $GLOBALS['egw_info']['flags']['app_header'] = lang('addressbook'); |
| 1715 | 1714 | if ($query['filter'] !== '' && !isset($this->org_views[$query['org_view']])) |
| 1716 | 1715 | { |
| 1717 | - $GLOBALS['egw_info']['flags']['app_header'] .= ' '.($query['filter'] == '0' ? lang('accounts') : |
|
| 1718 | - ($GLOBALS['egw']->accounts->get_type($query['filter']) == 'g' ? |
|
| 1719 | - lang('Group %1',$GLOBALS['egw']->accounts->id2name($query['filter'])) : |
|
| 1720 | - common::grab_owner_name((int)$query['filter']). |
|
| 1721 | - (substr($query['filter'],-1) == 'p' ? ' ('.lang('private').')' : ''))); |
|
| 1716 | + $GLOBALS['egw_info']['flags']['app_header'] .= ' '.($query['filter'] == '0' ? lang('accounts') : ($GLOBALS['egw']->accounts->get_type($query['filter']) == 'g' ? |
|
| 1717 | + lang('Group %1', $GLOBALS['egw']->accounts->id2name($query['filter'])) : common::grab_owner_name((int)$query['filter']). |
|
| 1718 | + (substr($query['filter'], -1) == 'p' ? ' ('.lang('private').')' : ''))); |
|
| 1722 | 1719 | } |
| 1723 | 1720 | if ($query['org_view']) |
| 1724 | 1721 | { |
| 1725 | 1722 | $GLOBALS['egw_info']['flags']['app_header'] .= ': '.$query['org_view_label']; |
| 1726 | 1723 | // Make sure option is there |
| 1727 | - if(!array_key_exists($query['org_view'], $this->org_views)) |
|
| 1724 | + if (!array_key_exists($query['org_view'], $this->org_views)) |
|
| 1728 | 1725 | { |
| 1729 | 1726 | $this->org_views += $this->_get_org_name($query['org_view']); |
| 1730 | 1727 | $rows['sel_options']['org_view'] = $this->org_views; |
| 1731 | 1728 | } |
| 1732 | 1729 | } |
| 1733 | - if($query['advanced_search']) |
|
| 1730 | + if ($query['advanced_search']) |
|
| 1734 | 1731 | { |
| 1735 | 1732 | $GLOBALS['egw_info']['flags']['app_header'] .= ': '.lang('Advanced search'); |
| 1736 | 1733 | } |
@@ -1741,11 +1738,11 @@ discard block |
||
| 1741 | 1738 | if ($query['searchletter']) |
| 1742 | 1739 | { |
| 1743 | 1740 | $order = $order == 'n_given' ? lang('first name') : ($order == 'n_family' ? lang('last name') : lang('Organisation')); |
| 1744 | - $GLOBALS['egw_info']['flags']['app_header'] .= ' - '.lang("%1 starts with '%2'",$order,$query['searchletter']); |
|
| 1741 | + $GLOBALS['egw_info']['flags']['app_header'] .= ' - '.lang("%1 starts with '%2'", $order, $query['searchletter']); |
|
| 1745 | 1742 | } |
| 1746 | 1743 | if ($query['search'] && !$query['advanced_search']) // do not add that, if we have advanced search active |
| 1747 | 1744 | { |
| 1748 | - $GLOBALS['egw_info']['flags']['app_header'] .= ' - '.lang("Search for '%1'",$query['search']); |
|
| 1745 | + $GLOBALS['egw_info']['flags']['app_header'] .= ' - '.lang("Search for '%1'", $query['search']); |
|
| 1749 | 1746 | } |
| 1750 | 1747 | return $this->total; |
| 1751 | 1748 | } |
@@ -1759,7 +1756,7 @@ discard block |
||
| 1759 | 1756 | * @param string &$icon icon-name |
| 1760 | 1757 | * @param string &$label translated label |
| 1761 | 1758 | */ |
| 1762 | - function type_icon($owner,$private,$tid,&$icon,&$label) |
|
| 1759 | + function type_icon($owner, $private, $tid, &$icon, &$label) |
|
| 1763 | 1760 | { |
| 1764 | 1761 | if (!$owner) |
| 1765 | 1762 | { |
@@ -1774,7 +1771,7 @@ discard block |
||
| 1774 | 1771 | elseif ($GLOBALS['egw']->accounts->get_type($owner) == 'g') |
| 1775 | 1772 | { |
| 1776 | 1773 | $icon = 'group'; |
| 1777 | - $label = lang('group %1',$GLOBALS['egw']->accounts->id2name($owner)); |
|
| 1774 | + $label = lang('group %1', $GLOBALS['egw']->accounts->id2name($owner)); |
|
| 1778 | 1775 | } |
| 1779 | 1776 | else |
| 1780 | 1777 | { |
@@ -1782,9 +1779,9 @@ discard block |
||
| 1782 | 1779 | $label = $owner == $this->user ? lang('personal') : common::grab_owner_name($owner); |
| 1783 | 1780 | } |
| 1784 | 1781 | // show tid icon for tid!='n' AND only if one is defined |
| 1785 | - if ($tid != 'n' && common::image('addressbook',$this->content_types[$tid]['name'])) |
|
| 1782 | + if ($tid != 'n' && common::image('addressbook', $this->content_types[$tid]['name'])) |
|
| 1786 | 1783 | { |
| 1787 | - $icon = common::image('addressbook',$this->content_types[$tid]['name']); |
|
| 1784 | + $icon = common::image('addressbook', $this->content_types[$tid]['name']); |
|
| 1788 | 1785 | } |
| 1789 | 1786 | |
| 1790 | 1787 | // Legacy - from when icons could be anywhere |
@@ -1802,19 +1799,19 @@ discard block |
||
| 1802 | 1799 | * @param int $_GET['contact_id'] contact_id mainly for popup use |
| 1803 | 1800 | * @param bool $_GET['makecp'] true if you want to copy the contact given by $_GET['contact_id'] |
| 1804 | 1801 | */ |
| 1805 | - function edit($content=null) |
|
| 1802 | + function edit($content = null) |
|
| 1806 | 1803 | { |
| 1807 | 1804 | if (is_array($content)) |
| 1808 | 1805 | { |
| 1809 | 1806 | list($button) = @each($content['button']); |
| 1810 | 1807 | unset($content['button']); |
| 1811 | - $content['private'] = (int) ($content['owner'] && substr($content['owner'],-1) == 'p'); |
|
| 1812 | - $content['owner'] = (string) (int) $content['owner']; |
|
| 1808 | + $content['private'] = (int)($content['owner'] && substr($content['owner'], -1) == 'p'); |
|
| 1809 | + $content['owner'] = (string)(int)$content['owner']; |
|
| 1813 | 1810 | $content['cat_id'] = $this->config['cat_tab'] === 'Tree' ? $content['cat_id_tree'] : $content['cat_id']; |
| 1814 | 1811 | if ($this->config['private_cf_tab']) $content = (array)$content['private_cfs'] + $content; |
| 1815 | 1812 | unset($content['private_cfs']); |
| 1816 | 1813 | |
| 1817 | - switch($button) |
|
| 1814 | + switch ($button) |
|
| 1818 | 1815 | { |
| 1819 | 1816 | case 'save': |
| 1820 | 1817 | case 'apply': |
@@ -1830,7 +1827,7 @@ discard block |
||
| 1830 | 1827 | } |
| 1831 | 1828 | if (is_array($content['upload_photo']) && !empty($content['upload_photo']['tmp_name']) && |
| 1832 | 1829 | $content['upload_photo']['tmp_name'] != 'none' && |
| 1833 | - ($f = fopen($content['upload_photo']['tmp_name'],'r'))) |
|
| 1830 | + ($f = fopen($content['upload_photo']['tmp_name'], 'r'))) |
|
| 1834 | 1831 | { |
| 1835 | 1832 | $content['jpegphoto'] = $this->resize_photo($f); |
| 1836 | 1833 | fclose($f); |
@@ -1847,12 +1844,12 @@ discard block |
||
| 1847 | 1844 | $old_org_entry = $this->read($content['id']); |
| 1848 | 1845 | $old_fullname = ($old_org_entry['n_fn'] ? $old_org_entry['n_fn'] : parent::fullname($old_org_entry)); |
| 1849 | 1846 | } |
| 1850 | - if ( $content['n_fn'] != $fullname || $fullname != $old_fullname) |
|
| 1847 | + if ($content['n_fn'] != $fullname || $fullname != $old_fullname) |
|
| 1851 | 1848 | { |
| 1852 | 1849 | unset($content['n_fn']); |
| 1853 | 1850 | } |
| 1854 | 1851 | // Country codes |
| 1855 | - foreach(array('adr_one', 'adr_two') as $c_prefix) |
|
| 1852 | + foreach (array('adr_one', 'adr_two') as $c_prefix) |
|
| 1856 | 1853 | { |
| 1857 | 1854 | if ($content[$c_prefix.'_countrycode'] == '-custom-') |
| 1858 | 1855 | { |
@@ -1861,7 +1858,7 @@ discard block |
||
| 1861 | 1858 | } |
| 1862 | 1859 | $content['msg'] = ''; |
| 1863 | 1860 | $this->error = false; |
| 1864 | - foreach((array)$content['pre_save_callbacks'] as $callback) |
|
| 1861 | + foreach ((array)$content['pre_save_callbacks'] as $callback) |
|
| 1865 | 1862 | { |
| 1866 | 1863 | try { |
| 1867 | 1864 | if (($success_msg = call_user_func_array($callback, array(&$content)))) |
@@ -1871,7 +1868,7 @@ discard block |
||
| 1871 | 1868 | } |
| 1872 | 1869 | catch (Exception $ex) { |
| 1873 | 1870 | $content['msg'] .= ($content['msg'] ? ', ' : '').$ex->getMessage(); |
| 1874 | - $button = 'apply'; // do not close dialog |
|
| 1871 | + $button = 'apply'; // do not close dialog |
|
| 1875 | 1872 | $this->error = true; |
| 1876 | 1873 | break; |
| 1877 | 1874 | } |
@@ -1884,7 +1881,7 @@ discard block |
||
| 1884 | 1881 | { |
| 1885 | 1882 | $content['msg'] .= ($content['msg'] ? ', ' : '').lang('Contact saved'); |
| 1886 | 1883 | |
| 1887 | - foreach((array)$content['post_save_callbacks'] as $callback) |
|
| 1884 | + foreach ((array)$content['post_save_callbacks'] as $callback) |
|
| 1888 | 1885 | { |
| 1889 | 1886 | try { |
| 1890 | 1887 | if (($success_msg = call_user_func_array($callback, array(&$content)))) |
@@ -1892,55 +1889,55 @@ discard block |
||
| 1892 | 1889 | $content['msg'] .= ', '.$success_msg; |
| 1893 | 1890 | } |
| 1894 | 1891 | } |
| 1895 | - catch(egw_exception_redirect $r) |
|
| 1892 | + catch (egw_exception_redirect $r) |
|
| 1896 | 1893 | { |
| 1897 | 1894 | // catch it to continue execution and rethrow it later |
| 1898 | 1895 | } |
| 1899 | 1896 | catch (Exception $ex) { |
| 1900 | 1897 | $content['msg'] .= ', '.$ex->getMessage(); |
| 1901 | - $button = 'apply'; // do not close dialog |
|
| 1898 | + $button = 'apply'; // do not close dialog |
|
| 1902 | 1899 | $this->error = true; |
| 1903 | 1900 | break; |
| 1904 | 1901 | } |
| 1905 | 1902 | } |
| 1906 | 1903 | |
| 1907 | - if ($content['change_org'] && $old_org_entry && ($changed = $this->changed_fields($old_org_entry,$content,true)) && |
|
| 1908 | - ($members = $this->org_similar($old_org_entry['org_name'],$changed))) |
|
| 1904 | + if ($content['change_org'] && $old_org_entry && ($changed = $this->changed_fields($old_org_entry, $content, true)) && |
|
| 1905 | + ($members = $this->org_similar($old_org_entry['org_name'], $changed))) |
|
| 1909 | 1906 | { |
| 1910 | 1907 | //foreach($changed as $name => $old_value) echo "<p>$name: '$old_value' --> '{$content[$name]}'</p>\n"; |
| 1911 | - list($changed_members,$changed_fields,$failed_members) = $this->change_org($old_org_entry['org_name'],$changed,$content,$members); |
|
| 1908 | + list($changed_members, $changed_fields, $failed_members) = $this->change_org($old_org_entry['org_name'], $changed, $content, $members); |
|
| 1912 | 1909 | if ($changed_members) |
| 1913 | 1910 | { |
| 1914 | - $content['msg'] .= ', '.lang('%1 fields in %2 other organisation member(s) changed',$changed_fields,$changed_members); |
|
| 1911 | + $content['msg'] .= ', '.lang('%1 fields in %2 other organisation member(s) changed', $changed_fields, $changed_members); |
|
| 1915 | 1912 | } |
| 1916 | 1913 | if ($failed_members) |
| 1917 | 1914 | { |
| 1918 | - $content['msg'] .= ', '.lang('failed to change %1 organisation member(s) (insufficent rights) !!!',$failed_members); |
|
| 1915 | + $content['msg'] .= ', '.lang('failed to change %1 organisation member(s) (insufficent rights) !!!', $failed_members); |
|
| 1919 | 1916 | } |
| 1920 | 1917 | } |
| 1921 | 1918 | } |
| 1922 | - elseif($this->error === true) |
|
| 1919 | + elseif ($this->error === true) |
|
| 1923 | 1920 | { |
| 1924 | 1921 | $content['msg'] = lang('Error: the entry has been updated since you opened it for editing!').'<br />'. |
| 1925 | - lang('Copy your changes to the clipboard, %1reload the entry%2 and merge them.','<a href="'. |
|
| 1926 | - htmlspecialchars(egw::link('/index.php',array( |
|
| 1922 | + lang('Copy your changes to the clipboard, %1reload the entry%2 and merge them.', '<a href="'. |
|
| 1923 | + htmlspecialchars(egw::link('/index.php', array( |
|
| 1927 | 1924 | 'menuaction' => 'addressbook.addressbook_ui.edit', |
| 1928 | 1925 | 'contact_id' => $content['id'], |
| 1929 | - ))).'">','</a>'); |
|
| 1930 | - break; // dont refresh the list |
|
| 1926 | + ))).'">', '</a>'); |
|
| 1927 | + break; // dont refresh the list |
|
| 1931 | 1928 | } |
| 1932 | 1929 | else |
| 1933 | 1930 | { |
| 1934 | 1931 | $content['msg'] = lang('Error saving the contact !!!'). |
| 1935 | 1932 | ($this->error ? ' '.$this->error : ''); |
| 1936 | - $button = 'apply'; // to not leave the dialog |
|
| 1933 | + $button = 'apply'; // to not leave the dialog |
|
| 1937 | 1934 | } |
| 1938 | 1935 | // writing links for new entry, existing ones are handled by the widget itself |
| 1939 | 1936 | if ($links && $content['id']) |
| 1940 | 1937 | { |
| 1941 | - egw_link::link('addressbook',$content['id'],$links); |
|
| 1938 | + egw_link::link('addressbook', $content['id'], $links); |
|
| 1942 | 1939 | } |
| 1943 | - egw_framework::refresh_opener($content['msg'], 'addressbook', $content['id'], $content['id'] ? 'edit' : 'add', |
|
| 1940 | + egw_framework::refresh_opener($content['msg'], 'addressbook', $content['id'], $content['id'] ? 'edit' : 'add', |
|
| 1944 | 1941 | null, null, null, $this->error ? 'error' : 'success'); |
| 1945 | 1942 | |
| 1946 | 1943 | // re-throw redirect exception, if there's no error |
@@ -1961,11 +1958,11 @@ discard block |
||
| 1961 | 1958 | break; |
| 1962 | 1959 | |
| 1963 | 1960 | case 'delete': |
| 1964 | - if($this->action('delete',array($content['id']),false,$success,$failed,$action_msg,'',$content['msg'])) |
|
| 1961 | + if ($this->action('delete', array($content['id']), false, $success, $failed, $action_msg, '', $content['msg'])) |
|
| 1965 | 1962 | { |
| 1966 | 1963 | if ($GLOBALS['egw']->currentapp == 'addressbook') |
| 1967 | 1964 | { |
| 1968 | - egw_framework::refresh_opener(lang('Contact deleted'), 'addressbook', $content['id'], 'delete' ); |
|
| 1965 | + egw_framework::refresh_opener(lang('Contact deleted'), 'addressbook', $content['id'], 'delete'); |
|
| 1969 | 1966 | egw_framework::window_close(); |
| 1970 | 1967 | } |
| 1971 | 1968 | else |
@@ -1990,7 +1987,7 @@ discard block |
||
| 1990 | 1987 | // new contact --> set some defaults |
| 1991 | 1988 | if ($contact_id && is_array($content = $this->read($contact_id))) |
| 1992 | 1989 | { |
| 1993 | - $contact_id = $content['id']; // it could have been: "account:$account_id" |
|
| 1990 | + $contact_id = $content['id']; // it could have been: "account:$account_id" |
|
| 1994 | 1991 | if (!$this->check_perms(EGW_ACL_EDIT, $content)) |
| 1995 | 1992 | { |
| 1996 | 1993 | $view = true; |
@@ -1998,7 +1995,7 @@ discard block |
||
| 1998 | 1995 | } |
| 1999 | 1996 | else // not found |
| 2000 | 1997 | { |
| 2001 | - $state = egw_session::appsession('index','addressbook'); |
|
| 1998 | + $state = egw_session::appsession('index', 'addressbook'); |
|
| 2002 | 1999 | // check if we create the new contact in an existing org |
| 2003 | 2000 | if (($org = $_GET['org'])) |
| 2004 | 2001 | { |
@@ -2034,52 +2031,52 @@ discard block |
||
| 2034 | 2031 | { |
| 2035 | 2032 | $content['owner'] = (string)$state['filter']; |
| 2036 | 2033 | } |
| 2037 | - $content['private'] = (int) ($content['owner'] && substr($content['owner'],-1) == 'p'); |
|
| 2038 | - if ($content['owner'] === '' || !($this->grants[$content['owner'] = (string) (int) $content['owner']] & EGW_ACL_ADD)) |
|
| 2034 | + $content['private'] = (int)($content['owner'] && substr($content['owner'], -1) == 'p'); |
|
| 2035 | + if ($content['owner'] === '' || !($this->grants[$content['owner'] = (string)(int)$content['owner']]&EGW_ACL_ADD)) |
|
| 2039 | 2036 | { |
| 2040 | 2037 | $content['owner'] = $this->default_addressbook; |
| 2041 | 2038 | $content['private'] = (int)$this->default_private; |
| 2042 | 2039 | |
| 2043 | - if (!($this->grants[$content['owner'] = (string) (int) $content['owner']] & EGW_ACL_ADD)) |
|
| 2040 | + if (!($this->grants[$content['owner'] = (string)(int)$content['owner']]&EGW_ACL_ADD)) |
|
| 2044 | 2041 | { |
| 2045 | - $content['owner'] = (string) $this->user; |
|
| 2042 | + $content['owner'] = (string)$this->user; |
|
| 2046 | 2043 | $content['private'] = 0; |
| 2047 | 2044 | } |
| 2048 | 2045 | } |
| 2049 | 2046 | $new_type = array_keys($this->content_types); |
| 2050 | 2047 | // fetch active type to preset the type, if param typeid is not passed |
| 2051 | - $active_tid = egw_cache::getSession('addressbook','active_tid'); |
|
| 2048 | + $active_tid = egw_cache::getSession('addressbook', 'active_tid'); |
|
| 2052 | 2049 | if ($active_tid && strtoupper($active_tid) === 'D') unset($active_tid); |
| 2053 | - $content['tid'] = $_GET['typeid'] ? $_GET['typeid'] : ($active_tid?$active_tid:$new_type[0]); |
|
| 2054 | - foreach($this->get_contact_columns() as $field) |
|
| 2050 | + $content['tid'] = $_GET['typeid'] ? $_GET['typeid'] : ($active_tid ? $active_tid : $new_type[0]); |
|
| 2051 | + foreach ($this->get_contact_columns() as $field) |
|
| 2055 | 2052 | { |
| 2056 | 2053 | if ($_GET['presets'][$field]) |
| 2057 | 2054 | { |
| 2058 | - if ($field=='email'||$field=='email_home') |
|
| 2055 | + if ($field == 'email' || $field == 'email_home') |
|
| 2059 | 2056 | { |
| 2060 | - $singleAddress = imap_rfc822_parse_adrlist($_GET['presets'][$field],''); |
|
| 2057 | + $singleAddress = imap_rfc822_parse_adrlist($_GET['presets'][$field], ''); |
|
| 2061 | 2058 | //error_log(__METHOD__.__LINE__.' Address:'.$singleAddress[0]->mailbox."@".$singleAddress[0]->host.", ".$singleAddress[0]->personal); |
| 2062 | - if (!(!is_array($singleAddress) || count($singleAddress)<1)) |
|
| 2059 | + if (!(!is_array($singleAddress) || count($singleAddress) < 1)) |
|
| 2063 | 2060 | { |
| 2064 | 2061 | $content[$field] = $singleAddress[0]->mailbox."@".$singleAddress[0]->host; |
| 2065 | 2062 | if (!empty($singleAddress[0]->personal)) |
| 2066 | 2063 | { |
| 2067 | - if (strpos($singleAddress[0]->personal,',')===false) |
|
| 2064 | + if (strpos($singleAddress[0]->personal, ',') === false) |
|
| 2068 | 2065 | { |
| 2069 | - list($P_n_given,$P_n_family,$P_org_name)=explode(' ',$singleAddress[0]->personal,3); |
|
| 2070 | - if (strlen(trim($P_n_given))>0) $content['n_given'] = trim($P_n_given); |
|
| 2071 | - if (strlen(trim($P_n_family))>0) $content['n_family'] = trim($P_n_family); |
|
| 2072 | - if (strlen(trim($P_org_name))>0) $content['org_name'] = trim($P_org_name); |
|
| 2066 | + list($P_n_given, $P_n_family, $P_org_name) = explode(' ', $singleAddress[0]->personal, 3); |
|
| 2067 | + if (strlen(trim($P_n_given)) > 0) $content['n_given'] = trim($P_n_given); |
|
| 2068 | + if (strlen(trim($P_n_family)) > 0) $content['n_family'] = trim($P_n_family); |
|
| 2069 | + if (strlen(trim($P_org_name)) > 0) $content['org_name'] = trim($P_org_name); |
|
| 2073 | 2070 | } |
| 2074 | 2071 | else |
| 2075 | 2072 | { |
| 2076 | - list($P_n_family,$P_other)=explode(',',$singleAddress[0]->personal,2); |
|
| 2077 | - if (strlen(trim($P_n_family))>0) $content['n_family'] = trim($P_n_family); |
|
| 2078 | - if (strlen(trim($P_other))>0) |
|
| 2073 | + list($P_n_family, $P_other) = explode(',', $singleAddress[0]->personal, 2); |
|
| 2074 | + if (strlen(trim($P_n_family)) > 0) $content['n_family'] = trim($P_n_family); |
|
| 2075 | + if (strlen(trim($P_other)) > 0) |
|
| 2079 | 2076 | { |
| 2080 | - list($P_n_given,$P_org_name)=explode(',',$P_other,2); |
|
| 2081 | - if (strlen(trim($P_n_given))>0) $content['n_given'] = trim($P_n_given); |
|
| 2082 | - if (strlen(trim($P_org_name))>0) $content['org_name'] = trim($P_org_name); |
|
| 2077 | + list($P_n_given, $P_org_name) = explode(',', $P_other, 2); |
|
| 2078 | + if (strlen(trim($P_n_given)) > 0) $content['n_given'] = trim($P_n_given); |
|
| 2079 | + if (strlen(trim($P_org_name)) > 0) $content['org_name'] = trim($P_org_name); |
|
| 2083 | 2080 | } |
| 2084 | 2081 | } |
| 2085 | 2082 | } |
@@ -2097,13 +2094,13 @@ discard block |
||
| 2097 | 2094 | } |
| 2098 | 2095 | if (isset($_GET['presets'])) |
| 2099 | 2096 | { |
| 2100 | - foreach(array('email','email_home','n_family','n_given','org_name') as $field) |
|
| 2097 | + foreach (array('email', 'email_home', 'n_family', 'n_given', 'org_name') as $field) |
|
| 2101 | 2098 | { |
| 2102 | 2099 | if (!empty($content[$field])) |
| 2103 | 2100 | { |
| 2104 | 2101 | //Set the presets fields in content in order to be able to use them later in client side for checking duplication only on first time load |
| 2105 | 2102 | // after save/apply we unset them |
| 2106 | - $content['presets_fields'][]= $field; |
|
| 2103 | + $content['presets_fields'][] = $field; |
|
| 2107 | 2104 | break; |
| 2108 | 2105 | } |
| 2109 | 2106 | } |
@@ -2115,9 +2112,9 @@ discard block |
||
| 2115 | 2112 | //_debug_array($content); |
| 2116 | 2113 | } |
| 2117 | 2114 | |
| 2118 | - if ($_GET['msg']) $content['msg'] = strip_tags($_GET['msg']); // dont allow HTML! |
|
| 2115 | + if ($_GET['msg']) $content['msg'] = strip_tags($_GET['msg']); // dont allow HTML! |
|
| 2119 | 2116 | |
| 2120 | - if($content && $_GET['makecp']) // copy the contact |
|
| 2117 | + if ($content && $_GET['makecp']) // copy the contact |
|
| 2121 | 2118 | { |
| 2122 | 2119 | $this->copy_contact($content); |
| 2123 | 2120 | $content['msg'] = lang('Contact copied'); |
@@ -2131,12 +2128,12 @@ discard block |
||
| 2131 | 2128 | if (!$contact_id && isset($_REQUEST['link_app']) && isset($_REQUEST['link_id']) && !is_array($content['link_to']['to_id'])) |
| 2132 | 2129 | { |
| 2133 | 2130 | $link_ids = is_array($_REQUEST['link_id']) ? $_REQUEST['link_id'] : array($_REQUEST['link_id']); |
| 2134 | - foreach(is_array($_REQUEST['link_app']) ? $_REQUEST['link_app'] : array($_REQUEST['link_app']) as $n => $link_app) |
|
| 2131 | + foreach (is_array($_REQUEST['link_app']) ? $_REQUEST['link_app'] : array($_REQUEST['link_app']) as $n => $link_app) |
|
| 2135 | 2132 | { |
| 2136 | 2133 | $link_id = $link_ids[$n]; |
| 2137 | - if (preg_match('/^[a-z_0-9-]+:[:a-z_0-9-]+$/i',$link_app.':'.$link_id)) // gard against XSS |
|
| 2134 | + if (preg_match('/^[a-z_0-9-]+:[:a-z_0-9-]+$/i', $link_app.':'.$link_id)) // gard against XSS |
|
| 2138 | 2135 | { |
| 2139 | - egw_link::link('addressbook',$content['link_to']['to_id'],$link_app,$link_id); |
|
| 2136 | + egw_link::link('addressbook', $content['link_to']['to_id'], $link_app, $link_id); |
|
| 2140 | 2137 | } |
| 2141 | 2138 | } |
| 2142 | 2139 | } |
@@ -2144,8 +2141,8 @@ discard block |
||
| 2144 | 2141 | if ($content['id']) |
| 2145 | 2142 | { |
| 2146 | 2143 | // last and next calendar date |
| 2147 | - list(,$dates) = each($this->read_calendar(array($content['id']),false)); |
|
| 2148 | - if(is_array($dates)) $content += $dates; |
|
| 2144 | + list(,$dates) = each($this->read_calendar(array($content['id']), false)); |
|
| 2145 | + if (is_array($dates)) $content += $dates; |
|
| 2149 | 2146 | } |
| 2150 | 2147 | // Avoid ID conflict with tree & selectboxes |
| 2151 | 2148 | $content['cat_id_tree'] = $content['cat_id']; |
@@ -2154,7 +2151,7 @@ discard block |
||
| 2154 | 2151 | if ($this->config['private_cf_tab']) |
| 2155 | 2152 | { |
| 2156 | 2153 | $content['private_cfs'] = array(); |
| 2157 | - foreach(config::get_customfields('addressbook', true) as $name => $cf) |
|
| 2154 | + foreach (config::get_customfields('addressbook', true) as $name => $cf) |
|
| 2158 | 2155 | { |
| 2159 | 2156 | if ($cf['private'] && isset($content['#'.$name])) |
| 2160 | 2157 | { |
@@ -2167,7 +2164,7 @@ discard block |
||
| 2167 | 2164 | $content['addr_format2'] = $this->addr_format_by_country($content['adr_two_countryname']); |
| 2168 | 2165 | |
| 2169 | 2166 | //_debug_array($content); |
| 2170 | - $readonlys['button[delete]'] = !$content['owner'] || !$this->check_perms(EGW_ACL_DELETE,$content); |
|
| 2167 | + $readonlys['button[delete]'] = !$content['owner'] || !$this->check_perms(EGW_ACL_DELETE, $content); |
|
| 2171 | 2168 | $readonlys['button[copy]'] = $readonlys['button[edit]'] = $readonlys['button[vcard]'] = true; |
| 2172 | 2169 | $readonlys['button[save]'] = $readonlys['button[apply]'] = $view; |
| 2173 | 2170 | if ($view) |
@@ -2179,19 +2176,18 @@ discard block |
||
| 2179 | 2176 | $sel_options['fileas_type'] = $this->fileas_options($content); |
| 2180 | 2177 | $sel_options['adr_one_countrycode']['-custom-'] = lang('Custom'); |
| 2181 | 2178 | $sel_options['owner'] = $this->get_addressbooks(EGW_ACL_ADD); |
| 2182 | - if ($content['owner']) unset($sel_options['owner'][0]); // do not offer to switch to accounts, as we do not support moving contacts to accounts |
|
| 2183 | - if ((string) $content['owner'] !== '') |
|
| 2179 | + if ($content['owner']) unset($sel_options['owner'][0]); // do not offer to switch to accounts, as we do not support moving contacts to accounts |
|
| 2180 | + if ((string)$content['owner'] !== '') |
|
| 2184 | 2181 | { |
| 2185 | 2182 | if (!isset($sel_options['owner'][(int)$content['owner']])) |
| 2186 | 2183 | { |
| 2187 | - $sel_options['owner'][(int)$content['owner']] = !$content['owner'] ? lang('Accounts') : |
|
| 2188 | - common::grab_owner_name($content['owner']); |
|
| 2184 | + $sel_options['owner'][(int)$content['owner']] = !$content['owner'] ? lang('Accounts') : common::grab_owner_name($content['owner']); |
|
| 2189 | 2185 | } |
| 2190 | - $readonlys['owner'] = !$content['owner'] || // dont allow to move accounts, as this mean deleting the user incl. all content he owns |
|
| 2191 | - $content['id'] && !$this->check_perms(EGW_ACL_DELETE,$content); // you need delete rights to move an existing contact into an other addressbook |
|
| 2186 | + $readonlys['owner'] = !$content['owner'] || // dont allow to move accounts, as this mean deleting the user incl. all content he owns |
|
| 2187 | + $content['id'] && !$this->check_perms(EGW_ACL_DELETE, $content); // you need delete rights to move an existing contact into an other addressbook |
|
| 2192 | 2188 | } |
| 2193 | 2189 | // set the unsupported fields from the backend to readonly |
| 2194 | - foreach($this->get_fields('unsupported',$content['id'],$content['owner']) as $field) |
|
| 2190 | + foreach ($this->get_fields('unsupported', $content['id'], $content['owner']) as $field) |
|
| 2195 | 2191 | { |
| 2196 | 2192 | $readonlys[$field] = true; |
| 2197 | 2193 | } |
@@ -2201,7 +2197,7 @@ discard block |
||
| 2201 | 2197 | $readonlys['__ALL__'] = true; |
| 2202 | 2198 | $readonlys['button[cancel]'] = false; |
| 2203 | 2199 | |
| 2204 | - foreach($this->own_account_acl as $field) |
|
| 2200 | + foreach ($this->own_account_acl as $field) |
|
| 2205 | 2201 | { |
| 2206 | 2202 | $readonlys[$field] = false; |
| 2207 | 2203 | } |
@@ -2209,9 +2205,9 @@ discard block |
||
| 2209 | 2205 | if (isset($readonlys['n_fileas'])) $readonlys['fileas_type'] = $readonlys['n_fileas']; |
| 2210 | 2206 | // disable not needed tabs |
| 2211 | 2207 | $readonlys['tabs']['cats'] = !($content['cat_tab'] = $this->config['cat_tab']); |
| 2212 | - $readonlys['tabs']['custom'] = !$this->customfields || $this->get_backend($content['id'],$content['owner']) == $this->so_accounts; |
|
| 2208 | + $readonlys['tabs']['custom'] = !$this->customfields || $this->get_backend($content['id'], $content['owner']) == $this->so_accounts; |
|
| 2213 | 2209 | $readonlys['tabs']['custom_private'] = $readonlys['tabs']['custom'] || !$this->config['private_cf_tab']; |
| 2214 | - $readonlys['tabs']['distribution_list'] = !$content['distrib_lists'];#false; |
|
| 2210 | + $readonlys['tabs']['distribution_list'] = !$content['distrib_lists']; #false; |
|
| 2215 | 2211 | $readonlys['tabs']['history'] = $this->contact_repository != 'sql' || !$content['id'] || |
| 2216 | 2212 | $this->account_repository != 'sql' && $content['account_id']; |
| 2217 | 2213 | if (!$content['id']) $readonlys['button[delete]'] = !$content['id']; |
@@ -2221,18 +2217,18 @@ discard block |
||
| 2221 | 2217 | // for editing the own account (by a non-admin), enable only the fields allowed via the "own_account_acl" |
| 2222 | 2218 | if (!$content['owner'] && !$this->check_perms(EGW_ACL_EDIT, $content)) |
| 2223 | 2219 | { |
| 2224 | - $this->_set_readonlys_for_own_account_acl($readonlys,$id); |
|
| 2220 | + $this->_set_readonlys_for_own_account_acl($readonlys, $id); |
|
| 2225 | 2221 | } |
| 2226 | - for($i = -23; $i<=23; $i++) $tz[$i] = ($i > 0 ? '+' : '').$i; |
|
| 2222 | + for ($i = -23; $i <= 23; $i++) $tz[$i] = ($i > 0 ? '+' : '').$i; |
|
| 2227 | 2223 | $sel_options['tz'] = $tz; |
| 2228 | 2224 | $content['tz'] = $content['tz'] ? $content['tz'] : '0'; |
| 2229 | 2225 | if (count($this->content_types) > 1) |
| 2230 | 2226 | { |
| 2231 | - foreach($this->content_types as $type => $data) |
|
| 2227 | + foreach ($this->content_types as $type => $data) |
|
| 2232 | 2228 | { |
| 2233 | 2229 | $sel_options['tid'][$type] = $data['name']; |
| 2234 | 2230 | } |
| 2235 | - $content['typegfx'] = html::image('addressbook',$this->content_types[$content['tid']]['options']['icon'],'',' width="16px" height="16px"'); |
|
| 2231 | + $content['typegfx'] = html::image('addressbook', $this->content_types[$content['tid']]['options']['icon'], '', ' width="16px" height="16px"'); |
|
| 2236 | 2232 | } |
| 2237 | 2233 | else |
| 2238 | 2234 | { |
@@ -2246,10 +2242,10 @@ discard block |
||
| 2246 | 2242 | ); |
| 2247 | 2243 | |
| 2248 | 2244 | // Links for deleted entries |
| 2249 | - if($content['tid'] == addressbook_so::DELETED_TYPE) |
|
| 2245 | + if ($content['tid'] == addressbook_so::DELETED_TYPE) |
|
| 2250 | 2246 | { |
| 2251 | 2247 | $content['link_to']['show_deleted'] = true; |
| 2252 | - if(!$GLOBALS['egw_info']['user']['apps']['admin'] && $this->config['history'] != 'userpurge') |
|
| 2248 | + if (!$GLOBALS['egw_info']['user']['apps']['admin'] && $this->config['history'] != 'userpurge') |
|
| 2253 | 2249 | { |
| 2254 | 2250 | $readonlys['button[delete]'] = true; |
| 2255 | 2251 | } |
@@ -2258,33 +2254,33 @@ discard block |
||
| 2258 | 2254 | // Enable history |
| 2259 | 2255 | $this->setup_history($content, $sel_options); |
| 2260 | 2256 | |
| 2261 | - $content['photo'] = $this->photo_src($content['id'],$content['jpegphoto'],'photo',$content['etag']); |
|
| 2257 | + $content['photo'] = $this->photo_src($content['id'], $content['jpegphoto'], 'photo', $content['etag']); |
|
| 2262 | 2258 | |
| 2263 | 2259 | if ($content['private']) $content['owner'] .= 'p'; |
| 2264 | 2260 | |
| 2265 | 2261 | // for custom types, check if we have a custom edit template named "addressbook.edit.$type", $type is the name |
| 2266 | - if (in_array($content['tid'], array('n',self::DELETED_TYPE)) || !$this->tmpl->read('addressbook.edit.'.$this->content_types[$content['tid']]['name'])) |
|
| 2262 | + if (in_array($content['tid'], array('n', self::DELETED_TYPE)) || !$this->tmpl->read('addressbook.edit.'.$this->content_types[$content['tid']]['name'])) |
|
| 2267 | 2263 | { |
| 2268 | 2264 | $this->tmpl->read('addressbook.edit'); |
| 2269 | 2265 | } |
| 2270 | 2266 | |
| 2271 | 2267 | // allow other apps to add tabs to addressbook edit |
| 2272 | 2268 | $preserve = $content; |
| 2273 | - $content['jpegphoto'] = !empty($content['jpegphoto']); // unused and messes up json encoding (not utf-8) |
|
| 2269 | + $content['jpegphoto'] = !empty($content['jpegphoto']); // unused and messes up json encoding (not utf-8) |
|
| 2274 | 2270 | $this->tmpl->setElementAttribute('tabs', 'add_tabs', true); |
| 2275 | - $tabs =& $this->tmpl->getElementAttribute('tabs', 'tabs'); |
|
| 2271 | + $tabs = & $this->tmpl->getElementAttribute('tabs', 'tabs'); |
|
| 2276 | 2272 | if (($first_call = !isset($tabs))) |
| 2277 | 2273 | { |
| 2278 | 2274 | $tabs = array(); |
| 2279 | 2275 | } |
| 2280 | 2276 | //error_log(__LINE__.': '.__METHOD__."() first_call=$first_call"); |
| 2281 | - $hook_data = $GLOBALS['egw']->hooks->process(array('location' => 'addressbook_edit')+$content); |
|
| 2277 | + $hook_data = $GLOBALS['egw']->hooks->process(array('location' => 'addressbook_edit') + $content); |
|
| 2282 | 2278 | //error_log(__METHOD__."() hook_data=".array2string($hook_data)); |
| 2283 | - foreach($hook_data as $extra_tabs) |
|
| 2279 | + foreach ($hook_data as $extra_tabs) |
|
| 2284 | 2280 | { |
| 2285 | 2281 | if (!$extra_tabs) continue; |
| 2286 | 2282 | |
| 2287 | - foreach(isset($extra_tabs[0]) ? $extra_tabs : array($extra_tabs) as $extra_tab) |
|
| 2283 | + foreach (isset($extra_tabs[0]) ? $extra_tabs : array($extra_tabs) as $extra_tab) |
|
| 2288 | 2284 | { |
| 2289 | 2285 | if ($extra_tab['data'] && is_array($extra_tab['data'])) |
| 2290 | 2286 | { |
@@ -2329,15 +2325,15 @@ discard block |
||
| 2329 | 2325 | * @param array &$readonlys |
| 2330 | 2326 | * @param int $id |
| 2331 | 2327 | */ |
| 2332 | - function _set_readonlys_for_own_account_acl(&$readonlys,$id) |
|
| 2328 | + function _set_readonlys_for_own_account_acl(&$readonlys, $id) |
|
| 2333 | 2329 | { |
| 2334 | 2330 | // regular fields depending on the backend |
| 2335 | - foreach($this->get_fields('supported',$id,0) as $field) |
|
| 2331 | + foreach ($this->get_fields('supported', $id, 0) as $field) |
|
| 2336 | 2332 | { |
| 2337 | - if (!$this->own_account_acl || !in_array($field,$this->own_account_acl)) |
|
| 2333 | + if (!$this->own_account_acl || !in_array($field, $this->own_account_acl)) |
|
| 2338 | 2334 | { |
| 2339 | 2335 | $readonlys[$field] = true; |
| 2340 | - switch($field) |
|
| 2336 | + switch ($field) |
|
| 2341 | 2337 | { |
| 2342 | 2338 | case 'tel_work': |
| 2343 | 2339 | case 'tel_cell': |
@@ -2353,16 +2349,16 @@ discard block |
||
| 2353 | 2349 | // custom fields |
| 2354 | 2350 | if ($this->customfields) |
| 2355 | 2351 | { |
| 2356 | - foreach($this->customfields as $name => $data) |
|
| 2352 | + foreach ($this->customfields as $name => $data) |
|
| 2357 | 2353 | { |
| 2358 | - if (!$this->own_account_acl || !in_array('#'.$name,$this->own_account_acl)) |
|
| 2354 | + if (!$this->own_account_acl || !in_array('#'.$name, $this->own_account_acl)) |
|
| 2359 | 2355 | { |
| 2360 | 2356 | $readonlys['#'.$name] = true; |
| 2361 | 2357 | } |
| 2362 | 2358 | } |
| 2363 | 2359 | } |
| 2364 | 2360 | // links |
| 2365 | - if (!$this->own_account_acl || !in_array('link_to',$this->own_account_acl)) |
|
| 2361 | + if (!$this->own_account_acl || !in_array('link_to', $this->own_account_acl)) |
|
| 2366 | 2362 | { |
| 2367 | 2363 | $readonlys['link_to'] = true; |
| 2368 | 2364 | } |
@@ -2380,9 +2376,9 @@ discard block |
||
| 2380 | 2376 | * 'data' => array of id => "full name (addressbook)" pairs |
| 2381 | 2377 | * 'fileas_options' |
| 2382 | 2378 | */ |
| 2383 | - public function ajax_check_values($values, $name, $own_id=0) |
|
| 2379 | + public function ajax_check_values($values, $name, $own_id = 0) |
|
| 2384 | 2380 | { |
| 2385 | - if (preg_match('/^exec\[([^\]]+)\]$/', $name, $matches)) $name = $matches[1]; // remove exec[ ] |
|
| 2381 | + if (preg_match('/^exec\[([^\]]+)\]$/', $name, $matches)) $name = $matches[1]; // remove exec[ ] |
|
| 2386 | 2382 | |
| 2387 | 2383 | $ret = array('doublicates' => array(), 'msg' => null); |
| 2388 | 2384 | |
@@ -2394,7 +2390,7 @@ discard block |
||
| 2394 | 2390 | $contacts = parent::search(array( |
| 2395 | 2391 | 'email' => $values[$name], |
| 2396 | 2392 | 'email_home' => $values[$name], |
| 2397 | - ),$only_keys=false, $order_by='', $extra_cols='', $wildcard='', $empty=False, $op='OR'); |
|
| 2393 | + ), $only_keys = false, $order_by = '', $extra_cols = '', $wildcard = '', $empty = False, $op = 'OR'); |
|
| 2398 | 2394 | } |
| 2399 | 2395 | } |
| 2400 | 2396 | else |
@@ -2406,20 +2402,20 @@ discard block |
||
| 2406 | 2402 | |
| 2407 | 2403 | // if name, firstname or org changed and at least 2 are specified, check for doublicates |
| 2408 | 2404 | if (in_array($name, array('n_given', 'n_family', 'org_name')) && |
| 2409 | - !empty($values['n_given'])+!empty($values['n_family'])+!empty($values['org_name']) >= 2) |
|
| 2405 | + !empty($values['n_given']) + !empty($values['n_family']) + !empty($values['org_name']) >= 2) |
|
| 2410 | 2406 | { |
| 2411 | 2407 | $filter = array(); |
| 2412 | - foreach(array('email', 'n_given', 'n_family', 'org_name') as $n) // use email too, to exclude obvious false positives |
|
| 2408 | + foreach (array('email', 'n_given', 'n_family', 'org_name') as $n) // use email too, to exclude obvious false positives |
|
| 2413 | 2409 | { |
| 2414 | 2410 | if (!empty($values[$n])) $filter[$n] = $values[$n]; |
| 2415 | 2411 | } |
| 2416 | - $contacts = parent::search($criteria='', $only_keys=false, $order_by='', $extra_cols='', $wildcard='', |
|
| 2417 | - $empty=False, $op='AND', $start=false, $filter); |
|
| 2412 | + $contacts = parent::search($criteria = '', $only_keys = false, $order_by = '', $extra_cols = '', $wildcard = '', |
|
| 2413 | + $empty = False, $op = 'AND', $start = false, $filter); |
|
| 2418 | 2414 | } |
| 2419 | 2415 | } |
| 2420 | 2416 | if ($contacts) |
| 2421 | 2417 | { |
| 2422 | - foreach($contacts as $contact) |
|
| 2418 | + foreach ($contacts as $contact) |
|
| 2423 | 2419 | { |
| 2424 | 2420 | if ($own_id && $contact['id'] == $own_id) continue; |
| 2425 | 2421 | |
@@ -2443,26 +2439,24 @@ discard block |
||
| 2443 | 2439 | * |
| 2444 | 2440 | * @param array $content |
| 2445 | 2441 | */ |
| 2446 | - function view(array $content=null) |
|
| 2442 | + function view(array $content = null) |
|
| 2447 | 2443 | { |
| 2448 | 2444 | // CRM list comes from content, request, or preference |
| 2449 | - $crm_list = $content['crm_list'] ? $content['crm_list'] : |
|
| 2450 | - ($_GET['crm_list'] ? $_GET['crm_list'] : $GLOBALS['egw_info']['user']['preferences']['addressbook']['crm_list']); |
|
| 2451 | - if(!$crm_list || $crm_list == '~edit~') $crm_list = 'infolog'; |
|
| 2445 | + $crm_list = $content['crm_list'] ? $content['crm_list'] : ($_GET['crm_list'] ? $_GET['crm_list'] : $GLOBALS['egw_info']['user']['preferences']['addressbook']['crm_list']); |
|
| 2446 | + if (!$crm_list || $crm_list == '~edit~') $crm_list = 'infolog'; |
|
| 2452 | 2447 | |
| 2453 | - if(is_array($content)) |
|
| 2448 | + if (is_array($content)) |
|
| 2454 | 2449 | { |
| 2455 | 2450 | list($button) = each($content['button']); |
| 2456 | 2451 | switch ($content['toolbar'] ? $content['toolbar'] : $button) |
| 2457 | 2452 | { |
| 2458 | - case 'vcard': |
|
| 2459 | - egw::redirect_link('/index.php','menuaction=addressbook.uivcard.out&ab_id=' .$content['id']); |
|
| 2453 | + case 'vcard' : egw::redirect_link('/index.php', 'menuaction=addressbook.uivcard.out&ab_id='.$content['id']); |
|
| 2460 | 2454 | |
| 2461 | 2455 | case 'cancel': |
| 2462 | - egw::redirect_link('/index.php','menuaction=addressbook.addressbook_ui.index&ajax=true'); |
|
| 2456 | + egw::redirect_link('/index.php', 'menuaction=addressbook.addressbook_ui.index&ajax=true'); |
|
| 2463 | 2457 | |
| 2464 | 2458 | case 'delete': |
| 2465 | - egw::redirect_link('/index.php',array( |
|
| 2459 | + egw::redirect_link('/index.php', array( |
|
| 2466 | 2460 | 'menuaction' => 'addressbook.addressbook_ui.index', |
| 2467 | 2461 | 'msg' => $this->delete($content) ? lang('Contact deleted') : lang('Error deleting the contact !!!'), |
| 2468 | 2462 | )); |
@@ -2480,9 +2474,9 @@ discard block |
||
| 2480 | 2474 | $num_rows = $this->get_rows($query, $rows, $readonlys, true); |
| 2481 | 2475 | //error_log(__METHOD__."() get_rows()=$num_rows rows=".array2string($rows)); |
| 2482 | 2476 | $contact_id = $rows[0]; |
| 2483 | - if(!$contact_id || !is_array($content = $this->read($contact_id))) |
|
| 2477 | + if (!$contact_id || !is_array($content = $this->read($contact_id))) |
|
| 2484 | 2478 | { |
| 2485 | - egw::redirect_link('/index.php',array( |
|
| 2479 | + egw::redirect_link('/index.php', array( |
|
| 2486 | 2480 | 'menuaction' => 'addressbook.addressbook_ui.index', |
| 2487 | 2481 | 'msg' => $content, |
| 2488 | 2482 | 'ajax' => 'true' |
@@ -2491,14 +2485,14 @@ discard block |
||
| 2491 | 2485 | $content['index'] = $query['start']; |
| 2492 | 2486 | |
| 2493 | 2487 | // List nextmatch is already there, just update the filter |
| 2494 | - if($contact_id && egw_json_request::isJSONRequest()) |
|
| 2488 | + if ($contact_id && egw_json_request::isJSONRequest()) |
|
| 2495 | 2489 | { |
| 2496 | - switch($crm_list) |
|
| 2490 | + switch ($crm_list) |
|
| 2497 | 2491 | { |
| 2498 | 2492 | case 'infolog': |
| 2499 | 2493 | case 'tracker': |
| 2500 | 2494 | default: |
| 2501 | - egw_json_response::get()->apply('app.addressbook.view_set_list',Array(Array('action'=>'addressbook', 'action_id' => $contact_id))); |
|
| 2495 | + egw_json_response::get()->apply('app.addressbook.view_set_list', Array(Array('action'=>'addressbook', 'action_id' => $contact_id))); |
|
| 2502 | 2496 | break; |
| 2503 | 2497 | } |
| 2504 | 2498 | |
@@ -2529,13 +2523,13 @@ discard block |
||
| 2529 | 2523 | $_GET['index'] = 0; |
| 2530 | 2524 | } |
| 2531 | 2525 | $contact_id = $_GET['contact_id'] ? $_GET['contact_id'] : ((int)$_GET['account_id'] ? 'account:'.(int)$_GET['account_id'] : 0); |
| 2532 | - if(!$contact_id || !is_array($content = $this->read($contact_id))) |
|
| 2526 | + if (!$contact_id || !is_array($content = $this->read($contact_id))) |
|
| 2533 | 2527 | { |
| 2534 | - egw::redirect_link('/index.php',array( |
|
| 2528 | + egw::redirect_link('/index.php', array( |
|
| 2535 | 2529 | 'menuaction' => 'addressbook.addressbook_ui.index', |
| 2536 | 2530 | 'msg' => $content, |
| 2537 | 2531 | 'ajax' => 'true' |
| 2538 | - )+(isset($_GET['search']) ? array('search' => $_GET['search']) : array())); |
|
| 2532 | + ) + (isset($_GET['search']) ? array('search' => $_GET['search']) : array())); |
|
| 2539 | 2533 | } |
| 2540 | 2534 | if (isset($_GET['index'])) |
| 2541 | 2535 | { |
@@ -2548,25 +2542,25 @@ discard block |
||
| 2548 | 2542 | $num_rows = $this->get_rows($query, $rows, $readonlys, true); |
| 2549 | 2543 | } |
| 2550 | 2544 | } |
| 2551 | - $content['jpegphoto'] = !empty($content['jpegphoto']); // unused and messes up json encoding (not utf-8) |
|
| 2545 | + $content['jpegphoto'] = !empty($content['jpegphoto']); // unused and messes up json encoding (not utf-8) |
|
| 2552 | 2546 | |
| 2553 | 2547 | // make everything not explicit mentioned readonly |
| 2554 | 2548 | $readonlys['__ALL__'] = true; |
| 2555 | 2549 | $readonlys['photo'] = $readonlys['button[cancel]'] = $readonlys['button[copy]'] = |
| 2556 | 2550 | $readonlys['button[ok]'] = $readonlys['button[more]'] = $readonlys['toolbar'] = false; |
| 2557 | 2551 | |
| 2558 | - foreach(array_keys($this->contact_fields) as $key) |
|
| 2552 | + foreach (array_keys($this->contact_fields) as $key) |
|
| 2559 | 2553 | { |
| 2560 | - if (in_array($key,array('tel_home','tel_work','tel_cell','tel_fax'))) |
|
| 2554 | + if (in_array($key, array('tel_home', 'tel_work', 'tel_cell', 'tel_fax'))) |
|
| 2561 | 2555 | { |
| 2562 | 2556 | $content[$key.'2'] = $content[$key]; |
| 2563 | 2557 | } |
| 2564 | 2558 | } |
| 2565 | 2559 | |
| 2566 | 2560 | // respect category permissions |
| 2567 | - if(!empty($content['cat_id'])) |
|
| 2561 | + if (!empty($content['cat_id'])) |
|
| 2568 | 2562 | { |
| 2569 | - $content['cat_id'] = $this->categories->check_list(EGW_ACL_READ,$content['cat_id']); |
|
| 2563 | + $content['cat_id'] = $this->categories->check_list(EGW_ACL_READ, $content['cat_id']); |
|
| 2570 | 2564 | } |
| 2571 | 2565 | $content['cat_id_tree'] = $content['cat_id']; |
| 2572 | 2566 | |
@@ -2576,12 +2570,12 @@ discard block |
||
| 2576 | 2570 | 'to_id' => $content['id'], |
| 2577 | 2571 | ); |
| 2578 | 2572 | // Links for deleted entries |
| 2579 | - if($content['tid'] == addressbook_so::DELETED_TYPE) |
|
| 2573 | + if ($content['tid'] == addressbook_so::DELETED_TYPE) |
|
| 2580 | 2574 | { |
| 2581 | 2575 | $content['link_to']['show_deleted'] = true; |
| 2582 | 2576 | } |
| 2583 | - $readonlys['button[delete]'] = !$content['owner'] || !$this->check_perms(EGW_ACL_DELETE,$content); |
|
| 2584 | - $readonlys['button[edit]'] = !$this->check_perms(EGW_ACL_EDIT,$content); |
|
| 2577 | + $readonlys['button[delete]'] = !$content['owner'] || !$this->check_perms(EGW_ACL_DELETE, $content); |
|
| 2578 | + $readonlys['button[edit]'] = !$this->check_perms(EGW_ACL_EDIT, $content); |
|
| 2585 | 2579 | |
| 2586 | 2580 | // how to display addresses |
| 2587 | 2581 | $content['addr_format'] = $this->addr_format_by_country($content['adr_one_countryname']); |
@@ -2589,16 +2583,16 @@ discard block |
||
| 2589 | 2583 | |
| 2590 | 2584 | $sel_options['fileas_type'][$content['fileas_type']] = $this->fileas($content); |
| 2591 | 2585 | $sel_options['owner'] = $this->get_addressbooks(); |
| 2592 | - for($i = -23; $i<=23; $i++) $tz[$i] = ($i > 0 ? '+' : '').$i; |
|
| 2586 | + for ($i = -23; $i <= 23; $i++) $tz[$i] = ($i > 0 ? '+' : '').$i; |
|
| 2593 | 2587 | $sel_options['tz'] = $tz; |
| 2594 | 2588 | $content['tz'] = $content['tz'] ? $content['tz'] : 0; |
| 2595 | 2589 | if (count($this->content_types) > 1) |
| 2596 | 2590 | { |
| 2597 | - foreach($this->content_types as $type => $data) |
|
| 2591 | + foreach ($this->content_types as $type => $data) |
|
| 2598 | 2592 | { |
| 2599 | 2593 | $sel_options['tid'][$type] = $data['name']; |
| 2600 | 2594 | } |
| 2601 | - $content['typegfx'] = html::image('addressbook',$this->content_types[$content['tid']]['options']['icon'],'',' width="16px" height="16px"'); |
|
| 2595 | + $content['typegfx'] = html::image('addressbook', $this->content_types[$content['tid']]['options']['icon'], '', ' width="16px" height="16px"'); |
|
| 2602 | 2596 | } |
| 2603 | 2597 | else |
| 2604 | 2598 | { |
@@ -2615,7 +2609,7 @@ discard block |
||
| 2615 | 2609 | { |
| 2616 | 2610 | $content['owner'] .= 'p'; |
| 2617 | 2611 | } |
| 2618 | - $this->tmpl->set_cell_attribute('change_org','disabled',true); |
|
| 2612 | + $this->tmpl->set_cell_attribute('change_org', 'disabled', true); |
|
| 2619 | 2613 | |
| 2620 | 2614 | // Prevent double countries - invalid code blanks it, disabling doesn't work |
| 2621 | 2615 | $content['adr_one_countrycode'] = '-'; |
@@ -2628,14 +2622,14 @@ discard block |
||
| 2628 | 2622 | $readonlys['tabs']['cats'] = !($content['cat_tab'] = $this->config['cat_tab']); |
| 2629 | 2623 | $readonlys['tabs']['custom'] = !$this->customfields; |
| 2630 | 2624 | $readonlys['tabs']['custom_private'] = !$this->customfields || !$this->config['private_cf_tab']; |
| 2631 | - $readonlys['tabs']['distribution_list'] = !$content['distrib_lists'];#false; |
|
| 2625 | + $readonlys['tabs']['distribution_list'] = !$content['distrib_lists']; #false; |
|
| 2632 | 2626 | $readonlys['tabs']['history'] = $this->contact_repository != 'sql' || !$content['id'] || |
| 2633 | 2627 | $this->account_repository != 'sql' && $content['account_id']; |
| 2634 | 2628 | if ($this->config['private_cf_tab']) $content['no_private_cfs'] = 0; |
| 2635 | 2629 | |
| 2636 | 2630 | // last and next calendar date |
| 2637 | - if (!empty($content['id'])) list(,$dates) = each($this->read_calendar(array($content['id']),false)); |
|
| 2638 | - if(is_array($dates)) $content += $dates; |
|
| 2631 | + if (!empty($content['id'])) list(,$dates) = each($this->read_calendar(array($content['id']), false)); |
|
| 2632 | + if (is_array($dates)) $content += $dates; |
|
| 2639 | 2633 | |
| 2640 | 2634 | // Disable importexport |
| 2641 | 2635 | $GLOBALS['egw_info']['flags']['disable_importexport']['export'] = true; |
@@ -2677,7 +2671,7 @@ discard block |
||
| 2677 | 2671 | { |
| 2678 | 2672 | unset($actions['back']); |
| 2679 | 2673 | } |
| 2680 | - if (!isset($content['index']) || $content['index'] >= $num_rows-1) |
|
| 2674 | + if (!isset($content['index']) || $content['index'] >= $num_rows - 1) |
|
| 2681 | 2675 | { |
| 2682 | 2676 | unset($actions['next']); |
| 2683 | 2677 | } |
@@ -2689,7 +2683,7 @@ discard block |
||
| 2689 | 2683 | // need to load list's app.js now, as exec calls header before other app can include it |
| 2690 | 2684 | egw_framework::validate_file('/'.$crm_list.'/js/app.js'); |
| 2691 | 2685 | |
| 2692 | - $this->tmpl->exec('addressbook.addressbook_ui.view',$content,$sel_options,$readonlys,array( |
|
| 2686 | + $this->tmpl->exec('addressbook.addressbook_ui.view', $content, $sel_options, $readonlys, array( |
|
| 2693 | 2687 | 'id' => $content['id'], |
| 2694 | 2688 | 'index' => $content['index'], |
| 2695 | 2689 | 'crm_list' => $crm_list |
@@ -2697,12 +2691,12 @@ discard block |
||
| 2697 | 2691 | |
| 2698 | 2692 | // Only load this on first time - we're using AJAX, so it stays there through submits. |
| 2699 | 2693 | // Sending it again (via ajax) will break the addressbook.view etemplate2 |
| 2700 | - if($contact_id) |
|
| 2694 | + if ($contact_id) |
|
| 2701 | 2695 | { |
| 2702 | 2696 | $GLOBALS['egw']->hooks->single(array( |
| 2703 | 2697 | 'location' => 'addressbook_view', |
| 2704 | 2698 | 'ab_id' => $content['id'] |
| 2705 | - ),$crm_list); |
|
| 2699 | + ), $crm_list); |
|
| 2706 | 2700 | } |
| 2707 | 2701 | } |
| 2708 | 2702 | |
@@ -2714,30 +2708,30 @@ discard block |
||
| 2714 | 2708 | */ |
| 2715 | 2709 | function email2link($email) |
| 2716 | 2710 | { |
| 2717 | - if (strpos($email,'@') == false) return ''; |
|
| 2711 | + if (strpos($email, '@') == false) return ''; |
|
| 2718 | 2712 | |
| 2719 | - if($GLOBALS['egw_info']['user']['apps']['mail']) |
|
| 2713 | + if ($GLOBALS['egw_info']['user']['apps']['mail']) |
|
| 2720 | 2714 | { |
| 2721 | 2715 | return array( |
| 2722 | 2716 | 'menuaction' => 'mail.mail_compose.compose', |
| 2723 | 2717 | 'send_to' => base64_encode($email) |
| 2724 | 2718 | ); |
| 2725 | 2719 | } |
| 2726 | - if($GLOBALS['egw_info']['user']['apps']['felamimail']) |
|
| 2720 | + if ($GLOBALS['egw_info']['user']['apps']['felamimail']) |
|
| 2727 | 2721 | { |
| 2728 | 2722 | return array( |
| 2729 | 2723 | 'menuaction' => 'felamimail.uicompose.compose', |
| 2730 | 2724 | 'send_to' => base64_encode($email) |
| 2731 | 2725 | ); |
| 2732 | 2726 | } |
| 2733 | - if($GLOBALS['egw_info']['user']['apps']['email']) |
|
| 2727 | + if ($GLOBALS['egw_info']['user']['apps']['email']) |
|
| 2734 | 2728 | { |
| 2735 | 2729 | return array( |
| 2736 | 2730 | 'menuaction' => 'email.uicompose.compose', |
| 2737 | 2731 | 'to' => $email, |
| 2738 | 2732 | ); |
| 2739 | 2733 | } |
| 2740 | - return 'mailto:' . $email; |
|
| 2734 | + return 'mailto:'.$email; |
|
| 2741 | 2735 | } |
| 2742 | 2736 | |
| 2743 | 2737 | /** |
@@ -2746,16 +2740,16 @@ discard block |
||
| 2746 | 2740 | * @param array $_content |
| 2747 | 2741 | * @return string |
| 2748 | 2742 | */ |
| 2749 | - function search($_content=array()) |
|
| 2743 | + function search($_content = array()) |
|
| 2750 | 2744 | { |
| 2751 | - if(!empty($_content)) |
|
| 2745 | + if (!empty($_content)) |
|
| 2752 | 2746 | { |
| 2753 | 2747 | |
| 2754 | 2748 | $_content['cat_id'] = $this->config['cat_tab'] === 'Tree' ? $_content['cat_id_tree'] : $_content['cat_id']; |
| 2755 | 2749 | |
| 2756 | 2750 | $response = egw_json_response::get(); |
| 2757 | 2751 | |
| 2758 | - $query = egw_session::appsession('index','addressbook'); |
|
| 2752 | + $query = egw_session::appsession('index', 'addressbook'); |
|
| 2759 | 2753 | |
| 2760 | 2754 | if ($_content['button']['cancelsearch']) |
| 2761 | 2755 | { |
@@ -2763,26 +2757,26 @@ discard block |
||
| 2763 | 2757 | } |
| 2764 | 2758 | else |
| 2765 | 2759 | { |
| 2766 | - $query['advanced_search'] = array_intersect_key($_content,array_flip(array_merge($this->get_contact_columns(),array('operator','meth_select')))); |
|
| 2760 | + $query['advanced_search'] = array_intersect_key($_content, array_flip(array_merge($this->get_contact_columns(), array('operator', 'meth_select')))); |
|
| 2767 | 2761 | foreach ($query['advanced_search'] as $key => $value) |
| 2768 | 2762 | { |
| 2769 | - if(!$value) unset($query['advanced_search'][$key]); |
|
| 2763 | + if (!$value) unset($query['advanced_search'][$key]); |
|
| 2770 | 2764 | } |
| 2771 | 2765 | // Skip n_fn, it causes problems in sql |
| 2772 | 2766 | unset($query['advanced_search']['n_fn']); |
| 2773 | 2767 | } |
| 2774 | 2768 | $query['search'] = ''; |
| 2775 | 2769 | // store the index state in the session |
| 2776 | - egw_session::appsession('index','addressbook',$query); |
|
| 2770 | + egw_session::appsession('index', 'addressbook', $query); |
|
| 2777 | 2771 | |
| 2778 | 2772 | // store the advanced search in the session to call it again |
| 2779 | - egw_session::appsession('advanced_search','addressbook',$query['advanced_search']); |
|
| 2773 | + egw_session::appsession('advanced_search', 'addressbook', $query['advanced_search']); |
|
| 2780 | 2774 | |
| 2781 | 2775 | // Update client / nextmatch with filters, or clear |
| 2782 | 2776 | $response->call("app.addressbook.adv_search", array('advanced_search' => $_content['button']['search'] ? $query['advanced_search'] : '')); |
| 2783 | 2777 | if ($_content['button']['cancelsearch']) |
| 2784 | 2778 | { |
| 2785 | - egw_framework::window_close (); //$response->addScript('this.close();'); |
|
| 2779 | + egw_framework::window_close(); //$response->addScript('this.close();'); |
|
| 2786 | 2780 | |
| 2787 | 2781 | // No need to reload popup |
| 2788 | 2782 | return; |
@@ -2793,19 +2787,19 @@ discard block |
||
| 2793 | 2787 | |
| 2794 | 2788 | // initialize etemplate arrays |
| 2795 | 2789 | $sel_options = $readonlys = array(); |
| 2796 | - $content = egw_session::appsession('advanced_search','addressbook'); |
|
| 2790 | + $content = egw_session::appsession('advanced_search', 'addressbook'); |
|
| 2797 | 2791 | $content['n_fn'] = $this->fullname($content); |
| 2798 | 2792 | // Avoid ID conflict with tree & selectboxes |
| 2799 | 2793 | $content['cat_id_tree'] = $content['cat_id']; |
| 2800 | 2794 | |
| 2801 | - for($i = -23; $i<=23; $i++) $tz[$i] = ($i > 0 ? '+' : '').$i; |
|
| 2795 | + for ($i = -23; $i <= 23; $i++) $tz[$i] = ($i > 0 ? '+' : '').$i; |
|
| 2802 | 2796 | $sel_options['tz'] = $tz + array('' => lang('doesn\'t matter')); |
| 2803 | 2797 | $sel_options['tid'][] = lang('all'); |
| 2804 | 2798 | //foreach($this->content_types as $type => $data) $sel_options['tid'][$type] = $data['name']; |
| 2805 | 2799 | |
| 2806 | 2800 | // configure search options |
| 2807 | - $sel_options['owner'] = $this->get_addressbooks(EGW_ACL_READ,lang('all')); |
|
| 2808 | - $sel_options['operator'] = array( |
|
| 2801 | + $sel_options['owner'] = $this->get_addressbooks(EGW_ACL_READ, lang('all')); |
|
| 2802 | + $sel_options['operator'] = array( |
|
| 2809 | 2803 | 'AND' => 'AND', |
| 2810 | 2804 | 'OR' => 'OR', |
| 2811 | 2805 | ); |
@@ -2815,12 +2809,12 @@ discard block |
||
| 2815 | 2809 | ); |
| 2816 | 2810 | if ($this->customfields) |
| 2817 | 2811 | { |
| 2818 | - foreach($this->customfields as $name => $data) |
|
| 2812 | + foreach ($this->customfields as $name => $data) |
|
| 2819 | 2813 | { |
| 2820 | 2814 | if (substr($data['type'], 0, 6) == 'select' && !($data['rows'] > 1)) |
| 2821 | 2815 | { |
| 2822 | 2816 | if (!isset($content['#'.$name])) $content['#'.$name] = ''; |
| 2823 | - if(!isset($data['values'][''])) $sel_options['#'.$name][''] = lang('Select one'); |
|
| 2817 | + if (!isset($data['values'][''])) $sel_options['#'.$name][''] = lang('Select one'); |
|
| 2824 | 2818 | } |
| 2825 | 2819 | } |
| 2826 | 2820 | } |
@@ -2845,8 +2839,8 @@ discard block |
||
| 2845 | 2839 | if ($this->config['private_cf_tab']) $content['no_private_cfs'] = 0; |
| 2846 | 2840 | |
| 2847 | 2841 | $this->tmpl->read('addressbook.edit'); |
| 2848 | - $this->tmpl->set_cell_attribute('change_org','disabled',true); |
|
| 2849 | - return $this->tmpl->exec('addressbook.addressbook_ui.search',$content,$sel_options,$readonlys,array(),2); |
|
| 2842 | + $this->tmpl->set_cell_attribute('change_org', 'disabled', true); |
|
| 2843 | + return $this->tmpl->exec('addressbook.addressbook_ui.search', $content, $sel_options, $readonlys, array(), 2); |
|
| 2850 | 2844 | } |
| 2851 | 2845 | |
| 2852 | 2846 | /** |
@@ -2855,16 +2849,15 @@ discard block |
||
| 2855 | 2849 | function photo() |
| 2856 | 2850 | { |
| 2857 | 2851 | ob_start(); |
| 2858 | - $contact_id = isset($_GET['contact_id']) ? $_GET['contact_id'] : |
|
| 2859 | - (isset($_GET['account_id']) ? 'account:'.$_GET['account_id'] : 0); |
|
| 2852 | + $contact_id = isset($_GET['contact_id']) ? $_GET['contact_id'] : (isset($_GET['account_id']) ? 'account:'.$_GET['account_id'] : 0); |
|
| 2860 | 2853 | |
| 2861 | - if (substr($contact_id,0,8) == 'account:') |
|
| 2854 | + if (substr($contact_id, 0, 8) == 'account:') |
|
| 2862 | 2855 | { |
| 2863 | - $contact_id = $GLOBALS['egw']->accounts->id2name(substr($contact_id,8),'person_id'); |
|
| 2856 | + $contact_id = $GLOBALS['egw']->accounts->id2name(substr($contact_id, 8), 'person_id'); |
|
| 2864 | 2857 | } |
| 2865 | 2858 | if (!($contact = $this->read($contact_id)) || !$contact['jpegphoto']) |
| 2866 | 2859 | { |
| 2867 | - egw::redirect(common::image('addressbook','photo')); |
|
| 2860 | + egw::redirect(common::image('addressbook', 'photo')); |
|
| 2868 | 2861 | } |
| 2869 | 2862 | // use an etag over the image mapp |
| 2870 | 2863 | $etag = '"'.$contact['id'].':'.$contact['etag'].'"'; |
@@ -2876,7 +2869,7 @@ discard block |
||
| 2876 | 2869 | // different url with different etag parameter will force a reload |
| 2877 | 2870 | if (isset($_GET['etag'])) |
| 2878 | 2871 | { |
| 2879 | - egw_session::cache_control(30*86400); // cache for 30 days |
|
| 2872 | + egw_session::cache_control(30 * 86400); // cache for 30 days |
|
| 2880 | 2873 | } |
| 2881 | 2874 | // if servers send a If-None-Match header, response with 304 Not Modified, if etag matches |
| 2882 | 2875 | if (isset($_SERVER['HTTP_IF_NONE_MATCH']) && $_SERVER['HTTP_IF_NONE_MATCH'] === $etag) |
@@ -2928,14 +2921,14 @@ discard block |
||
| 2928 | 2921 | parse_navbar(); |
| 2929 | 2922 | |
| 2930 | 2923 | // check if user has admin rights AND if a valid fileas type is given (Security) |
| 2931 | - if (!$this->is_admin() || $_GET['type'] != '' && !in_array($_GET['type'],$this->fileas_types)) |
|
| 2924 | + if (!$this->is_admin() || $_GET['type'] != '' && !in_array($_GET['type'], $this->fileas_types)) |
|
| 2932 | 2925 | { |
| 2933 | 2926 | echo '<h1>'.lang('Permission denied !!!')."</h1>\n"; |
| 2934 | 2927 | } |
| 2935 | 2928 | else |
| 2936 | 2929 | { |
| 2937 | - $updated = parent::set_all_fileas($_GET['type'],(boolean)$_GET['all'],$errors,true); // true = ignore acl |
|
| 2938 | - echo '<p style="margin-top: 20px;"><b>'.lang('%1 contacts updated (%2 errors).',$updated,$errors)."</b></p>\n"; |
|
| 2930 | + $updated = parent::set_all_fileas($_GET['type'], (boolean)$_GET['all'], $errors, true); // true = ignore acl |
|
| 2931 | + echo '<p style="margin-top: 20px;"><b>'.lang('%1 contacts updated (%2 errors).', $updated, $errors)."</b></p>\n"; |
|
| 2939 | 2932 | } |
| 2940 | 2933 | common::egw_footer(); |
| 2941 | 2934 | } |
@@ -2958,8 +2951,8 @@ discard block |
||
| 2958 | 2951 | } |
| 2959 | 2952 | else |
| 2960 | 2953 | { |
| 2961 | - $updated = parent::set_all_cleanup($errors,true); // true = ignore acl |
|
| 2962 | - echo '<p style="margin-top: 20px;"><b>'.lang('%1 contacts updated (%2 errors).',$updated,$errors)."</b></p>\n"; |
|
| 2954 | + $updated = parent::set_all_cleanup($errors, true); // true = ignore acl |
|
| 2955 | + echo '<p style="margin-top: 20px;"><b>'.lang('%1 contacts updated (%2 errors).', $updated, $errors)."</b></p>\n"; |
|
| 2963 | 2956 | } |
| 2964 | 2957 | common::egw_footer(); |
| 2965 | 2958 | } |
@@ -2972,7 +2965,7 @@ discard block |
||
| 2972 | 2965 | if ($this->contact_repository == 'ldap' || !$content['id'] || |
| 2973 | 2966 | $this->account_repository == 'ldap' && $content['account_id']) |
| 2974 | 2967 | { |
| 2975 | - return; // no history for ldap as history table only allows integer id's |
|
| 2968 | + return; // no history for ldap as history table only allows integer id's |
|
| 2976 | 2969 | } |
| 2977 | 2970 | $content['history'] = array( |
| 2978 | 2971 | 'id' => $content['id'], |
@@ -2987,7 +2980,7 @@ discard block |
||
| 2987 | 2980 | ), |
| 2988 | 2981 | ); |
| 2989 | 2982 | |
| 2990 | - foreach($this->content_types as $id => $settings) |
|
| 2983 | + foreach ($this->content_types as $id => $settings) |
|
| 2991 | 2984 | { |
| 2992 | 2985 | $content['history']['status-widgets']['tid'][$id] = $settings['name']; |
| 2993 | 2986 | } |
@@ -84,7 +84,10 @@ discard block |
||
| 84 | 84 | ); |
| 85 | 85 | |
| 86 | 86 | // make sure the hook for export_limit is registered |
| 87 | - if (!$GLOBALS['egw']->hooks->hook_exists('export_limit','addressbook')) $GLOBALS['egw']->hooks->register_single_app_hook('addressbook','export_limit'); |
|
| 87 | + if (!$GLOBALS['egw']->hooks->hook_exists('export_limit','addressbook')) |
|
| 88 | + { |
|
| 89 | + $GLOBALS['egw']->hooks->register_single_app_hook('addressbook','export_limit'); |
|
| 90 | + } |
|
| 88 | 91 | |
| 89 | 92 | $this->config =& $GLOBALS['egw_info']['server']; |
| 90 | 93 | |
@@ -123,15 +126,21 @@ discard block |
||
| 123 | 126 | { |
| 124 | 127 | $do_email = $content['do_email']; |
| 125 | 128 | |
| 126 | - if (isset($content['nm']['rows']['delete'])) // handle a single delete like delete with the checkboxes |
|
| 129 | + if (isset($content['nm']['rows']['delete'])) |
|
| 130 | + { |
|
| 131 | + // handle a single delete like delete with the checkboxes |
|
| 127 | 132 | { |
| 128 | 133 | list($id) = @each($content['nm']['rows']['delete']); |
| 134 | + } |
|
| 129 | 135 | $content['nm']['action'] = 'delete'; |
| 130 | 136 | $content['nm']['selected'] = array($id); |
| 131 | 137 | } |
| 132 | - if (isset($content['nm']['rows']['document'])) // handle insert in default document button like an action |
|
| 138 | + if (isset($content['nm']['rows']['document'])) |
|
| 139 | + { |
|
| 140 | + // handle insert in default document button like an action |
|
| 133 | 141 | { |
| 134 | 142 | list($id) = @each($content['nm']['rows']['document']); |
| 143 | + } |
|
| 135 | 144 | $content['nm']['action'] = 'document'; |
| 136 | 145 | $content['nm']['selected'] = array($id); |
| 137 | 146 | } |
@@ -141,10 +150,13 @@ discard block |
||
| 141 | 150 | { |
| 142 | 151 | $msg = lang('You need to select some contacts first'); |
| 143 | 152 | } |
| 144 | - elseif ($content['nm']['action'] == 'view') // org-view via context menu |
|
| 153 | + elseif ($content['nm']['action'] == 'view') |
|
| 154 | + { |
|
| 155 | + // org-view via context menu |
|
| 145 | 156 | { |
| 146 | 157 | $content['nm']['org_view'] = array_shift($content['nm']['selected']); |
| 147 | 158 | } |
| 159 | + } |
|
| 148 | 160 | else |
| 149 | 161 | { |
| 150 | 162 | if ($this->action($content['nm']['action'],$content['nm']['selected'],$content['nm']['select_all'], |
@@ -166,10 +178,13 @@ discard block |
||
| 166 | 178 | list($org) = each($content['nm']['rows']['infolog']); |
| 167 | 179 | return $this->infolog_org_view($org); |
| 168 | 180 | } |
| 169 | - if ($content['nm']['rows']['view']) // show all contacts of an organisation |
|
| 181 | + if ($content['nm']['rows']['view']) |
|
| 182 | + { |
|
| 183 | + // show all contacts of an organisation |
|
| 170 | 184 | { |
| 171 | 185 | list($org_view) = each($content['nm']['rows']['view']); |
| 172 | 186 | } |
| 187 | + } |
|
| 173 | 188 | else |
| 174 | 189 | { |
| 175 | 190 | $org_view = $content['nm']['org_view']; |
@@ -259,10 +274,14 @@ discard block |
||
| 259 | 274 | } |
| 260 | 275 | |
| 261 | 276 | // Search parameter passed in |
| 262 | - if ($_GET['search']) { |
|
| 277 | + if ($_GET['search']) |
|
| 278 | + { |
|
| 263 | 279 | $content['nm']['search'] = $_GET['search']; |
| 264 | 280 | } |
| 265 | - if (isset($typeselection)) $content['nm']['col_filter']['tid'] = $typeselection; |
|
| 281 | + if (isset($typeselection)) |
|
| 282 | + { |
|
| 283 | + $content['nm']['col_filter']['tid'] = $typeselection; |
|
| 284 | + } |
|
| 266 | 285 | // save the tid for use in creating new addressbook entrys via UI. Current tid is to be used as type of new entrys |
| 267 | 286 | //error_log(__METHOD__.__LINE__.' '.$content['nm']['col_filter']['tid']); |
| 268 | 287 | egw_cache::setSession('addressbook','active_tid',$content['nm']['col_filter']['tid']); |
@@ -300,7 +319,10 @@ discard block |
||
| 300 | 319 | $sel_options['adr_one_countrycode']['-custom-'] = lang('No country selected'); |
| 301 | 320 | |
| 302 | 321 | // if there is any export limit set, pass it on to the nextmatch, to be evaluated by the export |
| 303 | - if (isset($this->config['contact_export_limit']) && (int)$this->config['contact_export_limit']) $content['nm']['export_limit']=$this->config['contact_export_limit']; |
|
| 322 | + if (isset($this->config['contact_export_limit']) && (int)$this->config['contact_export_limit']) |
|
| 323 | + { |
|
| 324 | + $content['nm']['export_limit']=$this->config['contact_export_limit']; |
|
| 325 | + } |
|
| 304 | 326 | |
| 305 | 327 | // dont show tid-selection if we have only one content_type |
| 306 | 328 | // be a bit more sophisticated about it |
@@ -311,7 +333,10 @@ discard block |
||
| 311 | 333 | //_debug_array(array('Typefilter:'=> $content['nm']['col_filter']['tid'],'Available Types:'=>$availabletypes,'action:'=>'remove invalid filter')); |
| 312 | 334 | unset($content['nm']['col_filter']['tid']); |
| 313 | 335 | } |
| 314 | - if (!isset($content['nm']['col_filter']['tid'])) $content['nm']['col_filter']['tid'] = $availabletypes[0]; |
|
| 336 | + if (!isset($content['nm']['col_filter']['tid'])) |
|
| 337 | + { |
|
| 338 | + $content['nm']['col_filter']['tid'] = $availabletypes[0]; |
|
| 339 | + } |
|
| 315 | 340 | if (count($this->content_types) > 1) |
| 316 | 341 | { |
| 317 | 342 | foreach($this->content_types as $tid => $data) |
@@ -405,7 +430,10 @@ discard block |
||
| 405 | 430 | $crm_apps = array('infolog','tracker'); |
| 406 | 431 | foreach($crm_apps as $app) |
| 407 | 432 | { |
| 408 | - if ($GLOBALS['egw_info']['user']['apps'][$app]) $crm_count++; |
|
| 433 | + if ($GLOBALS['egw_info']['user']['apps'][$app]) |
|
| 434 | + { |
|
| 435 | + $crm_count++; |
|
| 436 | + } |
|
| 409 | 437 | } |
| 410 | 438 | if($crm_count > 1) |
| 411 | 439 | { |
@@ -459,7 +487,10 @@ discard block |
||
| 459 | 487 | ), |
| 460 | 488 | ), |
| 461 | 489 | ); |
| 462 | - if (!$GLOBALS['egw_info']['user']['apps']['preferences']) unset($actions['cats']['children']['cat_edit']); |
|
| 490 | + if (!$GLOBALS['egw_info']['user']['apps']['preferences']) |
|
| 491 | + { |
|
| 492 | + unset($actions['cats']['children']['cat_edit']); |
|
| 493 | + } |
|
| 463 | 494 | // Submenu for all distributionlist stuff |
| 464 | 495 | $actions['lists'] = array( |
| 465 | 496 | 'caption' => 'Distribution lists', |
@@ -472,7 +503,9 @@ discard block |
||
| 472 | 503 | ), |
| 473 | 504 | 'group' => $group, |
| 474 | 505 | ); |
| 475 | - if (($add_lists = $this->get_lists(EGW_ACL_EDIT))) // do we have distribution lists?, and are we allowed to edit them |
|
| 506 | + if (($add_lists = $this->get_lists(EGW_ACL_EDIT))) |
|
| 507 | + { |
|
| 508 | + // do we have distribution lists?, and are we allowed to edit them |
|
| 476 | 509 | { |
| 477 | 510 | $actions['lists']['children'] += array( |
| 478 | 511 | 'to_list' => array( |
@@ -508,6 +541,7 @@ discard block |
||
| 508 | 541 | 'fieldValue' => '!', // enable if list != '' |
| 509 | 542 | ), |
| 510 | 543 | ); |
| 544 | + } |
|
| 511 | 545 | if(is_subclass_of('etemplate', 'etemplate_new')) |
| 512 | 546 | { |
| 513 | 547 | $actions['lists']['children']['remove_from_list']['fieldId'] = 'filter2'; |
@@ -516,9 +550,13 @@ discard block |
||
| 516 | 550 | } |
| 517 | 551 | } |
| 518 | 552 | // move to AB |
| 519 | - if (($move2addressbooks = $this->get_addressbooks(EGW_ACL_ADD))) // do we have addressbooks, we should |
|
| 553 | + if (($move2addressbooks = $this->get_addressbooks(EGW_ACL_ADD))) |
|
| 554 | + { |
|
| 555 | + // do we have addressbooks, we should |
|
| 520 | 556 | { |
| 521 | - unset($move2addressbooks[0]); // do not offer action to move contact to an account, as we dont support that currrently |
|
| 557 | + unset($move2addressbooks[0]); |
|
| 558 | + } |
|
| 559 | + // do not offer action to move contact to an account, as we dont support that currrently |
|
| 522 | 560 | foreach($move2addressbooks as $owner => $label) |
| 523 | 561 | { |
| 524 | 562 | $this->type_icon((int)$owner, substr($owner,-1) == 'p', 'n', $icon, $type_label); |
@@ -642,7 +680,9 @@ discard block |
||
| 642 | 680 | |
| 643 | 681 | ); |
| 644 | 682 | if (!$this->prefs['preferredMail']) |
| 645 | - $actions['email']['children']['email_business']['checked'] = true; |
|
| 683 | + { |
|
| 684 | + $actions['email']['children']['email_business']['checked'] = true; |
|
| 685 | + } |
|
| 646 | 686 | |
| 647 | 687 | if ($GLOBALS['egw_info']['user']['apps']['filemanager']) |
| 648 | 688 | { |
@@ -726,7 +766,10 @@ discard block |
||
| 726 | 766 | 'disableClass' => 'rowNoEdit', |
| 727 | 767 | ); |
| 728 | 768 | } |
| 729 | - if (isset($actions['export']['children']['csv']) && !importexport_helper_functions::has_definitions('addressbook','export')) unset($actions['export']['children']['csv']); |
|
| 769 | + if (isset($actions['export']['children']['csv']) && !importexport_helper_functions::has_definitions('addressbook','export')) |
|
| 770 | + { |
|
| 771 | + unset($actions['export']['children']['csv']); |
|
| 772 | + } |
|
| 730 | 773 | |
| 731 | 774 | //echo "<p>".__METHOD__."($do_email, $tid_filter, $org_view)</p>\n"; _debug_array($actions); |
| 732 | 775 | |
@@ -749,11 +792,17 @@ discard block |
||
| 749 | 792 | private function _get_org_name($org) |
| 750 | 793 | { |
| 751 | 794 | $org_name = array(); |
| 752 | - if (strpos($org,'*AND*')!== false) $org = str_replace('*AND*','&',$org); |
|
| 795 | + if (strpos($org,'*AND*')!== false) |
|
| 796 | + { |
|
| 797 | + $org = str_replace('*AND*','&',$org); |
|
| 798 | + } |
|
| 753 | 799 | foreach(explode('|||',$org) as $part) |
| 754 | 800 | { |
| 755 | 801 | list(,$name) = explode(':',$part,2); |
| 756 | - if ($name) $org_name[] = $name; |
|
| 802 | + if ($name) |
|
| 803 | + { |
|
| 804 | + $org_name[] = $name; |
|
| 805 | + } |
|
| 757 | 806 | } |
| 758 | 807 | $org_name = implode(': ',$org_name); |
| 759 | 808 | return $org_name ? array($org => $org_name) : array(); |
@@ -815,9 +864,15 @@ discard block |
||
| 815 | 864 | $org_contacts = array(); |
| 816 | 865 | $query = $query == null ? egw_session::appsession('index','addressbook') : $query; |
| 817 | 866 | $query['num_rows'] = -1; // all |
| 818 | - if(!is_array($query['col_filter'])) $query['col_filter'] = array(); |
|
| 867 | + if(!is_array($query['col_filter'])) |
|
| 868 | + { |
|
| 869 | + $query['col_filter'] = array(); |
|
| 870 | + } |
|
| 819 | 871 | |
| 820 | - if(!is_array($org)) $org = array($org); |
|
| 872 | + if(!is_array($org)) |
|
| 873 | + { |
|
| 874 | + $org = array($org); |
|
| 875 | + } |
|
| 821 | 876 | foreach($org as $org_name) |
| 822 | 877 | { |
| 823 | 878 | error_log("Org: $org_name"); |
@@ -846,14 +901,23 @@ discard block |
||
| 846 | 901 | $query['searchletter'] = ''; |
| 847 | 902 | $this->get_rows($query,$checked,$readonlys,true); // true = only return the id's |
| 848 | 903 | |
| 849 | - if (count($checked) > 1) // use a nicely formatted org-name as title in infolog |
|
| 904 | + if (count($checked) > 1) |
|
| 905 | + { |
|
| 906 | + // use a nicely formatted org-name as title in infolog |
|
| 850 | 907 | { |
| 851 | 908 | $parts = array(); |
| 852 | - if (strpos($org,'*AND*')!== false) $org = str_replace('*AND*','&',$org); |
|
| 909 | + } |
|
| 910 | + if (strpos($org,'*AND*')!== false) |
|
| 911 | + { |
|
| 912 | + $org = str_replace('*AND*','&',$org); |
|
| 913 | + } |
|
| 853 | 914 | foreach(explode('|||',$org) as $part) |
| 854 | 915 | { |
| 855 | 916 | list(,$part) = explode(':',$part,2); |
| 856 | - if ($part) $parts[] = $part; |
|
| 917 | + if ($part) |
|
| 918 | + { |
|
| 919 | + $parts[] = $part; |
|
| 920 | + } |
|
| 857 | 921 | } |
| 858 | 922 | $org = implode(', ',$parts); |
| 859 | 923 | } |
@@ -877,13 +941,19 @@ discard block |
||
| 877 | 941 | |
| 878 | 942 | $response = egw_json_response::get(); |
| 879 | 943 | |
| 880 | - if ($success) $response->addScript(egw_framework::set_onload('')); |
|
| 944 | + if ($success) |
|
| 945 | + { |
|
| 946 | + $response->addScript(egw_framework::set_onload('')); |
|
| 947 | + } |
|
| 881 | 948 | |
| 882 | 949 | // close window only if no errors AND something added |
| 883 | 950 | if ($failed || !$success) |
| 884 | 951 | { |
| 885 | - if (!$msg) $msg = $failed ? lang('%1 contact(s) %2, %3 failed because of insufficent rights !!!',$success,$action_msg,$failed) : |
|
| 952 | + if (!$msg) |
|
| 953 | + { |
|
| 954 | + $msg = $failed ? lang('%1 contact(s) %2, %3 failed because of insufficent rights !!!',$success,$action_msg,$failed) : |
|
| 886 | 955 | lang('%1 contact(s) %2',$success,$action_msg); |
| 956 | + } |
|
| 887 | 957 | |
| 888 | 958 | $response->addScript("alert('".addslashes($msg)."')"); |
| 889 | 959 | // reset the filter |
@@ -891,7 +961,10 @@ discard block |
||
| 891 | 961 | } |
| 892 | 962 | else |
| 893 | 963 | { |
| 894 | - if (!$msg) $msg = lang('%1 contact(s) %2',$success,$action_msg); |
|
| 964 | + if (!$msg) |
|
| 965 | + { |
|
| 966 | + $msg = lang('%1 contact(s) %2',$success,$action_msg); |
|
| 967 | + } |
|
| 895 | 968 | $response->addScript("alert('".addslashes($msg)."')"); |
| 896 | 969 | $response->addScript('egw(window).close();'); |
| 897 | 970 | } |
@@ -986,10 +1059,16 @@ discard block |
||
| 986 | 1059 | $query['org_view'] = $id; |
| 987 | 1060 | unset($query['filter2']); |
| 988 | 1061 | $this->get_rows($query,$extra,$readonlys,true); // true = only return the id's |
| 989 | - if ($extra[0]) $org_contacts = array_merge($org_contacts,$extra); |
|
| 1062 | + if ($extra[0]) |
|
| 1063 | + { |
|
| 1064 | + $org_contacts = array_merge($org_contacts,$extra); |
|
| 1065 | + } |
|
| 990 | 1066 | } |
| 991 | 1067 | } |
| 992 | - if ($org_contacts) $checked = array_unique($checked ? array_merge($checked,$org_contacts) : $org_contacts); |
|
| 1068 | + if ($org_contacts) |
|
| 1069 | + { |
|
| 1070 | + $checked = array_unique($checked ? array_merge($checked,$org_contacts) : $org_contacts); |
|
| 1071 | + } |
|
| 993 | 1072 | //_debug_array($checked); exit; |
| 994 | 1073 | |
| 995 | 1074 | if (substr($action,0,8) == 'move_to_') |
@@ -1006,9 +1085,12 @@ discard block |
||
| 1006 | 1085 | $document = substr($action,9); |
| 1007 | 1086 | $action = 'document'; |
| 1008 | 1087 | } |
| 1009 | - elseif(substr($action,0,4) == 'cat_') // cat_add_123 or cat_del_456 |
|
| 1088 | + elseif(substr($action,0,4) == 'cat_') |
|
| 1089 | + { |
|
| 1090 | + // cat_add_123 or cat_del_456 |
|
| 1010 | 1091 | { |
| 1011 | 1092 | $cat_id = (int)substr($action, 8); |
| 1093 | + } |
|
| 1012 | 1094 | $action = substr($action,0,7); |
| 1013 | 1095 | } |
| 1014 | 1096 | // Security: stop non-admins to export more then the configured number of contacts |
@@ -1054,7 +1136,10 @@ discard block |
||
| 1054 | 1136 | return false; |
| 1055 | 1137 | |
| 1056 | 1138 | case 'document': |
| 1057 | - if (!$document) $document = $this->prefs['default_document']; |
|
| 1139 | + if (!$document) |
|
| 1140 | + { |
|
| 1141 | + $document = $this->prefs['default_document']; |
|
| 1142 | + } |
|
| 1058 | 1143 | $document_merge = new addressbook_merge(); |
| 1059 | 1144 | $msg = $document_merge->download($document, $checked, '', $this->prefs['document_dir']); |
| 1060 | 1145 | $failed = count($checked); |
@@ -1210,19 +1295,25 @@ discard block |
||
| 1210 | 1295 | break; |
| 1211 | 1296 | |
| 1212 | 1297 | default: // move to an other addressbook |
| 1213 | - if (!(int)$action || !($this->grants[(string) (int) $action] & EGW_ACL_EDIT)) // might be ADD in the future |
|
| 1298 | + if (!(int)$action || !($this->grants[(string) (int) $action] & EGW_ACL_EDIT)) |
|
| 1299 | + { |
|
| 1300 | + // might be ADD in the future |
|
| 1214 | 1301 | { |
| 1215 | 1302 | return false; |
| 1216 | 1303 | } |
| 1304 | + } |
|
| 1217 | 1305 | if (!$checkboxes['move_to_copy']) |
| 1218 | 1306 | { |
| 1219 | 1307 | $action_msg = lang('moved'); |
| 1220 | 1308 | if (($Ok = !!($contact = $this->read($id)) && $this->check_perms(EGW_ACL_DELETE,$contact))) |
| 1221 | 1309 | { |
| 1222 | - if (!$contact['owner']) // no (mass-)move of accounts |
|
| 1310 | + if (!$contact['owner']) |
|
| 1311 | + { |
|
| 1312 | + // no (mass-)move of accounts |
|
| 1223 | 1313 | { |
| 1224 | 1314 | $Ok = false; |
| 1225 | 1315 | } |
| 1316 | + } |
|
| 1226 | 1317 | elseif ($contact['owner'] != (int)$action || $contact['private'] != (int)(substr($action,-1) == 'p')) |
| 1227 | 1318 | { |
| 1228 | 1319 | $contact['owner'] = (int) $action; |
@@ -1311,9 +1402,12 @@ discard block |
||
| 1311 | 1402 | $do_email = $query['do_email']; |
| 1312 | 1403 | $what = $query['sitemgr_display'] ? $query['sitemgr_display'] : ($do_email ? 'email' : 'index'); |
| 1313 | 1404 | |
| 1314 | - if (!$id_only && !$query['csv_export']) // do NOT store state for csv_export or querying id's (no regular view) |
|
| 1405 | + if (!$id_only && !$query['csv_export']) |
|
| 1406 | + { |
|
| 1407 | + // do NOT store state for csv_export or querying id's (no regular view) |
|
| 1315 | 1408 | { |
| 1316 | 1409 | $store_query = $query; |
| 1410 | + } |
|
| 1317 | 1411 | // Do not store these |
| 1318 | 1412 | foreach(array('options-cat_id','actions') as $key) |
| 1319 | 1413 | { |
@@ -1325,14 +1419,25 @@ discard block |
||
| 1325 | 1419 | { |
| 1326 | 1420 | $old_state = egw_session::appsession($what,'addressbook'); |
| 1327 | 1421 | } |
| 1328 | - if (!isset($this->org_views[(string) $query['org_view']])) // we dont have an org view, unset the according col_filters |
|
| 1422 | + if (!isset($this->org_views[(string) $query['org_view']])) |
|
| 1423 | + { |
|
| 1424 | + // we dont have an org view, unset the according col_filters |
|
| 1329 | 1425 | { |
| 1330 | 1426 | if (isset($query['col_filter']['org_name'])) unset($query['col_filter']['org_name']); |
| 1331 | - if (isset($query['col_filter']['adr_one_locality'])) unset($query['col_filter']['adr_one_locality']); |
|
| 1332 | - if (isset($query['col_filter']['org_unit'])) unset($query['col_filter']['org_unit']); |
|
| 1427 | + } |
|
| 1428 | + if (isset($query['col_filter']['adr_one_locality'])) |
|
| 1429 | + { |
|
| 1430 | + unset($query['col_filter']['adr_one_locality']); |
|
| 1431 | + } |
|
| 1432 | + if (isset($query['col_filter']['org_unit'])) |
|
| 1433 | + { |
|
| 1434 | + unset($query['col_filter']['org_unit']); |
|
| 1435 | + } |
|
| 1333 | 1436 | } |
| 1334 | 1437 | |
| 1335 | - if (isset($this->org_views[(string) $query['org_view']])) // we have an org view, reset the advanced search |
|
| 1438 | + if (isset($this->org_views[(string) $query['org_view']])) |
|
| 1439 | + { |
|
| 1440 | + // we have an org view, reset the advanced search |
|
| 1336 | 1441 | { |
| 1337 | 1442 | //_debug_array(array('Search'=>$query['search'], |
| 1338 | 1443 | // 'AdvancedSearch'=>$query['advanced_search'])); |
@@ -1340,23 +1445,30 @@ discard block |
||
| 1340 | 1445 | //unset($query['advanced_search']); |
| 1341 | 1446 | if(!$query['search'] && $old_state['advanced_search']) $query['advanced_search'] = $old_state['advanced_search']; |
| 1342 | 1447 | } |
| 1343 | - elseif(!$query['search'] && $old_state['advanced_search']) // eg. paging in an advanced search |
|
| 1448 | + } |
|
| 1449 | + elseif(!$query['search'] && $old_state['advanced_search']) |
|
| 1450 | + { |
|
| 1451 | + // eg. paging in an advanced search |
|
| 1344 | 1452 | { |
| 1345 | 1453 | $query['advanced_search'] = $old_state['advanced_search']; |
| 1346 | 1454 | } |
| 1455 | + } |
|
| 1347 | 1456 | if ($do_email && etemplate::$loop) |
| 1348 | - { // remove previous addEmail() calls, otherwise they will be run again |
|
| 1457 | + { |
|
| 1458 | +// remove previous addEmail() calls, otherwise they will be run again |
|
| 1349 | 1459 | egw_framework::set_onload(preg_replace('/addEmail\([^)]+\);/','',egw_framework::set_onload()),true); |
| 1350 | 1460 | } |
| 1351 | 1461 | |
| 1352 | 1462 | // Make sure old lettersearch filter doesn't stay - current letter filter will be added later |
| 1353 | 1463 | foreach($query['col_filter'] as $key => $col_filter) |
| 1354 | 1464 | { |
| 1355 | - if(!is_numeric($key)) continue; |
|
| 1465 | + if(!is_numeric($key)) |
|
| 1466 | + { |
|
| 1467 | + continue; |
|
| 1468 | + } |
|
| 1356 | 1469 | if(preg_match('/'.$GLOBALS['egw']->db->capabilities['case_insensitive_like']. |
| 1357 | 1470 | ' '.$GLOBALS['egw']->db->quote('[a-z]%').'$/i',$col_filter) == 1 |
| 1358 | - ) |
|
| 1359 | - { |
|
| 1471 | + ) { |
|
| 1360 | 1472 | unset($query['col_filter'][$key]); |
| 1361 | 1473 | } |
| 1362 | 1474 | } |
@@ -1367,9 +1479,13 @@ discard block |
||
| 1367 | 1479 | // check if accounts are stored in ldap, which does NOT yet support the org-views |
| 1368 | 1480 | if ($this->so_accounts && $query['filter'] === '0' && $query['org_view']) |
| 1369 | 1481 | { |
| 1370 | - if ($old_state['filter'] === '0') // user changed to org_view |
|
| 1482 | + if ($old_state['filter'] === '0') |
|
| 1483 | + { |
|
| 1484 | + // user changed to org_view |
|
| 1371 | 1485 | { |
| 1372 | - $query['filter'] = ''; // --> change filter to all contacts |
|
| 1486 | + $query['filter'] = ''; |
|
| 1487 | + } |
|
| 1488 | + // --> change filter to all contacts |
|
| 1373 | 1489 | } |
| 1374 | 1490 | else // user changed to accounts |
| 1375 | 1491 | { |
@@ -1406,9 +1522,12 @@ discard block |
||
| 1406 | 1522 | { |
| 1407 | 1523 | unset($query['col_filter']['cat_id']); |
| 1408 | 1524 | } |
| 1409 | - if ($query['filter'] !== '') // not all addressbooks |
|
| 1525 | + if ($query['filter'] !== '') |
|
| 1526 | + { |
|
| 1527 | + // not all addressbooks |
|
| 1410 | 1528 | { |
| 1411 | 1529 | $query['col_filter']['owner'] = (string) (int) $query['filter']; |
| 1530 | + } |
|
| 1412 | 1531 | |
| 1413 | 1532 | if ($this->private_addressbook) |
| 1414 | 1533 | { |
@@ -1420,10 +1539,13 @@ discard block |
||
| 1420 | 1539 | unset($query['col_filter']['owner']); |
| 1421 | 1540 | unset($query['col_filter']['private']); |
| 1422 | 1541 | } |
| 1423 | - if ((int)$query['filter2']) // not no distribution list |
|
| 1542 | + if ((int)$query['filter2']) |
|
| 1543 | + { |
|
| 1544 | + // not no distribution list |
|
| 1424 | 1545 | { |
| 1425 | 1546 | $query['col_filter']['list'] = (string) (int) $query['filter2']; |
| 1426 | 1547 | } |
| 1548 | + } |
|
| 1427 | 1549 | else |
| 1428 | 1550 | { |
| 1429 | 1551 | unset($query['col_filter']['list']); |
@@ -1435,12 +1557,15 @@ discard block |
||
| 1435 | 1557 | // enable/disable distribution lists depending on backend |
| 1436 | 1558 | $query['no_filter2'] = !$this->lists_available($query['filter']); |
| 1437 | 1559 | |
| 1438 | - if (isset($this->org_views[(string) $query['org_view']])) // we have an org view |
|
| 1560 | + if (isset($this->org_views[(string) $query['org_view']])) |
|
| 1561 | + { |
|
| 1562 | + // we have an org view |
|
| 1439 | 1563 | { |
| 1440 | 1564 | if($query['actions'] && $query['actions']['open']) |
| 1441 | 1565 | { |
| 1442 | 1566 | // Just switched from contact view, update actions |
| 1443 | 1567 | $query['actions'] = $this->get_actions($query['col_filter']['tid'], $query['org_view']); |
| 1568 | + } |
|
| 1444 | 1569 | } |
| 1445 | 1570 | unset($query['col_filter']['list']); // does not work together |
| 1446 | 1571 | $query['no_filter2'] = true; // switch the distribution list selection off |
@@ -1481,9 +1606,12 @@ discard block |
||
| 1481 | 1606 | { |
| 1482 | 1607 | $query['template'] = $do_email ? 'addressbook.email.rows' : 'addressbook.index.rows'; |
| 1483 | 1608 | } |
| 1484 | - if ($query['org_view']) // view the contacts of one organisation only |
|
| 1609 | + if ($query['org_view']) |
|
| 1610 | + { |
|
| 1611 | + // view the contacts of one organisation only |
|
| 1485 | 1612 | { |
| 1486 | 1613 | if (strpos($query['org_view'],'*AND*') !== false) $query['org_view'] = str_replace('*AND*','&',$query['org_view']); |
| 1614 | + } |
|
| 1487 | 1615 | foreach(explode('|||',$query['org_view']) as $part) |
| 1488 | 1616 | { |
| 1489 | 1617 | list($name,$value) = explode(':',$part,2); |
@@ -1502,14 +1630,18 @@ discard block |
||
| 1502 | 1630 | // translate the select order to the really used over all 3 columns |
| 1503 | 1631 | $sort = $query['sort']; |
| 1504 | 1632 | switch($query['order']) // "xxx<>'' DESC" sorts contacts with empty order-criteria always at the end |
| 1505 | - { // we don't exclude them, as the total would otherwise depend on the order-criteria |
|
| 1633 | + { |
|
| 1634 | +// we don't exclude them, as the total would otherwise depend on the order-criteria |
|
| 1506 | 1635 | case 'org_name': |
| 1507 | 1636 | $order = "egw_addressbook.org_name<>''DESC,egw_addressbook.org_name $sort,n_family $sort,n_given $sort"; |
| 1508 | 1637 | break; |
| 1509 | 1638 | default: |
| 1510 | - if ($query['order'][0] == '#') // we order by a custom field |
|
| 1639 | + if ($query['order'][0] == '#') |
|
| 1640 | + { |
|
| 1641 | + // we order by a custom field |
|
| 1511 | 1642 | { |
| 1512 | 1643 | $order = "{$query['order']} $sort,org_name $sort,n_family $sort,n_given $sort"; |
| 1644 | + } |
|
| 1513 | 1645 | break; |
| 1514 | 1646 | } |
| 1515 | 1647 | $query['order'] = 'n_family'; |
@@ -1533,9 +1665,12 @@ discard block |
||
| 1533 | 1665 | case 'contact_id': |
| 1534 | 1666 | $order = "egw_addressbook.$query[order] $sort"; |
| 1535 | 1667 | } |
| 1536 | - if ($query['searchletter']) // only show contacts if the order-criteria starts with the given letter |
|
| 1668 | + if ($query['searchletter']) |
|
| 1669 | + { |
|
| 1670 | + // only show contacts if the order-criteria starts with the given letter |
|
| 1537 | 1671 | { |
| 1538 | 1672 | $no_letter_search = array('adr_one_postalcode', 'adr_two_postalcode', 'contact_id', 'contact_created','contact_modified'); |
| 1673 | + } |
|
| 1539 | 1674 | $query['col_filter'][] = (in_array($query['order'],$no_letter_search) ? 'org_name' : (substr($query['order'],0,1)=='#'?'':'egw_addressbook.').$query['order']).' '. |
| 1540 | 1675 | $GLOBALS['egw']->db->capabilities['case_insensitive_like'].' '.$GLOBALS['egw']->db->quote(strtolower($query['searchletter']).'%'); |
| 1541 | 1676 | } |
@@ -1573,11 +1708,17 @@ discard block |
||
| 1573 | 1708 | { |
| 1574 | 1709 | foreach($columselection as $col) |
| 1575 | 1710 | { |
| 1576 | - if ($col[0] == '#') $selected_cfs[] = substr($col,1); |
|
| 1711 | + if ($col[0] == '#') |
|
| 1712 | + { |
|
| 1713 | + $selected_cfs[] = substr($col,1); |
|
| 1714 | + } |
|
| 1577 | 1715 | } |
| 1578 | 1716 | $customfields = $this->read_customfields($ids,$selected_cfs); |
| 1579 | 1717 | } |
| 1580 | - if ($show_calendar && !empty($ids)) $calendar = $this->read_calendar($ids); |
|
| 1718 | + if ($show_calendar && !empty($ids)) |
|
| 1719 | + { |
|
| 1720 | + $calendar = $this->read_calendar($ids); |
|
| 1721 | + } |
|
| 1581 | 1722 | // distributionlist memership for the entrys |
| 1582 | 1723 | //_debug_array($this->get_lists(EGW_ACL_EDIT)); |
| 1583 | 1724 | if ($show_distributionlist && $available_distib_lists) |
@@ -1587,7 +1728,10 @@ discard block |
||
| 1587 | 1728 | } |
| 1588 | 1729 | } |
| 1589 | 1730 | } |
| 1590 | - if (!$rows) $rows = array(); |
|
| 1731 | + if (!$rows) |
|
| 1732 | + { |
|
| 1733 | + $rows = array(); |
|
| 1734 | + } |
|
| 1591 | 1735 | |
| 1592 | 1736 | if ($id_only) |
| 1593 | 1737 | { |
@@ -1620,7 +1764,10 @@ discard block |
||
| 1620 | 1764 | $row['line2'] = $row['org_name']; |
| 1621 | 1765 | break; |
| 1622 | 1766 | case 'n_fileas': |
| 1623 | - if (!$row['n_fileas']) $row['n_fileas'] = $this->fileas($row); |
|
| 1767 | + if (!$row['n_fileas']) |
|
| 1768 | + { |
|
| 1769 | + $row['n_fileas'] = $this->fileas($row); |
|
| 1770 | + } |
|
| 1624 | 1771 | list($row['line1'],$row['line2']) = explode(': ',$row['n_fileas']); |
| 1625 | 1772 | break; |
| 1626 | 1773 | } |
@@ -1692,8 +1839,14 @@ discard block |
||
| 1692 | 1839 | } |
| 1693 | 1840 | |
| 1694 | 1841 | // hide region for address format 'postcode_city' |
| 1695 | - if (($row['addr_format'] = $this->addr_format_by_country($row['adr_one_countryname']))=='postcode_city') unset($row['adr_one_region']); |
|
| 1696 | - if (($row['addr_format2'] = $this->addr_format_by_country($row['adr_two_countryname']))=='postcode_city') unset($row['adr_two_region']); |
|
| 1842 | + if (($row['addr_format'] = $this->addr_format_by_country($row['adr_one_countryname']))=='postcode_city') |
|
| 1843 | + { |
|
| 1844 | + unset($row['adr_one_region']); |
|
| 1845 | + } |
|
| 1846 | + if (($row['addr_format2'] = $this->addr_format_by_country($row['adr_two_countryname']))=='postcode_city') |
|
| 1847 | + { |
|
| 1848 | + unset($row['adr_two_region']); |
|
| 1849 | + } |
|
| 1697 | 1850 | |
| 1698 | 1851 | // respect category permissions |
| 1699 | 1852 | if(!empty($row['cat_id'])) |
@@ -1704,7 +1857,10 @@ discard block |
||
| 1704 | 1857 | $readonlys['no_distrib_lists'] = (bool)$show_distributionlist; |
| 1705 | 1858 | |
| 1706 | 1859 | // disable customfields column, if we have no customefield(s) |
| 1707 | - if (!$this->customfields) $rows['no_customfields'] = true; |
|
| 1860 | + if (!$this->customfields) |
|
| 1861 | + { |
|
| 1862 | + $rows['no_customfields'] = true; |
|
| 1863 | + } |
|
| 1708 | 1864 | |
| 1709 | 1865 | $rows['order'] = $order; |
| 1710 | 1866 | $rows['call_popup'] = $this->config['call_popup']; |
@@ -1743,10 +1899,13 @@ discard block |
||
| 1743 | 1899 | $order = $order == 'n_given' ? lang('first name') : ($order == 'n_family' ? lang('last name') : lang('Organisation')); |
| 1744 | 1900 | $GLOBALS['egw_info']['flags']['app_header'] .= ' - '.lang("%1 starts with '%2'",$order,$query['searchletter']); |
| 1745 | 1901 | } |
| 1746 | - if ($query['search'] && !$query['advanced_search']) // do not add that, if we have advanced search active |
|
| 1902 | + if ($query['search'] && !$query['advanced_search']) |
|
| 1903 | + { |
|
| 1904 | + // do not add that, if we have advanced search active |
|
| 1747 | 1905 | { |
| 1748 | 1906 | $GLOBALS['egw_info']['flags']['app_header'] .= ' - '.lang("Search for '%1'",$query['search']); |
| 1749 | 1907 | } |
| 1908 | + } |
|
| 1750 | 1909 | return $this->total; |
| 1751 | 1910 | } |
| 1752 | 1911 | |
@@ -1811,7 +1970,10 @@ discard block |
||
| 1811 | 1970 | $content['private'] = (int) ($content['owner'] && substr($content['owner'],-1) == 'p'); |
| 1812 | 1971 | $content['owner'] = (string) (int) $content['owner']; |
| 1813 | 1972 | $content['cat_id'] = $this->config['cat_tab'] === 'Tree' ? $content['cat_id_tree'] : $content['cat_id']; |
| 1814 | - if ($this->config['private_cf_tab']) $content = (array)$content['private_cfs'] + $content; |
|
| 1973 | + if ($this->config['private_cf_tab']) |
|
| 1974 | + { |
|
| 1975 | + $content = (array)$content['private_cfs'] + $content; |
|
| 1976 | + } |
|
| 1815 | 1977 | unset($content['private_cfs']); |
| 1816 | 1978 | |
| 1817 | 1979 | switch($button) |
@@ -2004,7 +2166,10 @@ discard block |
||
| 2004 | 2166 | { |
| 2005 | 2167 | // arguments containing a comma get quoted by etemplate/js/nextmatch_action.js |
| 2006 | 2168 | // leading to error in egw_db::column_data_implode, if not unquoted |
| 2007 | - if ($org[0] == '"') $org = substr($org, 1, -1); |
|
| 2169 | + if ($org[0] == '"') |
|
| 2170 | + { |
|
| 2171 | + $org = substr($org, 1, -1); |
|
| 2172 | + } |
|
| 2008 | 2173 | $content = $this->read_org($org); |
| 2009 | 2174 | } |
| 2010 | 2175 | elseif ($state['org_view'] && !isset($this->org_views[$state['org_view']])) |
@@ -2024,7 +2189,10 @@ discard block |
||
| 2024 | 2189 | $content['adr_two_countryname'] = |
| 2025 | 2190 | $GLOBALS['egw']->country->get_full_name($GLOBALS['egw_info']['user']['preferences']['common']['country']); |
| 2026 | 2191 | } |
| 2027 | - if ($this->prefs['fileas_default']) $content['fileas_type'] = $this->prefs['fileas_default']; |
|
| 2192 | + if ($this->prefs['fileas_default']) |
|
| 2193 | + { |
|
| 2194 | + $content['fileas_type'] = $this->prefs['fileas_default']; |
|
| 2195 | + } |
|
| 2028 | 2196 | } |
| 2029 | 2197 | if (isset($_GET['owner']) && $_GET['owner'] !== '') |
| 2030 | 2198 | { |
@@ -2049,7 +2217,10 @@ discard block |
||
| 2049 | 2217 | $new_type = array_keys($this->content_types); |
| 2050 | 2218 | // fetch active type to preset the type, if param typeid is not passed |
| 2051 | 2219 | $active_tid = egw_cache::getSession('addressbook','active_tid'); |
| 2052 | - if ($active_tid && strtoupper($active_tid) === 'D') unset($active_tid); |
|
| 2220 | + if ($active_tid && strtoupper($active_tid) === 'D') |
|
| 2221 | + { |
|
| 2222 | + unset($active_tid); |
|
| 2223 | + } |
|
| 2053 | 2224 | $content['tid'] = $_GET['typeid'] ? $_GET['typeid'] : ($active_tid?$active_tid:$new_type[0]); |
| 2054 | 2225 | foreach($this->get_contact_columns() as $field) |
| 2055 | 2226 | { |
@@ -2067,19 +2238,37 @@ discard block |
||
| 2067 | 2238 | if (strpos($singleAddress[0]->personal,',')===false) |
| 2068 | 2239 | { |
| 2069 | 2240 | list($P_n_given,$P_n_family,$P_org_name)=explode(' ',$singleAddress[0]->personal,3); |
| 2070 | - if (strlen(trim($P_n_given))>0) $content['n_given'] = trim($P_n_given); |
|
| 2071 | - if (strlen(trim($P_n_family))>0) $content['n_family'] = trim($P_n_family); |
|
| 2072 | - if (strlen(trim($P_org_name))>0) $content['org_name'] = trim($P_org_name); |
|
| 2241 | + if (strlen(trim($P_n_given))>0) |
|
| 2242 | + { |
|
| 2243 | + $content['n_given'] = trim($P_n_given); |
|
| 2244 | + } |
|
| 2245 | + if (strlen(trim($P_n_family))>0) |
|
| 2246 | + { |
|
| 2247 | + $content['n_family'] = trim($P_n_family); |
|
| 2248 | + } |
|
| 2249 | + if (strlen(trim($P_org_name))>0) |
|
| 2250 | + { |
|
| 2251 | + $content['org_name'] = trim($P_org_name); |
|
| 2252 | + } |
|
| 2073 | 2253 | } |
| 2074 | 2254 | else |
| 2075 | 2255 | { |
| 2076 | 2256 | list($P_n_family,$P_other)=explode(',',$singleAddress[0]->personal,2); |
| 2077 | - if (strlen(trim($P_n_family))>0) $content['n_family'] = trim($P_n_family); |
|
| 2257 | + if (strlen(trim($P_n_family))>0) |
|
| 2258 | + { |
|
| 2259 | + $content['n_family'] = trim($P_n_family); |
|
| 2260 | + } |
|
| 2078 | 2261 | if (strlen(trim($P_other))>0) |
| 2079 | 2262 | { |
| 2080 | 2263 | list($P_n_given,$P_org_name)=explode(',',$P_other,2); |
| 2081 | - if (strlen(trim($P_n_given))>0) $content['n_given'] = trim($P_n_given); |
|
| 2082 | - if (strlen(trim($P_org_name))>0) $content['org_name'] = trim($P_org_name); |
|
| 2264 | + if (strlen(trim($P_n_given))>0) |
|
| 2265 | + { |
|
| 2266 | + $content['n_given'] = trim($P_n_given); |
|
| 2267 | + } |
|
| 2268 | + if (strlen(trim($P_org_name))>0) |
|
| 2269 | + { |
|
| 2270 | + $content['org_name'] = trim($P_org_name); |
|
| 2271 | + } |
|
| 2083 | 2272 | } |
| 2084 | 2273 | } |
| 2085 | 2274 | } |
@@ -2107,7 +2296,10 @@ discard block |
||
| 2107 | 2296 | break; |
| 2108 | 2297 | } |
| 2109 | 2298 | } |
| 2110 | - if (empty($content['n_fn'])) $content['n_fn'] = $this->fullname($content); |
|
| 2299 | + if (empty($content['n_fn'])) |
|
| 2300 | + { |
|
| 2301 | + $content['n_fn'] = $this->fullname($content); |
|
| 2302 | + } |
|
| 2111 | 2303 | } |
| 2112 | 2304 | $content['creator'] = $this->user; |
| 2113 | 2305 | $content['created'] = $this->now_su; |
@@ -2115,17 +2307,27 @@ discard block |
||
| 2115 | 2307 | //_debug_array($content); |
| 2116 | 2308 | } |
| 2117 | 2309 | |
| 2118 | - if ($_GET['msg']) $content['msg'] = strip_tags($_GET['msg']); // dont allow HTML! |
|
| 2310 | + if ($_GET['msg']) |
|
| 2311 | + { |
|
| 2312 | + $content['msg'] = strip_tags($_GET['msg']); |
|
| 2313 | + } |
|
| 2314 | + // dont allow HTML! |
|
| 2119 | 2315 | |
| 2120 | - if($content && $_GET['makecp']) // copy the contact |
|
| 2316 | + if($content && $_GET['makecp']) |
|
| 2317 | + { |
|
| 2318 | + // copy the contact |
|
| 2121 | 2319 | { |
| 2122 | 2320 | $this->copy_contact($content); |
| 2321 | + } |
|
| 2123 | 2322 | $content['msg'] = lang('Contact copied'); |
| 2124 | 2323 | $view = false; |
| 2125 | 2324 | } |
| 2126 | 2325 | else |
| 2127 | 2326 | { |
| 2128 | - if (is_numeric($contact_id)) $content['link_to']['to_id'] = $contact_id; |
|
| 2327 | + if (is_numeric($contact_id)) |
|
| 2328 | + { |
|
| 2329 | + $content['link_to']['to_id'] = $contact_id; |
|
| 2330 | + } |
|
| 2129 | 2331 | } |
| 2130 | 2332 | // automatic link new entries to entries specified in the url |
| 2131 | 2333 | if (!$contact_id && isset($_REQUEST['link_app']) && isset($_REQUEST['link_id']) && !is_array($content['link_to']['to_id'])) |
@@ -2134,10 +2336,13 @@ discard block |
||
| 2134 | 2336 | foreach(is_array($_REQUEST['link_app']) ? $_REQUEST['link_app'] : array($_REQUEST['link_app']) as $n => $link_app) |
| 2135 | 2337 | { |
| 2136 | 2338 | $link_id = $link_ids[$n]; |
| 2137 | - if (preg_match('/^[a-z_0-9-]+:[:a-z_0-9-]+$/i',$link_app.':'.$link_id)) // gard against XSS |
|
| 2339 | + if (preg_match('/^[a-z_0-9-]+:[:a-z_0-9-]+$/i',$link_app.':'.$link_id)) |
|
| 2340 | + { |
|
| 2341 | + // gard against XSS |
|
| 2138 | 2342 | { |
| 2139 | 2343 | egw_link::link('addressbook',$content['link_to']['to_id'],$link_app,$link_id); |
| 2140 | 2344 | } |
| 2345 | + } |
|
| 2141 | 2346 | } |
| 2142 | 2347 | } |
| 2143 | 2348 | } |
@@ -2145,7 +2350,10 @@ discard block |
||
| 2145 | 2350 | { |
| 2146 | 2351 | // last and next calendar date |
| 2147 | 2352 | list(,$dates) = each($this->read_calendar(array($content['id']),false)); |
| 2148 | - if(is_array($dates)) $content += $dates; |
|
| 2353 | + if(is_array($dates)) |
|
| 2354 | + { |
|
| 2355 | + $content += $dates; |
|
| 2356 | + } |
|
| 2149 | 2357 | } |
| 2150 | 2358 | // Avoid ID conflict with tree & selectboxes |
| 2151 | 2359 | $content['cat_id_tree'] = $content['cat_id']; |
@@ -2179,7 +2387,11 @@ discard block |
||
| 2179 | 2387 | $sel_options['fileas_type'] = $this->fileas_options($content); |
| 2180 | 2388 | $sel_options['adr_one_countrycode']['-custom-'] = lang('Custom'); |
| 2181 | 2389 | $sel_options['owner'] = $this->get_addressbooks(EGW_ACL_ADD); |
| 2182 | - if ($content['owner']) unset($sel_options['owner'][0]); // do not offer to switch to accounts, as we do not support moving contacts to accounts |
|
| 2390 | + if ($content['owner']) |
|
| 2391 | + { |
|
| 2392 | + unset($sel_options['owner'][0]); |
|
| 2393 | + } |
|
| 2394 | + // do not offer to switch to accounts, as we do not support moving contacts to accounts |
|
| 2183 | 2395 | if ((string) $content['owner'] !== '') |
| 2184 | 2396 | { |
| 2185 | 2397 | if (!isset($sel_options['owner'][(int)$content['owner']])) |
@@ -2206,7 +2418,10 @@ discard block |
||
| 2206 | 2418 | $readonlys[$field] = false; |
| 2207 | 2419 | } |
| 2208 | 2420 | } |
| 2209 | - if (isset($readonlys['n_fileas'])) $readonlys['fileas_type'] = $readonlys['n_fileas']; |
|
| 2421 | + if (isset($readonlys['n_fileas'])) |
|
| 2422 | + { |
|
| 2423 | + $readonlys['fileas_type'] = $readonlys['n_fileas']; |
|
| 2424 | + } |
|
| 2210 | 2425 | // disable not needed tabs |
| 2211 | 2426 | $readonlys['tabs']['cats'] = !($content['cat_tab'] = $this->config['cat_tab']); |
| 2212 | 2427 | $readonlys['tabs']['custom'] = !$this->customfields || $this->get_backend($content['id'],$content['owner']) == $this->so_accounts; |
@@ -2214,8 +2429,14 @@ discard block |
||
| 2214 | 2429 | $readonlys['tabs']['distribution_list'] = !$content['distrib_lists'];#false; |
| 2215 | 2430 | $readonlys['tabs']['history'] = $this->contact_repository != 'sql' || !$content['id'] || |
| 2216 | 2431 | $this->account_repository != 'sql' && $content['account_id']; |
| 2217 | - if (!$content['id']) $readonlys['button[delete]'] = !$content['id']; |
|
| 2218 | - if ($this->config['private_cf_tab']) $content['no_private_cfs'] = 0; |
|
| 2432 | + if (!$content['id']) |
|
| 2433 | + { |
|
| 2434 | + $readonlys['button[delete]'] = !$content['id']; |
|
| 2435 | + } |
|
| 2436 | + if ($this->config['private_cf_tab']) |
|
| 2437 | + { |
|
| 2438 | + $content['no_private_cfs'] = 0; |
|
| 2439 | + } |
|
| 2219 | 2440 | $readonlys['change_org'] = empty($content['org_name']) || $view; |
| 2220 | 2441 | |
| 2221 | 2442 | // for editing the own account (by a non-admin), enable only the fields allowed via the "own_account_acl" |
@@ -2223,7 +2444,10 @@ discard block |
||
| 2223 | 2444 | { |
| 2224 | 2445 | $this->_set_readonlys_for_own_account_acl($readonlys,$id); |
| 2225 | 2446 | } |
| 2226 | - for($i = -23; $i<=23; $i++) $tz[$i] = ($i > 0 ? '+' : '').$i; |
|
| 2447 | + for($i = -23; $i<=23; $i++) |
|
| 2448 | + { |
|
| 2449 | + $tz[$i] = ($i > 0 ? '+' : '').$i; |
|
| 2450 | + } |
|
| 2227 | 2451 | $sel_options['tz'] = $tz; |
| 2228 | 2452 | $content['tz'] = $content['tz'] ? $content['tz'] : '0'; |
| 2229 | 2453 | if (count($this->content_types) > 1) |
@@ -2260,7 +2484,10 @@ discard block |
||
| 2260 | 2484 | |
| 2261 | 2485 | $content['photo'] = $this->photo_src($content['id'],$content['jpegphoto'],'photo',$content['etag']); |
| 2262 | 2486 | |
| 2263 | - if ($content['private']) $content['owner'] .= 'p'; |
|
| 2487 | + if ($content['private']) |
|
| 2488 | + { |
|
| 2489 | + $content['owner'] .= 'p'; |
|
| 2490 | + } |
|
| 2264 | 2491 | |
| 2265 | 2492 | // for custom types, check if we have a custom edit template named "addressbook.edit.$type", $type is the name |
| 2266 | 2493 | if (in_array($content['tid'], array('n',self::DELETED_TYPE)) || !$this->tmpl->read('addressbook.edit.'.$this->content_types[$content['tid']]['name'])) |
@@ -2282,7 +2509,10 @@ discard block |
||
| 2282 | 2509 | //error_log(__METHOD__."() hook_data=".array2string($hook_data)); |
| 2283 | 2510 | foreach($hook_data as $extra_tabs) |
| 2284 | 2511 | { |
| 2285 | - if (!$extra_tabs) continue; |
|
| 2512 | + if (!$extra_tabs) |
|
| 2513 | + { |
|
| 2514 | + continue; |
|
| 2515 | + } |
|
| 2286 | 2516 | |
| 2287 | 2517 | foreach(isset($extra_tabs[0]) ? $extra_tabs : array($extra_tabs) as $extra_tab) |
| 2288 | 2518 | { |
@@ -2299,7 +2529,10 @@ discard block |
||
| 2299 | 2529 | $readonlys = array_merge($readonlys, $extra_tab['readonlys']); |
| 2300 | 2530 | } |
| 2301 | 2531 | // we must NOT add tabs and callbacks more then once! |
| 2302 | - if (!$first_call) continue; |
|
| 2532 | + if (!$first_call) |
|
| 2533 | + { |
|
| 2534 | + continue; |
|
| 2535 | + } |
|
| 2303 | 2536 | |
| 2304 | 2537 | if (!empty($extra_tab['pre_save_callback'])) |
| 2305 | 2538 | { |
@@ -2382,20 +2615,27 @@ discard block |
||
| 2382 | 2615 | */ |
| 2383 | 2616 | public function ajax_check_values($values, $name, $own_id=0) |
| 2384 | 2617 | { |
| 2385 | - if (preg_match('/^exec\[([^\]]+)\]$/', $name, $matches)) $name = $matches[1]; // remove exec[ ] |
|
| 2618 | + if (preg_match('/^exec\[([^\]]+)\]$/', $name, $matches)) |
|
| 2619 | + { |
|
| 2620 | + $name = $matches[1]; |
|
| 2621 | + } |
|
| 2622 | + // remove exec[ ] |
|
| 2386 | 2623 | |
| 2387 | 2624 | $ret = array('doublicates' => array(), 'msg' => null); |
| 2388 | 2625 | |
| 2389 | 2626 | // if email changed, check for doublicates |
| 2390 | 2627 | if (in_array($name, array('email', 'email_home'))) |
| 2391 | 2628 | { |
| 2392 | - if (preg_match('/^'.url_widget::EMAIL_PREG.'$/i', $values[$name])) // only search for real email addresses, to not return to many contacts |
|
| 2629 | + if (preg_match('/^'.url_widget::EMAIL_PREG.'$/i', $values[$name])) |
|
| 2630 | + { |
|
| 2631 | + // only search for real email addresses, to not return to many contacts |
|
| 2393 | 2632 | { |
| 2394 | 2633 | $contacts = parent::search(array( |
| 2395 | 2634 | 'email' => $values[$name], |
| 2396 | 2635 | 'email_home' => $values[$name], |
| 2397 | 2636 | ),$only_keys=false, $order_by='', $extra_cols='', $wildcard='', $empty=False, $op='OR'); |
| 2398 | 2637 | } |
| 2638 | + } |
|
| 2399 | 2639 | } |
| 2400 | 2640 | else |
| 2401 | 2641 | { |
@@ -2409,10 +2649,13 @@ discard block |
||
| 2409 | 2649 | !empty($values['n_given'])+!empty($values['n_family'])+!empty($values['org_name']) >= 2) |
| 2410 | 2650 | { |
| 2411 | 2651 | $filter = array(); |
| 2412 | - foreach(array('email', 'n_given', 'n_family', 'org_name') as $n) // use email too, to exclude obvious false positives |
|
| 2652 | + foreach(array('email', 'n_given', 'n_family', 'org_name') as $n) |
|
| 2653 | + { |
|
| 2654 | + // use email too, to exclude obvious false positives |
|
| 2413 | 2655 | { |
| 2414 | 2656 | if (!empty($values[$n])) $filter[$n] = $values[$n]; |
| 2415 | 2657 | } |
| 2658 | + } |
|
| 2416 | 2659 | $contacts = parent::search($criteria='', $only_keys=false, $order_by='', $extra_cols='', $wildcard='', |
| 2417 | 2660 | $empty=False, $op='AND', $start=false, $filter); |
| 2418 | 2661 | } |
@@ -2421,7 +2664,10 @@ discard block |
||
| 2421 | 2664 | { |
| 2422 | 2665 | foreach($contacts as $contact) |
| 2423 | 2666 | { |
| 2424 | - if ($own_id && $contact['id'] == $own_id) continue; |
|
| 2667 | + if ($own_id && $contact['id'] == $own_id) |
|
| 2668 | + { |
|
| 2669 | + continue; |
|
| 2670 | + } |
|
| 2425 | 2671 | |
| 2426 | 2672 | $ret['doublicates'][$contact['id']] = $this->fileas($contact).' ('. |
| 2427 | 2673 | (!$contact['owner'] ? lang('Accounts') : ($contact['owner'] == $this->user ? |
@@ -2448,7 +2694,10 @@ discard block |
||
| 2448 | 2694 | // CRM list comes from content, request, or preference |
| 2449 | 2695 | $crm_list = $content['crm_list'] ? $content['crm_list'] : |
| 2450 | 2696 | ($_GET['crm_list'] ? $_GET['crm_list'] : $GLOBALS['egw_info']['user']['preferences']['addressbook']['crm_list']); |
| 2451 | - if(!$crm_list || $crm_list == '~edit~') $crm_list = 'infolog'; |
|
| 2697 | + if(!$crm_list || $crm_list == '~edit~') |
|
| 2698 | + { |
|
| 2699 | + $crm_list = 'infolog'; |
|
| 2700 | + } |
|
| 2452 | 2701 | |
| 2453 | 2702 | if(is_array($content)) |
| 2454 | 2703 | { |
@@ -2471,7 +2720,10 @@ discard block |
||
| 2471 | 2720 | $inc = 1; |
| 2472 | 2721 | // fall through |
| 2473 | 2722 | case 'back': |
| 2474 | - if (!isset($inc)) $inc = -1; |
|
| 2723 | + if (!isset($inc)) |
|
| 2724 | + { |
|
| 2725 | + $inc = -1; |
|
| 2726 | + } |
|
| 2475 | 2727 | // get next/previous contact in selection |
| 2476 | 2728 | $query = egw_session::appsession('index', 'addressbook'); |
| 2477 | 2729 | $query['start'] = $content['index'] + $inc; |
@@ -2589,7 +2841,10 @@ discard block |
||
| 2589 | 2841 | |
| 2590 | 2842 | $sel_options['fileas_type'][$content['fileas_type']] = $this->fileas($content); |
| 2591 | 2843 | $sel_options['owner'] = $this->get_addressbooks(); |
| 2592 | - for($i = -23; $i<=23; $i++) $tz[$i] = ($i > 0 ? '+' : '').$i; |
|
| 2844 | + for($i = -23; $i<=23; $i++) |
|
| 2845 | + { |
|
| 2846 | + $tz[$i] = ($i > 0 ? '+' : '').$i; |
|
| 2847 | + } |
|
| 2593 | 2848 | $sel_options['tz'] = $tz; |
| 2594 | 2849 | $content['tz'] = $content['tz'] ? $content['tz'] : 0; |
| 2595 | 2850 | if (count($this->content_types) > 1) |
@@ -2631,11 +2886,20 @@ discard block |
||
| 2631 | 2886 | $readonlys['tabs']['distribution_list'] = !$content['distrib_lists'];#false; |
| 2632 | 2887 | $readonlys['tabs']['history'] = $this->contact_repository != 'sql' || !$content['id'] || |
| 2633 | 2888 | $this->account_repository != 'sql' && $content['account_id']; |
| 2634 | - if ($this->config['private_cf_tab']) $content['no_private_cfs'] = 0; |
|
| 2889 | + if ($this->config['private_cf_tab']) |
|
| 2890 | + { |
|
| 2891 | + $content['no_private_cfs'] = 0; |
|
| 2892 | + } |
|
| 2635 | 2893 | |
| 2636 | 2894 | // last and next calendar date |
| 2637 | - if (!empty($content['id'])) list(,$dates) = each($this->read_calendar(array($content['id']),false)); |
|
| 2638 | - if(is_array($dates)) $content += $dates; |
|
| 2895 | + if (!empty($content['id'])) |
|
| 2896 | + { |
|
| 2897 | + list(,$dates) = each($this->read_calendar(array($content['id']),false)); |
|
| 2898 | + } |
|
| 2899 | + if(is_array($dates)) |
|
| 2900 | + { |
|
| 2901 | + $content += $dates; |
|
| 2902 | + } |
|
| 2639 | 2903 | |
| 2640 | 2904 | // Disable importexport |
| 2641 | 2905 | $GLOBALS['egw_info']['flags']['disable_importexport']['export'] = true; |
@@ -2714,7 +2978,10 @@ discard block |
||
| 2714 | 2978 | */ |
| 2715 | 2979 | function email2link($email) |
| 2716 | 2980 | { |
| 2717 | - if (strpos($email,'@') == false) return ''; |
|
| 2981 | + if (strpos($email,'@') == false) |
|
| 2982 | + { |
|
| 2983 | + return ''; |
|
| 2984 | + } |
|
| 2718 | 2985 | |
| 2719 | 2986 | if($GLOBALS['egw_info']['user']['apps']['mail']) |
| 2720 | 2987 | { |
@@ -2766,7 +3033,10 @@ discard block |
||
| 2766 | 3033 | $query['advanced_search'] = array_intersect_key($_content,array_flip(array_merge($this->get_contact_columns(),array('operator','meth_select')))); |
| 2767 | 3034 | foreach ($query['advanced_search'] as $key => $value) |
| 2768 | 3035 | { |
| 2769 | - if(!$value) unset($query['advanced_search'][$key]); |
|
| 3036 | + if(!$value) |
|
| 3037 | + { |
|
| 3038 | + unset($query['advanced_search'][$key]); |
|
| 3039 | + } |
|
| 2770 | 3040 | } |
| 2771 | 3041 | // Skip n_fn, it causes problems in sql |
| 2772 | 3042 | unset($query['advanced_search']['n_fn']); |
@@ -2798,7 +3068,10 @@ discard block |
||
| 2798 | 3068 | // Avoid ID conflict with tree & selectboxes |
| 2799 | 3069 | $content['cat_id_tree'] = $content['cat_id']; |
| 2800 | 3070 | |
| 2801 | - for($i = -23; $i<=23; $i++) $tz[$i] = ($i > 0 ? '+' : '').$i; |
|
| 3071 | + for($i = -23; $i<=23; $i++) |
|
| 3072 | + { |
|
| 3073 | + $tz[$i] = ($i > 0 ? '+' : '').$i; |
|
| 3074 | + } |
|
| 2802 | 3075 | $sel_options['tz'] = $tz + array('' => lang('doesn\'t matter')); |
| 2803 | 3076 | $sel_options['tid'][] = lang('all'); |
| 2804 | 3077 | //foreach($this->content_types as $type => $data) $sel_options['tid'][$type] = $data['name']; |
@@ -2819,8 +3092,14 @@ discard block |
||
| 2819 | 3092 | { |
| 2820 | 3093 | if (substr($data['type'], 0, 6) == 'select' && !($data['rows'] > 1)) |
| 2821 | 3094 | { |
| 2822 | - if (!isset($content['#'.$name])) $content['#'.$name] = ''; |
|
| 2823 | - if(!isset($data['values'][''])) $sel_options['#'.$name][''] = lang('Select one'); |
|
| 3095 | + if (!isset($content['#'.$name])) |
|
| 3096 | + { |
|
| 3097 | + $content['#'.$name] = ''; |
|
| 3098 | + } |
|
| 3099 | + if(!isset($data['values'][''])) |
|
| 3100 | + { |
|
| 3101 | + $sel_options['#'.$name][''] = lang('Select one'); |
|
| 3102 | + } |
|
| 2824 | 3103 | } |
| 2825 | 3104 | } |
| 2826 | 3105 | } |
@@ -2842,7 +3121,10 @@ discard block |
||
| 2842 | 3121 | $content['no_tid'] = true; |
| 2843 | 3122 | $content['showsearchbuttons'] = true; // enable search operation and search buttons| they're disabled by default |
| 2844 | 3123 | |
| 2845 | - if ($this->config['private_cf_tab']) $content['no_private_cfs'] = 0; |
|
| 3124 | + if ($this->config['private_cf_tab']) |
|
| 3125 | + { |
|
| 3126 | + $content['no_private_cfs'] = 0; |
|
| 3127 | + } |
|
| 2846 | 3128 | |
| 2847 | 3129 | $this->tmpl->read('addressbook.edit'); |
| 2848 | 3130 | $this->tmpl->set_cell_attribute('change_org','disabled',true); |
@@ -2498,7 +2498,7 @@ |
||
| 2498 | 2498 | case 'infolog': |
| 2499 | 2499 | case 'tracker': |
| 2500 | 2500 | default: |
| 2501 | - egw_json_response::get()->apply('app.addressbook.view_set_list',Array(Array('action'=>'addressbook', 'action_id' => $contact_id))); |
|
| 2501 | + egw_json_response::get()->apply('app.addressbook.view_set_list',array(array('action'=>'addressbook', 'action_id' => $contact_id))); |
|
| 2502 | 2502 | break; |
| 2503 | 2503 | } |
| 2504 | 2504 | |