Exemplo n.º 1
0
 public function actionAdmin()
 {
     $this->getMaxSorter();
     $this->getMinSorter();
     Yii::app()->user->setFlash('warning', Yii::t('module_lang', 'moduleAdminHelp', array('{link}' => CHtml::link(tc('Currency'), array('/currency/backend/main/admin')))));
     parent::actionAdmin();
 }
Exemplo n.º 2
0
 public function actionAdmin()
 {
     $sql = 'SELECT reference_category_id, MAX(sorter) as sorter FROM {{apartment_reference_values}} GROUP BY reference_category_id';
     $sorters = Yii::app()->db->createCommand($sql)->queryAll();
     foreach ($sorters as $sorter) {
         $this->maxSorters[$sorter['reference_category_id']] = $sorter['sorter'];
     }
     if (isset($_GET['ReferenceValues']['category_filter'])) {
         $this->params['currentCategory'] = intval($_GET['ReferenceValues']['category_filter']);
     } else {
         $this->params['currentCategory'] = 0;
     }
     parent::actionAdmin();
 }
Exemplo n.º 3
0
 public function actionAdmin()
 {
     $this->getMaxSorter();
     $this->getMinSorter();
     parent::actionAdmin();
 }
Exemplo n.º 4
0
 public function actionAdmin()
 {
     parent::actionAdmin();
 }
Exemplo n.º 5
0
 public function actionAdmin()
 {
     $this->scenario = 'create';
     $this->params['position'] = Yii::app()->request->getParam('position', 1);
     parent::actionAdmin();
 }
Exemplo n.º 6
0
 public function actionAdmin()
 {
     $this->scenario = 'create';
     parent::actionAdmin();
 }
Exemplo n.º 7
0
 public function actionAdmin()
 {
     $sql = 'UPDATE {{apartment_complain}} SET active = 1';
     Yii::app()->db->createCommand($sql)->execute();
     parent::actionAdmin();
 }
Exemplo n.º 8
0
 public function actionAdmin()
 {
     Yii::app()->user->setFlash('warning', Yii::t('module_currency', 'moduleAdminHelp', array('{link}' => CHtml::link(tc('Languages'), array('/lang/backend/main/admin')))));
     parent::actionAdmin();
 }