Beispiel #1
0
	}
}
if (file_exists('../modules/language/class.language.php')) {
	include '../modules/language/class.language.php';
	$language = new language;
	if (!$module->activated('language') && $initmod) {
		$language->init_sql();
		$language->init_menu();
		$language->init_deps();
		$language->init_lang();
		$language->init_help();
	}
}
if (file_exists('../modules/leprosy/class.leprosy.php')) {
	include '../modules/leprosy/class.leprosy.php';
	$leprosy = new leprosy;
	if (!$module->activated('leprosy') && $initmod) {
		$leprosy->init_sql();
		$leprosy->init_menu();
		$leprosy->init_deps();
		$leprosy->init_lang();
		$leprosy->init_help();
	}
}
if (file_exists('../modules/mc/class.mc.php')) {
	include '../modules/mc/class.mc.php';
	$mc = new mc;
	if (!$module->activated('mc') && $initmod) {
		$mc->init_sql();
		$mc->init_menu();
		$mc->init_deps();
 function _consult_leprosy()
 {
     echo "<form name='form_leprosy' action='{$_POST['PHP_SELF']}' method='POST'>";
     $leprosy = new leprosy();
     $leprosy->consult_id = $_GET['consult_id'];
     $leprosy->patient_id = healthcenter::get_patient_id($_GET['consult_id']);
     //$leprosy->patient_age = healthcenter::get_patient_age($_GET['consult_id']);
     $leprosy->userid = $_SESSION['userid'];
     //The following codes will initialize hidden textboxes and their values
     echo "<input type='hidden' name='h_consult_id' value='{$leprosy->consult_id}'></input>";
     echo "<input type='hidden' name='h_patient_id' value='{$leprosy->patient_id}'></input>";
     echo "<input type='hidden' name='h_userid' value='{$leprosy->userid}'></input>";
     if (@$_POST['h_save_flag'] == 'GO') {
         print "&nbsp;";
         $leprosy->new_leprosy_record();
         // test wether it still needed to initialize primary keys after a POST.
         //$leprosy->init_primary_keys();
         print "&nbsp;";
         $leprosy->show_NLCPForm1();
     } else {
         print "&nbsp;";
         $leprosy->init_primary_keys();
         print "&nbsp;";
         $leprosy->show_NLCPForm1();
     }
     echo "<input type='hidden' name='h_save_flag' value='GO'></input>";
     echo "</form>";
 }