예제 #1
0
파일: trauma.php 프로젝트: robocon/shs
			
			$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>";

		}else{

			echo "<CENTER><B>äÁèÊÒÁÒöºÑ¹·Ö¡¢éÍÁÙÅä´é¡ÃسҵԡµèÍâ»Ãá¡ÃÁàÁÍÃì</B><BR><A HREF=\"#\" Onclick=\"window.location.href='trauma.php';\">&lt;&lt; ¡ÅѺ</A></CENTER>";

		}
		
		//echo "<META HTTP-EQUIV=\"Refresh\" CONTENT=\"2;URL=trauma.php\">";
		exit();
	}else if(isset($_GET["action"]) && $_GET["action"] == "del"){