-
Notifications
You must be signed in to change notification settings - Fork 0
/
header.php
executable file
·233 lines (226 loc) · 9.48 KB
/
header.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
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
<?php
include('../base-url.php');
session_start();
if(!isset($_SESSION['userId'])){
header("location:".BASE_URL."login.php");
}
include_once('includes/MysqliDb.php');
include_once('includes/General.php');
$cmyQuery="SELECT company_code,company_name FROM company_profile";
$cmyResult = $db->rawQuery($cmyQuery);
?>
<!DOCTYPE html>
<html lang="en-US">
<head>
<meta charset="utf-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge"/>
<title><?php echo (isset($title) && $title != null && $title != "") ? $title : $cmyResult[0]['company_name'] ?></title>
<!-- Tell the browser to be responsive to screen width -->
<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
<link rel="shortcut icon" href="<?php echo BASE_URL;?>uploads/logo/favicon.ico">
<link rel="stylesheet" media="all" type="text/css" href="<?php echo BASE_URL;?>assets/css/jquery-ui.1.11.0.css" />
<!-- Bootstrap 3.3.6 -->
<link rel="stylesheet" href="<?php echo BASE_URL;?>assets/css/bootstrap.min.css">
<!-- Font Awesome -->
<link rel="stylesheet" href="<?php echo BASE_URL;?>assets/css/font-awesome.min.4.5.0.css">
<!-- Ionicons -->
<!--<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/ionicons/2.0.1/css/ionicons.min.css">-->
<!-- DataTables -->
<link rel="stylesheet" href="<?php echo BASE_URL;?>assets/plugins/datatables/dataTables.bootstrap.css">
<!-- Theme style -->
<link rel="stylesheet" href="<?php echo BASE_URL;?>dist/css/AdminLTE.min.css">
<!-- AdminLTE Skins. Choose a skin from the css/skins
folder instead of downloading all of them to reduce the load. -->
<link rel="stylesheet" href="<?php echo BASE_URL;?>dist/css/skins/_all-skins.min.css">
<!-- iCheck -->
<link href="<?php echo BASE_URL;?>assets/css/select2.min.css" rel="stylesheet" />
<script type="text/javascript" src="<?php echo BASE_URL;?>assets/js/jquery-2.2.3.min.js"></script>
<!-- Latest compiled and minified JavaScript -->
<script type="text/javascript" src="<?php echo BASE_URL;?>assets/js/jquery-ui.1.11.0.js"></script>
<style>
.dataTables_wrapper{
position: relative;
clear: both;
overflow-x: scroll !important;
overflow-y: visible !important;
padding: 15px 0 !important;
}
.mandatory{color:red;}
</style>
</head>
<body class="hold-transition skin-blue sidebar-mini">
<div class="wrapper">
<header class="main-header">
<!-- Logo -->
<a href="<?php echo BASE_URL;?>" class="logo">
<!-- mini logo for sidebar mini 50x50 pixels -->
<span class="logo-mini"><b><?php echo $cmyResult[0]['company_code'];?></b></span>
<!-- logo for regular state and mobile devices -->
<span class="logo-lg" style="font-weight:bold;"><?php echo $cmyResult[0]['company_name'];?></span>
</a>
<!-- Header Navbar: style can be found in header.less -->
<nav class="navbar navbar-static-top">
<!-- Sidebar toggle button-->
<a href="#" class="sidebar-toggle" data-toggle="offcanvas" role="button">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</a>
<div class="navbar-custom-menu">
<ul class="nav navbar-nav">
<!-- User Account: style can be found in dropdown.less -->
<li class="dropdown user user-menu">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
<img src="<?php echo BASE_URL;?>assets/img/default-user.png" class="user-image" alt="User Image">
<span class="hidden-xs"></span>
</a>
<ul class="dropdown-menu">
<!-- Menu Footer-->
<li class="user-footer">
<?php
if(isset($_SESSION['userLoginId']) && $_SESSION['userLoginId'] == 'tile-admin'){?>
<div class="pull-left">
<a href="<?php echo BASE_URL;?>company/profile.php" class="btn btn-default btn-flat">Edit Company profile</a>
</div>
<?php
$pullVal = "pull-right";
}else{$pullVal = "text-center";} ?>
<div class="<?php echo $pullVal;?>">
<a href="<?php echo BASE_URL;?>logout.php" class="btn btn-default btn-flat">Log out</a>
</div>
</li>
</ul>
</li>
</ul>
</div>
</nav>
</header>
<!-- Left side column. contains the logo and sidebar -->
<aside class="main-sidebar">
<!-- sidebar: style can be found in sidebar.less -->
<section class="sidebar">
<!-- sidebar menu: : style can be found in sidebar.less -->
<!-- Sidebar user panel -->
<div class="user-panel">
<div align="center">
<!-- <img src="uploads/logo/< ?php echo $global['logo']; ?>" alt="Logo Image" style="max-width:120px;" > -->
</div>
</div>
<ul class="sidebar-menu">
<!-- <li class="allMenu dashboardMenu active">
<a>
<i class="fa fa-dashboard"></i> <span>Dashboard</span>
</a>
</li> -->
<li class="treeview manage">
<a href="#">
<i class="fa fa-gears"></i>
<span>Manage</span>
<span class="pull-right-container">
<i class="fa fa-angle-left pull-right"></i>
</span>
</a>
<ul class="treeview-menu">
<?php if(isset($_SESSION['userLoginId']) && $_SESSION['userLoginId'] == 'tile-admin'){?>
<li class="allMenu userMenu">
<a href="<?php echo BASE_URL;?>users/user-list.php"><i class="fa fa-user"></i> Users</a>
</li>
<?php } ?>
<!-- <li class="allMenu agentMenu">
<a href="<?php echo BASE_URL;?>agents/agentList.php"><i class="fa fa-user"></i> Agents</a>
</li> -->
<li class="allMenu clientMenu">
<a href="<?php echo BASE_URL;?>clients/client-list.php"><i class="fa fa-user"></i> Clients</a>
</li>
<?php if(isset($_SESSION['userLoginId']) && $_SESSION['userLoginId'] == 'tile-admin'){?>
<li class="allMenu supplierMenu">
<a href="<?php echo BASE_URL;?>supplier/supplierList.php"><i class="fa fa-user"></i> Suppliers</a>
</li>
<?php } ?>
<li class="allMenu productMenu">
<a href="<?php echo BASE_URL;?>products/product-list.php"><i class="fa fa-list"></i> Products</a>
</li>
</ul>
</li>
<li class="treeview invoiceMenu">
<a href="#">
<i class="fa fa-money"></i>
<span>Invoice</span>
<span class="pull-right-container">
<i class="fa fa-angle-left pull-right"></i>
</span>
</a>
<ul class="treeview-menu">
<li class="allMenu createInvoice">
<a href="<?php echo BASE_URL;?>invoice/create-invoice.php"><i class="fa fa-money"></i> Create Invoice</a>
</li>
<li class="allMenu invoiceList">
<a href="<?php echo BASE_URL;?>invoice/invoice-list.php"><i class="fa fa-list"></i> Invoice</a>
</li>
<li class="allMenu buyerHistory">
<a href="<?php echo BASE_URL;?>invoice/buyer-history.php"><i class="fa fa-list"></i> Buyer History</a>
</li>
</ul>
</li>
<li class="treeview purchaseMenu">
<a href="#">
<i class="fa fa-cart-plus"></i>
<span>Purchase</span>
<span class="pull-right-container">
<i class="fa fa-angle-left pull-right"></i>
</span>
</a>
<ul class="treeview-menu">
<li class="allMenu purchase">
<a href="<?php echo BASE_URL;?>purchase/purchaseList.php"><i class="fa fa-shopping-cart"></i> Purchase Inventory</a>
</li>
</ul>
</li>
<li class="treeview expenseMenu">
<a href="#">
<i class="fa fa-puzzle-piece"></i>
<span>Expense</span>
<span class="pull-right-container">
<i class="fa fa-angle-left pull-right"></i>
</span>
</a>
<ul class="treeview-menu">
<li class="allMenu expense">
<a href="<?php echo BASE_URL;?>expenses/expense-list.php"><i class="fa fa-money"></i> Expense Details</a>
</li>
</ul>
</li>
<li class="treeview stockMenu">
<a href="#">
<i class="fa fa-inbox"></i>
<span>Stock</span>
<span class="pull-right-container">
<i class="fa fa-angle-left pull-right"></i>
</span>
</a>
<ul class="treeview-menu">
<li class="allMenu stock">
<a href="<?php echo BASE_URL;?>stock/stock-list.php"><i class="fa fa-fw fa-balance-scale"></i> Stock Details</a>
</li>
</ul>
</li>
<li class="treeview quotationsMenu">
<a href="#">
<i class="fa fa-file-text"></i>
<span>Quotations</span>
<span class="pull-right-container">
<i class="fa fa-angle-left pull-right"></i>
</span>
</a>
<ul class="treeview-menu">
<li class="allMenu quotations">
<a href="<?php echo BASE_URL;?>quotations/quotations-list.php"><i class="fa fa-fw fa-file-zip-o"></i> Quotations Details</a>
</li>
</ul>
</li>
<!---->
</ul>
</section>
<!-- /.sidebar -->
</aside>