コード例 #1
0
ファイル: _modules.php プロジェクト: angelogarcia/chits
	}
}
if (file_exists('../modules/imci/class.imci.php')) {
	include '../modules/imci/class.imci.php';
	$imci = new imci;
	if (!$module->activated('imci') && $initmod) {
		$imci->init_sql();
		$imci->init_menu();
		$imci->init_deps();
		$imci->init_lang();
		$imci->init_help();
	}
}
if (file_exists('../modules/injury/class.injury.php')) {
	include '../modules/injury/class.injury.php';
	$injury = new injury;
	if (!$module->activated('injury') && $initmod) {
		$injury->init_sql();
		$injury->init_menu();
		$injury->init_deps();
		$injury->init_lang();
		$injury->init_help();
	}
}
if (file_exists('../modules/injury_report/class.injury_report.php')) {
	include '../modules/injury_report/class.injury_report.php';
	$injury_report = new injury_report;
	if (!$module->activated('injury_report') && $initmod) {
		$injury_report->init_sql();
		$injury_report->init_menu();
		$injury_report->init_deps();
コード例 #2
0
 function display_injurycodes()
 {
     if (func_num_args() > 0) {
         $arg_list = func_get_args();
         $menu_id = $arg_list[0];
         $post_vars = $arg_list[1];
         $get_vars = $arg_list[2];
         $validuser = $arg_list[3];
         $isadmin = $arg_list[4];
     }
     print "<table width='400'>";
     print "<tr valign='top'><td colspan='3'>";
     print "<span class='library'>" . FTITLE_INJURY_CODE_LIST . "</span><br>";
     print "</td></tr>";
     print "<tr valign='top'><td><b>" . THEAD_ID . "</b></td><td><b>" . THEAD_NAME . "</b></td><td><b>" . THEAD_MAPPED_ICD10 . "</b></td></tr>";
     $sql = "select injury_id, injury_name " . "from m_lib_injury " . "order by injury_name";
     if ($result = mysql_query($sql)) {
         if (mysql_num_rows($result)) {
             while (list($id, $name) = mysql_fetch_array($result)) {
                 print "<tr valign='top'><td>{$id}</td><td><a href='" . $_SERVER["SELF"] . "?page=" . $get_vars["page"] . "&menu_id={$menu_id}&injury_id={$id}'>{$name}</a></td>";
                 print "<td>" . injury::get_icd10_mapping($id) . "</td>";
                 print "</tr>";
             }
         }
     }
     print "</table><br>";
 }