public function commonviewAction()
 {
     // //         //Acl
     // //         //$access = new App_Model_Access();
     // //         //$checkaccess = $access->accessRights('Individual',$this->view->globalvalue[0]['name'],'commonviewAction');
     // //         //if (($checkaccess != NULL)) {
     $id = $this->_request->getParam('id');
     $this->view->memberid = $id;
     $familycommon = new Familycommonview_Model_familycommonview();
     $member_name = $familycommon->getfamily($id);
     $villageid = $member_name[0]['rev_village_id'];
     $parentid = $member_name[0]['parentoffice_id'];
     $talukname = $familycommon->gettalukname($villageid);
     if ($talukname) {
         $this->view->villagename = $talukname[0]['name'];
     }
     $kootaname = $familycommon->getkoota($parentid);
     if ($kootaname) {
         $this->view->kootaname = $kootaname[0]['name'];
     }
     //getting module id and submodule id
     $module = $familycommon->getmodule('Family');
     $this->view->mod_id = $module[0]['parent'];
     $this->view->sub_id = $module[0]['module_id'];
     $officemodule = $familycommon->getmodule('Office');
     //print_r($officemodule);
     $officesub_id = $officemodule[0]['module_id'];
     $pincode1 = $familycommon->getpincode($officesub_id, $villageid);
     if ($pincode1) {
         $this->view->pincode1 = $pincode1[0]['zipcode'];
     }
     $this->view->insurance = $familycommon->getinsurance($id);
     //         //geting family details, family details, health, economic, education details
     $this->view->membername = $member_name;
     // //      $this->view->family =$familycommon->getfamilydetails($id);
     $this->view->agriculture = $edit_agriculture = $familycommon->getagriculturedetails($id);
     $this->view->acretotal = $familycommon->getacretotal($id);
     $this->view->guntatotal = $familycommon->getguntatotal($id);
     $this->view->family = $familycommon->getfamilydetails($id);
     // //        $this->view->getentitlement=$familycommon->getentitlement();
     $this->view->crop = $familycommon->getcrop($id);
     $this->view->loandetails = $familycommon->getloandetails($id);
     $this->view->savingsdetails = $familycommon->getsavingsdetails($id);
     $this->view->gethabithealth = $familycommon->gethabithealth($id);
     $this->view->gethabitchallenge = $familycommon->gethabitphychallenge($id);
     $this->view->getchronicdisease = $familycommon->getchronicdisease($id);
     $this->view->getfamilymembers = $familycommon->getfamilyname($id);
     $this->view->livingassets = $familycommon->getlivingassetsdetails($id);
     $this->view->nonlivingassets = $familycommon->getnonlivingassetsdetails($id);
     // 	//PRA Based Services
     $this->view->praservice = $familycommon->praservice($id);
     $this->view->expense = $familycommon->getexpense($id);
     // 	// Basic Infrastructure
     $this->view->housingtype = $familycommon->housingtype($id);
     $this->view->ownership = $familycommon->ownership($id);
     $this->view->cookfuel = $familycommon->cookfuel($id);
     // 	//Annual income details
     $this->view->incomedetails = $familycommon->getincomedetails($id);
     $this->view->incometotal = $familycommon->getincometotal($id);
     // /*
     // // 	$this->view->loandtotal=$individualcommon->getloantotal($id);
     // //         $this->view->servicedetails=$individualcommon->servicedetails($id);
     // //         $this->view->family =$individualcommon->getfamilydetails($id);
     // //        $this->view->activities=$individualcommon->getactivities($id);
     //         //}
     //         //else {
     //         //$this->_redirect('index/index');
     //         //}*/
 }