AAAAPK ljB\D`F F view.html.phpnu W+A input; $session = JFactory::getSession(); $option = $jinput->get('option'); // Load the models $model = $this->getModel(); $this->setModel(JModel::getInstance('templates', 'CsviModel')); $this->setModel(JModel::getInstance('availablefields', 'CsviModel')); // Load stylesheet $document = JFactory::getDocument(); $document->addStyleSheet(JURI::root().'administrator/components/com_csvi/assets/css/process.css'); // Set the template ID $template_id = $jinput->get('template_id', $session->get($option.'.select_template', 0), 'int'); $jinput->set('template_id', $template_id); // Load the saved templates $template_model = $this->getModel('Templates'); $this->templates = JHtml::_('select.genericlist', $template_model->getTemplates(), 'select_template', '', 'value', 'text', $jinput->get('template_id', 0, 'int')); // Load the selected template $this->loadHelper('template'); $this->template = new CsviTemplate(); $this->template->load($template_id); $jinput->set('template', $this->template); // Set the action, component and operation for the form if ($template_id > 0) $jinput->set('jform', $this->template->getSettings()); // Load the option templates $this->optiontemplates = $model->getOptions(); // Get the options for the user $this->form = $model->getForm(array(), true, $this->optiontemplates); // Load the fields $av_model = $this->getModel('availablefields'); $this->templatefields = $av_model->getAvailableFields($this->form->getValue('operation','options'), $this->form->getValue('component','options'), 'object', $this->form->getValue('custom_table')); // Load the replacements $this->replacements = $this->get('Replacements'); // Add the component path to find template files $this->addTemplatePath(JPATH_COMPONENT_ADMINISTRATOR.'/views/process/tmpl/'.$this->form->getValue('component','options').'/'.$this->form->getValue('action','options')); $this->addTemplatePath(JPATH_COMPONENT_ADMINISTRATOR.'/views/process/tmpl/'.$this->form->getValue('action','options')); // Load the helper $this->loadHelper($this->form->getValue('component','options')); // Load the configuration helper $this->loadHelper($this->form->getValue('component','options').'_config'); $classname = 'Csvi'.$this->form->getValue('component','options').'_config'; if (class_exists($classname)) $this->config = new $classname; // Get the panel $this->loadHelper('panel'); // Get the toolbar title JToolBarHelper::title(JText::_('COM_CSVI_PROCESS'), 'csvi_process_48'); // Get the toolbar JToolBarHelper::custom('cronline', 'csvi_cron_32', 'csvi_cron_32', JText::_('COM_CSVI_CRONLINE'), false); JToolBarHelper::custom('process.imexport', 'csvi_process_32', 'csvi_process_32', JText::_('COM_CSVI_PROCESS'), false); //JToolBarHelper::help('process.html', true); // Display it all parent::display($tpl); } } ?> PK ljB\#o, , index.htmlnu W+A
PK ljB\#o, , tmpl/com_csvi/index.htmlnu W+A PK ljB\ % tmpl/com_csvi/export/default_file.phpnu W+A PK ljB\) tmpl/com_csvi/export/.htaccessnu W+A