delete </a> </td> </tr> </tbody> </table> <hr> <button ng-hide="true" ng-disabled="globalUpdateText === 'Updating data...' || globalUpdateText === 'Loading data...' " ng-cloak type="button" class="btn btn-default" ng-click="indexCtrl.globalUpdate()"> <i class="fa fa-spinner fa-spin" ng-show="globalUpdateText === 'Updating data...' || globalUpdateText === 'Loading data...' "></i> {{globalUpdateText}} {{updateDataReport}} </button> </div> </div> <br> <?php $this->beginWidget('zii.widgets.CPortlet', array('title' => 'Recent Logins')); $this->widget('zii.widgets.grid.CGridView', array('dataProvider' => UserRequest::model()->getRecentLogins(), 'template' => "{summary}\n{items}\n{pager}", 'columns' => array(array('name' => 'ip_address', 'header' => 'IP Address', 'type' => 'raw', 'value' => '$data->ip_address'), array('header' => 'Location', 'type' => 'raw', 'value' => '$data->getFlagImageLabel()'), array('name' => 'date_created', 'header' => 'Last access', 'type' => 'raw', 'value' => 'date("F j, Y, g:i a",strtotime("$data->date_created"))')))); $this->endWidget(); ?> <div class="clearfix"></div> <hr> <br> <br> <br> <br> <br>
/** * Returns the data model based on the primary key given in the GET variable. * If the data model is not found, an HTTP exception will be raised. * @param integer $id the ID of the model to be loaded * @return UserRequest the loaded model * @throws CHttpException */ public function loadModel($id) { $model = UserRequest::model()->findByPk($id); if ($model === null) { throw new CHttpException(404, 'The requested page does not exist.'); } return $model; }