-
Notifications
You must be signed in to change notification settings - Fork 0
/
category.html
436 lines (393 loc) · 23.1 KB
/
category.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
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
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<!-- Meta, title, CSS, favicons, etc. -->
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Jagath Tailoring Centre</title>
<!-- Bootstrap -->
<link href="vendors/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet">
<!-- Font Awesome -->
<link href="vendors/font-awesome/css/font-awesome.min.css" rel="stylesheet">
<!-- NProgress -->
<link href="vendors/nprogress/nprogress.css" rel="stylesheet">
<!-- iCheck -->
<link href="vendors/iCheck/skins/flat/green.css" rel="stylesheet">
<!-- bootstrap-wysiwyg -->
<link href="vendors/google-code-prettify/bin/prettify.min.css" rel="stylesheet">
<!-- Select2 -->
<link href="vendors/select2/dist/css/select2.min.css" rel="stylesheet">
<!-- Switchery -->
<link href="vendors/switchery/dist/switchery.min.css" rel="stylesheet">
<!-- starrr -->
<link href="vendors/starrr/dist/starrr.css" rel="stylesheet">
<!-- bootstrap-daterangepicker -->
<link href="vendors/bootstrap-daterangepicker/daterangepicker.css" rel="stylesheet">
<!-- Custom Theme Style -->
<link href="build/css/custom.css" rel="stylesheet">
<link href="build/css/main.css" rel="stylesheet">
</head>
<body class="nav-md">
<div class="container body">
<div class="main_container">
<div class="col-md-3 left_col">
<div class="left_col scroll-view">
<div class="navbar nav_title" style="border: 0;">
<a href="index.html" class="site_title"><span>Jagath Tailoring Centre</span></a>
</div>
<div class="clearfix"></div>
<!-- menu profile quick info -->
<div class="profile clearfix">
<div class="profile_pic">
<img src="build/images/admin_avatar.png" alt="..." class="img-circle profile_img">
</div>
<div class="profile_info">
<span>Welcome,</span>
<h2>Admin</h2>
</div>
</div>
<!-- /menu profile quick info -->
<br />
<!-- sidebar menu -->
<div id="sidebar-menu" class="main_menu_side hidden-print main_menu">
<div class="menu_section">
<h3>General</h3>
<ul class="nav side-menu">
<li><a href="index.html"><i class="fa fa-home"></i> Home</a></li>
<li><a href="category.html"><i class="fa fa-edit"></i>Category</a></li>
<li><a href="material.html"><i class="fa fa-edit"></i>Material</a></li>
<li><a href="items.html"><i class="fa fa-edit"></i>Items</a></li>
<li><a href="customer_registration.html"><i class="fa fa-edit"></i>Customer Registration</a></li>
<li><a href="employee_registration.html"><i class="fa fa-edit"></i>Employee Registration</a></li>
<li><a href="employee_allowance.html"><i class="fa fa-edit"></i>Employee Allowance</a></li>
</ul>
</div>
</div>
<!-- /sidebar menu -->
<!-- /menu footer buttons -->
<div class="sidebar-footer hidden-small">
<a data-toggle="tooltip" data-placement="top" title="Settings">
<span class="glyphicon glyphicon-cog" aria-hidden="true"></span>
</a>
<a data-toggle="tooltip" data-placement="top" title="FullScreen">
<span class="glyphicon glyphicon-fullscreen" aria-hidden="true"></span>
</a>
<a data-toggle="tooltip" data-placement="top" title="Lock">
<span class="glyphicon glyphicon-eye-close" aria-hidden="true"></span>
</a>
<a data-toggle="tooltip" data-placement="top" title="Logout" href="login.html">
<span class="glyphicon glyphicon-off" aria-hidden="true"></span>
</a>
</div>
<!-- /menu footer buttons -->
</div>
</div>
<!-- top navigation -->
<div class="top_nav">
<div class="nav_menu">
<nav>
<div class="nav toggle">
<a id="menu_toggle"><i class="fa fa-bars"></i></a>
</div>
<ul class="nav navbar-nav navbar-right">
<li class="">
<a href="javascript:;" class="user-profile dropdown-toggle" data-toggle="dropdown" aria-expanded="false">
<img src="build/images/admin_avatar.png" alt="">Admin
<span class=" fa fa-angle-down"></span>
</a>
<ul class="dropdown-menu dropdown-usermenu pull-right">
<li><a href="javascript:;"> Profile</a></li>
<li>
<a href="javascript:;">
<span class="badge bg-red pull-right">50%</span>
<span>Settings</span>
</a>
</li>
<li><a href="javascript:;">Help</a></li>
<li><a href="login.html"><i class="fa fa-sign-out pull-right"></i> Log Out</a></li>
</ul>
</li>
</ul>
</nav>
</div>
</div>
<!-- /top navigation -->
<!-- page content -->
<div class="right_col" role="main">
<div class="">
<div class="page-title">
<div class="title_left">
<h3>Customer Category</h3>
</div>
<div class="title_right">
<div class="col-md-5 col-sm-5 col-xs-12 form-group pull-right top_search">
<div class="input-group">
<input type="text" class="form-control" placeholder="Search for...">
<span class="input-group-btn">
<button class="btn btn-default" type="button">Go!</button>
</span>
</div>
</div>
</div>
</div>
<div class="clearfix"></div>
<div class="row">
<div class="col-md-12 col-sm-12 col-xs-12">
<div class="x_panel">
<div class="x_title">
<h2>New Category</h2>
<ul class="nav navbar-right panel_toolbox">
<li><a class="collapse-link"><i class="fa fa-chevron-up"></i></a>
</li>
<li><a class="close-link"><i class="fa fa-close"></i></a>
</li>
</ul>
<div class="clearfix"></div>
</div>
<div class="x_content">
<div class="row">
<div class="alert alert-success col-md-6 center-margin" role="alert" style="display: none;" id="catSuccess">
Updated Successfully!
</div>
</div>
<br>
<form id="category-form" class="form-horizontal form-label-left">
<div class="form-group">
<label class="control-label col-md-3 col-sm-3 col-xs-12" for="category-code">Category Code</label>
<div class="col-md-6 col-sm-6 col-xs-12">
<input type="text" id="category-code" readonly class="form-control col-md-7 col-xs-12" name="category-code" autocomplete="off">
</div>
</div>
<div class="form-group">
<label class="control-label col-md-3 col-sm-3 col-xs-12" for="category-name" data-validate-length-range="2">Category Name <span class="required">*</span>
</label>
<div class="col-md-6 col-sm-6 col-xs-12">
<input type="text" id="category-name" name="category-name" required="required" class="form-control col-md-7 col-xs-12" autocomplete="off">
</div>
</div>
<div class="form-group">
<label for="category-remarks" class="control-label col-md-3 col-sm-3 col-xs-12">Remarks</label>
<div class="col-md-6 col-sm-6 col-xs-12">
<textarea id="category-remarks" class="form-control col-md-7 col-xs-12" type="text" name="category-remarks"></textarea>
</div>
</div>
<div class="ln_solid"></div>
<div class="form-group">
<div class="col-md-6 col-sm-6 col-xs-12 col-md-offset-3">
<button class="btn btn-primary" type="button">Cancel</button>
<button class="btn btn-primary" type="reset">Reset</button>
<button type="submit" class="btn btn-success" id="category-submit" name="category-submit">Submit</button>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
<!--<div class="row">-->
<!--<div class="col-md-12 col-sm-12 col-xs-12">-->
<!--<div class="x_panel">-->
<!--<div class="x_title">-->
<!--<h2>Update Category</h2>-->
<!--<ul class="nav navbar-right panel_toolbox">-->
<!--<li><a class="collapse-link"><i class="fa fa-chevron-up"></i></a>-->
<!--</li>-->
<!--<li class="dropdown">-->
<!--<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false"><i class="fa fa-wrench"></i></a>-->
<!--<ul class="dropdown-menu" role="menu">-->
<!--<li><a href="#">Settings 1</a>-->
<!--</li>-->
<!--<li><a href="#">Settings 2</a>-->
<!--</li>-->
<!--</ul>-->
<!--</li>-->
<!--<li><a class="close-link"><i class="fa fa-close"></i></a>-->
<!--</li>-->
<!--</ul>-->
<!--<div class="clearfix"></div>-->
<!--</div>-->
<!--<div class="x_content">-->
<!--<br />-->
<!--<form id="update-category-form" class="form-horizontal form-label-left" data-parsley-validate novalidate method="post">-->
<!--<div class="form-group">-->
<!--<label class="control-label col-md-3 col-sm-3 col-xs-12" for="update-category-code">Category Code</label>-->
<!--<div class="col-md-6 col-sm-6 col-xs-12">-->
<!--<input type="text" id="update-category-code" readonly class="form-control col-md-7 col-xs-12" name="update-category-code" autocomplete="off">-->
<!--</div>-->
<!--</div>-->
<!--<div class="form-group">-->
<!--<label class="control-label col-md-3 col-sm-3 col-xs-12" for="update-category-name">Category Name <span class="required">*</span>-->
<!--</label>-->
<!--<div class="col-md-6 col-sm-6 col-xs-12">-->
<!--<input type="text" id="update-category-name" name="update-category-name" required="required" class="form-control col-md-7 col-xs-12" autocomplete="off">-->
<!--</div>-->
<!--</div>-->
<!--<div class="form-group">-->
<!--<label for="update-category-remarks" class="control-label col-md-3 col-sm-3 col-xs-12">Remarks</label>-->
<!--<div class="col-md-6 col-sm-6 col-xs-12">-->
<!--<textarea id="update-category-remarks" class="form-control col-md-7 col-xs-12" type="text" name="update-category-remarks"></textarea>-->
<!--</div>-->
<!--</div>-->
<!--<div class="ln_solid"></div>-->
<!--<div class="form-group">-->
<!--<div class="col-md-6 col-sm-6 col-xs-12 col-md-offset-3">-->
<!--<button class="btn btn-primary" type="button">Cancel</button>-->
<!--<button class="btn btn-primary" type="reset">Reset</button>-->
<!--<button type="submit" class="btn btn-success" id="update-category-submit" name="update-category-submit">Submit</button>-->
<!--</div>-->
<!--</div>-->
<!--</form>-->
<!--</div>-->
<!--</div>-->
<!--</div>-->
<!--</div>-->
<div class="row">
<div class="col-md-12 col-sm-12 col-xs-12">
<div class="x_panel">
<div class="x_title">
<h2>Customer Sub Category<small>Adding New Sub Category</small></h2>
<ul class="nav navbar-right panel_toolbox">
<li><a class="collapse-link"><i class="fa fa-chevron-up"></i></a>
</li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false"><i class="fa fa-wrench"></i></a>
<ul class="dropdown-menu" role="menu">
<li><a href="#">Settings 1</a>
</li>
<li><a href="#">Settings 2</a>
</li>
</ul>
</li>
<li><a class="close-link"><i class="fa fa-close"></i></a>
</li>
</ul>
<div class="clearfix"></div>
</div>
<div class="x_content">
<br />
<form id="subcategory_form" data-parsley-validate class="form-horizontal form-label-left">
<div class="form-group">
<label for="category-select" class="control-label col-md-3 col-sm-3 col-xs-12">Category</label>
<div class="col-md-6 col-sm-6 col-xs-12">
<select class="form-control" id="category-select" name="category-select">
<option>Select</option>
</select>
</div>
</div>
<div class="form-group">
<label class="control-label col-md-3 col-sm-3 col-xs-12" for="subcategory-code">Sub Category Code</label>
<div class="col-md-6 col-sm-6 col-xs-12">
<input type="number" id="subcategory-code" class="form-control col-md-7 col-xs-12" name="category-code">
</div>
</div>
<div class="form-group">
<label class="control-label col-md-3 col-sm-3 col-xs-12" for="subcategory-name">Sub Category Name <span class="required">*</span>
</label>
<div class="col-md-6 col-sm-6 col-xs-12">
<input type="text" id="subcategory-name" name="subcategory-name" required="required" class="form-control col-md-7 col-xs-12">
</div>
</div>
<div class="form-group">
<label for="subcategory-remarks" class="control-label col-md-3 col-sm-3 col-xs-12">Remarks</label>
<div class="col-md-6 col-sm-6 col-xs-12">
<textarea id="subcategory-remarks" class="form-control col-md-7 col-xs-12" type="text" name="subcategory-remarks"></textarea>
</div>
</div>
<div class="ln_solid"></div>
<div class="form-group">
<div class="col-md-6 col-sm-6 col-xs-12 col-md-offset-3">
<button class="btn btn-primary" type="button">Cancel</button>
<button class="btn btn-primary" type="reset">Reset</button>
<button type="submit" class="btn btn-success">Submit</button>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- /page content -->
<!-- footer content -->
<footer>
<div class="pull-right">
Developed by <a href="https://www.etwinklesolutions.com">eTwinkle Solutions</a>
</div>
<div class="clearfix"></div>
</footer>
<!-- /footer content -->
</div>
</div>
<!-- jQuery -->
<script src="vendors/jquery/dist/jquery.min.js"></script>
<!-- Bootstrap -->
<script src="vendors/bootstrap/dist/js/bootstrap.min.js"></script>
<!-- FastClick -->
<script src="vendors/fastclick/lib/fastclick.js"></script>
<!-- NProgress -->
<script src="vendors/nprogress/nprogress.js"></script>
<!-- bootstrap-progressbar -->
<script src="vendors/bootstrap-progressbar/bootstrap-progressbar.min.js"></script>
<!-- iCheck -->
<script src="vendors/iCheck/icheck.min.js"></script>
<!-- bootstrap-daterangepicker -->
<script src="vendors/moment/min/moment.min.js"></script>
<script src="vendors/bootstrap-daterangepicker/daterangepicker.js"></script>
<!-- bootstrap-wysiwyg -->
<script src="vendors/bootstrap-wysiwyg/js/bootstrap-wysiwyg.min.js"></script>
<script src="vendors/jquery.hotkeys/jquery.hotkeys.js"></script>
<script src="vendors/google-code-prettify/src/prettify.js"></script>
<!-- jQuery Tags Input -->
<script src="vendors/jquery.tagsinput/src/jquery.tagsinput.js"></script>
<!-- Switchery -->
<script src="vendors/switchery/dist/switchery.min.js"></script>
<!-- Select2 -->
<script src="vendors/select2/dist/js/select2.full.min.js"></script>
<!-- Parsley -->
<script src="vendors/parsleyjs/dist/parsley.min.js"></script>
<!-- Autosize -->
<script src="vendors/autosize/dist/autosize.min.js"></script>
<!-- jQuery autocomplete -->
<script src="vendors/devbridge-autocomplete/dist/jquery.autocomplete.min.js"></script>
<!-- starrr -->
<script src="vendors/starrr/dist/starrr.js"></script>
<!--select2-->
<script src="build/js/select2.min.js"></script>
<!-- validator -->
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/jquery.validate.min.js"></script>
<!-- Dropzone.js -->
<script src="vendors/dropzone/dist/min/dropzone.min.js"></script>
<!-- Custom Theme Scripts -->
<script src="build/js/custom.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-3-typeahead/4.0.2/bootstrap3-typeahead.min.js"></script>
<script src="build/js/main.js"></script>
<script>
$(document).ready(function () {
$.ajax({
url:"build/submit/test.php",
method:"POST",
success:function (data) {
$("#category-code").val(data);
}
});
$('#category-select').select2({
ajax : {
url:"build/submit/fetchCategory.php",
dataType:"json",
delay:250,
processResults:function(data)
{
console.log(data);
return {
results:data
}
},cache:true
}
});
});
</script>
</body>
</html>