01.
<?php
02.
session_start();
03.
include
(
'psp_check_admin.php'
);
04.
05.
?>
06.
<!DOCTYPE html>
07.
<html>
08.
<head>
09.
<meta charset=
"utf-8"
>
10.
<meta name=
"viewport"
content=
"width=device-width, initial-scale=1"
>
11.
<title>PSP Control</title>
12.
<link rel=
"stylesheet"
href=
"css/bootstrap.min.css"
>
13.
<link rel=
"stylesheet"
href=
"css/style.css"
type=
"text/css"
>
14.
<script src=
"js/jquery.min.js"
></script>
15.
<script src=
"js/bootstrap.min.js"
></script>
16.
</head>
17.
<body>
18.
<?php
19.
include
(
'Connections/connect.php'
);
20.
$strSQL
=
"SELECT * FROM psp_admin"
;
21.
$objQuery
= mysqli_query(
$Conn
,
$strSQL
);
22.
?>
23.
<div
class
=
"container-fluid"
>
24.
<?php
include
'psp_main.php'
; ?>
25.
</div><br>
26.
<div
class
=
"row"
>
27.
<div
class
=
"col-sm-9 col-sm-offset-3"
>
28.
<table
class
=
"table table-bordered"
>
29.
<thead>
30.
<tr>
31.
<th>ชื่อผู้ดูแลระบบ</th>
32.
<th>รหัสผ่าน</th>
33.
<th>ลบ / แก้ไข</th>
34.
</tr>
35.
</thead>
36.
<tbody>
37.
<?php
38.
while
(
$objResult
= mysqli_fetch_array(
$objQuery
,MYSQLI_ASSOC))
39.
{
40.
?>
41.
<tr>
42.
<td><?php
echo
$objResult
[
"Admin_id"
]; ?></td>
43.
<td><?php
echo
$objResult
[
"Username"
]; ?></td>
44.
<td><?php
echo
$objResult
[
"Password"
]; ?></td>
45.
<td><a href=
"psp_logout.php"
><input type=
"submit"
class
=
"btn btn-warning"
name=
""
value=
"ออกจากระบบ"
></a></td>
46.
</tr>
47.
<?php } ?>
48.
</tbody>
49.
</table>
50.
</div>
51.
</div>
52.
<?php
53.
mysqli_close(
$Conn
);
54.
?>
55.
</body>
56.
</html>