-
Notifications
You must be signed in to change notification settings - Fork 3
/
review-offer.html
229 lines (190 loc) · 10.4 KB
/
review-offer.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
<!DOCTYPE HTML>
<html><!-- InstanceBegin template="/Templates/main.dwt" codeOutsideHTMLIsLocked="false" -->
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<title>Mobile App</title>
<link href="http://fonts.googleapis.com/css?family=Open+Sans+Condensed:300,700"
rel="stylesheet" type="text/css"/>
<link href="css/font-awesome.min.css" rel="stylesheet" type="text/css"/>
<link href="css/jquerymobile.css" rel="stylesheet" type="text/css"/>
<!-- nativeDroid core CSS -->
<link href="css/jquerymobile.nativedroid.css" rel="stylesheet" type="text/css"/>
<!-- nativeDroid: Light/Dark -->
<link href="css/jquerymobile.nativedroid.dark.css" rel="stylesheet" type="text/css" id='jQMnDTheme'/>
<!-- nativeDroid: Color Schemes -->
<link href="css/jquerymobile.nativedroid.color.green.css" rel="stylesheet" type="text/css" id='jQMnDColor'/>
<link href="css/style.css" rel="stylesheet" type="text/css"/>
<script src="js/jquery-1.11.0.min.js" type="text/javascript"></script>
<script src="js/jquery.mobile-1.4.2.min.js" type="text/javascript"></script>
<script src="js/logger.js" type="text/javascript"></script>
<script src="cordova.js" type="text/javascript"></script>
<script src="js/functions.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function() {
allowAccess();
$(document).on( 'pagecreate','#page', function(event){
setUserToken();
});
getHeaderBgColor();
getUserMenu();
});
</script>
<!-- InstanceBeginEditable name="EditableHead" -->
<script type="text/javascript">
$(document).ready(
function() {
currentUser = getLocalStorage("User");
driver = currentUser.id;
option = getLocalStorage('option');
price = getLocalStorage('price');
//alert(dump(price));
$('#from_address_out').text(price.location_from);
$('#to_address_out').text(price.location_to);
$('#rate_amount_out').text(price.peak_rate);
$('#vehichle_type_out').text(option.vehicle_type);
$('#taxi_type_out').text(option.taxi_type);
$('#baby_seat_out').text(option.baby_seat);
$('#wheel_chair_out').text(option.wheel_chair);
$('#job_poster_id').val(driver);
$('#job_form_location').val(price.location_from);
$('#job_to_location').val(price.location_to);
$('#job_calculated_fare').val(price.peak_rate);
$('#job_vehicle_type').val(option.vehicle_type);
$('#job_taxi_type').val(option.taxi_type);
$('#job_baby_seat').val(option.baby_seat);
$('#job_wheel_chair').val(option.wheel_chair);
$('#current_location_latitude').val(option.current_lat);
$('#current_location_longitude').val(option.current_lng);
}
);
</script>
<script type="text/javascript">
function callbackJob(data) {
if(data.success != false) {
//location.replace('hire-taxi.html');
} else {
console.log('noooooooo');
showMessage(data);
}
}
</script>
<!-- InstanceEndEditable -->
</head>
<body>
<div data-role="page" id="pageone" class="content_wrapper container" data-theme='b'>
<div data-role="header" data-position="fixed" data-tap-toggle="false" data-theme="e"
id="header" class="bg-black">
<div class="container">
<div class="top-icons ti-left">
<a href="#sidebar_panael" class="ui-btn ui-corner-all ui-shadow manu_btn" data-role='button' data-icon='tasks' data-iconpos='left' data-inline='true'><i class='fa fa-bars'></i></a>
</div>
<div id="header-logo">
<div class="tile-box text-center">
<a href="dashboard.html" rel="external">
<img src="images/taxi-logo.png" alt="Get a Taxi App">
</a>
</div>
</div>
<div class="top-icons ti-right" id="header-right">
<!--<a href="#">
<i class="icon-user"></i>
</a>
<a href="#right-panel" data-role="button" data-icon="tasks" data-iconpos="right" data-inline="true">
<i class="icon-cogs"></i>
</a>
<a href="#">
<i class="icon-cogs"></i>
</a>-->
</div>
<!-- InstanceBeginEditable name="EditableHeader" -->
<!-- InstanceEndEditable -->
<div class="clearfix"></div>
</div>
</div>
<div id="content">
<div class="container">
<!-- InstanceBeginEditable name="EditableBody" -->
<div class="get-quote-bg content-position">
<div id="job_summary">
<div align="center">Job Summary </div>
<ul>
<li>From <span id="from_address_out"></span> to <span id="to_address_out"></span> </li>
<li>Vehicle Type: <span id="vehichle_type_out"></span></li>
<li>Taxi Type: <span id="taxi_type_out"></span></li>
<li>Baby Seat: <span id="baby_seat_out"></span></li>
<li>Wheel Chair: <span id="wheel_chair_out"></span></li>
<li> RATE : <span id="rate_amount_out"></span> </li>
</ul>
</div>
<form action="#" method="POST" enctype="multipart/form-data" onSubmit="return submitForm(this)">
<div class='input-container'>
<div class="icon-ph"><i class="fa fa-money fa-fw"></i></div>
<input class="custom-text" type="text" placeholder="Offer another rate" data-role="none" name="data[job][customer_offer]">
</div>
<div class='input-container'>
<div class="icon-rh"><i class="fa fa-chevron-left fa-fw"></i></div>
<a href="get.html" data-rel="back"><button type="submit" data-role="none" class="get-quote-back"></button></a>
<a href="hire-taxi.html" data-transition="slidefade"></a>
<button type="submit" data-role="none" class="get-quote-continue">Continue</button>
<input type="hidden" name='controller' value="Jobs" />
<input type="hidden" name='action' value="jobPost" />
<input type="hidden" name='callback' value="callbackJob" />
<input type="hidden" id="job_poster_id" value="" name="data[job][user_id]" />
<input type="hidden" id="job_form_location" value="" name="data[job][location_from]" />
<input type="hidden" id="job_to_location" value="" name="data[job][location_to]" />
<input type="hidden" id="job_calculated_fare" value="" name="data[job][calculated_fare]" />
<input type="hidden" id="job_taxi_type" value="" name="data[job][taxi_type]" />
<input type="hidden" id="job_vehicle_type" value="" name="data[job][vehicle_type]" />
<input type="hidden" id="job_baby_seat" value="" name="data[job][baby_seat]" />
<input type="hidden" id="job_wheel_chair" value="" name="data[job][wheel_chair]" />
<input type="hidden" id="current_location_latitude" value="" name="data[job][current_lat]" />
<input type="hidden" id="current_location_longitude" value="" name="data[job][current_lng]" />
</div>
</form>
</div>
<!-- InstanceEndEditable -->
</div>
<div class="clearfix"></div>
</div>
<!-- <div data-position="fixed" data-tap-toggle="false" data-role="footer" data-tap-toggle="false" data-theme="b"
id="footer">
<div class="container">
<div data-role="navbar">
<ul>
<li>
<a href="index.html">
<i class="icon-home"></i>
</a>
</li>
<li>
<a href="#">
<i class="icon-picture"></i>
</a>
</li>
<li>
<a href="logout.html" id="logout">
<i class="icon-signout"></i>
</a>
</li>
</ul>
</div>-->
<!-- InstanceBeginEditable name="EditableFooter" -->
<!-- InstanceEndEditable -->
<!-- </div> -->
<!--left panel content-->
<div data-role="panel" id="sidebar_panael" data-dismissible="false" data-display="push" data-theme="b">
<ul data-role="listview">
<li><h2>Your wishes</h2></li>
<li data-icon='false'><a href="#"><i class='lIcon fa fa-coffee'></i>About us</a></li>
<li data-icon='false'><a href="#"><i class='lIcon fa fa-beer'></i>Testomonial</a></li>
<li data-icon='false'><a href="#"><i class='lIcon fa fa-music'></i>Hire a taxi</a></li>
<li data-icon='false'><a href="#"><i class='lIcon fa fa-fire'></i>Location</a></li>
<li data-icon='false'><a href="#"><i class='lIcon fa fa-bullhorn'></i>Contact us</a></li>
<li data-icon='false'><a href="#"><i class='lIcon fa fa-heart'></i>Tell a friend</a></li>
<li data-icon='false'><a href="#"><i class='lIcon fa fa-trophy'></i>Rate this apps</a></li>
</ul>
</div>
</div>
</div>
</body>
<!-- InstanceEnd --></html>