diff --git a/importexport/importexport_cli.php b/importexport/importexport_cli.php index ee9f4afa36..783ab1be07 100755 --- a/importexport/importexport_cli.php +++ b/importexport/importexport_cli.php @@ -10,6 +10,8 @@ * @version $Id$ */ +use EGroupware\Api; + $path_to_egroupware = realpath(dirname(__FILE__).'/..'); $usage = "usage: @@ -148,7 +150,7 @@ $po = new $definition->plugin; $resource = fopen( $file, 'r' ); $po->$type( $resource, $definition ); -common::egw_exit(); +exit(); function import_export_access(&$account) { diff --git a/importexport/inc/class.importexport_admin_prefs_sidebox_hooks.inc.php b/importexport/inc/class.importexport_admin_prefs_sidebox_hooks.inc.php index a041f2d32c..529dda6e73 100644 --- a/importexport/inc/class.importexport_admin_prefs_sidebox_hooks.inc.php +++ b/importexport/inc/class.importexport_admin_prefs_sidebox_hooks.inc.php @@ -9,6 +9,9 @@ * @version $Id$ */ +use EGroupware\Api; +use EGroupware\Api\Egw; + if (!defined('IMPORTEXPORT_APP')) { define('IMPORTEXPORT_APP','importexport'); @@ -32,27 +35,27 @@ class importexport_admin_prefs_sidebox_hooks array( 'text' => 'Import', 'link' => "javascript:egw_openWindowCentered2('". - egw::link('/index.php','menuaction=importexport.importexport_import_ui.import_dialog',false). + Egw::link('/index.php','menuaction=importexport.importexport_import_ui.import_dialog',false). "','_blank',850,440,'yes')", 'icon' => 'import' ), ); - $export_limit = bo_merge::getExportLimit($appname); + $export_limit = Api\Storage\Merge::getExportLimit($appname); //error_log(__METHOD__.__LINE__.' app:'.$appname.' limit:'.$export_limit); - if(bo_merge::is_export_limit_excepted() || $export_limit !== 'no') + if(Api\Storage\Merge::is_export_limit_excepted() || $export_limit !== 'no') { $file[] = array( 'text' => 'Export', 'link' => "javascript:egw_openWindowCentered2('". - egw::link('/index.php','menuaction=importexport.importexport_export_ui.export_dialog',false). + Egw::link('/index.php','menuaction=importexport.importexport_export_ui.export_dialog',false). "','_blank',850,440,'yes')", 'icon' => 'export' ); } - $config = config::read($appname); + $config = Api\Config::read($appname); if($config['users_create_definitions']) { - $file['Define imports|exports'] = egw::link('/index.php',array( + $file['Define imports|exports'] = Egw::link('/index.php',array( 'menuaction' => 'importexport.importexport_definitions_ui.index', 'ajax' => 'true' ),$GLOBALS['egw_info']['user']['apps']['admin'] ? 'admin' : 'preferences'); @@ -63,13 +66,13 @@ class importexport_admin_prefs_sidebox_hooks if ($GLOBALS['egw_info']['user']['apps']['admin']) { $file = Array( - 'Site Configuration' => egw::link('/index.php','menuaction=importexport.importexport_definitions_ui.site_config'), - 'Import definitions' => egw::link('/index.php','menuaction=importexport.importexport_definitions_ui.import_definition'), - 'Define imports|exports' => egw::link('/index.php',array( + 'Site Configuration' => Egw::link('/index.php','menuaction=importexport.importexport_definitions_ui.site_config'), + 'Import definitions' => Egw::link('/index.php','menuaction=importexport.importexport_definitions_ui.import_definition'), + 'Define imports|exports' => Egw::link('/index.php',array( 'menuaction' => 'importexport.importexport_definitions_ui.index', 'ajax' => 'true' )), - 'Schedule' => egw::link('/index.php', array( + 'Schedule' => Egw::link('/index.php', array( 'menuaction' => 'importexport.importexport_schedule_ui.index' )), ); @@ -92,12 +95,12 @@ class importexport_admin_prefs_sidebox_hooks if($GLOBALS['egw_info']['flags']['no_importexport'] === true) return array(); $appname = $GLOBALS['egw_info']['flags']['currentapp']; - $cache = egw_cache::getCache(egw_cache::SESSION, 'importexport', 'sidebox_links'); + $cache = Api\Cache::getCache(Api\Cache::SESSION, 'importexport', 'sidebox_links'); if(!$cache[$appname] && $GLOBALS['egw_info']['user']['apps']['importexport']) { $cache[$appname]['import'] = importexport_helper_functions::has_definitions($appname, 'import'); $cache[$appname]['export'] = importexport_helper_functions::has_definitions($appname, 'export'); - egw_cache::setCache(egw_cache::SESSION, 'importexport', 'sidebox_links', $cache); + Api\Cache::setCache(Api\Cache::SESSION, 'importexport', 'sidebox_links', $cache); } // Add in import / export, if available @@ -106,7 +109,7 @@ class importexport_admin_prefs_sidebox_hooks if($cache[$appname]['import']) { $file['Import CSV'] = array('link' => "javascript:egw_openWindowCentered2('". - egw::link('/index.php',array( + Egw::link('/index.php',array( 'menuaction' => 'importexport.importexport_import_ui.import_dialog', 'appname'=>$appname ),false)."','_blank',850,440,'yes')", @@ -118,12 +121,12 @@ class importexport_admin_prefs_sidebox_hooks $file['Import CSV']['link'] = ''; } } - $export_limit = bo_merge::getExportLimit($appname); + $export_limit = Api\Storage\Merge::getExportLimit($appname); //error_log(__METHOD__.__LINE__.' app:'.$appname.' limit:'.$export_limit); - if ((bo_merge::is_export_limit_excepted() || bo_merge::hasExportLimit($export_limit,'ISALLOWED')) && $cache[$appname]['export']) + if ((Api\Storage\Merge::is_export_limit_excepted() || Api\Storage\Merge::hasExportLimit($export_limit,'ISALLOWED')) && $cache[$appname]['export']) { $file['Export CSV'] = array('link' => "javascript:egw_openWindowCentered2('". - egw::link('/index.php',array( + Egw::link('/index.php',array( 'menuaction' => 'importexport.importexport_export_ui.export_dialog', 'appname'=>$appname ),false)."','_blank',850,440,'yes')", @@ -136,12 +139,12 @@ class importexport_admin_prefs_sidebox_hooks } } - $config = config::read('importexport'); + $config = Api\Config::read('importexport'); if($appname != 'admin' && ($config['users_create_definitions'] || $GLOBALS['egw_info']['user']['apps']['admin']) && count(importexport_helper_functions::get_plugins($appname)) > 0 ) { - $file['Define imports|exports'] = egw::link('/index.php',array( + $file['Define imports|exports'] = Egw::link('/index.php',array( 'menuaction' => 'importexport.importexport_definitions_ui.index', 'application' => $appname, 'ajax' => 'true' diff --git a/importexport/inc/class.importexport_basic_import_csv.inc.php b/importexport/inc/class.importexport_basic_import_csv.inc.php index 43a6774c4d..c34ee63796 100644 --- a/importexport/inc/class.importexport_basic_import_csv.inc.php +++ b/importexport/inc/class.importexport_basic_import_csv.inc.php @@ -8,6 +8,8 @@ * @author Nathan Gray */ +use EGroupware\Api; +use EGroupware\Api\Link; /** * A basic CSV import plugin. @@ -355,7 +357,7 @@ abstract class importexport_basic_import_csv implements importexport_iface_impor } else if($type == 'search') { - $result = egw_link::query($app, $app_id); + $result = Link::query($app, $app_id); do { $app_id = key($result); @@ -369,7 +371,7 @@ abstract class importexport_basic_import_csv implements importexport_iface_impor // Searching, take first result if(!is_numeric($app_id)) { - $result = egw_link::query($app, $app_id); + $result = Link::query($app, $app_id); do { $app_id = key($result); @@ -385,7 +387,7 @@ abstract class importexport_basic_import_csv implements importexport_iface_impor } if (!$this->dry_run && $app && $app_id && ($app != $this->definition->application || $app_id != $id)) { - $link_id = egw_link::link($this->definition->application,$id,$app,$app_id); + $link_id = Link::link($this->definition->application,$id,$app,$app_id); } } } @@ -426,7 +428,7 @@ abstract class importexport_basic_import_csv implements importexport_iface_impor if($fields[$field]) $label = $fields[$field]; } } catch (Exception $e) { - translation::add_app($definition->application); + Api\Translation::add_app($definition->application); foreach($labels as $field => &$label) { $label = lang($label); } @@ -443,7 +445,7 @@ abstract class importexport_basic_import_csv implements importexport_iface_impor } $this->preview_records = array(); - return html::table($rows); + return Api\Html::table($rows); } /** @@ -533,7 +535,7 @@ abstract class importexport_basic_import_csv implements importexport_iface_impor // Find matching entry if($app && $custom_field && $value) { - $cfs = config::get_customfields($app); + $cfs = Api\Storage\Customfields::get($app); // Error if no custom fields, probably something wrong in definition if(!$cfs[$custom_field]) { @@ -557,10 +559,10 @@ abstract class importexport_basic_import_csv implements importexport_iface_impor if($custom_field[0] != '#') $custom_field = '#' . $custom_field; error_log("Searching for $custom_field = $value"); // Search - if(egw_link::get_registry($app, 'query')) + if(Link::get_registry($app, 'query')) { $options = array('filter' => array("$custom_field = " . $GLOBALS['egw']->db->quote($value))); - $result = egw_link::query($app, '', $options); + $result = Link::query($app, '', $options); // Only one allowed if($record->get_identifier()) diff --git a/importexport/inc/class.importexport_definition.inc.php b/importexport/inc/class.importexport_definition.inc.php index 2a83d444b8..2b7500b929 100644 --- a/importexport/inc/class.importexport_definition.inc.php +++ b/importexport/inc/class.importexport_definition.inc.php @@ -10,6 +10,8 @@ * @version $Id$ */ +use EGroupware\Api; + /** * class definition * @@ -38,7 +40,7 @@ class importexport_definition implements importexport_iface_egw_record { ); /** - * @var so_sql holds so_sql object + * @var so_sql holds Api\Storage\Base object */ private $so_sql; @@ -64,7 +66,7 @@ class importexport_definition implements importexport_iface_egw_record { * @param string $_identifier */ public function __construct( $_identifier='' ) { - $this->so_sql = new so_sql(self::_appname ,self::_defintion_talbe); + $this->so_sql = new Api\Storage\Base(self::_appname ,self::_defintion_talbe); $this->user = $GLOBALS['egw_info']['user']['user_id']; $this->is_admin = $GLOBALS['egw_info']['user']['apps']['admin'] || $GLOBALS['egw_setup'] ? true : false; // compability to string identifiers @@ -282,7 +284,7 @@ class importexport_definition implements importexport_iface_egw_record { $this->so_sql->data['filter'] = importexport_arrayxml::array2xml( $this->definition['filter'] ); $this->so_sql->data['modified'] = time(); if ($this->so_sql->save( array( 'definition_id' => $_dst_identifier ))) { - throw new Exception('Error: so_sql was not able to save definition: '.$this->get_identifier()); + throw new Exception('Error: Api\Storage\Base was not able to save definition: '.$this->get_identifier()); } return $this->definition['definition_id']; @@ -342,7 +344,7 @@ class importexport_definition implements importexport_iface_egw_record { throw('Error: User '. $this->user. 'does not have permissions to delete definition '.$this->get_identifier()); } if(!$this->so_sql->delete()) { - throw('Error: so_sql was not able to delete definition: '.$this->get_identifier()); + throw('Error: Api\Storage\Base was not able to delete definition: '.$this->get_identifier()); } } diff --git a/importexport/inc/class.importexport_definitions_bo.inc.php b/importexport/inc/class.importexport_definitions_bo.inc.php index 8e31aa04f9..6b68ec8f66 100644 --- a/importexport/inc/class.importexport_definitions_bo.inc.php +++ b/importexport/inc/class.importexport_definitions_bo.inc.php @@ -10,6 +10,8 @@ * @version $Id$ */ +use EGroupware\Api; + /** bo to define {im|ex}ports * * @todo make this class an egw_record_pool! @@ -20,7 +22,7 @@ class importexport_definitions_bo { const _defintion_table = 'egw_importexport_definitions'; /** - * @var so_sql holds so_sql + * @var so_sql holds Api\Storage\Base */ private $so_sql; @@ -31,7 +33,7 @@ class importexport_definitions_bo { public function __construct($_query=false, $ignore_acl = false) { - $this->so_sql = new so_sql(self::_appname, self::_defintion_table ); + $this->so_sql = new Api\Storage\Base(self::_appname, self::_defintion_table ); if ($_query) { $definitions = $this->so_sql->search($_query, false); foreach ((array)$definitions as $definition) { @@ -170,7 +172,7 @@ class importexport_definitions_bo { { $export_data = array('metainfo' => array( 'type' => 'importexport definitions', - 'charset' => translation::charset(), + 'charset' => Api\Translation::charset(), 'entries' => count($keys), )); @@ -224,10 +226,10 @@ class importexport_definitions_bo { unset ( $data ); // convert charset into internal used charset - $definitions = translation::convert( + $definitions = Api\Translation::convert( $definitions, $metainfo['charset'], - translation::charset() + Api\Translation::charset() ); // Avoid warning if no definitions found @@ -273,7 +275,7 @@ class importexport_definitions_bo { public static function export_from_import(importexport_definition $import) { // Only operates on import definitions - if($import->type != 'import') throw new egw_exception_wrong_parameter('Only import definitions'); + if($import->type != 'import') throw new Api\Exception\WrongParameter('Only import definitions'); // Find export plugin $plugin = str_replace('import', 'export',$import->plugin); diff --git a/importexport/inc/class.importexport_definitions_ui.inc.php b/importexport/inc/class.importexport_definitions_ui.inc.php index 1c8361da38..23dd8189f2 100644 --- a/importexport/inc/class.importexport_definitions_ui.inc.php +++ b/importexport/inc/class.importexport_definitions_ui.inc.php @@ -10,6 +10,12 @@ * @version $Id$ */ +use EGroupware\Api; +use EGroupware\Api\Framework; +use EGroupware\Api\Egw; +use EGroupware\Api\Acl; +use EGroupware\Api\Etemplate; + /** * Userinterface to define {im|ex}ports * @@ -57,11 +63,11 @@ class importexport_definitions_ui { // we cant deal with notice and warnings, as we are on ajax! error_reporting(E_ALL & ~E_NOTICE & ~E_WARNING); - $GLOBALS['egw']->translation->add_app(self::_appname); + Api\Translation::add_app(self::_appname); $GLOBALS['egw_info']['flags']['currentapp'] = self::_appname; - $this->etpl = new etemplate_new(); - $this->clock = html::image(self::_appname,'clock'); + $this->etpl = new Etemplate(); + $this->clock = Api\Html::image(self::_appname,'clock'); $this->steps = array( 'wizard_step10' => lang('Choose an application'), 'wizard_step20' => lang('Choose a plugin'), @@ -88,8 +94,8 @@ class importexport_definitions_ui } else { // Filter private definitions $filter['owner'] = $GLOBALS['egw_info']['user']['account_id']; - $config = config::read('phpgwapi'); - if($config['export_limit'] == 'no' && !bo_merge::is_export_limit_excepted()) { + $config = Api\Config::read('phpgwapi'); + if($config['export_limit'] == 'no' && !Api\Storage\Merge::is_export_limit_excepted()) { $filter['type'] = 'import'; } } @@ -105,7 +111,7 @@ class importexport_definitions_ui elseif(($button = array_search('pressed',$content['nm']['rows'])) !== false) { $selected = $content['nm']['rows']['selected']; - if(count($selected) < 1 || !is_array($selected)) common::egw_exit(); + if(count($selected) < 1 || !is_array($selected)) exit(); switch ($button) { case 'delete_selected' : @@ -174,9 +180,9 @@ class importexport_definitions_ui ); if($_GET['application']) $content['nm']['col_filter']['application'] = $_GET['application']; } - if(egw_session::appsession('index', 'importexport')) + if(Api\Cache::getSession('importexport', 'index')) { - $content['nm'] = array_merge($content['nm'], egw_session::appsession('index', 'importexport')); + $content['nm'] = array_merge($content['nm'], Api\Cache::getSession('importexport', 'index')); } $content['nm']['actions'] = $this->get_actions(); $sel_options = array( @@ -197,7 +203,7 @@ class importexport_definitions_ui } if($msg) $content['msg'] = $msg; - $etpl = new etemplate_new(self::_appname.'.definition_index'); + $etpl = new Etemplate(self::_appname.'.definition_index'); return $etpl->exec( self::_appname.'.importexport_definitions_ui.index', $content, $sel_options, $readonlys, $preserv ); } @@ -312,7 +318,7 @@ class importexport_definitions_ui if ($use_all) { // get the whole selection - $old_query = $query = is_array($session_name) ? $session_name : egw_session::appsession($session_name,'importexport'); + $old_query = $query = is_array($session_name) ? $session_name : Api\Cache::getSession('importexport', $session_name); @set_time_limit(0); // switch off the execution time limit, as it's for big selections to small $query['num_rows'] = -1; // all @@ -326,7 +332,7 @@ class importexport_definitions_ui if(!is_array($session_name)) { // Restore old query - egw_session::appsession($session_name, 'importexport',$old_query); + Api\Cache::setSession('importexport', $session_name, $old_query); } } @@ -340,12 +346,12 @@ class importexport_definitions_ui // There's probably a way to do this in just JS, all the info should be there... foreach($selected as $id) { $definition = $bodefinitions->read((int)$id); - $link = egw::link('/index.php', array( + $link = Egw::link('/index.php', array( 'menuaction' => 'importexport.importexport_'.$definition['type'].'_ui.'.$definition['type'].'_dialog', 'appname' => $definition['application'], 'definition' => $definition['name'] )); - egw_framework::set_onload("egw_openWindowCentered2('$link','_blank',850,440,'yes');"); + Framework::set_onload("egw_openWindowCentered2('$link','_blank',850,440,'yes');"); } break; case 'allowed': @@ -377,7 +383,7 @@ class importexport_definitions_ui header('Content-Type: ' . $mime_type); header('Content-Disposition: attachment; filename="'.$name.'"'); echo $bodefinitions->export($selected); - common::egw_exit(); + exit(); break; case 'copy': @@ -438,7 +444,7 @@ class importexport_definitions_ui public function get_rows(&$query, &$rows, &$readonlys) { $rows = array(); - egw_session::appsession('index','importexport',$query); + Api\Cache::setSession('importexport', 'index', $query); // Special handling for allowed users 'private' if($query['col_filter']['allowed_users'] == 'private') @@ -528,7 +534,7 @@ class importexport_definitions_ui $wizard_plugin = $content['plugin']; } // App translations - if($content['application']) translation::add_app($content['application']); + if($content['application']) Api\Translation::add_app($content['application']); $this->plugin = is_object($GLOBALS['egw']->$wizard_plugin) ? $GLOBALS['egw']->$wizard_plugin : new $wizard_plugin; @@ -716,7 +722,7 @@ class importexport_definitions_ui } elseif($this->plugin instanceof importexport_iface_export_plugin || $this->plugin instanceof importexport_wizard_basic_export_csv || strpos(get_class($this->plugin),'export') !== false) { $content['type'] = 'export'; } else { - throw new egw_exception('Invalid plugin'); + throw new Api\Exception('Invalid plugin'); } return $this->get_step($content['step'],1); case 'previous' : @@ -732,7 +738,7 @@ class importexport_definitions_ui else { $content['text'] = $this->steps['wizard_step20']; - $config = config::read('phpgwapi'); + $config = Api\Config::read('phpgwapi'); foreach ($this->plugins[$content['application']] as $type => $plugins) { if($config['export_limit'] == 'no' && !$GLOBALS['egw_info']['user']['apps']['admin'] && $type == 'export') continue; foreach($plugins as $plugin => $name) { @@ -771,7 +777,7 @@ class importexport_definitions_ui $suggestions = array( $content['name'] .'-'. $GLOBALS['egw_info']['user']['account_lid'], $content['name'] .'-'. $GLOBALS['egw_info']['user']['account_id'], - $content['name'] .'-'. egw_time::to('now', true), + $content['name'] .'-'. Api\DateTime::to('now', true), //$content['name'] .'-'. rand(0,100), ); foreach($suggestions as $key => $suggestion) { @@ -824,7 +830,7 @@ class importexport_definitions_ui { if($this->can_edit($content)) { - $content['owner'] = $content['just_me'] || !$GLOBALS['egw']->acl->check('share_definitions', EGW_ACL_READ,'importexport') ? + $content['owner'] = $content['just_me'] || !$GLOBALS['egw']->acl->check('share_definitions', Acl::READ,'importexport') ? ($content['owner'] ? $content['owner'] : $GLOBALS['egw_info']['user']['account_id']) : null; $content['allowed_users'] = $content['just_me'] ? '' : ($content['all_users'] ? 'all' : implode(',',$content['allowed_users'])); @@ -854,7 +860,7 @@ class importexport_definitions_ui $content['just_me'] = ((!$content['allowed_users'] || !$content['allowed_users'][0] && count($content['allowed_users']) ==1) && $content['owner']); $content['all_users'] = is_array($content['allowed_users']) && array_key_exists('0',$content['allowed_users']) && $content['allowed_users'][0] == 'all' || $content['allowed_users'] == 'all'; - if(!$GLOBALS['egw']->acl->check('share_definition', EGW_ACL_READ, 'importexport') && !$GLOBALS['egw_info']['user']['apps']['admin']) + if(!$GLOBALS['egw']->acl->check('share_definition', Acl::READ, 'importexport') && !$GLOBALS['egw_info']['user']['apps']['admin']) { $content['allowed_users'] = array(); $readonlys['allowed_users'] = true; @@ -897,8 +903,8 @@ class importexport_definitions_ui $bodefinitions->save($content); // This message is displayed if browser cant close window $content['msg'] = lang('ImportExport wizard finished successfully!'); - egw_framework::refresh_opener('','importexport'); - egw_framework::window_close(); + Framework::refresh_opener('','importexport'); + Framework::window_close(); return 'importexport.wizard_close'; } @@ -961,7 +967,7 @@ class importexport_definitions_ui { if(!$GLOBALS['egw_info']['user']['apps']['admin']) { - egw::redirect_link('/home'); + Egw::redirect_link('/home'); } if($content['save']) { @@ -973,25 +979,25 @@ class importexport_definitions_ui foreach($content['share_definition'] as $group) { - $GLOBALS['egw']->acl->add_repository(self::_appname, 'share_definition', $group,EGW_ACL_READ); + $GLOBALS['egw']->acl->add_repository(self::_appname, 'share_definition', $group,Acl::READ); } unset($content['share_definition']); - // Other config + // Other Api\Config foreach($content as $key=>$value) { - config::save_value($key, $value, 'importexport'); + Api\Config::save_value($key, $value, 'importexport'); } } elseif (isset($content['cancel'])) { $GLOBALS['egw']->redirect_link('/admin/index.php'); } - $data = config::read(self::_appname); - $data['share_definition'] = $GLOBALS['egw']->acl->get_ids_for_location('share_definition', EGW_ACL_READ, self::_appname); + $data = Api\Config::read(self::_appname); + $data['share_definition'] = $GLOBALS['egw']->acl->get_ids_for_location('share_definition', Acl::READ, self::_appname); $sel_options['import_charsets'] = array_combine(mb_list_encodings(),mb_list_encodings()); // Remove 'standard' encodings to prevent doubles - foreach($GLOBALS['egw']->translation->get_installed_charsets() as $charset => $label) + foreach(Api\Translation::get_installed_charsets() as $charset => $label) { unset($sel_options['import_charsets'][strtoupper($charset)]); } diff --git a/importexport/inc/class.importexport_export_csv.inc.php b/importexport/inc/class.importexport_export_csv.inc.php index f6ba1e3e71..c2f2a9ce70 100644 --- a/importexport/inc/class.importexport_export_csv.inc.php +++ b/importexport/inc/class.importexport_export_csv.inc.php @@ -10,6 +10,10 @@ * @version $Id$ */ +use EGroupware\Api; +use EGroupware\Api\Link; +use EGroupware\Api\Acl; + /** * class export_csv * This an record exporter. @@ -40,7 +44,7 @@ class importexport_export_csv implements importexport_iface_export_record protected $record_array = array(); /** - * @var translation holds (charset) translation object + * @var translation holds (charset) Api\Translation object */ protected $translation; @@ -96,7 +100,7 @@ class importexport_export_csv implements importexport_iface_export_record */ public function __construct( $_stream, array $_options ) { if (!is_object($GLOBALS['egw']->translation)) { - $GLOBALS['egw']->translation = new translation(); + $GLOBALS['egw']->translation = new Api\Translation(); } $this->translation = &$GLOBALS['egw']->translation; $this->handle = $_stream; @@ -106,10 +110,10 @@ class importexport_export_csv implements importexport_iface_export_record $this->csv_options = array_merge( $this->csv_options, $_options ); } //error_log(__METHOD__.__LINE__.array2string($_options['appname'])); - if(!bo_merge::is_export_limit_excepted()) { - $this->export_limit = bo_merge::getExportLimit($_options['appname']); + if(!Api\Storage\Merge::is_export_limit_excepted()) { + $this->export_limit = Api\Storage\Merge::getExportLimit($_options['appname']); //error_log(__METHOD__.__LINE__.' app:'.$_options['appname'].' limit:'.$this->export_limit); - if($this->export_limit == 'no') throw new egw_exception_no_permission_admin('Export disabled'); + if($this->export_limit == 'no') throw new Api\Exception\NoPermission\Admin('Export disabled'); } } @@ -124,7 +128,7 @@ class importexport_export_csv implements importexport_iface_export_record } if($_mapping['all_custom_fields']) { // Field value is the appname, so we can pull the fields - $custom = config::get_customfields($_mapping['all_custom_fields']); + $custom = Api\Storage\Customfields::get($_mapping['all_custom_fields']); unset($_mapping['all_custom_fields']); foreach($custom as $field => $info) { $_mapping['#'.$field] = $this->csv_options['begin_with_fieldnames'] == 'label' ? $info['label'] : $field; @@ -179,7 +183,7 @@ class importexport_export_csv implements importexport_iface_export_record if(substr($label,-1) == '*') $label = substr($label,0,-1); } } catch (Exception $e) { - translation::add_app($appname); + Api\Translation::add_app($appname); foreach($this->mapping as $field => &$label) { $label = lang($label); } @@ -236,7 +240,7 @@ class importexport_export_csv implements importexport_iface_export_record if(!$appname) return; $fields = array(); - $custom = config::get_customfields($appname); + $custom = Api\Storage\Customfields::get($appname); foreach($custom as $name => $c_field) { $name = '#' . $name; switch($c_field['type']) { @@ -258,7 +262,7 @@ class importexport_export_csv implements importexport_iface_export_record case 'select': if (count($c_field['values']) == 1 && isset($c_field['values']['@'])) { - $c_field['values'] = egw_customfields::get_options_from_file($c_field['values']['@']); + $c_field['values'] = Api\Storage\Customfields::get_options_from_file($c_field['values']['@']); } $fields['select'][] = $name; $selects[$name] = $c_field['values']; @@ -333,12 +337,12 @@ class importexport_export_csv implements importexport_iface_export_record foreach((array)$fields['links'] as $name) { if($record->$name) { if(is_numeric($record->$name) && !$links[$name]) { - $link = egw_link::get_link($record->$name); + $link = Link::get_link($record->$name); $links[$name] = ($link['link_app1'] == $appname ? $link['link_app2'] : $link['link_app1']); $record->$name = ($link['link_app1'] == $appname ? $link['link_id2'] : $link['link_id1']); } if($links[$name]) { - $record->$name = egw_link::title($links[$name], $record->$name); + $record->$name = Link::title($links[$name], $record->$name); } } else @@ -352,11 +356,11 @@ class importexport_export_csv implements importexport_iface_export_record if(is_array($record->$name)) { $names = array(); foreach($record->$name as $_name) { - $names[] = common::grab_owner_name($_name); + $names[] = Api\Accounts::username($_name); } $record->$name = implode(', ', $names); } else { - $record->$name = common::grab_owner_name($record->$name); + $record->$name = Api\Accounts::username($record->$name); } } else @@ -409,14 +413,14 @@ class importexport_export_csv implements importexport_iface_export_record } static $cat_object; - if(is_null($cat_object)) $cat_object = new categories(false,$appname); + if(is_null($cat_object)) $cat_object = new Api\Categories(false,$appname); foreach((array)$fields['select-cat'] as $name) { if($record->$name) { $cats = array(); $ids = is_array($record->$name) ? $record->$name : explode(',', $record->$name); foreach($ids as $n => $cat_id) { - if ($cat_id && $cat_object->check_perms(EGW_ACL_READ,$cat_id)) + if ($cat_id && $cat_object->check_perms(Acl::READ,$cat_id)) { $cats[] = $cat_object->id2name($cat_id); } diff --git a/importexport/inc/class.importexport_export_ui.inc.php b/importexport/inc/class.importexport_export_ui.inc.php index 3f0679ce82..cc0ab21cc2 100644 --- a/importexport/inc/class.importexport_export_ui.inc.php +++ b/importexport/inc/class.importexport_export_ui.inc.php @@ -10,6 +10,10 @@ * @version $Id$ */ +use EGroupware\Api; +use EGroupware\Api\Framework; +use EGroupware\Api\Etemplate; + /** * userinterface for exports * @@ -32,8 +36,8 @@ class importexport_export_ui { private $export_plugins; public function __construct() { - egw_framework::validate_file('.','export_dialog','importexport'); - egw_framework::validate_file('.','importexport','importexport'); + Framework::includeJS('.','export_dialog','importexport'); + Framework::includeJS('.','importexport','importexport'); $this->user = $GLOBALS['egw_info']['user']['user_id']; $this->export_plugins = importexport_helper_functions::get_plugins('all','export'); $GLOBALS['egw_info']['flags']['include_xajax'] = true; @@ -46,7 +50,7 @@ class importexport_export_ui { $readonlys = array(); $preserv = array(); - $et = new etemplate_new(self::_appname. '.export_dialog'); + $et = new Etemplate(self::_appname. '.export_dialog'); $_appname = $_content['appname'] ? $_content['appname'] : $_GET['appname']; $_definition = $_content['definition'] ? $_content['definition'] : $_GET['definition']; $_plugin = $_content['plugin'] ? $_content['plugin'] : $_GET['plugin']; @@ -56,8 +60,8 @@ class importexport_export_ui { if($_GET['selection'] || $_content['selection_passed']) $content['selection_passed'] = $preserv['selection_passed'] = true; // Check global setting - if(!bo_merge::is_export_limit_excepted()) { - $export_limit = bo_merge::getExportLimit($_appname); + if(!Api\Storage\Merge::is_export_limit_excepted()) { + $export_limit = Api\Storage\Merge::getExportLimit($_appname); if($export_limit == 'no') { die(lang('Admin disabled exporting')); } @@ -245,7 +249,7 @@ class importexport_export_ui { if($_content['preview'] || $_content['export']) { //error_log(__LINE__.__FILE__.'$_content: '.print_r($_content,true)); - $response = egw_json_response::get(); + $response = Api\Json\Response::get(); if ($_content['definition'] == 'expert') { $definition = new importexport_definition(); @@ -287,13 +291,13 @@ class importexport_export_ui { } if(is_array($value) && array_key_exists('from', $value) && $value['from']) { - $filter[$key]['from'] = egw_time::to($value['from'],'ts'); + $filter[$key]['from'] = Api\DateTime::to($value['from'],'ts'); } // If user selects an end date, they most likely want entries including that date if(is_array($value) && array_key_exists('to',$value) && $value['to'] ) { // Adjust time to 23:59:59 - $filter[$key]['to'] = new egw_time($value['to']); + $filter[$key]['to'] = new Api\DateTime($value['to']); $filter[$key]['to']->setTime(23,59,59); $filter[$key]['to'] = $filter[$key]['to']->format('ts'); } @@ -316,7 +320,7 @@ class importexport_export_ui { $tmpfname = tempnam($GLOBALS['egw_info']['server']['temp_dir'],'export'); $file = fopen($tmpfname, "w+"); if (! $charset = $definition->plugin_options['charset']) { - $charset = $GLOBALS['egw']->translation->charset(); + $charset = Api\Translation::charset(); } if($charset == 'user') { @@ -338,7 +342,7 @@ class importexport_export_ui { } // Store charset to use in header - egw_cache::setSession('importexport', $tmpfname, $charset, 100); + Api\Cache::setSession('importexport', $tmpfname, $charset, 100); if($_content['export'] == 'pressed') { fclose($file); @@ -357,7 +361,7 @@ class importexport_export_ui { $link_query['filename'] = $plugin_filename; } $response->redirect( $GLOBALS['egw']->link('/index.php',$link_query),true); - egw_framework::window_close(); + Framework::window_close(); return; } elseif($_content['preview'] == 'pressed') { @@ -378,9 +382,9 @@ class importexport_export_ui { unlink($tmpfname); // Convert back to system charset for display - $preview = $GLOBALS['egw']->translation->convert( $preview, + $preview = Api\Translation::convert( $preview, $charset, - $GLOBALS['egw']->translation->charset() + Api\Translation::charset() ); $preview = "
".lang('Preview') . "".(int)$record_count."
".$preview; @@ -432,7 +436,7 @@ class importexport_export_ui { public function ajax_get_definition_description($_definition) { - $_response = egw_json_response::get(); + $_response = Api\Json\Response::get(); $description = ''; if ($_definition) { @@ -446,7 +450,7 @@ class importexport_export_ui { } public function ajax_get_plugin_description($_plugin) { - $_respone = egw_json_response::get(); + $_respone = Api\Json\Response::get(); $plugin_object = new $_plugin; if (is_a($plugin_object, 'importexport_iface_export_plugin')) { @@ -477,9 +481,9 @@ class importexport_export_ui { $file = fopen($tmpfname,'rb'); // Get charset - $charset = egw_cache::getSession('importexport', $tmpfname); + $charset = Api\Cache::getSession('importexport', $tmpfname); - html::content_header($nicefname.'.'.$_GET['_suffix'], + Api\Header\Content::type($nicefname.'.'.$_GET['_suffix'], ($_GET['_type'] ? $_GET['_type'] : 'application/text') . ($charset ? '; charset='.$charset : ''), filesize($tmpfname)); fpassthru($file); @@ -487,6 +491,6 @@ class importexport_export_ui { unlink($tmpfname); // Try to avoid any extra finishing output - common::egw_exit(); + exit(); } } // end class uiexport diff --git a/importexport/inc/class.importexport_helper_functions.inc.php b/importexport/inc/class.importexport_helper_functions.inc.php index 4c32601882..57d66b0a0e 100755 --- a/importexport/inc/class.importexport_helper_functions.inc.php +++ b/importexport/inc/class.importexport_helper_functions.inc.php @@ -10,6 +10,8 @@ * @version $Id$ */ +use EGroupware\Api; + /** * class importexport_helper_functions (only static methods) * use importexport_helper_functions::method @@ -223,7 +225,7 @@ class importexport_helper_functions { public static function cat_id2name( $_cat_ids ) { $cat_ids = is_array( $_cat_ids ) ? $_cat_ids : explode( ',', $_cat_ids ); foreach ( $cat_ids as $cat_id ) { - $cat_names[] = categories::id2name( (int)$cat_id ); + $cat_names[] = Api\Categories::id2name( (int)$cat_id ); } return is_array( $_cat_ids ) ? $cat_names : implode(',',(array)$cat_names); } // end of member function category_id2name @@ -237,7 +239,7 @@ class importexport_helper_functions { * @return mixed comma seperated list or array with cat_ids */ public static function cat_name2id( $_cat_names, $parent = 0 ) { - $cats = new categories(); // uses current user and app (egw_info[flags][currentapp]) + $cats = new Api\Categories(); // uses current user and app (egw_info[flags][currentapp]) $cat_names = is_array( $_cat_names ) ? $_cat_names : explode( ',', $_cat_names ); foreach ( $cat_names as $cat_name ) { @@ -422,7 +424,7 @@ class importexport_helper_functions { * @return array( => array( => array( => ))) */ public static function get_plugins( $_appname = 'all', $_type = 'all' ) { - $plugins = egw_cache::getTree( + $plugins = Api\Cache::getTree( __CLASS__, 'plugins', array('importexport_helper_functions','_get_plugins'), @@ -432,7 +434,7 @@ class importexport_helper_functions { $appnames = $_appname == 'all' ? array_keys($GLOBALS['egw_info']['apps']) : (array)$_appname; $types = $_type == 'all' ? array('import','export') : (array)$_type; - // Testing: comment out egw_cache call, use this + // Testing: comment out Api\Cache call, use this //$plugins = self::_get_plugins($appnames, $types); foreach($plugins as $appname => $_types) { if(!in_array($appname, $appnames)) unset($plugins[$appname]); @@ -479,7 +481,7 @@ class importexport_helper_functions { } $d->close(); - $config = config::read('importexport'); + $config = Api\Config::read('importexport'); if($config['update'] == 'auto') { self::load_defaults($appname); } @@ -537,7 +539,7 @@ class importexport_helper_functions { * @return boolean */ public static function has_definitions( $_appname = 'all', $_type = 'all' ) { - $definitions = egw_cache::getSession( + $definitions = Api\Cache::getSession( __CLASS__, 'has_definitions', array('importexport_helper_functions','_has_definitions'), @@ -559,7 +561,7 @@ class importexport_helper_functions { return count($definitions[$appname]) > 0; } - // egw_cache needs this public + // Api\Cache needs this public public static function _has_definitions(Array $appnames, Array $types) { $def = new importexport_definitions_bo(array('application'=>$appnames, 'type' => $types)); $list = array(); @@ -636,7 +638,7 @@ class importexport_helper_functions { } } // Add custom fields - $custom = config::get_customfields($app_name); + $custom = Api\Storage\Customfields::get($app_name); foreach($custom as $field_name => $settings) { $settings['name'] = '#'.$field_name; diff --git a/importexport/inc/class.importexport_iface_egw_record.inc.php b/importexport/inc/class.importexport_iface_egw_record.inc.php index 7b4b779953..5f155bd35c 100644 --- a/importexport/inc/class.importexport_iface_egw_record.inc.php +++ b/importexport/inc/class.importexport_iface_egw_record.inc.php @@ -10,9 +10,12 @@ * @version $Id$ */ +use EGroupware\Api; +use EGroupware\Api\Egw; + /** * class importexport_iface_egw_record - * This a the abstract interface of an egw record. + * This a the abstract interface of an Egw record. * A record is e.g. a single address or or single event. * The idea behind is that we can have metaoperation over differnt apps by * having a common interface. diff --git a/importexport/inc/class.importexport_import_csv.inc.php b/importexport/inc/class.importexport_import_csv.inc.php index 9c1d7c1018..99f6a27fdf 100755 --- a/importexport/inc/class.importexport_import_csv.inc.php +++ b/importexport/inc/class.importexport_import_csv.inc.php @@ -11,6 +11,9 @@ * @version $Id$ */ +use EGroupware\Api; +use EGroupware\Api\Link; + /** * class import_csv * This a an abstract implementation of interface iface_import_record @@ -156,7 +159,7 @@ class importexport_import_csv implements importexport_iface_import_record { //, return false; } $this->current_position++; - $this->record = $GLOBALS['egw']->translation->convert($csv_data, $this->csv_charset); + $this->record = Api\Translation::convert($csv_data, $this->csv_charset); break; case 'previous' : @@ -268,7 +271,7 @@ class importexport_import_csv implements importexport_iface_import_record { //, if($appname) { // Load translations - translation::add_app($appname); + Api\Translation::add_app($appname); if(!self::$cf_parse_cache[$appname]) { $c_fields = importexport_export_csv::convert_parse_custom_fields($appname, $selects, $links, $methods); @@ -319,7 +322,7 @@ class importexport_import_csv implements importexport_iface_import_record { //, // Text - search for a matching record if(!is_numeric($record[$name])) { - $results = egw_link::query($links[$name], $record[$name]); + $results = Link::query($links[$name], $record[$name]); if(count($results) >= 1) { // More than 1 result. Check for exact match @@ -389,36 +392,36 @@ class importexport_import_csv implements importexport_iface_import_record { //, // Need to handle format first if($format == 1) { - $formatted = egw_time::createFromFormat( - '!'.egw_time::$user_dateformat . ' ' .egw_time::$user_timeformat, + $formatted = Api\DateTime::createFromFormat( + '!'.Api\DateTime::$user_dateformat . ' ' .Api\DateTime::$user_timeformat, $record[$name], - egw_time::$user_timezone + Api\DateTime::$user_timezone ); - if(!$formatted && $errors = egw_time::getLastErrors()) + if(!$formatted && $errors = Api\DateTime::getLastErrors()) { // Try again, without time - $formatted = egw_time::createFromFormat( - '!'.egw_time::$user_dateformat, + $formatted = Api\DateTime::createFromFormat( + '!'.Api\DateTime::$user_dateformat, trim($record[$name]), - egw_time::$user_timezone + Api\DateTime::$user_timezone ); - if(!$formatted && $errors = egw_time::getLastErrors()) + if(!$formatted && $errors = Api\DateTime::getLastErrors()) { // Try again, anything goes try { - $formatted = new egw_time($record[$name]); + $formatted = new Api\DateTime($record[$name]); } catch (Exception $e) { $warnings[] = $name.': ' . $e->getMessage() . "\n" . - 'Format: '.'!'.egw_time::$user_dateformat . ' ' .egw_time::$user_timeformat; + 'Format: '.'!'.Api\DateTime::$user_dateformat . ' ' .Api\DateTime::$user_timeformat; continue; } - $errors = egw_time::getLastErrors(); + $errors = Api\DateTime::getLastErrors(); foreach($errors['errors'] as $char => $msg) { $warnings[] = "$name: [$char] $msg\n". - 'Format: '.'!'.egw_time::$user_dateformat . ' ' .egw_time::$user_timeformat; + 'Format: '.'!'.Api\DateTime::$user_dateformat . ' ' .Api\DateTime::$user_timeformat; } } } @@ -426,7 +429,7 @@ class importexport_import_csv implements importexport_iface_import_record { //, { $record[$name] = $formatted->getTimestamp(); // Timestamp is apparently in server time, but apps will do the same conversion - $record[$name] = egw_time::server2user($record[$name],'ts'); + $record[$name] = Api\DateTime::server2user($record[$name],'ts'); } } @@ -447,13 +450,13 @@ class importexport_import_csv implements importexport_iface_import_record { //, // Need to handle format first if($format == 1) { - $formatted = egw_time::createFromFormat('!'.egw_time::$user_dateformat, $record[$name]); - if($formatted && $errors = egw_time::getLastErrors() && $errors['error_count'] == 0) + $formatted = Api\DateTime::createFromFormat('!'.Api\DateTime::$user_dateformat, $record[$name]); + if($formatted && $errors = Api\DateTime::getLastErrors() && $errors['error_count'] == 0) { $record[$name] = $formatted->getTimestamp(); } } - $record[$name] = egw_time::server2user($record[$name],'ts'); + $record[$name] = Api\DateTime::server2user($record[$name],'ts'); if(is_array(self::$cf_parse_cache[$appname][0]['date']) && in_array($name, self::$cf_parse_cache[$appname][0]['date'])) { // Custom fields stored in a particular format (from customfields_widget) @@ -484,7 +487,7 @@ class importexport_import_csv implements importexport_iface_import_record { //, if($appname) { $GLOBALS['egw_info']['flags']['currentapp'] = $appname; } - $categories = new categories('',$appname); + $categories = new Api\Categories('',$appname); foreach((array)$fields['select-cat'] as $name) { if($record[$name]) { // Only parse name if it needs it diff --git a/importexport/inc/class.importexport_import_ui.inc.php b/importexport/inc/class.importexport_import_ui.inc.php index a66b6eedd2..2525c42959 100644 --- a/importexport/inc/class.importexport_import_ui.inc.php +++ b/importexport/inc/class.importexport_import_ui.inc.php @@ -10,6 +10,10 @@ * @version $Id: class.importexport_import_ui.inc.php 27222 2009-06-08 16:21:14Z ralfbecker $ */ +use EGroupware\Api; +use EGroupware\Api\Framework; +use EGroupware\Api\Egw; +use EGroupware\Api\Etemplate; /** * userinterface for imports @@ -44,14 +48,14 @@ $definition = $_GET['definition'] ? $_GET['definition'] : $content['definition']; // We use some inline js in preview results if it fails - egw_framework::csp_script_src_attrs("unsafe-inline"); + Api\Header\ContentSecurityPolicy::add('script-src', "unsafe-inline"); - $template = new etemplate_new('importexport.import_dialog'); + $template = new Etemplate('importexport.import_dialog'); // Load application's translations if($appname) { - translation::add_app($appname); + Api\Translation::add_app($appname); } if($content['import'] && $definition) { try { @@ -81,7 +85,7 @@ $preference = $GLOBALS['egw_info']['user']['preferences']['common']['csv_charset']; } $required = $options['charset'] == 'user' || !$options['charset'] ? $preference : $options['charset']; - $encoding = translation::detect_encoding($sample, $required); + $encoding = Api\Translation::detect_encoding($sample, $required); if($encoding && strtoupper($required) != strtoupper($encoding)) { $this->message = lang("Encoding mismatch. Expected %1 file, you uploaded %2.<br />\n", @@ -100,7 +104,7 @@ if($file) { $cachefile = new egw_cache_files(array()); - $dst_file = $cachefile->filename(egw_cache::keys(egw_cache::INSTANCE, 'importexport', + $dst_file = $cachefile->filename(Api\Cache::keys(Api\Cache::INSTANCE, 'importexport', 'import_'.md5($content['file']['name'].$GLOBALS['egw_info']['user']['account_id']), true),true); // Keep file if($dst_file) @@ -155,7 +159,7 @@ // Refresh opening window if(!$content['dry-run']) { - egw_framework::refresh_opener(lang('%1 records processed',$count), $appname, null,null,$appname); + Framework::refresh_opener(lang('%1 records processed',$count), $appname, null,null,$appname); } $total_processed = 0; foreach($plugin->get_results() as $action => $a_count) { @@ -177,7 +181,7 @@ } if ($dst_file && $content['file']['tmp_name'] == $dst_file) { // Remove file - $cachefile->delete(egw_cache::keys(egw_cache::INSTANCE, 'importexport', + $cachefile->delete(Api\Cache::keys(Api\Cache::INSTANCE, 'importexport', 'import_'.md5($content['file']['name'].$GLOBALS['egw_info']['user']['account_id']))); unset($dst_file); } @@ -188,12 +192,12 @@ } elseif($content['cancel']) { - $GLOBALS['egw']->js->set_onload('window.close();'); + egw_framework::set_onload('window.close();'); } elseif ($GLOBALS['egw_info']['user']['apps']['admin']) { $this->message .= lang('You may want to <a href="%1" target="_new">backup</a> first.', - egw::link('/index.php', + Egw::link('/index.php', array('menuaction' => 'admin.admin_db_backup.index') ) ); @@ -212,7 +216,7 @@ $sel_options = self::get_select_options($data); $data['message'] = $this->message; - egw_framework::validate_file('.','importexport','importexport'); + Framework::includeJS('.','importexport','importexport'); if($_GET['appname']) $readonlys['appname'] = true; @@ -292,7 +296,7 @@ * @param importexport_iface_import_plugin $plugin Instance of plugin to be used * @param resource $stream * @param importexport_definition $definition - * @return String HTML fragment illustrating how the data will be understood by egw + * @return String HTML fragment illustrating how the data will be understood by Egw */ protected function preview(importexport_iface_import_plugin &$plugin, &$stream, importexport_definition &$definition_obj) { @@ -317,7 +321,7 @@ $rows[$import_csv->get_current_position() <= $definition_obj->plugin_options['num_header_lines'] ? 'h1' : $row] = $row_data; if($import_csv->get_current_position() <= $definition_obj->plugin_options['num_header_lines']) $row--; } - $preview = html::table($rows); + $preview = Api\Html::table($rows); rewind($stream); } else @@ -371,7 +375,7 @@ $data = fgetcsv($file, 8000, $options['fieldsep']); rewind($file); - $data = translation::convert($data,$charset); + $data = Api\Translation::convert($data,$charset); $ok = true; if(count($data) != count($options['csv_fields']) && max(array_keys($data)) != max(array_keys($options['csv_fields']))) @@ -402,8 +406,8 @@ continue; } // Check column headers, taking into account different translations - make sure no * - $lang_defn = mb_strtoupper(translation::translate($options['csv_fields'][$index],false,'')); - $lang_file = mb_strtoupper(translation::translate($header,false,'')); + $lang_defn = mb_strtoupper(Api\Translation::translate($options['csv_fields'][$index],false,'')); + $lang_file = mb_strtoupper(Api\Translation::translate($header,false,'')); if($lang_defn == $lang_file || $lang_defn == mb_strtoupper($header) || @@ -413,9 +417,9 @@ continue; } - // Try to go back to translation message ID for a match - $file_message_id = translation::get_message_id($header, $definition->application); - $defn_message_id = translation::get_message_id($options['csv_fields'][$index], $definition->application); + // Try to go back to Api\Translation message ID for a match + $file_message_id = Api\Translation::get_message_id($header, $definition->application); + $defn_message_id = Api\Translation::get_message_id($options['csv_fields'][$index], $definition->application); if($file_message_id && $defn_message_id && $file_message_id == $defn_message_id) { @@ -432,12 +436,12 @@ if(!$ok || count($message) != $message_count) { // Add links for new / edit definition - $config = config::read('importexport'); + $config = Api\Config::read('importexport'); if($GLOBALS['egw_info']['user']['apps']['admin'] || $config['users_create_definitions']) { $actions = ''; // New definition - $add_link = egw::link('/index.php',array( + $add_link = Egw::link('/index.php',array( 'menuaction' => 'importexport.importexport_definitions_ui.edit', 'application' => $definition->application, 'plugin' => $definition->plugin, @@ -445,7 +449,7 @@ 'step' => 'wizard_step21' )); $add_link = " - javascript:this.window.location = '" . egw::link('/index.php', array( + javascript:this.window.location = '" . Egw::link('/index.php', array( 'menuaction' => 'importexport.importexport_import_ui.import_dialog', // Don't set appname, or user won't be able to select & see their new definition //'appname' => $definition->application, @@ -470,7 +474,7 @@ $GLOBALS['egw']->session->appsession('csvfile','',$dst_file); $edit_link['step'] = 'wizard_step30'; } - $edit_link = egw::link('/index.php',$edit_link); + $edit_link = Egw::link('/index.php',$edit_link); $edit_link = "javascript:egw_openWindowCentered2('$edit_link','_blank',500,500,'yes')"; $actions[] = lang('Edit definition <a href="%1">%2</a> to match your file', $edit_link, $definition->name ); diff --git a/importexport/inc/class.importexport_schedule_ui.inc.php b/importexport/inc/class.importexport_schedule_ui.inc.php index 211c1323f7..d5e1fc9747 100644 --- a/importexport/inc/class.importexport_schedule_ui.inc.php +++ b/importexport/inc/class.importexport_schedule_ui.inc.php @@ -10,6 +10,10 @@ * @version $Id: class.importexport_import_ui.inc.php 27222 2009-06-08 16:21:14Z ralfbecker $ */ +use EGroupware\Api; +use EGroupware\Api\Framework; +use EGroupware\Api\Vfs; +use EGroupware\Api\Etemplate; /** * userinterface for admins to schedule imports or exports using async services @@ -26,7 +30,7 @@ protected static $template; public function __construct() { - $this->template = new etemplate_new(); + $this->template = new Etemplate(); } public function index($content = array()) { @@ -68,9 +72,9 @@ } $data['scheduled'][] = array_merge($async['data'], array( 'id' => urlencode($id), - 'next' => egw_time::server2user($async['next']), + 'next' => Api\DateTime::server2user($async['next']), 'times' => str_replace("\n", '', print_r($async['times'], true)), - 'last_run' => $async['data']['last_run'] ? egw_time::server2user($async['data']['last_run']) : '' + 'last_run' => $async['data']['last_run'] ? Api\DateTime::server2user($async['data']['last_run']) : '' )); } array_unshift($data['scheduled'], false); @@ -85,7 +89,7 @@ public function edit($content = array()) { $id = $_GET['id'] ? urldecode($_GET['id']) : $content['id']; $definition_id = $_GET['definition']; - $async = new asyncservice(); + $async = new Api\Asyncservice(); unset($content['id']); @@ -112,8 +116,8 @@ $content ); if($result) { - egw_framework::refresh_opener('', 'admin',$id,'update','admin'); - egw_framework::window_close(); + Framework::refresh_opener('', 'admin',$id,'update','admin'); + Framework::window_close(); } else { $data['message'] = lang('Unable to schedule'); unset($id); @@ -159,7 +163,7 @@ $data['current_time'] = time(); $sel_options = self::get_select_options($data); - egw_framework::validate_file('.','importexport','importexport'); + Framework::includeJS('.','importexport','importexport'); $GLOBALS['egw_info']['flags']['app_header'] = lang('Schedule import / export'); $this->template->read('importexport.schedule_edit'); @@ -304,11 +308,11 @@ if($scheme == '' || $scheme == 'file') { return 'Direct file access not allowed'; } - if($scheme == EGroupware\Api\Vfs::SCHEME && !in_array(EGroupware\Api\Vfs::SCHEME, stream_get_wrappers())) { - stream_wrapper_register(EGroupware\Api\Vfs::SCHEME, 'vfs_stream_wrapper', STREAM_IS_URL); + if($scheme == EGroupware\Vfs::SCHEME && !in_array(EGroupware\Vfs::SCHEME, stream_get_wrappers())) { + stream_wrapper_register(EGroupware\Vfs::SCHEME, 'vfs_stream_wrapper', STREAM_IS_URL); } - if ($data['type'] == 'import' && ($scheme == EGroupware\Api\Vfs::SCHEME && !egw_vfs::is_readable($data['target']))) + if ($data['type'] == 'import' && ($scheme == EGroupware\Vfs::SCHEME && !Vfs::is_readable($data['target']))) { return lang('%1 is not readable',$data['target']); } @@ -621,7 +625,7 @@ if($data['warnings']) { - $contents .= lang($data['type']) . ' ' . lang('Warnings') . ' ' . egw_time::to() . ':'; + $contents .= lang($data['type']) . ' ' . lang('Warnings') . ' ' . Api\DateTime::to() . ':'; foreach($data['warnings'] as $target => $message) { $contents .= "\n". (is_numeric($target) ? '' : $target."\n"); @@ -631,7 +635,7 @@ } if($data['errors']) { - $contents .= lang($data['type']) . ' ' . lang('Errors') . ' ' . egw_time::to() . ':'; + $contents .= lang($data['type']) . ' ' . lang('Errors') . ' ' . Api\DateTime::to() . ':'; foreach($data['errors'] as $target => $errors) { $contents .= "\n". (is_numeric($target) ? '' : $target."\n"); diff --git a/importexport/inc/class.importexport_widget_filter.inc.php b/importexport/inc/class.importexport_widget_filter.inc.php index 54850bdfd1..ce0246cea3 100644 --- a/importexport/inc/class.importexport_widget_filter.inc.php +++ b/importexport/inc/class.importexport_widget_filter.inc.php @@ -6,6 +6,9 @@ * @version $Id$ */ +use EGroupware\Api; +use EGroupware\Api\Etemplate; + /** * Extend custom fields and make an general advanced filter * @@ -21,7 +24,7 @@ * * Most text fields are ignored. */ -class importexport_widget_filter extends etemplate_widget_transformer +class importexport_widget_filter extends Etemplate\Widget\Transformer { protected static $prefix = ''; @@ -98,7 +101,7 @@ class importexport_widget_filter extends etemplate_widget_transformer // and used as such. All unknown values will be used for selection, not passed through to the query if (isset($field['values']['@'])) { - $options['values'] = egw_customfields::get_options_from_file($field['values']['@']); + $options['values'] = Api\Storage\Customfields::get_options_from_file($field['values']['@']); unset($field['values']['@']); } else { $options['values'] = array_diff_key($field['values'], array_flip(ajax_select_widget::$known_options)); @@ -113,7 +116,7 @@ class importexport_widget_filter extends etemplate_widget_transformer { if (count($field['values']) == 1 && isset($field['values']['@'])) { - $field['values'] = egw_customfields::get_options_from_file($field['values']['@']); + $field['values'] = Api\Storage\Customfields::get_options_from_file($field['values']['@']); } foreach((array)$field['values'] as $key => $val) { @@ -182,4 +185,4 @@ class importexport_widget_filter extends etemplate_widget_transformer } } // Register, or it won't be found -\EGroupware\Api\Etemplate\Widget::registerWidget('importexport_widget_filter', array('filter')); \ No newline at end of file +Etemplate\Widget::registerWidget('importexport_widget_filter', array('filter')); \ No newline at end of file diff --git a/importexport/inc/class.importexport_wizard_basic_export_csv.inc.php b/importexport/inc/class.importexport_wizard_basic_export_csv.inc.php index cbfc880a1b..84c7cc09e6 100644 --- a/importexport/inc/class.importexport_wizard_basic_export_csv.inc.php +++ b/importexport/inc/class.importexport_wizard_basic_export_csv.inc.php @@ -15,6 +15,8 @@ * @author Nathan Gray */ +use EGroupware\Api; + class importexport_wizard_basic_export_csv { @@ -63,7 +65,7 @@ class importexport_wizard_basic_export_csv ); list($appname, $part2) = explode('_', get_class($this)); if(!$GLOBALS['egw_info']['apps'][$appname]) $appname .= '_'.$part2; // Handle apps with _ in the name - translation::add_app($appname); + Api\Translation::add_app($appname); } /** @@ -202,13 +204,13 @@ class importexport_wizard_basic_export_csv 1 => lang('Field names'), 'label' => lang('Field labels') ); - $sel_options['charset'] = $GLOBALS['egw']->translation->get_installed_charsets()+ + $sel_options['charset'] = Api\Translation::get_installed_charsets()+ array( 'user' => lang('User preference'), ); // Add in extra allowed charsets - $config = config::read('importexport'); + $config = Api\Config::read('importexport'); $extra_charsets = array_intersect(explode(',',$config['import_charsets']), mb_list_encodings()); if($extra_charsets) { diff --git a/importexport/inc/class.importexport_wizard_basic_import_csv.inc.php b/importexport/inc/class.importexport_wizard_basic_import_csv.inc.php index 3e3f833bbb..bf467dd7aa 100644 --- a/importexport/inc/class.importexport_wizard_basic_import_csv.inc.php +++ b/importexport/inc/class.importexport_wizard_basic_import_csv.inc.php @@ -15,6 +15,8 @@ * @author Nathan Gray */ +use EGroupware\Api; + class importexport_wizard_basic_import_csv { @@ -98,7 +100,7 @@ class importexport_wizard_basic_import_csv $content['step'] = 'wizard_step30'; $preserv = $content; unset ($preserv['button']); - //$GLOBALS['egw']->js->set_onload("xajax_eT_wrapper_init();"); + return $this->step_templates[$content['step']]; } @@ -131,8 +133,8 @@ class importexport_wizard_basic_import_csv // Remove & forget file unlink($GLOBALS['egw']->session->appsession('csvfile',$content['application'])); - egw_cache::setSession($content['application'], 'csvfile', ''); - $content['csv_fields'] = translation::convert($data,$content['charset']); + Api\Cache::setSession($content['application'], 'csvfile', ''); + $content['csv_fields'] = Api\Translation::convert($data,$content['charset']); // Reset field mapping for new file $content['field_mapping'] = array(); @@ -151,10 +153,10 @@ class importexport_wizard_basic_import_csv } // Check english also if($GLOBALS['egw_info']['user']['preferences']['common']['lang'] != 'en' && !isset($english[$field_name])) { - $msg_id = translation::get_message_id($field_name, $content['application']); + $msg_id = Api\Translation::get_message_id($field_name, $content['application']); } if($msg_id) { - $english[$field_name] = translation::read('en', $content['application'], $msg_id); + $english[$field_name] = Api\Translation::read('en', $content['application'], $msg_id); } else { $english[$field_name] = false; } @@ -229,13 +231,13 @@ class importexport_wizard_basic_import_csv $content['convert'] = 1; } - $sel_options['charset'] = $GLOBALS['egw']->translation->get_installed_charsets()+ + $sel_options['charset'] = Api\Translation::get_installed_charsets()+ array( 'user' => lang('User preference'), ); // Add in extra allowed charsets - $config = config::read('importexport'); + $config = Api\Config::read('importexport'); $extra_charsets = array_intersect(explode(',',$config['import_charsets']), mb_list_encodings()); if($extra_charsets) { diff --git a/importexport/setup/etemplates.inc.php b/importexport/setup/etemplates.inc.php deleted file mode 100644 index dffa499d00..0000000000 --- a/importexport/setup/etemplates.inc.php +++ /dev/null @@ -1,155 +0,0 @@ -<?php -/** - * EGroupware - eTemplates for Application importexport - * http://www.egroupware.org - * generated by soetemplate::dump4setup() 2013-10-30 17:16 - * - * @license http://opensource.org/licenses/gpl-license.php GPL - GNU General Public License - * @package importexport - * @subpackage setup - * @version $Id$ - */ - -$templ_version=1; - -$templ_data[] = array('name' => 'importexport.config','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:5:{i:0;a:2:{s:2:"c2";s:4:",top";s:2:"c3";s:4:",top";}i:1;a:2:{s:1:"A";a:2:{s:4:"type";s:5:"label";s:5:"label";s:45:"Users allowed to create their own definitions";}s:1:"B";a:2:{s:4:"type";s:8:"checkbox";s:4:"name";s:24:"users_create_definitions";}}i:2;a:2:{s:1:"A";a:2:{s:4:"type";s:5:"label";s:5:"label";s:44:"Users allowed to share their own definitions";}s:1:"B";a:3:{s:4:"type";s:14:"select-account";s:4:"size";s:6:"5,both";s:4:"name";s:16:"share_definition";}}i:3;a:2:{s:1:"A";a:2:{s:4:"type";s:5:"label";s:5:"label";s:34:"Extra charsets for import / export";}s:1:"B";a:3:{s:4:"type";s:6:"select";s:4:"size";s:1:"5";s:4:"name";s:15:"import_charsets";}}i:4;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:4:"span";s:3:"all";s:5:"label";s:4:"Save";s:4:"name";s:4:"save";}i:2;a:4:{s:4:"type";s:6:"button";s:4:"span";s:3:"all";s:5:"label";s:6:"Cancel";s:4:"name";s:6:"cancel";}}s:1:"B";a:1:{s:4:"type";s:5:"label";}}}s:4:"rows";i:4;s:4:"cols";i:2;}}','size' => '','style' => '','modified' => '1298390222',); - -$templ_data[] = array('name' => 'importexport.definition_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:2:{s:2:"h1";s:6:",!@msg";s:2:"h3";s:27:",!@nm[selectcols]=/actions/";}i:1;a:1:{s:1:"A";a:5:{s:5:"align";s:6:"center";s:7:"no_lang";s:1:"1";s:4:"span";s:11:"all,message";s:4:"name";s:3:"msg";s:4:"type";s:5:"label";}}i:2;a:1:{s:1:"A";a:3:{s:4:"name";s:2:"nm";s:4:"type";s:9:"nextmatch";s:4:"size";s:33:"importexport.definition_index.row";}}i:3;a:1:{s:1:"A";a:5:{s:5:"align";s:5:"right";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:198:"if (!egw_globalObjectManager.getObjectById(\'importexport.definition_index.row\').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:109:"egw_globalObjectManager.getObjectById(\'importexport.definition_index.row\').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";}}}i:4;a:1:{s:1:"A";a:4:{s:4:"type";s:3:"box";s:4:"size";s:1:"2";i:1;a:6:{s:4:"name";s:11:"owner_popup";s:4:"type";s:3:"box";s:4:"size";s:1:"2";s:4:"span";s:20:",action_popup prompt";i:1;a:3:{s:4:"type";s:5:"label";s:5:"label";s:12:"Change owner";s:4:"span";s:13:",promptheader";}i:2;a:6:{s:4:"type";s:4:"vbox";s:4:"size";s:1:"3";s:4:"span";s:21:",action_popup-content";i:1;a:2:{s:4:"type";s:5:"label";s:5:"label";s:12:"Select owner";}i:2;a:4:{s:5:"class";s:20:"action_popup-content";s:4:"type";s:14:"select-account";s:4:"name";s:5:"owner";s:4:"size";s:13:"None,accounts";}i:3;a:4:{s:4:"type";s:4:"hbox";s:4:"size";s:1:"2";i:1;a:3:{s:5:"label";s:4:"Save";s:7:"onclick";s:36:"nm_submit_popup(this); return false;";s:4:"type";s:6:"button";}i:2;a:3:{s:5:"label";s:6:"Cancel";s:7:"onclick";s:34:"nm_hide_popup(this,\'owner_popup\');";s:4:"type";s:10:"buttononly";}}}}i:2;a:5:{s:4:"name";s:13:"allowed_popup";s:4:"type";s:3:"box";s:4:"size";s:1:"1";s:4:"span";s:20:",action_popup prompt";i:1;a:8:{s:4:"type";s:4:"vbox";s:4:"size";s:1:"6";i:1;a:3:{s:4:"type";s:5:"label";s:5:"label";s:20:"Change allowed users";s:4:"span";s:13:",promptheader";}i:2;a:2:{s:4:"type";s:5:"label";s:5:"label";s:13:"Select groups";}i:3;a:3:{s:5:"label";s:10:"%s Just me";s:4:"name";s:15:"allowed_private";s:4:"type";s:8:"checkbox";}i:4;a:3:{s:5:"label";s:12:"%s All users";s:4:"name";s:9:"all_users";s:4:"type";s:8:"checkbox";}i:5;a:3:{s:4:"type";s:14:"select-account";s:4:"name";s:7:"allowed";s:4:"size";s:8:"5,groups";}i:6;a:4:{s:4:"type";s:4:"hbox";s:4:"size";s:1:"2";i:1;a:3:{s:5:"label";s:4:"Save";s:7:"onclick";s:36:"nm_submit_popup(this); return false;";s:4:"type";s:6:"button";}i:2;a:3:{s:5:"label";s:6:"Cancel";s:7:"onclick";s:36:"nm_hide_popup(this,\'allowed_popup\');";s:4:"type";s:10:"buttononly";}}}}}}}s:4:"cols";i:1;s:4:"rows";i:4;s:4:"size";s:4:"100%";}}','size' => '100%','style' => 'td.lr_padding { padding-left: 5px; padding-right: 5px; } - -.button { - cursor: pointer; -} -/** - * Add / remove link or category popup used for actions on multiple entries - */ - -.action_popup { - position: fixed; - top: 200px; - left: 450px; - width: 76ex; - z-index: 20000; - display: none; - border-collapse:collapse; - border-spacing:0px -} -.action_popup-content { - display:block; - padding:2ex; - color:#666666; - margin: -2px -1px 0px -2px; -} -.action_popup > table { - width: 100% -} -.action_popup .promptheader { - padding: 1ex; - width: 100% -} - -.action_select { - width: 100% -}','modified' => '1383076753',); - -$templ_data[] = array('name' => 'importexport.definition_index.add','template' => '','lang' => '','group' => '0','version' => '1.9.002','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:4:{s:4:"type";s:6:"button";s:5:"label";s:3:"Add";s:4:"name";s:3:"add";s:7:"onclick";s:182:"window.open(egw::link(\'/index.php\',\'menuaction=importexport.importexport_definitions_ui.edit\'),\'_blank\',\'dependent=yes,width=600,height=500,scrollbars=yes,status=yes\'); return false;";}}}s:4:"rows";i:1;s:4:"cols";i:1;}}','size' => '','style' => '','modified' => '1303226106',); - -$templ_data[] = array('name' => 'importexport.definition_index.row','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:3:{i:0;a:8:{s:1:"A";s:4:"20px";s:1:"G";s:16:"10px,@no_actions";s:2:"c1";s:2:"th";s:2:"c2";s:20:"row $row_cont[class]";s:1:"C";s:5:"150px";s:1:"D";s:5:"150px";s:1:"E";s:5:"150px";s:1:"F";s:4:"10px";}i:1;a:7:{s:1:"A";a:4:{s:4:"name";s:4:"type";s:4:"size";s:12:"importexport";s:4:"type";s:22:"nextmatch-filterheader";s:4:"span";s:11:",lr_padding";}s:1:"B";a:4:{s:5:"label";s:4:"Name";s:4:"name";s:4:"name";s:4:"type";s:20:"nextmatch-sortheader";s:4:"span";s:11:",lr_padding";}s:1:"C";a:4:{s:4:"name";s:11:"application";s:4:"size";s:11:"Application";s:4:"type";s:22:"nextmatch-filterheader";s:4:"span";s:11:",lr_padding";}s:1:"D";a:6:{s:5:"align";s:6:"center";s:5:"label";s:13:"Allowed users";s:4:"name";s:13:"allowed_users";s:4:"size";s:10:"All,groups";s:4:"type";s:23:"nextmatch-accountfilter";s:4:"span";s:11:",lr_padding";}s:1:"E";a:3:{s:5:"label";s:5:"Owner";s:4:"name";s:5:"owner";s:4:"type";s:23:"nextmatch-accountfilter";}s:1:"F";a:5:{s:5:"align";s:6:"center";s:5:"label";s:7:"Actions";s:4:"name";s:7:"actions";s:4:"type";s:16:"nextmatch-header";s:4:"span";s:11:",lr_padding";}s:1:"G";a:4:{s:4:"type";s:4:"hbox";s:4:"size";s:1:"2";i:1;a:6:{s:5:"label";s:6:"Delete";s:7:"onclick";s:65:"return confirm(\'Do you really want to DELETE this definitions?\');";s:4:"name";s:15:"delete_selected";s:4:"type";s:6:"button";s:4:"size";s:6:"delete";s:4:"help";s:31:"delete ALL selected definitions";}i:2;a:5:{s:5:"label";s:6:"Export";s:4:"name";s:15:"export_selected";s:4:"type";s:6:"button";s:4:"size";s:10:"fileexport";s:4:"help";s:31:"export ALL selected definitions";}}}i:2;a:7:{s:1:"A";a:5:{s:7:"no_lang";s:1:"1";s:7:"onclick";s:270:"window.open(egw::link(\'/index.php\',\'menuaction=importexport.importexport_${row_cont[type]}_ui.{$row_cont[type]}_dialog&appname=${row_cont[application]}&definition=${row_cont[name]}\'),\'_blank\',\'dependent=yes,width=850,height=440,scrollbars=yes,status=yes\'); return false;";s:4:"type";s:5:"image";s:4:"name";s:12:"${row}[type]";s:4:"span";s:18:",lr_padding button";}s:1:"B";a:4:{s:7:"no_lang";s:1:"1";s:4:"name";s:12:"${row}[name]";s:4:"type";s:5:"label";s:4:"span";s:11:",lr_padding";}s:1:"C";a:3:{s:4:"name";s:19:"${row}[application]";s:4:"type";s:5:"label";s:4:"span";s:11:",lr_padding";}s:1:"D";a:6:{s:4:"type";s:14:"select-account";s:7:"no_lang";s:1:"1";s:8:"readonly";s:4:"true";s:4:"name";s:21:"${row}[allowed_users]";s:4:"size";s:6:"5,both";s:4:"span";s:11:",lr_padding";}s:1:"E";a:3:{s:4:"type";s:14:"select-account";s:8:"readonly";s:4:"true";s:4:"name";s:13:"${row}[owner]";}s:1:"F";a:5:{s:5:"align";s:6:"center";s:4:"type";s:4:"hbox";s:4:"size";s:1:"2";i:1;a:5:{s:5:"label";s:4:"Edit";s:7:"onclick";s:263:"window.open(egw::link(\'/index.php\',\'menuaction=importexport.importexport_definitions_ui.edit&definition=$row_cont[name]\'),\'\',\'dependent=yes,width=500,height=500,location=no,menubar=no,toolbar=no,scrollbars=yes,resizable=1,status=yes\'); return false; return false;";s:4:"name";s:32:"edit[{$row_cont[definition_id]}]";s:4:"type";s:6:"button";s:4:"size";s:4:"edit";}i:2;a:6:{s:5:"label";s:6:"Delete";s:7:"onclick";s:41:"return confirm(\'Delete this definition\');";s:4:"name";s:32:"delete[$row_cont[definition_id]]";s:4:"type";s:6:"button";s:4:"size";s:6:"delete";s:4:"help";s:21:"Delete this eTemplate";}}s:1:"G";a:5:{s:5:"align";s:6:"center";s:4:"name";s:10:"selected[]";s:4:"size";s:24:"$row_cont[definition_id]";s:4:"type";s:8:"checkbox";s:4:"help";s:34:"select this eTemplate to delete it";}}}s:4:"cols";i:7;s:4:"rows";i:2;s:4:"size";s:4:"100%";}}','size' => '100%','style' => '.redItalic { color:red; font-style:italic;} td.lr_padding { padding-left: 5px; padding-right: 5px; } - -.button { - cursor: pointer; -}','modified' => '1383076807',); - -$templ_data[] = array('name' => 'importexport.export_csv_selectors','template' => '','lang' => '','group' => '0','version' => '1.9.002','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:4:{s:4:"type";s:5:"radio";s:5:"label";s:7:"Use all";s:4:"size";s:3:"all";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:6:"search";}}i:3;a:1:{s:1:"A";a:5:{s:4:"type";s:5:"radio";s:5:"label";s:21:"Use definition filter";s:4:"name";s:9:"selection";s:4:"size";s:6:"filter";s:7:"onclick";s:27:"\\\\$j(\'div.filters\').show();";}}}s:4:"rows";i:3;s:4:"cols";i:1;}}','size' => '','style' => '','modified' => '1358878811',); - -$templ_data[] = array('name' => 'importexport.export_dialog','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:6:{i:0;a:1:{s:2:"c3";s:15:"save_definition";}i:1;a:1:{s:1:"A";a:2:{s:4:"type";s:5:"label";s:4:"name";s:3:"msg";}}i:2;a:1:{s:1:"A";a:3:{s:4:"type";s:3:"tab";s:5:"label";s:25:"General|Selection|Options";s:4:"name";s:37:"general_tab|selection_tab|options_tab";}}i:3;a:1:{s:1:"A";a:3:{s:4:"type";s:8:"checkbox";s:5:"label";s:18:"Save as definition";s:4:"name";s:18:"save_as_definition";}}i:4;a:1:{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:4:"hbox";s:4:"size";s:1:"2";i:1;a:3:{s:4:"type";s:6:"button";s:5:"label";s:6:"Export";s:4:"name";s:6:"export";}i:2;a:4:{s:4:"type";s:6:"button";s:5:"label";s:7:"Preview";s:4:"name";s:7:"preview";s:7:"onclick";s:31:"app.importexport.export_preview";}}i:2;a:5:{s:4:"type";s:6:"button";s:5:"label";s:6:"Cancel";s:5:"align";s:5:"right";s:4:"name";s:6:"cancel";s:7:"onclick";s:29:"window.close(); return false;";}}}i:5;a:1:{s:1:"A";a:6:{s:4:"type";s:3:"box";s:4:"name";s:11:"preview_box";s:4:"size";s:1:"2";s:4:"span";s:15:"all,preview_box";i:1;a:6:{s:4:"type";s:4:"html";s:4:"size";s:1:"1";s:4:"name";s:11:"preview-box";s:6:"needed";s:1:"1";i:1;a:1:{s:4:"type";s:5:"label";}s:4:"span";s:8:",content";}i:2;a:6:{s:4:"type";s:3:"box";s:4:"size";s:1:"1";s:4:"span";s:20:",preview-box-buttons";s:4:"name";s:19:"preview-box-buttons";i:1;a:4:{s:4:"type";s:6:"button";s:5:"label";s:2:"OK";s:5:"align";s:6:"center";s:7:"onclick";s:76:"jQuery(this).parents(\'div.preview_box\').css(\'display\',\'none\'); return false;";}s:5:"align";s:6:"center";}}}}s:4:"rows";i:5;s:4:"cols";i:1;s:4:"size";s:4:"100%";s:7:"options";a:1:{i:0;s:4:"100%";}}}','size' => '100%','style' => 'div.preview_box { - position: absolute; - top: 0px; - left: 0px; - width: 97%; - height: 95%; - overflow: hidden; - background-color: white; - z-index: 999; - display: none; - border: 1px solid black; - margin: 1.5%; -} -.preview_box .header { - font-size: 150%; - margin-bottom: 5px; - padding: 5px; - border-bottom: 1px outset; -} -.header .count { - float:right; -} -.preview_box>.content { - overflow: auto; -} -.preview-box-buttons { - position: absolute; - bottom: 0px; - width: 100%; - margin-left: 50%; -}','modified' => '1296146438',); - -$templ_data[] = array('name' => 'importexport.export_dialog.general_tab','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:1:{s:2:"c1";s:4:",top";}i:1;a:2:{s:1:"A";a:2:{s:4:"type";s:5:"image";s:4:"name";s:6:"export";}s:1:"B";a:2:{s:4:"type";s:8:"template";s:4:"name";s:46:"importexport.export_dialog.general_tab_content";}}}s:4:"rows";i:1;s:4:"cols";i:2;s:4:"size";s:6:",200px";s:7:"options";a:1:{i:1;s:5:"200px";}}}','size' => ',200px','style' => '','modified' => '1158223670',); - -$templ_data[] = array('name' => 'importexport.export_dialog.general_tab_content','template' => '','lang' => '','group' => '0','version' => '','data' => 'a:1:{i:0;a:4:{s:4:"type";s:4:"grid";s:4:"data";a:6:{i:0;a:3:{s:2:"c2";s:14:"select_appname";s:2:"c3";s:17:"select_definition";s:2:"c4";s:13:"select_plugin";}i:1;a:2:{s:1:"A";a:2:{s:4:"type";s:5:"label";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:18:"Select application";}s:1:"B";a:4:{s:4:"type";s:6:"select";s:7:"no_lang";s:1:"1";s:4:"name";s:7:"appname";s:8:"onchange";i:1;}}i:3;a:2:{s:1:"A";a:2:{s:4:"type";s:5:"label";s:5:"label";s:17:"Select definition";}s:1:"B";a:4:{s:4:"type";s:6:"select";s:7:"no_lang";s:1:"1";s:4:"name";s:10:"definition";s:8:"onchange";i:1;}}i:4;a:2:{s:1:"A";a:2:{s:4:"type";s:5:"label";s:5:"label";s:13:"Select plugin";}s:1:"B";a:4:{s:4:"type";s:6:"select";s:8:"onchange";i:1;s:7:"no_lang";s:1:"1";s:4:"name";s:6:"plugin";}}i:5;a:2:{s:1:"A";a:6:{s:4:"type";s:3:"box";s:4:"span";s:3:"all";s:4:"name";s:18:"plugin_description";s:6:"needed";s:1:"1";s:4:"size";s:1:"1";i:1;a:7:{s:4:"type";s:5:"label";s:4:"span";s:3:"all";s:6:"needed";s:1:"1";i:1;a:4:{s:4:"type";s:5:"label";s:4:"span";s:3:"all";s:6:"needed";s:1:"1";s:5:"label";s:11:"Description";}i:2;a:2:{s:4:"type";s:5:"label";s:4:"name";s:18:"plugin_description";}s:4:"name";s:11:"description";s:7:"no_lang";s:1:"1";}}s:1:"B";a:1:{s:4:"type";s:5:"label";}}}s:4:"rows";i:5;s:4:"cols";i:2;}}','size' => '','style' => '','modified' => '1158223021',); - -$templ_data[] = array('name' => 'importexport.export_dialog.options_tab','template' => '','lang' => '','group' => '0','version' => '','data' => 'a:1:{i:0;a:5:{s:4:"type";s:4:"grid";s:4:"data";a:4:{i:0;a:2:{s:2:"c2";s:4:",top";s:2:"h2";s:25:",@plugin_options_template";}i:1;a:1:{s:1:"A";a:6:{s:4:"type";s:4:"grid";s:4:"span";s:3:"all";s:7:"options";a:0:{}s:4:"data";a:2:{i:0;a:0:{}i:1;a:2:{s:1:"A";a:2:{s:4:"type";s:5:"label";s:5:"label";s:9:"Delimiter";}s:1:"B";a:5:{s:4:"type";s:4:"hbox";s:4:"size";s:1:"2";s:7:"no_lang";s:1:"1";i:1;a:4:{s:4:"type";s:6:"select";s:7:"no_lang";s:1:"1";s:4:"name";s:9:"delimiter";s:8:"onchange";s:158:"var _this = jQuery(this); var text = _this.parent().parent().find(\'input\'); if(_this.val() ==\'\') {text.val(\'\');text.show(); text.focus();} else {text.hide();}";}i:2;a:4:{s:4:"type";s:4:"text";s:4:"name";s:15:"other_delimiter";s:4:"size";s:1:"2";s:4:"span";s:5:",hide";}}}}s:4:"rows";i:1;s:4:"cols";i:2;}}i:2;a:1:{s:1:"A";a:3:{s:7:"no_lang";s:1:"1";s:4:"name";s:19:"plugin_options_html";s:4:"type";s:4:"html";}}i:3;a:1:{s:1:"A";a:2:{s:4:"type";s:8:"template";s:4:"name";s:24:"@plugin_options_template";}}}s:4:"cols";i:1;s:4:"rows";i:3;s:4:"size";s:6:",200px";}}','size' => ',200px','style' => '.hide input { - display: none; -}','modified' => '1286482130',); - -$templ_data[] = array('name' => 'importexport.export_dialog.selection_tab','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:10:{s:2:"h3";s:30:"20,!@plugin_selectors_template";s:2:"h2";s:27:",@plugin_selectors_template";s:2:"c2";s:4:",top";s:2:"h4";s:28:",!@plugin_selectors_template";s:2:"c3";s:2:"th";s:2:"h1";s:29:"20,@plugin_selectors_template";s:2:"c1";s:2:"th";s:2:"c4";s:4:",top";s:1:"B";s:14:"300,@no_filter";s:1:"A";s:3:"150";}i:1;a:2:{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:17:"Definition filter";}}i:2;a:2:{s:1:"A";a:3:{s:4:"type";s:4:"html";s:4:"name";s:21:"plugin_selectors_html";s:7:"no_lang";s:1:"1";}s:1:"B";a:4:{s:4:"type";s:3:"box";s:4:"span";s:8:",filters";s:4:"size";s:1:"1";i:1;a:2:{s:4:"type";s:6:"filter";s:4:"name";s:6:"filter";}}}i:3;a:2:{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:17:"Definition filter";}}i:4;a:2:{s:1:"A";a:2:{s:4:"type";s:8:"template";s:4:"name";s:26:"@plugin_selectors_template";}s:1:"B";a:5:{s:4:"type";s:3:"box";s:4:"span";s:8:",filters";s:4:"size";s:1:"1";i:1;a:2:{s:4:"type";s:6:"filter";s:4:"name";s:6:"filter";}s:7:"onclick";s:105:"\\$j(\'input[value=\\\'filter\\\']\').not(\':checked\').attr(\'checked\',true).parent().effect(\'highlight\',{},2000);";}}}s:4:"rows";i:4;s:4:"cols";i:2;s:4:"size";s:10:"100%,200px";s:7:"options";a:2:{i:0;s:4:"100%";i:1;s:5:"200px";}}}','size' => '100%,200px','style' => 'select[multiple] { - width: 400px; -} -.filters { - max-height: 300px; - min-height: 150px; - overflow-y: auto; -}','modified' => '1158223796',); - -$templ_data[] = array('name' => 'importexport.import_definition','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:2:{s:4:"type";s:5:"label";s:5:"label";s:92:"Import definitions (Attension: Existing definitions with equal names will be overwritten!!!)";}}i:2;a:1:{s:1:"A";a:2:{s:4:"type";s:4:"file";s:4:"name";s:11:"import_file";}}i:3;a:1:{s:1:"A";a:4:{s:4:"type";s:4:"hbox";s:4:"size";s:1:"2";i:1;a:3:{s:4:"type";s:6:"button";s:5:"label";s:6:"Import";s:4:"name";s:6:"import";}i:2;a:3:{s:4:"type";s:6:"button";s:4:"name";s:6:"update";s:5:"label";s:26:"Update default-definitions";}}}}s:4:"rows";i:3;s:4:"cols";i:1;}}','size' => '','style' => '','modified' => '1306253183',); - -$templ_data[] = array('name' => 'importexport.import_dialog','template' => '','lang' => '','group' => '0','version' => '1.9.005','data' => 'a:1:{i:0;a:4:{s:4:"type";s:4:"grid";s:4:"data";a:8:{i:0;a:1:{s:2:"h1";s:6:",!@msg";}i:1;a:2:{s:1:"A";a:3:{s:4:"type";s:4:"html";s:4:"span";s:11:"all,message";s:4:"name";s:3:"msg";}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:11:"Application";}s:1:"B";a:3:{s:4:"type";s:6:"select";s:4:"name";s:7:"appname";s:8:"onchange";i:1;}}i:3;a:2:{s:1:"A";a:2:{s:4:"type";s:5:"label";s:5:"label";s:17:"Import definition";}s:1:"B";a:2:{s:4:"type";s:6:"select";s:4:"name";s:10:"definition";}}i:4;a:2:{s:1:"A";a:2:{s:4:"type";s:5:"label";s:5:"label";s:9:"Delimiter";}s:1:"B";a:5:{s:4:"type";s:4:"hbox";s:4:"size";s:6:"2,,0,0";s:7:"no_lang";s:1:"1";i:1;a:4:{s:4:"type";s:6:"select";s:7:"no_lang";s:1:"1";s:4:"name";s:9:"delimiter";s:8:"onchange";s:163:"var _this = jQuery(this); var text = _this.parent().parent().find(\'input\'); if(_this.val() ==\'other\') {text.val(\'\');text.show(); text.focus();} else {text.hide();}";}i:2;a:4:{s:4:"type";s:4:"text";s:4:"name";s:15:"other_delimiter";s:4:"size";s:3:"2,1";s:4:"span";s:5:",hide";}}}i:5;a:2:{s:1:"A";a:2:{s:4:"type";s:5:"label";s:5:"label";s:28:"Please select file to import";}s:1:"B";a:2:{s:4:"type";s:4:"file";s:4:"name";s:4:"file";}}i:6;a:2:{s:1:"A";a:7:{s:4:"type";s:3:"box";s:4:"span";s:11:"all,preview";s:8:"readonly";s:1:"1";s:4:"size";s:1:"2";i:1;a:4:{s:4:"type";s:4:"html";s:4:"name";s:7:"preview";s:8:"readonly";s:1:"1";s:4:"span";s:8:",content";}i:2;a:5:{s:4:"type";s:3:"box";s:5:"align";s:6:"center";s:4:"size";s:1:"1";s:4:"name";s:7:"buttons";i:1;a:4:{s:4:"type";s:10:"buttononly";s:5:"label";s:2:"OK";s:5:"align";s:6:"center";s:7:"onclick";s:72:"jQuery(this).parents(\'div.preview\').css(\'display\',\'none\'); return false;";}}s:4:"name";s:11:"preview_box";}s:1:"B";a:1:{s:4:"type";s:5:"label";}}i:7;a:2:{s:1:"A";a:7:{s:4:"type";s:4:"hbox";s:4:"size";s:1:"4";s:4:"span";s:3:"all";i:1;a:4:{s:4:"type";s:6:"button";s:5:"label";s:6:"Import";s:4:"name";s:6:"import";s:7:"onclick";s:31:"app.importexport.import_preview";}i:2;a:3:{s:4:"type";s:6:"button";s:4:"name";s:6:"cancel";s:5:"label";s:6:"Cancel";}i:3;a:4:{s:4:"type";s:8:"checkbox";s:4:"name";s:16:"no_notifications";s:5:"label";s:16:"No notifications";s:5:"align";s:5:"right";}i:4;a:4:{s:4:"type";s:8:"checkbox";s:4:"name";s:7:"dry-run";s:5:"label";s:9:"Test only";s:5:"align";s:5:"right";}}s:1:"B";a:1:{s:4:"type";s:5:"label";}}}s:4:"rows";i:7;s:4:"cols";i:2;}}','size' => '','style' => '','modified' => '1370282066',); - -$templ_data[] = array('name' => 'importexport.schedule_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:12:{i:0;a:3:{s:2:"h1";s:10:",!@message";s:2:"c7";s:4:"help";s:2:"h8";s:17:",@no_delete_files";}i:1;a:2:{s:1:"A";a:3:{s:4:"type";s:5:"label";s:4:"span";s:11:"all,message";s:4:"name";s:7:"message";}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:4:"Type";}s:1:"B";a:3:{s:4:"type";s:6:"select";s:4:"name";s:4:"type";s:8:"onchange";i:1;}}i:3;a:2:{s:1:"A";a:2:{s:4:"type";s:5:"label";s:5:"label";s:11:"Application";}s:1:"B";a:3:{s:4:"type";s:6:"select";s:4:"name";s:7:"appname";s:8:"onchange";i:1;}}i:4;a:2:{s:1:"A";a:2:{s:4:"type";s:5:"label";s:5:"label";s:6:"Plugin";}s:1:"B";a:4:{s:4:"type";s:6:"select";s:4:"name";s:6:"plugin";s:4:"size";s:9:"Select...";s:8:"onchange";i:1;}}i:5;a:2:{s:1:"A";a:2:{s:4:"type";s:5:"label";s:5:"label";s:10:"Definition";}s:1:"B";a:3:{s:4:"type";s:6:"select";s:4:"name";s:10:"definition";s:4:"size";s:9:"Select...";}}i:6;a:2:{s:1:"A";a:2:{s:4:"type";s:5:"label";s:5:"label";s:6:"Target";}s:1:"B";a:3:{s:4:"type";s:4:"text";s:4:"size";s:2:"50";s:4:"name";s:6:"target";}}i:7;a:2:{s:1:"A";a:3:{s:4:"type";s:5:"label";s:4:"span";s:3:"all";s:5:"label";s:83:"Target examples: vfs://default/home/user/export.csv or http://server.net/prices.csv";}s:1:"B";a:1:{s:4:"type";s:5:"label";}}i:8;a:2:{s:1:"A";a:4:{s:4:"type";s:8:"checkbox";s:5:"label";s:25:"Delete files after import";s:4:"name";s:12:"delete_files";s:4:"span";s:3:"all";}s:1:"B";a:1:{s:4:"type";s:5:"label";}}i:9;a:2:{s:1:"A";a:7:{s:4:"type";s:4:"grid";s:4:"data";a:4:{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:4:"Year";}s:1:"B";a:2:{s:4:"type";s:5:"label";s:5:"label";s:5:"Month";}s:1:"C";a:2:{s:4:"type";s:5:"label";s:5:"label";s:3:"Day";}s:1:"D";a:2:{s:4:"type";s:5:"label";s:5:"label";s:11:"Day of week";}s:1:"E";a:2:{s:4:"type";s:5:"label";s:5:"label";s:4:"Hour";}s:1:"F";a:2:{s:4:"type";s:5:"label";s:5:"label";s:6:"Minute";}}i:2;a:6:{s:1:"A";a:3:{s:4:"type";s:4:"text";s:4:"name";s:4:"year";s:4:"size";s:1:"5";}s:1:"B";a:3:{s:4:"type";s:4:"text";s:4:"name";s:5:"month";s:4:"size";s:1:"5";}s:1:"C";a:3:{s:4:"type";s:4:"text";s:4:"name";s:3:"day";s:4:"size";s:1:"5";}s:1:"D";a:4:{s:4:"type";s:4:"text";s:4:"name";s:3:"dow";s:5:"align";s:6:"center";s:4:"size";s:1:"5";}s:1:"E";a:3:{s:4:"type";s:4:"text";s:4:"name";s:4:"hour";s:4:"size";s:1:"5";}s:1:"F";a:3:{s:4:"type";s:4:"text";s:4:"name";s:3:"min";s:4:"size";s:1:"5";}}i:3;a:6:{s:1:"A";a:3:{s:4:"type";s:5:"label";s:4:"span";s:1:"3";s:5:"label";s:11:"(* for 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:2:{s:4:"type";s:5:"label";s:5:"label";s:12:"(0-6, 0=Sun)";}s:1:"E";a:2:{s:4:"type";s:5:"label";s:5:"label";s:6:"(0-23)";}s:1:"F";a:1:{s:4:"type";s:5:"label";}}}s:4:"rows";i:3;s:4:"cols";i:6;s:4:"name";s:8:"schedule";s:4:"span";s:3:"all";s:7:"options";a:0:{}}s:1:"B";a:1:{s:4:"type";s:5:"label";}}i:10;a:2:{s:1:"A";a:5:{s:4:"type";s:9:"date-time";s:4:"span";s:11:"all,message";s:5:"label";s:46:"Schedule times are server time! Currently %s.";s:4:"name";s:12:"current_time";s:8:"readonly";s:1:"1";}s:1:"B";a:1:{s:4:"type";s:5:"label";}}i:11;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:3:{s:4:"type";s:6:"button";s:5:"label";s:4:"Save";s:4:"name";s:4:"save";}i:2;a:4:{s:4:"type";s:6:"button";s:4:"name";s:6:"cancel";s:5:"label";s:6:"Cancel";s:7:"onclick";s:13:"self.close();";}}s:1:"B";a:1:{s:4:"type";s:5:"label";}}}s:4:"rows";i:11;s:4:"cols";i:2;}}','size' => '','style' => '','modified' => '1383082607',); - -$templ_data[] = array('name' => 'importexport.schedule_index','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:4:{i:0;a:1:{s:2:"h1";s:6:",!@msg";}i:1;a:1:{s:1:"A";a:3:{s:4:"type";s:5:"label";s:4:"span";s:11:"all,message";s:4:"name";s:4:"@msg";}}i:2;a:1:{s:1:"A";a:7:{s:4:"type";s:4:"grid";s:4:"name";s:9:"scheduled";s:4:"data";a:3:{i:0;a:10:{s:2:"c1";s:2:"th";s:2:"c2";s:4:",top";s:1:"A";s:2:"50";s:1:"B";s:2:"60";s:1:"C";s:3:"200";s:1:"D";s:3:"100";s:1:"E";s:3:"200";s:1:"F";s:3:"100";s:1:"G";s:1:"*";s:1:"H";s:2:"44";}i:1;a:8:{s:1:"A";a:2:{s:4:"type";s:5:"label";s:5:"label";s:4:"Type";}s:1:"B";a:2:{s:4:"type";s:5:"label";s:5:"label";s:11:"Application";}s:1:"C";a:2:{s:4:"type";s:5:"label";s:5:"label";s:6:"Plugin";}s:1:"D";a:2:{s:4:"type";s:5:"label";s:5:"label";s:10:"Definition";}s:1:"E";a:2:{s:4:"type";s:5:"label";s:5:"label";s:6:"Target";}s:1:"F";a:2:{s:4:"type";s:5:"label";s:5:"label";s:8:"Last Run";}s:1:"G";a:4:{s:4:"type";s:4:"vbox";s:4:"size";s:6:"2,,0,0";i:1;a:2:{s:4:"type";s:5:"label";s:5:"label";s:8:"Next Run";}i:2;a:2:{s:4:"type";s:5:"label";s:5:"label";s:8:"Schedule";}}s:1:"H";a:1:{s:4:"type";s:5:"label";}}i:2;a:8:{s:1:"A";a:8:{s:4:"type";s:4:"grid";s:4:"data";a:8:{i:0;a:19:{s:2:"c1";s:4:",top";s:2:"h3";s:9:",!@result";s:2:"c3";s:4:",top";s:1:"A";s:2:"50";s:1:"B";s:2:"60";s:1:"C";s:3:"200";s:1:"D";s:3:"100";s:1:"E";s:3:"200";s:1:"F";s:3:"100";s:1:"G";s:1:"*";s:1:"H";s:2:"44";s:2:"h2";s:9:",!@result";s:2:"c2";s:2:"th";s:2:"c6";s:2:"th";s:2:"h6";s:9:",!@errors";s:2:"h4";s:11:",!@warnings";s:2:"c4";s:2:"th";s:2:"c7";s:4:",top";s:2:"h7";s:9:",!@errors";}i:1;a:8:{s:1:"A";a:3:{s:4:"type";s:6:"select";s:4:"name";s:4:"type";s:8:"readonly";s:1:"1";}s:1:"B";a:3:{s:4:"type";s:10:"select-app";s:4:"name";s:7:"appname";s:8:"readonly";s:1:"1";}s:1:"C";a:4:{s:4:"type";s:6:"select";s:7:"no_lang";s:1:"1";s:4:"name";s:6:"plugin";s:8:"readonly";s:1:"1";}s:1:"D";a:3:{s:4:"type";s:6:"select";s:4:"name";s:10:"definition";s:8:"readonly";s:1:"1";}s:1:"E";a:3:{s:4:"type";s:5:"label";s:7:"no_lang";s:1:"1";s:4:"name";s:6:"target";}s:1:"F";a:5:{s:4:"type";s:4:"vbox";s:4:"size";s:1:"3";i:1;a:3:{s:4:"type";s:9:"date-time";s:4:"name";s:8:"last_run";s:8:"readonly";s:1:"1";}i:2;a:3:{s:4:"type";s:5:"label";s:4:"name";s:12:"record_count";s:7:"no_lang";s:1:"1";}i:3;a:4:{s:4:"type";s:13:"date-duration";s:4:"name";s:8:"run_time";s:8:"readonly";s:1:"1";s:4:"size";s:3:"m,m";}}s:1:"G";a:4:{s:4:"type";s:4:"vbox";s:4:"size";s:6:"2,,0,0";i:1;a:3:{s:4:"type";s:9:"date-time";s:4:"name";s:4:"next";s:8:"readonly";s:1:"1";}i:2;a:3:{s:4:"type";s:5:"label";s:7:"no_lang";s:1:"1";s:4:"name";s:5:"times";}}s:1:"H";a:4:{s:4:"type";s:4:"hbox";s:4:"size";s:6:"2,,0,0";i:1;a:4:{s:4:"type";s:6:"button";s:4:"size";s:4:"edit";s:4:"name";s:18:"edit[{$_cont[id]}]";s:7:"onclick";s:195:"window.open(egw::link(\'/index.php\',\'menuaction=importexport.importexport_schedule_ui.edit&id={$_cont[id]}\'),\'_blank\',\'dependent=yes,width=600,height=450,scrollbars=yes,status=yes\'); return false;";}i:2;a:3:{s:4:"type";s:6:"button";s:4:"size";s:6:"delete";s:4:"name";s:20:"delete[{$_cont[id]}]";}}}i:2;a:8:{s:1:"A";a:3:{s:4:"type";s:5:"label";s:5:"label";s:7:"Results";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";}s:1:"H";a:1:{s:4:"type";s:5:"label";}}i:3;a:8:{s:1:"A";a:8:{s:4:"type";s:4:"grid";s:4:"span";s:3:"all";s:4:"name";s:6:"result";s:4:"data";a:2:{i:0;a:3:{s:2:"c1";s:7:"nmr,top";s:1:"B";s:1:"*";s:1:"A";s:3:"50%";}i:1;a:2:{s:1:"A";a:2:{s:4:"type";s:5:"label";s:4:"name";s:14:"${row}[target]";}s:1:"B";a:3:{s:4:"type";s:5:"label";s:7:"no_lang";s:1:"1";s:4:"name";s:15:"${row}[message]";}}}s:4:"rows";i:1;s:4:"cols";i:2;s:7:"options";a:1:{i:0;s:4:"100%";}s:4:"size";s:4:"100%";}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";}}i:4;a:8:{s:1:"A";a:3:{s:4:"type";s:5:"label";s:4:"span";s:3:"all";s:5:"label";s:8:"Warnings";}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";}}i:5;a:8:{s:1:"A";a:9:{s:4:"type";s:4:"grid";s:4:"span";s:3:"all";s:4:"name";s:8:"warnings";s:4:"data";a:2:{i:0;a:2:{s:2:"c1";s:7:"nmr,top";s:1:"A";s:3:"50%";}i:1;a:2:{s:1:"A";a:3:{s:4:"type";s:5:"label";s:7:"no_lang";s:1:"1";s:4:"name";s:14:"${row}[target]";}s:1:"B";a:3:{s:4:"type";s:5:"label";s:7:"no_lang";s:1:"1";s:4:"name";s:15:"${row}[message]";}}}s:4:"rows";i:1;s:4:"cols";i:2;s:4:"size";s:4:"100%";i:1;a:8:{s:4:"type";s:3:"box";s:4:"span";s:3:"all";s:5:"label";s:6:"Errors";s:4:"name";s:6:"errors";s:4:"data";a:2:{i:0;a:1:{s:2:"c1";s:7:"nmr,top";}i:1;a:2:{s:1:"A";a:3:{s:4:"type";s:5:"label";s:7:"no_lang";s:1:"1";s:4:"name";s:14:"${row}[target]";}s:1:"B";a:3:{s:4:"type";s:5:"label";s:7:"no_lang";s:1:"1";s:4:"name";s:13:"${row}[error]";}}}s:4:"rows";i:1;s:4:"cols";i:2;s:7:"options";a:0:{}}s:7:"options";a:1:{i:0;s:4:"100%";}}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";}}i:6;a:8:{s:1:"A";a:3:{s:4:"type";s:5:"label";s:4:"span";s:3:"all";s:5:"label";s:6:"Errors";}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";}}i:7;a:8:{s:1:"A";a:9:{s:4:"type";s:4:"grid";s:4:"span";s:3:"all";s:4:"name";s:6:"errors";s:4:"data";a:2:{i:0;a:2:{s:2:"c1";s:7:"nmr,top";s:1:"A";s:3:"50%";}i:1;a:2:{s:1:"A";a:3:{s:4:"type";s:5:"label";s:7:"no_lang";s:1:"1";s:4:"name";s:14:"${row}[target]";}s:1:"B";a:3:{s:4:"type";s:5:"label";s:7:"no_lang";s:1:"1";s:4:"name";s:15:"${row}[message]";}}}s:4:"rows";i:1;s:4:"cols";i:2;s:4:"size";s:4:"100%";i:1;a:8:{s:4:"type";s:3:"box";s:4:"span";s:3:"all";s:5:"label";s:6:"Errors";s:4:"name";s:6:"errors";s:4:"data";a:2:{i:0;a:1:{s:2:"c1";s:7:"nmr,top";}i:1;a:2:{s:1:"A";a:3:{s:4:"type";s:5:"label";s:7:"no_lang";s:1:"1";s:4:"name";s:14:"${row}[target]";}s:1:"B";a:3:{s:4:"type";s:5:"label";s:7:"no_lang";s:1:"1";s:4:"name";s:13:"${row}[error]";}}}s:4:"rows";i:1;s:4:"cols";i:2;s:7:"options";a:0:{}}s:7:"options";a:1:{i:0;s:4:"100%";}}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:4:"rows";i:7;s:4:"cols";i:8;s:4:"size";s:15:"100%,,,schedule";s:4:"name";s:6:"{$row}";s:4:"span";s:3:"all";s:7:"options";a:2:{i:3;s:8:"schedule";i:0;s:4:"100%";}}s:1:"B";a:3:{s:4:"type";s:10:"select-app";s:4:"name";s:15:"${row}[appname]";s:8:"readonly";s:1:"1";}s:1:"C";a:4:{s:4:"type";s:6:"select";s:7:"no_lang";s:1:"1";s:4:"name";s:14:"${row}[plugin]";s:8:"readonly";s:1:"1";}s:1:"D";a:3:{s:4:"type";s:6:"select";s:4:"name";s:18:"${row}[definition]";s:8:"readonly";s:1:"1";}s:1:"E";a:3:{s:4:"type";s:5:"label";s:7:"no_lang";s:1:"1";s:4:"name";s:14:"${row}[target]";}s:1:"F";a:6:{s:4:"type";s:4:"vbox";s:4:"size";s:1:"4";i:1;a:3:{s:4:"type";s:9:"date-time";s:4:"name";s:16:"${row}[last_run]";s:8:"readonly";s:1:"1";}i:2;a:3:{s:4:"type";s:5:"label";s:4:"name";s:20:"${row}[record_count]";s:7:"no_lang";s:1:"1";}i:3;a:3:{s:4:"type";s:5:"label";s:4:"name";s:14:"${row}[result]";s:7:"no_lang";s:1:"1";}i:4;a:2:{s:4:"type";s:5:"label";s:4:"name";s:14:"${row}[errors]";}}s:1:"G";a:4:{s:4:"type";s:4:"vbox";s:4:"size";s:6:"2,,0,0";i:1;a:3:{s:4:"type";s:9:"date-time";s:4:"name";s:12:"${row}[next]";s:8:"readonly";s:1:"1";}i:2;a:3:{s:4:"type";s:5:"label";s:7:"no_lang";s:1:"1";s:4:"name";s:13:"${row}[times]";}}s:1:"H";a:4:{s:4:"type";s:4:"hbox";s:4:"size";s:6:"2,,0,0";i:1;a:4:{s:4:"type";s:6:"button";s:4:"size";s:4:"edit";s:4:"name";s:21:"edit[${row_cont[id]}]";s:7:"onclick";s:198:"window.open(egw::link(\'/index.php\',\'menuaction=importexport.importexport_schedule_ui.edit&id={$row_cont[id]}\'),\'_blank\',\'dependent=yes,width=600,height=450,scrollbars=yes,status=yes\'); return false;";}i:2;a:3:{s:4:"type";s:6:"button";s:4:"size";s:6:"delete";s:4:"name";s:23:"delete[{$row_cont[id]}]";}}}}s:4:"rows";i:2;s:4:"cols";i:8;s:7:"options";a:1:{i:0;s:4:"100%";}s:4:"size";s:4:"100%";}}i:3;a:1:{s:1:"A";a:4:{s:4:"type";s:4:"hbox";s:4:"size";s:1:"1";s:4:"span";s:3:"all";i:1;a:4:{s:4:"type";s:6:"button";s:5:"label";s:3:"add";s:4:"name";s:3:"add";s:7:"onclick";s:179:"window.open(egw::link(\'/index.php\',\'menuaction=importexport.importexport_schedule_ui.edit\'),\'_blank\',\'dependent=yes,width=600,height=450,scrollbars=yes,status=yes\'); return false;";}}}}s:4:"rows";i:3;s:4:"cols";i:1;s:4:"size";s:4:"100%";s:7:"options";a:1:{i:0;s:4:"100%";}}}','size' => '100%','style' => 'table.schedule { - border-bottom: 1px solid black; -}','modified' => '1383078019',); - -$templ_data[] = array('name' => 'importexport.wizardbox','template' => '','lang' => '','group' => '0','version' => '0.0.2','data' => 'a:1:{i:0;a:6:{s:4:"type";s:4:"grid";s:4:"data";a:3:{i:0;a:3:{s:2:"c2";s:7:",bottom";s:2:"c1";s:4:",top";s:1:"A";s:4:"100%";}i:1;a:1:{s:1:"A";a:5:{s:4:"type";s:4:"hbox";s:7:"no_lang";s:1:"1";s:4:"size";s:1:"2";i:1;a:2:{s:4:"type";s:5:"image";s:4:"name";s:12:"importexport";}i:2;a:4:{s:4:"type";s:4:"vbox";s:4:"size";s:1:"2";i:1;a:1:{s:4:"type";s:5:"label";}i:2;a:7:{s:4:"type";s:3:"box";s:4:"span";s:15:",wizard_content";s:4:"data";a:2:{i:0;a:0:{}i:1;a:1:{s:1:"A";a:2:{s:4:"type";s:8:"template";s:4:"name";s:14:"wizard_content";}}}s:4:"rows";i:1;s:4:"cols";i:1;s:4:"size";s:1:"1";i:1;a:2:{s:4:"type";s:8:"template";s:4:"name";s:15:"@wizard_content";}}}}}i:2;a:1:{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:5:{s:4:"type";s:4:"hbox";s:4:"size";s:1:"3";i:1;a:3:{s:4:"type";s:6:"button";s:4:"name";s:16:"button[previous]";s:5:"label";s:8:"previous";}i:2;a:3:{s:4:"type";s:6:"button";s:4:"name";s:12:"button[next]";s:5:"label";s:4:"next";}i:3;a:3:{s:4:"type";s:6:"button";s:4:"name";s:14:"button[finish]";s:5:"label";s:6:"finish";}}i:2;a:5:{s:4:"type";s:6:"button";s:4:"name";s:14:"button[cancel]";s:5:"label";s:6:"cancel";s:7:"onclick";s:29:"window.close(); return false;";s:5:"align";s:5:"right";}}}}s:4:"rows";i:2;s:4:"cols";i:1;s:4:"size";s:8:"100%,400";s:7:"options";a:2:{i:0;s:4:"100%";i:1;s:3:"400";}}}','size' => '100%,400','style' => '.wizard_content { - height: 365px; - width: 410px; - max-height:365px; - overflow:auto; -}','modified' => '1319576952',); - -$templ_data[] = array('name' => 'importexport.wizard_basic_export_csv.choosesepncharset','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: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: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:14:"Include header";}s:1:"B";a:2:{s:4:"type";s:6:"select";s:4:"name";s:21:"begin_with_fieldnames";}}i:5;a:2:{s:1:"A";a:2:{s:4:"type";s:5:"label";s:5:"label";s:14:"Export data as";}s:1:"B";a:2:{s:4:"type";s:6:"select";s:4:"name";s:7:"convert";}}}s:4:"rows";i:5;s:4:"cols";i:2;}}','size' => '','style' => '.width180 select { width:150px;}','modified' => '1286480442',); - -$templ_data[] = array('name' => 'importexport.wizard_basic_export_csv.choose_fields','template' => '','lang' => '','group' => '0','version' => '1.9.001','data' => 'a:1:{i:0;a:5:{s:4:"type";s:4:"grid";s:4:"data";a:3:{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:3:"msg";}}i:2;a:1:{s:1:"A";a:7:{s:4:"type";s:4:"grid";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: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:6:"Export";}i:2;a:7:{s:4:"type";s:10:"buttononly";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:"jQuery(\'input:checkbox\').attr(\'checked\', !jQuery(\'input:checkbox\').attr(\'checked\')); return false;";s:6:"needed";s:1:"1";}}}i:2;a:2:{s:1:"A";a:3:{s:4:"type";s:5:"label";s:4:"name";s:12:"${row}[name]";s:7:"no_lang";s:1:"1";}s:1:"B";a:4:{s:4:"type";s:8:"checkbox";s:7:"no_lang";s:1:"1";s:4:"name";s:14:"export[${row}]";s:4:"size";s:18:"{$row_cont[field]}";}}}s:4:"rows";i:2;s:4:"cols";i:2;s:4:"size";s:10:",,,,,,auto";s:4:"name";s:6:"fields";s:7:"options";a:1:{i:6;s:4:"auto";}}}}s:4:"rows";i:2;s:4:"cols";i:1;s:7:"options";a:0:{}}}','size' => '','style' => '','modified' => '1286466690',); - -$templ_data[] = array('name' => 'importexport.wizard_basic_export_csv.filter','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:"h1";s:6:",!@msg";}i:1;a:1:{s:1:"A";a:2:{s:4:"type";s:5:"label";s:4:"name";s:3:"msg";}}i:2;a:1:{s:1:"A";a:3:{s:4:"type";s:6:"filter";s:4:"name";s:10:"set_filter";s:4:"size";s:1:"1";}}}s:4:"rows";i:2;s:4:"cols";i:1;s:4:"size";s:4:"100%";s:7:"options";a:1:{i:0;s:4:"100%";}}}','size' => '100%','style' => 'select { - width: 200px; -}','modified' => '1356969972',); - -$templ_data[] = array('name' => 'importexport.wizard_basic_import_csv.choosesepncharset','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:7:{i:0;a:2:{s:1:"B";s:5:"180px";s:2:"h5";s:9:",@no_cats";}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";}}i:5;a:2:{s:1:"A";a:2:{s:4:"type";s:5:"label";s:5:"label";s:17:"Update categories";}s:1:"B";a:2:{s:4:"type";s:6:"select";s:4:"name";s:11:"update_cats";}}i:6;a:2:{s:1:"A";a:2:{s:4:"type";s:5:"label";s:5:"label";s:14:"Import data is";}s:1:"B";a:2:{s:4:"type";s:6:"select";s:4:"name";s:7:"convert";}}}s:4:"rows";i:6;s:4:"cols";i:2;}}','size' => '','style' => '.width180 select { width:150px;}','modified' => '1287425796',); - -$templ_data[] = array('name' => 'importexport.wizard_basic_import_csv.conditions','template' => '','lang' => '','group' => '0','version' => '1.9.002','data' => 'a:1:{i:0;a:8:{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:"3";i:1;a:2:{s:4:"type";s:5:"label";s:5:"label";s:142:"How to merge with existing data? For each record, all conditions are evaluated from top to bottom, or stop. For blind insert, leave blank. ";}i:2;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:4:{s:4:"type";s:6:"select";s:4:"name";s:14:"${row}[string]";s:4:"size";s:6:"Select";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:3:{s:4:"type";s:6:"select";s:4:"name";s:12:"${row}[type]";s:7:"no_lang";s:1:"1";}i:2;a:3:{s:4:"type";s:4:"text";s:4:"name";s:12:"${row}[op_2]";s:7:"no_lang";s:1:"1";}}s:1:"C";a:4:{s:4:"type";s:6:"select";s:4:"name";s:20:"${row}[true][action]";s:4:"size";s:6:"Select";s:7:"no_lang";s:1:"1";}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:4:{s:4:"type";s:6:"select";s:4:"name";s:21:"${row}[false][action]";s:4:"size";s:6:"Select";s:7:"no_lang";s:1:"1";}s:1:"F";a:4:{s:4:"type";s:8:"checkbox";s:5:"align";s:6:"center";s:4:"name";s:19:"${row}[false][stop]";s:4:"size";s:7:"1,false";}}}s:4:"rows";i:2;s:4:"cols";i:6;s:4:"name";s:10:"conditions";s:7:"options";a:0:{}}i:3;a:5:{s:4:"type";s:6:"button";s:4:"name";s:11:"button[add]";s:5:"label";s:3:"add";s:4:"help";s:27:"Add an additional condition";s:7:"onclick";s:37:"xajax_eT_wrapper(this); return false;";}}}','size' => '','style' => '','modified' => '1320350666',); - -$templ_data[] = array('name' => 'importexport.wizard_basic_import_csv.fieldmapping','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: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:12:"Target 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:18:"${row_cont[index]}";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' => '1320351109',); - -$templ_data[] = array('name' => 'importexport.wizard_basic_import_csv.sample_file','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' => '1268236654',); - -$templ_data[] = array('name' => 'importexport.wizard_chooseallowedusers','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:5:{i:0;a:2:{s:2:"h2";s:12:",@no_just_me";s:2:"h3";s:14:",@no_all_users";}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:8:"checkbox";s:5:"label";s:10:"%s Just me";s:4:"name";s:7:"just_me";}}i:3;a:1:{s:1:"A";a:3:{s:4:"type";s:8:"checkbox";s:5:"label";s:12:"%s All users";s:4:"name";s:9:"all_users";}}i:4;a:1:{s:1:"A";a:3:{s:4:"type";s:14:"select-account";s:4:"name";s:13:"allowed_users";s:4:"size";s:8:"5,groups";}}}s:4:"rows";i:4;s:4:"cols";i:1;}}','size' => '','style' => '','modified' => '1298497551',); - -$templ_data[] = array('name' => 'importexport.wizard_chooseapp','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:"application";}}}s:4:"rows";i:2;s:4:"cols";i:1;}}','size' => '','style' => '','modified' => '1145976439',); - -$templ_data[] = array('name' => 'importexport.wizard_choosename','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:2:{s:4:"type";s:4:"text";s:4:"name";s:4:"name";}}}s:4:"rows";i:2;s:4:"cols";i:1;}}','size' => '','style' => '','modified' => '1146317310',); - -$templ_data[] = array('name' => 'importexport.wizard_chooseplugin','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:6:"plugin";}}}s:4:"rows";i:2;s:4:"cols";i:1;}}','size' => '','style' => '','modified' => '1145976573',); - -$templ_data[] = array('name' => 'importexport.wizard_close','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:2:{i:0;a:0:{}i:1;a:1:{s:1:"A";a:3:{s:4:"type";s:5:"label";s:7:"no_lang";s:1:"1";s:4:"name";s:3:"msg";}}}s:4:"rows";i:1;s:4:"cols";i:1;}}','size' => '','style' => '','modified' => '1146648383',); - diff --git a/importexport/setup/setup.inc.php b/importexport/setup/setup.inc.php index dbb11b42eb..d918af3332 100644 --- a/importexport/setup/setup.inc.php +++ b/importexport/setup/setup.inc.php @@ -10,7 +10,7 @@ */ $setup_info['importexport']['name'] = 'importexport'; -$setup_info['importexport']['version'] = '14.1'; +$setup_info['importexport']['version'] = '16.1'; $setup_info['importexport']['app_order'] = 2; $setup_info['importexport']['enable'] = 2; $setup_info['importexport']['tables'] = array('egw_importexport_definitions'); @@ -36,12 +36,8 @@ $setup_info['importexport']['hooks']['etemplate2_register_widgets'] = 'importexp /* Dependencies for this app to work */ $setup_info['importexport']['depends'][] = array( - 'appname' => 'phpgwapi', - 'versions' => Array('14.1') -); -$setup_info['importexport']['depends'][] = array( - 'appname' => 'etemplate', - 'versions' => Array('14.1') + 'appname' => 'api', + 'versions' => Array('16.1') ); // installation checks for importexport diff --git a/importexport/setup/tables_update.inc.php b/importexport/setup/tables_update.inc.php index 2bc6320dbe..d397c87da3 100755 --- a/importexport/setup/tables_update.inc.php +++ b/importexport/setup/tables_update.inc.php @@ -126,3 +126,7 @@ function importexport_upgrade1_9_004() { return $GLOBALS['setup_info']['importexport']['currentver'] = '14.1'; } +function importexport_upgrade14_1() +{ + return $GLOBALS['setup_info']['importexport']['currentver'] = '16.1'; +} \ No newline at end of file