-
Notifications
You must be signed in to change notification settings - Fork 0
/
menu.php
66 lines (57 loc) · 2.45 KB
/
menu.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
<?php
session_start();
if (empty($_SESSION["id_user"])){
header("location:index.php");
}
?>
<div class="row">
<div class="col-md-8">
<ul class="nav nav-pills">
<li class="nav-item">
<a class="nav-link" aria-current="page" href="dashboard.php">BERANDA</a>
</li>
<?php if ($_SESSION["login_as"] == 'admin') : ?>
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" data-bs-toggle="dropdown" href="#" role="button"
aria-expanded="false">PENDAFTARAN</a>
<ul class="dropdown-menu">
<li><a class="dropdown-item" href="daftar_treatment.php">Daftar Treatment</a></li>
<li><a class="dropdown-item" href="registrasi_baru.php">Registrasi Baru</a></li>
</ul>
</li>
<li class="nav-item">
<a class="nav-link" aria-current="page" href="kasir.php">KASIR</a>
</li>
<?php elseif ($_SESSION["login_as"] == 'farmasi') : ?>
<li class="nav-item">
<a class="nav-link" aria-current="page" href="farmasi.php">FARMASI</a>
</li>
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" data-bs-toggle="dropdown" href="#" role="button"
aria-expanded="false">PRODUK</a>
<ul class="dropdown-menu">
<li><a class="dropdown-item" href="produk.php">Lihat Stok</a></li>
<li><a class="dropdown-item" href="produk_keluar.php">Stok Keluar</a></li>
<li><a class="dropdown-item" href="produk_tambah_form.php">Stok Masuk</a></li>
</ul>
</li>
<?php elseif ($_SESSION["login_as"] == 'dokter') : ?>
<li class="nav-item">
<a class="nav-link" aria-current="page" href="treatment.php">POLIKLINIK</a>
</li>
<?php endif; ?>
</ul>
</div>
<div class="col-md-4">
<ul class="nav nav-pills">
<li class="nav-item">
<a class="nav-link text-danger" aria-current="page" href="logout.php">LOGOUT</a>
</li>
<li class="nav-item">
<a class="nav-link active"
aria-current="page"><?= $_SESSION["nama_user"] . ' (' . strtoupper($_SESSION["login_as"]) . ')'; ?></a>
</li>
</ul>
</div>
</div>
<hr>