From 7f98f428a01f77023f25ab288fb4ae2266633570 Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Fri, 1 Nov 2013 22:04:43 +0000 Subject: [PATCH] Adapt importexport for etemplate2 --- etemplate/inc/class.etemplate_widget.inc.php | 1 + .../class.importexport_definitions_ui.inc.php | 143 ++++-------- .../inc/class.importexport_export_ui.inc.php | 203 +++--------------- ...lass.importexport_helper_functions.inc.php | 8 +- .../inc/class.importexport_import_ui.inc.php | 19 +- .../class.importexport_schedule_ui.inc.php | 2 +- ... class.importexport_widget_filter.inc.php} | 193 ++++++++--------- ...portexport_wizard_basic_export_csv.inc.php | 4 + ...portexport_wizard_basic_import_csv.inc.php | 84 +++----- importexport/js/app.js | 97 +++++++++ importexport/js/export_dialog.js | 37 ---- importexport/js/importexport.js | 17 -- importexport/setup/etemplates.inc.php | 40 ++-- importexport/templates/default/app.css | 36 ++++ .../templates/default/definition_index.xet | 32 +-- .../default/export_csv_selectors.xet | 6 +- .../templates/default/export_dialog.xet | 18 +- .../templates/default/import_dialog.xet | 60 ++++++ .../templates/default/schedule_edit.xet | 6 +- .../templates/default/schedule_index.xet | 8 +- ...ard_basic_export_csv.choosesepncharset.xet | 42 ++++ .../wizard_basic_export_csv.filter.xet | 2 +- ...ard_basic_import_csv.choosesepncharset.xet | 46 ++++ .../wizard_basic_import_csv.fieldmapping.xet | 50 +++++ .../wizard_basic_import_csv.sample_file.xet | 19 ++ .../default/wizard_chooseallowedusers.xet | 2 +- .../templates/default/wizard_chooseapp.xet | 21 ++ .../templates/default/wizard_choosename.xet | 19 ++ .../templates/default/wizard_chooseplugin.xet | 21 ++ importexport/templates/default/wizardbox.xet | 42 ++++ 30 files changed, 719 insertions(+), 559 deletions(-) rename importexport/inc/{class.filter_widget.inc.php => class.importexport_widget_filter.inc.php} (52%) create mode 100644 importexport/js/app.js delete mode 100644 importexport/js/export_dialog.js delete mode 100644 importexport/js/importexport.js create mode 100644 importexport/templates/default/app.css create mode 100644 importexport/templates/default/import_dialog.xet create mode 100644 importexport/templates/default/wizard_basic_export_csv.choosesepncharset.xet create mode 100644 importexport/templates/default/wizard_basic_import_csv.choosesepncharset.xet create mode 100644 importexport/templates/default/wizard_basic_import_csv.fieldmapping.xet create mode 100644 importexport/templates/default/wizard_basic_import_csv.sample_file.xet create mode 100644 importexport/templates/default/wizard_chooseapp.xet create mode 100644 importexport/templates/default/wizard_choosename.xet create mode 100644 importexport/templates/default/wizard_chooseplugin.xet create mode 100644 importexport/templates/default/wizardbox.xet diff --git a/etemplate/inc/class.etemplate_widget.inc.php b/etemplate/inc/class.etemplate_widget.inc.php index 2bf6bb8685..a8a935e6ea 100644 --- a/etemplate/inc/class.etemplate_widget.inc.php +++ b/etemplate/inc/class.etemplate_widget.inc.php @@ -16,6 +16,7 @@ require_once EGW_INCLUDE_ROOT.'/etemplate/inc/class.etemplate_widget_textbox.inc require_once EGW_INCLUDE_ROOT.'/etemplate/inc/class.etemplate_widget_grid.inc.php'; require_once EGW_INCLUDE_ROOT.'/etemplate/inc/class.etemplate_widget_checkbox.inc.php'; require_once EGW_INCLUDE_ROOT.'/etemplate/inc/class.contact_widget.inc.php'; +include_once EGW_INCLUDE_ROOT.'/importexport/inc/class.importexport_widget_filter.inc.php'; /** * eTemplate widget baseclass diff --git a/importexport/inc/class.importexport_definitions_ui.inc.php b/importexport/inc/class.importexport_definitions_ui.inc.php index 71af430bd1..5960d3686a 100644 --- a/importexport/inc/class.importexport_definitions_ui.inc.php +++ b/importexport/inc/class.importexport_definitions_ui.inc.php @@ -59,9 +59,8 @@ class importexport_definitions_ui error_reporting(E_ALL & ~E_NOTICE & ~E_WARNING); $GLOBALS['egw']->translation->add_app(self::_appname); $GLOBALS['egw_info']['flags']['currentapp'] = self::_appname; - - $GLOBALS['egw_info']['flags']['include_xajax'] = true; - $this->etpl = new etemplate(); + + $this->etpl = new etemplate_new(); $this->clock = html::image(self::_appname,'clock'); $this->steps = array( 'wizard_step10' => lang('Choose an application'), @@ -163,7 +162,6 @@ class importexport_definitions_ui 'no_cat' => true, 'no_filter' => true, 'no_filter2' => true, - 'header_right' => 'importexport.definition_index.add', 'csv_fields' => false, // Disable CSV export, uses own export 'default_cols' => '!actions', // switch legacy actions column and row off by default 'row_id' => 'definition_id', @@ -189,7 +187,7 @@ class importexport_definitions_ui } if($msg) $content['msg'] = $msg; - $etpl = new etemplate(self::_appname.'.definition_index'); + $etpl = new etemplate_new(self::_appname.'.definition_index'); return $etpl->exec( self::_appname.'.importexport_definitions_ui.index', $content, $sel_options, $readonlys, $preserv ); } @@ -489,32 +487,19 @@ class importexport_definitions_ui function wizard($content = null, $msg='') { - $GLOBALS['egw_info']['flags']['java_script'] .= - ""; - $this->etpl->read('importexport.wizardbox'); - $this->wizard_content_template =& $this->etpl->children[0]['data'][1]['A'][2][1]['name']; if(is_array($content) &&! $content['edit']) { if(self::_debug) error_log('importexport.wizard->$content '. print_r($content,true)); + foreach($content as $key => $val) error_log(" $key : ".array2string($val)); // fetch plugin object if($content['plugin'] && $content['application']) { $wizard_name = $content['application'] . '_wizard_' . str_replace($content['application'] . '_', '', $content['plugin']); // we need to deal with the wizard object if exists - if (file_exists(EGW_SERVER_ROOT . '/'. $content['application'].'/importexport/class.wizard_'. $content['plugin'].'.inc.php')) - { - error_log('Deprecated location for importexport wizard. Please move it to app/inc/ and rename it to follow new conventions'); - } - elseif (file_exists(EGW_SERVER_ROOT . '/'. $content['application']."/inc/class.$wizard_name.inc.php")) + if (file_exists(EGW_SERVER_ROOT . '/'. $content['application']."/inc/class.$wizard_name.inc.php")) { $wizard_plugin = $wizard_name; } @@ -539,7 +524,8 @@ class importexport_definitions_ui } // post process submitted step - if($content['step']) { + if($content['step']) + { if(!$this->can_edit($content)) { // Each step changes definition, reload it @@ -549,30 +535,28 @@ class importexport_definitions_ui } if(!key_exists($content['step'],$this->steps)) { - $next_step = $this->plugin->$content['step']($content); + $next_step = $this->plugin->$content['step']($content,$sel_options,$readonlys,$preserv); } else { - $next_step = $this->$content['step']($content); + $next_step = $this->$content['step']($content,$sel_options,$readonlys,$preserv); } - } else { + } + else + { die('Cannot find next step'); } // pre precess next step $sel_options = $readonlys = $preserv = array(); - // Override next button on step 30, to do a regular submit for the file upload - if($next_step == 'wizard_step30') - { - $this->etpl->set_cell_attribute('button[next]', 'onclick', ''); - } - // Disable finish button if required fields are missing - if(!$content['name'] || !$content['type'] || !$content['plugin']) { - $GLOBALS['egw']->js->set_onload("disable_button('exec[button][finish]');"); + if(!$content['name'] || !$content['type'] || !$content['plugin']) + { + $readonlys['button[finish]'] = true; } - do { + do + { if(!key_exists($next_step,$this->steps)) { $this->wizard_content_template = $this->plugin->$next_step($content,$sel_options,$readonlys,$preserv); @@ -593,25 +577,29 @@ class importexport_definitions_ui } } } while($this->wizard_content_template == self::SKIP); - + if(!$this->can_edit($content)) { $readonlys[$this->wizard_content_template] = true; $preserve = $content; - $GLOBALS['egw']->js->set_onload("disable_button('exec[button][finish]');"); + $readonlys['button[finish]'] = true; } - $html = $this->etpl->exec(self::_appname.'.importexport_definitions_ui.wizard',$content,$sel_options,$readonlys,$preserv,1); + unset($content['button']); + $content['wizard_content'] = $this->wizard_content_template; + error_log('------- STARTING EXEC --------'); + $this->etpl->exec(self::_appname.'.importexport_definitions_ui.wizard',$content,$sel_options,$readonlys,$preserv); + error_log('------- DONE EXEC --------'); } else { // initial content - $GLOBALS['egw']->js->set_onload("xajax_eT_wrapper_init();"); - $GLOBALS['egw']->js->set_onload("disable_button('exec[button][previous]');"); - $sel_options = $readonlys = $preserv = array(); + $readonlys['button[previous]'] = true; if($content['edit']) + { unset ($content['edit']); + } $this->wizard_content_template = $this->wizard_step10($content, $sel_options, $readonlys, $preserv); @@ -619,62 +607,11 @@ class importexport_definitions_ui { $readonlys[$this->wizard_content_template] = true; $preserve = $content; - $GLOBALS['egw']->js->set_onload("disable_button('exec[button][finish]');"); + $readonlys['button[finish]'] = true; } - $html = $this->etpl->exec(self::_appname.'.importexport_definitions_ui.wizard',$content,$sel_options,$readonlys,$preserv,1); - } - - if(class_exists('xajaxResponse')) - { - $this->response = new xajaxResponse(); - - egw_framework::include_css_js_response(); - if ($content['closewindow']) - { - $this->response->addScript("opener.location.reload();"); - $this->response->addScript("window.close();"); - // If Browser can't close window we display a "close" buuton and - // need to disable normal buttons - $this->response->addAssign('exec[button][previous]','style.display', 'none'); - $this->response->addAssign('exec[button][next]','style.display', 'none'); - $this->response->addAssign('exec[button][finish]','style.display', 'none'); - $this->response->addAssign('exec[button][cancel]','style.display', 'none'); - } - $this->response->addAssign('contentbox', 'innerHTML', $html); - if (($onload = $GLOBALS['egw']->js->set_onload(''))) - { - $this->response->addScript($onload); - } - $this->response->addAssign('picturebox', 'style.display', 'none'); - $this->response->addScript("set_style_by_class('div','popupManual','display','inline'); - popup_resize(); - "); - - return $this->response->getXML(); - } - else - { - $GLOBALS['egw']->js->set_onload("document.getElementById('picturebox').style.display = 'none';"); - egw_framework::validate_file('.', 'etemplate', 'etemplate'); - egw_framework::validate_file('.', 'etemplate', 'etemplate'); - common::egw_header(); - echo '
'."\n"; - echo '

{Im|Ex}port Wizard

'; - // adding a manual icon to every popup - if ($GLOBALS['egw_info']['user']['apps']['manual']) - { - $manual = new etemplate('etemplate.popup.manual'); - echo $manual->exec(self::_appname.'.importexport_definitions_ui.wizard',$content,$sel_options,$readonlys,$preserv,1); - unset($manual); - } - - echo '
'; - echo $html; - echo '
'."\n"; - echo ''."\n"; - echo '
'. $this->clock. '
'; - return; + $content['wizard_content'] = $this->wizard_content_template; + $this->etpl->exec(self::_appname.'.importexport_definitions_ui.wizard',$content,$sel_options,$readonlys,$preserv); } } @@ -735,7 +672,7 @@ class importexport_definitions_ui $sel_options['application'][$appname] = lang($appname); } } - $GLOBALS['egw']->js->set_onload("disable_button('exec[button][previous]');"); + $readonlys['button[previous]'] = true; $content['step'] = 'wizard_step10'; $preserv = $content; unset ($preserv['button']); @@ -766,9 +703,7 @@ class importexport_definitions_ui return $this->get_step($content['step'],1); case 'previous' : unset ($content['plugin']); - if(is_object($this->response)) { - $this->response->addScript("disable_button('exec[button][previous]');"); - } + $readonlys['button[previous]'] = true; return $this->get_step($content['step'],-1); case 'finish': return 'wizard_finish'; @@ -900,8 +835,9 @@ class importexport_definitions_ui // Set owner for non-admins $content['just_me'] = ((!$content['allowed_users'] || !$content['allowed_users'][0] && count($content['allowed_users']) ==1) && $content['owner']); - //if(!$GLOBALS['egw_info']['user']['apps']['admin'] && !$GLOBALS['egw']->acl->check('share_definition', EGW_ACL_READ, 'importexport')) { - if(!$GLOBALS['egw']->acl->check('share_definition', EGW_ACL_READ, 'importexport') && !$GLOBALS['egw_info']['user']['apps']['admin']) { + $content['all_users'] = is_array($content['allowed_users']) && array_key_exists('0',$content['allowed_users']) || $content['allowed_users'] == 'all'; + if(!$GLOBALS['egw']->acl->check('share_definition', EGW_ACL_READ, 'importexport') && !$GLOBALS['egw_info']['user']['apps']['admin']) + { $content['allowed_users'] = array(); $readonlys['allowed_users'] = true; $readonlys['just_me'] = true; @@ -919,10 +855,8 @@ class importexport_definitions_ui $content['no_all_users'] = true; } unset ($preserv['button']); - $GLOBALS['egw']->js->set_onload("disable_button('exec[button][next]');"); - if(is_object($this->response)) { - $this->response->addAssign('exec[button][next]','style.display', 'none'); - } + + $readonlys['button[next]'] = true; return 'importexport.wizard_chooseallowedusers'; } } @@ -939,7 +873,8 @@ class importexport_definitions_ui $bodefinitions->save($content); // This message is displayed if browser cant close window $content['msg'] = lang('ImportExport wizard finished successfully!'); - $content['closewindow'] = true; + egw_framework::refresh_opener('','importexport'); + egw_framework::window_close(); return 'importexport.wizard_close'; } diff --git a/importexport/inc/class.importexport_export_ui.inc.php b/importexport/inc/class.importexport_export_ui.inc.php index d1b279d879..aea17bacd0 100644 --- a/importexport/inc/class.importexport_export_ui.inc.php +++ b/importexport/inc/class.importexport_export_ui.inc.php @@ -48,7 +48,7 @@ class importexport_export_ui { $readonlys = array(); $preserv = array(); - $et = new etemplate(self::_appname. '.export_dialog'); + $et = new etemplate_new(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']; @@ -68,7 +68,7 @@ class importexport_export_ui { $content['appname'] = $_appname; $preserv['appname'] = $_appname; if(empty($_appname)) { - $this->js->set_onload('$j("tr.select_definition").css("display","none");'); + $et.setElementAttribute('select_definition','disabled',true); } // Check for preferred definition @@ -148,7 +148,7 @@ class importexport_export_ui { if(!$sel_options['delimiter'][$content['delimiter']]) $sel_options['delimiter'][$content['delimiter']] = $content['delimiter']; $sel_options['delimiter'][$content['delimiter']] = lang('Use default') . ' "' . $sel_options['delimiter'][$content['delimiter']] . '"'; - if(!$_content['delimiter']) $this->js->set_onload('jQuery(\'[other_delimiter]\').hide();'); + if(!$_content['delimiter']) $et->setElementAttribute('other_delimiter','disabled',true); // Other delimiter (options) if($_content['other_delimiter']) $_content['delimiter'] = $_content['other_delimiter']; @@ -223,11 +223,6 @@ class importexport_export_ui { } } } - } elseif (!$_selection) { - $this->js->set_onload(" - disable_button('exec[preview]'); - disable_button('exec[export]'); - "); } $preserv['old_definition'] = $content['definition']; @@ -257,20 +252,14 @@ class importexport_export_ui { $sel_options['appname'] = array('' => lang('Select one')) + array_combine($apps,$apps); if(!$_application && !$selected_plugin) { $content['plugin_selectors_html'] = $content['plugin_options_html'] = - lang('You need to select an app and format first!'); - $this->js->set_onload("document.getElementById('importexport.export_dialog.options_tab-tab').style.visibility='hidden';"); - $this->js->set_onload("document.getElementById('importexport.export_dialog.selection_tab-tab').style.visibility='hidden';"); + lang('You need to select an app and format first!'); + $readonlys[$tabs] = array('selection_tab' => true, 'options_tab' => true); } - // disable preview box - $this->js->set_onload('$j(\'tr.preview-box\').hide();'); - - - //xajax_eT_wrapper submit - if(class_exists('xajaxResponse')) + if($_content['preview'] || $_content['export']) { //error_log(__LINE__.__FILE__.'$_content: '.print_r($_content,true)); - $response = new xajaxResponse(); + $response = egw_json_response::get(); if ($_content['definition'] == 'expert') { $definition = new importexport_definition(); @@ -294,7 +283,7 @@ class importexport_export_ui { // Set filter // Note that because not all dates are DB dates, the plugin has to handle them - $filter = $definition->filter; + $filter = array(); if(is_array($_content['filter'])) { foreach($_content['filter'] as $key => $value) @@ -317,6 +306,8 @@ class importexport_export_ui { } } } + error_log(array2string($filter)); + unset($_content['filter']); $definition->filter = $filter; @@ -326,8 +317,8 @@ class importexport_export_ui { ); if(!$definition->plugin_options['selection']) { - $response->addScript('alert("' . lang('No records selected') . '");'); - return $response->getXML(); + $response->alert( lang('No records selected')); + return; } $tmpfname = tempnam($GLOBALS['egw_info']['server']['temp_dir'],'export'); @@ -352,11 +343,6 @@ class importexport_export_ui { if(is_object($result) && method_exists($result, 'get_num_of_records')) { $record_count = $result->get_num_of_records(); - if($record_count == 0) - { - $response->addScript('alert("' . lang('No matching records') . '");'); - return $response->getXML(); - } } // Store charset to use in header @@ -365,7 +351,6 @@ class importexport_export_ui { if($_content['export'] == 'pressed') { fclose($file); $filename = pathinfo($tmpfname, PATHINFO_FILENAME); - $response->addScript("xajax_eT_wrapper();"); $link_query = array( 'menuaction' => 'importexport.importexport_export_ui.download', '_filename' => $filename, @@ -379,9 +364,9 @@ class importexport_export_ui { { $link_query['filename'] = $plugin_filename; } - $response->addScript("opener.location.href='". $GLOBALS['egw']->link('/index.php',$link_query)."'"); - $response->addScript('window.setTimeout("window.close();", 100);'); - return $response->getXML(); + $response->redirect( $GLOBALS['egw']->link('/index.php',$link_query),true); + egw_framework::window_close(); + return; } elseif($_content['preview'] == 'pressed') { fseek($file, 0); @@ -392,7 +377,7 @@ class importexport_export_ui { '[\030]','[\031]','[\032]','[\033]','[\034]','[\035]','[\036]','[\037]'); $replace = $preview = ''; - while(!feof($file) && $item_count < 10) { + while(!feof($file) && $item_count < 30) { $preview .= preg_replace($search,$replace,fgets($file,1024)); $item_count++; } @@ -406,15 +391,10 @@ class importexport_export_ui { $GLOBALS['egw']->translation->charset() ); - if($record_count) - { - $preview = "
".lang('Preview') . "$record_count
".$preview; - } - $response->addAssign('exec[preview-box]','innerHTML',nl2br($preview)); - $response->jquery('.preview_box','show'); - - $response->addScript("xajax_eT_wrapper();"); - return $response->getXML(); + $preview = "
".lang('Preview') . "".(int)$record_count."
".$preview; + + $et->setElementAttribute('preview-box', 'value', nl2br($preview)); + return; } //nothing else expected! throw new Exception('Error: unexpected submit in export_dialog!'); @@ -441,7 +421,6 @@ class importexport_export_ui { 'type' => 'export', 'application' => $_appname )); - $response->addScript("clear_options('exec[definition]');"); foreach ((array)$definitions->get_definitions() as $identifier) { try { $definition = new importexport_definition($identifier); @@ -457,109 +436,33 @@ class importexport_export_ui { } unset($definitions); $response->addScript("selectbox_add_option('exec[definition]','" . lang('Expert options') . "', 'expert',".($selected_plugin == $title ? 'true' : 'false').");"); - - if($selected_plugin == 'expert') { - $this->ajax_get_plugins($_appname, $response); - } else { - $response->jquery('tr.select_plugin','hide'); - } - $response->addScript('export_dialog.change_definition(document.getElementById("exec[definition]"));'); - $response->addScript('$j("tr.select_definition").css("display","table-row");'); - return $no_return ? '' : $response->getXML(); } - public function ajax_get_plugins($_appname, xajaxResponse &$response = null) { - if(!is_null($response)) { - $no_return = true; - } else { - $response = new xajaxResponse(); - } - if (!$_appname) { - $response->jquery('tr.select_plugin','hide'); - return $no_return ? '' : $response->getXML(); - } + public function ajax_get_definition_description($_definition) { - (array)$plugins = importexport_helper_functions::get_plugins($_appname,'export'); - $sel_options['plugin'] = ''; - $response->addScript("clear_options('exec[plugin]');"); - foreach ($plugins[$_appname]['export'] as $plugin => $plugin_name) { - if (!$selected_plugin) $selected_plugin = $plugin; - $response->addScript("selectbox_add_option('exec[plugin]','$plugin_name', '$plugin',".($selected_plugin == $plugin ? 'true' : 'false').");"); + $_response = egw_json_response::get(); + $description = ''; + if ($_definition) + { + $_object = new importexport_definition($_definition); + if (is_a($_object, 'importexport_definition')) { + $description = $_object->description; + } + unset ($_object); } - - $this->ajax_get_plugin_description($selected_plugin,$response); - $this->ajax_get_plugin_options($selected_plugin, $response, $_definition); - $this->ajax_get_plugin_selectors($selected_plugin, $response, $_definition); - $response->addScript('$j("tr.select_plugin").css("display","table-row");'); - return $no_return ? '' : $response->getXML(); + $_response->assign('importexport-export_dialog_plugin_description','innerHTML',$description); } - public function ajax_get_definition_description($_definition, xajaxResponse &$response=null) { - $no_return = !is_null($response); - if(is_null($response)) { - $response = new xajaxResponse(); - } - if (!$_definition) return $response->getXML(); - $_object = new importexport_definition($_definition); - if (is_a($_object, 'importexport_definition')) { - $description = $_object->description; - $response->assign('exec[plugin_description]','innerHTML',$description); - } - unset ($_object); - - return $no_return ? '' : $response->getXML(); - } - - public function ajax_get_plugin_description($_plugin,&$_response=false) { - $no_return = !is_null($_response); - if(is_null($_response)) { - $_response = new xajaxResponse(); - } - if (!$_plugin) return $no_return ? '' : $response->getXML(); + public function ajax_get_plugin_description($_plugin) { + $_respone = egw_json_response::get(); $plugin_object = new $_plugin; if (is_a($plugin_object, 'importexport_iface_export_plugin')) { $description = $plugin_object->get_description(); - $_response->addAssign('exec[plugin_description]','innerHTML',$description); - - if (isset($definition->plugin_options['selection'])) { - $_response->addScript("document.getElementById('importexport.export_dialog.selection_tab-tab').style.visibility='hidden';"); - } - $this->ajax_get_plugin_options($_plugin, $_response); } + $_response->addAssign('importexport-export_dialog_plugin_description','innerHTML',$description); + unset ($plugin_object); - - return $no_return ? '' : $response->getXML(); - } - - public function ajax_get_plugin_options($_plugin,&$response=false, $definition = '') { - $no_return = !is_null($response); - if(is_null($response)) { - $response = new xajaxResponse(); - } - if (!$_plugin) return $no_return ? '' : $response->getXML(); - - $plugin_object = new $_plugin; - if (is_a($plugin_object, 'importexport_iface_export_plugin')) { - $options = $plugin_object->get_options_etpl(); - ob_start(); - $template = new etemplate($options); -/* - $template->exec('importexport.importexport_export_ui.dialog', array(), array(), array(), array(), 2); - $html = ob_get_clean(); - ob_end_clean(); -*/ - $html = $template->exec('importexport.importexport_export_ui.dialog', array(), array(), array(), array(), 1); - $html = preg_replace('||', - '', - $html - ); - $response->addAssign('importexport.export_dialog.options_tab', 'innerHTML', $html); - } - - unset ($plugin_object); - - return $no_return ? '' : $response->getXML(); } /** @@ -594,40 +497,4 @@ class importexport_export_ui { // Try to avoid any extra finishing output common::egw_exit(); } - - public function ajax_get_plugin_selectors($_plugin,&$response=false, $definition = '') { - $no_return = !is_null($response); - if(is_null($response)) { - $response = new xajaxResponse(); - } - if (!$_plugin) return $no_return ? '' : $response->getXML(); - - $plugin_object = new $_plugin; - if (is_a($plugin_object, 'importexport_iface_export_plugin')) { - $options = $plugin_object->get_selectors_etpl(); - ob_start(); - etemplate::$name_vars='exec'; - $template = new etemplate($options); - $html = $template->exec('importexport.importexport_export_ui.dialog', array(), array(), array(), array(), 1); - //$html = ob_get_clean(); - ob_end_clean(); - $pattern = array( - '||', - '|message .= '' . lang('Import aborted').":
\n"; $definition_obj->plugin_options = (array)$definition_obj->plugin_options + array('dry_run' => true); } - $this->message .= implode($check_message, "
\n") . "
\n"; + if(count($check_message)) + { + $this->message .= implode($check_message, "
\n") . "
\n"; + } if($content['dry-run']) { - echo $this->preview($plugin, $file, $definition_obj); + $preview = $this->preview($plugin, $file, $definition_obj); + $template->setElementAttribute('preview', 'value', $preview); + if(trim($this->message) == '') return; } else { @@ -138,7 +145,10 @@ $this->message .= lang('%1 records processed', $count); // Refresh opening window - if(!$content['dry-run']) $GLOBALS['egw']->js->set_onload("window.opener.egw_refresh('".lang('%1 records processed',$count) . "','$appname',null,null,'$appname');"); + if(!$content['dry-run']) + { + egw_framework::refresh_opener(lang('%1 records processed',$count), $appname, null,null,$appname); + } $total_processed = 0; foreach($plugin->get_results() as $action => $a_count) { $this->message .= "
\n" . lang($action) . ": $a_count"; @@ -197,7 +207,6 @@ if($_GET['appname']) $readonlys['appname'] = true; - $template = new etemplate('importexport.import_dialog'); $template->exec('importexport.importexport_import_ui.import_dialog', $data, $sel_options, $readonlys, $preserve, 2); } @@ -317,7 +326,7 @@ if($count != $total_processed) $this->message .= "
\n".lang('Some records may not have been imported'); $this->message .= "
\n"; } - return '

' . lang('Preview') . ' - ' . $plugin->get_name() . '

' . $preview; + return '
' . lang('Preview') . ' - ' . $plugin->get_name() . '
' . $preview; } /** diff --git a/importexport/inc/class.importexport_schedule_ui.inc.php b/importexport/inc/class.importexport_schedule_ui.inc.php index d0db756c6a..8f94ddf3e6 100644 --- a/importexport/inc/class.importexport_schedule_ui.inc.php +++ b/importexport/inc/class.importexport_schedule_ui.inc.php @@ -26,7 +26,7 @@ protected static $template; public function __construct() { - $this->template = new etemplate(); + $this->template = new etemplate_new(); } public function index($content = array()) { diff --git a/importexport/inc/class.filter_widget.inc.php b/importexport/inc/class.importexport_widget_filter.inc.php similarity index 52% rename from importexport/inc/class.filter_widget.inc.php rename to importexport/inc/class.importexport_widget_filter.inc.php index d3200d5b75..15da5f3e20 100644 --- a/importexport/inc/class.filter_widget.inc.php +++ b/importexport/inc/class.importexport_widget_filter.inc.php @@ -21,68 +21,55 @@ * * Most text fields are ignored. */ -class filter_widget extends customfields_widget +class importexport_widget_filter extends etemplate_widget_transformer { - public $prefix = ''; - public $human_name = array( - 'filter' => 'Import|Export filter' - ); - - public function __construct($ui, $appname = null) - { - $this->advanced_search = true; - parent::__construct($ui, $appname); - } - + protected static $prefix = ''; + + protected static $transformation = array( + 'type' => 'customfields' + ); + /** - * pre-processing of the extension - * - * This function is called before the extension gets rendered - * - * @param string $form_name form-name of the control - * @param mixed &$value value / existing content, can be modified - * @param array &$cell array with the widget, can be modified for ui-independent widgets - * @param array &$readonlys names of widgets as key, to be made readonly - * @param mixed &$extension_data data the extension can store persisten between pre- and post-process - * @param etemplate &$tmpl reference to the template we belong too - * @return boolean true if extra label is allowed, false otherwise - */ - public function pre_process($form_name,&$value,&$cell,&$readonlys,&$extension_data,$tmpl) - { + * Adapt the settings to custom fields widget + * + * @param string $cname + */ + public function beforeSendToClient($cname) + { + $form_name = self::form_name($cname, $this->id); + if($this->getElementAttribute($form_name, 'customfields')) + { + // Already done? + return; + } + $value =& self::get_array(self::$request->content, $form_name, true); $fields = $value['fields']; unset($value['fields']); + $relative_dates = $this->attrs['relative_dates']; - list($relative_dates) = explode(',',$cell['size']); - if($cell['relative_dates']) $relative_dates = true; - + $this->setElementAttribute($form_name, 'prefix', self::$prefix); + // Fallback, so there's something there... if(!is_array($fields)) - { - $cell['type'] = 'label'; - $cell['label'] = 'No fields'; - return True; - } - - - // making the cell an empty grid - $cell['type'] = 'grid'; - $cell['data'] = array(array()); - $cell['rows'] = $cell['cols'] = 0; - $cell['size'] = ''; - - $n = 1; - foreach($fields as $lname => $field) - { - $new_row = null; boetemplate::add_child($cell,$new_row); - $row_class = 'row'; - boetemplate::add_child($cell,$label =& boetemplate::empty_cell('label','',array( - 'label' => $field['label'], - 'no_lang' => substr(lang($field['label']),-1) == '*' ? 2 : 0, - 'span' => $field['type'] === 'label' ? '2' : '', - ))); - - switch($field['type']) + { + error_log("$this has no fields"); + self::$transformation = array( + 'type' => 'label', + 'label' => 'No fields' + ); + return parent::beforeSendToClient($cname); + } +error_log(array2string(array_keys($fields))); + $n = 1; + foreach($fields as $lname => &$field) + { + $type =& $field['type']; + + // No filters are required + $field['needed'] = false; + + switch($type) { case 'date': case 'date-time': @@ -90,7 +77,13 @@ class filter_widget extends customfields_widget $options = ''; if($relative_dates) { - $input = self::do_relative_date($lname, $value, $options, $readonly); + $type = 'select'; + $field['values'] = array('', lang('all')); + foreach(importexport_helper_functions::$relative_dates as $label => $values) + { + $field['values'][$label] = lang($label); + } + $this->setElementAttribute($form_name.'['.self::$prefix.$lname.']', 'tags', TRUE); } else { @@ -119,19 +112,7 @@ class filter_widget extends customfields_widget } $options = array_merge($options, array_intersect_key($field['values'], array_flip(ajax_select_widget::$known_options))); - $input = boetemplate::empty_cell('ajax_select', $lname, array( - 'readonly' => $readonly, - 'no_lang' => True, - 'size' => $options - )); - break; - - case 'link-entry': - $input =& boetemplate::empty_cell('link-entry',$this->prefix.$lname,array( - 'size' => $field['type'] == 'link-entry' ? '' : $field['type'], - )); - // register post-processing of link widget to get eg. needed/required validation - etemplate_old::$request->set_to_process(etemplate_old::form_name($form_name,$this->prefix.$lname), 'ext-link'); + break; case 'select': default: @@ -151,51 +132,37 @@ class filter_widget extends customfields_widget // We don't want the 'All' or 'Select...' if it's there unset($field['values']['']); - - $input =& boetemplate::empty_cell($field['type'],$lname,array( - 'sel_options' => $field['values'], - 'size' => $field['rows'], - 'enhance' => true, - 'no_lang' => True, - )); + $this->setElementAttribute($form_name.'['.self::$prefix.$lname.']', 'empty_label', ''); + $this->setElementAttribute($form_name.'['.self::$prefix.$lname.']', 'tags', TRUE); + $this->setElementAttribute($form_name.'['.self::$prefix.$lname.']', 'multiple', TRUE); } - elseif (in_array($field['type'], array_keys(egw_link::app_list()))) + else { - // Link entry to a specific app - $input =& boetemplate::empty_cell('link-entry',$lname,array( - 'size' => $field['type'] == 'link-entry' ? '' : $field['type'], - )); - // register post-processing of link widget to get eg. needed/required validation - etemplate_old::$request->set_to_process(etemplate_old::form_name($form_name,$lname), 'ext-link'); - - } else { error_log('Trying to filter with unsupported field type: ' . $field['type']); - $input =& boetemplate::empty_cell($field['type'],$lname,array( - 'sel_options' => $field['values'], - 'size' => $field['rows'], - 'no_lang' => True, - )); } - } - $cell['data'][0]['c'.$n++] = $row_class.',top'; - - if (!is_null($input)) + + error_log($type); + + $widget = self::factory($type, '<'.$type.' type="'.$type.'" id="'.self::$prefix.$lname.'"/>', self::$prefix.$lname); + if(method_exists($widget, 'beforeSendToClient')) { - if ($readonly) $input['readonly'] = true; - - $input['needed'] = $cell['needed'] || $field['needed']; - - if (!empty($field['help']) && $row_class != 'th') + $widget->id = self::$prefix.$lname; + $widget->attrs['type'] = $type; + if($type == 'link-to') { - $input['help'] = $field['help']; - $input['no_lang'] = substr(lang($help),-1) == '*' ? 2 : 0; + $widget->attrs['only_app'] = $field['type']; } - boetemplate::add_child($cell,$input); - unset($input); + $widget->beforeSendToClient($cname); } - unset($label); + unset($widget); } + $this->setElementAttribute($form_name, 'customfields', $fields); + $this->setElementAttribute($form_name, 'fields',array_fill_keys(array_keys($fields), true)); + error_log($this); + + parent::beforeSendToClient($cname); + return false; } @@ -258,4 +225,24 @@ error_log('Trying to filter with unsupported field type: ' . $field['type']); boetemplate::add_child($input, $to); return $input; } + + + public function validate($cname, array $expand, array $content, &$validated=array()) + { + $form_name = self::form_name($cname, $this->id, $expand); + error_log('Validating ' . $form_name); + if (!$this->is_readonly($cname, $form_name)) + { + $value_in = self::get_array($content, $form_name); + $valid =& self::get_array($validated, $this->id ? $form_name : $field, true); + + foreach($value_in as $key => $value) + { + // Client side cf widget automatically prefixes # + $valid[substr($key,strlen(self::$prefix))] = $value; + } + } + } } +// Register, or it won't be found +etemplate_widget::registerWidget('importexport_widget_filter', array('filter')); 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 ada2942ee9..8d7e94be4e 100644 --- a/importexport/inc/class.importexport_wizard_basic_export_csv.inc.php +++ b/importexport/inc/class.importexport_wizard_basic_export_csv.inc.php @@ -269,6 +269,8 @@ class importexport_wizard_basic_export_csv $preserv = $content; unset ($preserv['button']); + error_log('-------'); + error_log('Filter ' . array2string($content['filter'])); $content['set_filter']['fields'] = importexport_helper_functions::get_filter_fields( $content['application'],$content['plugin'],$this ); @@ -278,6 +280,8 @@ class importexport_wizard_basic_export_csv $content['set_filter'][$field] = $content['filter'][$field]; } + error_log('SET FILTER ' . array2string($content['set_filter'])); + error_log('----------'); if(!$content['set_filter']['fields']) { // No fields 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 3d0770cbc2..d7ce4611b9 100644 --- a/importexport/inc/class.importexport_wizard_basic_import_csv.inc.php +++ b/importexport/inc/class.importexport_wizard_basic_import_csv.inc.php @@ -79,9 +79,7 @@ class importexport_wizard_basic_import_csv case 'next': // Move sample file to temp if($content['file']['tmp_name']) { - $csvfile = tempnam($GLOBALS['egw_info']['server']['temp_dir'],$content['plugin']."_"); - move_uploaded_file($content['file']['tmp_name'], $csvfile); - $GLOBALS['egw']->session->appsession('csvfile',$content['application'],$csvfile); + $GLOBALS['egw']->session->appsession('csvfile',$content['application'],$content['file']['tmp_name']); } unset($content['file']); return $GLOBALS['egw']->importexport_definitions_ui->get_step($content['step'],1); @@ -126,6 +124,7 @@ class importexport_wizard_basic_import_csv // Process sample file for fields if (($handle = fopen($GLOBALS['egw']->session->appsession('csvfile',$content['application']), "rb")) !== FALSE) { $data = fgetcsv($handle, 8000, $content['fieldsep']); + error_log($data); fclose($handle); // Remove & forget file @@ -270,31 +269,24 @@ class importexport_wizard_basic_import_csv // return from step50 if ($content['step'] == 'wizard_step50') { - for($i = 0; $i <= count($content['csv_fields']); $i++) { - unset($content[$i]); - } - if(!$content['csv_fields'][0]) { - array_shift($content['csv_fields']); - } - // Need to move everything down 1 to remove header, but shift will re-key - if(!$content['field_mapping'][0] || $content['field_mapping'][0] == $content['field_mapping'][1]) { - unset($content['field_mapping'][0]); - if(is_array($content['field_conversion'])) unset($content['field_conversion'][0]); - foreach(array('field_mapping', 'field_conversion') as $field) { - ksort($content[$field]); - foreach($content[$field] as $key => $value) + unset($content['field_mapping']); + unset($content['field_conversion']); + foreach($content['mapping'] as $field) + { + $index = $field['index']; + foreach(array('conversion'=>'field_conversion', 'field' => 'field_mapping') as $id => $dest) + { + if(trim($field[$id]) != '') { - if($value && $value != '--NONE--') { - $content[$field][$key-1] = $content[$field][$key]; - } - unset($content[$field][$key]); + $content[$dest][$index] = trim($field[$id]); } - ksort($content[$field]); } } - foreach($content['field_conversion'] as $field => $convert) { - if(!trim($convert)) unset($content['field_conversion'][$field]); + foreach($content['csv_fields'] as $index => $title) + { + error_log("$index: $title => {$content['field_mapping'][$index]}"); } + unset($content['mapping']); switch (array_search('pressed', $content['button'])) { case 'next': @@ -312,41 +304,19 @@ class importexport_wizard_basic_import_csv { $content['msg'] = $this->steps['wizard_step50']; $content['step'] = 'wizard_step50'; + + $content['mapping'] = array(false); + foreach($content['csv_fields'] as $index => $title) + { + $content['mapping'][] = array( + 'index' => $index, + 'title' => $title, + 'field' => $content['field_mapping'][$index], + 'conversion' => $content['field_conversion'][$index] + ); + } $preserv = $content; - - if(!$content['field_mapping'] && $content['plugin_options']) { - $content['field_mapping'] = $content['plugin_options']['field_mapping']; - $content['field_conversion'] = $content['plugin_options']['field_conversion']; - } - - array_unshift($content['csv_fields'], array('row0')); - // Need to move everything down 1 to make room for header, but unshift will re-key - // which causes problems if you skip a field. - foreach(array('field_mapping', 'field_conversion') as $field) { - foreach(array_reverse($content[$field], true) as $key => $value) - { - if($value) { - $content[$field][$key+1] = $content[$field][$key]; - } - unset($content[$field][$key]); - } - ksort($content[$field]); - } - - $j = 1; - $i = 0; - foreach ($content['csv_fields'] as $field) - { - $content[++$i]['index'] = $i - 1; - if(strstr($field,'no_csv_')) $j++; - } - while ($j <= 3) - { - $content['csv_fields'][] = 'no_csv_'.$j; - $content['field_mapping'][] = $content['field_conversion'][] = ''; - $j++; - } - $sel_options['field_mapping'] = array('--NONE--' => lang('none')) + $this->mapping_fields; + $sel_options['field'] = array('--NONE--' => lang('none')) + $this->mapping_fields; $GLOBALS['egw']->js->set_onload('$j("option[value=\'--NONE--\']:selected").closest("tr").animate({backgroundColor: "#ffff99"}, 1000);'); unset ($preserv['button']); return $this->step_templates[$content['step']]; diff --git a/importexport/js/app.js b/importexport/js/app.js new file mode 100644 index 0000000000..e4d2d568a3 --- /dev/null +++ b/importexport/js/app.js @@ -0,0 +1,97 @@ +/** + * EGroupware - Import/Export - Javascript UI + * + * @link http://www.egroupware.org + * @package importexport + * @author Nathan Gray + * @copyright (c) 2013 Nathan Gray + * @license http://opensource.org/licenses/gpl-license.php GPL - GNU General Public License + * @version $Id$ + */ + +/** + * JS for Import/Export + * + * @augments AppJS + */ +app.importexport = AppJS.extend( +{ + appname: 'importexport', + + /** + * Constructor + * + * @memberOf app.timesheet + */ + init: function() + { + // call parent + this._super.apply(this, arguments); + }, + + /** + * Destructor + */ + destroy: function() + { + // call parent + this._super.apply(this, arguments); + }, + + /** + * This function is called when the etemplate2 object is loaded + * and ready. If you must store a reference to the et2 object, + * make sure to clean it up in destroy(). + * + * @param et2 etemplate2 Newly ready object + */ + et2_ready: function(et2) + { + // call parent + this._super.apply(this, arguments); + + if(this.et2.getWidgetById('export') && !this.et2.getArrayMgr("content").getEntry("definition")) + { + // et2 doesn't understand a disabled button in the normal sense + $j(this.et2.getWidgetById('export').getDOMNode()).attr('disabled','disabled'); + $j(this.et2.getWidgetById('preview').getDOMNode()).attr('disabled','disabled'); + } + }, + + export_preview: function(event, widget) + { + var preview = $j(widget.getRoot().getWidgetById('preview_box').getDOMNode()); + $j('.content',preview).empty(); + + preview + .addClass('loading') + .show(100, jQuery.proxy(function() { + widget.clicked = true; + widget.getInstanceManager().submit(false, true); + widget.clicked = false; + $j(widget.getRoot().getWidgetById('preview_box').getDOMNode()) + .removeClass('loading'); + },this)); + return false; + }, + + import_preview: function(event, widget) + { + var test = widget.getRoot().getWidgetById('dry-run'); + if(!test.getValue()) return true; + + // Show preview + var preview = $j(widget.getRoot().getWidgetById('preview_box').getDOMNode()); + $j('.content',preview).empty(); + preview + .addClass('loading') + .show(100, jQuery.proxy(function() { + widget.clicked = true; + widget.getInstanceManager().submit(false, true); + widget.clicked = false; + $j(widget.getRoot().getWidgetById('preview_box').getDOMNode()) + .removeClass('loading'); + },this)); + return false; + } +}); \ No newline at end of file diff --git a/importexport/js/export_dialog.js b/importexport/js/export_dialog.js deleted file mode 100644 index 7786e87a0c..0000000000 --- a/importexport/js/export_dialog.js +++ /dev/null @@ -1,37 +0,0 @@ -/** - * eGroupWare - * - * @license http://opensource.org/licenses/gpl-license.php GPL - GNU General Public License - * @package importexport - * @link http://www.egroupware.org - * @author Cornelius Weiss - * @copyright Cornelius Weiss - * @version $Id:$ - */ - -function export_dialog() { - - this.change_definition = function(sel_obj) { - if(sel_obj.value == 'expert') { - xajax_doXMLHTTP('importexport.importexport_export_ui.ajax_get_plugins',document.getElementById('exec[appname]') ? document.getElementById('exec[appname]').value : this.appname); - // next two lines fix some strange layout bug - //set_style_by_class('tr','select_definition','display','none'); - //set_style_by_class('tr','select_definition','display','inline'); - set_style_by_class('tr','select_plugin','display','table-row'); - set_style_by_class('tr','save_definition','display','inline'); - document.getElementById('importexport.export_dialog.selection_tab-tab').style.visibility='visible'; - document.getElementById('importexport.export_dialog.options_tab-tab').style.visibility='visible'; - } - else { - xajax_doXMLHTTP('importexport.importexport_export_ui.ajax_get_definition_description',sel_obj.value); - set_style_by_class('tr','select_plugin','display','none'); - set_style_by_class('tr','save_definition','display','none'); - // document.getElementById('importexport.export_dialog.selection_tab-tab').style.visibility='hidden'; - // document.getElementById('importexport.export_dialog.options_tab-tab').style.visibility='hidden'; - enable_button('exec[export]'); - enable_button('exec[preview]'); - } - }; - this.appname = ''; -} -var export_dialog = new export_dialog(); diff --git a/importexport/js/importexport.js b/importexport/js/importexport.js deleted file mode 100644 index de423b5de4..0000000000 --- a/importexport/js/importexport.js +++ /dev/null @@ -1,17 +0,0 @@ -/** -* Common functions for import / export -*/ - -/** -* Clear a selectbox -*/ -function clear_options(id) { - var list = document.getElementById(id); - for(var count = list.options.length - 1; count >= 0; count--) { - list.options[count] = null; - } - if($j().chosen && list) { - $j(list).trigger("liszt:updated"); - } -} - diff --git a/importexport/setup/etemplates.inc.php b/importexport/setup/etemplates.inc.php index eb67dc58b8..dffa499d00 100644 --- a/importexport/setup/etemplates.inc.php +++ b/importexport/setup/etemplates.inc.php @@ -2,7 +2,7 @@ /** * EGroupware - eTemplates for Application importexport * http://www.egroupware.org - * generated by soetemplate::dump4setup() 2013-07-29 09:13 + * generated by soetemplate::dump4setup() 2013-10-30 17:16 * * @license http://opensource.org/licenses/gpl-license.php GPL - GNU General Public License * @package importexport @@ -14,7 +14,7 @@ $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:4:"span";s:11:"all,message";s:7:"no_lang";s:1:"1";s:4:"name";s:3:"msg";s:4:"type";s:5:"label";s:5:"align";s:6:"center";}}i:2;a:1:{s:1:"A";a:6:{s:4:"type";s:9:"nextmatch";s:4:"data";a:3:{i:0;a:2:{s:2:"c1";s:2:"th";s:2:"c2";s:7:"row,top";}i:1;a:6:{s:1:"A";a:3:{s:4:"type";s:5:"label";s:5:"label";s:4:"Type";s:4:"span";s:11:",lr_padding";}s:1:"B";a:3:{s:4:"type";s:5:"label";s:5:"label";s:4:"Name";s:4:"span";s:11:",lr_padding";}s:1:"C";a:3:{s:4:"type";s:5:"label";s:5:"label";s:11:"Application";s:4:"span";s:11:",lr_padding";}s:1:"D";a:4:{s:5:"align";s:6:"center";s:4:"type";s:5:"label";s:5:"label";s:13:"Allowed users";s:4:"span";s:11:",lr_padding";}s:1:"E";a:5:{s:5:"label";s:3:"Add";s:5:"align";s:6:"center";s:4:"type";s:6:"button";s:4:"span";s:11:",lr_padding";s:7:"onclick";s:226:"window.open(egw::link(\'/index.php\',\'menuaction=importexport.importexport_definitions_ui.wizard\'),\'\',\'dependent=yes,width=500,height=500,location=no,menubar=no,toolbar=no,scrollbars=yes,status=yes\'); return false; return false;";}s:1:"F";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:4:"name";s:15:"delete_selected";s:4:"type";s:6:"button";s:4:"help";s:31:"delete ALL selected definitions";s:4:"size";s:6:"delete";s:7:"onclick";s:65:"return confirm(\'Do you really want to DELETE this 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:"help";s:31:"export ALL selected definitions";s:4:"size";s:10:"fileexport";}}}i:2;a:6:{s:1:"A";a:5:{s:7:"no_lang";s:1:"1";s:4:"type";s:5:"image";s:4:"span";s:18:",lr_padding button";s:4:"name";s:12:"${row}[type]";s:7:"onclick";s:222:"window.open(egw::link(\'/index.php\',\'menuaction=${row_cont[menuaction]}&appname=${row_cont[application]}&definition=${row_cont[name]}\'),\'_blank\',\'dependent=yes,width=850,height=440,scrollbars=yes,status=yes\'); return false;";}s:1:"B";a:5:{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:4:"size";s:1:",";}s:1:"C";a:4:{s:7:"no_lang";s:1:"1";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:7:"no_lang";s:1:"1";s:4:"type";s:14:"select-account";s:4:"span";s:11:",lr_padding";s:8:"readonly";s:1:"1";s:4:"name";s:21:"${row}[allowed_users]";s:4:"size";s:6:"5,both";}s:1:"E";a:5:{s:5:"align";s:6:"center";s:4:"type";s:4:"hbox";s:4:"size";s:1:"2";i:1;a:4:{s:5:"label";s:4:"Edit";s:4:"type";s:6:"button";s:4:"size";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;";}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:"F";a:4:{s:5:"align";s:6:"center";s:4:"name";s:34:"selected[$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:6;s:4:"rows";i:2;s:4:"name";s:2:"nm";s:4:"size";s:33:"importexport.definition_index.row";}}i:3;a:1:{s:1:"A";a:5:{s:4:"type";s:4:"hbox";s:4:"size";s:1:"2";s:5:"align";s:5:"right";i:1;a:5:{s:4:"type";s:10:"buttononly";s:4:"name";s:14:"legacy_actions";s:4:"help";s:13:"Select action";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;;";}i:2;a:8:{s:4:"type";s:6:"button";s:4:"size";s:9:"arrow_ltr";s:5:"label";s:9:"Check all";s:4:"name";s:9:"check_all";s:4:"help";s:9:"Check all";s:7:"onclick";s:109:"egw_globalObjectManager.getObjectById(\'importexport.definition_index.row\').toggleAllSelected(); return false;";s:6:"needed";s:1:"1";s:4:"span";s:14:",checkAllArrow";}}}i:4;a:1:{s:1:"A";a:4:{s:4:"type";s:4:"hbox";s:4:"size";s:1:"2";i:1;a:6:{s:5:"class";s:19:"action_popup prompt";s:4:"name";s:11:"owner_popup";s:4:"type";s:3:"box";s:4:"size";s:1:"1";i:1;a:6:{s:4:"type";s:4:"vbox";s:4:"size";s:1:"4";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:2:{s:4:"type";s:5:"label";s:5:"label";s:12:"Select owner";}i:3;a:4:{s:4:"type";s:14:"select-account";s:4:"name";s:5:"owner";s:4:"size";s:13:"None,accounts";s:4:"span";s:21:",action_popup-content";}i:4;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";}}}s:4:"span";s:20:",action_popup prompt";}i:2;a:6:{s:5:"class";s:19:"action_popup prompt";s:4:"name";s:13:"allowed_popup";s:4:"type";s:3:"box";s:4:"size";s:1:"1";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:4:"type";s:8:"checkbox";s:4:"name";s:15:"allowed_private";s:5:"label";s:10:"%s Just me";}i:4;a:3:{s:4:"type";s:8:"checkbox";s:4:"name";s:9:"all_users";s:5:"label";s:12:"%s All users";}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:"span";s:20:",action_popup prompt";}}}}s:4:"cols";i:1;s:4:"rows";i:4;s:4:"size";s:4:"100%";}}','size' => '100%','style' => '.redItalic { color:red; font-style:italic;} td.lr_padding { padding-left: 5px; padding-right: 5px; } +$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; @@ -49,19 +49,19 @@ $templ_data[] = array('name' => 'importexport.definition_index','template' => '' .action_select { width: 100% -}','modified' => '1303225543',); +}','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:3:{s:2:"c1";s:2:"th";s:2:"c2";s:20:"row $row_cont[class]";s:1:"G";s:12:",@no_actions";}i:1;a:7:{s:1:"A";a:4:{s:4:"type";s:22:"nextmatch-filterheader";s:4:"span";s:11:",lr_padding";s:4:"name";s:4:"type";s:4:"size";s:12:"importexport";}s:1:"B";a:4:{s:4:"type";s:20:"nextmatch-sortheader";s:5:"label";s:4:"Name";s:4:"span";s:11:",lr_padding";s:4:"name";s:4:"name";}s:1:"C";a:4:{s:4:"type";s:22:"nextmatch-filterheader";s:4:"span";s:11:",lr_padding";s:4:"name";s:11:"application";s:4:"size";s:11:"Application";}s:1:"D";a:6:{s:5:"align";s:6:"center";s:4:"type";s:23:"nextmatch-accountfilter";s:5:"label";s:13:"Allowed users";s:4:"span";s:11:",lr_padding";s:4:"name";s:13:"allowed_users";s:4:"size";s:10:"All,groups";}s:1:"E";a:3:{s:4:"type";s:23:"nextmatch-accountfilter";s:5:"label";s:5:"Owner";s:4:"name";s:5:"owner";}s:1:"F";a:5:{s:5:"label";s:7:"Actions";s:5:"align";s:6:"center";s:4:"type";s:16:"nextmatch-header";s:4:"span";s:11:",lr_padding";s:4:"name";s:7:"actions";}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:4:"name";s:15:"delete_selected";s:4:"type";s:6:"button";s:4:"help";s:31:"delete ALL selected definitions";s:4:"size";s:6:"delete";s:7:"onclick";s:65:"return confirm(\'Do you really want to DELETE this 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:"help";s:31:"export ALL selected definitions";s:4:"size";s:10:"fileexport";}}}i:2;a:7:{s:1:"A";a:5:{s:7:"no_lang";s:1:"1";s:4:"type";s:5:"image";s:4:"span";s:18:",lr_padding button";s:4:"name";s:12:"${row}[type]";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:1:"B";a:5:{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:4:"size";s:1:",";}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:7:"no_lang";s:1:"1";s:4:"type";s:14:"select-account";s:4:"span";s:11:",lr_padding";s:8:"readonly";s:1:"1";s:4:"name";s:21:"${row}[allowed_users]";s:4:"size";s:6:"5,both";}s:1:"E";a:3:{s:4:"type";s:14:"select-account";s:4:"name";s:13:"${row}[owner]";s:8:"readonly";s:1:"1";}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:4:"type";s:6:"button";s:4:"size";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]}]";}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:"type";s:8:"checkbox";s:4:"help";s:34:"select this eTemplate to delete it";s:4:"size";s:24:"$row_cont[definition_id]";}}}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; } +$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' => '1305674060',); +}','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:26:"\\$j(\'div.filters\').show();";}}}s:4:"rows";i:3;s:4:"cols";i:1;}}','size' => '','style' => '','modified' => '1358878811',); +$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:4:{s:4:"type";s:6:"button";s:5:"label";s:6:"Export";s:4:"name";s:6:"export";s:7:"onclick";s:36:"xajax_eT_wrapper(this);return false;";}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:36:"xajax_eT_wrapper(this);return false;";}}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:3:"box";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:86:"document.getElementById(form::name(\'preview_box\')).style.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' => '.preview_box { +$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; @@ -112,28 +112,18 @@ $templ_data[] = array('name' => 'importexport.export_dialog.selection_tab','temp $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";s:87:"xajax_doXMLHTTP(\'importexport.importexport_import_ui.ajax_get_definitions\',this.value);";}}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:5:{s:4:"type";s:3:"box";s:4:"span";s:11:"all,preview";s:8:"readonly";s:1:"1";s:4:"size";s:1:"1";i:1;a:3:{s:4:"type";s:4:"html";s:4:"name";s:7:"preview";s:8:"readonly";s:1:"1";}}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: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:"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' => '.hide input { -display: none; -} +$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',); -.preview { - max-height: 400px; - overflow: auto; -} -.preview tr{ - vertical-align: top; -}','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_edit','template' => '','lang' => '','group' => '0','version' => '1.9.003','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";s:137:"xajax_doXMLHTTP(\'importexport.importexport_schedule_ui.ajax_get_plugins\', document.getElementById(form::name(\'type\')).value, this.value);";}}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";s:144:"xajax_doXMLHTTP(\'importexport.importexport_schedule_ui.ajax_get_definitions\', document.getElementById(form::name(\'appname\')).value, this.value);";}}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' => '1323130226',); - -$templ_data[] = array('name' => 'importexport.schedule_index','template' => '','lang' => '','group' => '0','version' => '1.9.001','data' => 'a:1:{i:0;a:4:{s:4:"type";s:4:"grid";s:4:"data";a:4:{i:0;a:1:{s: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:17:"edit[{$cont[id]}]";s:7:"onclick";s:194:"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:19:"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;}}','size' => '','style' => 'table.schedule { +$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' => '1323287641',); +}','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:4:{s:4:"type";s:4:"hbox";s:7:"no_lang";s:1:"1";s:4:"size";s:1:"1";i:1;a:3:{s:4:"type";s:5:"image";s:7:"no_lang";s:1:"1";s:4:"name";s:12:"importexport";}}i:2;a:8:{s:4:"type";s:3:"box";s:4:"span";s:15:",wizard_content";s:4:"name";s:12:"step_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:14:"wizard_content";}}}}i:2;a:1:{s:1:"A";a:6:{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:4:{s:4:"type";s:6:"button";s:4:"name";s:16:"button[previous]";s:5:"label";s:8:"previous";s:7:"onclick";s:37:"xajax_eT_wrapper(this); return false;";}i:2;a:4:{s:4:"type";s:6:"button";s:4:"name";s:12:"button[next]";s:5:"label";s:4:"next";s:7:"onclick";s:37:"xajax_eT_wrapper(this); return false;";}i:3;a:4:{s:4:"type";s:6:"button";s:4:"name";s:14:"button[finish]";s:5:"label";s:6:"finish";s:7:"onclick";s:37:"xajax_eT_wrapper(this); return false;";}}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:5:"align";s:5:"right";}}}s:4:"rows";i:2;s:4:"cols";i:1;s:4:"size";s:4:",400";s:7:"options";a:1:{i:1;s:3:"400";}}}','size' => ',400','style' => '.wizard_content fieldset { - height: 347px; - width: 250px; - max-height:347px; +$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',); diff --git a/importexport/templates/default/app.css b/importexport/templates/default/app.css new file mode 100644 index 0000000000..156e753c24 --- /dev/null +++ b/importexport/templates/default/app.css @@ -0,0 +1,36 @@ +div.preview { + 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%; +} + +div.preview .content { + overflow: auto; + max-height: 99%; + display: block; +} +.preview_box .header, .preview .header { + font-size: 150%; + margin-bottom: 5px; + padding: 5px; + border-bottom: 1px outset; +} + +.preview tr{ + vertical-align: top; +} + +.preview div[id$='buttons'] { + position: absolute; + bottom: 0px; + width: 100%; + margin-left: 50%; +} \ No newline at end of file diff --git a/importexport/templates/default/definition_index.xet b/importexport/templates/default/definition_index.xet index 4cb366a4b1..ebbd0d1d2e 100644 --- a/importexport/templates/default/definition_index.xet +++ b/importexport/templates/default/definition_index.xet @@ -4,13 +4,13 @@ - \ No newline at end of file + diff --git a/importexport/templates/default/export_dialog.xet b/importexport/templates/default/export_dialog.xet index c0499c9f2a..30f26f10aa 100644 --- a/importexport/templates/default/export_dialog.xet +++ b/importexport/templates/default/export_dialog.xet @@ -30,8 +30,8 @@ - - + + @@ -74,7 +74,7 @@