コード例 #1
0
 /**
  * Индексная страница
  * @param $args array mixed
  * @return void
  */
 function index($args)
 {
     //echo('<pre>');
     //die(print_r(User::getUserTargets()));
     //$this->model->staticTargetUpdate(1);
     $this->tpl->assign('user_list_targets', $this->model->getLastList());
     $this->tpl->assign('closed_targets', $this->model->countClose());
     $this->tpl->assign('pop_list_targets', $this->model->getPopList());
     $this->tpl->assign('category', get_tree_select());
     $this->tpl->assign('accounts', Core::getInstance()->user->getUserAccounts());
     $this->tpl->assign('template', 'default');
 }
コード例 #2
0
 /**
  * Индексная страница
  *
  * @param $args array mixed
  * @return void
  */
 function index($args = array())
 {
     $this->tpl->assign('category', get_tree_select());
     /** @deprecated */
     $this->tpl->assign('accounts', $this->user->getUserAccounts());
     /** @deprecated */
     $this->tpl->assign('dateFrom', date('d.m.Y', time() - 60 * 60 * 24 * 7));
     // За неделю от сегодня
     $this->tpl->assign('dateTo', date('d.m.Y'));
     // До сегодня
     $this->tpl->assign('name_page', 'operations/operation');
 }
コード例 #3
0
 /**
  * Индексная страница (список категорий)
  * @param $args array mixed
  * @return void
  */
 function index($args)
 {
     // Формируем данные для PDA
     $types = array_flip(Category::getTypesArray());
     if (array_key_exists(0, $args) && array_key_exists($args[0], $types)) {
         $categorysType = $types[$args[0]];
     } else {
         $categorysType = Category::TYPE_WASTE;
     }
     $this->tpl->assign('categorysType', $categorysType);
     $this->tpl->assign("sys_categories", $this->model->system_categories);
     // Операция
     $this->tpl->assign('accounts', Core::getInstance()->user->getUserAccounts());
     $this->tpl->assign('category', get_tree_select());
     //        $targets = new Targets_Model();
     //        $this->tpl->assign('targetList', $targets->getLastList(0, 100));
 }