-
Notifications
You must be signed in to change notification settings - Fork 0
/
profile.php
71 lines (49 loc) · 2.4 KB
/
profile.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
<?php require_once 'backend/config.php'; ?>
<!DOCTYPE html>
<html lang="en">
<?php require_once 'head.php'; ?>
<body onload="set(), GenerateQRcode()">
<?php require_once 'components/loading/loading.php'; ?>
<div class="container">
<?php include "components/layout/aside.php" ?>
<?php require_once 'components/layout/header.php'; ?>
<section>
<div class="section-group">
<?php require_once 'components/layout/alert.php'; ?>
<!-- Content here -->
<?php $UserData = GetUserByID($_SESSION['login'], $conn); ?>
<div class="profile">
<div class="card-container">
<div class="card">
<div class="card-group">
<div class="card-content">
<?php if ($UserData['pic'] != "") { ?>
<img class="card-profile" src="resource/img/profile/<?php echo $UserData['pic']; ?>">
<?php } else { ?>
<span class="material-symbols-outlined card-profile">account_circle</span>
<?php } ?>
</div>
<div class="card-content">
<p><?= $UserData['role']; ?> #<?php echo $UserData['id'] ?></p>
<p><?= $UserData['username']; ?></p>
</div>
</div>
<div class="card-group">
<div id="Qrcode" class="card-qrcode"></div>
</div>
</div>
<div class="card-menu">
<!--<div class="btn-pr">Login QR</div>-->
<div class="btn-pr" onclick="window.location='account.php?update&user_id=<?= $UserData['id'] ?>'"><?= $view ?></div>
</div>
</div>
<?php include 'components/layout/menu_p.php'; ?>
</div>
<!-- End Content here -->
</div>
</section>
<?php require_once 'components/layout/nav.php'; ?>
<?php require_once 'components/layout/footer.php'; ?>
</div>
</body>
</html>