01.
<html>
02.
<head>
03.
<title></title>
04.
<meta http-equiv=
"Content-Type"
content=
"text/html; charset=windows-874"
>
05.
<STYLE type=text/css>
06.
A:link { color: #6600FF; text-decoration:none}
07.
A:visited {text-decoration: none}
08.
A:hover {text-decoration: none}
09.
.style21 {
10.
font-family: AngsanaUPC;
11.
font-size: 36px;
12.
font-weight: bold;
13.
color: #0000FF;
14.
}
15.
.style23 {font-family: AngsanaUPC; font-size: 22px; font-weight: bold; }
16.
body {
17.
background-image: url();
18.
background-color: #FFFFFF;
19.
}
20.
a:active {
21.
text-decoration: none;
22.
}
23.
.style56 {color: #000000}
24.
.style43 {color: #6600FF; font-family: AngsanaUPC; font-size: 20px; }
25.
.style83 {font-family: AngsanaUPC; font-size: 22px; }
26.
.style85 {font-family:
"MS Sans Serif"
}
27.
</STYLE>
28.
</head>
29.
30.
<body leftmargin=
"0"
topmargin=
"0"
marginwidth=
"0"
marginheight=
"0"
>
31.
<center>
32.
<div align=
"center"
>
33.
<form name=
"form2"
method=
"post"
action=
""
>
34.
<p> </p>
35.
<p><span
class
=
"style21"
><span
class
=
"style56"
>ใบรับรองแพทย์ </span></span>
36.
<?php
37.
function
DateThai(
$strDate
)
38.
{
39.
$strYear
=
date
(
"Y"
,
strtotime
(
$strDate
))+543;
40.
$strMonth
=
date
(
"n"
,
strtotime
(
$strDate
));
41.
$strDay
=
date
(
"j"
,
strtotime
(
$strDate
));
42.
$strMonthCut
= Array(
""
,
"ม.ค."
,
"ก.พ."
,
"มี.ค."
,
"เม.ย."
,
"พ.ค."
,
"มิ.ย."
,
"ก.ค."
,
"ส.ค."
,
"ก.ย."
,
"ต.ค."
,
"พ.ย."
,
"ธ.ค."
);
43.
$strMonthThai
=
$strMonthCut
[
$strMonth
];
44.
return
"$strDay $strMonthThai $strYear"
;
45.
}
46.
47.
$strDate
=
$pt_birth
;
48.
49.
?>
50.
51.
<?php
52.
include
"include/config.php"
;
53.
54.
$id
=
$_GET
[
'id'
];
55.
56.
$query
=
"select * from guarantee where id='$id'"
;
57.
$result
= mysql_query(
$query
);
58.
$dbarr
= mysql_fetch_array(
$result
) ;
59.
60.
?>
61.
<input type=
"hidden"
name=
"id"
value=
"<?php echo "
$id
"; ?>"
>
62.
</p>
63.
<table width=
"801"
height=
"100"
border=
"0"
cellspacing=
"3"
>
64.
<td width=
"801"
height=
"100"
>
65.
<p align=
"right"
class
=
"style23"
>สถานที่ตรวจคลินิก หูคอจมูก หมอบุญพิมล<br>
66.
54 ถ.สิโรรส ต.สะเตง อ.เมือง จ.ยะลา<br>
67.
วันที่ <span
class
=
"style83"
><?php
echo
$dbarr
[
'pt_birth'
] ; ?> </span></p>
68.
</td>
69.
</tr>
70.
71.
<tr>
72.
<td height=
"32"
><p
class
=
"style83"
></td>
73.
</tr>
74.
<tr>
75.
<td height=
"24"
> </td>
76.
</tr>
77.
</table>
78.
<blockquote>
79.
<p> </p>
80.
<p> </p>
81.
<p align=
"right"
class
=
"style83"
>p;ลงชื่อ...............................................แพทย์ผู้ตรวจรักษา</p>
82.
<p align=
"right"
class
=
"style83"
></p>
83.
<p> </p>
84.
<p align=
"left"
>nbsp; <span
class
=
"style83"
>หมายเหตุ<br>
85.
ใบรับรองแพทย์นี้จะสมบูรณ์ต้องมีการประทับตราของทางคลินิก</span></p>
86.
</blockquote>
87.
88.
</form>
89.
<p align=
"center"
><br>
90.
</p>
91.
</div>
92.
</center>
93.
<p> </p>
94.
</body>
95.
</html>