public function transactiondisplayAction()
 {
     $Transaction = new Model_Transaction();
     $TransID = $this->_getParam('ID');
     $this->view->status_list = $Transaction->transactionStatus();
     if ($_POST) {
         $Transaction->updateStatus($_POST);
         $this->_redirect('/admin/transactiondisplay/ID/' . $_POST['TransactionID']);
     }
     $data = $Transaction->getTransaction($TransID);
     if (!$data) {
         $this->_redirect('/admin/transactionlist/');
     }
     $rawStates = $Transaction->getData("Shipping", "", "State asc");
     foreach ($rawStates as $row) {
         $states[$row['ID']] = $row['State'];
     }
     $this->view->states = $states;
     $this->view->payment_methods = $this->paymentMethods();
     $this->view->data = $data;
     $this->render('transactiondisplay');
 }
 public function trackingAction()
 {
     $this->_helper->layout()->setLayout('page');
     $Transaction = new Model_Transaction();
     $TransID = $this->_getParam('trackingID');
     $Email = $this->_getParam('esig1234');
     //honeypot
     $data = array();
     if ($TransID && $Email) {
         $data = $Transaction->getTransaction($TransID, $Email);
         $this->view->status_list = $Transaction->transactionStatus();
         $this->view->msg = '';
         if (empty($data)) {
             $this->view->msg = "Nothing found enter a valid email address and tracking id.";
         }
     }
     $this->view->data = $data;
 }