public function indexAction()
 {
     //$request = Zend_Controller_Front::getInstance();
     //$params = $request->getRequest()->getParams();
     $auth = Zend_Auth::getInstance();
     if ($auth->hasIdentity()) {
         $loginUserId = $auth->getStorage()->read()->id;
     }
     $leaverequestmodel = new Default_Model_Leaverequest();
     $call = $this->_getParam('call');
     if ($call == 'ajaxcall') {
         $this->_helper->layout->disableLayout();
     }
     $view = Zend_Layout::getMvcInstance()->getView();
     $objname = $this->_getParam('objname');
     $refresh = $this->_getParam('refresh');
     $dashboardcall = $this->_getParam('dashboardcall');
     $statusidstring = $this->_request->getParam('status');
     if (!isset($statusidstring) || $statusidstring == '') {
         $unitId = $this->_request->getParam('unitId');
         $statusidstring = $unitId;
     }
     $statusid = sapp_Global::_decrypt($statusidstring);
     $queryflag = 'Pending';
     $data = array();
     $searchQuery = '';
     $searchArray = array();
     $tablecontent = '';
     if ($refresh == 'refresh') {
         if ($dashboardcall == 'Yes') {
             $perPage = DASHBOARD_PERPAGE;
         } else {
             $perPage = PERPAGE;
         }
         $sort = 'DESC';
         $by = 'createddate';
         $pageNo = 1;
         $searchData = '';
     } else {
         $sort = $this->_getParam('sort') != '' ? $this->_getParam('sort') : 'DESC';
         $by = $this->_getParam('by') != '' ? $this->_getParam('by') : 'createddate';
         if ($dashboardcall == 'Yes') {
             $perPage = $this->_getParam('per_page', DASHBOARD_PERPAGE);
         } else {
             $perPage = $this->_getParam('per_page', PERPAGE);
         }
         $pageNo = $this->_getParam('page', 1);
         /** search from grid - START * */
         $searchData = $this->_getParam('searchData');
         $searchData = rtrim($searchData, ',');
         /** search from grid - END * */
     }
     $objName = 'manageremployeevacations';
     $queryflag = $_SESSION["manageremployeevacations_view"];
     if (!isset($queryflag) || empty($queryflag) || is_string($queryflag)) {
         $queryflag = "1";
     }
     $dataTmp = $leaverequestmodel->getGrid($sort, $by, $perPage, $pageNo, $searchData, $call, $dashboardcall, $objName, $queryflag);
     array_push($data, $dataTmp);
     $tLeaveCardData01 = sapp_Global::_convertArrayToHTMLTable("leavecardtablegrid", "", $leaverequestmodel->GetManagerEmployeesMonthlyLeaveCard($loginUserId, "1"));
     $tLeaveCardData02 = sapp_Global::_convertArrayToHTMLTable("leavecardtablegrid", "", $leaverequestmodel->GetManagerEmployeesMonthlyLeaveCard($loginUserId, "2"));
     $tLeaveCardData03 = sapp_Global::_convertArrayToHTMLTable("leavecardtablegrid", "", $leaverequestmodel->GetManagerEmployeesMonthlyLeaveCard($loginUserId, "3"));
     $tLeaveCardData04 = sapp_Global::_convertArrayToHTMLTable("leavecardtablegrid", "", $leaverequestmodel->GetManagerEmployeesMonthlyLeaveCard($loginUserId, "4"));
     $tLeaveCardData05 = sapp_Global::_convertArrayToHTMLTable("leavecardtablegrid", "", $leaverequestmodel->GetManagerEmployeesMonthlyLeaveCard($loginUserId, "5"));
     $tLeaveCardData06 = sapp_Global::_convertArrayToHTMLTable("leavecardtablegrid", "", $leaverequestmodel->GetManagerEmployeesMonthlyLeaveCard($loginUserId, "6"));
     $tLeaveCardData07 = sapp_Global::_convertArrayToHTMLTable("leavecardtablegrid", "", $leaverequestmodel->GetManagerEmployeesMonthlyLeaveCard($loginUserId, "7"));
     $tLeaveCardData08 = sapp_Global::_convertArrayToHTMLTable("leavecardtablegrid", "", $leaverequestmodel->GetManagerEmployeesMonthlyLeaveCard($loginUserId, "8"));
     $tLeaveCardData09 = sapp_Global::_convertArrayToHTMLTable("leavecardtablegrid", "", $leaverequestmodel->GetManagerEmployeesMonthlyLeaveCard($loginUserId, "9"));
     $tLeaveCardData10 = sapp_Global::_convertArrayToHTMLTable("leavecardtablegrid", "", $leaverequestmodel->GetManagerEmployeesMonthlyLeaveCard($loginUserId, "10"));
     $tLeaveCardData11 = sapp_Global::_convertArrayToHTMLTable("leavecardtablegrid", "", $leaverequestmodel->GetManagerEmployeesMonthlyLeaveCard($loginUserId, "11"));
     $tLeaveCardData12 = sapp_Global::_convertArrayToHTMLTable("leavecardtablegrid", "", $leaverequestmodel->GetManagerEmployeesMonthlyLeaveCard($loginUserId, "12"));
     $this->view->dataArray = $data;
     $this->view->tLeaveCardData01 = $tLeaveCardData01;
     $this->view->tLeaveCardData02 = $tLeaveCardData02;
     $this->view->tLeaveCardData03 = $tLeaveCardData03;
     $this->view->tLeaveCardData04 = $tLeaveCardData04;
     $this->view->tLeaveCardData05 = $tLeaveCardData05;
     $this->view->tLeaveCardData06 = $tLeaveCardData06;
     $this->view->tLeaveCardData07 = $tLeaveCardData07;
     $this->view->tLeaveCardData08 = $tLeaveCardData08;
     $this->view->tLeaveCardData09 = $tLeaveCardData09;
     $this->view->tLeaveCardData10 = $tLeaveCardData10;
     $this->view->tLeaveCardData11 = $tLeaveCardData11;
     $this->view->tLeaveCardData12 = $tLeaveCardData12;
     $this->view->call = $call;
     $this->view->messages = $this->_helper->flashMessenger->getMessages();
 }