Пример #1
0
			$count = count($_POST["labcare"]);
			for($i=0;$i<$count;$i++){
				
				$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();
		}
Пример #2
0
include("class_file/class_refer.php");
$obj = New refer();

include("connect.inc");
$thidate = (date("Y")+543).date("-m-d H:i:s"); 

$cAn = $_POST["cAn"];
$cHn = $_POST["cHn"];
$dctype_code = substr($_POST["dctype"],0,1);

//�红������ҡ���� Refer
if($dctype_code == "4"){
			
			$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"]);