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");
//}
//$datesend=$_POST["datesend"];
?>
<!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;
}
.style1 { font-size: 16;
font-weight: bold;
}
-->
</style>
</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">
ยินดีต้อนรับเข้าสู่ระบบ > โรงพยาบาลผู้ใช้งาน ><?=$System_Session_FullName?> <input name="add" type="button" class="button_60" id="btPageSearch2" value="ออกจากระบบ" onclick="window.location='../system/logout.php'" /> <br />
<br>
<div align="center"><strong>
รายงานการอัพเดทข้อมูลผู้ป่วย วันที่
<?
$date1 = date("Y-m-d");
echo $date = ShowDateLongTh($date1);
?>
</strong></div>
<br />
<table width="85%" border="1" align="center" style="border-collapse:collapse" bordercolor="#CCCCCC" cellpadding="10">
<?
$sql_come1="select * from patient where Hospitalname='1'";
$query_come1=mysql_query($sql_come1);
$num_come1=mysql_num_rows($query_come1);
$sql_comea1="select * from patient where Hospitalname='1' and datetime_updatebyhos='0000-00-00 00:00:00'";
$query_comea1=mysql_query($sql_comea1);
$num_comea1=mysql_num_rows($query_comea1);
$totala1=$num_come1-$num_comea1;
$sql_come2="select * from patient where Hospitalname='2'";
$query_come2=mysql_query($sql_come2);
$num_come2=mysql_num_rows($query_come2);
$sql_comea2="select * from patient where Hospitalname='2' and datetime_updatebyhos='0000-00-00 00:00:00'";
$query_comea2=mysql_query($sql_comea2);
$num_comea2=mysql_num_rows($query_comea2);
$totalb1=$num_come2-$num_comea2;
$sql_come3="select * from patient where Hospitalname='3'";
$query_come3=mysql_query($sql_come3);
$num_come3=mysql_num_rows($query_come3);
$sql_comea3="select * from patient where Hospitalname='3' and datetime_updatebyhos='0000-00-00 00:00:00'";
$query_comea3=mysql_query($sql_comea3);
$num_comea3=mysql_num_rows($query_comea3);
$totalc1=$num_come3-$num_comea3;
$sql_come4="select * from patient where Hospitalname='4'";
$query_come4=mysql_query($sql_come4);
$num_come4=mysql_num_rows($query_come4);
$sql_comea4="select * from patient where Hospitalname='4' and datetime_updatebyhos='0000-00-00 00:00:00'";
$query_comea4=mysql_query($sql_comea4);
$num_comea4=mysql_num_rows($query_comea4);
$totald1=$num_come4-$num_comea4;
$sql_come5="select * from patient where Hospitalname='5'";
$query_come5=mysql_query($sql_come5);
$num_come5=mysql_num_rows($query_come5);
$sql_comea5="select * from patient where Hospitalname='5' and datetime_updatebyhos='0000-00-00 00:00:00'";
$query_comea5=mysql_query($sql_comea5);
$num_comea5=mysql_num_rows($query_comea5);
$totale1=$num_come5-$num_comea5;
$sql_come6="select * from patient where Hospitalname='6'";
$query_come6=mysql_query($sql_come6);
$num_come6=mysql_num_rows($query_come6);
$sql_comea6="select * from patient where Hospitalname='6' and datetime_updatebyhos='0000-00-00 00:00:00'";
$query_comea6=mysql_query($sql_comea6);
$num_comea6=mysql_num_rows($query_comea6);
$totalf1=$num_come6-$num_comea6;
$sql_come7="select * from patient where Hospitalname='7'";
$query_come7=mysql_query($sql_come7);
$num_come7=mysql_num_rows($query_come7);
$sql_comea7="select * from patient where Hospitalname='7' and datetime_updatebyhos='0000-00-00 00:00:00'";
$query_comea7=mysql_query($sql_comea7);
$num_comea7=mysql_num_rows($query_comea7);
$totalg1=$num_come7-$num_comea7;
$sql_come8="select * from patient where Hospitalname='8'";
$query_come8=mysql_query($sql_come8);
$num_come8=mysql_num_rows($query_come8);
$sql_comea8="select * from patient where Hospitalname='8' and datetime_updatebyhos='0000-00-00 00:00:00'";
$query_comea8=mysql_query($sql_comea8);
$num_comea8=mysql_num_rows($query_comea8);
$totalh1=$num_come8-$num_comea8;
$sql_come11="select * from patient where Hospitalname='11'";
$query_come11=mysql_query($sql_come11);
$num_come11=mysql_num_rows($query_come11);
$sql_comea11="select * from patient where Hospitalname='11' and datetime_updatebyhos='0000-00-00 00:00:00'";
$query_comea11=mysql_query($sql_comea11);
$num_comea11=mysql_num_rows($query_comea11);
$totali1=$num_come11-$num_comea11;
$sql_come12="select * from patient where Hospitalname='12'";
$query_come12=mysql_query($sql_come12);
$num_come12=mysql_num_rows($query_come12);
$sql_comea12="select * from patient where Hospitalname='12' and datetime_updatebyhos='0000-00-00 00:00:00'";
$query_comea12=mysql_query($sql_comea12);
$num_comea12=mysql_num_rows($query_comea12);
$totalj1=$num_come12-$num_comea12;
$sql_come13="select * from patient where Hospitalname='13'";
$query_come13=mysql_query($sql_come13);
$num_come13=mysql_num_rows($query_come13);
$sql_comea13="select * from patient where Hospitalname='13' and datetime_updatebyhos='0000-00-00 00:00:00'";
$query_comea13=mysql_query($sql_comea13);
$num_comea13=mysql_num_rows($query_comea13);
$totalk1=$num_come13-$num_comea13;
$sql_come14="select * from patient where Hospitalname='14'";
$query_come14=mysql_query($sql_come14);
$num_come14=mysql_num_rows($query_come14);
$sql_comea14="select * from patient where Hospitalname='14' and datetime_updatebyhos='0000-00-00 00:00:00'";
$query_comea14=mysql_query($sql_comea14);
$num_comea14=mysql_num_rows($query_comea14);
$totall1=$num_come14-$num_comea14;
$sql_come15="select * from patient where Hospitalname='15'";
$query_come15=mysql_query($sql_come15);
$num_come15=mysql_num_rows($query_come15);
$sql_comea15="select * from patient where Hospitalname='15' and datetime_updatebyhos='0000-00-00 00:00:00'";
$query_comea15=mysql_query($sql_comea15);
$num_comea15=mysql_num_rows($query_comea15);
$totalm1=$num_come15-$num_comea15;
$sql_come16="select * from patient where Hospitalname='16'";
$query_come16=mysql_query($sql_come16);
$num_come16=mysql_num_rows($query_come16);
$sql_comea16="select * from patient where Hospitalname='16' and datetime_updatebyhos='0000-00-00 00:00:00'";
$query_comea16=mysql_query($sql_comea16);
$num_comea16=mysql_num_rows($query_comea16);
$totaln1=$num_come16-$num_comea16;
$sql_come17="select * from patient where Hospitalname='17'";
$query_come17=mysql_query($sql_come17);
$num_come17=mysql_num_rows($query_come17);
$sql_comea17="select * from patient where Hospitalname='17' and datetime_updatebyhos='0000-00-00 00:00:00'";
$query_comea17=mysql_query($sql_comea17);
$num_comea17=mysql_num_rows($query_comea17);
$totalo1=$num_come17-$num_comea17;
$sql_come18="select * from patient where Hospitalname='18'";
$query_come18=mysql_query($sql_come18);
$num_come18=mysql_num_rows($query_come18);
$sql_comea18="select * from patient where Hospitalname='18' and datetime_updatebyhos='0000-00-00 00:00:00'";
$query_comea18=mysql_query($sql_comea18);
$num_comea18=mysql_num_rows($query_comea18);
$totalp1=$num_come18-$num_comea18;
$cometotal=$num_come1+$num_come2+$num_come3+$num_come4+$num_come5+$num_come6+$num_come7+$num_come8+$num_come11+$num_come12+$num_come13+$num_come14+$num_come15+$num_come16+$num_come17+$num_come18;
$cometotal1=$num_comea1+$num_comea2+$num_comea3+$num_comea4+$num_comea5+$num_comea6+$num_comea7+$num_comea8+$num_comea11+$num_comea12+$num_comea13+$num_comea14+$num_comea15+$num_comea16+$num_comea17+$num_comea18;
$cometotal2=$totala1+$totalb1+$totalc1+$totald1+$totale1+$totalf1+$totalg1+$totalh1+$totali1+$totalj1+$totalk1+$totall1+$totalm1+$totaln1+$totalo1+$totalp1;
?>
<tbody>
<tr align="center">
<td bgcolor="#d9d9d9"><strong>โรงพยาบาล</strong></td>
<td bgcolor="#d9d9d9"><strong>จำนวนผู้ป่วยทั้งหมด</strong></td>
<td bgcolor="#d9d9d9"><strong>จำนวนผู้ป่วยที่อัพเดทแล้ว</strong></td>
<td bgcolor="#d9d9d9"><strong>จำนวนผู้ป่วยที่รออัพเดท</strong></td>
</tr>
<tr>
<td width="36%">กลาง<br /></td>
<td width="21%" align="center"><?=$num_come1?></td>
<td width="21%" align="center"><?=$totala1?></td>
<td width="22%" align="center"><?=$num_comea1?></td>
</tr>
<tr>
<td>ตากสิน<br /></td>
<td align="center"><?=$num_come2?></td>
<td align="center"><?=$totalb1?></td>
<td align="center"><?=$num_comea2?></td>
</tr>
<tr>
<td>เจริญกรุงประชารักษ์<br /></td>
<td align="center"><?=$num_come3?></td>
<td align="center"><?=$totalc1?></td>
<td align="center"><?=$num_comea3?></td>
</tr>
<tr>
<td>หลวงพ่อทวีศักดิ์ฯ</td>
<td align="center"><?=$num_come4?></td>
<td align="center"><?=$totald1?></td>
<td align="center"><?=$num_comea4?></td>
</tr>
<tr>
<td>เวชการุณย์รัศมิ์<br /></td>
<td align="center"><?=$num_come5?></td>
<td align="center"><?=$totale1?></td>
<td align="center"><?=$num_comea5?></td>
</tr>
<tr>
<td>ลาดกระบัง</td>
<td align="center"><?=$num_come6?></td>
<td align="center"><?=$totalf1?></td>
<td align="center"><?=$num_comea6?></td>
</tr>
<tr>
<td>ราชพิพัฒน์<br /></td>
<td align="center"><?=$num_come7?></td>
<td align="center"><?=$totalg1?></td>
<td align="center"><?=$num_comea7?></td>
</tr>
<tr>
<td>สิรินธร<br /></td>
<td align="center"><?=$num_come8?></td>
<td align="center"><?=$totalh1?></td>
<td align="center"><?=$num_comea8?></td>
</tr>
<tr>
<td>ผู้สูงอายุบางขุนเทียน<br /></td>
<td align="center"><?=$num_come11?></td>
<td align="center"><?=$totali1?></td>
<td align="center"><?=$num_comea11?></td>
</tr>
<tr>
<td>ราชพิพัฒน์ (สนาม)<br /></td>
<td align="center"><?=$num_come12?></td>
<td align="center"><?=$totalj1?></td>
<td align="center"><?=$num_comea12?></td>
</tr>
<tr>
<td>เอราวัณ 1</td>
<td align="center"><?=$num_come13?></td>
<td align="center"><?=$totalk1?></td>
<td align="center"><?=$num_comea13?></td>
</tr>
<tr>
<td>เอราวัณ 2</td>
<td align="center"><?=$num_come14?></td>
<td align="center"><?=$totall1?></td>
<td align="center"><?=$num_comea14?></td>
</tr>
<tr>
<td>เอราวัณ 3</td>
<td align="center"><?=$num_come15?></td>
<td align="center"><?=$totalm1?></td>
<td align="center"><?=$num_comea15?></td>
</tr>
<tr>
<td>รพ.กลาง (Hospitel)</td>
<td align="center"><?=$num_come16?></td>
<td align="center"><?=$totaln1?></td>
<td align="center"><?=$num_comea16?></td>
</tr>
<tr>
<td>Elegant Airport Hospitel</td>
<td align="center"><?=$num_come17?></td>
<td align="center"><?=$totalo1?></td>
<td align="center"><?=$num_comea17?></td>
</tr>
<tr>
<td>โรงแรมบ้านไทย</td>
<td align="center"><?=$num_come18?></td>
<td align="center"><?=$totalp1?></td>
<td align="center"><?=$num_comea18?></td>
</tr>
<tr>
<td><strong>รวม</strong></td>
<td align="center"><?=$cometotal?></td>
<td align="center"><?=$cometotal2?></td>
<td align="center"><?=$cometotal1?></td>
</tr>
</tbody>
</table>
<p align="center"></td>
<td align="left" valign="top"> </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