コード例 #1
0
ファイル: notice.php プロジェクト: Alexander711/naav1
 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();
     }
 }
コード例 #2
0
ファイル: news.php プロジェクト: Alexander711/naav1
 public function before()
 {
     parent::before();
     $this->template->bc['cabinet/news'] = 'Новости моих автосервисов';
 }
コード例 #3
0
ファイル: feedback.php プロジェクト: Alexander711/naav1
 function before()
 {
     parent::before();
     $this->template->bc['cabinet/feedback'] = 'Обратная связь';
 }
コード例 #4
0
ファイル: profile.php プロジェクト: Alexander711/naav1
 function before()
 {
     parent::before();
     $this->template->bc['cabinet/profile'] = 'Настройки профиля';
 }
コード例 #5
0
ファイル: stock.php プロジェクト: Alexander711/naav1
 function before()
 {
     parent::before();
     $this->template->bc['cabinet/stock'] = 'Акции';
 }
コード例 #6
0
ファイル: payment.php プロジェクト: Alexander711/naav1
 function before()
 {
     $this->allow_expired = true;
     parent::before();
     $this->template->bc['cabinet/payment'] = 'Пополнение баланса';
 }
コード例 #7
0
ファイル: qa.php プロジェクト: Alexander711/naav1
 public function before()
 {
     parent::before();
     $this->template->bc['cabinet/qa'] = __('cb_questions');
 }
コード例 #8
0
ファイル: vacancy.php プロジェクト: Alexander711/naav1
 function before()
 {
     parent::before();
     $this->template->bc['cabinet/vacancy'] = 'Вакансии';
 }
コード例 #9
0
ファイル: gallery.php プロジェクト: Alexander711/naav1
 public function before()
 {
     parent::before();
     $this->template->title = 'Галерея';
     $this->template->bc['#'] = $this->template->title;
 }