| Server IP : 104.21.73.108 / Your IP : 216.73.216.59 Web Server : Apache/2 System : Linux cat167-197.static.lnwhostname.com 5.10.0-20-amd64 #1 SMP Debian 5.10.158-2 (2022-12-13) x86_64 User : paphayomho ( 1042) PHP Version : 5.6.40 Disable Function : exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname MySQL : ON | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /home/paphayomho/domains/paphayomhospital.go.th/private_html/HHC/ |
Upload File : |
<?php include('header.php'); ?>
<?php include('session.php'); ?>
<?php
$hostname_connection = "localhost";
$database_connection = "pmhc_test";
$username_connection = "pmhc_root";
$password_connection = "123456";
$connection = mysql_pconnect($hostname_connection, $username_connection, $password_connection) or trigger_error(mysql_error(),E_USER_ERROR); mysql_query("SET NAMES UTF8") ;
mysql_select_db($database_connection, $connection);
$query_rs_report_order_detail = "SELECT * FROM members ORDER BY member_id DESC";
$rs_report_order_detail = mysql_query($query_rs_report_order_detail, $connection) or die(mysql_error());
$row_rs_report_order_detail = mysql_fetch_assoc($rs_report_order_detail);
$totalRows_rs_report_order_detail = mysql_num_rows($rs_report_order_detail);
?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>--ระบบบันทึกข้อมูลมารดาหลังคลอด โรงพยาบาลป่าพะยอม จังหวัดพัทลุง---</title>
</head>
<body>
<?php include('navbar.php'); ?>
<div class="container-fluid">
<div class="row-fluid">
<?php include('sidebar_dashboard.php'); ?>
<div class="span9" id="">
<div class="row-fluid">
<!-- block -->
<div id="block_bg" class="block">
<?php
$query = $conn->query("select * from members ORDER BY member_id DESC") or die(mysql_error());
$count = $query->rowcount();
?>
<table width="1020" height="153" border="1" align="center" cellpadding="1" cellspacing="1" >
<tr>
<th width="30">ลำดับ</th>
<th width="170">รหัสการเยี่ยม</th>
<th width="243">HN/AN</th>
<th width="350">ชื่อ-สกุล</th>
<th width="150">วันที่คลอด</th>
<th width="150">วันนัดตรวจ</th>
<th width="242">ผู้รับผิดชอบ</th>
<th width="150">สถานะ</th>
</tr>
<?php
do {
$iLoop = ($old_record == $row_rs_report_order_detail['hos'])? $iLoop : ++$iLoop ;
$bgcolor = (($iLoop%2)==0)?"#FFFFFF":"#EEEEEE";
?>
<tr bgcolor="<?php echo $bgcolor ;?>">
<td align='center'><?=i?></td>
<td><?php echo $row_rs_report_order_detail['HC_3']; ?></td>
<td><?php echo $row_rs_report_order_detail['HN']; ?></td>
<td><?php echo $row_rs_report_order_detail['surname']; ?></td>
<td><?php echo $row_rs_report_order_detail['date_of_birth']; ?></td>
<td><?php echo $row_rs_report_order_detail['voters_id']; ?></td>
<td><?php echo $row_rs_report_order_detail['hos']; ?></td>
<td div align="center"> <?php if($row_rs_report_order_detail['hos31'] != '') {
echo '<div style="color:blue">ตอบแล้ว</div>';
}
else{
echo '<div style="color:red">ยังไม่ตอบ</div>';
} ?></td>
</tr>
<?php
$old_record = $row_rs_report_order_detail['hos'] ;
} while ($row_rs_report_order_detail = mysql_fetch_assoc($rs_report_order_detail));
?>
</table>
</body>
</html>