-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathaddUserAdmin.html
106 lines (93 loc) · 2.29 KB
/
addUserAdmin.html
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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Admin Page</title>
<style>
body {
background-color: #000;
font-family: 'Courier New', monospace;
color: #21f600;
margin: 0;
padding: 0;
}
h1, h2 {
text-align: center;
padding: 20px 0;
}
#user-list {
width: 100%;
text-align: center;
margin-bottom: 50px;
}
#user-list td, #user-list th {
border: 1px solid #21f600;
padding: 8px;
}
#user-list th {
padding-top: 12px;
padding-bottom: 12px;
text-align: center;
background-color: #21f600;
color: #000;
}
form {
width: 300px;
margin: 0 auto;
display: flex;
flex-direction: column;
}
label, input, select, button {
margin-bottom: 20px;
}
input, select, button {
padding: 5px;
background: #000;
color: #21f600;
border: 1px solid #21f600;
}
button {
cursor: pointer;
}
#logout-button, #return-button {
display: block;
width: 100px;
margin: 20px auto;
background-color: #21f600;
color: #000;
border: none;
padding: 10px;
cursor: pointer;
font-size: 16px;
}
#logout-button:hover, #return-button:hover {
background-color: #1c9900;
color: #fff;
}
</style>
</head>
<body>
<h1>User List</h1>
<form id="search-form">
<input type="text" id="search-input" placeholder="Search users...">
</form>
<table id="user-list"></table>
<h2>Add User</h2>
<form id="add-user-form">
<label for="new-username">Username:</label>
<input type="text" id="new-username" required>
<label for="new-password">Password:</label>
<input type="password" id="new-password" required>
<label for="new-role">Role:</label>
<select id="new-role" required>
<option value="">Select a role</option>
<option value="admin">Admin</option>
<option value="reader">Reader</option>
</select>
<button type="submit">Add User</button>
</form>
<button id="logout-button">Logout</button>
<button id="return-button">Return</button>
<script src="adminAddUser.js"></script>
</body>
</html>