-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
606 lines (546 loc) · 21.1 KB
/
index.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
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" type="text/css" href="jqueryui1.8/development-bundle/themes/base/jquery.ui.core.css">
<link rel="stylesheet" type="text/css" href="jqueryui1.8/development-bundle/themes/base/jquery.ui.theme.css">
<link rel="stylesheet" type="text/css" href="jqueryui1.8/development-bundle/themes/base/jquery.ui.progressbar.css">
<link rel="stylesheet" type="text/css" href="custom.css">
<script src="jquery-1.9.1.js"></script>
<script type="text/javascript" charset="utf-8" src="cordova.js"></script>
<link href="css/smoothness/jquery-ui-1.9.0.custom.css" rel="stylesheet">
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
<script type="text/javascript" charset="utf-8" src="cordova.js"></script>
<!--[if IE 9]>
<style type="text/css">
.form-panel .input, .form-panel input, .form-panel textarea {
border-radius: 0;
}
</style>
<![endif]-->
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Delux Wash</title>
<!-- start cufon fonts -->
<script src="cufon-yui.js" type="text/javascript"></script>
<script src="Myriad_Pro_400.font.js" type="text/javascript"></script>
<script type="text/javascript">
Cufon.replace('h3'); // Works without a selector engine
Cufon.replace('#sub1'); // Requires a selector engine for IE 6-7, see above
Cufon.replace('.title'); // Requires a selector engine for IE 6-7, see above
</script>
<!-- end cufon fonts -->
<style>
.title{
font-size:20px;
color:#5a7ba6;
font-weight:bold;
}
.menu1{
float:left;
width:auto;
background:#5a7ba6;
font-family:Arial, Helvetica, sans-serif;
font-size:12px;
color:#FFFFFF;
width:98%;
margin-top:3%;
padding:1%;
padding-top:3%;
padding-bottom:3%;
border-radius:5px;
-moz-border-radius:5px;
}
.menu1 a:link{
color:#FFFFFF;
text-decoration:none;
}
.menu1 a:hover{
color:#FFFFFF;
text-decoration:none;
}
.menu1 a:active{
color:#FFFFFF;
text-decoration:none;
}
.menu1 a:visited{
color:#FFFFFF;
text-decoration:none;
}
.blue{
height:35px; padding-top:2px; font-size:18px; margin-top:5px; background: -moz-linear-gradient( top, #98c8a9, #e9e1a8 );background: -webkit-linear-gradient( top, #98c8a9, #e9e1a8 );background: -o-linear-gradient( top, #98c8a9, #e9e1a8 );background: -khtml-linear-gradient( top, #98c8a9, #e9e1a8 );background: linear-gradient( to bottom, #98c8a9, #e9e1a8 ); border-radius:5px; -moz-border-radius:5px; background:#0099cc;
}
</style>
<script>
function check(x)
{
if(!document.getElementById(x).checked)
{
document.getElementById(x).checked=true;
}
else
{
document.getElementById(x).checked=false;
}
}
function check1(x)
{
if(!document.getElementById(x).checked)
{
document.getElementById(x).checked=true;
}
else
{
document.getElementById(x).checked=false;
}
}
</script>
<script type="application/javascript">
jQuery.noConflict()(function(){
var param1 = (new Date()).getTime() / 1000;
var intvalue = Math.round( param1 );
jQuery.noConflict()('#sub_id').val(intvalue);
var server =location.hostname;
var request_uri = location.pathname + location.search;
var url=server + request_uri;
jQuery.noConflict()('#pageurl').val(url);
var flickerAPI ="http://166.78.237.203/mobiledeluxnew/mobiledelux/carwash/phpfiles/fetch_vehtype.php?jsoncallback=?";
jQuery.noConflict().getJSON( flickerAPI, {
tags: "mount rainier",
tagmode: "any",
format: "json"
})
.done(function( data ) {
//alert(data);
jQuery.noConflict().each( data.items, function( i, it ) {
//alert(it.desc);
jQuery.noConflict()('#vehicle_type').append(jQuery.noConflict()('<option>').text(it.desc).attr('value', it.desc));
});
});
});
</script>
<script src="jquery-ui.js"></script>
<script type="application/javascript">
jQuery.noConflict()(function(){
var availableTags= new Array();
var db = window.openDatabase("Database", "1.0", "Deluxwash", 1000000);
var flickerAPI ="http://166.78.237.203/mobiledeluxnew/mobiledelux/carwash/phpfiles/fetch_contactno.php?jsoncallback=?";
jQuery.noConflict().getJSON( flickerAPI, {
tags: "mount rainier",
tagmode: "any",
format: "json",
async:true,
})
.done(function( data ) {
//alert(data);
jQuery.noConflict().each( data.items, function( i, it ) {
//availableTags.push(it.desc);
onDeviceReady();
function onDeviceReady() {
db.transaction(populateDB, errorCB, successCB);
}
function populateDB(tx) {
// alert(i);
tx.executeSql('CREATE TABLE IF NOT EXISTS CONTACT (id unique, contactno)');
tx.executeSql('INSERT INTO CONTACT (id, contactno) VALUES ("'+i+'", "'+it.desc+'")');
}
function errorCB(tx, err) {
alert("DB Error: "+err.message + "\nCode="+err.code);
}
function successCB() {
//alert("success!");
}
});
});
Ready();
function queryDB(tx) {
tx.executeSql('SELECT * FROM CONTACT', [], querySuccess, errorCB);
}
function querySuccess(tx, results) {
var len = results.rows.length;
//alert("CONTACT table: " + len + " rows found.");
for (var i=0; i<len; i++){
alert(results.rows.item(i).contactno);
availableTags.push(results.rows.item(i).contactno);
}
}
function Ready() {
db.transaction(queryDB, errorCB);
}
jQuery.noConflict()("#contact").autocomplete({
source: availableTags,
select : function(event,ui){change=ui.item.value;
var flickerAPI = "http://166.78.237.203/mobiledeluxnew/mobiledelux/carwash/phpfiles/fetch_all.php?jsoncallback=?&contact="+change;
jQuery.getJSON( flickerAPI, {
tags: "mount rainier",
tagmode: "any",
format: "json"
})
.done(function( data ) {
jQuery.each( data.items, function( i, it ) {
jQuery.noConflict()('#customer_name').val(it.customername);
jQuery.noConflict()('#email').val(it.email);
jQuery.noConflict()('#visits').val(it.loyality);
jQuery.noConflict()('#freeservices').val(it.freeservice);
jQuery.noConflict()('#latestfreeservices').val(it.latestfree);
jQuery.noConflict()('#qrcode').val(it.qrcode);
jQuery.noConflict()('#vehicle_type option[value="'+it.vehicle+'"]').remove();
jQuery.noConflict()('#vehicle_type').append(jQuery.noConflict()('<option>').text(it.vehicle).attr('value', it.vehicle));
if(((it.loyality%8)==0) && (it.loyality>0)){
jQuery.noConflict()("#pay").html($("<option>",{ value: 'free', text: 'free'}));}
else
jQuery.noConflict()("select#pay").find("[value='free']").remove();
});
});
}
});
});
</script>
<script type="application/javascript">
jQuery.noConflict()(function(){
var loc=localStorage.loc;
var flickerAPI ="http://166.78.237.203/mobiledeluxnew/mobiledelux/carwash/phpfiles/fetch_vehno.php?jsoncallback=?";
jQuery.noConflict().getJSON( flickerAPI, {
tags: "mount rainier",
locat:loc,
tagmode: "any",
format: "json"
})
.done(function( data ) {
jQuery.noConflict().each( data.items, function( i, it ) {
jQuery.noConflict()('#vehicle_no').val(it.vehno);
});
});
});
</script>
<script type="application/javascript">
var servicedetails='';
function model(){
var loc=localStorage.loc;
var type=jQuery.noConflict()('#vehicle_type').val();
var flickerAPI ="http://166.78.237.203/mobiledeluxnew/mobiledelux/carwash/phpfiles/fetch_model.php?jsoncallback=?&vetype="+type;
jQuery.noConflict().getJSON( flickerAPI, {
tags: "mount rainier",
locat:loc,
tagmode: "any",
format: "json"
})
.done(function( data ) {
//alert(data);
jQuery.noConflict().each( data.items, function( i, it ) {
jQuery.noConflict()('#modelnames').append(jQuery.noConflict()('<option>').text(it.model).attr('value', it.model));
});
jQuery.noConflict().each( data.item, function( i, it1 ) {
servicedetails=servicedetails+it1.desc;
});
jQuery.noConflict()('#services').html(servicedetails);
});
}
</script>
<script type="application/javascript">
jQuery.noConflict()(function(){
var loc=localStorage.loc;
var flickerAPI ="http://166.78.237.203/mobiledeluxnew/mobiledelux/carwash/phpfiles/fetch_teamname.php?jsoncallback=?";
jQuery.noConflict().getJSON( flickerAPI, {
tags: "mount rainier",
locat:loc,
tagmode: "any",
format: "json"
})
.done(function( data ) {
//alert(data);
jQuery.noConflict().each( data.items, function( i, it ) {
jQuery.noConflict()('#teamname').append(jQuery.noConflict()('<option>').text(it.desc).attr('value', it.id));
});
});
});
</script>
<script type="application/javascript">
var team='';
var val="";
function emplist(){
var team=jQuery.noConflict()('#teamname').val();
var loc=localStorage.loc;
var flickerAPI ="http://166.78.237.203/mobiledeluxnew/mobiledelux/carwash/phpfiles/fetch_teammember.php?jsoncallback=?&teamname="+team;
jQuery.noConflict().getJSON( flickerAPI, {
tags: "mount rainier",
tagmode: "any",
locat:loc,
format: "json"
})
.done(function( data ) {
//alert(data);
jQuery.noConflict().each( data.items, function( i, it ) {
team=team+it.desc;
});
jQuery.noConflict()('#teammember').html(team);
});
}
</script>
<script type="application/javascript">
function copyto() {
var nam=jQuery.noConflict()('#customer_name').val();
var subid=jQuery.noConflict()('#sub_id').val();
var cont=jQuery.noConflict()('#contact').val();
var veht=jQuery.noConflict()('#vehicle_type').val();
var pay=jQuery.noConflict()('#pay').val();
if(pay=="free")
{
var a='name:'+nam+'<br>service no:'+subid+'<br>contanct no:'+cont+'<br>vehicle type:'+veht+'<br>payment mode:'+pay+'<br>This is your free service';
jQuery.noConflict()('#conformtotal').html(a);
}
else
{
var a='name:'+nam+'<br>service no:'+subid+'<br>contanct no:'+cont+'<br>vehicle type:'+veht+'<br>payment mode:'+pay;
jQuery.noConflict()('#conformtotal').html(a);
}
}
function enterdata() {
var val="";
var val1=new Array();
var val2=new Array();
var loc=localStorage.loc;
jQuery.noConflict()("#change").find(".textbox").each(function(){
val=val+'&'+jQuery.noConflict()(this).attr('id')+'='+jQuery.noConflict()(this).val();
});
jQuery.noConflict()(".pricetot").each(function(){
if(jQuery.noConflict()(this).is(':checked'))
val1.push(jQuery.noConflict()(this).val());
});
jQuery.noConflict()(".employee").each(function(){
if(jQuery.noConflict()(this).is(':checked'))
val2.push(jQuery.noConflict()(this).val());
});
var flickerAPI = "http://166.78.237.203/mobiledeluxnew/mobiledelux/carwash/phpfiles/insert.php?jsoncallback=?"+val;
jQuery.getJSON( flickerAPI, {
tags: "mount rainier",
tagmode: "any",
locat: loc,
employee: val2,
service: val1,
format: "json"
})
.done(function( data ) {
var statusval=data.items;
if(statusval==1)
{
alert("Insert succesfuly");
window.location.href="index.htm";
}
else
{
alert("Enter Form Properly");
window.location.href="index.htm";
}
});
}
</script>
</head>
<body style="background:url(car.jpg) no-repeat center center fixed; -webkit-background-size: cover; -moz-background-size: cover;-o-background-size: cover;background-size: cover;">
<div style="width:98%; height:auto; float:left; margin-left:1%; margin-top:2%; font-size:12px; text-align:center;">
<div class="menu1">
<a href="deleteemp.php"> Edit Team </a>
</div>
<div class="menu1">
<a href="carcount.php">Car Count Report</a>
</div>
<div class="menu1">
<a href="editservice.php">Edit Entry</a>
</div>
<div class="menu1">
<a href="qrcode_generate.php">QR Management</a>
</div>
<div class="menu1">
<a href="view_null_qrcode.php">Assign QR Code</a>
</div>
<div class="menu1">
<a href="existing_qrcode.php">Change QR Code</a>
</div>
<div class="menu1">
<a href="logout.htm"> Logout </a>
</div>
</div>
<div class="ex-form ui-helper-clearfix ui-corner-all" style=" width:100%; float:left;margin-top:30px; height:auto;">
<h1 style="width:100%;"><img src="logo.png"></h1>
<div id="progress" style="width:98%; margin:auto;"></div><label id="amount">0%</label>
<form id="change">
<div id="panel1" class="form-panel" style="height:auto;">
<h2>Personal Details</h2>
<fieldset class="ui-corner-all" style="width:100%; height:auto; float:left;">
<label style="display:none;">
<span class="title">Subject Id:</span>
</label>
<label style="display:none;">
<span class="input"><input type="text" id="sub_id" class="textbox" name="sub_id" readonly="" /></span>
</label>
<label>
<span class="title">Contact No:<input type="hidden" name="pageurl" class="textbox" id="pageurl" /></span>
</label>
<label>
<span class="input">
<input list="contactno" name="contact" id="contact" class="textbox" />
<datalist id="contactno">
</datalist>
</span>
</label>
<label>
<span class="title">Customer Name:</span>
</label>
<label>
<span class="input"><input type="text" name="customer_name" id="customer_name" class="textbox" /></span>
</label>
<label>
<span class="title">Email Id:</span>
</label>
<label>
<span class="input"><input type="text" name="email" id="email" class="textbox" /></span>
</label>
<label>
<span class="title">Assign QRcode:</span>
<span class="input"><input type="text" name="qrcode" id="qrcode" class="textbox" /></span>
</label>
<label style="width:100%; height:50px; float:left;">
<span class="title">Vehicle No:</span>
</label>
<label>
<span class="input"><input type="text" name="vehicle_no" class="textbox" id="vehicle_no" /></span>
</label>
<label>
<span class="title">Type Of Vehicles :</span>
</label>
<label>
<span class="input">
<select name="vehicle_type" id="vehicle_type" class="textbox" style="width:100%; height:35px; border-radius:10px; -moz-border-radius:10px; border:none; " onchange="return model();">
<option>--select--</option>
</select>
</span>
</label>
<label style="width:100%; float:left; margin-bottom:10px;">
<span class="title">Loyalty Points </span>
</label>
<label>
<span class="input"><input type="text" style="border: none; background: none;" id="visits"/> </span>
</label>
<label style="width:100%; float:left; margin-bottom:10px;">
<span class="title">Free Services Used</span>
</label>
<label>
<span class="input"> <input type="text" style="border: none; background: none;" id="freeservices"/> </span>
</label>
<label style="width:100%; float:left;">
<span class="title">After Last free service</span>
</label>
<label>
<span class="input"><input type="text" style="border: none; background: none;" id="latestfreeservices"/> </span>
</label>
</fieldset>
</div>
<div id="panel2" class="form-panel ui-helper-hidden" style="width:100%; height:auto; min-height:1000px; float:left;">
<h2>Model/Service Details</h2>
<fieldset class="ui-corner-all" style="height:auto;">
<label style="width:100%; height:50px; float:left;">
<span class="title">Model Name:</span>
</label>
<label>
<span id="modelname" class="input">
<select name="modelname" id="modelnames" class="textbox" style="float:left; width:100%; height:35px;">
<option>--Select--</option>
</select>
</span>
</label>
<div class="label">
<label class="title" for="text">Services Available :</label>
<div class="input textarea" id="services" style="background:none;">
</div>
</div>
</fieldset>
</div>
<div id="panel3" class="form-panel ui-helper-hidden" style=" width:100%;height:auto; float:left;">
<h2>Allocated Team Details</h2>
<fieldset class="ui-corner-all" style="height:auto;">
<label style="width:100%; height:50px; float:left;">
<span class="title">Team Name:</span>
</label>
<label>
<span class="input">
<select name="teamname" id="teamname" class="textbox" onChange="return emplist();" style="width:100%; height:35px; border-radius:10px; -moz-border-radius:10px; border:none; " >
<option>--Select--</option>
</select></span>
</label>
<label style="width:100%; min-height:50px; height:auto; margin-bottom:10px; float:left;">
<span class="title">Team Members:<input type="text" name="val" id="val" style="display:none;" class="textbox" /></span>
</label>
<label>
<span class="input" id="teammember" style="background:none;"> </span>
</label>
<label>
<span class="title">Payment Type:</span>
</label>
<label>
<span class="input"><select name="payment_type" id="payment_type" class="textbox" id="pay" onBlur="copyto();" style="width:100%; height:40px; border-radius:10px; -moz-border-radius:10px; border:none; ">
<option value="">Select</option>
<option value="cash">Cash</option>
<option value="credit">Credit</option>
</select></span>
</label>
</fieldset>
</div>
<div id="thanks" class="form-panel ui-helper-hidden" style=" width:100%;height:auto; float:left;">
<h2>Registration Complete</h2>
<fieldset class="ui-corner-all" style="margin-top:0%;">
<p id="conformtotal" style="margin-top:0%;">Are you sure to submit the</p>
<p id="conformtotalprice" style="background:#ff0000; font-size:28px; color:#ffffff;">PRICE</p>
<span style="float:left; width:100%;"><input type="button" id="submit" name="submit" value="Confirm" onclick="return enterdata();" style=" cursor: pointer;width:80px; height:30px; padding-top:5px; font-size:14px; font-weight:bold; font-family:Arial, Helvetica, sans-serif; color:#ffffff; background: -moz-linear-gradient( left, #98c8a9, #e9e1a8 );
background: -webkit-linear-gradient( left, #98c8a9, #e9e1a8 );
background: -o-linear-gradient( left, #98c8a9, #e9e1a8 );
background: -khtml-linear-gradient( left, #98c8a9, #e9e1a8 );
background: linear-gradient( to right, #98c8a9, #e9e1a8 );"></span>
</fieldset>
</div>
<button id="next" style="margin-top:17%;">Next <span>▶</span></button><button id="back" disabled="disabled" style="margin-top:17%;"><span>◀</span> Back</button>
</form>
</div>
<script type="text/javascript">
jQuery.noConflict()(function() {
$progress = jQuery.noConflict()("#progress");
$amount = jQuery.noConflict()("#amount"), panels = [], panels[0] = "panel1", panels[1] = "panel2", panels[3] = "thanks", i = 0, $formPanel = jQuery.noConflict()(".form-panel");
//call progress bar constructor
$progress.progressbar({
change: function() {
//update amount label when value changes
$amount.text($progress.progressbar("option", "value") + "%");
}
});
//same function to reuse code
function changepanel(n) {
//hide current item
jQuery.noConflict()($formPanel[i]).fadeOut(500);
//selects next item
i = i + n;
//hide next item
jQuery.noConflict()($formPanel[i]).delay(505).fadeIn();
(i != 0) ? jQuery.noConflict()("#back").attr("disabled", null) : jQuery.noConflict()("#back").attr("disabled", "disabled");
(i != 3) ? jQuery.noConflict()("#next").attr("disabled", null) : jQuery.noConflict()("#next").attr("disabled", "disabled");
if(i ==2 ) {
n = jQuery.noConflict()("input:checked").length ;
jQuery.noConflict()('#conformtotalprice').html('hello'+n);
total=0;
jQuery.noConflict()("input:checkbox.pricetot:checked").each(function() {
total += parseInt(jQuery.noConflict()(this).attr('price'));
});
jQuery.noConflict()('#conformtotalprice').html('Total Price-'+total);
}
$progress.progressbar("option", "value",Math.round(i * 33.33) );
}
//set click handler for buttons
jQuery.noConflict()(".ex-form button").click(function(e) {
//alert(i);
var n = (jQuery.noConflict()(this).attr("id") != "back") ? 1 : -1;
e.preventDefault();
//next or back?
changepanel(n);
});
});
</script>
</body>
</html>