-
Notifications
You must be signed in to change notification settings - Fork 0
/
inventordash.php
179 lines (159 loc) · 10.7 KB
/
inventordash.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
<?php
session_start();
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link rel="icon" href="images/logo.png" />
<title>Clerkly Books</title>
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css">
<!-- jQuery library -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
<!-- Popper JS -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js"></script>
<!-- Latest compiled JavaScript -->
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js"></script>
<link rel="stylesheet" href="css/all.css">
<link rel="stylesheet" href="css/softview.css">
<style>
@media (max-width: 768px) {
.navbar-collapse {
position: relative;
top: 1%;
left: 0;
/* padding-left: 15px;
padding-right: 15px; */
padding-bottom: 15px;
width: 100%;
border-radius: 20px 20px 20px 20px;
}
.navbar-collapse.collapsing {
-webkit-transition: left 0.2s ease;
-o-transition: left 0.2s ease;
-moz-transition: left 0.2s ease;
transition: left 0.2s ease;
left: -100%;
z-index: 1;
border-radius: 20px 20px 20px 20px;
}
.navbar-collapse.show {
z-index: 1;
left: 0;
-webkit-transition: left 0.2s ease-in;
-o-transition: left 0.2s ease-in;
-moz-transition: left 0.2s ease-in;
transition: left 0.2s ease-in;
border-radius: 20px 20px 20px 20px;
}
}
.bg-grad{
background: #56ccf2; /* fallback for old browsers */
background: -webkit-linear-gradient(to top, #56ccf2, #2f80ed); /* Chrome 10-25, Safari 5.1-6 */
background: linear-gradient(to top, #56ccf2, #2f80ed); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
}
.img-info{
background-color: #F2F2F2;
}
.img-info:hover{
background-color: #C2C2C2;
}
.img-info:active{
background-color: #D2D2D2;
}
.btn{
padding-top: 5px;
padding-bottom: 5px;
}
</style>
</head>
<body class="" style="background-color: #FFFFFF;" oncontextmenu="return false;">
<div class="container-fluid">
<div class="row" style=" height: 100vh;">
<div class="col-lg-2 fade-in text-black shadow border bg-trdmrk" style="padding: 0px 0px 0px 0px;">
<nav class="navbar navbar-light navbar-expand-lg px-0 flex-row" style="">
<button class="navbar-toggler bg-white" type="button" data-toggle="collapse" data-target="#navbarWEX" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="navbar-collapse collapse" id="navbarWEX" style="border-radius: 20px 20px 20px 20px;">
<div class="nav flex-md-column flex-column" style="overflow: auto; width: 100%;">
<?php
include 'classes/khatral.php';
$res = khatral::khquery('SELECT * FROM inst WHERE instnm=:nm', array(
':nm'=>$_SESSION['instnm']
));
$refid = 0;
foreach($res as $p){
$refid = $p['instid'];
$_SESSION['ref_id'] = $refid;
$comp_nm = $p['instnm'];
}
$logo = '';
$ret = khatral::khquery('SELECT * FROM comp_info WHERE ref_id=:refid', array(
':refid'=>$refid,
));
foreach($ret as $p){
if($p['logo'] == ''){
$logo = 'images/logo.svg';
}else{
$logo = 'images/d/' . $p['logo'];
}
}
?>
<img src="images/logo.svg" class="mx-auto border-secondary d-block rounded-circle" style="width: 68px; height: 68px; margin-top: 10%; margin-bottom: 15%;">
<!-- <div class="border bor-ten" style=" padding-left: 30px; padding-right: 30px; padding-top: 20px; background-color:#F2F2F2; height: 60vh;"> -->
<a href="javascript:void(0);" class="btn-nav nav-item nav-link btn text-left bor-none btn-col" id="dash" name="dash"> <i class="fas fa-chart-line"></i> Dashboard</a>
<h5 style="margin-top: 5%; margin-left: 3%;">Materials</h5>
<a href="javascript:void(0);" style="" class="btn-nav nav-item nav-link btn text-left bor-none" id="users" name="users"> <i class="fas fa-boxes"></i> Purchase order</a>
<a class="btn-nav nav-item nav-link btn bor-none text-left" id="comp" name="comp" href="javascript:void(0);"> <i class="fas fa-dolly-flatbed"></i> Inventory</a>
<h5 style=" margin-left: 3%;">Entry</h5>
<a href="javascript:void(0);" class="btn-nav nav-item nav-link btn text-left bor-none" id="invoi" name="invoi"> <i class="fas fa-file-invoice"></i> Invoice</a>
<a href="javascript:void(0);" class="btn-nav nav-item nav-link btn text-left bor-none" id="modul" name="modul"> <i class="fas fa-truck-moving"></i> EWay Bill / DC</a>
<h5 style=" margin-left: 3%;">Books</h5>
<a href="javascript:void(0);" class="btn-nav nav-item nav-link btn text-left bor-none" id="grn" name="grn"> <i class="fas fa-book"></i> Goods received note</a>
<!-- <a href="users.php" target="tar" class="btn-nav nav-item nav-link btn text-left bor-none" id="users" name="users"><i class="fas fa-file-invoice"></i> Inventory</a> -->
<!-- <h5>Reports</h5> -->
<a href="javascript:void(0);" class="btn-nav nav-item nav-link btn text-left bor-none" id="srb" name="srb"> <i class="fas fa-pallet"></i> Stock register book</a>
<a href="javascript:void(0);" class="btn-nav nav-item nav-link btn text-left bor-none" id="gin" name="gin"> <i class="fas fa-truck-loading"></i> Goods Issue Note</a>
<!-- </div> -->
<!-- <div class="border bor-none" style=" padding: 20px 30px 30px 20px; background-color:javascript:void(0);F2F2F2; margin-top: 5%;"> -->
<h5 style=" margin-left: 3%;">Others</h5>
<a href="javascript:void(0);" class="btn-nav nav-item nav-link btn text-left bor-none" id="supp" name="supp"> <i class="fas fa-user-friends"></i> Supplier</a>
<!-- <a href="app/dash.php" target="tar" class="btn-nav nav-item nav-link btn text-left bor-none" id="users" name="users"><i style="color: #e66c6c;" class="fas fa-brain"></i> Red brain</a> -->
<a href="switcher.php" class="btn-nav nav-item nav-link btn text-left bor-none" > <i class="far fa-arrow-alt-circle-left"></i> Back</a>
<!-- </div> -->
</div>
</div>
</nav>
</div>
<div class="col-lg-10 bg-light" style="padding-left: 10px; padding-right: 10px;">
<div class="container-fluid border bg-white d-none d-lg-block" style="margin-bottom: 1%; margin-top: 1%; padding-bottom: 1%; width: 98%; padding-left: 2%; padding-right: 2%;">
<label for="dtandtm" class="fade-in" id="navg" name="navg" style="padding-top: 15px; padding-bottom: 0px; padding-left: 2px; padding-right: 15px; background-color: #FFFFFF;"><a href="switcher.php" class="navigator">Clerkly Books</a> / <a href="#" class="navigator">Inventor</a></label>
<!-- <label for="copyright" class="float-right bor-ten border-left-0 border" style="padding-right: 15px; background-color: #FFFFFF;"> | ©2010 - 2020 Arvin Soft R & D.</label> -->
<img src="<?php echo $logo; ?>" class="fade-in img-info rounded-circle float-right border dropdown-toggle" data-toggle="dropdown" style="margin-top: 8px; width: 42px; height: 42px;"><label for="dtandtm" class="float-right fade-in" style="padding-top: 15px; padding-bottom: 5px; padding-left: 15px; padding-right: 15px; background-color: #FFFFFF;" id="dt" name="dt">Time : 00:00:00</label>
<div class="dropdown-menu">
<h5 class="dropdown-header" href="#"><?php echo $comp_nm; ?></h5>
<a class="dropdown-item" href="#"><i class="far fa-user"></i> My profile</a>
<a class="dropdown-item" href="switcher.php"><i class="far fa-arrow-alt-circle-left"></i> Back</a>
</div>
<!-- <hr>
Money need to be paid to suppliers this month
<div class="progress fade-in" style="height:20px;">
<div class="progress-bar bg-warning" style="width:40%"></div>
</div> -->
</div>
<!-- <div class="container-fluid bg-white border d-none d-lg-block" style="padding-top: 2%; padding-bottom: 2%; width: 98%;">
</div> -->
<iframe src="app/dash.php" class="border-0 fade-in" id="tar" name="tar" style="width: 100%; height: 81vh; "></iframe>
</div>
</div>
</div>
<script src="inventordash.js"></script>
<script>
</script>
</body>
</html>
<!-- <a href="loginhandle/logout.php">Logout</a> -->