Hacked By AnonymousFox
<?
include("../lib/session.php");
include("../lib/config.php");
include("../lib/connect.php");
include("../lib/function.php");
if($System_Session_User_ID=="") {
Header("Location:../home/index.php");
}
$Id=$_GET["Id"];
$sql="select * from patient where Id='$Id'";
$query=mysql_query($sql);
$row=mysql_fetch_array($query);
$timesub1=substr($row[Patient_statuslab_time],0,2);
$timesub2=substr($row[Patient_statuslab_time],3,2);
$yearsub1=substr($row[Patient_statuslab_date],0,4);
$dateyear1=$yearsub1+543;
$datemonth1=substr($row[Patient_statuslab_date],5,2);
$datedate1=substr($row[Patient_statuslab_date],8,2);
$yearsub2=substr($row[Patient_status_refer],0,4);
$dateyear2=$yearsub2+543;
$datemonth2=substr($row[Patient_status_refer],5,2);
$datedate2=substr($row[Patient_status_refer],8,2);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-874" />
<title>:: สำนักการแพทย์ กรุงเทพมหานคร ::</title>
<link href="style.css" rel="stylesheet" type="text/css" />
<style type="text/css">
<!--
body {
background-color: #CCCCCC;
}
.style3 {
font-size: 16px;
font-weight: bold;
}
.style4 {
color: #FF0000;
font-weight: bold;
}
-->
</style>
<script language="javascript">
function show_table(id) {
if(id == 1) { // ถ้าเลือก radio button 1 ให้โชว์ table 1 และ ซ่อน table 2
document.getElementById("table1").style.display = "";
document.getElementById("table2").style.display = "none";
} else if(id == 2) { // ถ้าเลือก radio button 2 ให้โชว์ table 2 และ ซ่อน table 1
document.getElementById("table1").style.display = "none";
document.getElementById("table2").style.display = "";
}else if(id == 3) { // ถ้าเลือก radio button 2 ให้โชว์ table 2 และ ซ่อน table 1
document.getElementById("table1").style.display = "none";
document.getElementById("table2").style.display = "";
}else if(id == 4) { // ถ้าเลือก radio button 2 ให้โชว์ table 2 และ ซ่อน table 1
document.getElementById("table1").style.display = "none";
document.getElementById("table2").style.display = "";
}
}
function show_table1(id) {
if(id == 1) { // ถ้าเลือก radio button 1 ให้โชว์ table 1 และ ซ่อน table 2
document.getElementById("tableo").style.display = "none";
} else if(id == 2) { // ถ้าเลือก radio button 2 ให้โชว์ table 2 และ ซ่อน table 1
document.getElementById("tableo").style.display = "none";
}else if(id == 3) { // ถ้าเลือก radio button 2 ให้โชว์ table 2 และ ซ่อน table 1
document.getElementById("tableo").style.display = "none";
}else if(id == 4) { // ถ้าเลือก radio button 2 ให้โชว์ table 2 และ ซ่อน table 1
document.getElementById("tableo").style.display = "none";
}else if(id == 5) { // ถ้าเลือก radio button 2 ให้โชว์ table 2 และ ซ่อน table 1
document.getElementById("tableo").style.display = "none";
}else if(id == 6) { // ถ้าเลือก radio button 2 ให้โชว์ table 2 และ ซ่อน table 1
document.getElementById("tableo").style.display = "none";
}else if(id == 7) { // ถ้าเลือก radio button 2 ให้โชว์ table 2 และ ซ่อน table 1
document.getElementById("tableo").style.display = "none";
}else if(id == 8) { // ถ้าเลือก radio button 2 ให้โชว์ table 2 และ ซ่อน table 1
document.getElementById("tableo").style.display = "none";
}else if(id == 9) { // ถ้าเลือก radio button 2 ให้โชว์ table 2 และ ซ่อน table 1
document.getElementById("tableo").style.display = "none";
}else if(id == 10) { // ถ้าเลือก radio button 2 ให้โชว์ table 2 และ ซ่อน table 1
document.getElementById("tableo").style.display = "none";
}else if(id == 11) { // ถ้าเลือก radio button 2 ให้โชว์ table 2 และ ซ่อน table 1
document.getElementById("tableo").style.display = "none";
}else if(id == 12) { // ถ้าเลือก radio button 2 ให้โชว์ table 2 และ ซ่อน table 1
document.getElementById("tableo").style.display = "none";
}else if(id == 13) { // ถ้าเลือก radio button 2 ให้โชว์ table 2 และ ซ่อน table 1
document.getElementById("tableo").style.display = "none";
}else if(id == 14) { // ถ้าเลือก radio button 2 ให้โชว์ table 2 และ ซ่อน table 1
document.getElementById("tableo").style.display = "none";
}else if(id == 15) { // ถ้าเลือก radio button 2 ให้โชว์ table 2 และ ซ่อน table 1
document.getElementById("tableo").style.display = "none";
}else if(id == 16) { // ถ้าเลือก radio button 2 ให้โชว์ table 2 และ ซ่อน table 1
document.getElementById("tableo").style.display = "none";
}else if(id == 17) { // ถ้าเลือก radio button 2 ให้โชว์ table 2 และ ซ่อน table 1
document.getElementById("tableo").style.display = "none";
}else if(id == 18) { // ถ้าเลือก radio button 2 ให้โชว์ table 2 และ ซ่อน table 1
document.getElementById("tableo").style.display = "none";
}else if(id == 19) { // ถ้าเลือก radio button 2 ให้โชว์ table 2 และ ซ่อน table 1
document.getElementById("tableo").style.display = "";
document.getElementById('status_hos_detail').focus();
}
}
function show_table2(id) {
if(id == 1) { // ถ้าเลือก radio button 1 ให้โชว์ table 1 และ ซ่อน table 2
document.getElementById("tableo2").style.display = "none";
} else if(id == 2) { // ถ้าเลือก radio button 2 ให้โชว์ table 2 และ ซ่อน table 1
document.getElementById("tableo2").style.display = "none";
}else if(id == 3) { // ถ้าเลือก radio button 2 ให้โชว์ table 2 และ ซ่อน table 1
document.getElementById("tableo2").style.display = "";
document.getElementById('pt_his_detail').focus();
}
}
function show_table3(id) {
if(id == 1) { // ถ้าเลือก radio button 1 ให้โชว์ table 1 และ ซ่อน table 2
document.getElementById("tableo3").style.display = "none";
} else if(id == 2) { // ถ้าเลือก radio button 2 ให้โชว์ table 2 และ ซ่อน table 1
document.getElementById("tableo3").style.display = "";
document.getElementById('pt_ar4_detail').focus();
}
}
function show_table4(id) {
if(id == 1) { // ถ้าเลือก radio button 1 ให้โชว์ table 1 และ ซ่อน table 2
document.getElementById("tableo4").style.display = "none";
} else if(id == 2) { // ถ้าเลือก radio button 2 ให้โชว์ table 2 และ ซ่อน table 1
document.getElementById("tableo4").style.display = "";
document.getElementById('pt_xray_detail').focus();
}
}
function show_table5(id) {
if(id == 1) { // ถ้าเลือก radio button 1 ให้โชว์ table 1 และ ซ่อน table 2
document.getElementById("tableo5").style.display = "none";
} else if(id == 2) { // ถ้าเลือก radio button 2 ให้โชว์ table 2 และ ซ่อน table 1
document.getElementById("tableo5").style.display = "none";
}else if(id == 3) { // ถ้าเลือก radio button 2 ให้โชว์ table 2 และ ซ่อน table 1
document.getElementById("tableo5").style.display = "none";
}else if(id == 4) { // ถ้าเลือก radio button 2 ให้โชว์ table 2 และ ซ่อน table 1
document.getElementById("tableo5").style.display = "none";
}else if(id == 5) { // ถ้าเลือก radio button 2 ให้โชว์ table 2 และ ซ่อน table 1
document.getElementById("tableo5").style.display = "none";
}else if(id == 6) { // ถ้าเลือก radio button 2 ให้โชว์ table 2 และ ซ่อน table 1
document.getElementById("tableo5").style.display = "none";
}else if(id == 7) { // ถ้าเลือก radio button 2 ให้โชว์ table 2 และ ซ่อน table 1
document.getElementById("tableo5").style.display = "none";
}else if(id == 8) { // ถ้าเลือก radio button 2 ให้โชว์ table 2 และ ซ่อน table 1
document.getElementById("tableo5").style.display = "none";
}else if(id == 9) { // ถ้าเลือก radio button 2 ให้โชว์ table 2 และ ซ่อน table 1
document.getElementById("tableo5").style.display = "none";
}else if(id == 10) { // ถ้าเลือก radio button 2 ให้โชว์ table 2 และ ซ่อน table 1
document.getElementById("tableo5").style.display = "";
document.getElementById('pt_dx_detail').focus();
}
}
function show_tablept(id) {
if(id == 1) { // ถ้าเลือก radio button 1 ให้โชว์ table 1 และ ซ่อน table 2
document.getElementById("tablepart2").style.display = "none";
document.getElementById("tablepart3").style.display = "none";
document.getElementById("tablepart4").style.display = "none";
document.getElementById("tablepart5").style.display = "none";
document.getElementById("tablepart6").style.display = "none";
} else if(id == 2) { // ถ้าเลือก radio button 2 ให้โชว์ table 2 และ ซ่อน table 1
document.getElementById("tablepart2").style.display = "";
document.getElementById("tablepart3").style.display = "none";
document.getElementById("tablepart4").style.display = "none";
document.getElementById("tablepart5").style.display = "none";
document.getElementById("tablepart6").style.display = "none";
}else if(id == 3) { // ถ้าเลือก radio button 2 ให้โชว์ table 2 และ ซ่อน table 1
document.getElementById("tablepart2").style.display = "none";
document.getElementById("tablepart3").style.display = "";
document.getElementById("tablepart4").style.display = "none";
document.getElementById("tablepart5").style.display = "none";
document.getElementById("tablepart6").style.display = "none";
}else if(id == 4) { // ถ้าเลือก radio button 2 ให้โชว์ table 2 และ ซ่อน table 1
document.getElementById("tablepart2").style.display = "none";
document.getElementById("tablepart3").style.display = "none";
document.getElementById("tablepart4").style.display = "";
document.getElementById("tablepart5").style.display = "none";
document.getElementById("tablepart6").style.display = "none";
}else if(id == 5) { // ถ้าเลือก radio button 2 ให้โชว์ table 2 และ ซ่อน table 1
document.getElementById("tablepart2").style.display = "none";
document.getElementById("tablepart3").style.display = "none";
document.getElementById("tablepart4").style.display = "none";
document.getElementById("tablepart5").style.display = "";
document.getElementById("tablepart6").style.display = "none";
}else if(id == 6) { // ถ้าเลือก radio button 2 ให้โชว์ table 2 และ ซ่อน table 1
document.getElementById("tablepart2").style.display = "none";
document.getElementById("tablepart3").style.display = "none";
document.getElementById("tablepart4").style.display = "none";
document.getElementById("tablepart5").style.display = "none";
document.getElementById("tablepart6").style.display = "";
}else if(id == 7) { // ถ้าเลือก radio button 2 ให้โชว์ table 2 และ ซ่อน table 1
document.getElementById("tablepart2").style.display = "none";
document.getElementById("tablepart3").style.display = "none";
document.getElementById("tablepart4").style.display = "none";
document.getElementById("tablepart5").style.display = "none";
document.getElementById("tablepart6").style.display = "none";
}
}
function show_tableadd(id) {
if(id == 1) { // ถ้าเลือก radio button 1 ให้โชว์ table 1 และ ซ่อน table 2
document.getElementById("tableadd1").style.display = "";
document.getElementById("tableadd2").style.display = "none";
}
if(id == 2) { // ถ้าเลือก radio button 1 ให้โชว์ table 1 และ ซ่อน table 2
document.getElementById("tableadd1").style.display = "none";
document.getElementById("tableadd2").style.display = "";
}
if(id == 3) { // ถ้าเลือก radio button 1 ให้โชว์ table 1 และ ซ่อน table 2
document.getElementById("tableadd1").style.display = "none";
document.getElementById("tableadd2").style.display = "";
}
if(id == 4) { // ถ้าเลือก radio button 1 ให้โชว์ table 1 และ ซ่อน table 2
document.getElementById("tableadd1").style.display = "none";
document.getElementById("tableadd2").style.display = "";
}
}
function show_tableadd3(id) {
if(id == 1) { // ถ้าเลือก radio button 1 ให้โชว์ table 1 และ ซ่อน table 2
document.getElementById("tableadd4").style.display = "";
document.getElementById("tableadd5").style.display = "";
}
if(id == 2) { // ถ้าเลือก radio button 1 ให้โชว์ table 1 และ ซ่อน table 2
document.getElementById("tableadd4").style.display = "";
document.getElementById("tableadd5").style.display = "";
}
if(id == 3) { // ถ้าเลือก radio button 1 ให้โชว์ table 1 และ ซ่อน table 2
document.getElementById("tableadd4").style.display = "";
document.getElementById("tableadd5").style.display = "";
}
if(id == 4) { // ถ้าเลือก radio button 1 ให้โชว์ table 1 และ ซ่อน table 2
document.getElementById("tableadd4").style.display = "";
document.getElementById("tableadd5").style.display = "";
}
if(id == 5) { // ถ้าเลือก radio button 1 ให้โชว์ table 1 และ ซ่อน table 2
document.getElementById("tableadd4").style.display = "none";
document.getElementById("tableadd5").style.display = "";
}
}
function show_tableadd4(id) {
if(id == 1) { // ถ้าเลือก radio button 1 ให้โชว์ table 1 และ ซ่อน table 2
document.getElementById("tableadd6").style.display = "";
}
if(id == 2) { // ถ้าเลือก radio button 1 ให้โชว์ table 1 และ ซ่อน table 2
document.getElementById("tableadd6").style.display = "none";
}
if(id == 4) { // ถ้าเลือก radio button 1 ให้โชว์ table 1 และ ซ่อน table 2
document.getElementById("tableadd6").style.display = "none";
}
if(id == 5) { // ถ้าเลือก radio button 1 ให้โชว์ table 1 และ ซ่อน table 2
document.getElementById("tableadd6").style.display = "none";
}
}
function CheckNum(){
if (event.keyCode < 48 || event.keyCode > 57){
event.returnValue = false;
}
}
function moveFocus1() {
document.myForm.pt_virus_detail.focus();
}
</script>
</head>
<body bgcolor="#E9E6DF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onLoad="MM_preloadImages('../../images/thai.gif','../../images/eng.gif','../../images/chaina.gif','../../images/object/topbar-thai-over.gif','../../images/object/topbar-english-over.gif','../images/bullet/lang_over_02_1.gif','../images/bullet/lang_over_01_1.gif')">
<table width="95%" height="26" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td background="../../images/main/main-t-bg.gif" bgcolor="#162C41" align="center"><p><img src="logo.png" width="150" height="150"><br>
</p></td>
</tr>
</table>
<table width="95%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
<tr>
<td width="1" bgcolor="#10202F"><img src="../../images/blank.gif" width="1" height="1"></td>
<td align="center" valign="top"><table width="100%" height="480" border="0" cellpadding="0" cellspacing="0">
<tr>
<td align="center" valign="top" bgcolor="#E9E6DF">
<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="16" valign="top" bgcolor="#C4BDB1"> </td>
<td align="center" valign="top" bgcolor="#C4BDB1"> </td>
<td valign="top" bgcolor="#C4BDB1"> </td>
</tr>
<tr>
<td width="20" valign="top" background="../images/object/border_03.gif"><img src="../images/object/border_16.gif" width="20" height="83"></td>
<td align="center" valign="top" bgcolor="#FFFFFF">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="15" height="300"> </td>
<td align="left" valign="top">
<div class="title1">
<br>
<? ###################################################
if($action=="add") {
$con="-";
$year=$inputYear-543;
$date=$year.$con.$inputMonth.$con.$inputDay;
$year2=$inputYear2-543;
$date2=$year2.$con.$inputMonth2.$con.$inputDay2;
$year3=$inputYear3-543;
$date3=$year3.$con.$inputMonth3.$con.$inputDay3;
$year4=$inputYear4-543;
$date4=$year4.$con.$inputMonth4.$con.$inputDay4;
$year5=$inputYear5-543;
$date5=$year5.$con.$inputMonth5.$con.$inputDay5;
$year6=$inputYear6-543;
$date6=$year6.$con.$inputMonth6.$con.$inputDay6;
$conc=":";
$pt_statuslabtime;
$pt_statuslabtime2;
$timeadd=$pt_statuslabtime.$conc.$pt_statuslabtime2;
if($date2=="-543--"||$date2=="0--"){ $date2=""; }
if($date3=="-543--"||$date3=="0--"){ $date3=""; }
if($date4=="-543--"||$date4=="0--"){ $date4=""; }
if($date5=="-543--"||$date5=="0--"){ $date5=""; }
if($date6=="-543--"||$date6=="0--"){ $date6=""; }
if($pt_statuscase=="4"){$choice=$pt_refer;}
if($pt_statuscase=="5"){$choice=$pt_refer1;}
if($pt_statuscase=="2"){$choice1=$date2;}
if($pt_statuscase=="3"){$choice1=$date3;}
if($pt_statuscase=="4"){$choice1=$date4;}
if($pt_statuscase=="5"){$choice1=$date5;}
if($pt_statuscase=="6"){$choice1=$date6;}
$sql = "update patient set Nameupdate='$namesave',Patient_statusupdate='$pt_statusnow',Patient_statuslab='$pt_statuslab',Patient_statuslab_time='$pt_level',Patient_statuslab_time='$timeadd',Patient_statuslab_date='$date',Patient_statusno='$pt_order',Patient_status_symptom='$pt_now',Patient_result='$pt_result',Patient_result_detail='$pt_result_detail',Patient_tnow='$pt_t_now',Patient_prnow='$pt_pr_now',Patient_rrnow='$pt_rr_now',Patient_bpnow='$pt_bp_now',Patient_o2now='$pt_o2_now',Patient_post='$pt_postdx',Patient_post_detail='$pt_postdx_detail',Patient_level='$pt_level',Patient_status_cure='$pt_statuscase',Patient_ox='$pt_ox',Patient_tube='$pt_tube',Patient_status_hosrefer='$choice',Patient_status_hosrefer_detail='$pt_refer_detail2$pt_refer_detail1',Patient_status_refer='$choice1',Patient_typebed='$pt_bed',Patient_typetreat='$pt_treat',update_byhos_id='$System_Session_User_ID',datetime_update=NOW() where Id='$Id'";
$Query=mysql_query($sql) or die(mysql_error());
if($pt_virus1!=""||$pt_virus2!=""||$pt_virus3!=""||$pt_virus4!=""||$pt_virus5!=""||$pt_virus6!=""||$pt_virus7!=""){
$sql = "delete from patient_virus where Idrefer_status='$Id'";
$query=mysql_query($sql);
}
if($pt_virus1!=""){
$sql = "INSERT INTO patient_virus VALUES (NULL,'$pt_virus1','$Id')";
$Query=mysql_query($sql) or die(mysql_error());
}if($pt_virus2!=""){
$sql = "INSERT INTO patient_virus VALUES (NULL,'$pt_virus2','$Id')";
$Query=mysql_query($sql) or die(mysql_error());
}if($pt_virus3!=""){
$sql = "INSERT INTO patient_virus VALUES (NULL,'$pt_virus3','$Id')";
$Query=mysql_query($sql) or die(mysql_error());
}if($pt_virus4!=""){
$sql = "INSERT INTO patient_virus VALUES (NULL,'$pt_virus4','$Id')";
$Query=mysql_query($sql) or die(mysql_error());
}if($pt_virus5!=""){
$sql = "INSERT INTO patient_virus VALUES (NULL,'$pt_virus5','$Id')";
$Query=mysql_query($sql) or die(mysql_error());
}if($pt_virus6!=""){
$sql = "INSERT INTO patient_virus VALUES (NULL,'$pt_virus6','$Id')";
$Query=mysql_query($sql) or die(mysql_error());
}if($pt_virus7!=""){
$sql = "INSERT INTO patient_virus VALUES (NULL,'$pt_virus_detail','$maxid')";
$Query=mysql_query($sql) or die(mysql_error());
}
$sql = "INSERT INTO patient_referedit (Id) VALUES (NULL)";
$Query=mysql_query($sql) or die(mysql_error());
$sql="select max(Id) from patient_referedit";
$query=mysql_query($sql);
$row=mysql_fetch_array($query);
$maxid=$row[0];
$sql = "update patient_referedit set Nameupdate='$namesave',Patient_statusupdate='$pt_statusnow',Patient_statuslab='$pt_statuslab',Patient_statuslab_time='$pt_level',Patient_statuslab_time='$timeadd',Patient_statuslab_date='$date',Patient_statusno='$pt_order',Patient_status_symptom='$pt_now',Patient_result='$pt_result',Patient_result_detail='$pt_result_detail',Patient_tnow='$pt_t_now',Patient_prnow='$pt_pr_now',Patient_rrnow='$pt_rr_now',Patient_bpnow='$pt_bp_now',Patient_o2now='$pt_o2_now',Patient_post='$pt_postdx',Patient_post_detail='$pt_postdx_detail',Patient_level='$pt_level',Patient_status_cure='$pt_statuscase',Patient_ox='$pt_ox',Patient_tube='$pt_tube',Patient_status_hosrefer='$choice',Patient_status_hosrefer_detail='$pt_refer_detail2$pt_refer_detail1',Patient_status_refer='$choice1',Patient_typebed='$pt_bed',Patient_typetreat='$pt_treat',update_byhos_id='$System_Session_User_ID',Idrefer='$Id',datetime_update=NOW() where Id='$maxid'";
$query=mysql_query($sql);
echo"
<br />
<br />
<br><br><br />
<br />
<br />
<br /><table width=400 height=100 border=1 bordercolor=#C6ECD9 align=center cellpadding=0 cellspacing=0 bgcolor=#EFEFEF>
<tr>
<td height=100><div align=center><span class=table_footer style1><br>
ระบบได้อัพเดทข้อมูลของท่านเรียบร้อยแล้ว</span><br>
ขอบคุณครับ<br />
<br />
<form id=form1 name=form1 method=post action=datalist_covid.php>
<input type=image src=btn-submit.gif name=Image15112 width=57 height=20 border=0 id=Image15 style=cursor:pointer; />
</form>
<br>
</div></td>
</tr>
</table> <br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
";
} else {
?>
<script src="FormManager.js">
</script>
<script type="text/javascript">
window.onload = function() {
setupDependencies('myForm'); //name of form(s). Seperate each with a comma (ie: 'weboptions', 'myotherform' )
};
</script>
<form name="myForm" id="myForm" method="post" >
<input name="action" id="action" type="hidden" value="<?=$action?>" />
<table width="95%" height="77" border="1" align="center" style="border-collapse:collapse" bordercolor="#8EADBF">
<tbody>
<tr bgcolor="#556c84">
<td align="center"><strong><font color="#FFFFFF"><br />
อัพเดทข้อมูลผู้ป่วย<br />
<br />
<? if($row[Patient_prefix]=="1"){echo"นาย";}if($row[Patient_prefix]=="2"){echo"นาง";} if($row[Patient_prefix]=="3"){echo"นางสาว";}if($row[Patient_prefix]=="4"){echo"ด.ช.";}if($row[Patient_prefix]=="5"){echo"ด.ญ.";}if($row[Patient_prefix]=="6"){echo"Mr.";}if($row[Patient_prefix]=="7"){echo"Miss.";} ?><?=$row[Patient_name]?> <?=$row[Patient_surname]?>
</font></strong><br />
<br /></td>
</tr>
</tbody>
</table>
<div align="center">
<font color="#FF0000"><strong>*จำเป็นต้องกรอกข้อมูล</strong></font></div><br />
<table width="95%" height="77" border="1" align="center" style="border-collapse:collapse" bordercolor="#8EADBF">
<tbody>
<tr>
<td><strong>ชื่อผู้อัพเดทข้อมูล</strong><strong><font color="#FF0000">*</font></strong>
<input type="text" name="namesave" id="namesave" value="<?=$row[Nameupdate]?>" />
<br />
ชื่อตามด้วยตัวย่อ รพ. ตัวอย่างเช่น ใจดี สพบ. , กระแต รพก</td>
</tr>
</tbody>
</table>
<br />
<table width="95%" height="171" border="1" align="center" style="border-collapse:collapse" bordercolor="#8EADBF">
<tbody>
<tr>
<td height="36" bgcolor="#a3b4c4"><strong>สถานะปัจจุบัน<font color="#FF0000">*</font></strong></td>
</tr>
<tr>
<td height="127"><input type="radio" name="pt_statusnow" id="pt_statusnow" value="1" onclick="show_tableadd(this.value);" <? if($row[Patient_statusupdate]=="1"){?> checked <? } ?> />
แจ้งผล LAB<br />
<input type="radio" name="pt_statusnow" id="pt_statusnow" value="2" onclick="show_tableadd(this.value);" <? if($row[Patient_statusupdate]=="2"){?> checked <? } ?> />
อัพเดทอาการ PUI<br />
<input type="radio" name="pt_statusnow" id="pt_statusnow" value="3" onclick="show_tableadd(this.value);" <? if($row[Patient_statusupdate]=="3"){?> checked <? } ?> />
อัพเดทอาการ Confirm <br />
<input type="radio" name="pt_statusnow" id="pt_statusnow" value="4" onclick="show_tableadd(this.value);" <? if($row[Patient_statusupdate]=="4"){?> checked <? } ?> />
<span jsslot="" role="presentation" jsname="bN97Pc">ยกเลิกการ Swab</span></td>
</tr>
</tbody>
</table>
<br /><div id="tableadd1" style="display: none">
<table width="95%" height="102" border="1" align="center" style="border-collapse:collapse" bordercolor="#8EADBF">
<tbody>
<tr>
<td height="36" bgcolor="#a3b4c4"><strong>ผล LAB<span id="i2" aria-label="คำถามที่ต้องตอบ"> </span><font color="#FF0000">*</font></strong></td>
</tr>
<tr>
<td height="58">
<table width="100%" border="0">
<tbody>
<tr>
<td>LAB <strong>เวลา<font color="#FF0000">*</font></strong>
<input type="text" name="pt_statuslabtime" id="pt_statuslabtime" maxlength="2" onkeypress="CheckNum()" value="<?=$timesub1?>" />
<strong>:
<input type="text" name="pt_statuslabtime2" id="pt_statuslabtime2" maxlength="2" onkeypress="CheckNum()" value="<?=$timesub2?>" />
วันที่</strong> <strong><font color="#FF0000">*</font></strong>
<select name="inputDay" id="inputDay">
<option value="" selected="selected">- - เลือกวันที่ -
-</option>
<option value="01" <? if($datedate1=="01"){?>selected<?}?>> 1 </option>
<option value="02" <? if($datedate1=="02"){?>selected<?}?>> 2 </option>
<option value="03" <? if($datedate1=="03"){?>selected<?}?>> 3 </option>
<option value="04" <? if($datedate1=="04"){?>selected<?}?>> 4 </option>
<option value="05" <? if($datedate1=="05"){?>selected<?}?>> 5 </option>
<option value="06" <? if($datedate1=="06"){?>selected<?}?>> 6 </option>
<option value="07" <? if($datedate1=="07"){?>selected<?}?>> 7 </option>
<option value="08" <? if($datedate1=="08"){?>selected<?}?>> 8 </option>
<option value="09" <? if($datedate1=="09"){?>selected<?}?>> 9 </option>
<option value="10" <? if($datedate1=="10"){?>selected<?}?>> 10 </option>
<option value="11" <? if($datedate1=="11"){?>selected<?}?>> 11 </option>
<option value="12" <? if($datedate1=="12"){?>selected<?}?>> 12 </option>
<option value="13" <? if($datedate1=="13"){?>selected<?}?>> 13 </option>
<option value="14" <? if($datedate1=="14"){?>selected<?}?>> 14 </option>
<option value="15" <? if($datedate1=="15"){?>selected<?}?>> 15 </option>
<option value="16" <? if($datedate1=="16"){?>selected<?}?>> 16 </option>
<option value="17" <? if($datedate1=="17"){?>selected<?}?>> 17 </option>
<option value="18" <? if($datedate1=="18"){?>selected<?}?>> 18 </option>
<option value="19" <? if($datedate1=="19"){?>selected<?}?>> 19 </option>
<option value="20" <? if($datedate1=="20"){?>selected<?}?>> 20 </option>
<option value="21" <? if($datedate1=="21"){?>selected<?}?>> 21 </option>
<option value="22" <? if($datedate1=="22"){?>selected<?}?>> 22 </option>
<option value="23" <? if($datedate1=="23"){?>selected<?}?>> 23 </option>
<option value="24" <? if($datedate1=="24"){?>selected<?}?>> 24 </option>
<option value="25" <? if($datedate1=="25"){?>selected<?}?>> 25 </option>
<option value="26" <? if($datedate1=="26"){?>selected<?}?>> 26 </option>
<option value="27" <? if($datedate1=="27"){?>selected<?}?>> 27 </option>
<option value="28" <? if($datedate1=="28"){?>selected<?}?>> 28 </option>
<option value="29" <? if($datedate1=="29"){?>selected<?}?>> 29 </option>
<option value="30" <? if($datedate1=="30"){?>selected<?}?>> 30 </option>
<option value="31" <? if($datedate1=="31"){?>selected<?}?>> 31 </option>
</select>
เดือน
<select name="inputMonth" id="inputMonth">
<option value="" selected="selected">- - เลือกเดือน - -</option>
<option value="01" <? if($datemonth1=="01"){?>selected<?}?>> มกราคม </option>
<option value="02" <? if($datemonth1=="02"){?>selected<?}?>> กุมภาพันธ์ </option>
<option value="03" <? if($datemonth1=="03"){?>selected<?}?>> มีนาคม </option>
<option value="04" <? if($datemonth1=="04"){?>selected<?}?>> เมษายน </option>
<option value="05" <? if($datemonth1=="05"){?>selected<?}?>> พฤษภาคม </option>
<option value="06" <? if($datemonth1=="06"){?>selected<?}?>> มิถุนายน </option>
<option value="07" <? if($datemonth1=="07"){?>selected<?}?>> กรกฎาคม </option>
<option value="08" <? if($datemonth1=="08"){?>selected<?}?>> สิงหาคม </option>
<option value="09" <? if($datemonth1=="09"){?>selected<?}?>> กันยายน </option>
<option value="10" <? if($datemonth1=="10"){?>selected<?}?>> ตุลาคม </option>
<option value="11" <? if($datemonth1=="11"){?>selected<?}?>> พฤศจิกายน </option>
<option value="12" <? if($datemonth1=="12"){?>selected<?}?>> ธันวาคม </option>
</select>
พ.ศ.
<select name="inputYear" id="inputYear">
<option value="" selected="selected">- - เลือกปี - -</option>
<option value="2562"> 2562 </option>
<option value="2563"> 2563 </option>
<option value="2564"> 2564 </option>
<option value="2565"> 2565 </option>
</select></td>
</tr>
</tbody>
</table></td>
</tr>
</tbody>
</table></div>
<br />
<div id="tableadd2" style="display: none">
<table width="95%" height="72" border="1" align="center" style="border-collapse:collapse" bordercolor="#8EADBF">
<tbody>
<tr>
<td height="58"><strong>อาการปัจจุบัน<span id="i30" aria-label="คำถามที่ต้องตอบ"> </span></strong>
<input type="text" name="pt_now" id="pt_now" value="<?=$row[Patient_symptom]?>" /></td>
</tr>
</tbody>
</table>
<br />
<table width="95%" height="72" border="1" align="center" style="border-collapse:collapse" bordercolor="#8EADBF">
<tbody>
<tr>
<td height="58"><strong>ผลตรวจ<span id="i31" aria-label="คำถามที่ต้องตอบ"> </span><font color="#FF0000">*</font></strong><br />
<input type="radio" name="pt_result" id="pt_result" value="1" onclick="show_tableadd4(this.value);" <? if($row[Patient_result]=="1"){?> checked <? } ?> />
Detectable<br />
<input type="radio" name="pt_result" id="pt_result" value="2" onclick="show_tableadd4(this.value);" <? if($row[Patient_result]=="2"){?> checked <? } ?> />
Undetectable<br />
<input type="radio" name="pt_result" id="pt_result" value="4" onclick="show_tableadd4(this.value);" <? if($row[Patient_result]=="4"){?> checked <? } ?> />
<span jsslot="" role="presentation" jsname="bN97Pc">ยกเลิกการ Swab</span> <br />
<input type="radio" name="pt_result" id="pt_result" value="5" onclick="show_tableadd4(this.value);" <? if($row[Patient_result]=="5"){?> checked <? } ?> />
<span jsslot="" role="presentation" jsname="bN97Pc">อื่น ๆ</span>
<input type="text" name="pt_result_detail" id="pt_result_detail" value="<?=$row[Patient_result_detail]?>" /></td>
</tr>
</tbody>
</table>
<br />
<div id="tableadd6" style="display: none">
<table width="95%" height="72" border="1" align="center" style="border-collapse:collapse" bordercolor="#8EADBF">
<tbody>
<tr>
<td height="58"><strong>T องศา (ปัจจุบัน)<span id="i32" aria-label="คำถามที่ต้องตอบ"> </span><font color="#FF0000">
<input type="text" name="pt_t_now" id="pt_t_now" value="<?=$row[Patient_tnow]?>" />
</font></strong></td>
</tr>
</tbody>
</table>
<br />
<table width="95%" height="72" border="1" align="center" style="border-collapse:collapse" bordercolor="#8EADBF">
<tbody>
<tr>
<td height="58"><strong>PR (ปัจจุบัน)<font color="#FF0000">
<input type="text" name="pt_pr_now" id="pt_pr_now" value="<?=$row[Patient_prnow]?>" />
</font></strong></td>
</tr>
</tbody>
</table>
<br />
<table width="95%" height="72" border="1" align="center" style="border-collapse:collapse" bordercolor="#8EADBF">
<tbody>
<tr>
<td height="58"><strong>RR (ปัจจุบัน)<span id="i33" aria-label="คำถามที่ต้องตอบ"> </span><font color="#FF0000">
<input type="text" name="pt_rr_now" id="pt_rr_now" value="<?=$row[Patient_rrnow]?>" />
</font></strong></td>
</tr>
</tbody>
</table>
<br />
<table width="95%" height="72" border="1" align="center" style="border-collapse:collapse" bordercolor="#8EADBF">
<tbody>
<tr>
<td height="58"><strong>BP (ปัจจุบัน)<font color="#FF0000">
<input type="text" name="pt_bp_now" id="pt_bp_now" value="<?=$row[Patient_bpnow]?>" />
</font></strong></td>
</tr>
</tbody>
</table>
<br />
<table width="95%" height="72" border="1" align="center" style="border-collapse:collapse" bordercolor="#8EADBF">
<tbody>
<tr>
<td height="58"><strong>O2sat (ปัจจุบัน)<font color="#FF0000">
<input type="text" name="pt_o2_now" id="pt_o2_now" value="<?=$row[Patient_o2now]?>" />
</font></strong></td>
</tr>
</tbody>
</table>
</div>
<br />
<table width="95%" height="72" border="1" align="center" style="border-collapse:collapse" bordercolor="#8EADBF">
<tbody>
<tr>
<td height="58"><strong>Post Dx<span id="i35" aria-label="คำถามที่ต้องตอบ"> </span><font color="#FF0000"><br />
</font></strong>
<input type="radio" name="pt_postdx" id="pt_postdx" value="1" <? if($row[Patient_post]=="1"){?> checked <? } ?> />
ไม่มีข้อมูล <br />
<input type="radio" name="pt_postdx" id="pt_postdx" value="2" <? if($row[Patient_post]=="2"){?> checked <? } ?> />
<span dir="auto">COVID-19</span><br />
<input type="radio" name="pt_postdx" id="pt_postdx" value="3" <? if($row[Patient_post]=="3"){?> checked <? } ?> />
อื่น ๆ <strong><font color="#FF0000">
<input type="text" name="pt_postdx_detail" id="pt_postdx_detail" value="<?=$row[Patient_post_detail]?>" />
</font></strong></td>
</tr>
</tbody>
</table>
<br />
<table width="95%" height="72" border="1" align="center" style="border-collapse:collapse" bordercolor="#8EADBF">
<tbody>
<tr>
<td height="58"><strong>ระดับความรุนแรง<span id="i36" aria-label="คำถามที่ต้องตอบ"></span><font color="#FF0000">*</font></strong><br />
<input type="radio" name="pt_level" id="pt_level" value="1" onclick="show_tableadd3(this.value);" <? if($row[Patient_level]=="1"){?> checked <? } ?> />
สีเขียว (Mild)<br />
<input type="radio" name="pt_level" id="pt_level" value="2" onclick="show_tableadd3(this.value);" <? if($row[Patient_level]=="2"){?> checked <? } ?> />
สีเหลือง (Pneumonia)<br />
<input type="radio" name="pt_level" id="pt_level" value="3" onclick="show_tableadd3(this.value);" <? if($row[Patient_level]=="3"){?> checked <? } ?> />
สีแดง (Severe)<br />
<input type="radio" name="pt_level" id="pt_level" value="4" onclick="show_tableadd3(this.value);" <? if($row[Patient_level]=="4"){?> checked <? } ?> />
ไม่แสดงอาการ (Asymtomatic)<br />
<input type="radio" name="pt_level" id="pt_level" value="5" onclick="show_tableadd3(this.value);" <? if($row[Patient_level]=="5"){?> checked <? } ?> />
ไม่ใช่ Confirm case</td>
</tr>
</tbody>
</table><br /><table width="95%" height="72" border="1" align="center" style="border-collapse:collapse" bordercolor="#8EADBF">
<tbody>
<tr>
<td height="58"><strong>ประเภทเตียง<span id="i36" aria-label="คำถามที่ต้องตอบ"></span><font color="#FF0000">*</font></strong><br />
<input type="radio" name="pt_bed" id="pt_bed" value="1" <? if($row[Patient_typebed]=="1"){?> checked <? } ?> />
AIIR<br />
<input type="radio" name="pt_bed" id="pt_bed" value="2" <? if($row[Patient_typebed]=="2"){?> checked <? } ?> />
Modified AIIR<br />
<input type="radio" name="pt_bed" id="pt_bed" value="3" <? if($row[Patient_typebed]=="3"){?> checked <? } ?> />
Isolate room<br />
<input type="radio" name="pt_bed" id="pt_bed" value="4" <? if($row[Patient_typebed]=="4"){?> checked <? } ?> />
Cohort ward</td>
</tr>
</tbody>
</table>
</div>
<br />
<div id="tableadd4" style="display: none">
<table width="95%" height="102" border="1" align="center" style="border-collapse:collapse" bordercolor="#8EADBF">
<tbody>
<tr>
<td height="36" bgcolor="#a3b4c4"><strong>การรักษา</strong></td>
</tr>
<tr>
<td height="58"><strong><span id="i38" aria-label="คำถามที่ต้องตอบ"></span><br />
การใช้ออกซิเจน Cannula/mask with bag</strong><strong><font color="#FF0000">*</font></strong>
<input type="radio" name="pt_ox" id="pt_ox" value="0" <? if($row[Patient_ox]=="0"){?> checked <? } ?> />
ใช้
<input type="radio" name="pt_ox" id="pt_ox" value="1" <? if($row[Patient_ox]=="1"){?> checked <? } ?> />
ไม่ใช้</td>
</tr>
</tbody>
</table>
<br />
<table width="95%" height="72" border="1" align="center" style="border-collapse:collapse" bordercolor="#8EADBF">
<tbody>
<tr>
<td height="58"><strong>Tube/Respirator</strong> <strong><font color="#FF0000">*</font></strong>
<input type="radio" name="pt_tube" id="pt_tube" value="0" <? if($row[Patient_tube]=="0"){?> checked <? } ?> />
ใส่ Tube/Respirator
<input type="radio" name="pt_tube" id="pt_tube" value="1" <? if($row[Patient_tube]=="1"){?> checked <? } ?> />
ไม่ใส่ Tube/Respirator</td>
</tr>
</tbody>
</table>
<br />
<table width="95%" height="72" border="1" align="center" style="border-collapse:collapse" bordercolor="#8EADBF">
<tbody>
<tr>
<td height="58"><strong>การได้รับยาต้านไวรัส</strong> <strong><font color="#FF0000">*</font></strong><br />
เลือกได้มากกว่า 1 ข้อ<br />
<strong>
<?
$sql="select * from patient_virus where Idrefer_status='$Id' and Name='Chloroquine/hydroxychloroquine'";
$query=mysql_query($sql);
$num=mysql_num_rows($query);
$sql2="select * from patient_virus where Idrefer_status='$Id' and Name='Lopinavir/ritonavir (LPV/r)'";
$query2=mysql_query($sql2);
$num2=mysql_num_rows($query2);
$sql3="select * from patient_virus where Idrefer_status='$Id' and Name='Darunavir (DRV)+ritonavir'";
$query3=mysql_query($sql3);
$num3=mysql_num_rows($query3);
$sql4="select * from patient_virus where Idrefer_status='$Id' and Name='Favipiravir'";
$query4=mysql_query($sql4);
$num4=mysql_num_rows($query4);
$sql5="select * from patient_virus where Idrefer_status='$Id' and Name='Azithromycin'";
$query5=mysql_query($sql5);
$num5=mysql_num_rows($query5);
$sql6="select * from patient_virus where Idrefer_status='$Id' and Name='ไม่ได้รับยา'";
$query6=mysql_query($sql6);
$num6=mysql_num_rows($query6);
$sql7="select * from patient_virus order by Id desc and Name!='ไม่ได้รับยา'";
$query7=mysql_query($sql7);
$row7=mysql_fetch_array($sql7);
$num7=mysql_num_rows($query7);
?>
<input type="checkbox" name="pt_virus1" id="pt_virus1" value="Chloroquine/hydroxychloroquine" <? if($num==1){ ?>checked <? } ?> />
</strong><span dir="auto">Chloroquine/hydroxychloroquine</span><br />
<strong>
<input type="checkbox" name="pt_virus2" id="pt_virus2" value="Lopinavir/ritonavir (LPV/r)" <? if($num2==1){ ?>checked <? } ?> />
</strong><span dir="auto">Lopinavir/ritonavir (LPV/r)</span><br />
<strong>
<input type="checkbox" name="pt_virus3" id="pt_virus3" value="Darunavir (DRV)+ritonavir" <? if($num3==1){ ?>checked <? } ?> />
</strong><span dir="auto">Darunavir (DRV)+ritonavir</span><br />
<strong>
<input type="checkbox" name="pt_virus4" id="pt_virus4" value="Favipiravir" <? if($num4==1){ ?>checked <? } ?> />
</strong>Favipiravir<br />
<strong>
<input type="checkbox" name="pt_virus5" id="pt_virus5" value="Azithromycin" <? if($num5==1){ ?>checked <? } ?> />
</strong>Azithromycin<br />
<strong>
<input type="checkbox" name="pt_virus6" id="pt_virus6" value="ไม่ได้รับยา" <? if($num6==1){ ?>checked <? } ?> />
</strong>ไม่ได้รับยา<br />
<strong>
<input type="checkbox" name="pt_virus7" id="pt_virus7" value="อื่นๆ" onClick="moveFocus1()" <? if($num7==1){ ?>checked <? } ?> />
</strong><span dir="auto">อื่นๆ </span><strong><font color="#FF0000">
<input type="text" name="pt_virus_detail" id="pt_virus_detail" value="<?=$row7[Name]?>" />
</font></strong></td>
</tr>
</tbody>
</table><br />
<table width="95%" height="72" border="1" align="center" style="border-collapse:collapse" bordercolor="#8EADBF">
<tbody>
<tr>
<td height="58"><strong>สิทธิการรักษา<span id="i36" aria-label="คำถามที่ต้องตอบ"></span><font color="#FF0000">*</font></strong><br /><strong>คนไทย</strong><br />
<input type="radio" name="pt_treat" id="pt_treat" value="1" <? if($row[Patient_typetreat]=="1"){?> checked <? } ?> />สปสช
<br />
<input type="radio" name="pt_treat" id="pt_treat" value="2" <? if($row[Patient_typetreat]=="2"){?> checked <? } ?> />
ประกันสังคม<br />
<strong>แรงงานต่างด้าว</strong><br />
<input type="radio" name="pt_treat" id="pt_treat" value="3" <? if($row[Patient_typetreat]=="3"){?> checked <? } ?> />
ประกันสุขภาพ<br />
<input type="radio" name="pt_treat" id="pt_treat" value="4" <? if($row[Patient_typetreat]=="4"){?> checked <? } ?> />
ประกันสังคม<br />
<input type="radio" name="pt_treat" id="pt_treat" value="5" <? if($row[Patient_typetreat]=="5"){?> checked <? } ?> />
ไม่มีสิทธิ<br />
<input type="radio" name="pt_treat" id="pt_treat" value="6" <? if($row[Patient_typetreat]=="6"){?> checked <? } ?> />
กรมบัญชีกลาง
</td>
</tr>
</tbody>
</table>
</div>
<br />
<table width="95%" height="102" border="1" align="center" style="border-collapse:collapse;display: none" bordercolor="#8EADBF" id="tableadd5">
<tbody>
<tr>
<td height="36" bgcolor="#a3b4c4"><strong>สถานะผู้ป่วย<font color="#FF0000">*</font></strong></td>
</tr>
<tr>
<td height="58">
<input type="radio" name="pt_statuscase" id="pt_statuscase" value="1" onclick="show_tablept(this.value);" <? if($row[Patient_status_cure]=="1"){?> checked <? } ?> />
<span dir="auto">รักษาตัวอยู่ รพ.</span><br />
<input type="radio" name="pt_statuscase" id="pt_statuscase" value="2" onclick="show_tablept(this.value);" <? if($row[Patient_status_cure]=="2"){?> checked <? } ?> />
จำหน่ายออกจากผู้ป่วย PUI
<div id="tablepart2" style="display: none">
วันที่จำหน่ายออก/Refer<strong><font color="#FF0000">*</font></strong>
<select name="inputDay2" id="inputDay2">
<option value="" selected="selected">- - เลือกวันที่ -
-</option>
<option value="01" <? if($datedate2=="01"){?>selected<?}?>> 1 </option>
<option value="02" <? if($datedate2=="02"){?>selected<?}?>> 2 </option>
<option value="03" <? if($datedate2=="03"){?>selected<?}?>> 3 </option>
<option value="04" <? if($datedate2=="04"){?>selected<?}?>> 4 </option>
<option value="05" <? if($datedate2=="05"){?>selected<?}?>> 5 </option>
<option value="06" <? if($datedate2=="06"){?>selected<?}?>> 6 </option>
<option value="07" <? if($datedate2=="07"){?>selected<?}?>> 7 </option>
<option value="08" <? if($datedate2=="08"){?>selected<?}?>> 8 </option>
<option value="09" <? if($datedate2=="09"){?>selected<?}?>> 9 </option>
<option value="10" <? if($datedate2=="10"){?>selected<?}?>> 10 </option>
<option value="11" <? if($datedate2=="11"){?>selected<?}?>> 11 </option>
<option value="12" <? if($datedate2=="12"){?>selected<?}?>> 12 </option>
<option value="13" <? if($datedate2=="13"){?>selected<?}?>> 13 </option>
<option value="14" <? if($datedate2=="14"){?>selected<?}?>> 14 </option>
<option value="15" <? if($datedate2=="15"){?>selected<?}?>> 15 </option>
<option value="16" <? if($datedate2=="16"){?>selected<?}?>> 16 </option>
<option value="17" <? if($datedate2=="17"){?>selected<?}?>> 17 </option>
<option value="18" <? if($datedate2=="18"){?>selected<?}?>> 18 </option>
<option value="19" <? if($datedate2=="19"){?>selected<?}?>> 19 </option>
<option value="20" <? if($datedate2=="20"){?>selected<?}?>> 20 </option>
<option value="21" <? if($datedate2=="21"){?>selected<?}?>> 21 </option>
<option value="22" <? if($datedate2=="22"){?>selected<?}?>> 22 </option>
<option value="23" <? if($datedate2=="23"){?>selected<?}?>> 23 </option>
<option value="24" <? if($datedate2=="24"){?>selected<?}?>> 24 </option>
<option value="25" <? if($datedate2=="25"){?>selected<?}?>> 25 </option>
<option value="26" <? if($datedate2=="26"){?>selected<?}?>> 26 </option>
<option value="27" <? if($datedate2=="27"){?>selected<?}?>> 27 </option>
<option value="28" <? if($datedate2=="28"){?>selected<?}?>> 28 </option>
<option value="29" <? if($datedate2=="29"){?>selected<?}?>> 29 </option>
<option value="30" <? if($datedate2=="30"){?>selected<?}?>> 30 </option>
<option value="31" <? if($datedate2=="31"){?>selected<?}?>> 31 </option>
</select>
เดือน
<select name="inputMonth2" id="inputMonth2">
<option value="" selected="selected">- - เลือกเดือน - -</option>
<option value="01" <? if($datemonth2=="01"){?>selected<?}?>> มกราคม </option>
<option value="02" <? if($datemonth2=="02"){?>selected<?}?>> กุมภาพันธ์ </option>
<option value="03" <? if($datemonth2=="03"){?>selected<?}?>> มีนาคม </option>
<option value="04" <? if($datemonth2=="04"){?>selected<?}?>> เมษายน </option>
<option value="05" <? if($datemonth2=="05"){?>selected<?}?>> พฤษภาคม </option>
<option value="06" <? if($datemonth2=="06"){?>selected<?}?>> มิถุนายน </option>
<option value="07" <? if($datemonth2=="07"){?>selected<?}?>> กรกฎาคม </option>
<option value="08" <? if($datemonth2=="08"){?>selected<?}?>> สิงหาคม </option>
<option value="09" <? if($datemonth2=="09"){?>selected<?}?>> กันยายน </option>
<option value="10" <? if($datemonth2=="10"){?>selected<?}?>> ตุลาคม </option>
<option value="11" <? if($datemonth2=="11"){?>selected<?}?>> พฤศจิกายน </option>
<option value="12" <? if($datemonth2=="12"){?>selected<?}?>> ธันวาคม </option>
</select>
พ.ศ.
<select name="inputYear2" id="inputYear2">
<option value="" selected="selected">- - เลือกปี - -</option>
<option value="2562" <? if($dateyear2=="2562"){?>selected<?}?>> 2562 </option>
<option value="2563" <? if($dateyear2=="2563"){?>selected<?}?>> 2563 </option>
<option value="2564" <? if($dateyear2=="2564"){?>selected<?}?>> 2564 </option>
<option value="2565" <? if($dateyear2=="2565"){?>selected<?}?>> 2565 </option>
</select>
</div>
<br />
<input type="radio" name="pt_statuscase" id="pt_statuscase" value="3" onclick="show_tablept(this.value);" <? if($row[Patient_status_cure]=="3"){?> checked <? } ?> />
D/C + Home Quarantine
<div id="tablepart3" style="display: none">
วันที่จำหน่ายออก/Refer<strong><font color="#FF0000">*</font></strong>
<select name="inputDay3" id="inputDay3">
<option value="" selected="selected">- - เลือกวันที่ -
-</option>
<option value="01" <? if($datedate2=="01"){?>selected<?}?>> 1 </option>
<option value="02" <? if($datedate2=="02"){?>selected<?}?>> 2 </option>
<option value="03" <? if($datedate2=="03"){?>selected<?}?>> 3 </option>
<option value="04" <? if($datedate2=="04"){?>selected<?}?>> 4 </option>
<option value="05" <? if($datedate2=="05"){?>selected<?}?>> 5 </option>
<option value="06" <? if($datedate2=="06"){?>selected<?}?>> 6 </option>
<option value="07" <? if($datedate2=="07"){?>selected<?}?>> 7 </option>
<option value="08" <? if($datedate2=="08"){?>selected<?}?>> 8 </option>
<option value="09" <? if($datedate2=="09"){?>selected<?}?>> 9 </option>
<option value="10" <? if($datedate2=="10"){?>selected<?}?>> 10 </option>
<option value="11" <? if($datedate2=="11"){?>selected<?}?>> 11 </option>
<option value="12" <? if($datedate2=="12"){?>selected<?}?>> 12 </option>
<option value="13" <? if($datedate2=="13"){?>selected<?}?>> 13 </option>
<option value="14" <? if($datedate2=="14"){?>selected<?}?>> 14 </option>
<option value="15" <? if($datedate2=="15"){?>selected<?}?>> 15 </option>
<option value="16" <? if($datedate2=="16"){?>selected<?}?>> 16 </option>
<option value="17" <? if($datedate2=="17"){?>selected<?}?>> 17 </option>
<option value="18" <? if($datedate2=="18"){?>selected<?}?>> 18 </option>
<option value="19" <? if($datedate2=="19"){?>selected<?}?>> 19 </option>
<option value="20" <? if($datedate2=="20"){?>selected<?}?>> 20 </option>
<option value="21" <? if($datedate2=="21"){?>selected<?}?>> 21 </option>
<option value="22" <? if($datedate2=="22"){?>selected<?}?>> 22 </option>
<option value="23" <? if($datedate2=="23"){?>selected<?}?>> 23 </option>
<option value="24" <? if($datedate2=="24"){?>selected<?}?>> 24 </option>
<option value="25" <? if($datedate2=="25"){?>selected<?}?>> 25 </option>
<option value="26" <? if($datedate2=="26"){?>selected<?}?>> 26 </option>
<option value="27" <? if($datedate2=="27"){?>selected<?}?>> 27 </option>
<option value="28" <? if($datedate2=="28"){?>selected<?}?>> 28 </option>
<option value="29" <? if($datedate2=="29"){?>selected<?}?>> 29 </option>
<option value="30" <? if($datedate2=="30"){?>selected<?}?>> 30 </option>
<option value="31" <? if($datedate2=="31"){?>selected<?}?>> 31 </option>
</select>
เดือน
<select name="inputMonth3" id="inputMonth3">
<option value="" selected="selected">- - เลือกเดือน - -</option>
<option value="01" <? if($datemonth2=="01"){?>selected<?}?>> มกราคม </option>
<option value="02" <? if($datemonth2=="02"){?>selected<?}?>> กุมภาพันธ์ </option>
<option value="03" <? if($datemonth2=="03"){?>selected<?}?>> มีนาคม </option>
<option value="04" <? if($datemonth2=="04"){?>selected<?}?>> เมษายน </option>
<option value="05" <? if($datemonth2=="05"){?>selected<?}?>> พฤษภาคม </option>
<option value="06" <? if($datemonth2=="06"){?>selected<?}?>> มิถุนายน </option>
<option value="07" <? if($datemonth2=="07"){?>selected<?}?>> กรกฎาคม </option>
<option value="08" <? if($datemonth2=="08"){?>selected<?}?>> สิงหาคม </option>
<option value="09" <? if($datemonth2=="09"){?>selected<?}?>> กันยายน </option>
<option value="10" <? if($datemonth2=="10"){?>selected<?}?>> ตุลาคม </option>
<option value="11" <? if($datemonth2=="11"){?>selected<?}?>> พฤศจิกายน </option>
<option value="12" <? if($datemonth2=="12"){?>selected<?}?>> ธันวาคม </option>
</select>
พ.ศ.
<select name="inputYear3" id="inputYear3">
<option value="" selected="selected">- - เลือกปี - -</option>
<option value="2562" <? if($dateyear2=="2562"){?>selected<?}?>> 2562 </option>
<option value="2563" <? if($dateyear2=="2563"){?>selected<?}?>> 2563 </option>
<option value="2564" <? if($dateyear2=="2564"){?>selected<?}?>> 2564 </option>
<option value="2565" <? if($dateyear2=="2565"){?>selected<?}?>> 2565 </option>
</select>
</div>
<br />
<input type="radio" name="pt_statuscase" id="pt_statuscase" value="4" onclick="show_tablept(this.value);" <? if($row[Patient_status_cure]=="4"){?> checked <? } ?> />
Refer ไป รพ.นอกสังกัด
<div id="tablepart4" style="display: none">
<p>หมายเหตุ Refer ไป<strong><font color="#FF0000">*</font></strong></p>
<p>โรงพยาบาลหลัก<br />
<input type="radio" name="pt_refer" id="pt_refer" value="1" <? if($row[Patient_status_hosrefer]=="1"){?> checked <? } ?> />
กลาง<br />
<input type="radio" name="pt_refer" id="pt_refer" value="2" <? if($row[Patient_status_hosrefer]=="2"){?> checked <? } ?> />
ตากสิน<br />
<input type="radio" name="pt_refer" id="pt_refer" value="3" <? if($row[Patient_status_hosrefer]=="3"){?> checked <? } ?> />
เจริญกรุงประชารักษ์<br />
<input type="radio" name="pt_refer" id="pt_refer" value="4" <? if($row[Patient_status_hosrefer]=="4"){?> checked <? } ?> />
<span jsslot="" role="presentation" jsname="bN97Pc">หลวงพ่อทวีศักดิ์ ชุตินฺธโร อุทิศ</span><br />
<input type="radio" name="pt_refer" id="pt_refer" value="5" <? if($row[Patient_status_hosrefer]=="5"){?> checked <? } ?> />
เวชการุณย์รัศมิ์<br />
<input type="radio" name="pt_refer" id="pt_refer" value="6" <? if($row[Patient_status_hosrefer]=="6"){?> checked <? } ?> />
ลาดกระบังกรุงเทพมหานคร<br />
<input type="radio" name="pt_refer" id="pt_refer" value="7" <? if($row[Patient_status_hosrefer]=="7"){?> checked <? } ?> />
ราชพิพัฒน์<br />
<input type="radio" name="pt_refer" id="pt_refer" value="8" <? if($row[Patient_status_hosrefer]=="8"){?> checked <? } ?> />
สิรินธร<br />
<input type="radio" name="pt_refer" id="pt_refer" value="9" <? if($row[Patient_status_hosrefer]=="9"){?> checked <? } ?> />
คลองสามวา <br />
<input type="radio" name="pt_refer" id="pt_refer" value="10" <? if($row[Patient_status_hosrefer]=="10"){?> checked <? } ?> />
บางนากรุงเทพมหานคร<br />
โรงพยาบาลสนาม <br />
<input type="radio" name="pt_refer" id="pt_refer" value="11" <? if($row[Patient_status_hosrefer]=="11"){?> checked <? } ?> />
ผู้สูงอายุบางขุนเทียน<br />
<input type="radio" name="pt_refer" id="pt_refer" value="12" <? if($row[Patient_status_hosrefer]=="12"){?> checked <? } ?> />
รพ.สนามราชพิพัฒน์ <br />
<input type="radio" name="pt_refer" id="pt_refer" value="13" <? if($row[Patient_status_hosrefer]=="13"){?> checked <? } ?> />
<span jsslot="" role="presentation" jsname="bN97Pc">รพ.สนามเอราวัณ 1 (รพท)</span><br />
<input type="radio" name="pt_refer" id="pt_refer" value="14" <? if($row[Patient_status_hosrefer]=="14"){?> checked <? } ?> />
<span jsslot="" role="presentation" jsname="bN97Pc">รพ.สนามเอราวัณ 2 (รพว)<br />
<input type="radio" name="pt_refer" id="pt_refer" value="15" <? if($row[Patient_status_hosrefer]=="15"){?> checked <? } ?> />
<span jsslot="" role="presentation" jsname="bN97Pc">รพ.สนามเอราวัณ 3 (รพจ)</span></span><br />
<input type="radio" name="pt_refer" id="pt_refer" value="16" <? if($row[Patient_status_hosrefer]=="16"){?> checked <? } ?> />
<span jsslot="" role="presentation" jsname="bN97Pc">รพ.กลาง (Hospitel)</span> <br />
<input type="radio" name="pt_refer" id="pt_refer" value="17" <? if($row[Patient_status_hosrefer]=="17"){?> checked <? } ?> />
<span jsslot="" role="presentation" jsname="bN97Pc">Elegant Airport (รพส. Hospitel)</span><br />
<input type="radio" name="pt_refer" id="pt_refer" value="18" <? if($row[Patient_status_hosrefer]=="18"){?> checked <? } ?> />
<span jsslot="" role="presentation" jsname="bN97Pc">โรงแรมบ้านไทย (รพต. Hospitel)</span><br />
<input type="radio" name="pt_refer" id="pt_refer" value="19" <? if($row[Patient_status_hosrefer]=="19"){?> checked <? } ?> />
<span jsslot="" role="presentation" jsname="bN97Pc">อื่น ๆ</span>
<input type="text" name="pt_refer_detail2" id="pt_refer_detail2" value="<?=$row[Patient_status_hosrefer_detail]?>" /><br /><br />
วันที่จำหน่ายออก/Refer<strong><font color="#FF0000">*</font></strong>
<select name="inputDay4" id="inputDay4">
<option value="" selected="selected">- - เลือกวันที่ -
-</option>
<option value="01" <? if($datedate2=="01"){?>selected<?}?>> 1 </option>
<option value="02" <? if($datedate2=="02"){?>selected<?}?>> 2 </option>
<option value="03" <? if($datedate2=="03"){?>selected<?}?>> 3 </option>
<option value="04" <? if($datedate2=="04"){?>selected<?}?>> 4 </option>
<option value="05" <? if($datedate2=="05"){?>selected<?}?>> 5 </option>
<option value="06" <? if($datedate2=="06"){?>selected<?}?>> 6 </option>
<option value="07" <? if($datedate2=="07"){?>selected<?}?>> 7 </option>
<option value="08" <? if($datedate2=="08"){?>selected<?}?>> 8 </option>
<option value="09" <? if($datedate2=="09"){?>selected<?}?>> 9 </option>
<option value="10" <? if($datedate2=="10"){?>selected<?}?>> 10 </option>
<option value="11" <? if($datedate2=="11"){?>selected<?}?>> 11 </option>
<option value="12" <? if($datedate2=="12"){?>selected<?}?>> 12 </option>
<option value="13" <? if($datedate2=="13"){?>selected<?}?>> 13 </option>
<option value="14" <? if($datedate2=="14"){?>selected<?}?>> 14 </option>
<option value="15" <? if($datedate2=="15"){?>selected<?}?>> 15 </option>
<option value="16" <? if($datedate2=="16"){?>selected<?}?>> 16 </option>
<option value="17" <? if($datedate2=="17"){?>selected<?}?>> 17 </option>
<option value="18" <? if($datedate2=="18"){?>selected<?}?>> 18 </option>
<option value="19" <? if($datedate2=="19"){?>selected<?}?>> 19 </option>
<option value="20" <? if($datedate2=="20"){?>selected<?}?>> 20 </option>
<option value="21" <? if($datedate2=="21"){?>selected<?}?>> 21 </option>
<option value="22" <? if($datedate2=="22"){?>selected<?}?>> 22 </option>
<option value="23" <? if($datedate2=="23"){?>selected<?}?>> 23 </option>
<option value="24" <? if($datedate2=="24"){?>selected<?}?>> 24 </option>
<option value="25" <? if($datedate2=="25"){?>selected<?}?>> 25 </option>
<option value="26" <? if($datedate2=="26"){?>selected<?}?>> 26 </option>
<option value="27" <? if($datedate2=="27"){?>selected<?}?>> 27 </option>
<option value="28" <? if($datedate2=="28"){?>selected<?}?>> 28 </option>
<option value="29" <? if($datedate2=="29"){?>selected<?}?>> 29 </option>
<option value="30" <? if($datedate2=="30"){?>selected<?}?>> 30 </option>
<option value="31" <? if($datedate2=="31"){?>selected<?}?>> 31 </option>
</select>
เดือน
<select name="inputMonth4" id="inputMonth4">
<option value="" selected="selected">- - เลือกเดือน - -</option>
<option value="01" <? if($datemonth2=="01"){?>selected<?}?>> มกราคม </option>
<option value="02" <? if($datemonth2=="02"){?>selected<?}?>> กุมภาพันธ์ </option>
<option value="03" <? if($datemonth2=="03"){?>selected<?}?>> มีนาคม </option>
<option value="04" <? if($datemonth2=="04"){?>selected<?}?>> เมษายน </option>
<option value="05" <? if($datemonth2=="05"){?>selected<?}?>> พฤษภาคม </option>
<option value="06" <? if($datemonth2=="06"){?>selected<?}?>> มิถุนายน </option>
<option value="07" <? if($datemonth2=="07"){?>selected<?}?>> กรกฎาคม </option>
<option value="08" <? if($datemonth2=="08"){?>selected<?}?>> สิงหาคม </option>
<option value="09" <? if($datemonth2=="09"){?>selected<?}?>> กันยายน </option>
<option value="10" <? if($datemonth2=="10"){?>selected<?}?>> ตุลาคม </option>
<option value="11" <? if($datemonth2=="11"){?>selected<?}?>> พฤศจิกายน </option>
<option value="12" <? if($datemonth2=="12"){?>selected<?}?>> ธันวาคม </option>
</select>
พ.ศ.
<select name="inputYear4" id="inputYear4">
<option value="" selected="selected">- - เลือกปี - -</option>
<option value="2562" <? if($dateyear2=="2562"){?>selected<?}?>> 2562 </option>
<option value="2563" <? if($dateyear2=="2563"){?>selected<?}?>> 2563 </option>
<option value="2564" <? if($dateyear2=="2564"){?>selected<?}?>> 2564 </option>
<option value="2565" <? if($dateyear2=="2565"){?>selected<?}?>> 2565 </option>
</select>
</div>
<br />
<input type="radio" name="pt_statuscase" id="pt_statuscase" value="5" onclick="show_tablept(this.value);" <? if($row[Patient_status_cure]=="5"){?> checked <? } ?> />
Refer ไป รพ.ในสังกัด
<div id="tablepart5" style="display: none">
<p>หมายเหตุ Refer ไป</p>
<p> โรงพยาบาลหลัก<br />
<input type="radio" name="pt_refer1" id="pt_refer1" value="1" <? if($row[Patient_status_hosrefer]=="1"){?> checked <? } ?> />
กลาง<br />
<input type="radio" name="pt_refer1" id="pt_refer1" value="2" <? if($row[Patient_status_hosrefer]=="2"){?> checked <? } ?> />
ตากสิน<br />
<input type="radio" name="pt_refer1" id="pt_refer1" value="3" <? if($row[Patient_status_hosrefer]=="3"){?> checked <? } ?> />
เจริญกรุงประชารักษ์<br />
<input type="radio" name="pt_refer1" id="pt_refer1" value="4" <? if($row[Patient_status_hosrefer]=="4"){?> checked <? } ?> />
<span jsslot="" role="presentation" jsname="bN97Pc">หลวงพ่อทวีศักดิ์ ชุตินฺธโร อุทิศ</span><br />
<input type="radio" name="pt_refer1" id="pt_refer1" value="5" <? if($row[Patient_status_hosrefer]=="5"){?> checked <? } ?> />
เวชการุณย์รัศมิ์<br />
<input type="radio" name="pt_refer1" id="pt_refer1" value="6" <? if($row[Patient_status_hosrefer]=="6"){?> checked <? } ?> />
ลาดกระบังกรุงเทพมหานคร<br />
<input type="radio" name="pt_refer1" id="pt_refer1" value="7" <? if($row[Patient_status_hosrefer]=="7"){?> checked <? } ?> />
ราชพิพัฒน์<br />
<input type="radio" name="pt_refer1" id="pt_refer1" value="8" <? if($row[Patient_status_hosrefer]=="8"){?> checked <? } ?> />
สิรินธร<br />
<input type="radio" name="pt_refer"1 id="pt_refer1" value="9" <? if($row[Patient_status_hosrefer]=="9"){?> checked <? } ?> />
คลองสามวา <br />
<input type="radio" name="pt_refer1" id="pt_refer1" value="10" <? if($row[Patient_status_hosrefer]=="10"){?> checked <? } ?> />
บางนากรุงเทพมหานคร<br />
โรงพยาบาลสนาม <br />
<input type="radio" name="pt_refer1" id="pt_refer1" value="11" <? if($row[Patient_status_hosrefer]=="11"){?> checked <? } ?> />
ผู้สูงอายุบางขุนเทียน<br />
<input type="radio" name="pt_refer1" id="pt_refer1" value="12" <? if($row[Patient_status_hosrefer]=="12"){?> checked <? } ?> />
รพ.สนามราชพิพัฒน์ <br />
<input type="radio" name="pt_refer1" id="pt_refer1" value="13" <? if($row[Patient_status_hosrefer]=="13"){?> checked <? } ?> />
<span jsslot="" role="presentation" jsname="bN97Pc">รพ.สนามเอราวัณ 1 (รพท)</span><br />
<input type="radio" name="pt_refer1" id="pt_refer1" value="14" <? if($row[Patient_status_hosrefer]=="14"){?> checked <? } ?> />
<span jsslot="" role="presentation" jsname="bN97Pc">รพ.สนามเอราวัณ 2 (รพว)<br />
<input type="radio" name="pt_refer1" id="pt_refer1" value="15" <? if($row[Patient_status_hosrefer]=="15"){?> checked <? } ?> />
<span jsslot="" role="presentation" jsname="bN97Pc">รพ.สนามเอราวัณ 3 (รพจ)</span></span><br />
<input type="radio" name="pt_refer1" id="pt_refer1" value="16" <? if($row[Patient_status_hosrefer]=="16"){?> checked <? } ?> />
<span jsslot="" role="presentation" jsname="bN97Pc">รพ.กลาง (Hospitel)</span> <br />
<input type="radio" name="pt_refer1" id="pt_refer1" value="17" <? if($row[Patient_status_hosrefer]=="17"){?> checked <? } ?> />
<span jsslot="" role="presentation" jsname="bN97Pc">Elegant Airport (รพส. Hospitel)</span><br />
<input type="radio" name="pt_refer1" id="pt_refer1" value="18" <? if($row[Patient_status_hosrefer]=="18"){?> checked <? } ?> />
<span jsslot="" role="presentation" jsname="bN97Pc">โรงแรมบ้านไทย (รพต. Hospitel)</span><br />
<input type="radio" name="pt_refer1" id="pt_refer1" value="19" <? if($row[Patient_status_hosrefer]=="19"){?> checked <? } ?> />
<span jsslot="" role="presentation" jsname="bN97Pc">อื่น ๆ</span>
<input type="text" name="pt_refer_detail1" id="pt_refer_detail1" value="<?=$row[Patient_status_hosrefer_detail]?>" /><br /><br />
วันที่จำหน่ายออก/Refer<strong><font color="#FF0000">*</font></strong>
<select name="inputDay5" id="inputDay5">
<option value="" selected="selected">- - เลือกวันที่ -
-</option>
<option value="01" <? if($datedate2=="01"){?>selected<?}?>> 1 </option>
<option value="02" <? if($datedate2=="02"){?>selected<?}?>> 2 </option>
<option value="03" <? if($datedate2=="03"){?>selected<?}?>> 3 </option>
<option value="04" <? if($datedate2=="04"){?>selected<?}?>> 4 </option>
<option value="05" <? if($datedate2=="05"){?>selected<?}?>> 5 </option>
<option value="06" <? if($datedate2=="06"){?>selected<?}?>> 6 </option>
<option value="07" <? if($datedate2=="07"){?>selected<?}?>> 7 </option>
<option value="08" <? if($datedate2=="08"){?>selected<?}?>> 8 </option>
<option value="09" <? if($datedate2=="09"){?>selected<?}?>> 9 </option>
<option value="10" <? if($datedate2=="10"){?>selected<?}?>> 10 </option>
<option value="11" <? if($datedate2=="11"){?>selected<?}?>> 11 </option>
<option value="12" <? if($datedate2=="12"){?>selected<?}?>> 12 </option>
<option value="13" <? if($datedate2=="13"){?>selected<?}?>> 13 </option>
<option value="14" <? if($datedate2=="14"){?>selected<?}?>> 14 </option>
<option value="15" <? if($datedate2=="15"){?>selected<?}?>> 15 </option>
<option value="16" <? if($datedate2=="16"){?>selected<?}?>> 16 </option>
<option value="17" <? if($datedate2=="17"){?>selected<?}?>> 17 </option>
<option value="18" <? if($datedate2=="18"){?>selected<?}?>> 18 </option>
<option value="19" <? if($datedate2=="19"){?>selected<?}?>> 19 </option>
<option value="20" <? if($datedate2=="20"){?>selected<?}?>> 20 </option>
<option value="21" <? if($datedate2=="21"){?>selected<?}?>> 21 </option>
<option value="22" <? if($datedate2=="22"){?>selected<?}?>> 22 </option>
<option value="23" <? if($datedate2=="23"){?>selected<?}?>> 23 </option>
<option value="24" <? if($datedate2=="24"){?>selected<?}?>> 24 </option>
<option value="25" <? if($datedate2=="25"){?>selected<?}?>> 25 </option>
<option value="26" <? if($datedate2=="26"){?>selected<?}?>> 26 </option>
<option value="27" <? if($datedate2=="27"){?>selected<?}?>> 27 </option>
<option value="28" <? if($datedate2=="28"){?>selected<?}?>> 28 </option>
<option value="29" <? if($datedate2=="29"){?>selected<?}?>> 29 </option>
<option value="30" <? if($datedate2=="30"){?>selected<?}?>> 30 </option>
<option value="31" <? if($datedate2=="31"){?>selected<?}?>> 31 </option>
</select>
เดือน
<select name="inputMonth5" id="inputMonth5">
<option value="" selected="selected">- - เลือกเดือน - -</option>
<option value="01" <? if($datemonth2=="01"){?>selected<?}?>> มกราคม </option>
<option value="02" <? if($datemonth2=="02"){?>selected<?}?>> กุมภาพันธ์ </option>
<option value="03" <? if($datemonth2=="03"){?>selected<?}?>> มีนาคม </option>
<option value="04" <? if($datemonth2=="04"){?>selected<?}?>> เมษายน </option>
<option value="05" <? if($datemonth2=="05"){?>selected<?}?>> พฤษภาคม </option>
<option value="06" <? if($datemonth2=="06"){?>selected<?}?>> มิถุนายน </option>
<option value="07" <? if($datemonth2=="07"){?>selected<?}?>> กรกฎาคม </option>
<option value="08" <? if($datemonth2=="08"){?>selected<?}?>> สิงหาคม </option>
<option value="09" <? if($datemonth2=="09"){?>selected<?}?>> กันยายน </option>
<option value="10" <? if($datemonth2=="10"){?>selected<?}?>> ตุลาคม </option>
<option value="11" <? if($datemonth2=="11"){?>selected<?}?>> พฤศจิกายน </option>
<option value="12" <? if($datemonth2=="12"){?>selected<?}?>> ธันวาคม </option>
</select>
พ.ศ.
<select name="inputYear5" id="inputYear5">
<option value="" selected="selected">- - เลือกปี - -</option>
<option value="2562" <? if($dateyear2=="2562"){?>selected<?}?>> 2562 </option>
<option value="2563" <? if($dateyear2=="2563"){?>selected<?}?>> 2563 </option>
<option value="2564" <? if($dateyear2=="2564"){?>selected<?}?>> 2564 </option>
<option value="2565" <? if($dateyear2=="2565"){?>selected<?}?>> 2565 </option>
</select>
</div>
<br />
<input type="radio" name="pt_statuscase" id="pt_statuscase" value="6" onclick="show_tablept(this.value);" <? if($row[Patient_status_cure]=="6"){?> checked <? } ?> />
เสียชีวิต <br />
<div id="tablepart6" style="display: none">
วันที่จำหน่ายออก/Refer<strong><font color="#FF0000">*</font></strong>
<select name="inputDay6" id="inputDay6">
<option value="" selected="selected">- - เลือกวันที่ -
-</option>
<option value="01" <? if($datedate2=="01"){?>selected<?}?>> 1 </option>
<option value="02" <? if($datedate2=="02"){?>selected<?}?>> 2 </option>
<option value="03" <? if($datedate2=="03"){?>selected<?}?>> 3 </option>
<option value="04" <? if($datedate2=="04"){?>selected<?}?>> 4 </option>
<option value="05" <? if($datedate2=="05"){?>selected<?}?>> 5 </option>
<option value="06" <? if($datedate2=="06"){?>selected<?}?>> 6 </option>
<option value="07" <? if($datedate2=="07"){?>selected<?}?>> 7 </option>
<option value="08" <? if($datedate2=="08"){?>selected<?}?>> 8 </option>
<option value="09" <? if($datedate2=="09"){?>selected<?}?>> 9 </option>
<option value="10" <? if($datedate2=="10"){?>selected<?}?>> 10 </option>
<option value="11" <? if($datedate2=="11"){?>selected<?}?>> 11 </option>
<option value="12" <? if($datedate2=="12"){?>selected<?}?>> 12 </option>
<option value="13" <? if($datedate2=="13"){?>selected<?}?>> 13 </option>
<option value="14" <? if($datedate2=="14"){?>selected<?}?>> 14 </option>
<option value="15" <? if($datedate2=="15"){?>selected<?}?>> 15 </option>
<option value="16" <? if($datedate2=="16"){?>selected<?}?>> 16 </option>
<option value="17" <? if($datedate2=="17"){?>selected<?}?>> 17 </option>
<option value="18" <? if($datedate2=="18"){?>selected<?}?>> 18 </option>
<option value="19" <? if($datedate2=="19"){?>selected<?}?>> 19 </option>
<option value="20" <? if($datedate2=="20"){?>selected<?}?>> 20 </option>
<option value="21" <? if($datedate2=="21"){?>selected<?}?>> 21 </option>
<option value="22" <? if($datedate2=="22"){?>selected<?}?>> 22 </option>
<option value="23" <? if($datedate2=="23"){?>selected<?}?>> 23 </option>
<option value="24" <? if($datedate2=="24"){?>selected<?}?>> 24 </option>
<option value="25" <? if($datedate2=="25"){?>selected<?}?>> 25 </option>
<option value="26" <? if($datedate2=="26"){?>selected<?}?>> 26 </option>
<option value="27" <? if($datedate2=="27"){?>selected<?}?>> 27 </option>
<option value="28" <? if($datedate2=="28"){?>selected<?}?>> 28 </option>
<option value="29" <? if($datedate2=="29"){?>selected<?}?>> 29 </option>
<option value="30" <? if($datedate2=="30"){?>selected<?}?>> 30 </option>
<option value="31" <? if($datedate2=="31"){?>selected<?}?>> 31 </option>
</select>
เดือน
<select name="inputMonth6" id="inputMonth6">
<option value="" selected="selected">- - เลือกเดือน - -</option>
<option value="01" <? if($datemonth2=="01"){?>selected<?}?>> มกราคม </option>
<option value="02" <? if($datemonth2=="02"){?>selected<?}?>> กุมภาพันธ์ </option>
<option value="03" <? if($datemonth2=="03"){?>selected<?}?>> มีนาคม </option>
<option value="04" <? if($datemonth2=="04"){?>selected<?}?>> เมษายน </option>
<option value="05" <? if($datemonth2=="05"){?>selected<?}?>> พฤษภาคม </option>
<option value="06" <? if($datemonth2=="06"){?>selected<?}?>> มิถุนายน </option>
<option value="07" <? if($datemonth2=="07"){?>selected<?}?>> กรกฎาคม </option>
<option value="08" <? if($datemonth2=="08"){?>selected<?}?>> สิงหาคม </option>
<option value="09" <? if($datemonth2=="09"){?>selected<?}?>> กันยายน </option>
<option value="10" <? if($datemonth2=="10"){?>selected<?}?>> ตุลาคม </option>
<option value="11" <? if($datemonth2=="11"){?>selected<?}?>> พฤศจิกายน </option>
<option value="12" <? if($datemonth2=="12"){?>selected<?}?>> ธันวาคม </option>
</select>
พ.ศ.
<select name="inputYear6" id="inputYear6">
<option value="" selected="selected">- - เลือกปี - -</option>
<option value="2562" <? if($dateyear2=="2562"){?>selected<?}?>> 2562 </option>
<option value="2563" <? if($dateyear2=="2563"){?>selected<?}?>> 2563 </option>
<option value="2564" <? if($dateyear2=="2564"){?>selected<?}?>> 2564 </option>
<option value="2565" <? if($dateyear2=="2565"){?>selected<?}?>> 2565 </option>
</select>
</div>
</td>
</tr>
</tbody>
</table>
<br />
<br />
<div id="tableadd2" style="display:none">
<table width="95%" height="102" border="1" align="center" style="border-collapse:collapse" bordercolor="#8EADBF">
<tbody>
<tr>
<td height="36" bgcolor="#a3b4c4"><strong>ที่อยู่</strong></td>
</tr>
<tr>
<td height="58"><strong>ที่อยู่ บ้านเลขที่ หมู่ หมู่บ้าน</strong>
<input type="text" name="pt_ar1" id="pt_ar1" />
<br /></td>
</tr>
</tbody>
</table>
<br />
<table width="95%" height="77" border="1" align="center" style="border-collapse:collapse" bordercolor="#8EADBF">
<tbody>
<tr>
<td><strong>แขวง</strong>
<input type="text" name="pt_ar2" id="pt_ar2" /></td>
</tr>
</tbody>
</table>
<br />
<table width="95%" height="77" border="1" align="center" style="border-collapse:collapse" bordercolor="#8EADBF">
<tbody>
<tr>
<td><strong>เขต</strong>
<input type="text" name="pt_ar3" id="pt_ar3" /></td>
</tr>
</tbody>
</table>
<br />
<table width="95%" height="77" border="1" align="center" style="border-collapse:collapse" bordercolor="#8EADBF">
<tbody>
<tr>
<td><strong>จังหวัด<span id="i18" aria-label="คำถามที่ต้องตอบ"> </span></strong> <br />
<input type="radio" name="pt_ar4" id="pt_ar4" value="1" onclick="show_table3(this.value);" />
กทม<br />
<input type="radio" name="pt_ar4" id="pt_ar4" value="2" onclick="show_table3(this.value);" />
อื่น ๆ
<table width="100%" border="0" id="tableo3" style="display:none">
<td> <input type="text" name="pt_ar4_detail" id="pt_ar4_detail" /></td>
</tr>
</table></td>
</tr>
</tbody>
</table>
</div><div align="center">
<p>
<input type="button" value=" ----อัพเดทข้อมูล---- " width="57" height="20" border="0" id="Image15" onclick="verifySubmit();" style="cursor:pointer;" />
</p>
<p> </p>
<p> </p>
</div>
<script language="JavaScript" type="text/javascript">
function isBlank(myObj) { if(myObj.value=='') { return true; } return false; }
function isNumber(myObj) { return !isNaN(myObj.value*1) }
function isEqual(myObj1,myObj2) { if(myObj1.value==myObj2.value) { return true; } return false;}
function verifySubmit() {
with(document.myForm) {
if(isBlank(namesave)) { alert("กรุณากรอกข้อมูล"); namesave.focus(); return false; }
///case 1///
if (pt_statusnow[0].checked==false && pt_statusnow[1].checked==false&& pt_statusnow[2].checked==false&& pt_statusnow[3].checked==false) {
alert('กรุณาระบุข้อมูล');
pt_statusnow[0].focus();
return false;
}
if (pt_statusnow[0].checked==true&&isBlank(pt_statuslabtime)) {
alert('กรุณาระบุข้อมูล');
pt_statuslabtime.focus();
return false;
}
if (pt_statusnow[0].checked==true&&isBlank(pt_statuslabtime2)) {
alert('กรุณาระบุข้อมูล');
pt_statuslabtime2.focus();
return false;
}
if (pt_statusnow[0].checked==true&&inputDay.value==0) {
alert('กรุณาเลือกวันที่');
inputDay.focus();
return false;
}
if (pt_statusnow[0].checked==true&&inputMonth.value==0) {
alert('กรุณาเลือกเดือน');
inputMonth.focus();
return false;
}
if (pt_statusnow[0].checked==true&&inputYear.value==0) {
alert('กรุณากรอกปี พ.ศ.');
inputYear.focus();
return false;
}
/*if (pt_statusnow[0].checked==true&&pt_statuslab[1].checked==true) {
if(isBlank(pt_statuslabtime)) { alert("กรุณากรอกข้อมูล"); pt_statuslabtime.focus(); return false; }
if(isBlank(pt_statuslabtime2)) { alert("กรุณากรอกข้อมูล"); pt_statuslabtime2.focus(); return false; }
if(isBlank(pt_statuslabdate)) { alert("กรุณากรอกข้อมูล"); pt_statuslabdate.focus(); return false; }
} */
//if(isBlank(pt_order)) { alert("กรุณากรอกข้อมูล"); pt_order.focus(); return false; }
if (pt_result[0].checked==false &&pt_result[1].checked==false&&pt_result[2].checked==false && pt_result[3].checked==false)
{
alert('กรุณาระบุข้อมูล');
pt_result[0].focus();
return false;
}
if (pt_result[3].checked==true && isBlank(pt_result_detail))
{
alert("กรุณากรอกข้อมูลอื่น ๆ"); pt_result_detail.focus(); return false;
}
if (pt_level[0].checked==false && pt_level[1].checked==false&&pt_level[2].checked==false && pt_level[3].checked==false&& pt_level[4].checked==false)
{
alert('กรุณาระบุข้อมูล');
pt_level[0].focus();
return false;
}
if (pt_bed[0].checked==false && pt_bed[1].checked==false&&pt_bed[2].checked==false && pt_bed[3].checked==false)
{
alert('กรุณาระบุข้อมูลเตียง');
pt_bed[0].focus();
return false;
}
if(pt_level[4].checked!=true)
{
if (pt_ox[0].checked==false && pt_ox[1].checked==false)
{
alert('กรุณาระบุข้อมูล');
pt_ox[0].focus();
return false;
}
if (pt_tube[0].checked==false && pt_tube[1].checked==false)
{
alert('กรุณาระบุข้อมูล');
pt_tube[0].focus();
return false;
}
if (pt_virus1.checked==false && pt_virus2.checked==false && pt_virus3.checked==false&& pt_virus4.checked==false&& pt_virus5.checked==false&& pt_virus6.checked==false&& pt_virus7.checked==false)
{
alert('กรุณาระบุข้อมูล');
pt_virus1.focus();
return false;
}
if (pt_virus7.checked==true && isBlank(pt_virus_detail))
{
alert("กรุณากรอกข้อมูลอื่น ๆ"); pt_virus_detail.focus(); return false;
}
}
if (pt_statuscase[0].checked==false && pt_statuscase[1].checked==false&&pt_statuscase[2].checked==false && pt_statuscase[3].checked==false&& pt_statuscase[4].checked==false&& pt_statuscase[5].checked==false)
{
alert('กรุณาระบุข้อมูล');
pt_statuscase[0].focus();
return false;
}
if (pt_statuscase[1].checked==true&&inputDay2.value==0)
{ alert("กรุณาเลือกวันที่"); inputDay2.focus(); return false; }
if (pt_statuscase[1].checked==true&&inputMonth2.value==0)
{ alert("กรุณาเลือกเดือน"); inputMonth2.focus(); return false; }
if(pt_statuscase[1].checked==true&&inputYear2.value==0) { alert("กรุณากรอกปี พ.ศ."); inputYear2.focus(); return false; }
if (pt_statuscase[2].checked==true&&inputDay3.value==0)
{ alert("กรุณาเลือกวันที่"); inputDay3.focus(); return false; }
if (pt_statuscase[2].checked==true&&inputMonth3.value==0)
{ alert("กรุณาเลือกเดือน"); inputMonth3.focus(); return false; }
if(pt_statuscase[2].checked==true&&inputYear3.value==0) { alert("กรุณากรอกปี พ.ศ."); inputYear3.focus(); return false; }
if (pt_statuscase[3].checked==true&&pt_refer[0].checked==false && pt_refer[1].checked==false && pt_refer[2].checked==false && pt_refer[3].checked==false&& pt_refer[4].checked==false&& pt_refer[5].checked==false&& pt_refer[6].checked==false&& pt_refer[7].checked==false&& pt_refer[8].checked==false&& pt_refer[9].checked==false&& pt_refer[10].checked==false&& pt_refer[11].checked==false&& pt_refer[12].checked==false&& pt_refer[13].checked==false&& pt_refer[14].checked==false&& pt_refer[15].checked==false&& pt_refer[16].checked==false&& pt_refer[17].checked==false&& pt_refer[18].checked==false) {
alert('กรุณาระบุข้อมูล');
pt_refer[0].focus();
return false;
}
if (pt_statuscase[3].checked==true&&pt_refer[18].checked==true&& isBlank(pt_refer_detail2)) {
alert('กรุณาระบุข้อมูลอื่น ๆ');
pt_refer[0].focus();
return false;
}
if (pt_statuscase[3].checked==true&&inputDay4.value==0) {
alert('กรุณาเลือกวันที่');
inputDay4.focus();
return false;
}
if (pt_statuscase[3].checked==true&&inputMonth4.value==0) {
alert('กรุณาเลือกเดือน');
inputMonth4.focus();
return false;
}
if (pt_statuscase[3].checked==true&&inputYear4.value==0) {
alert('กรุณากรอกปี พ.ศ.');
inputYear4.focus();
return false;
}
if (pt_statuscase[4].checked==true&&pt_refer1[0].checked==false && pt_refer1[1].checked==false && pt_refer1[2].checked==false && pt_refer1[3].checked==false&& pt_refer1[4].checked==false&& pt_refer1[5].checked==false&& pt_refer1[6].checked==false&& pt_refer1[7].checked==false&& pt_refer1[8].checked==false&& pt_refer1[9].checked==false&& pt_refer1[10].checked==false&& pt_refer1[11].checked==false&& pt_refer1[12].checked==false&& pt_refer1[13].checked==false&& pt_refer1[14].checked==false&& pt_refer1[15].checked==false&& pt_refer1[16].checked==false&& pt_refer1[17].checked==false&& pt_refer1[18].checked==false) {
alert('กรุณาระบุข้อมูล');
pt_refer1[0].focus();
return false;
}
if (pt_statuscase[4].checked==true&& pt_refer1[18].checked==true&& isBlank(pt_refer_detail1)) {
alert('กรุณาระบุข้อมูลอื่น ๆ');
pt_refer1[0].focus();
return false;
}
if (pt_statuscase[4].checked==true&& inputDay5.value==0) {
alert('กรุณาเลือกวันที่');
inputDay5.focus();
return false;
}
if (pt_statuscase[4].checked==true&&inputMonth5.value==0) {
alert('กรุณาเลือกเดือน');
inputMonth5.focus();
return false;
}
if (pt_statuscase[4].checked==true&&inputYear5.value==0) {
alert('กรุณากรอกปี พ.ศ.');
inputYear5.focus();
return false;
}
if (pt_statuscase[5].checked==true&&inputDay6.value==0)
{ alert("กรุณาเลือกวันที่"); inputDay6.focus(); return false; }
if (pt_statuscase[5].checked==true&&inputMonth6.value==0)
{ alert("กรุณาเลือกเดือน"); inputMonth6.focus(); return false; }
if(pt_statuscase[5].checked==true&&inputYear6.value==0) { alert("กรุณากรอกปี พ.ศ."); inputYear6.focus(); return false; }
}
document.myForm.action.value='add';
document.myForm.submit();
}
</script>
</form>
<? } ?>
</p>
<p align="center"></td>
<td width="15"> </td>
</tr>
</table> </td>
<td width="17" valign="top" background="../images/object/border_07.gif"><img src="../images/object/border_17.gif" width="17" height="119"></td>
</tr>
<tr>
<td height="16"><img src="../images/object/border_09.gif" width="20" height="16"></td>
<td height="16" background="../images/object/border_11.gif"><img src="../images/object/border_11.gif" width="1" height="16"></td>
<td><img src="../images/object/border_13.gif" width="17" height="16"></td>
</tr>
</table></td>
</tr>
</table></td>
<td width="1" bgcolor="#10202F"><img src="../../images/blank.gif" width="1" height="1"></td>
</tr>
</table>
<table width="95%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="4" height="30" align="left" valign="bottom" background="../../images/main/main-t-bg.gif"> </td>
<td height="30" align="center" background="../../images/main/main-t-bg.gif"> </td>
<td width="4" height="30" align="right" valign="bottom" background="../../images/main/main-t-bg.gif"> </td>
</tr>
</table>
</body>
</html>
<?
include("../lib/disconnect.php");
?>
Hacked By AnonymousFox1.0, Coded By AnonymousFox