예제 #1
0
 public function confirmTable()
 {
     $where['status'] = 4;
     if (!A) {
         $where['operator'] = Registry::get('user')->fio;
     }
     $where = array_merge($where, $this->filter['where']);
     $numbers = Numbers::getAll("*", $where, $this->filter);
     if ($numbers) {
         return $numbers;
     } else {
         $this->error .= 'Договоров нет!';
         return false;
     }
 }
예제 #2
0
 public function actionConfirm()
 {
     $this->view->data['header'] = 'Договор';
     $this->view->data['kyrjers'] = Users::getAll('fio', array('status' => 'kyrjer'));
     $this->view->data['districts'] = Numbers::getAll('DISTINCT `district`');
     $this->view->content = array('confirm');
     if ($this->view->data['numbers'] = $this->model->confirmTable()) {
         $this->view->notice['notice'] .= 'Номера извлечены. ';
     } else {
         $this->view->notice['error'] .= $this->model->error;
     }
     if (!empty($_GET['unload'])) {
         $this->view->htmlResponse('unload', 'main');
     } else {
         $this->view->generate();
     }
 }