export_fields = array( 'res_id' => lang('Resource ID'), 'name' => lang('name'), 'short_description' => lang('short description'), 'cat_id' => lang('Category'), 'quantity' => lang('Quantity'), 'useable' => lang('Useable'), 'location' => lang('Location'), 'storage_info' => lang('Storage'), 'bookable' => lang('Bookable'), 'buyable' => lang('Buyable'), 'prize' => lang('Prize'), 'long_description' => lang('Long description'), 'inventory_number' => lang('inventory number'), ); // Custom fields $custom = config::get_customfields('resources', true); foreach($custom as $name => $data) { $this->export_fields['#'.$name] = $data['label']; } } public function wizard_step50(&$content, &$sel_options, &$readonlys, &$preserv) { if($this->debug || true) error_log(get_class($this) . '::wizard_step50->$content '.print_r($content,true)); // return if ($content['step'] == 'wizard_step50') { switch (array_search('pressed', $content['button'])) { case 'next': return $GLOBALS['egw']->importexport_definitions_ui->get_step($content['step'],1); case 'previous' : return $GLOBALS['egw']->importexport_definitions_ui->get_step($content['step'],-1); case 'finish': return 'wizard_finish'; default : return $this->wizard_step50($content,$sel_options,$readonlys,$preserv); } } // init step else { $content['step'] = 'wizard_step50'; $content['msg'] = $this->steps[$content['step']]; $preserv = $content; unset ($preserv['button']); $fields = array('pm_used_time', 'pm_planned_time', 'pm_replanned_time'); $sel_options = array_fill_keys($fields, array('h' => lang('hours'), 'd' => lang('days'))); foreach($fields as $field) { $content[$field] = $content[$field] ? $content[$field] : $content['plugin_options'][$field]; } } return $this->step_templates[$content['step']]; } }