-
Notifications
You must be signed in to change notification settings - Fork 3
/
i_member_menu.php
executable file
·176 lines (127 loc) · 3.85 KB
/
i_member_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
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
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
<?php
/*
******************************************************************
* CMS-TOKO-BIASAWAE v1.0 (code : Daun Muda). 2018
******************************************************************
* Dikembangkan oleh : Agus Muhajir *
* http://github.com/hajirodeon *
* http://hajirodeon.wordpress.com *
* http://facebook.com/hajirodeon *
* sms/wa/telegram : 081-829-88-54 *
* email : hajirodeon@gmail.com *
* ****************************************************************
*/
///cek session //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
$kd6_session = nosql($_SESSION['kd6_session']);
$notakd = nosql($_SESSION['notakd']);
$nama6_session = cegah($_SESSION['nama6_session']);
$telp6_session = nosql($_SESSION['telp6_session']);
$username6_session = nosql($_SESSION['username6_session']);
$member_session = nosql($_SESSION['member_session']);
$pass6_session = nosql($_SESSION['pass6_session']);
$hajirobe_session = nosql($_SESSION['hajirobe_session']);
//jika null
if (empty($kd6_session))
{
//jika reg
if ($filenya == "reg.php")
{
$statusku = " class=\"active\"";
}
//jika login
else if ($filenya == "login.php")
{
$statusku2 = " class=\"active\"";
}
echo '<li '.$statusku.'>
<a href="'.$sumber.'/reg.php">
<b>
Menjadi Member
</b>
</a>
</li>
<li '.$statusku2.'>
<a href="'.$sumber.'/login.php">
<b>
LOGIN
</b>
</a>
</li>';
}
//jika ada
else
{
//jika profil
if ($filenya == "member_profil.php")
{
$statusku3 = " class=\"active\"";
}
//jika troli
if ($filenya == "member_troli.php")
{
$statusku4 = " class=\"active\"";
}
//jika konfirmasi
if ($filenya == "member_konfirmasi.php")
{
$statusku5 = " class=\"active\"";
}
//jika history
if ($filenya == "member_history.php")
{
$statusku6 = " class=\"active\"";
}
//jika diskusi
if ($filenya == "member_diskusi.php")
{
$statusku7 = " class=\"active\"";
}
//jika testimoni
if ($filenya == "member_testimoni.php")
{
$statusku8 = " class=\"active\"";
}
//ketahui jumlah item yang masih dalam troli belanja
$q = mysqli_query($koneksi, "SELECT * FROM member_order_detail ".
"WHERE member_kd = '$kd6_session' ".
"AND nota_kd = '$notakd' ".
"ORDER BY item_nama ASC");
$row = mysqli_fetch_assoc($q);
$total = mysqli_num_rows($q);
echo '<li '.$statusku3.'>
<a href="'.$sumber.'/member_profil.php" title="Profil Diri">
<i class="fa fa-user"></i>
</a>
</li>
<li '.$statusku4.'>
<a href="'.$sumber.'/member_troli.php" title="Troli Belanja">
<i class="fa fa-opencart"></i>
<span class="label label-success">'.$total.'</span>
</a>
</li>
<li '.$statusku5.'>
<a href="'.$sumber.'/member_konfirmasi.php" title="Konfirmasi Transfer">
<i class="fa fa-money"></i>
</a>
</li>
<li '.$statusku6.'>
<a href="'.$sumber.'/member_history.php" title="History Transaksi">
<i class="fa fa-history"></i>
</a>
</li>
<li '.$statusku7.'>
<a href="'.$sumber.'/member_diskusi.php" title="Diskusi">
<i class="fa fa-pencil-square-o"></i>
</a>
</li>
<li '.$statusku8.'>
<a href="'.$sumber.'/member_testimoni.php" title="Testimoni">
<i class="fa fa-comment"></i>
</a>
</li>
<li>
<a href="'.$sumber.'/logout.php"><i class="fa fa-gears"></i>KELUAR</a>
</li>';
}
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
?>