/
ptnote.php
73 lines (71 loc) · 2.16 KB
/
ptnote.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
<?php
session_start();
include("phpconf.php");
include("func.php");
conDB();
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=tis-620">
<title>眯汉驮狗靡喙绲 | <?php echo " ".$Hospname." "; ?> | - - ㈤土倥喋疽屑匍昏锹 - - |</title>
<style type="text/css">
<!--
body { margin: 0px 0px; padding: 0px 0px}
body{font-family:MS Sans Serif;font-size:10pt}
table,td{font-family:MS Sans Serif;font-size:10pt}
form{font-family:MS Sans Serif;font-size:10pt}
-->
</style>
<?php
//set theme
print "<link href='css/$Theme.css' rel='stylesheet' type='text/css'>";
?>
</head>
<body>
<table width="325" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="14"><?php
if (!$_SESSION["ip_Log"] and !Check_Online(get_ip())){ //check ->off line
echo "<META HTTP-EQUIV='REFRESH' CONTENT='0; URL=index.php'>";
}else{ //on line
if (($_SESSION["user_type"]=="online") AND !Check_Onlines()){
echo "<META HTTP-EQUIV='REFRESH' CONTENT='0; URL=index.php'>";}
?></td>
<td width="298"> </td>
<td width="13"> </td>
</tr>
<tr>
<?php
$sql="select n.ptnote as ptnote,n.vstdate as notedate, concat(p.pname,p.fname,' ',p.lname) as ptname from patient p left outer join ptnote n on p.hn=n.hn where p.hn='$hn' "; //check special clinic
$result=mysql_db_query($DBName,$sql)
or die("淞枋伊颐多抛汀㈤土倥烈崾浯�".mysql_error());
$rs=mysql_fetch_array($result);
?>
<td> </td>
<td align="center"><font color="red"><b>㈤土倥喋疽屑匍昏锹</b></font> <font color="#0000FF"><?php echo $rs["ptname"]." ".$hn."</font>" ?> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td><?php echo $rs["ptnote"];?></td>
<td> </td>
</tr>
<tr>
<td> </td>
<td align="right"> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td align="right"><?php echo "貉狗帧嗔阻� <font color=blue>".FormatDate($rs["notedate"])."</font>";?></td>
<td><?php }//
CloseDB(); //close connect db ?></td>
</tr>
</table>
</body>
</html>