protected function OnOutput() { $mUsers = M_Users::Instance(); $mTeg = M_Teg::Instance(); $tpl = '__tpl_editteg.php'; $vars = array('canUseSecretFunctions' => $mUsers->Can('USE_SECRET_FUNCTIONS'), 'result' => $this->result, 'del' => $this->del, 'doc' => $this->doc, 'teg' => $this->tegname); $this->content = $this->View($tpl, $vars); // C_Base. parent::OnReturn(); }
protected function OnOutput() { $mUsers = M_Users::Instance(); $mType = M_Type::Instance(); $mDocument = M_Document::Instance(); //$this->result; $alltype = $mType->alltype(); $tpl = '__tpl_newtype.php'; $vars = array('canUseSecretFunctions' => $mUsers->Can('USE_SECRET_FUNCTIONS'), 'result' => $this->result, 'alltype' => $alltype); $this->content = $this->View($tpl, $vars); //собираем и выводим данные для левой колонки if ($sid = $mUsers->GetSid()) { $listdoc = $mUsers->Get_idoc_user($sid); //запрашиваем последние выбранные документы для SID $sidresult = true; } $vars2 = array('var' => $listdoc, 'sidresult' => $sidresult); //тестовая строка); $this->leftcontent = $this->View('tpl_leftlistdoc.php', $vars2); // C_Base. parent::OnReturn(); }