-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfuel_report_branch.php
executable file
·202 lines (190 loc) · 10.5 KB
/
fuel_report_branch.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
<?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>Fuel Report- Detailed</h3>
</div>
<div class="row">
<div class="col-md-12">
<div class="form-horizontal">
<div class="col-md-6">
<div class="form-group">
<label for="" class="col-md-4 control-label">Branch: </label>
<div class="col-md-5 braComboDiv input-group">
<select class="branchComboBox" id="rp_branch"></select>
</div>
</div>
<!-- <div class="form-group">
<label for="" class="col-md-4 control-label">Register No: </label>
<div class="col-md-5 input-group vehicleComboBoxDiv">
<select class="vehicleComboBox" id="rp_vehicle">
</select>
</div>
</div>-->
</div>
<div class="col-md-6">
<div class="form-group">
<label for="fuel_report_to" class="col-md-4 control-label">From :</label>
<div class="col-md-5">
<input type="text" class="form-control datepicker" name="fromDate" id="fuel_report_from" value="<?php echo date("Y-m-d"); ?>" data-date-format="yyyy-mm-dd">
</div>
</div>
<div class="form-group">
<label for="fuel_report_from" class="col-md-4 control-label">To :</label>
<div class="col-md-5">
<input type="text" class="form-control datepicker" name="toDate" id="fuel_report_to" value="<?php echo date("Y-m-d"); ?>" data-date-format="yyyy-mm-dd">
</div>
<button class="btn btn-success" name="genarate" type="submit" id="fuel_report_genarate_btn">Generate</button>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<hr>
<div class="col-md-12">
<div class="panel panel-primary">
<div class="panel-heading" id="panhead">
<h3 class="panel-title">Fuel Details</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=".fuel_report_Table"/>
</div>
<div class="scrollable" style="height: 200px; overflow-y: auto">
<table class="table table-bordered table-striped table-hover datable fuel_report_Table" id="table1">
<thead>
<tr>
<th>#</th>
<th>Register No</th>
<th>Quantity of Fuel</th>
<th>Cost</th>
<th>Date</th>
<!--<th></th>-->
</tr>
</thead>
<tbody>
</tbody>
<tfoot>
</tfoot>
</table>
<input type="hidden" id="system_id">
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="modal fade" id="model2" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span><span class="sr-only">Close</span></button>
<h4 class="modal-title" id="myModalLabel">Report</h4>
</div>
<div class="modal-body">
<div class="row">
<!-- <div class="well">
<div id="gallerys" class="carousel slide" style="height:160px;padding-top:25px;padding-bottom:0px;">
<div class="row-fluid">
<div class="carousel-inner" style="margin-top: 0px;">
<div class="item active">
</div>
<div class="item">
</div>
</div>
</div>
<div class="row-fluid">
<ol class="carousel-indicators">
<li data-target="#gallerys" data-slide-to="0" class=""></li>
<li data-target="#gallerys" data-slide-to="1" class="active"></li>
<li data-target="#gallerys" data-slide-to="2" class="active"></li>
</ol>
<a class="carousel-control" href="#gallerys"style="padding-left: 0px;margin-top: 60px;" data-slide="next"><i class="fa fa-arrow-circle-left fa-lg"></i></a>
<br>
<a class="carousel-control" href="#gallerys" style="margin-left: 520px;margin-top: 60px;" data-slide="prev"><i class="fa fa-arrow-circle-right fa-lg"></i></a>
</div>
</div>
</div>-->
</div>
<table class="table modal_table" id="table2" style="border: none">
<thead>
</thead>
<tbody>
</tbody>
<tfoot>
</tfoot>
</table>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
<button type="button" class="btn btn-primary">Print</button>
</div>
</div>
</div>
</div>
<?php // require_once './include/footerBar.php'; ?>
<?php require_once './include/systemFooter.php'; ?>
</body>
<script type="text/javascript">
$(function() {
$('select').chosen({width: "100%"});
pageProtect();
checkurl();
branchComboBox(false, function() {
vehicleComboBox(false, function() {
fuel_management_detailed_report();
});
});
$('select').chosen({width: "100%"});
// fuel_management_table_load();
// $('#rp_vehicle').change(function() {
// fuel_management_table_load_report();
// });
$('#fuel_report_genarate_btn').click(function() {
var fromDate =$('#fuel_report_from').val();
var toDate =$('#fuel_report_to').val();
fuel_management_detailed_report(fromDate,toDate);
});
$('.branchComboBox').change(function() {
vehicleComboBox(false, function() {
fuel_management_detailed_report();
});
});
$('.datepicker').datepicker({
format: 'yyyy-mm-dd'
});
// branch_combo_box_load(false, function() {
//// alert($('#branchCombo').val());
// reg_no_load($('#branchCombo').val());
// vehicle_registration_tabele($('#branchCombo').val());
// });
//
// $('#branchCombo').change(function() {
//
// var branchVal = $(this).val();
//// alert(branchVal);
// reg_no_load(branchVal);
// vehicle_registration_tabele(branchVal);
// });
});
</script>
</html>