-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrep_customer_date_range_income.php
executable file
·144 lines (137 loc) · 7.25 KB
/
rep_customer_date_range_income.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
<?php
require_once './include/MainConfig.php';
include './config/dbc.php';
?>
<!DOCTYPE html>
<html>
<head>
<?php require_once './include/systemHeader.php'; ?>
</head>
<body>
<div id="wrap"><!-- class="bgCustome"-->
<?php require_once './include/navBar.php'; ?>
<div class="container-fluid">
<div class="row">
<div class="col-md-12">
<div class="page-header">
<h3>Customer Vice Sales Report</h3>
</div>
<div class="row">
<div class="col-md-12">
<div class="form-horizontal">
<div class="row">
<div class="col-md-6">
<div class="form-group">
<label for="customer_reg_no" class="col-lg-4 control-label">Customer:</label>
<div class="col-md-4">
<select class="customer" id="customer"></select>
</div>
<div class="col-md-2">
<input class="form-control" id="cusID" readonly="">
</div>
</div>
<div class="form-group">
<label class="col-md-4 control-label text-right" for="date_from">Date from :</label>
<div class="col-lg-4">
<div class="input-group">
<input class="form-control datepicker" id="date_from" type="text" data-date-format="yyyy-mm-dd" value="<?php echo date('Y-m-d'); ?>">
</div>
</div>
</div>
<div class="form-group">
<label class="col-md-4 control-label text-right" for="date_to">Date to :</label>
<div class="col-lg-4">
<div class="input-group">
<input class="form-control datepicker" id="date_to" type="text" data-date-format="yyyy-mm-dd" value="<?php echo date('Y-m-d'); ?>">
</div>
</div>
<button class="btn btn-info" id="gen_rep_btn">Generate</button>
</div>
</div>
</div>
</div>
<div class="panel panel-primary">
<div class="panel-heading">
<h3 class="panel-title" id="panel_hd">Customer Vice Sales Report</h3>
<div class="pull-right">
<span class="clickable filter" data-toggle="tooltip" title="Toggle table filter" data-container="body">
<i class="glyphicon glyphicon-filter"></i>
</span>
</div>
</div>
<div class="panel-body filterTableSearch">
<input type="text" class="form-control" id="dev-table-filter" data-action="filter" data-filters=".customer_date_range_vice_income_report_table" style="background-color: #f2dede;" />
</div>
<div class="scrollable" style="height: 300px; overflow-y: auto">
<table class="table table-bordered table-hover datable customer_date_range_vice_income_report_table">
<thead>
<tr>
<th>#</th>
<th>Job id</th>
<th>Job Date</th>
<th>Pay type</th>
<th class="text-center">Total Price</th>
</tr>
</thead>
<tbody></tbody>
<tfoot></tfoot>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<?php // require_once './include/footerBar.php'; ?>
<?php require_once './include/systemFooter.php'; ?>
</body>
<script type="text/javascript">
$(function() {
pageProtect();
checkurl();
$('#logout').click(function() {
logout();
});
$(window).load(function() {
customer_ComboBox(false, <?php echo $_SESSION['branch']; ?>);
});
$('#gen_rep_btn').click(function() {
customer_date_range_vice_income($('#date_from').val(), $('#date_to').val(), $('.customer').val());
});
$('#customer').change(function() {
$('#cusID').val($(this).val());
});
$('select').chosen({width: "100%"});
$('.datepicker').datepicker();
$(document).ready(function()
{
$(document).bind("contextmenu", function(e) {
return false;
});
});
document.onkeypress = function (event) {
event = (event || window.event);
if (event.keyCode == 123) {
//alert('No F-12');
return false;
}
}
document.onmousedown = function (event) {
event = (event || window.event);
if (event.keyCode == 123) {
//alert('No F-keys');
return false;
}
}
document.onkeydown = function (event) {
event = (event || window.event);
if (event.keyCode == 123) {
//alert('No F-keys');
return false;
}
}
});
</script>
</html>