public function vvmTypeAction()
 {
     $form = new Form_Iadmin_VvmTypeSearch();
     $form_add = new Form_Iadmin_VvmTypeAdd();
     $vvm_type = new Model_VvmTypes();
     if ($this->_request->isPost()) {
         if ($form->isValid($this->_request->getPost())) {
             //App_Controller_Functions::pr($this->_request->getPost());
             $vvm_type_name = $form->getValue('vvm_type_name');
             $status = $form->getValue('status');
             if (!empty($vvm_type_name)) {
                 $vvm_type->form_values['vvmTypeName'] = $vvm_type_name;
             }
             if (!empty($status)) {
                 $vvm_type->form_values['status'] = $status;
             }
         }
         $form->vvm_type_name->setValue($vvm_type_name);
         $form->status->setValue($status);
     }
     $sort = $this->_getParam("sort", "asc");
     $order = $this->_getParam("order", "vvm_type_name");
     $result = $vvm_type->getAllVvmTypes($order, $sort);
     $paginator = false;
     if ($result != false) {
         //Paginate the contest results
         $paginator = Zend_Paginator::factory($result);
         $page = $this->_getParam("page", 1);
         $counter = $this->_getParam("counter", 10);
         $paginator->setCurrentPageNumber((int) $page);
         $paginator->setItemCountPerPage((int) $counter);
     }
     $this->view->form = $form;
     $this->view->form_add = $form_add;
     $this->view->paginator = $paginator;
     $this->view->sort = $sort;
     $this->view->order = $order;
     //        $this->view->counter = $counter;
     $base_url = Zend_Registry::get('baseurl');
     $this->view->inlineScript()->appendFile($base_url . '/js/all_level_combos.js');
 }