diff --git a/frontend/controllers/PhoneCenterController.php b/frontend/controllers/PhoneCenterController.php index 77ef518..47c6573 100644 --- a/frontend/controllers/PhoneCenterController.php +++ b/frontend/controllers/PhoneCenterController.php @@ -48,7 +48,12 @@ class PhoneCenterController extends BaseController public $layout = 'blue-main'; public function actionCallRecords() { - return $this->render('call-records'); + $request = Yii::$app->request; + $company_id = $request->get('company_id',0); + + return $this->render('call-records', [ + 'company_id' => $company_id + ]); } public function actionCallRecordsJson(){ Yii::$app->response->format = Response::FORMAT_JSON; @@ -500,7 +505,11 @@ public function actionDownload(){ } public function actionUsercallIndex() { - return $this->render('usercall-index'); + $request = Yii::$app->request; + $company_id = $request->get('company_id',0); + return $this->render('usercall-index',[ + 'company_id' => $company_id + ]); } public function actionUsercallIndexJson(){ Yii::$app->response->format = Response::FORMAT_JSON; @@ -541,7 +550,7 @@ public function actionDownload(){ } $total = $query->count(); - + $query = $query->offset($offset)->limit($limit); $items = $query->all(); diff --git a/frontend/views/phone-center/call-records.php b/frontend/views/phone-center/call-records.php index d32e8ef..2a668fe 100644 --- a/frontend/views/phone-center/call-records.php +++ b/frontend/views/phone-center/call-records.php @@ -17,10 +17,13 @@ use \common\libs\MyLib;
+ +
+
diff --git a/frontend/views/phone-center/usercall-index.php b/frontend/views/phone-center/usercall-index.php index 075f2c2..9807a2b 100644 --- a/frontend/views/phone-center/usercall-index.php +++ b/frontend/views/phone-center/usercall-index.php @@ -17,10 +17,13 @@ use \common\libs\MyLib;
+ +
+