This repository has been archived by the owner on Mar 26, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
page.php
209 lines (191 loc) · 8.35 KB
/
page.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
<?php
include('php/gtInclude.php');
?>
<!DOCTYPE html>
<html>
<head>
<title><?= _NAME ?></title>
<script>
var myLang = "<?php echo $_LANG; ?>";
var myReportLines = <?php echo $_SESSION[_SQL_ACC_LINES_REPORTS]; ?>;
</script>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="css/bootstrap.min.css" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="DataTables/DataTables-1.10.24/css/dataTables.bootstrap4.min.css"/>
<link rel="stylesheet" type="text/css" href="DataTables/Buttons-1.7.0/css/buttons.dataTables.css"/>
<link rel="stylesheet" type="text/css" href="DataTables/Responsive-2.2.7/css/responsive.dataTables.css"/>
<link rel="stylesheet" type="text/css" href="DataTables/RowGroup-1.1.2/css/rowGroup.dataTables.css"/>
<link href="css/glutax.css" rel="stylesheet">
<style>
@media (min-width: 992px) {
.animate {
animation-duration: 0.3s;
-webkit-animation-duration: 0.3s;
animation-fill-mode: both;
-webkit-animation-fill-mode: both;
}
}
@keyframes slideIn {
0% {
transform: translateY(1rem);
opacity: 0;
}
100% {
transform:translateY(0rem);
opacity: 1;
}
0% {
transform: translateY(1rem);
opacity: 0;
}
}
@-webkit-keyframes slideIn {
0% {
-webkit-transform: transform;
-webkit-opacity: 0;
}
100% {
-webkit-transform: translateY(0);
-webkit-opacity: 1;
}
0% {
-webkit-transform: translateY(1rem);
-webkit-opacity: 0;
}
}
.slideIn {
-webkit-animation-name: slideIn;
animation-name: slideIn;
}
/* Other styles for the page not related to the animated dropdown */
body {
background: #007bff;
background: linear-gradient(to right, #0062E6, #33AEFF);
}
</style>
</head>
<body>
<!-- Navigation bar -->
<nav class="navbar navbar-expand-lg navbar-light bg-light">
<div class="container">
<a id="glutaxTitle" class="navbar-brand" href="#"><?= _NAME ?></a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#Navbar" aria-controls="Navbar" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse justify-content-end" id="Navbar">
<ul class="navbar-nav">
<!-- Shortcut to add a new expense -->
<li class="nav-item">
<a id="NavNewPurchase" class="nav-link" href="#"><?= _NAVBAR_NEW_PURCHASE ?></a>
</li>
<!-- Reports menu -->
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#" id="navbarReports" role="button" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<?= _NAVBAR_REPORT ?>
</a>
<div class="dropdown-menu dropdown-menu-right animate slideIn" aria-labelledby="navbarReports">
<a class="dropdown-item navReport" href="#" data-report="purch-all-summary"><?= _REPORT_PURCH_ALL_SUMMARY ?></a>
<a class="dropdown-item navReport" href="#" data-report="purch-all-details"><?= _REPORT_PURCH_ALL_DETAILS ?></a>
</div>
</li>
<!-- Tables menu -->
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#" id="navbarTables" role="button" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<?= _NAVBAR_TABLE ?>
</a>
<div class="dropdown-menu dropdown-menu-right animate slideIn" aria-labelledby="navbarTables">
<?php
if( $_SESSION[_SQL_ACC_USE_PC] == 1 ){
echo '<a class="dropdown-item navTable" href="#" data-table="category">' . _TABLE_CATEGORY . '</a>';
}
if($_SESSION[_SQL_ACC_USE_PERSONS] == 1){
echo '<a class="dropdown-item navTable" href="#" data-table="person">' . _TABLE_PERSON . '</a>';
}
?>
<a class="dropdown-item navTable" href="#" data-table="product"><?= _TABLE_PRODUCT ?></a>
<a class="dropdown-item navTable" href="#" data-table="store"><?= _TABLE_STORE ?></a>
</div>
</li>
<!-- Options menu -->
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#" id="navbarOptions" role="button" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<?= _NAVBAR_OPTION ?>
</a>
<div class="dropdown-menu dropdown-menu-right animate slideIn" aria-labelledby="navbarOptions">
<a class="dropdown-item" href="#" onclick="loadPage('settings','');"><?= _OPTION_SETTING ?></a>
<div class="dropdown-divider"></div>
<a class="dropdown-item" href="#"><?= _OPTION_LOGOUT ?></a>
</div>
</li>
</ul>
</div>
</div>
</nav>
<!-- END: Navigation Bar -->
<!-- Container -->
<div id="myBox" class="container text-center"></div>
<!-- END: Container -->
<!-- Toast -->
<div class="position-fixed bottom-0 end-0 p-3" style="z-index: 5">
<div id="liveToast" class="toast hide" role="alert" aria-live="assertive" aria-atomic="true">
<div class="toast-header">
<img src="..." class="rounded me-2" alt="">
<strong class="me-auto"><?= _NAME ?></strong>
<button type="button" class="btn-close" data-bs-dismiss="toast" aria-label="<?= _BUTTON_CLOSE ?>"></button>
</div>
<div class="toast-body" id="toast-message">
</div>
</div>
</div>
<!-- END: Toast -->
<!-- Modal / Tell Message -->
<div class="modal fade" id="tellModal">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-body" id="tellModalText">
(placeholder)
</div>
<div class="modal-footer">
<button type="button" class="btn btn-primary" data-bs-dismiss="modal">OK</button>
</div>
</div>
</div>
</div>
<!-- Modal / Purchase Receipt -->
<div class="modal fade" id="purchaseReceipt" data-bs-backdrop="static" data-bs-keyboard="false" tabindex="-1" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<?= _LABEL_PURCH_DETAILS_QUICK ?>
</div>
<div class="modal-content p-3" id="purchaseReceiptBody">
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal" onclick="loadPage('purch', 'p=' + myPurchaseID);"><?= _BUTTON_UPDATE ?></button>
<button type="button" class="btn btn-primary" data-bs-dismiss="modal"><?= _BUTTON_CLOSE ?></button>
</div>
</div>
</div>
</div>
<!-- END: Modal / Purchase Receipt -->
<!-- JS Scripts imports -->
<script src="js/jquery_3.5.1.js"></script>
<script src="js/bootstrap.bundle.min.js"></script>
<script src="js/glutax.js"></script>
<script type="text/javascript" src="DataTables/JSZip-2.5.0/jszip.js"></script>
<script type="text/javascript" src="DataTables/pdfmake-0.1.36/pdfmake.js"></script>
<script type="text/javascript" src="DataTables/pdfmake-0.1.36/vfs_fonts.js"></script>
<script type="text/javascript" src="DataTables/DataTables-1.10.24/js/jquery.dataTables.js"></script>
<script type="text/javascript" src="DataTables/DataTables-1.10.24/js/dataTables.bootstrap4.min.js"></script>
<script type="text/javascript" src="DataTables/Buttons-1.7.0/js/dataTables.buttons.js"></script>
<script type="text/javascript" src="DataTables/Buttons-1.7.0/js/buttons.colVis.js"></script>
<script type="text/javascript" src="DataTables/Buttons-1.7.0/js/buttons.html5.js"></script>
<script type="text/javascript" src="DataTables/Buttons-1.7.0/js/buttons.print.js"></script>
<script type="text/javascript" src="DataTables/Responsive-2.2.7/js/dataTables.responsive.js"></script>
<script type="text/javascript" src="DataTables/RowGroup-1.1.2/js/dataTables.rowGroup.js"></script>
<!-- END: JS Scripts imports -->
<!-- JQuery/Other Script -->
<script>
</script>
</body>
</html>