/** * */ public function leavecardreportAction() { $repModel = new Default_Model_Servicerequests(); $grid_type = $this->_getParam('t', sapp_Global::_encrypt('1')); $auth = Zend_Auth::getInstance(); if ($auth->hasIdentity()) { $loginUserId = $auth->getStorage()->read()->id; $loginuserRole = $auth->getStorage()->read()->emprole; $loginuserGroup = $auth->getStorage()->read()->group_id; } if ($this->getRequest()->getPost()) { $hid_status = $this->_getParam('hid_status', null); $currmonth = $this->_getParam('monyy', null); } if ($currmonth == null) { $currmonth = "All"; } $leavesTable = $SDcountStr = $SDClosedcountStr = $daysStr = ''; if ($currmonth == "All") { $leavesTable = $this->ConvertArrayToGrid("Leave Card Details", $repModel->getLeaves(null, $loginUserId)); } else { $leavesTable = $this->ConvertArrayToGrid("Leave Card Details", $repModel->getLeaves($currmonth, $loginUserId)); } $this->view->SDOpenCloseGrid = $leavesTable; $this->view->SDMonthYear = $repModel->getLeavesMonthYear($loginUserId); $this->view->currentMonthYear = $currmonth; /* $this->view->SDcountStr = $SDcountStr; $this->view->SDClosedcountStr = $SDClosedcountStr; $this->view->daysStr = $daysStr; */ $this->view->grid_type = $grid_type; $this->view->messages = $this->_helper->flashMessenger->getMessages(); }