public function actionItemsAdmin()
 {
     $model = new PurchaseOrder('search');
     //$this->layout=false;
     // uncomment the following code to enable ajax-based validation
     /*
     if(isset($_POST['ajax']) && $_POST['ajax']==='purchase-order-itemsAdmin-form')
     {
         echo CActiveForm::validate($model);
         Yii::app()->end();
     }
     */
     if (isset($_POST['PurchaseOrder'])) {
         $model->attributes = $_POST['PurchaseOrder'];
         if ($model->validate()) {
             // form inputs are valid, do something here
             return;
         }
     }
     $this->render('itemsAdmin', array('model' => $model));
 }