This repository has been archived by the owner on Jul 16, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
test1.php
360 lines (343 loc) · 16.2 KB
/
test1.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
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<?php
if (!empty($metaname_description)) {
echo "<meta name='description' content=\"inoERP - A Open Source PHP based Enterprise Management System\">";
}
?>
<meta name="keywords" content="ERP,PHP ERP,Open Source ERP ">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<title><?php echo isset($pageTitle) ? $pageTitle . ' - inoERP!' : ' inoERP! ' ?></title>
<link rel="shortcut icon" type="image/x-icon" href="files/favicon.ico">
<link href="<?php echo THEME_URL; ?>/public.css" media="all" rel="stylesheet" type="text/css" />
<link href="<?php echo THEME_URL; ?>/menu.css" media="all" rel="stylesheet" type="text/css" />
<link href="<?php echo THEME_URL; ?>/jquery.css" media="all" rel="stylesheet" type="text/css" />
<link href="<?php echo HOME_URL; ?>tparty/bootstrap/css/bootstrap.css" rel="stylesheet">
<link href="<?php echo HOME_URL; ?>tparty/bootstrap/css/style.css" rel="stylesheet">
<link href="<?php echo HOME_URL; ?>tparty/font-awesome/css/font-awesome.min.css" rel="stylesheet">
<link href='https://fonts.googleapis.com/css?family=PT+Sans:400,400italic,700,700italic' rel='stylesheet' type='text/css'>
<link href='https://fonts.googleapis.com/css?family=Lato:400,300,400italic,300italic,700,700italic,900' rel='stylesheet' type='text/css'>
<link href='https://fonts.googleapis.com/css?family=Exo:400,300,600,500,400italic,700italic,800,900' rel='stylesheet' type='text/css'>
<?php
if (!empty($css_file_paths)) {
foreach ($css_file_paths as $key => $css_file) {
?>
<link href="<?php echo HOME_URL . $css_file; ?>" media="all" rel="stylesheet" type="text/css" />
<?php
}
}
?>
<script src="includes/js/jquery-2.0.3.min.js"></script>
<script src="includes/js/jquery-ui.min.js"></script>
<script src="<?php echo HOME_URL; ?>tparty/bootstrap/js/bootstrap.min.js"></script>
<script src="<?php echo HOME_URL; ?>tparty/bootstrap/js/menu.js"></script>
<script src="includes/js/custom/tinymce/tinymce.min.js"></script>
<script type="text/javascript" src="includes/basics/js_lang.php"></script>
<script src="includes/js/save.js"></script>
<script src="includes/js/custom_plugins.js"></script>
<script src="includes/js/basics.js"></script>
<?php
if (!empty($js_file_paths)) {
foreach ($js_file_paths as $key => $js_file) {
?>
<script src="<?php echo HOME_URL . $js_file; ?>"></script>
<?php
}
}
?>
</head>
<body>
<nav class="navbar navbar-inverse navbar-fixed-top">
<div class="container-fluid">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
</button>
<img src="<?php
echo HOME_URL;
echo!empty($si->logo_path) ? $si->logo_path : 'files/logo.png'
?>" class="logo_image" alt="logo"/>
<a class="navbar-brand" href="<?php echo HOME_URL; ?>"><?php echo!empty($si->site_name) ? $si->site_name : 'inoERP'; ?></a>
</div>
<div id="navbar" class="navbar-collapse collapse">
<ul class="nav navbar-nav hidden-sm hidden-xs hidden-md">
<li><a href="http://demo.inoideas.org/extensions/user/user_login.php" >Demo <div class="arrow-up"></div></a></li>
<li><a href="https://github.com/inoerp/inoERP" >Download <div class="arrow-up"></div></a></li>
<li><a href="http://inoideas.org/content.php?mode=9&content_type=forum&category_id=7" ><i class="fa fa-comments-o"></i> Ask a Question <div class="arrow-up"></div></a></li>
<li><a href="<?php echo HOME_URL; ?>content.php?content_type=documentation&category_id=30">Documentation <div class="arrow-up"></div></a></li><!-- end standard drop down -->
<li><a href="<?php echo HOME_URL; ?>content.php?content_type=forum&category_id=1">Forum <div class="arrow-up"></div></a></li>
</ul>
<ul class="nav navbar-nav navbar-right">
<li>
<div class="topbar-login ino_right_top">
<?php if (!empty($_SESSION['login_status'])) { ?>
<div class="dropdown">
<button class="btn btn-default dropdown-toggle" type="button" id="menu1" data-toggle="dropdown"><i class="fa fa-user"> </i><?php echo ' ' . ucfirst($_SESSION['username']); ?>
<span class="caret"></span></button>
<ul class="dropdown-menu" role="menu" aria-labelledby="menu1">
<!--<li role="presentation" class="dropdown-header">Dropdown header 1</li>-->
<li role="presentation"><a role="menuitem" tabindex="-1" href="<?php echo HOME_URL; ?>"><i class="fa fa-home"></i> Home</a></li>
<li role="presentation"><a role="menuitem" tabindex="-1" href="<?php echo HOME_URL . 'form.php?class_name=user&mode=9&user_id=' . $_SESSION['user_id']; ?>"> My Details</a></li>
<li role="presentation"><a role="menuitem" class="pull-right" tabindex="-1" href="<?php echo HOME_URL . 'form.php?class_name=user_activity_v&mode=2&user_id=' . $_SESSION['user_id']; ?>"><i class="fa fa-tasks"></i> Activities</a></li>
<li role="presentation"><a role="menuitem" class="pull-right" tabindex="-1" href="<?php echo HOME_URL . 'search.php?class_name=sys_notification_user'; ?>"><i class="fa fa-bell-slash-o"></i> Notification</a></li>
<li role="presentation"><a role="menuitem" tabindex="-1" href="<?php echo HOME_URL . 'form.php?class_name=user_dashboard_v&mode=2&user_id=' . $_SESSION['user_id']; ?>"><i class="fa fa-dashboard"></i> Dashboard</a></li>
<li role="presentation"><a role="menuitem" tabindex="-1" href="<?php echo HOME_URL . 'form.php?class_name=user_dashboard_config&mode=9&user_id=' . $_SESSION['user_id']; ?>"><i class="fa fa-cog"></i> Configure</a></li>
<li role="presentation" class="divider"></li>
<li role="presentation"><a role="menuitem" tabindex="-1" href="<?php echo HOME_URL . 'extensions/user/user_logout.php'; ?>"><i class="fa fa-sign-out"></i> LogOut</a></li>
</ul>
</div>
<?php
} else {
include_once 'extensions/user/popup_login/user_popup_login_template.php';
}
?>
</div>
</li>
</ul>
<ul class='nav navbar-nav hidden-xs'><li>
<?php echo $ss->entry_form($_GET); ?>
</li>
</ul>
<ul class='nav navbar-nav visible-sm visible-xs navbar-right' id="top-path-menu-ul"><li>
<div class="dropdown">
<button class="btn btn-default dropdown-toggle" type="button" id="top-path-menu" data-toggle="dropdown">
<i class="fa fa-navicon"> </i><span class="caret"></span></button>
<ul class="dropdown-menu" role="menu" aria-labelledby="top-path-menu">
<li role="presentation">
<?php
$pat = new path();
$menu_path = $pat->path_allpaths_block(array('divClass' => 'tree_view'));
echo $menu_path;
?>
</li>
</ul>
</div>
</li>
</ul>
</div>
</div>
</nav>
<div class="ino navbar-form">
<div id="navigation_bar" class="col-sm-12 col-xs-12 col-md-10 col-md-offset-2 mainbar">
<div id="header_top_quick_nav" class='hidden-xs' >
<ul class="list-group inline_list">
<li role="presentation"><i class="fa fa-toggle-left clickable right_bar_navigation_menu" title="Toggle Navigation Menu"></i></li>
<li role="presentation"><a href="<?php echo HOME_URL; ?>"><i class="fa fa-home" title="Home"></i></a></li>
<li role="presentation"><a href="#"><i class="fa fa-info" title="Messages"></i></a></li>
<li role="presentation"><a href="<?php echo HOME_URL . 'form.php?class_name=user_dashboard_v&mode=2&user_id=' . $_SESSION['user_id']; ?>"><i class="fa fa-dashboard" title="Dashborad"></i></a></li>
<li>
<div class="btn-group">
<button type="button" class="btn btn-xs btn-info" title="Favourites"><i class="fa fa-star-o" title="Favourites"></i></button>
<button type="button" title="Favourites" class="btn btn-xs btn-info dropdown-toggle" data-toggle="dropdown" aria-expanded="false">
<span class="caret"></span>
<span class="sr-only">Toggle Dropdown</span>
</button>
<?php echo $fav->show_currentUser_fav(true); ?>
</div>
</li>
<li role="presentation"><a class="erp-links search-list-page" href="<?php echo HOME_URL; ?>"><i class="fa fa-search" title="Search & List Page"></i></a></li>
<li role="presentation"><a class="erp-links form-page" href="<?php echo HOME_URL; ?>"><i class="fa fa-list-alt" title="Form Page"></i></a></li>
<li class="show_loading_small"><img src="<?php echo HOME_URL ?>/themes/images/form/small_loading_bar.gif"></li>
</ul>
</div>
<div id="header_top_container" >
<?php
$show_header_links = true;
if ((!empty($mode)) && ($mode > 8) && !empty($access_level) && $access_level > 3) {
if (empty($current_page_path)) {
$current_page_path = thisPage_url();
}
$f->form_button_withImage($current_page_path);
$show_header_links = false;
}
?>
<?php if ($show_header_links) { ?>
<!-- <div class="social-icons">
<span><a class="flaticon-list90 clickable erp_dashborad" href="form.php?class_name=user_dashboard_v&mode=2" title="ERP Dashboard"> ERP Dashboard </a></span>
</div> end social icons -->
<?php } ?>
</div>
</div>
</div>
<?php
if ($showBlock) {
echo '<div id="header_bottom"></div>';
}
?>
<?php
if ($si->maintenance_cb == 1) {
echo ino_access_denied('Site is under maintenance mode');
return;
}
?>
<div class="container-fluid">
<div class="row">
<div class="hidden-sm hidden-xs col-md-2 sidebar">
<div id="accordion">
<h3 class="clickable nav-panel"><i class="fa fa-warning"></i> Transaction Alerts</h3>
<div>
<div id="sys_msg_box">
<div class="error"></div><div id="loading"></div>
</div>
</div>
<h3 class="clickable nav-panel"><i class="fa fa-navicon"></i> Navigation Menu</h3>
<div>
<div id="sys_menu_left_vertical">
<div class="btn-group-sm" role="group" aria-label="...">
<button type="button" id='expand_all_nav' class="btn btn-default">Expand All</button>
<button type="button" id='collapse_all_nav' class="btn btn-default">Collapse All</button>
</div>
<?php
echo $menu_path;
?>
</div>
</div>
<!-- <h3 class="clickable nav-panel document-panel"><i class="fa fa-list"></i> Document Panel</h3>
<div>
<div id="document-panel">
</div>
</div>-->
<h3 class="clickable nav-panel recent-visits"><i class="fa fa-history"></i> Recent Visits</h3>
<div>
<div id="recent-visits">
<?php echo ino_recent_visits(); ?>
</div>
</div>
<h3 class="clickable nav-panel clipboard-data"><i class="fa fa-clipboard"></i> Clipboard</h3>
<div id="left-clipboard">
<div id="left-clipboard-icons">
<i class="fa fa-save save-clipboard clickable"></i>
<i class="fa fa-eraser clear-clipboard clickable"></i>
</div>
<div id="left-clipboard-data">
</div>
</div>
</div>
</div>
</div>
<div id="divider-bar" class="col-m-1 hidden-sm hidden-xs"><i class="fa fa-toggle-left clickable"></i></div>
<div id="erp_form_area" class="col-md-10 col-md-offset-2 mainbar">
<div class='visible-xs visible-sm'>
<div class="error"></div><div id="loading"></div>
</div>
<div id="content">
<div id="structure"><span class="heading">
<?php
echo getBreadCrumb($class_first);
if (!empty($_GET['function_name'])) {
echo '<div class="alert alert-info" role="alert" >' . ucwords(str_replace('_', ' ', $_GET['function_name'])) . ' Report</div>';
} else {
echo '<div class="alert alert-info" role="alert" >Search ' . ucwords(str_replace('_', ' ', $class)) . '</div>';
}
?>
</span>
<div id="search_page">
<div id ="form_header">
<?php echo (!empty($show_message)) ? $show_message : ""; ?>
</div>
<div id="list_contents">
<div id="searchForm" ><div class='hideDiv_input'></div>
<div class='hideDiv_input_element'><?php echo!(empty($search_form)) ? $search_form : ""; ?></div></div>
<div id="searchResult">
<?php
if (!empty($total_count)) {
?>
<div id="searchResultMessages" >
<ul class="inline_list heading">
<li>Download All Data in </li>
<li>
<!--download page creation for all records-->
<?php
if (!empty($all_download_sql)) {
if (empty($search_class_array_all)) {
$search_class_obj_all = $$class->findBySql($all_download_sql);
$search_class_array_all = json_decode(json_encode($search_class_obj_all), true);
}
?>
<!--download page form-->
<form action="<?php echo HOME_URL; ?>download.php" method="POST" name="download_all" id="download_all" target="_blank">
<input type="hidden" name="data" value="<?php print base64_encode(serialize($search_class_array_all)) ?>" >
<input type="radio" name="download_format" checked="checked" value="excel_format">Excel
<input type="radio" name="download_format" value="text_format">Text
<input type="radio" name="download_format" value="pdf_format">Pdf
<input type="radio" name="download_format" value="xml_format">XML
<input type="radio" name="download_format" value="worddoc_format">Word Doc
<input type="submit" name="export_allResult" value="Download" id="export_excel_allResult" class="clickable button" >
</form>
<?php }
?>
<!--download page completion-->
</li>
<li id="export_excel_searchResult" class="clickable" title="Export to Excel"><i class="fa fa-file-excel-o"></i></li>
<li id="print_searchResult" class="print clickable" title="Print"><i class="fa fa-print"></i></li>
<li><button class="btn btn-primary" type="button">Total records <span class="badge"><?php echo $total_count; ?></span></button></li>
</ul>
</div>
<?php } ?>
<div id="scrollElement">
<div id="print">
<div id="search_result"> <?php echo!(empty($search_result_statement)) ? $search_result_statement : ""; ?></div>
</div>
</div>
<div class="pagination" style="clear: both;">
<?php echo!(empty($pagination_statement)) ? $pagination_statement : "";
?>
</div>
</div>
</div>
</div>
</div>
</div>
<div id='overlay'></div>
</div>
<div class="col-sm-12 col-md-10 col-md-offset-2 mainbar">
<div class="hidden" id="document_history"></div>
<div class="footer-menu">
<div id="half_copyrights">
<?php
global $si;
echo nl2br($si->footer_message);
?>
<ul>
<li><a href="http://inoideas.org/content.php?mode=9&content_type=web_contact">Contact</a></li>
<li><a href="https://github.com/inoerp/inoERP/releases">Releases</a></li>
<li><a href="https://www.mozilla.org/MPL/2.0/">MPL 2</a></li>
<li><a href="#">Cookie Preferences</a></li>
<li class="active"><a href="#">Terms of Use</a></li>
</ul>
</div>
</div><!-- end large-7 -->
</div>
</div>
<div class="row">
<div id="comment_form" class="none">
<?php
if (!empty($reference_table) && !empty($reference_id)) {
include_once __DIR__ . '/../../comment.php';
}
?>
</div>
</div>
<!--footer content-->
<?php
global $f;
echo (!empty($footer_bottom)) ? "<div id=\"footer_bottom\"> $footer_bottom </div>" : "";
echo $f->hidden_field_withId('home_url', HOME_URL);
?>
<div class="hidden">
<?php
echo searching_tips();
echo ino_filter_form();
?>
</div>
</body>
</html>
<?php
// 5. Close connection
if (isset($dbc)) {
$dbc->close_connection();
}
?>