Example #1
0
 public function after()
 {
     parent::after();
     if ($this->template->notice_count['new'] > 0) {
         $services = array();
         foreach ($this->user->services->find_all() as $s) {
             $services[] = $s->id;
         }
         if (!empty($services)) {
             DB::update('notices_services')->set(array('read' => 'y'))->where('service_id', 'in', $services)->execute();
         }
         DB::update('notices_users')->set(array('read' => 'y'))->where('user_id', '=', $this->user->id)->execute();
     }
 }
Example #2
0
 public function before()
 {
     parent::before();
     $this->template->bc['cabinet/news'] = 'Новости моих автосервисов';
 }
Example #3
0
 function before()
 {
     parent::before();
     $this->template->bc['cabinet/feedback'] = 'Обратная связь';
 }
Example #4
0
 function before()
 {
     parent::before();
     $this->template->bc['cabinet/profile'] = 'Настройки профиля';
 }
Example #5
0
 function before()
 {
     parent::before();
     $this->template->bc['cabinet/stock'] = 'Акции';
 }
Example #6
0
 function before()
 {
     $this->allow_expired = true;
     parent::before();
     $this->template->bc['cabinet/payment'] = 'Пополнение баланса';
 }
Example #7
0
 public function before()
 {
     parent::before();
     $this->template->bc['cabinet/qa'] = __('cb_questions');
 }
Example #8
0
 function before()
 {
     parent::before();
     $this->template->bc['cabinet/vacancy'] = 'Вакансии';
 }
Example #9
0
 public function before()
 {
     parent::before();
     $this->template->title = 'Галерея';
     $this->template->bc['#'] = $this->template->title;
 }