/** * Parse the form */ protected function parse() { parent::parse(); // assign id, term $this->tpl->assign('id', $this->record['id']); $this->tpl->assign('term', $this->record['term']); }
/** * Parse the form */ protected function parse() { parent::parse(); $this->tpl->assign('product', $this->product); $this->tpl->assign('id', $this->id); $this->tpl->assign('item', $this->image); }
/** * Parse the form */ protected function parse() { parent::parse(); $this->tpl->assign('item', $this->record); // delete allowed? $this->tpl->assign('showBlogDeleteCategory', BackendBlogModel::deleteCategoryAllowed($this->id) && BackendModel::createURLForAction('DeleteCategory')); }
/** * Parse the form */ protected function parse() { parent::parse(); // parse additional variables $this->tpl->assign('commentsRSSURL', SITE_URL . BackendModel::getURLForBlock($this->URL->getModule(), 'comments_rss')); $this->tpl->assign('isGod', $this->isGod); }
/** * Parse the form */ protected function parse() { parent::parse(); // assign the data $this->tpl->assign('item', $this->record); $this->tpl->assign('showFaqDeleteCategory', BackendFaqModel::deleteCategoryAllowed($this->id) && BackendAuthentication::isAllowedAction('DeleteCategory')); }
/** * Parse the form */ protected function parse() { parent::parse(); // assign the data $this->tpl->assign('item', $this->record); $this->tpl->assign('fieldLanguages', $this->fieldLanguages); }
/** * Parse the form * * @return void */ protected function parse() { parent::parse(); $this->tpl->assign('id', $this->record['id']); $this->tpl->assign('title', $this->record['title']); // delete allowed? $this->tpl->assign('showSlideshowDeleteCategory', BackendSlideshowModel::deleteCategoryAllowed($this->id)); }
/** * Parse the form */ protected function parse() { parent::parse(); // parse form $this->frm->parse($this->tpl); // assign iteration $this->tpl->assign(array('modules' => $this->modules)); }
/** * Parse the form */ protected function parse() { parent::parse(); // assign the active record and additional variables $this->tpl->assign('mailing', $this->record); $this->tpl->assign('template', $this->template); // parse template content $this->parseTemplateContent(); }
/** * Parse the form */ protected function parse() { parent::parse(); // assign the data $this->tpl->assign('item', $this->record); // is brand allowed to be deleted? if (BackendCatalogModel::isBrandAllowedToBeDeleted($this->id)) { $this->tpl->assign('showDelete', true); } }
/** * Parse the form * * @return void */ protected function parse() { // call parent parent::parse(); // assign the category $this->tpl->assign('category', $this->record); // can the category be deleted? if (BackendGalleriaModel::deleteCategoryAllowed($this->id)) { $this->tpl->assign('showDelete', true); } }
/** * Parse the page */ protected function parse() { parent::parse(); $this->tpl->assign('item', $this->record); $this->tpl->assign('iframe', BackendModel::createURLForAction('preview') . "&id=" . $this->id); // get url $url = BackendModel::getURLForBlock($this->URL->getModule(), 'detail'); $url404 = BackendModel::getURL(404); if ($url404 != $url) { $this->tpl->assign('detailURL', SITE_URL . $url); } }
/** * Parse the page */ protected function parse() { parent::parse(); $this->header->addJS('edit.js'); $this->tpl->assign('item', $this->record); // get url $url = BackendModel::getURLForBlock($this->URL->getModule(), 'Group'); $url404 = BackendModel::getURL(404); if ($url404 != $url) { $this->tpl->assign('detailURL', SITE_URL . $url); } }
/** * Parse the form */ protected function parse() { parent::parse(); // assign the data $this->tpl->assign('item', $this->record); $this->tpl->assign('showFaqDeleteCategory', BackendFaqModel::deleteCategoryAllowed($this->id) && BackendAuthentication::isAllowedAction('DeleteCategory')); $url = BackendModel::getURLForBlock($this->URL->getModule(), 'Category'); $url404 = BackendModel::getURL(404); if ($url404 != $url) { $this->tpl->assign('detailURL', SITE_URL . $url); } }
/** * Parse the form */ protected function parse() { parent::parse(); // prevent XSS $filter = \SpoonFilter::arrayMapRecursive('htmlspecialchars', $this->filter); // parse filter $this->tpl->assign($filter); $this->tpl->assign('filterQuery', $this->filterQuery); // assign id, name $this->tpl->assign('name', $this->record['name']); $this->tpl->assign('id', $this->record['id']); }
/** * Parse the page */ protected function parse() { parent::parse(); // Get url $url = Model::getURLForBlock($this->URL->getModule(), 'Detail'); $url404 = Model::getURL(404); // Parse additional variables if ($url404 != $url) { $this->tpl->assign('detailURL', SITE_URL . $url); } $this->tpl->assign('item', $this->record); }
/** * Parse the form */ protected function parse() { parent::parse(); // get url $url = BackendModel::getURLForBlock($this->URL->getModule(), 'detail'); $url404 = BackendModel::getURL(404); if ($url404 != $url) { $this->tpl->assign('detailURL', SITE_URL . $url); } // assign the active record and additional variables $this->tpl->assign('item', $this->record); $this->tpl->assign('feedback', $this->feedback); }
/** * Parse the page */ protected function parse() { parent::parse(); // add css $this->header->addCSS('/src/Backend/Modules/' . $this->getModule() . '/Layout/Css/agenda.css', null, true); // get url $url = BackendModel::getURLForBlock($this->URL->getModule(), 'detail'); $url404 = BackendModel::getURL(404); // parse additional variables if ($url404 != $url) { $this->tpl->assign('detailURL', SITE_URL . $url); } $this->record['url'] = $this->meta->getURL(); $this->tpl->assign('item', $this->record); $this->tpl->assign('mediaItems', $this->media->getMediaItems()); }
/** * Parse the form * * @return void */ protected function parse() { //--Add javascript file $this->header->addJS('Jquery.uploadify.min.js', null, false); $this->header->addJS('Edit.js', null, false); $this->header->addCSS('Uploadify.css'); // call parent parent::parse(); // assign the category $this->tpl->assign('album', $this->record); $this->tpl->assign('images', $this->images); if ($this->frmAddImage) { $this->frmAddImage->parse($this->tpl); } if ($this->frmDeleteImage) { $this->frmDeleteImage->parse($this->tpl); } //--Add data to Javascript $this->header->addJsData("Galleria", "id", $this->id); // can the category be deleted? if (BackendGalleriaModel::deleteAlbumAllowed($this->id)) { $this->tpl->assign('showDelete', true); } // get url $url = BackendModel::getURLForBlock($this->URL->getModule(), 'group'); $url404 = BackendModel::getURL(404); if ($url404 != $url) { $this->tpl->assign('detailURL', SITE_URL . $url); } }
/** * Parse the form */ protected function parse() { parent::parse(); $this->tpl->assign('dataGridUsers', $this->dataGridUsers->getNumResults() != 0 ? $this->dataGridUsers->getContent() : false); $this->tpl->assign('item', $this->record); $this->tpl->assign('groupName', $this->record['name']); // only allow deletion of empty groups $this->tpl->assign('showGroupsDelete', $this->dataGridUsers->getNumResults() == 0 && BackendAuthentication::isAllowedAction('Delete')); }
/** * Parse the content block and the revisions */ protected function parse() { parent::parse(); $this->tpl->assign('id', $this->contentBlock->getId()); $this->tpl->assign('title', $this->contentBlock->getTitle()); $this->tpl->assign('revision_id', $this->contentBlock->getRevisionId()); $this->parseRevisionsDataGrid(); }
/** * Parse the form */ protected function parse() { parent::parse(); // assign id, name $this->tpl->assign('id', $this->id); $this->tpl->assign('name', $this->record['name']); // assign usage-datagrid $this->tpl->assign('usage', (string) $this->dgUsage->getContent()); }
/** * Parse the form */ protected function parse() { $this->parseFields(); parent::parse(); $this->tpl->assign('id', $this->record['id']); $this->tpl->assign('name', $this->record['name']); // parse error messages $this->parseErrorMessages(); }
/** * Parse the form */ protected function parse() { parent::parse(); // reset avatar URL if ($this->record['settings']['avatar'] != '') { $this->record['settings']['avatar'] .= '?time=' . time(); } // only allow deletion of other users $this->tpl->assign('showUsersDelete', $this->authenticatedUser->getUserId() != $this->id && BackendAuthentication::isAllowedAction('Delete')); // assign $this->tpl->assign('record', $this->record); $this->tpl->assign('id', $this->id); // assign that we're god or the same user $this->tpl->assign('allowPasswordEdit', $this->authenticatedUser->getUserId() == $this->id || $this->authenticatedUser->isGod()); // assign that you can edit the user rights $this->tpl->assign('allowUserRights', $this->allowUserRights); // check if we need to show the password strength and parse the label $this->tpl->assign('showPasswordStrength', $this->record['settings']['password_strength'] !== 'strong'); $this->tpl->assign('passwordStrengthLabel', BL::lbl($this->record['settings']['password_strength'])); }
/** * Parse the form */ protected function parse() { parent::parse(); // assign to template $this->tpl->assign('item', $this->record); $this->tpl->assign('settings', $this->settings); $this->tpl->assign('godUser', BackendAuthentication::getUser()->isGod()); $this->settingsForm->parse($this->tpl); // assign message if address was not be geocoded if ($this->record['lat'] == null || $this->record['lng'] == null) { $this->tpl->assign('errorMessage', BL::err('AddressCouldNotBeGeocoded')); } }
/** * Parse the form */ protected function parse() { parent::parse(); // assign the active record and additional variables $this->tpl->assign('profile', $this->profile); // parse data grids $this->tpl->assign('dgGroups', $this->dgGroups->getNumResults() != 0 ? $this->dgGroups->getContent() : false); // show delete or undelete button? if ($this->profile['status'] === 'deleted') { $this->tpl->assign('deleted', true); } // show block or unblock button? if ($this->profile['status'] === 'blocked') { $this->tpl->assign('blocked', true); } }
/** * Parse the data */ protected function parse() { parent::parse(); $this->tpl->assign('godUser', BackendAuthentication::getUser()->isGod()); }
/** * Parse the page */ protected function parse() { parent::parse(); $this->tpl->assign('item', $this->record); }
/** * Parse the form */ protected function parse() { parent::parse(); // assign the active record and additional variables $this->tpl->assign('address', $this->record); // assign the group record $this->tpl->assign('group', $this->group); }
/** * Parse */ protected function parse() { parent::parse(); // set $this->record['url'] = $this->meta->getURL(); if ($this->id == 1) { $this->record['url'] = ''; } // parse some variables $this->tpl->assign('item', $this->record); $this->tpl->assign('isGod', $this->isGod); $this->tpl->assign('templates', $this->templates); $this->tpl->assign('positions', $this->positions); $this->tpl->assign('extrasData', json_encode(BackendExtensionsModel::getExtrasData())); $this->tpl->assign('extrasById', json_encode(BackendExtensionsModel::getExtras())); $this->tpl->assign('prefixURL', rtrim(BackendPagesModel::getFullURL($this->record['parent_id']), '/')); $this->tpl->assign('formErrors', (string) $this->frm->getErrors()); // init var $showDelete = true; // has children? if (BackendPagesModel::getFirstChildId($this->record['id']) !== false) { $showDelete = false; } if (!$this->record['delete_allowed']) { $showDelete = false; } // allowed? if (!BackendAuthentication::isAllowedAction('Delete', $this->getModule())) { $showDelete = false; } // show delete button $this->tpl->assign('showPagesDelete', $showDelete); // assign template $this->tpl->assignArray($this->templates[$this->record['template_id']], 'template'); // parse datagrids $this->tpl->assign('revisions', $this->dgRevisions->getNumResults() != 0 ? $this->dgRevisions->getContent() : false); $this->tpl->assign('drafts', $this->dgDrafts->getNumResults() != 0 ? $this->dgDrafts->getContent() : false); // parse the tree $this->tpl->assign('tree', BackendPagesModel::getTreeHTML()); }