-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathusers.php
137 lines (120 loc) · 5.9 KB
/
users.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
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
<!DOCTYPE html>
<?php
include 'check.php';
adminCheck();
?>
<html lang="en">
<head>
<title>Users List</title>
<link rel="icon" href="./img/favicon_algowifi.png" type="image/x-icon" />
<meta charset='utf-8'>
<meta name='viewport' content='width=device-width, initial-scale=1'>
<!--Bootstrap & jQuery-->
<script src="https://code.jquery.com/jquery-3.6.0.js" integrity="sha256-H+K7U5CnXl1h5ywQfKtSj8PCmoN9aaq30gDh27Xc0jk=" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.9.2/dist/umd/popper.min.js" integrity="sha384-IQsoLXl5PILFhosVNubq5LC7Qb9DXgDA9i+tQ8Zj3iwWAwPtgFTxbJ8NT4GN1R8p" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/js/bootstrap.min.js" integrity="sha384-cVKIPhGWiC2Al4u+LWgxfKTRIcfu0JTxR+EQDz/bgldoEyl4H0zUF0QKbrJ0EcQF" crossorigin="anonymous"></script>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous">
<!--Menu-->
<script type="text/javascript" src="./js/menu.js"></script>
<link href='https://cdn.jsdelivr.net/npm/boxicons@latest/css/boxicons.min.css' rel='stylesheet'>
<link rel="stylesheet" href="./css/menu.css">
<!-- datatables -->
<script src="https://cdn.datatables.net/1.11.3/js/jquery.dataTables.min.js"></script>
<link rel="stylesheet" href="https://cdn.datatables.net/1.11.3/css/jquery.dataTables.min.css">
</link>
<script src="js/users.js"></script>
</head>
<body id="body-pd" class="body-pd">
<header class="header body-pd" id="header">
<div class="header_toggle"> <i class='bx bx-menu bx-x' id="header-toggle"></i> </div>
<div class="header_img"> <img src="./img/Alogo.png" alt=""> </div>
</header>
<?php
printMenu();
?>
<!--Container Main start-->
<div class="height-100 bg-light">
<div id="liveAlertPlaceholder"></div>
<h4 id="containerTitle">Users List</h4>
<p><button type="button" id="btnNew" class="btn btn-primary"><i class="bx bx-user-plus"></i></button></p>
<div style="overflow-x:auto;">
<table id="example" class="display" style="width:100%">
<thead>
<tr>
<th>Id</th>
<th>Type</th>
<th>Name</th>
<th>Email</th>
<th>AWIFI</th>
<th>Algo</th>
<th>Address</th>
</tr>
</thead>
<tbody>
</tbody>
<tfoot>
<tr>
<th>Id</th>
<th>Type</th>
<th>Name</th>
<th>Email</th>
<th>AWIFI</th>
<th>Algo</th>
<th>Address</th>
</tr>
</tfoot>
</table>
</div>
<!-- Insertion form -->
<form id="insertionForm" style="display:none;">
<form>
<div class="modal-body">
<input id="id" type="hidden">
<div class="form-group">
<label>Name</label>
<input id="newName" type="text" class="form-control" required>
</div>
<div class="form-group">
<label>Email</label>
<input id="newEmail" type="email" class="form-control" required>
</div>
<div class="form-group">
<label>Note</label>
<input id="newNote" type="text" class="form-control" required>
</div>
<div class="form-group">
<label>Address</label>
<input id="newAddress" type="text" class="form-control" required>
</div>
<label>User type</label>
<div class="form-check">
<input class="form-check-input" type="radio" name="userTypeRadios" id="newIsAdmin" value="isAdmin">
<label class="form-check-label" for="newIsAdmin">Administrator</label>
</div>
<div class="form-check">
<input class="form-check-input" type="radio" name="userTypeRadios" id="newIsLocation" value="isLocation">
<label class="form-check-label" for="newIsLocation">Location</label>
</div>
<div class="form-check">
<input class="form-check-input" type="radio" name="userTypeRadios" id="newIsPublisher" value="isPublisher" checked>
<label class="form-check-label" for="newIsPublisher">Publisher</label>
</div>
<div class="form-check">
<input class="form-check-input" type="radio" name="userTypeRadios" id="newIsHotspotter" value="isHotspotter">
<label class="form-check-label" for="newIsHotspotter">Hotspotter</label>
</div>
</div>
<div class="modal-footer">
<div id="spinner" class="spinner-border text-primary" role="status" style="display: none;">
<span class="sr-only"></span>
</div>
<button type="button" id="btnCancel" class="btn btn-secondary" tabindex="2">Cancel</button>
<button type="submit" id="btnSave" value="btnSave" class="btn btn-primary" translate="1">Save</button>
</div>
</form>
</form>
<!-- Insertion form end -->
</div>
<!--Container Main end-->
</body>
</html>