-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlist.php
More file actions
40 lines (35 loc) · 1.11 KB
/
list.php
File metadata and controls
40 lines (35 loc) · 1.11 KB
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
<!DOCTYPE html>
<html>
<head>
<title>護理人員清單</title>
</head>
<body>
<?php
include_once("dbConnection.php");
$db = new dbConnection();
echo '<p align="center">護理人員清單</p>';
echo '<table style="width:40%" border="1" align="center" valign="center">';
echo '<tr>';
//顯示護士清單(姓名、信箱、經歷)
$SQLSTR="SELECT * FROM `nuser`";
$list=$db->dbQuery($SQLSTR);
while($re=mysqli_fetch_row($list)){
echo '<tr>';
echo '<td style="width:25%" align="center">姓名:</td>';
echo '<td style="width:75%" align="center">'.$re[0].'</td>';
echo '</tr>';
echo '<tr>';
echo '<td style="width:25%" align="center">信箱:</td>';
echo '<td style="width:75%" align="center">'.$re[1].'</td>';
echo '</tr>';
echo '<tr>';
echo '<td style="width:25%" align="center">經歷:</td>';
echo '<td style="width:75%" align="center">'.$re[2].'</td>';
echo '</tr>';
echo '<td style="width:20%" align="center"><input type ="button" onclick="window.location.href=introduction.html" value="查看"></input></td>';
}
echo '</tr>';
echo '</table>';
?>
</body>
</html>