-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaddNewInvoice.html
213 lines (207 loc) · 7.84 KB
/
addNewInvoice.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<meta name="description" content="Ambuj Project, Speed Governor, Saniya Enterprises, Aerotic India Pvt Ltd">
<meta name="author" content="Ambuj Dubey">
<link rel="icon" href="./../images/logoNew1.png" type="image/x-icon">
<title>Add Invoice | Saniya Enterprises</title>
<!-- Plugins CSS -->
<link rel="stylesheet" type="text/css" href="./../vendor/fontawesome-free/css/all.min.css?v1.0">
<link rel='stylesheet' type="text/css" href="./../css/old/style.css?v1.0">
<link rel="stylesheet" type="text/css" href="./../css/old/print.min.css?v1.0">
<link rel="stylesheet" type="text/css" href="./../css/custom.min.css?v1.0">
<link rel="stylesheet" type="text/css" href="./../loader/loader.css?v1.0">
<link href="./../css/sb-admin-2.min.css" rel="stylesheet">
</head>
<script type="text/javascript">
function formSubmitHandler(e){
e.preventDefault();
var ownername = $('#owner_name').val();
var mobile = $('#mobile').val();
var address1 = $('#address1').val();
var technicianname = $('#technician_name').val();
var vehicle = $('#vehicle').val();
var engine = $('#engine').val();
var chassi = $('#chassi').val();
var manufacturer = $('#manufacturer').val();
var makerclassification = $('#maker_classification').val();
var registrationdate = $('#registration_date').val();
var speed = $('#speed').val();
var installationdate = $('#installation_date').val();
var roto = $('#roto').val();
var invoiceno = $('#invoice_no').val();
var obj = {
"ownername": ownername,
"mobile": mobile,
"address1": address1,
"technicianname": technicianname,
"vehicle": vehicle,
"engine": engine,
"chassi": chassi,
"manufacturer": manufacturer,
"makerclassification": makerclassification,
"registrationdate": registrationdate,
"speed": speed,
"installationdate": installationdate,
"roto": roto,
"invoiceno": invoiceno
}
console.log(obj,'-----------------');
$.ajax({
type: 'POST',
url: './../../api/certificate/addCertificate.php',
data: obj,
dataType: "JSON",
}).done(function(data) { // if getting done then call.
console.log('data : ',data);
if (data.resCode == "Ok") {
swal(data.resCode, data.Message, "success");
$('#saveInDBButton').remove();
} else {
swal(data.resCode, data.Message, "error")
}
});
}
</script>
<body>
<!-- <div id="loading">
<img id="loading-image" src="./../loader/giphy.webp" alt="Loading..." />
</div> -->
<div class="container">
<div class="loader hide">
<div class="loader--dot"></div>
<div class="loader--dot"></div>
<div class="loader--dot"></div>
<div class="loader--dot"></div>
<div class="loader--dot"></div>
<div class="loader--dot"></div>
<div class="loader--text"></div>
</div>
<div class="bodycontainer">
<div class="home">
<a href="/" class="fa fa-home" aria-hidden="true">Home</a> > <span id="home_Title"></span>
</div>
<form action="" method="post">
<div class="form-group row">
<label for="owner_name" class="col-sm-2 col-form-label">Owner Name</label>
<div class="col-sm-10">
<input type="text" class="form-control" id="owner_name" value="">
</div>
</div>
<div class="form-group row">
<label for="mobile" class="col-sm-2 col-form-label">Mobile No</label>
<div class="col-sm-10">
<input type="text" class="form-control" id="mobile">
</div>
</div>
<div class="form-group row">
<label for="address1" class="col-sm-2 col-form-label">Address</label>
<div class="col-sm-10">
<input type="text" class="form-control" id="address1">
</div>
</div>
<div class="form-group row">
<label for="technician_name" class="col-sm-2 col-form-label">Technician Name</label>
<div class="col-sm-10">
<input type="text" class="form-control" id="technician_name">
</div>
</div>
<div class="form-group row">
<label for="vehicle" class="col-sm-2 col-form-label">Vehicle No</label>
<div class="col-sm-10">
<input type="text" class="form-control" id="vehicle">
</div>
</div>
<div class="form-group row">
<label for="engine" class="col-sm-2 col-form-label">Engine No</label>
<div class="col-sm-10">
<input type="text" class="form-control" id="engine">
</div>
</div>
<div class="form-group row">
<label for="chassi" class="col-sm-2 col-form-label">Chassi No</label>
<div class="col-sm-10">
<input type="text" class="form-control" id="chassi">
</div>
</div>
<div class="form-group row">
<label for="manufacturer" class="col-sm-2 col-form-label">Manufacturer</label>
<div class="col-sm-10">
<input type="text" class="form-control" id="manufacturer">
</div>
</div>
<div class="form-group row">
<label for="maker_classification" class="col-sm-2 col-form-label">Maker Classification</label>
<div class="col-sm-10">
<input type="text" class="form-control" id="maker_classification">
</div>
</div>
<div class="form-group row">
<label for="registration_date" class="col-sm-2 col-form-label">Registration Date</label>
<div class="col-sm-10">
<input type="Date" class="form-control" id="registration_date">
</div>
</div>
<div class="form-group row">
<label for="speed" class="col-sm-2 col-form-label">Speed(Km/h)</label>
<div class="col-sm-10">
<input type="text" class="form-control" id="speed">
</div>
</div>
<div class="form-group row">
<label for="installation_date" class="col-sm-2 col-form-label">Installation Date</label>
<div class="col-sm-10">
<input type="Date" class="form-control" id="installation_date">
</div>
</div>
<div class="form-group row">
<label for="roto" class="col-sm-2 col-form-label">Roto Seal/Ref No</label>
<div class="col-sm-10">
<input type="text" class="form-control" id="roto">
</div>
</div>
<!-- <div class="form-group row">
<label for="name" class="col-sm-2 col-form-label">Vehicle Photo</label>
<div class="col-sm-10">
<input type="text" class="form-control" id="name">
</div>
</div>
<div class="form-group row">
<label for="name" class="col-sm-2 col-form-label">RC Photo</label>
<div class="col-sm-10">
<input type="text" class="form-control" id="name">
</div>
</div>
<div class="form-group row">
<label for="name" class="col-sm-2 col-form-label">SLD Photo</label>
<div class="col-sm-10">
<input type="text" class="form-control" id="name">
</div>
</div> -->
<div class="form-group row">
<label for="invoice_no" class="col-sm-2 col-form-label">Invoice No</label>
<div class="col-sm-10">
<input type="text" class="form-control" id="invoice_no">
</div>
</div>
<div class="col-auto">
<button type="submit" class="btn btn-primary mb-2" onclick="formSubmitHandler(event)">Submit</button>
</div>
</form>
</div>
</div>
<script type="text/javascript" src="./../vendor/jquery/jquery.min.js?v1.0"></script>
<script type="text/javascript" src="./../js/plugins/jquery-ui.js?v1.0"></script>
<script type="text/javascript" src="./../vendor/bootstrap/js/bootstrap.bundle.min.js?v1.0"></script>
<!-- custom js -->
<script type="text/javascript" src="./../js/plugins/sweet-alert.min.js?v1.0"></script>
<script type="text/javascript" src="./../vendor/notify/notify.js?v1.0"></script>
<script type="text/javascript" src="./../js/main/changeColor.js?v1.0"></script>
<script type="text/javascript" src="./../js/plugins/ajaxHendler.js?v1.0"></script>
<script type="text/javascript" src="./../js/plugins/moment.js?v1.0"></script>
<script type="text/javascript" src="./../js/plugins/util.js?v1.0"></script>
</body>
</html>