public function indexAction() { //Acl // $access = new App_Model_Access(); // $checkaccess = $access->accessRights('Attendance',$this->view->globalvalue[0]['name'],'attendanceaddAction'); // if (($checkaccess != NULL)) { //view $this->view->title = $this->view->translate("Meeting book"); $path = $this->view->baseUrl(); $this->view->attendance_id = $attendance_id = $this->_request->getParam('attendance_id'); $this->view->week = $week = $this->_request->getParam('week'); $this->view->transaction_id = $transaction_id = $this->_request->getParam('transID'); $this->view->meetingweek = $week; $fetchattendance = new Meetingbookcommonview_Model_attendanceview(); $this->view->fetchattendance = $fetchattendance1 = $fetchattendance->fetchattendancedetailsforID($attendance_id, $week); $meeting_ID = $fetchattendance1[0]['meeting_id']; foreach ($fetchattendance1 as $fetchattendance1) { $this->view->count1 = 10; } //fetch member absentees $this->view->absentees = $absentees = $fetchattendance->absentmembers($attendance_id); //fetch late member $this->view->latecomer = $latecomer = $fetchattendance->latemembers($attendance_id); //fetch discussion $this->view->attendancediscussion = $discussion = $fetchattendance->attendancediscussion($attendance_id); //fetch decision $this->view->attendancedecision = $decision = $fetchattendance->attendancedecision($attendance_id); $fetchMembers = new Meetingbook_Model_Attend(); $this->view->fetchgroupid = $fetchMembers->fetchgroupid($meeting_ID); $groupid = $meeting_ID; //$this->view->fetchgroupid[0]['group_id']; $meetingbook = new Meetingbookreport_Model_Meetingbook(); $this->view->groupmembers = $meetingbook->fetchMembers($meeting_ID, $groupid); // echo '<pre>'; print_r($this->view->groupmembers); $this->view->members = $fetchMembers->fetchmeeting($meeting_ID, $groupid); $loanofficer = $fetchMembers->fetchloanofficer($groupid); if ($loanofficer) { $this->view->loanofficer = $loanofficer[0]['loanofficer']; } $check = array(); $fetchMembersForAttendance = new Meetingbook_Model_Meetingbook(); $fetchMembersForAttendance1 = $fetchMembersForAttendance->assignMembers($attendance_id); // echo '<pre>';print_r($fetchMembersForAttendance1); foreach ($fetchMembersForAttendance1 as $fetchMembersForAttendance2) { $check[] = $fetchMembersForAttendance2['member_id']; } $this->view->val = $check; // } else { // $this->_redirect('index/index'); // } }
public function fetchmemberseditAction() { $this->_helper->layout->disableLayout(); $path = $this->view->baseUrl(); $fetchMembers = new Meetingbook_Model_Attend(); $fetchattendance = new Meetingbook_Model_Meetingbook(); $attendance_id = $this->_request->getParam('attendance_id'); $memberattendance = $fetchattendance->fetchmemberttendance($attendance_id); if ($memberattendance) { $fetchattendance1 = $fetchattendance->fetchattendancedetailsforID($attendance_id); } else { $fetchattendance1 = $fetchattendance->fetchattendancedetailsforID1($attendance_id); } foreach ($fetchattendance1 as $fetchattendance1) { $this->view->vNo = $vNo = $fetchattendance1['transaction_id']; } $transId = $this->view->vNo; $this->view->savingsdetails = $this->view->savings->fetchsavingsdetails($transId); $this->view->members = $aa = $fetchMembers->fetchMembers($this->_request->getParam('meeting_ID')); $check = array(); $fetchMembersForAttendance = new Meetingbook_Model_Meetingbook(); $fetchMembersForAttendance1 = $fetchMembersForAttendance->assignMembers($this->_request->getParam('attendance_id')); foreach ($fetchMembersForAttendance1 as $fetchMembersForAttendance2) { $check[] = $fetchMembersForAttendance2['member_id'] . '_' . $fetchMembersForAttendance2['attendance_type']; } $this->view->val = $check; }