-
Notifications
You must be signed in to change notification settings - Fork 0
/
manageuser.php
110 lines (78 loc) · 3.8 KB
/
manageuser.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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
<!DOCTYPE html>
<html lang="en">
<link rel="icon" href="img\index\logo.png">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<?php
include('include/importcss.php');
?>
<title>จัดการสมาชิก</title>
</head>
<?php
require_once("php\condbbook.php");
$sql = "SELECT * FROM user";
$query = mysqli_query($conn, $sql);
?>
<?php
include('include/navber.php');
?>
</head>
<body>
<div class="container-fluid py-5">
<div class="card ">
<div class="header py-3">
<h4 class="title text-center">จัดการสมาชิก</h4>
</div>
<div class="content">
<div class="content table-responsive table-full-width">
<table class="table table-striped">
<div class="row">
<form name="frmMain" method="post" action="<?php echo $_SERVER["PHP_SELF"]; ?>">
<input type="hidden" name="hdnCmd" value="">
<thead>
<th width="15%"><b>Username</b></th>
<th width="15%"><b>ชื่อ</b></th>
<th width="15%"><b>นามสกุล</b></th>
<th width="15%"><b>เบอร์โทร</b></th>
<th width="15%"><b>สถานะ</b></th>
<th width="15%"><b></b></th>
</thead>
<tbody>
<?php
while ($result = mysqli_fetch_array($query, MYSQLI_ASSOC)) { ?>
<tr>
<td><?php echo $result["User_Username"]; ?></td>
<td><?php echo $result["User_Firstname"]; ?></td>
<td><?php echo $result["User_Lastname"]; ?></td>
<td><?php echo $result["User_Telephonenumber"]; ?></td>
<td><?php echo $result["User_Type"]; ?></td>
<td>
<a id=" edituser" type="submit" name="edituser" href="edituser.php?UserID=<?php
echo $result["User_ID"];
?>
" style="color:#000000">
<i class="fas fa-edit"></i></a>
<a href="php/deletuser.php?UserID=<?php
echo $result["User_ID"];
?>" style="color:#000000">
<i class="fas fa-trash-alt"></i></a>
</td>
</form>
</tr>
<?php
}
?>
</tbody>
</form>
</div>
</table>
</div>
</div>
</div>
</div>
<?php
include('include/importjavascript.php');
?>
</body>
</html>