-
Notifications
You must be signed in to change notification settings - Fork 1
/
sidenav.html
172 lines (155 loc) · 6.15 KB
/
sidenav.html
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<link rel="stylesheet" href="css/sidenav.css">
<script type="text/javascript">
var pid = "none";
function showhide(id) {
var elements = document.getElementById(id).childNodes;
var menu = elements[3];
var arrow = ((elements[1].childNodes)[4].childNodes)[1];
if(menu.style.display == 'block') {
menu.style.display = "none";
arrow.style.transform = "rotate(0deg)";
elements[1].style.color = "#eeeeee";
}
else {
menu.style.display = "block";
arrow.style.transform = "rotate(270deg)";
elements[1].style.color = "#ff5252";
}
if(pid == id)
pid = "none";
if(pid != "none") {
elements = document.getElementById(pid).childNodes;
menu = (document.getElementById(pid).childNodes)[3];
arrow = ((elements[1].childNodes)[4].childNodes)[1];
if(menu.style.display == 'block') {
menu.style.display = "none";
arrow.style.transform = "rotate(0deg)";
elements[1].style.color = "#eeeeee";
}
}
pid = id;
}
function showOptions() {
var flag = document.getElementById('options');
if(flag.style.display == 'block') {
flag.style.display = "none";
document.getElementById('mark').style.display = "none";
}
else {
flag.style.display = "block";
document.getElementById('mark').style.display = "block";
}
}
</script>
</head>
<body>
<div class="sidenav">
<div class="card">
<div class="card-body">
<div class="logo">
<img src="images/logo.png" class="profile"/>
<h1 class="logo-caption"><span class="tweak">A</span>dmin</h1>
</div> <!-- logo class -->
<!-- dashboard start -->
<div class="main-menu-item">
<a href="home.php"><i class="fa fa-dashboard"></i><span>Dashboard</span></a>
</div>
<!-- dashboard end -->
<!-- invoice strat -->
<div id="first" class="main-menu-item" onclick="showhide(this.id);">
<a href="#">
<i class="fa fa-balance-scale"></i><span>Patient</span>
<span class="pull-right-container">
<i class="fa fa-angle-left pull-right"></i>
</span>
</a>
<ul class="treeview-menu" style="display: none;">
<li class="treeview"><a href="add_patient.php">New Patient</a></li>
<li class="treeview"><a href="manage_patient.php">Manage Patient </a></li>
</ul>
</div>
<!-- invoice end -->
<!-- customer end -->
<div id="second" class="main-menu-item" onclick="showhide(this.id);">
<a href="#">
<i class="fa fa-handshake"></i><span>Doctor</span>
<span class="pull-right-container">
<i class="fa fa-angle-left pull-right"></i>
</span>
</a>
<ul class="treeview-menu" style="display: none;">
<li class="treeview"><a href="add_customer.php">Add Doctors</a></li>
<li class="treeview"><a href="manage_customer.php">Manage Doctors</a></li>
</ul>
</div>
<!-- customer end -->
<!-- medicine strat -->
<div id="third" class="main-menu-item" onclick="showhide(this.id);">
<a href="#">
<i class="fa fa-shopping-bag"></i><span>Pharamacy</span>
<span class="pull-right-container">
<i class="fa fa-angle-left pull-right"></i>
</span>
</a>
<ul class="treeview-menu" style="display: none;">
<li class="treeview"><a href="add_medicine.php">Add Pharamacy</a></li>
<li class="treeview"><a href="manage_medicine.php">Manage Pharamacy</a></li>
</ul>
</div>
<!-- medicine end -->
<!-- manufacturer start -->
<div id="fourth" class="main-menu-item" onclick="showhide(this.id);">
<a href="#">
<i class="fa fa-group"></i><span>Ridders</span>
<span class="pull-right-container">
<i class="fa fa-angle-left pull-right"></i>
</span>
</a>
<ul class="treeview-menu" style="display: none;">
<li class="treeview"><a href="add_supplier.php">Ridders</a></li>
<li class="treeview"><a href="manage_supplier.php">Manage Supplier</a></li>
</ul>
</div>
<!-- manufacturer end -->
<!-- report start -->
<div id="sixth" class="main-menu-item" onclick="showhide(this.id);">
<a href="#">
<i class="fa fa-book"></i><span>Report</span>
<span class="pull-right-container">
<i class="fa fa-angle-left pull-right"></i>
</span>
</a>
<ul class="treeview-menu" style="display: none;">
<li class="treeview"><a href="sales_report.php">Sales Report</a></li>
<li class="treeview"><a href="purchase_report.php">Purchase Report</a></li>
</ul>
</div>
<!-- report end -->
<!-- search start -->
<div id="seventh" class="main-menu-item" onclick="showhide(this.id);">
<a href="#">
<i class="fa fa-search"></i><span>Search</span>
<span class="pull-right-container">
<i class="fa fa-angle-left pull-right"></i>
</span>
</a>
<ul class="treeview-menu" style="display: none;">
<li class="treeview"><a href="manage_invoice.php">Patient</a></li>
<li class="treeview"><a href="manage_customer.php">Doctor</a></li>
<li class="treeview"><a href="manage_medicine.php">Pharamacy</a></li>
<li class="treeview"><a href="manage_supplier.php">Ridders</a></li>
</ul>
</div>
<!-- search end -->
</div> <!-- card-body class -->
</div> <!-- card -->
</div>
</body>
</html>