if($result){ echo "<CENTER><B>á¡é䢢éÍÁÙÅàÃÕºÃéÍÂáÅéÇ</B><BR><A HREF=\"#\" Onclick=\"window.location.href='trauma.php';\"><< ¡ÅѺ</A></CENTER>"; }else{ echo "<CENTER><B>äÁèÊÒÁÒöá¡é䢢éÍÁÙÅä´é¡ÃسҵԡµèÍâ»Ãá¡ÃÁàÁÍÃì</B><BR><A HREF=\"#\" Onclick=\"window.location.href='trauma.php';\"><< ¡ÅѺ</A></CENTER>"; } echo "<META HTTP-EQUIV=\"Refresh\" CONTENT=\"3;URL=trauma.php\">"; exit(); }if(isset($_POST["submit"]) && $_POST["submit"] == "¡ÂÍ´àÇÃ"){ include("class_file/class_refer.php"); $obj = New refer; $thaidate = (date("Y")+543).date("-m-d H:i:s"); if($_POST["trauma"] != "trauma"){ $_POST["type_accident"] = ""; $_POST["wounded_vehicle"] = ""; $_POST["wounded_detail"] = ""; $_POST["cause_accident"] = ""; $_POST["with_cause_accident"] = ""; $_POST["list_with_cause_accident"] = ""; $_POST["spirits"] = ""; $_POST["belt"] = ""; $_POST["helmet"] = "";
<?php session_start(); $sOfficer=$_SESSION["sOfficer"]; 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 �觵��");