-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
227 lines (200 loc) · 9.38 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
<!DOCTYPE html>
<html>
<head>
<title></title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no;" />
<meta charset="utf-8" />
<!-- iPad/iPhone specific css below, add after your main css >
<link rel="stylesheet" media="only screen and (max-device-width: 1024px)" href="ipad.css" type="text/css" />
<link rel="stylesheet" media="only screen and (max-device-width: 480px)" href="iphone.css" type="text/css" />
-->
<!-- If your application is targeting iOS BEFORE 4.0 you MUST put json2.js from http://www.JSON.org/json2.js into your www directory and include it here
<script type="text/javascript" charset="utf-8" src="cordova-1.7.0.js"></script> -->
<script type="text/javascript" src="js/ChildBrowser.js"></script>
<link rel="stylesheet" href="css/jquery.mobile.1.1.0.min.css" />
<link rel="stylesheet" href="css/themes/Alitalia.min.css" />
<script src="js/jquery-1.6.4.min.js"></script>
<script src="js/main.js"></script>
<script src="js/jquery.mobile-1.1.0.min.js"></script>
<script src="js/xml2json.js"></script>
<script src="js/mustaches.js"></script>
<!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
<!--[if lt IE 9]>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<!-- MAP
<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=true"></script>
<script type="text/javascript" src="js/map.js"></script> -->
</head>
<body>
<div data-role="page" id="home">
<div data-theme="a" data-role="header"> <a data-icon="star" data-iconpos="right" name="btn_getBoard" id="btn_getBoard" onClick="loadBoardingPass()" class="ui-btn-right">Boarding Pass</a>
<h3>HOME</h3>
</div>
<div data-role="content">
<form id="form_getTickets" action="https://mobile.alitalia.it/services/CheckInGetTickets.aspx" method="get">
<div data-role="fieldcontain" class="ui-field-contain ui-body ui-br ">
<fieldset data-role="controlgroup" data-type="horizontal" class="ui-corner-all ui-controlgroup ui-controlgroup-horizontal ">
<div role="heading" class="ui-controlgroup-label "></div>
<div class="ui-controlgroup-controls">
<div class="ui-radio">
<input type="radio" name="codetype" id="radio-choice-c" value="3" checked="checked">
<label for="radio-choice-c" data-corners="true" data-shadow="false" data-iconshadow="true"
data-wrapperels="span" data-theme="c" class="ui-btn ui-corner-left ui-radio-off ui-btn-up-c"> <span class="ui-btn-inner ui-corner-left"> <span class="ui-btn-text">PNR</span> </span> </label>
</div>
<div class="ui-radio">
<input type="radio" name="codetype" id="radio-choice-d" value="1">
<label for="radio-choice-d" data-corners="true" data-shadow="false" data-iconshadow="true"
data-wrapperels="span" data-theme="c" class="ui-btn ui-radio-on ui-btn-active ui-btn-up-c"> <span class="ui-btn-inner"> <span class="ui-btn-text">E-Ticket</span> </span> </label>
</div>
<div class="ui-radio">
<input type="radio" name="codetype" id="radio-choice-e" value="2">
<label for="radio-choice-e" data-corners="true" data-shadow="false" data-iconshadow="true"
data-wrapperels="span" data-theme="c" class="ui-btn ui-btn-up-c ui-radio-off ui-corner-right ui-controlgroup-last"> <span class="ui-btn-inner ui-corner-right ui-controlgroup-last"> <span class="ui-btn-text">MilleMiglia</span> </span> </label>
</div>
</div>
</fieldset>
<div data-role="fieldcontain" class="ui-hide-label">
<label for="code">codice:</label>
<input type="text" name="code" id="code" placeholder="codice"
value="0552189688155" required />
</div>
<label for="name">Nome:</label>
<input type="text" name="name" id="name" placeholder="Nome"
value="pippo" required />
<label for="surname">Cognome:</label>
<input type="text" name="surname" id="surname" placeholder="Cognome"
value="pippa" required />
</div>
<button data-icon="forward" type="submit" value="submit-value" name="submit">Cerca Voli</button>
</form>
</div>
<div data-role="navbar" data-iconpos="top" data-position="fixed">
<ul>
<li> <a href="#home" data-theme="" data-icon="home" class="ui-btn-active ui-state-persist" > CHEKIN </a> </li>
<!-- <li> <a href="#infoVoli" data-theme="" data-icon="check" > VOLI </a> </li>-->
<li> <a href="#offerte" data-theme="" data-icon="check" > OFFERTE </a> </li>
</ul>
</div>
</div>
<div data-role="page" id="CheckinList" data-add-back-btn="true">
<div data-theme="a" data-role="header" >
<h3>Checkin List</h3>
</div>
<div data-role="content">
<ul id="CheckinResult" data-role="listview" data-inset="true" data-split-icon="arrow-r">
</ul>
</div>
</div>
<div data-role="page" id="SelectedTicketPage" data-add-back-btn="true">
<div data-theme="a" data-role="header" >
<h3>Selected Ticket</h3>
</div>
<div data-role="content">
<ul id="CheckinResult" data-role="listview" data-inset="true" data-split-icon="arrow-r">
</ul>
<div id="selectedTicket"></div>
<div id="tpl-ticket">
<h1>{{ticket.flycarrier}}</h1>
<div>{{ticket.boardingairport}}</div>
<div>{{ticket.landingairport}}</div>
<div>Posto: {{ticket.seat}}</div>
<div>Classe: {{ticket.class}}</div>
</div>
<button id="btn_CheckInGetSeatMap" data-icon="grid" name="btn_CheckInGetSeatMap">GetSeatMap</button>
<button data-icon="arrow-d" name="btn_CheckInGetBoardingPass" id="btn_CheckInGetBoardingPass">GetBoarding Pass</button>
<form id="form_DoCheckIn">
<div data-role="fieldcontain">
<label for="email">Email</label>
<input type="email" name="email" id="email" value="[email protected]"
placeholder="Indirizzo Email" required />
</div>
<div data-role="fieldcontain">
<label for="telephone">telephone</label>
<input type="tel" name="telephone" id="telephone" value="3479460360"
placeholder="Numero di Telefono" required />
</div>
<button data-icon="forward" name="doCheckingBtn" id="doCheckingBtn">Checkin</button>
</form>
</div>
</div>
<!--INFO VOLI-->
<div data-role="page" id="infoVoli">
<div data-theme="a" data-role="header">
<h3>INFO VOLI</h3>
</div>
<div data-role="content">
<div data-role="fieldcontain">
<label for="departure" class="select" >Partenza:</label>
<select name="departure" id="departure" required>
<option>Aereoporto di Partenza</option>
</select>
<label for="destination" class="select">Arrivo:</label>
<select name="destination" id="destination" required>
<option>Aereporto d'Arrivo</option>
</select>
<br>
<label for="date" class="select" id="dataVoli" required>Data:</label>
<input type="date" name="date" value="" />
</div>
<button data-icon="search" id="searchFlight">Cerca Voli</button>
</div>
<div data-role="navbar" data-iconpos="top" data-position="fixed">
<ul>
<li> <a href="#home" data-theme="" data-icon="home" > CHEKIN </a> </li>
<li> <a href="#infoVoli" data-theme="" data-icon="check" class="ui-btn-active ui-state-persist" > VOLI </a> </li>
<li> <a href="#offerte" data-theme="" data-icon="check" > OFFERTE </a> </li>
</ul>
</div>
</div>
<div data-role="dialog" id="detailVolo">
<div data-theme="a" data-role="header">
<h3>Dettaglio Volo</h3>
</div>
<div data-role="content" id="flightDetail"> </div>
</div>
<div data-role="dialog" id="BoardingPassDialog" data-add-back-btn="true">
<div bac theme="a" data-role="header"> <a onClick="saveBoardingPass();" data-icon="check">Salva</a>
<h3>Boarding Pass Dialog</h3>
</div>
<div data-role="content" style="text-align:center" > <img id="boardImg" /> </div>
</div>
<div data-role="dialog" id="ErrorDialog">
<div data-theme="a" data-role="header">
<h3>Errore</h3>
</div>
<div data-role="content" id="logMsg"> </div>
</div>
<!-- OFFERTE -->
<div data-role="page" id="offerte">
<div data-role="header">
<h1>Offerte</h1>
<a data-icon="refresh" data-iconpos="right" name="btn_getBoard" id="btn_getBoard" onClick="loadOfferte();" class="ui-btn-right">Ricarica Offerte</a>
</div>
<div data-role="content" >
<ul id="list_offerte" data-role="listview" data-inset="true" data-split-icon="arrow-r">
</ul>
</div>
<div data-role="navbar" data-iconpos="top" data-position="fixed">
<ul>
<li> <a href="#home" data-theme="" data-icon="home" > CHEKIN </a> </li>
<!-- <li> <a href="#infoVoli" data-theme="" data-icon="check" > VOLI </a> </li>-->
<li> <a href="#offerte" data-theme="" data-icon="check" class="ui-btn-active ui-state-persist" > OFFERTE </a> </li>
</ul>
</div>
</div>
<div data-role="page" id="offerteDetail" data-add-back-btn="true">
<div data-role="header">
<h1>Offerta</h1>
</div>
<div data-role="content" id="offerteContent">
<div id="tpl-offerte">
<h1>{{{title}}}</h1>
<span>{{{date}}}</span>
<img src="{{{thumbnail}}}" style="max-width:100%;height:auto" />
<div>{{{content}}}</div>
</div>
</div>
</div>
</body>
</html>