forked from hawariMuflihMunte/pupuk
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathprofile.php
More file actions
33 lines (31 loc) · 1.08 KB
/
profile.php
File metadata and controls
33 lines (31 loc) · 1.08 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
<?php include('./template/head.php') ?>
<?php include('./php/connection.php') ?>
<?php include('./template/nav.php') ?>
<div class="container pt-5">
<h5 class="text-secondary">Profil</h5>
<hr>
<div class="border p-3">
<div class="d-flex gap-5">
<p>Nama</p>
<span>:</span>
<p><?= $_SESSION['name'] ?></p>
</div>
<div class="d-flex gap-3">
<p>Username</p>
<span>:</span>
<p class="ms-4"><?= $_SESSION['username'] ?></p>
</div>
<div class="d-flex gap-5">
<p>Role</p>
<span>:</span>
<p><?= $_SESSION['role'] == 1 ? 'Administrator' : 'Konsumen' ?></p>
</div>
<hr>
<div class="d-flex justify-content-center">
<p>
<a href="./profile.change.php">Ganti kata Sandi</a>
</p>
</div>
</div>
</div>
<?php include('./template/head.php') ?>