/** * handle new */ private function handleNewGet() { $template = new TemplateEngine($this->getPath() . "templates/" . $this->templateFile); $request = Request::getInstance(); $view = ViewManager::getInstance(); $view->setType(self::VIEW_NEW); $fields = $this->getFields(SqlParser::MOD_INSERT); $template->setVariable($fields); $template->clearVariable('ip'); $this->director->theme->handleAdminLinks($template); $this->template[$this->director->theme->getConfig()->main_tag] = $template; }
/** * handle new */ private function handleNewGet() { $template = new TemplateEngine($this->getPath() . "templates/" . $this->templateFile); $request = Request::getInstance(); $view = ViewManager::getInstance(); $view->setType(NewsLetter::VIEW_GROUP_NEW); $tree_id = intval($request->getValue('tree_id')); $tag = $request->getValue('tag'); $key = array('tree_id' => $tree_id, 'tag' => $tag); $fields = $this->getFields(SqlParser::MOD_INSERT); $fields['tree_id'] = $tree_id; $fields['tag'] = $tag; $template->setVariable($fields); $template->clearVariable('id'); // add breadcrumb item $this->handleBreadcrumb($template); $this->template[$this->director->theme->getConfig()->main_tag] = $template; }
/** * handle new */ private function handleNewGet() { $template = new TemplateEngine($this->getPath() . "templates/" . $this->templateFile); $request = Request::getInstance(); $view = ViewManager::getInstance(); $view->setType(NewsLetter::VIEW_USER_NEW); $tree_id = intval($request->getValue('tree_id')); $tag = $request->getValue('tag'); $key = array('tree_id' => $tree_id, 'tag' => $tag); $fields = $this->getFields(SqlParser::MOD_INSERT); $fields['tree_id'] = $tree_id; $fields['tag'] = $tag; $template->setVariable($fields); $template->clearVariable('id'); $template->setVariable('cbo_gender', Utils::getHtmlCombo($this->getGenderTypeList(), $fields['gender'])); // add breadcrumb item $grp_used = $request->getValue('grp_used'); $this->handleEdit($template, $grp_used); $this->template[$this->director->theme->getConfig()->main_tag] = $template; }