Exemplo n.º 1
0
 public function getCategory1($_data)
 {
     $aTable = new ApprovalTable();
     return $aTable->getCategory1(gv('branch_no', $_data));
 }
Exemplo n.º 2
0
 public function viewRemarksAction()
 {
     $success = true;
     $id = (int) $this->params()->fromQuery('id', 0);
     $user = (int) $this->params()->fromQuery('user', 0);
     $this->init();
     $self = true;
     if ($id != $this->auth()->get('user_no')) {
         $self = false;
         $success = 0 < $this->ctrlLv ? true : false;
     }
     if (!$success) {
         return $this->redirect()->toRoute('app', array('controller' => 'failed', 'action' => 'forbidden'));
     }
     $db = new ApprovalTable();
     $message = $db->getRemarks($id, $user);
     $values = array('self' => $self, 'ctrlLv' => $this->ctrlLv, 'message' => $message);
     $view = new ViewModel($values);
     $view->setTemplate('/' . VIEW_DIR . '/approval/comment.phtml');
     return $view;
 }