Esempio n. 1
0
 function __construct()
 {
     parent::__construct();
     // Менеджеры.
     $this->mVK = M_VK::Instance();
     $this->token = $this->mVK->OAuth(LOGIN, PASSWORD);
 }
Esempio n. 2
0
 protected function OnOutput()
 {
     // Подключаем вложенный шаблон
     $vars = array('data' => $this->data);
     $this->content = $this->Template($this->tpl, $vars);
     parent::OnOutput();
 }
Esempio n. 3
0
 protected function OnOutput()
 {
     $mUsers = M_Users::Instance();
     $mType = M_Type::Instance();
     $mDocument = M_Document::Instance();
     $tpl = 'tpl_edittype.php';
     $typeall = $mType->Alltype();
     //все типы вообще
     $vars = array('canUseSecretFunctions' => $mUsers->Can('USE_SECRET_FUNCTIONS'), 'docid' => 1, 'typeall' => $typeall, 'result' => $this->id);
     // Менеджеры.
     // Генерация содержимого страницы Welcome.
     $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);
     //собираем и выводим данные для правого меню
     $vars2 = array('var' => array('пользователи' => 'index.php?c=listuser', 'Редактировать Теги' => 'index.php?c=editteg'));
     $this->rightmenu = $this->View('tpl_rightmenu.php', $vars2);
     // C_Base.
     parent::OnOutput();
 }
Esempio n. 4
0
 protected function OnOutput()
 {
     // Генерация содержимого формы входа.
     $vars = array('alert' => $this->alert);
     $this->content = $this->View('tpl_restore.php', $vars);
     // C_Base.
     parent::OnOutput();
 }
Esempio n. 5
0
 protected function OnOutput()
 {
     // Генерация содержимого формы входа.
     $vars = array('login' => $this->login);
     $this->content = $this->View('tpl_login.php', $vars);
     // C_Base.
     parent::OnOutput();
 }
Esempio n. 6
0
 function __construct()
 {
     parent::__construct();
     $this->needLogin = true;
     $this->mRasp = M_Rasp::Instance();
     $this->mUsers = M_Users::Instance();
     $this->mComm = M_Comment::Instance();
 }
Esempio n. 7
0
 protected function OnOutput()
 {
     // Генерация содержимого страницы
     $vars = array('alert' => $this->alert, 'user' => $this->user, 'grup' => $this->mRasp->all_grup(), 'lecturer' => $this->mRasp->all_lecturer(), 'linkAuthVk' => "https://oauth.vk.com/authorize?client_id=" . CLIENT_ID . "&scope=" . SCOPE . "&redirect_uri=" . PATH . "index.php?c=setting" . "&response_type=code&v=5.0");
     $this->content = $this->View(THEME . '/tpl_setting.php', $vars);
     // C_Base.
     parent::OnOutput();
 }
Esempio n. 8
0
 function __construct()
 {
     parent::__construct();
     // Менеджеры.
     $this->mSender = M_Sender::Instance();
     $this->mSms = M_Sms::Instance();
     $this->mRasp = M_Rasp::Instance();
     $this->mVK = M_VK::Instance();
 }
Esempio n. 9
0
 protected function OnOutput()
 {
     if ($this->txt != '') {
         $vars = array('Senname' => findBySenname($this->txt), 'InNum' => findByInNum($this->txt), 'OutNum' => findByOutNum($this->txt), 'Date' => findByDate($this->txt), 'ContactName' => findByContactName($this->txt), 'CNumber' => findByContactNumber($this->txt), 'txt' => $this->txt);
     } else {
         $vars = array();
     }
     $this->content = $this->Template('application/views/search.php', $vars);
     parent::OnOutput();
 }
Esempio n. 10
0
 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();
 }
Esempio n. 11
0
 protected function OnOutput()
 {
     if (isClosed($this->id) && $_SESSION['role'] == '2') {
         $vars = array('claim' => $this->claiminfo, 'comment' => getComments($this->id));
         $this->content = $this->Template('application/views/claims/close.php', $vars);
     } else {
         $com = getComments($this->id);
         $vars = array('claim' => $this->claiminfo, 'comment' => $com);
         $this->content = $this->Template('application/views/claims/editclaim.php', $vars);
     }
     parent::OnOutput();
 }
Esempio n. 12
0
 protected function On_Output()
 {
     if (isset($_GET['id_borrow'])) {
         $var = array('handbag' => $this->handbag);
         $this->borrow_content = $this->Template('view/V_Handbag.php', $var);
     } else {
         $var = array('handbags' => $this->handbags, 'navigation_page' => $this->navigation_page, 'current_page' => $this->current_page);
         $this->borrow_content = $this->Template('view/V_Handbags.php', $var);
     }
     $var = array('borrow_content' => $this->borrow_content, 'filter_colors' => $this->filter_colors, 'filter_uses' => $this->filter_uses, 'filter_designers' => $this->filter_designers, 'cost_from' => $this->cost_from, 'cost_to' => $this->cost_to, 'colors' => $this->colors, 'designers' => $this->designers, 'uses' => $this->uses, 'current_page' => $this->current_page, 'navigation_page' => $this->navigation_page, 'untouched' => $this->untouched);
     $this->content = $this->Template('view/V_Borrow.php', $var);
     parent::On_Output();
 }
Esempio n. 13
0
 protected function OnInput()
 {
     // C_Base.
     parent::OnInput();
     // Менеджеры.
     $mUsers = M_Users::Instance();
     $mSv = M_Sv::Instance();
     //проверяем поступившие даные AJAX запроса
     if ($_REQUEST['teg'] == null or $_REQUEST['teg'] == 'undefined') {
         $this->result = false;
     } else {
         $this->teg = $_REQUEST['teg'];
     }
 }
Esempio n. 14
0
 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();
 }
Esempio n. 15
0
 protected function On_Output()
 {
     $var = array();
     $this->content = $this->Template('view/V_Contracts.php', $var);
     parent::On_Output();
 }
Esempio n. 16
0
 protected function OnOutput()
 {
     $vars = array('claim' => $this->claims);
     $this->content = $this->Template('application/views/claims/input.php', $vars);
     parent::OnOutput();
 }
Esempio n. 17
0
 protected function On_Output()
 {
     $var = array('content' => $this->content, 'title' => $this->site_title);
     $page = $this->Template('view/V_Template.php', $var);
     parent::On_Output();
 }
Esempio n. 18
0
 protected function OnOutput()
 {
     $vars = array('contact' => $this->contact);
     $this->content = $this->Template('application/views/contacts/editcontact.php', $vars);
     parent::OnOutput();
 }
Esempio n. 19
0
 protected function OnOutput()
 {
     $vars = array('types' => $this->types, 'departments' => $this->departments);
     $this->content = $this->Template('application/views/claims/addclaim.php', $vars);
     parent::OnOutput();
 }
Esempio n. 20
0
 protected function OnOutput()
 {
     $vars = array('medicine' => $this->medicine_name, 'incomings' => $this->incomings);
     $this->content = $this->Template('application/views/medicines/incoming.php', $vars);
     parent::OnOutput();
 }
Esempio n. 21
0
 protected function OnOutput()
 {
     $vars = array('costs' => $this->cost_name, 'incomings' => $this->incomings);
     $this->content = $this->Template('application/views/costs/incomings.php', $vars);
     parent::OnOutput();
 }
Esempio n. 22
0
 /**
  * Передача всех данных Видеопроектору, для отображения.
  * Отображение.
  */
 protected function OnOutput()
 {
     $archive = array('error' => nl2br($this->_error), 'article' => $this->_article);
     $this->_content = $this->_viewer->render("v/v_new.tpl", $archive);
     parent::OnOutput();
 }
Esempio n. 23
0
 protected function OnOutput()
 {
     $vars = array();
     $this->content = $this->Template('v/v_index.php', $vars);
     parent::OnOutput();
 }
Esempio n. 24
0
 protected function OnOutput()
 {
     $vars = array('cost' => $this->cost, 'month' => $this->month, 'year' => $this->year, 'incomings' => $this->incomings, 'expences' => $this->expences);
     $this->content = $this->Template('application/views/costs/filter.php', $vars);
     parent::OnOutput();
 }
Esempio n. 25
0
 public function before()
 {
     parent::before();
 }
Esempio n. 26
0
 protected function before()
 {
     //$this->needLogin = true;
     parent::before();
 }
Esempio n. 27
0
 protected function OnOutput()
 {
     $mUsers = M_Users::Instance();
     $mDocument = M_Document::Instance();
     $tpl = 'tpl_edituser.php';
     $userinfo = $mUsers->getuserinfo($this->id);
     //все пользователи вообще
     $vars = array('canUseSecretFunctions' => $mUsers->Can('USE_SECRET_FUNCTIONS'), 'id' => $this->id, 'userinfo' => $userinfo, 'result' => $this->id);
     // Менеджеры.
     // Генерация содержимого страницы Welcome.
     $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::OnOutput();
 }
Esempio n. 28
0
 protected function OnOutput()
 {
     $vars = array('result' => $this->result);
     $this->content = $this->Template('v/v_search.php', $vars);
     parent::OnOutput();
 }
Esempio n. 29
0
 protected function OnOutput()
 {
     $vars = array('contacts' => $this->allcontacts);
     $this->content = $this->Template('application/views/files/addfile.php', $vars);
     parent::OnOutput();
 }
Esempio n. 30
0
 protected function OnOutput()
 {
     $vars = array('book' => $this->book);
     $this->content = $this->Template('v/v_edit_book.php', $vars);
     parent::OnOutput();
 }