Beispiel #1
0
				
				$sql = "INSERT INTO `trauma_labcare` (`for_id`, `hn`, `labcare`, `amount`) values ('".$id."','".$_POST["hn"]."','".jschars($_POST["labcare"][$i])."', '".$_POST["amount_labcare"][$i]."');";

				if($_POST["labcare"][$i] != "")
					$result2 = Mysql_Query($sql);

			}
		}
		
		if($_POST["cure"] == "refer"){
			
			$obj->sethn($_POST["hn"]);
			$obj->setan($_POST["an"]);
			$obj->setreferh($_POST["refer_hospital"]);
			$obj->setrefertype("2 Ê觵èÍ");
			$obj->setdateopd($thaidate,$_POST["date_in"]);
			$obj->setpttype($_POST["type_wounded2"],$_POST["type_wounded"]);
			$obj->setdiag($_POST["dx"]);
			$obj->setexrefer($_POST["cause_refer"]);
			$obj->setrefercar($_POST["means_refer"]);
			$obj->setoffice($_SESSION["sOfficer"]);
			$obj->setdoctor($_POST["doctor"]);
			$obj->setward("ER");
			$obj->set_targe($_POST["targe"]);
			$obj->setid($id);
			$obj->inserttb();
		}

		if($result){
			
			echo "<CENTER><B>ºÑ¹·Ö¡¢éÍÁÙÅàÃÕºÃéÍÂáÅéÇ</B><BR><A HREF=\"#\" Onclick=\"window.location.href='trauma.php';\">&lt;&lt; ¡ÅѺ</A></CENTER>";
Beispiel #2
0
			
			$obj->sethn($cHn);
			$obj->setan($cAn);

			if($_POST["hospital1"] != ""){
				$_POST["hospital"] = $_POST["hospital1"];
			}

			$obj->setreferh("", $_POST["hospital"]);
			$obj->setlist_type_patient($_POST["list_type_patient"]);

			$obj->setorgan($_POST["organ"]);
			$obj->setmaintenance($_POST["maintenance"]);

			$obj->setrefertype("2 �觵��");
			$obj->setdateopd($thidate);
			$obj->setpttype($_POST["pttype"]);
			$obj->setdiag($_POST["diag"]);
			$obj->setexrefer($_POST["exrefer"],$_POST["exrefer2"]);
			$obj->setrefercar($_POST["refercar"]);
			$obj->setoffice($_SESSION["sOfficer"]);
			$obj->setdoctor($_POST["doctor"]);
			$obj->setward("Ward".$cBedcode);
			$obj->settype_woud($_POST["list_ptright"]);
			$obj->settime_refer($_POST["time_refer"]);
			$obj->setproblem_refer($_POST["problem_refer"]);
			$obj->set_doc_refer($_POST["doc_refer"]);
			$obj->set_nurse($_POST["nurse"]);
			$obj->set_assistant_nurse($_POST["assistant_nurse"]);
			$obj->set_estimate($_POST["estimate"]);
			$obj->set_no_estimate($_POST["no_estimate"]);