當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Gender::getAll方法代碼示例

本文整理匯總了PHP中Gender::getAll方法的典型用法代碼示例。如果您正苦於以下問題:PHP Gender::getAll方法的具體用法?PHP Gender::getAll怎麽用?PHP Gender::getAll使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Gender的用法示例。


在下文中一共展示了Gender::getAll方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: edit

 public function edit($record_no)
 {
     $sql = "SELECT p.*,\n\t\t               rst.Name as service_name,\n\t\t               dp.child,\n\t\t               s.secondary_spouse \n\t\t               FROM patient p \n\t\t               LEFT JOIN regimen_service_type rst ON rst.id=p.service \n\t\t               LEFT JOIN dependants dp ON p.patient_number_ccc=dp.parent  \n\t\t        \t   LEFT JOIN spouses s ON p.patient_number_ccc=s.primary_spouse\n\t\t               WHERE p.id='{$record_no}'\n\t\t               GROUP BY p.id";
     $query = $this->db->query($sql);
     $results = $query->result_array();
     if ($results) {
         $results[0]['other_illnesses'] = $this->extract_illness($results[0]['other_illnesses']);
         $data['results'] = $results;
     }
     $data['record_no'] = $record_no;
     $data['districts'] = District::getPOB();
     $data['genders'] = Gender::getAll();
     $data['statuses'] = Patient_Status::getStatus();
     $data['sources'] = Patient_Source::getSources();
     $data['drug_prophylaxis'] = Drug_Prophylaxis::getAll();
     $data['service_types'] = Regimen_Service_Type::getHydratedAll();
     $data['facilities'] = Facilities::getAll();
     $data['family_planning'] = Family_Planning::getAll();
     $data['other_illnesses'] = Other_Illnesses::getAll();
     $data['pep_reasons'] = Pep_Reason::getActive();
     $data['regimens'] = Regimen::getRegimens();
     $data['drugs'] = Drugcode::getAllEnabled();
     $data['who_stages'] = Who_Stage::getAllHydrated();
     $data['content_view'] = 'edit_patients_v';
     //Hide side menus
     $data['hide_side_menu'] = '1';
     $this->base_params($data);
 }
開發者ID:OmondiKevin,項目名稱:ADT,代碼行數:28,代碼來源:patient_management.php


注:本文中的Gender::getAll方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。