-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathadmin.html
More file actions
77 lines (69 loc) · 2.51 KB
/
admin.html
File metadata and controls
77 lines (69 loc) · 2.51 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Admin Dashboard - VCF Contacts</title>
<link rel="stylesheet" href="/static/admin.css" />
</head>
<body>
<div id="login-section">
<img
src="https://static.vecteezy.com/system/resources/previews/021/834/957/non_2x/contact-icon-in-gradient-colors-adress-book-or-phone-book-signs-illustration-png.png"
alt="Logo"
class="logo"
/>
<h1>Admin Login</h1>
<input type="password" id="admin-pass" placeholder="Enter Password" />
<button onclick="login()">Login 🔑</button>
</div>
<div id="dashboard" class="container">
<img
src="https://static.vecteezy.com/system/resources/previews/021/834/957/non_2x/contact-icon-in-gradient-colors-adress-book-or-phone-book-signs-illustration-png.png"
alt="Logo"
class="logo"
/>
<h1>Admin Dashboard</h1>
<section id="stats" class="stats">
<div>✅ Submitted Users: <span id="total">0</span> Users</div>
<div>🟢 Target: <span id="target">500</span> Users</div>
</section>
<div class="target-update">
<input
type="number"
id="new-target"
placeholder="Set new target (e.g., 1000 users)"
/>
<button onclick="updateTarget()">Update Target ⚙️</button>
</div>
<div class="prefix-section">
<input type="text" id="name-prefix" placeholder="e.g., ✅" />
<button onclick="updatePrefix()">Update Prefix</button>
</div>
<div class="table-container">
<table id="users-table">
<thead>
<tr>
<th>Name</th>
<th>Username</th>
<th>Phone Number</th>
</tr>
</thead>
<tbody></tbody>
</table>
<div class="pagination">
<button id="prev-page" onclick="changePage(-1)">⬅️ Previous</button>
<button id="next-page" onclick="changePage(1)">Next ➡️</button>
</div>
</div>
<button class="vcf-btn" onclick="generateVCF()">
📇 Generate VCF File
</button>
<button class="vcf-btn" onclick="clearContacts()">
🚮 Clear Contacts
</button>
</div>
<footer class="footer">XP Tools | FreenetHubz | 2025</footer>
<script src="/static/admin.js"></script>
</body>
</html>