Ejemplo n.º 1
0
 public function indexAction()
 {
     $familyForm = new Familyform_Form_Familyform();
     $this->view->form = $familyForm;
     if ($this->_request->isPost() && $this->_request->getPost('Search')) {
         $formData = $this->_request->getPost();
         if ($familyForm->isValid($formData)) {
             $id = $this->_getParam('membercode');
             $this->view->groupid = $id;
             //             // create instance for groupcommon model page
             $groupcommon = new Groupresolutionkoota_Model_Groupresolution();
             $group_name = $groupcommon->getgroup($id);
             // get group details
             $this->view->represent = $groupcommon->represent($id);
             $this->view->parant = $groupcommon->office($id);
             //Zend_Debug::dump($group_name);
             if ($group_name) {
                 $getgroupaccount = $groupcommon->getgroupaccount($id);
                 // get group details
                 $group_location = $groupcommon->getlocation($id);
                 // get group Location details - Latitude and longitude
                 foreach ($group_location as $location) {
                     $this->view->latitude = $location['latitude'];
                     $this->view->longitude = $location['longitude'];
                 }
                 $this->view->groupname = $group_name;
                 $this->view->getgroupaccount = $getgroupaccount;
                 $grou_members = $groupcommon->getgroupmembers($id);
                 // get group members
                 // Zend_Debug::dump($grou_members);
                 $this->view->groupmembers = $grou_members;
                 $dbobj = new Groupmdefault_Model_Groupdefault();
                 $groupheaddetails = $dbobj->Getgrouphead($id);
                 //Get group head
                 foreach ($groupheaddetails as $grouphead) {
                     $this->view->grouphead = $grouphead['head'];
                 }
                 $this->view->address = $this->view->adm->getmodule("ourbank_address", $id, "Group");
                 // get address for particular group
                 $module = $groupcommon->getmodule('Group');
                 foreach ($module as $module_id) {
                 }
                 $this->view->mod_id = $module_id['parent'];
                 $this->view->sub_id = $module_id['module_id'];
             } else {
                 $this->view->error = "Enter valid code";
             }
         }
     }
     // 		} else {
     //             $this->_redirect('index/error');
     // 		}
 }
Ejemplo n.º 2
0
 public function commonviewAction()
 {
     $this->view->title = "Group";
     $id = $this->_request->getParam('id');
     $this->view->groupid = $id;
     // create instance for groupcommon model page
     $groupcommon = new Groupcommonview_Model_groupcommon();
     $group_name = $groupcommon->getgroup($id);
     // get group details
     $group_location = $groupcommon->getlocation($id);
     // get group Location details - Latitude and longitude
     foreach ($group_location as $location) {
         $this->view->latitude = $location['latitude'];
         $this->view->longitude = $location['longitude'];
     }
     $this->view->groupname = $group_name;
     $group_members = $groupcommon->getgroupmembers($id);
     // get group members
     $this->view->groupmembers = $group_members;
     $groupreps = $groupcommon->groupreps($id);
     // get group representatives
     $this->view->groupreps = $groupreps;
     $dbobj = new Groupmdefault_Model_Groupdefault();
     $groupheaddetails = $dbobj->Getgrouphead($id);
     //Get group head
     foreach ($groupheaddetails as $grouphead) {
         $this->view->grouphead = $grouphead['head'];
     }
     $this->view->address = $this->view->adm->getmodule("ourbank_address", $id, "Group");
     // get address for particular group
     $this->view->contact = $this->view->adm->getmodule("ourbank_contact", $id, "Group");
     // get contact for particular group
     $module = $groupcommon->getmodule('Group');
     foreach ($module as $module_id) {
     }
     $this->view->mod_id = $module_id['parent'];
     $this->view->sub_id = $module_id['module_id'];
 }
Ejemplo n.º 3
0
 public function bankAction()
 {
     $app = $this->view->baseUrl();
     $this->_helper->layout->disableLayout();
     $officeid = $this->_request->getParam('officeid');
     $groupForm = new Groupmdefault_Form_groupdefault($app);
     $this->view->form = $groupForm;
     $dbobj = new Groupmdefault_Model_Groupdefault();
     $banks = $dbobj->Getbank($officeid);
     // load applicable to values
     foreach ($banks as $banks) {
         $groupForm->bank->addMultiOption($banks['id'], $banks['name']);
     }
 }