function update() { $formId = JRequest::getInt('formId'); JRequest::setVar('view', 'forms'); JRequest::setVar('layout', 'edit_emails'); JRequest::setVar('tmpl', 'component'); JRequest::setVar('formId', $formId); parent::display(); jexit(); }
function showConditions() { $model = $this->getModel('conditions'); $formId = $model->getFormId(); JRequest::setVar('view', 'forms'); JRequest::setVar('layout', 'edit_conditions'); JRequest::setVar('tmpl', 'component'); JRequest::setVar('formId', $formId); parent::display(); exit; }
function update() { $formId = JRequest::getInt('formId'); $view = JRequest::getCmd('type', 'additional') == 'additional' ? 'forms' : 'directory'; JRequest::setVar('view', $view); JRequest::setVar('layout', 'edit_emails'); JRequest::setVar('tmpl', 'component'); JRequest::setVar('formId', $formId); parent::display(); jexit(); }
function edit() { JRequest::setVar('view', 'configuration'); JRequest::setVar('layout', 'default'); parent::display(); }
function display() { JRequest::setVar('view', 'files'); JRequest::setVar('layout', 'default'); parent::display(); }
function show() { JRequest::setVar('view', 'forms'); JRequest::setVar('layout', 'richtext'); parent::display(); }
function display($cachable = false, $urlparams = false) { JRequest::setVar('view', 'files'); JRequest::setVar('layout', 'default'); parent::display($cachable, $urlparams); }
function changeStatus() { $model = $this->getModel('formajax'); $model->componentsChangeStatus(); $componentId = $model->getComponentId(); if (is_array($componentId)) { $formId = JRequest::getInt('formId'); $task = $this->getTask(); $msg = 'RSFP_ITEMS_UNPUBLISHED'; if ($task == 'publish') { $msg = 'RSFP_ITEMS_PUBLISHED'; } $this->setRedirect('index.php?option=com_rsform&task=forms.edit&formId=' . $formId, JText::sprintf($msg, count($componentId))); } else { JRequest::setVar('view', 'formajax'); JRequest::setVar('layout', 'component_published'); JRequest::setVar('format', 'raw'); parent::display(); } }
function changeRequired() { $model = $this->getModel('formajax'); $model->componentsChangeRequired(); $componentId = $model->getComponentId(); JRequest::setVar('view', 'formajax'); JRequest::setVar('layout', 'component_required'); JRequest::setVar('format', 'raw'); parent::display(); }
function newStepThree() { $session = JFactory::getSession(); $session->set('com_rsform.wizard.FormTitle', JRequest::getVar('FormTitle', '', 'post', 'none', JREQUEST_ALLOWRAW)); $session->set('com_rsform.wizard.FormLayout', JRequest::getVar('FormLayout', '', 'post', 'none', JREQUEST_ALLOWRAW)); $session->set('com_rsform.wizard.AdminEmail', JRequest::getInt('AdminEmail')); $session->set('com_rsform.wizard.AdminEmailTo', JRequest::getVar('AdminEmailTo', '', 'post', 'none', JREQUEST_ALLOWRAW)); $session->set('com_rsform.wizard.UserEmail', JRequest::getInt('UserEmail')); $session->set('com_rsform.wizard.SubmissionAction', JRequest::getVar('SubmissionAction', '', 'post', 'word')); $session->set('com_rsform.wizard.Thankyou', JRequest::getVar('Thankyou', '', 'post', 'none', JREQUEST_ALLOWRAW)); $session->set('com_rsform.wizard.ReturnUrl', JRequest::getVar('ReturnUrl', '', 'post', 'none', JREQUEST_ALLOWRAW)); JRequest::setVar('view', 'forms'); JRequest::setVar('layout', 'new3'); parent::display(); }
public function save() { $app = JFactory::getApplication(); $formId = $app->input->getInt('formId', 0); $id = $app->input->getInt('id', 0); $task = $this->getTask(); // Get the model $model = $this->getModel('directory'); // Save if (RSFormProHelper::canEdit($formId, $id)) { if ($model->save()) { $this->setMessage(JText::_('RSFP_SUBM_DIR_SAVE_OK')); if ($task == 'apply') { $this->setRedirect(JRoute::_('index.php?option=com_rsform&view=directory&layout=edit&id=' . $id, false)); } else { $this->setRedirect(JRoute::_('index.php?option=com_rsform&view=directory', false)); } } else { $app->enqueueMessage(JText::_('RSFP_SUBM_DIR_SAVE_ERROR'), 'error'); JRequest::setVar('view', 'directory'); JRequest::setVar('layout', 'edit'); JRequest::setVar('id', $id); parent::display(); } } else { $this->setMessage(JText::_('JERROR_ALERTNOAUTHOR'), 'error'); $this->setRedirect(JRoute::_('index.php?option=com_rsform&view=directory', false)); } }
function showmappings() { $formId = JRequest::getInt('formId'); JRequest::setVar('view', 'forms'); JRequest::setVar('layout', 'edit_mappings'); JRequest::setVar('tmpl', 'component'); JRequest::setVar('formId', $formId); parent::display(); exit; }
public function edit() { JRequest::setVar('view', 'directory'); JRequest::setVar('layout', 'edit'); parent::display(); }
function exportTask() { JRequest::setVar('view', 'submissions'); JRequest::setVar('layout', 'exportprocess'); parent::display(); $session = JFactory::getSession(); $option = JRequest::getVar('option', 'com_rsform'); $session->set($option . '.export.data', serialize(JRequest::get('post', JREQUEST_ALLOWRAW))); }