public function transactionTypeAction()
 {
     $form = new Form_Iadmin_TransactionTypeSearch();
     $form_add = new Form_Iadmin_TransactionTypeAdd();
     $transaction_type = new Model_TransactionTypes();
     if ($this->_request->isPost()) {
         if ($form->isValid($this->_request->getPost())) {
             //App_Controller_Functions::pr($this->_request->getPost());
             $transaction_type_name = $form->getValue('transaction_type_name');
             $nature = $form->getValue('nature');
             if (!empty($transaction_type_name)) {
                 $transaction_type->form_values['transactionTypeName'] = $transaction_type_name;
             }
             if (!empty($nature)) {
                 $transaction_type->form_values['nature'] = $nature;
             }
         }
         $form->transaction_type_name->setValue($transaction_type_name);
         $form->nature->setValue($nature);
     }
     $sort = $this->_getParam("sort", "asc");
     $order = $this->_getParam("order", "transaction_type_name");
     $result = $transaction_type->getAllTransactionTypes($order, $sort);
     //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');
 }