コード例 #1
0
ファイル: PromotionController.php プロジェクト: zwq/unpei
 public function actionAddpromotion()
 {
     $this->pageTitle = Yii::app()->name . '-' . "添加促销商品";
     $_GET['IsSale'] = 1;
     $params['IsPro'] = 2;
     $model = DealergoodsService::papgetgoods($params);
     $progoods = $this->procount();
     $noprogoods = $this->noprocount();
     $this->render('addpromotion', array('data' => $model['model']["dataProvider"], 'progoods' => $progoods, 'noprogoods' => $noprogoods, 'cartext' => $model['car']));
 }
コード例 #2
0
ファイル: DealergoodsController.php プロジェクト: zwq/unpei
 public function actionDrop()
 {
     $this->pageTitle = Yii::app()->name . '-' . "下架商品";
     $_GET['IsSale'] = 0;
     $model = DealergoodsService::papgetgoods();
     $count = $this->Dropprocount();
     $organID = Yii::app()->user->getOrganID();
     $sqlmid = "select distinct(MakeID) from {{dealer_vehicles}} where OrganID=" . $organID;
     $makeID = Yii::app()->jpdb->createCommand($sqlmid)->queryAll();
     $this->render('dropgoods', array('data' => $model['model']["dataProvider"], 'count' => $count, 'cartext' => $model['car'], 'make' => $makeID));
 }