/** * Execute the action */ public function execute() { parent::execute(); // load record $this->loadData(); // add js $this->header->addJS('jstree/jquery.tree.js', null, false); $this->header->addJS('jstree/lib/jquery.cookie.js', null, false); $this->header->addJS('jstree/plugins/jquery.tree.cookie.js', null, false); // add css $this->header->addCSS('/backend/modules/pages/js/jstree/themes/fork/style.css', null, true); // get the templates $this->templates = BackendExtensionsModel::getTemplates(); // set the default template as checked $this->templates[$this->record['template_id']]['checked'] = true; // homepage? if ($this->id == 1) { // loop and set disabled state foreach ($this->templates as &$row) { $row['disabled'] = $row['has_block']; } } // get the extras $this->extras = BackendExtensionsModel::getExtras(); $this->loadForm(); $this->loadDrafts(); $this->loadRevisions(); $this->validateForm(); $this->parse(); $this->display(); }
/** * Execute the action. * * @return void */ public function execute() { // get parameters $this->id = $this->getParameter('id', 'int'); $this->profileId = $this->getParameter('profile_id', 'int'); // does the item exists if ($this->id !== null && BackendProfilesModel::existsProfileGroup($this->id)) { // does profile exists if ($this->profileId !== null && BackendProfilesModel::exists($this->profileId)) { // call parent, this will probably add some general CSS/JS or other required files parent::execute(); // get data $this->getData(); // load the form $this->loadForm(); // validate the form $this->validateForm(); // parse $this->parse(); // display the page $this->display(); } else { $this->redirect(BackendModel::createURLForAction('index') . '&error=non-existing'); } } else { $this->redirect(BackendModel::createURLForAction('index') . '&error=non-existing'); } }
/** * Execute the action * * @return void */ public function execute() { // get parameters $this->id = $this->getParameter('id', 'int'); // does the item exists if ($this->id !== null && BackendBlogModel::exists($this->id)) { // call parent, this will probably add some general CSS/JS or other required files parent::execute(); // set category id $this->categoryId = SpoonFilter::getGetValue('category', null, null, 'int'); if ($this->categoryId == 0) { $this->categoryId = null; } // get all data for the item we want to edit $this->getData(); // load drafts $this->loadDrafts(); // load the datagrid with revisions $this->loadRevisions(); // load the form $this->loadForm(); // validate the form $this->validateForm(); // parse the datagrid $this->parse(); // display the page $this->display(); } else { $this->redirect(BackendModel::createURLForAction('index') . '&error=non-existing'); } }
/** * Execute the action */ public function execute() { parent::execute(); $this->getAnalyticsParameters(); $this->parse(); $this->display(); }
/** * Execute the action * * @return void */ public function execute() { // set force compile on because we're using multiple forms on 1 page $this->tpl->setForceCompile(true); // get parameters $this->id = $this->getParameter('id', 'int'); // get the step $this->stepId = SpoonFilter::getGetValue('step', array(1, 2, 3, 4), 1, 'int'); // does the item exist if (BackendMailmotorModel::existsMailing($this->id)) { // call parent, this will probably add some general CSS/JS or other required files parent::execute(); // load jquery tiny $this->header->addJS('tiny_mce/jquery.tinymce.js', 'core'); // get all data for the item we want to edit $this->getData(); // load the wizard steps $this->loadWizardSteps(); // load the appropriate step $this->{'loadStep' . $this->stepId}(); // parse $this->parse(); // display the page $this->display(); } else { $this->redirect(BackendModel::createURLForAction('index') . '&error=non-existing'); } }
/** * Execute the action */ public function execute() { parent::execute(); $this->loadForm(); $this->validateForm(); $this->parse(); $this->display(); }
/** * Execute the action */ public function execute() { parent::execute(); $this->loadData(); $this->loadForm(); $this->loadDataGrid(); $this->parse(); $this->display(); }
/** * Execute the action */ public function execute() { parent::execute(); $this->groupId = SpoonFilter::getGetValue('group_id', null, 0, 'int'); $this->downloadExampleFile(); $this->loadForm(); $this->validateForm(); $this->parse(); $this->display(); }
/** * Execute the action */ public function execute() { parent::execute(); $this->header->addJS('theme_template.js'); $this->loadData(); $this->loadForm(); $this->validateForm(); $this->parse(); $this->display(); }
/** * Execute the action * * @return void */ public function execute() { // call parent, this will probably add some general CSS/JS or other required files parent::execute(); // gets all needed parameters $this->getAnalyticsParameters(); // parse $this->parse(); // display the page $this->display(); }
/** * Execute the action */ public function execute() { $this->id = $this->getParameter('id', 'int'); // does the item exist if (BackendMailmotorModel::existsMailing($this->id)) { parent::execute(); $this->getData(); $this->parse(); $this->display(BACKEND_MODULE_PATH . '/layout/templates/edit_mailing_iframe.tpl'); } else { $this->redirect(BackendModel::createURLForAction('index') . '&error=non-existing'); } }
/** * Execute the action * * @return void */ public function execute() { // call parent, this will probably add some general CSS/JS or other required files parent::execute(); // load form $this->loadForm(); // validates the form $this->validateForm(); // parse $this->parse(); // display the page $this->display(); }
/** * Execute the action * * @return void */ public function execute() { // call parent, this will probably add some general CSS/JS or other required files parent::execute(); $this->getData(); $this->loadAccountForm(); $this->loadClientForm(); $this->loadGeneralForm(); $this->validateAccountForm(); $this->validateClientForm(); $this->validateGeneralForm(); $this->parse(); $this->display(); }
/** * Execute the action */ public function execute() { $this->id = $this->getParameter('id', 'int'); // does the item exist if ($this->id !== null && BackendFormBuilderModel::exists($this->id)) { parent::execute(); $this->getData(); $this->loadForm(); $this->validateForm(); $this->parse(); $this->display(); } else { $this->redirect(BackendModel::createURLForAction('index') . '&error=non-existing'); } }
/** * Execute the action */ public function execute() { $this->id = $this->getParameter('id', 'int'); // does the user exists if ($this->id !== null && BackendUsersModel::exists($this->id)) { parent::execute(); $this->record = (array) BackendUsersModel::get($this->id); $this->loadForm(); $this->validateForm(); $this->parse(); $this->display(); } else { $this->redirect(BackendModel::createURLForAction('index') . '&error=non-existing'); } }
/** * Execute the action * * @return void */ public function execute() { // call parent, this will probably add some general CSS/JS or other required files parent::execute(); // load record $this->loadData(); // load the form $this->loadForm(); // load the datagrid $this->loadDataGrid(); // parse the datagrid $this->parse(); // display the page $this->display(); }
/** * Execute the action */ public function execute() { $this->email = $this->getParameter('email'); // does the item exist if (BackendMailmotorModel::existsAddress($this->email)) { parent::execute(); $this->getData(); $this->loadForm(); $this->loadCustomFields(); $this->validateForm(); $this->parse(); $this->display(); } else { $this->redirect(BackendModel::createURLForAction('index') . '&error=non-existing'); } }
/** * Execute the action */ public function execute() { // get parameters $this->id = $this->getParameter('id', 'int'); // does the item exist if (BackendMailmotorModel::existsCampaign($this->id)) { parent::execute(); $this->getData(); $this->loadForm(); $this->validateForm(); $this->parse(); $this->display(); } else { $this->redirect(BackendModel::createURLForAction('index') . '&error=non-existing'); } }
/** * Execute the action */ public function execute() { $this->id = $this->getParameter('id', 'int'); // does the item exists if ($this->id !== null && BackendLocaleModel::exists($this->id) && BackendAuthentication::getUser()->isGod()) { parent::execute(); $this->setFilter(); $this->getData(); $this->loadForm(); $this->validateForm(); $this->parse(); $this->display(); } else { $this->redirect(BackendModel::createURLForAction('index') . '&error=non-existing'); } }
/** * Execute the action * * @return void */ public function execute() { // call parent, this will probably add some general CSS/JS or other required files parent::execute(); // store the passed group ID $this->groupId = SpoonFilter::getGetValue('group_id', null, 0, 'int'); // download the example file $this->downloadExampleFile(); // load the form $this->loadForm(); // validate the form $this->validateForm(); // parse $this->parse(); // display the page $this->display(); }
/** * Execute the action */ public function execute() { $this->id = $this->getParameter('id', 'int'); // does the item exists if ($this->id !== null && BackendLocationModel::exists($this->id)) { parent::execute(); // add js $this->header->addJS('http://maps.google.com/maps/api/js?sensor=false', null, null, true, false); $this->getData(); $this->loadForm(); $this->validateForm(); $this->parse(); $this->display(); } else { $this->redirect(BackendModel::createURLForAction('index') . '&error=non-existing'); } }
/** * Execute the action * * @return void */ public function execute() { // get parameters $this->id = $this->getParameter('id', 'int'); // does the item exist if (BackendMailmotorModel::existsMailing($this->id)) { // call parent, this will probably add some general CSS/JS or other required files parent::execute(); // get all data for the item we want to edit $this->getData(); // parse $this->parse(); // display the page $this->display(BACKEND_MODULE_PATH . '/layout/templates/edit_mailing_iframe.tpl'); } else { $this->redirect(BackendModel::createURLForAction('index') . '&error=non-existing'); } }
/** * Execute the action * * @return void */ public function execute() { // call parent, this will probably edit some general CSS/JS or other required files parent::execute(); // load record $this->loadData(); // add js $this->header->addJS('jstree/jquery.tree.js'); $this->header->addJS('jstree/lib/jquery.cookie.js'); $this->header->addJS('jstree/plugins/jquery.tree.cookie.js'); // add css $this->header->addCSS('/backend/modules/pages/js/jstree/themes/fork/style.css', null, true); // get the templates $this->templates = BackendPagesModel::getTemplates(); // set the default template as checked $this->templates[$this->record['template_id']]['checked'] = true; // homepage? if ($this->id == 1) { // loop and set disabled state foreach ($this->templates as &$row) { $row['disabled'] = $row['has_block']; } } // get the extras $this->extras = BackendPagesModel::getExtras(); // get maximum number of blocks $maxNumBlocks = BackendModel::getModuleSetting($this->getModule(), 'template_max_blocks', 5); // build blocks array for ($i = 0; $i < $maxNumBlocks; $i++) { $this->blocks[$i] = array('index' => $i, 'name' => 'name ' . $i); } // load the form $this->loadForm(); // load drafts $this->loadDrafts(); // load the datagrid with the versions $this->loadRevisions(); // validate the form $this->validateForm(); // parse $this->parse(); // display the page $this->display(); }
/** * Execute the action * * @return void */ public function execute() { // get parameters $this->id = $this->getParameter('id', 'int'); // does the item exist if (BackendMailmotorModel::existsGroup($this->id)) { // call parent, this will probably add some general CSS/JS or other required files parent::execute(); // get all data for the item we want to edit $this->getData(); // load the form $this->loadForm(); // validate the form $this->validateForm(); // parse $this->parse(); // display the page $this->display(); } else { $this->redirect(BackendModel::createURLForAction('groups') . '&error=non-existing'); } }
/** * Execute the action */ public function execute() { // get parameters $this->id = $this->getParameter('id', 'int'); // does the item exists if ($this->id !== null && BackendBlogModel::exists($this->id)) { parent::execute(); // set category id $this->categoryId = SpoonFilter::getGetValue('category', null, null, 'int'); if ($this->categoryId == 0) { $this->categoryId = null; } $this->getData(); $this->loadDrafts(); $this->loadRevisions(); $this->loadForm(); $this->validateForm(); $this->parse(); $this->display(); } else { $this->redirect(BackendModel::createURLForAction('index') . '&error=non-existing'); } }
/** * Execute the action * * @return void */ public function execute() { // get parameters $this->id = $this->getParameter('id', 'int'); // does the item exists if ($this->id !== null && BackendLocaleModel::exists($this->id) && BackendAuthentication::getUser()->isGod()) { // call parent, this will probably add some general CSS/JS or other required files parent::execute(); // filter options $this->setFilter(); // get all data for the item we want to edit $this->getData(); // load the form $this->loadForm(); // validate the form $this->validateForm(); // parse $this->parse(); // display the page $this->display(); } else { $this->redirect(BackendModel::createURLForAction('index') . '&error=non-existing'); } }
/** * Execute the action * * @return void */ public function execute() { // get parameters $this->id = $this->getParameter('id', 'int'); // does the item exist if ($this->id !== null && BackendContentBlocksModel::exists($this->id)) { // call parent, this will probably add some general CSS/JS or other required files parent::execute(); // get all data for the item we want to edit $this->getData(); // load the datagrid with revisions $this->loadRevisions(); // load the form $this->loadForm(); // validate the form $this->validateForm(); // parse the datagrid $this->parse(); // display the page $this->display(); } else { $this->redirect(BackendModel::createURLForAction('index') . '&error=non-existing'); } }