-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmenu.php
More file actions
135 lines (129 loc) · 2.89 KB
/
menu.php
File metadata and controls
135 lines (129 loc) · 2.89 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
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
<style type="text/css">
nav{
position: fixed;
width: 100%;
z-index: 99999;
background: #1E90FF;
padding: 1px 20px;
}
nav ul{
list-style: none;
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: center;
}
nav ul li{
padding: 15px 0;
cursor: pointer;
}
nav ul li.items{
position: relative;
width: auto;
margin: 0 16px;
text-align: center;
order: 3;
}
nav ul li.items:after{
position: absolute;
content: '';
left: 0;
bottom: 5px;
height: 2px;
width: 100%;
background: #33ffff;
opacity: 0;
transition: all 0.2s linear;
}
nav ul li.items:hover:after{
opacity: 1;
bottom: 8px;
}
nav ul li.logo{
flex: 1;
color: white;
font-size: 23px;
font-weight: 600;
cursor: default;
user-select: none;
}
nav ul li a{
color: white;
font-size: 18px;
text-decoration: none;
transition: .4s;
}
nav ul li:hover a{
color: cyan;
}
nav ul li i{
font-size: 23px;
}
nav ul li.btn1{
display: none;
}
nav ul li.btn1.hide i:before{
content: '\f00d';
}
@media all and (max-width: 900px){
nav{
padding: 5px 30px;
}
nav ul li.items{
width: 100%;
display: none;
}
nav ul li.items.show{
display: block;
}
nav ul li.btn1{
display: block;
}
nav ul li.items:hover{
border-radius: 5px;
box-shadow: inset 0 0 5px #33ffff,
inset 0 0 10px #66ffff;
}
nav ul li.items:hover:after{
opacity: 0;
}
}
</style>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script src="fontawesome/js/all.min.js"></script>
<script src="admin/assets/js/jquery-1.10.2.js"></script>
<nav>
<ul>
<li class="logo">BOSE KOI FARM</li>
<li class="items"><a href="index.php"><i class="fas fa-home"></i> Home</a></li>
<li class="items"><a href="pengembalian.php">Pengembalian</a></li>
<?php
include 'koneksi.php';
if (isset($_SESSION["pelanggan"])):?>
<li class="items"><a href="logout.php">Logout</a></li>
<li class="items"><a href="riwayat.php">Riwayat Pembelian</a></li>
<?php
$id_pelanggan= $_SESSION["pelanggan"]['id_pelanggan'];
$ambil= $koneksi->query("SELECT *FROM pelanggan WHERE id_pelanggan='$id_pelanggan'");
$pecah=$ambil->fetch_assoc();?>
<li class="items"><a href="profil.php"><img src="fotoprofil/<?php echo $pecah["fotoprofil"] ?>" width="22px" style="border-radius: 15px; -moz-border-radius:15px; border: 2px solid crimson;"></a></li>
<?php else: ?>
<li class="items"><a href="login.php">Login</a></li>
<li class="items"><a href="daftar.php">Daftar</a></li>
<?php endif ?>
<li class="btn1"><a href="#"><i class="fas fa-bars"></i></a></li>
</ul>
</nav>
<script>
$(document).ready(function(){
$('.btn1').click(function(){
$('.logo').toggleClass("show");
$('.btn1').toggleClass("show");
$('.items').toggleClass("show");
$('ul li').toggleClass("hide");
});
});
</script>
<br>
<br>