-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdate_each_settlement-uk.php
More file actions
82 lines (76 loc) · 2.33 KB
/
Copy pathdate_each_settlement-uk.php
File metadata and controls
82 lines (76 loc) · 2.33 KB
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
<?php
//include auth.php file on all secure pages
include("auth.php");
//sql database
include ('sql/mainSql.php');
?>
<?php
$SkuFilter = "SELECT * FROM tbl_sku_quantity ";
$result = mysqli_query($conn, $SkuFilter);
?>
<!DOCTYPE html>
<html lang="en">
<head>
<?php include 'nav/meta.php'; ?>
<?php include 'nav/css.php'; ?>
</head>
<body id="page-top">
<div class="wrapper">
<?php include 'nav/sidebar.php'; ?>
<!-- Page Content Holder -->
<div id="content">
<?php include 'nav/nav.php'; ?>
<?php include 'nav/header.php'; ?>
<br><br>
<?php include 'views/test/sku_settlement_filter_uk.php'; ?>
<br><br>
<?php include 'nav/footer.php'; ?>
<?php include 'nav/jquery.php'; ?>
</div>
</div>
</body>
</html>
<script>
$(document).ready(function () {
$.datepicker.setDefaults({
dateFormat: 'yy-mm-dd',
todayBtn: "linked",
todayHighlight: true,
maxDate: 0
});
$(function () {
$("#from_date").datepicker();
$("#to_date").datepicker();
});
$('#filter').click(function () {
var from_date = $('#from_date').val();
var to_date = $('#to_date').val();
if (from_date != '' && to_date != '')
{
$.ajax({
url: "views/test/date-filter-uk.php",
method: "POST",
data: {from_date: from_date, to_date: to_date},
success: function (data)
{
$('#order_table').html(data);
}
});
} else
{
alert("Please Select Date");
}
});
// $("#sidebar").mCustomScrollbar({
// theme: "minimal"
// });
// $('#dismiss, .overlay').on('click', function () {
// $('#sidebar').removeClass('active');
// });
// $('#sidebarCollapse').on('click', function () {
// $('#sidebar').addClass('active');
// $('.collapse.in').toggleClass('in');
// $('a[aria-expanded=true]').attr('aria-expanded', 'false');
// });
});
</script>