/**
  * Manages all models.
  */
 public function actionAdmin()
 {
     $model = new UserLevel('search');
     $model->unsetAttributes();
     // clear any default values
     if (isset($_GET['UserLevel'])) {
         $model->attributes = $_GET['UserLevel'];
     }
     $this->render('admin', array('model' => $model));
 }
 /**
  * Manages all models.
  */
 public function actionManage()
 {
     $model = new UserLevel('search');
     $model->unsetAttributes();
     // clear any default values
     if (isset($_GET['UserLevel'])) {
         $model->attributes = $_GET['UserLevel'];
     }
     $columnTemp = array();
     if (isset($_GET['GridColumn'])) {
         foreach ($_GET['GridColumn'] as $key => $val) {
             if ($_GET['GridColumn'][$key] == 1) {
                 $columnTemp[] = $key;
             }
         }
     }
     $columns = $model->getGridColumn($columnTemp);
     $this->pageTitle = 'User Levels Manage';
     $this->pageDescription = '';
     $this->pageMeta = '';
     $this->render('admin_manage', array('model' => $model, 'columns' => $columns));
 }