public function actionLogs() { $this->activeMenu = self::MENU_SUBS_LOGS; $this->hasPrivilege(Acl::ACTION_VIEW); $this->pageTitle = Lang::t('SUBS_LOGS'); $searchModel = new Subs(); $subs_model_class_name = $searchModel->getClassName(); $this->render('logs', array('model' => $searchModel)); }
?> </a> </div> </div> </div> </div> </div> <?php $this->endWidget(); ?> <div class="col-md-12"> <?php if (Yii::app()->request->isPostRequest) { $searchModel = new Subs(); $subs_model_class_name = $searchModel->getClassName(); $client = $_POST[$subs_model_class_name]['msisdn']; $cond = "msisdn = '{$client}'"; $searchModel = Subs::model()->searchModel(array(), 100, 'sync_date', $cond); if (!empty($searchModel)) { $service_id = $searchModel->serviceid; $search = " dest_msisdn = '{$client}' "; $textSmses = Incoming::model()->searchModel(array(), $this->settings[Constants::KEY_PAGINATION], 'timestamp', $search); $terminations = Terminations::model()->searchModel(array(), $this->settings[Constants::KEY_PAGINATION], 'timestamp', $search); $this->renderPartial('repos', array('searchModel' => $searchModel, 'textSmses' => $textSmses, 'terminations' => $terminations)); } } ?>