Example #1
0
 public function indexAction()
 {
     $this->view->title = "Office meetings";
     //Acl
     // 		$access = new App_Model_Access();
     // 		$checkaccess = $access->accessRights('Activity',$this->view->globalvalue[0]['name'],'activityeditAction');
     // 		if (($checkaccess != NULL)) {
     //view
     $this->view->meeting_id = $meeting_id = $this->_request->getParam('meeting_id');
     $meeting = new Officemeeting_Model_Meeting();
     $this->view->fetchmeeting = $meeting->fetchMeetingdetailsForID($meeting_id);
     // 		} else {
     // 		$this->_redirect('index/index');
     // 		}
 }
Example #2
0
 public function fetchofficeAction()
 {
     $this->_helper->layout->disableLayout();
     $path = $this->view->baseUrl();
     $meetingForm = new Meeting_Form_Meeting($path);
     $this->view->meetingForm = $meetingForm;
     $officeID = $this->_request->getParam('officeID');
     $meeting = new Officemeeting_Model_Meeting();
     $office = $meeting->fetchofficenames($officeID);
     foreach ($office as $office) {
         $meetingForm->group_name->addMultiOption($office['id'], $office['name']);
     }
 }