Hacked By AnonymousFox

Current Path : C:/AppServ/www/stato/
Upload File :
Current File : C:/AppServ/www/stato/doc_receive.php

<? 
include("lib/config.php");
include("lib/connect.php");
include("lib/register_global.php");
$datedoc=$_POST["datedoc"];
function ShowDate($myDate) {
		$myDateArray=explode("-",$myDate);
		$myDay = sprintf("%d",$myDateArray[2]);
		switch($myDateArray[1]) {
			case "01" : $myMonth = "ม.ค.";  break;
			case "02" : $myMonth = "ก.พ.";  break;
			case "03" : $myMonth = "มี.ค."; break;
			case "04" : $myMonth = "เม.ย."; break;
			case "05" : $myMonth = "พ.ค.";   break;
			case "06" : $myMonth = "มิ.ย.";  break;
			case "07" : $myMonth = "ก.ค.";   break;
			case "08" : $myMonth = "ส.ค.";  break;
			case "09" : $myMonth = "ก.ย.";  break;
			case "10" : $myMonth = "ต.ค.";  break;
			case "11" : $myMonth = "พ.ย.";   break;
			case "12" : $myMonth = "ธ.ค.";  break;
		}
		$myYear = sprintf("%d",$myDateArray[0])+543;
        return($myDay . " " . $myMonth . " " . $myYear);
}
?>
<!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=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black" />
<link rel="apple-touch-icon" href="images/apple-touch-icon.png" />
<link rel="apple-touch-startup-image" href="images/apple-touch-startup-image-320x460.png" />
<title>:: ศูนย์วิทยาศาสตร์การแพทย์แห่งที่ 7 ขอนแก่น ::</title>
</head>
<style type="text/css">
body {
   margin:0;
   padding:0;
   height:100%;
   font-family: Angsana New;
   font-size:22px;
}

</style>
<style type="text/css" media="print">
        @page
        {
            size: auto; /* auto is the initial value */
            margin: 5mm 5mm 0mm 5mm; /* this affects the margin in the printer settings */
        }
        thead
        {
            display: table-header-group;
        }
    </style>
    <style type="text/css" media="screen">
        thead
        {
            display: block;
        }
    </style>
<body onLoad="window.print()">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
  <tr align="right">
    <td colspan="3" align="center"><strong>ทะเบียนรับตัวอย่างเข้าห้องปฏิบัติการ</strong></td>
    <td width="18%"><strong>ws 34 06 001/32</strong></td>
  </tr>
  <tr>
    <td width="1%">&nbsp;</td>
    <td width="11%"><strong>( &nbsp;&nbsp;&nbsp;&nbsp;)  เช้า    ( &nbsp;&nbsp;&nbsp;&nbsp;)   บ่าย</strong></td>
    <td width="70%" align="center"><strong> กลุ่มงาน&nbsp;พยาธิวิทยาคลินิก</strong></td>
    <td align="right">&nbsp;</td>
  </tr>
</table>
<table border="1" width="100%" style="border-collapse:collapse"; bordercolor="#000000">
<thead>
    <tr align="center">
      <td width="4%"><strong><span class="ex1">ลำดับ</span></strong></td>
      <td width="9%"><strong><span class="ex1">หมายเลข<br>
      ทะเบียนรับ</span></strong></td>
      <td width="14%"><strong><span class="ex1">หนังสือนำส่ง</span></strong></td>
      <td width="9%"><strong><span class="ex1">วันที่รับ<br>
      ตัวอย่าง</span></strong></td>
      <td width="11%"><strong><span class="ex1">หน่วยงานนำส่ง</span></strong></td>
      <td width="12%"><strong><span class="ex1">ชนิดตัวอย่าง</span></strong></td>
      <td width="14%"><strong><span class="ex1">จำนวนตัวอย่าง</span></strong></td>
      <td width="7%"><strong><span class="ex1">ผู้ทดสอบ<br>
      /ลงวันที่</span></strong></td>
      <td width="7%"><strong><span class="ex1">ผู้รับรอง<br>
      /ลงวันที่</span></strong></td>
      <td width="7%"><strong><span class="ex1">ผู้รับเสนอ<br>
ผอ./ลงวันที่</span></strong></td>
      <td width="6%"><strong>หมายเหตุ</strong></td>
    </tr>
  </thead>
  <tbody>
    <?
$sql="select * from receive where Datereceive='$datedoc' order by Id asc";
$query=mysql_query($sql);
    $i=1;
    while($row=mysql_fetch_array($query)){?>
    <tr align="center">
      <td>
       
        <?=$i?>
    </td>
      <td>
       
        <?=$row[Noilab]?>
     </td>
      <td>
          <?=$row[Nodoc]?> / ลงวันที่  <?=ShowDate($row[Datedoc])?>
         
      </td>
      <td align="center"><?=ShowDate($row[Datereceive])?>
       </td>
      <td>
        <?
          $sqlx="select * from deptsend where Id='$row[Deptsend]'";
		$queryx=mysql_query($sqlx);
		 $rowx=mysql_fetch_array($queryx);
		?>
											
		<?=$rowx[Name]?>
      </td>
      <td>COVID-19</td>
      <td>
                        <?=$row[Amounsend]?> </td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
    </tr>
	  <? $i++; } ?>
  </tbody>
</table>
<table width="100%" border="0">
  <tr>
    <td colspan="3">รวม   &nbsp; <? 
	$sql3="select sum(Amounsend) from receive where Datereceive='$datedoc'";
	$query3=mysql_query($sql3);
	 $row3=mysql_fetch_array($query3);
	?>   <?=$row3[0]?>&nbsp;ตัวอย่าง</td>
  </tr>
  <tr>
    <td width="37%">ลงชื่อ .............................ผู้ตรวจสอบงานรับตัวอย่าง</td>
    <td width="20%">&nbsp;</td>
    <td> ลงชื่อ..............................................ผู้รับตัวอย่างของกลุ่มงาน</td>
  </tr>
  <tr>
    <td colspan="2">()</td>
    <td> (...........................................................)</td>
  </tr>
  <tr>
    <td colspan="2">ลงวันที่ <strong>
     
    </strong></td>
    <td> ลงวันที่................................................</td>
  </tr>
</table>
</body>
</html>

Hacked By AnonymousFox1.0, Coded By AnonymousFox