コード例 #1
0
ファイル: _modules.php プロジェクト: angelogarcia/chits
	}
}
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();
		$injury_report->init_lang();
		$injury_report->init_help();
	}
}
if (file_exists('../modules/lab/class.lab.php')) {
	include '../modules/lab/class.lab.php';
	$lab = new lab;
	if (!$module->activated('lab') && $initmod) {
		$lab->init_sql();
		$lab->init_menu();
		$lab->init_deps();
コード例 #2
0
 function _injury_report()
 {
     //
     // main API to reports
     //
     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_r($arg_list);
     }
     // always check dependencies
     if ($exitinfo = $this->missing_dependencies('injury_report')) {
         return print $exitinfo;
     }
     print "<span class='patient'>" . FTITLE_INJURY_REPORTS . "</span><br/><br/>";
     $n = new injury_report();
     $g = new graph();
     $n->report_menu($menu_id, $post_vars, $get_vars);
     print "<table><tr><td>";
     // column 1
     switch ($get_vars["report_menu"]) {
         case "TCL":
             if ($post_vars["submitreport"]) {
                 $n->process_tcl_inclusive_dates($menu_id, $post_vars, $get_vars);
             }
             $n->form_tcl_inclusive_dates($menu_id, $post_vars, $get_vars);
             $n->display_tcl_inclusive_dates($menu_id, $post_vars, $get_vars);
             break;
         case "SUMMARY":
             $n->generate_summary($menu_id, $post_vars, $get_vars);
             break;
         case "GRAPHS":
             $g->graph_menu($menu_id, $post_vars, $get_vars);
             switch ($get_vars["graph"]) {
                 case "PIE":
                     $get_vars["module"] = $this->module;
                     $g->graph_pie($menu_id, $post_vars, $get_vars);
                     break;
             }
             break;
     }
     print "</td></tr></table>";
 }