-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvehicle_dispose.php
executable file
·187 lines (162 loc) · 10.1 KB
/
vehicle_dispose.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
<?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>Vehicle Dispose</h3>
</div>
<div class="row">
<div class="col-md-5">
<div class="form-horizontal">
<input type="hidden" id="system_id">
<div id="main_reg_data">
<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 class="form-group">
<label for="" class="col-md-4 control-label">Type: </label>
<div class="col-md-5 vehicleComboDiv input-group">
<select class="typeComboBox" id="vehicle_type">
<option value="1">Dispose</option>
<option value="2">Auction</option>
</select>
</div>
</div>
<div class="form-group">
<label for="system_name" class="col-md-4 control-label required-field">Date :</label>
<div class="col-md-5 input-group">
<span class="input-group-addon"><i class="glyphicon glyphicon-calendar"></i></span>
<input type="text" id="disp_date" class="form-control datepicker" data-date-format="yyyy-mm-dd" value="<?php echo date('Y-m-d'); ?>">
</div>
</div>
<div class="form-group">
<label for="po_number" class="col-lg-4 control-label required-field">Comment:</label>
<div class="col-md-5 input-group">
<!--<input type="text" onkeypress="return isNumberKey(event)" maxlength="12" id="po_number" class="form-control" placeholder="PO Number" >-->
<!--<input type="text" id="po_number" class="form-control" placeholder="" >-->
<textarea id="desc" class="form-control">
</textarea>
</div>
</div>
<div class="form-group">
<label for="po_date" class="col-lg-4 control-label required-field">Sell Amount:</label>
<div class="col-md-5 input-group">
<input type="text" id="sell_amount" class="form-control" >
</div>
</div>
<div class="form-group">
<div class="col-lg-offset-4 col-lg-10">
<span id="vehi_dispose_save_btn_div" class="">
<button class="btn btn-info" id="vehi_rep_save_btn"><i class="fa fa-sign-in fa-lg"></i> Save</button>
<!--<button class="btn btn-success" id="itm_add_btn"><i class="fa fa-save fa-lg"></i> Add Item</button>-->
</span>
<span id="vehicle_dispose_update_btn_div" class="hidden">
<button class="btn btn-warning" id="vehicle_rep_Update_btn"><i class="fa fa-check-square-o fa-lg"></i> Update</button>
</span>
<button class="btn btn-danger" id="job_reg_reset_btn"><i class="fa fa-refresh fa-lg"></i> Clear</button>
</div>
</div>
</div>
</div>
</div>
<!--T A B L E D I V-->
<div class="col-md-7">
<div id="main_data_table_div">
<div class="panel panel-primary">
<div class="panel-heading">
<h3 class="panel-title">Vehicle Dispose Informations</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=".vehicle_dispose_data_table"/>
</div>
<div class="scrollable" style="height: 350px; overflow-y: auto">
<table class="table table-bordered table-striped table-hover datable vehicle_dispose_data_table">
<thead>
<tr>
<th>#</th>
<th>Date</th>
<th>Comment</th>
<th>Sell Amount</th>
<th></th>
</tr>
</thead>
<tbody>
</tbody>
</table>
<input type="hidden" id="disp_id">
</div>
</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();
branchComboBox(false, function () {
vehicleComboBox(false, function () {
dispose_vehicle_table();
});
});
$('select').chosen({width: "100%"});
$('#vehi_dispose_save_btn_div').click(function () {
vehicleDisposeSave();
});
$('#vehicle_rep_Update_btn').click(function () {
update_vehicle_dispose($('#disp_id').val());
});
$('#job_reg_reset_btn').click(function () {
empty_machine_repair_data();
dispose_vehicle_table();
});
$('#rp_vehicle').change(function () {
dispose_vehicle_table();
});
$('.branchComboBox').change(function () {
vehicleComboBox(false, function () {
dispose_vehicle_table();
});
});
// $('#vehicle_type').change(function() {
// var ty_id = $(this).val();
// dispose_vehicle_table(ty_id);
// });
$('.datepicker').datepicker({
format: 'yyyy-mm-dd'
});
});
</script>
</html>