forked from mangospot-net/MangoSpot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
users.html
503 lines (499 loc) · 34.3 KB
/
users.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
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
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<title></title>
<link rel="stylesheet" type="text/css" href="dist/css/style.css">
<link rel="stylesheet" href="vendors/jquery/jquery-ui.theme.min.css" type="text/css" />
<link rel="shortcut icon" href="favicon.ico">
<script src="https://cdn.onesignal.com/sdks/OneSignalSDK.js" async=""></script>
</head>
<body>
<div class="preloader-it">
<div class="loader-pendulums"></div>
</div>
<div class="hk-wrapper hk-vertical-nav">
<nav class="navbar navbar-expand-xl navbar-light fixed-top hk-navbar">
<a id="navbar_toggle_btn" class="navbar-toggle-btn nav-link-hover" href="javascript:void(0);"><span
class="feather-icon"><i data-feather="menu"></i></span></a>
<a class="navbar-brand" href="./">
<img class="brand-img d-inline-block" src="dist/img/logo-light.png" alt="brand" height="40" />
</a>
<ul class="navbar-nav hk-navbar-content">
<li class="nav-item dropdown dropdown-authentication">
<a class="nav-link dropdown-toggle no-caret" href="#" role="button" data-toggle="dropdown"
aria-haspopup="true" aria-expanded="false">
<div class="media">
<div class="media-img-wrap">
<div class="avatar">
<img src="dist/img/users/no_foto.jpg" alt="user"
class="avatar-img rounded-circle user-image">
</div>
</div>
<div class="media-body">
<span><span class="user_users"></span> <i class="zmdi zmdi-chevron-down"></i></span>
</div>
</div>
</a>
<div class="dropdown-menu dropdown-menu-right" data-dropdown-in="flipInX"
data-dropdown-out="flipOutX">
<a class="dropdown-item" href="profile.html">
<i class="dropdown-icon zmdi zmdi-account"></i>
<span>Profile</span>
</a>
<div class="dropdown-divider"></div>
<a class="dropdown-item logout" href="javascript:void(0);"><i
class="dropdown-icon zmdi zmdi-power"></i><span>Logout</span></a>
</div>
</li>
</ul>
</nav>
<nav class="hk-nav hk-nav-light">
<a href="javascript:void(0);" id="hk_nav_close" class="hk-nav-close"><span class="feather-icon"><i
data-feather="x"></i></span></a>
<div class="nicescroll-bar">
<div class="navbar-nav-wrap">
<ul class="navbar-nav flex-column">
<li class="nav-item">
<a class="nav-link" href="./">
<i class="material-icons">home</i>
<span class="nav-link-text">Dashboard</span>
</a>
</li>
<li class="nav-item">
<a class="nav-link" href="javascript:void(0);" data-toggle="collapse"
data-target="#page_account">
<i class="material-icons">account_box</i>
<span class="nav-link-text">My Account</span>
</a>
<ul id="page_account" class="nav flex-column collapse collapse-level-1">
<li class="nav-item">
<ul class="nav flex-column">
<li class="nav-item">
<a class="nav-link" href="profile.html">Profile</a>
</li>
<li class="nav-item">
<a class="nav-link logout" href="javascript:void(0);">Logout</a>
</li>
</ul>
</li>
</ul>
</li>
</ul>
<hr class="nav-separator">
<div id="list-menu"></div>
</div>
</div>
</nav>
<div id="hk_nav_backdrop" class="hk-nav-backdrop"></div>
<div class="hk-pg-wrapper">
<nav class="hk-breadcrumb" aria-label="breadcrumb">
<ol class="breadcrumb breadcrumb-light bg-transparent">
<li class="breadcrumb-item"><a href="#">Radius</a></li>
<li class="breadcrumb-item active" aria-current="page">Form Users</li>
</ol>
</nav>
<div class="container">
<div class="hk-pg-header">
<h4 class="hk-pg-title">
<span class="pg-title-icon">
<span class="feather-icon"><i data-feather="users"></i></span>
</span>
User Clients
</h4>
</div>
<div class="row">
<div class="col-xl-12">
<div class="card">
<div class="card-header">
<div class="btn-group input-group-prepend pull-left">
<button aria-expanded="false" data-toggle="dropdown"
class="btn btn-info btn-sm dropdown-toggle" type="button">
<span class="icon-label"><i class="fa fa-plus"></i></span> Add
<span class="caret"></span>
</button>
<div role="menu" class="dropdown-menu">
<a class="dropdown-item" href="#add-one" data-toggle="modal" data-value="0">
<i class="fa fa-user-plus"></i> One
</a>
<a class="dropdown-item" href="#add-batch" data-toggle="modal">
<i class="fa fa-users"></i> Batch
</a>
<a class="dropdown-item" href="#add-users" data-toggle="modal">
<i class="fa fa-upload"></i> Import
</a>
</div>
</div>
<div class="pull-right mt-5">
<a href="javascript:void(0);" class="refresh-tabel"><i
class="fa fa-refresh"></i></a>
</div>
</div>
<div class="card-body">
<div class="row">
<div class="form-group col-md-6">
<select class="form-control profiles" id="profile">
<option value="">-- All Profile --</option>
</select>
</div>
<div class="form-group col-md-6">
<select class="form-control reseller" id="reseller">
<option value="">-- All Reseller --</option>
</select>
</div>
</div>
<div class="table-responsive">
<table id="tables" class="table dataTable">
<thead>
<tr>
<th width="5%"><input type="checkbox" id="CheckAll"></th>
<th>Username</th>
<th>Profile</th>
<th>Created</th>
<th>Description</th>
<th>Act</th>
</tr>
</thead>
</table>
</div>
</div>
</div>
<div class="modal fade" id="add-one" aria-hidden="true">
<div class="modal-dialog">
<form class="modal-content" id="form-one" method="POST" action="users">
<div class="modal-header">
<h5 class="modal-title">Form One</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<div class="form-group">
<label for="username">Username <span class="symbol required"></span></label>
<div class="input-group">
<input type="text" class="form-control" id="username" name="username"
placeholder="Username" required>
<div class="input-group-append">
<label class="input-group-text">
<input type="checkbox" id="checkPPP"> PPP
<input type="hidden" id="ppp" name="radreply[]">
<input type="hidden" name="attribut[]" value="Framed-Protocol">
</label>
</div>
</div>
</div>
<div class="form-group">
<label for="value">Password <span class="symbol required"></span></label>
<div class="input-group">
<input type="password" class="form-control" id="passwd"
name="radcheck[]" placeholder="Password" required>
<div class="input-group-append">
<label class="input-group-text">
<input type="checkbox" id="show_paswd" class="fa check-eye">
</label>
</div>
</div>
<input type="hidden" name="attribute[]" value="Cleartext-Password">
</div>
<div class="form-group">
<label for="profiles">Profile </label>
<select class="form-control profiles" id="profiles" name="groupname">
<option value="">-- Select Profile --</option>
</select>
</div>
<div class="row manual">
<div class="form-group col-md-4">
<label for="period">Access Priod
<a data-toggle="tooltip" data-placement="top"
data-original-title="A users can login for the specified period"><i
class="fa fa-question-circle"></i>
</a>
</label>
<input type="number" readonly class="form-control" id="period"
name="radcheck[]" placeholder="Access Priod">
<input type="hidden" name="attribute[]" value="Access-Period">
</div>
<div class="form-group col-md-4">
<label for="time">Many Time
<a data-toggle="tooltip" data-placement="top"
data-original-title="A user can login as many times as needed but can be online for the specified time"><i
class="fa fa-question-circle"></i>
</a>
</label>
<input type="number" readonly class="form-control" id="times"
name="radcheck[]" placeholder="Many Time">
<input type="hidden" name="attribute[]" value="Max-All-Session">
</div>
<div class="form-group col-md-4">
<label for="daily">Per Day
<a data-toggle="tooltip" data-placement="top"
data-original-title="A user with User-Name test123 has online time limit of 3 hours per day">
<i class="fa fa-question-circle"></i>
</a>
</label>
<input type="number" readonly class="form-control" id="daily"
name="radcheck[]" placeholder="Per Day">
<input type="hidden" name="attribute[]" value="Max-Daily-Session">
</div>
</div>
<div class="row manual">
<div class="form-group col-md-4">
<label for="shared">Shared User
<a data-toggle="tooltip" data-placement="top"
data-original-title="Shared user are any resource that uses a single pair of credentials to authenticate multiple users.">
<i class="fa fa-question-circle"></i>
</a>
</label>
<input type="number" min="1" class="form-control" id="shared"
name="radcheck[]" value="" placeholder="1">
<input type="hidden" name="attribute[]" value="Simultaneous-Use">
</div>
<div class="form-group col-md-4">
<label for="rate">Rate Limit
<a data-toggle="tooltip" data-placement="top"
data-original-title="1.rx-rate/tx-rate 2.rx-burst-rate/tx-burst-rate 3.rx-burst-threshold/tx-burst-threshold 4.rx-burst-time/tx-burst-time">
<i class="fa fa-question-circle"></i>
</a>
</label>
<input type="text" class="form-control UpperCase" id="rate"
name="radreply[]" placeholder="512K/1M 3M/4M 2M/3M 8/8">
<input type="hidden" name="attribut[]" value="Mikrotik-Rate-Limit">
</div>
<div class="form-group col-md-4">
<label for="quota">Quota Limit
<a data-toggle="tooltip" data-placement="top"
data-original-title="(B) Bytes, (KB) KiloBytes, (MB) MegaBytes, (GB) GigaBytes, (TB) TeraBytes">
<i class="fa fa-question-circle"></i>
</a>
</label>
<div class="input-group">
<input type="number" min="0" id="quota_numb" class="form-control"
placeholder="1">
<input type="hidden" id="quota" name="radreply[]">
<input type="hidden" name="attribut[]" value="Mikrotik-Total-Limit">
<input type="hidden" id="volume" name="radcheck[]">
<input type="hidden" name="attribute[]" value="Max-Data">
<div class="input-group-append">
<select class="custom-select custom-select-md" id="quota_code">
<option value="B">B</option>
<option value="KB">KB</option>
<option value="MB">MB</option>
<option value="GB">GB</option>
<option value="TB">TB</option>
</select>
</div>
</div>
</div>
</div>
<div class="form-group">
<label for="description">Description</label>
<textarea class="form-control" id="description" name="description"
placeholder="Description..."></textarea>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal"><i
class="fa fa-close"></i>
Close</button>
<button type="submit" id="id" name="id" value="-0" class="btn btn-blue"> <i
class="fa fa-save"></i> Save</button>
</div>
</form>
</div>
</div>
<div class="modal fade" id="add-batch" tabindex="-1" role="dialog" aria-hidden="true">
<div class="modal-dialog" role="document">
<form class="modal-content" id="form-batch" method="POST" action="users">
<div class="modal-header">
<h5 class="modal-title">Form Batch</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<div class="row">
<div class="form-group col-md-3">
<label for="qty">Qty <span class="symbol required"></span></label>
<input type="number" min="1" class="form-control normal" name="qty"
placeholder="Qty" value="5" required>
</div>
<div class="form-group col-md-6">
<label for="mode">Mode </label>
<select class="form-control" name="mode">
<option value="true">Username & Password</option>
<option value="false">Username = Password</option>
</select>
</div>
<div class="form-group col-md-3">
<label for="length">Length <span class="symbol required"></span></label>
<input type="number" min="4" class="form-control" name="length"
value="4" required>
</div>
</div>
<div class="row">
<div class="form-group col-md-3">
<label for="prefix">Prefix </label>
<input type="text" class="form-control" name="prefix"
placeholder="Prefix">
</div>
<div class="form-group col-md-9">
<label for="charecter">Charecter </label>
<select class="form-control" name="charecter" required>
<option value="1">abcd</option>
<option value="2">ABCD</option>
<option value="3">aBcD</option>
<option value="4">1234</option>
<option value="5">1abc2de</option>
<option value="6">1ABC2DE</option>
<option value="7">1aBc2dE</option>
<option value="8">1#aB3&D</option>
</select>
</div>
</div>
<div class="form-group">
<label for="groupname">Profile <span class="symbol required"></span></label>
<select class="form-control profiles" name="groupname" required>
<option value="">-- Select Profile --</option>
</select>
</div>
<div class="form-group">
<label for="descriptions">Description</label>
<textarea class="form-control" name="description"
placeholder="Description..."></textarea>
</div>
</div>
<div class="modal-footer">
<input type="hidden" id="create" name="created" value="">
<button type="button" class="btn btn-secondary" data-dismiss="modal"><i
class="fa fa-close"></i>
Close</button>
<button type="submit" class="btn btn-blue"> <i class="fa fa-save"></i>
Save</button>
</div>
</form>
</div>
</div>
<div class="modal fade" id="add-users" tabindex="-1" role="dialog" aria-hidden="true">
<div class="modal-dialog" role="document">
<form class="modal-content" id="import-users" method="POST" action="users">
<div class="modal-header">
<h5 class="modal-title">Form Import</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<div class="form-group">
<label for="groupname">Profile </label>
<select class="form-control profiles" name="groupname">
<option value="">-- Select Profile --</option>
</select>
</div>
<div class="form-group">
<label for="groupname">
File <small class="text-red">.xls</small>
<span class="symbol required"></span>
</label>
<div class="fileinput fileinput-new input-group" data-provides="fileinput">
<div class="form-control text-truncate" data-trigger="fileinput">
<i class="fa fa-file fileinput-exists"></i>
<span class="fileinput-filename"></span>
</div>
<span class="input-group-append">
<span class=" btn btn-primary btn-file">
<span class="fileinput-new">Select file</span>
<span class="fileinput-exists">Change</span>
<input type="file" name="file" required>
</span>
<a href="#" class="btn btn-danger fileinput-exists"
data-dismiss="fileinput">Remove</a>
</span>
</div>
</div>
<div class="form-group">
<label for="description">Description</label>
<textarea class="form-control" name="description"
placeholder="Description..."></textarea>
</div>
</div>
<div class="modal-footer">
<div class="mr-auto">
<a href="dist/file/users.xls" class="btn btn-info">
<i class="fa fa-download"></i> Format
</a>
<input type="hidden" id="timer" name="created" value="">
</div>
<button type="button" class="btn btn-secondary" data-dismiss="modal">
<i class="fa fa-close"></i> Close
</button>
<button type="submit" name="import" value="true" class="btn btn-blue">
<i class="fa fa-upload"></i> Upload
</button>
</div>
</form>
</div>
</div>
<div class="modal fade" id="print" tabindex="-1" role="dialog" aria-hidden="true">
<div class="modal-dialog modal-lg" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title">Print View</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<div class="form-group">
<label>Themes</label>
<select id="theme" class="form-control"></select>
<input type="hidden" id="data">
<input type="hidden" id="type">
</div>
<div id="print-content"></div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">
<i class="fa fa-close"></i> Close
</button>
<button type="submit" class="btn btn-blue print" value="print-content">
<i class="fa fa-print"></i> Print
</button>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="hk-footer-wrap container" data-include="menu/footer.html"></div>
</div>
</div>
<script src="vendors/jquery/dist/jquery.min.js"></script>
<script src="vendors/jquery/jquery-ui.min.js"></script>
<script src="vendors/popper.js/dist/umd/popper.min.js"></script>
<script src="vendors/bootstrap/dist/js/bootstrap.min.js"></script>
<script src="vendors/datatables/js/jquery.dataTables.min.js"></script>
<script src="vendors/datatables/js/dataTables.bootstrap4.min.js"></script>
<script src="vendors/datatables/js/dataTables.dataTables.min.js"></script>
<script src="vendors/datatables/js/dataTables.buttons.min.js"></script>
<script src="vendors/datatables/js/buttons.bootstrap4.min.js"></script>
<script src="vendors/datatables/js/dataTables.responsive.min.js"></script>
<script src="vendors/bootstrap-toggle/bootstrap4-toggle.min.js"></script>
<script src="vendors/durationpicker/duration-picker.min.js"></script>
<script src="vendors/jasny-bootstrap/jasny-bootstrap.min.js"></script>
<script src="vendors/validation/jquery.validate.min.js"></script>
<script src="vendors/validation/additional-methods.min.js"></script>
<script src="vendors/jquery-cookie/jquery.cookie.js"></script>
<script src="vendors/jquery-toast/jquery.toast.js"></script>
<script src="vendors/sweetalert/sweetalert.min.js"></script>
<script src="vendors/qr-code/jquery-qrcode.min.js"></script>
<script src="vendors/moment/moment.js"></script>
<script src="vendors/slimscroll/jquery.slimscroll.js"></script>
<script src="vendors/bootstrap/dropdown-extended.js"></script>
<script src="dist/js/feather.min.js"></script>
<script src="dist/js/controls.js"></script>
<script src="dist/js/init.js"></script>
<script src="dist/js/users.js"></script>
</body>
</html>