-
Notifications
You must be signed in to change notification settings - Fork 4
/
scout.php
383 lines (356 loc) · 14.9 KB
/
scout.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
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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
<meta name="author" content="Daniele Baschieri,Nicola Corti" />
<meta name="description" content="Un semplice programma per la gestione della progressione personale in Reparto agesci.." />
<meta name ="copyright" content="2015" />
<meta name="keywords" content="Progressione Personale Unitaria" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>A-PPU</title>
<link rel="apple-touch-icon" sizes="57x57" href="css/favicon/apple-touch-icon-57x57.png">
<link rel="apple-touch-icon" sizes="60x60" href="css/favicon//apple-touch-icon-60x60.png">
<link rel="apple-touch-icon" sizes="72x72" href="css/favicon//apple-touch-icon-72x72.png">
<link rel="apple-touch-icon" sizes="76x76" href="css/favicon//apple-touch-icon-76x76.png">
<link rel="apple-touch-icon" sizes="114x114" href="css/favicon//apple-touch-icon-114x114.png">
<link rel="apple-touch-icon" sizes="120x120" href="css/favicon//apple-touch-icon-120x120.png">
<link rel="apple-touch-icon" sizes="144x144" href="css/favicon//apple-touch-icon-144x144.png">
<link rel="apple-touch-icon" sizes="152x152" href="css/favicon//apple-touch-icon-152x152.png">
<link rel="apple-touch-icon" sizes="180x180" href="css/favicon//apple-touch-icon-180x180.png">
<link rel="icon" type="image/png" href="css/favicon//favicon-32x32.png" sizes="32x32">
<link rel="icon" type="image/png" href="css/favicon//android-chrome-192x192.png" sizes="192x192">
<link rel="icon" type="image/png" href="css/favicon//favicon-96x96.png" sizes="96x96">
<link rel="icon" type="image/png" href="css/favicon//favicon-16x16.png" sizes="16x16">
<link rel="manifest" href="css/favicon//manifest.json">
<meta name="msapplication-TileColor" content="#ffffff">
<meta name="msapplication-TileImage" content="css/favicon//mstile-144x144.png">
<meta name="theme-color" content="#ffffff">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap-theme.min.css">
<link rel="stylesheet" type="text/css" href="css/datatables.min.css"/>
<link rel="stylesheet" type="text/css" href="css/default.css" />
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>
<script type="text/javascript" src="js/datatables.min.js"></script>
<script type="text/javascript" src="js/default.js"></script>
<script type="text/javascript" src="js/scout.js"></script>
<script type="text/javascript" >
$(document).ready(function(){
<?php
echo 'var id="'.$_GET['id'].'";';
?>
init();
initScout(id);
});
</script>
<style>
</style>
</head>
<body>
<nav class="navbar navbar-inverse navbar-fixed-top">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="index.html">Advanced P.P.U.</a>
</div>
<div id="navbar" class="collapse navbar-collapse">
<ul class="nav navbar-nav">
<li><a href="index.html">Home</a></li>
<li><a href="panoramica.html">Panoramica</a></li>
<li><a href="specialita-tool.html">Specialità</a></li>
<li><a href="extra.html">Extra</a></li>
</ul>
<ul class="nav navbar-nav navbar-right">
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false" >Utilità <span class="caret"></span></a>
<ul class="dropdown-menu">
<li><a href="settings.html"><span class="glyphicon glyphicon-cog" aria-hidden="true"></span> Settings</a></li>
<li role="separator" class="divider"></li>
<li><a href="#" id="abbandonato"><span class="glyphicon glyphicon glyphicon-trash" aria-hidden="true"></span> Abbandonato</a></li>
<li><a href="#" id="passaggi"><span class="glyphicon glyphicon glyphicon-road" aria-hidden="true"></span> Passaggi</a></li>
</ul>
</li>
</ul>
</div><!--/.nav-collapse -->
</div>
</nav>
<div class="container">
<div class="starter-template">
<div class="row">
<div class="col-lg-6">
<div class="row">
<div class="col-lg-4">
<form id="eventi-form" enctype="multipart/form-data" method="post" name="fileinfo">
<span class="btn btn-default btn-file">
Browse <input type="file" name="file">
</span>
<input class="btn btn-xs btn-info space" type="submit">
</form>
<img class="photo" src="" />
<button type="button" class="btn btn-xs btn-info editPhoto right" aria-label="Right Align" onclick="" >
<span class="glyphicon glyphicon-pencil" aria-hidden="true"></span> <span class="">Edit Photo</span>
</button>
</div>
<div class="col-lg-8">
<p>Scheda di: <b class="name"></b></p>
<p>Squadriglia: <b class="squadriglia"></b></p>
<img class="photoSq" /><br />
<p>
</p>
</div>
</div>
<div class="row">
<hr />
<div class="col-lg-12">
<ul class="nav nav-tabs">
<li class="active"><a data-toggle="tab" href="#informazioni">Informazioni</a></li>
<li><a data-toggle="tab" href="#contatti">Contatti</a></li>
</ul>
<div class="tab-content">
<div id="informazioni" class="tab-pane fade in active">
<h3>Informazioni
<button type="button" class="btn btn-xs btn-info editInfo" aria-label="Right Align" onclick="" >
<span class="glyphicon glyphicon-pencil" aria-hidden="true"></span> <span class="">Edit</span>
</button>
</h3>
<table id="infoTable">
<tr>
<td>Nome:</td>
<td><span id="nome" type='text' name='nome' value=''/> </td>
</tr>
<tr>
<td>Cognome:</td>
<td><span id="cognome" type='text' name='cognome' value=''/> </td>
</tr>
<tr>
<td>Codice:</td><td><span id="codice" type='text' name='codice' value=''/> </td>
</tr>
<tr>
<td>Indirizzo:</td><td> <span id="indirizzo" type='text' name='indirizzo' value=''/> </td>
</tr>
<tr>
<td>Data di nascita:</td><td> <span id="datanascita" type='date' name='datanascita' value=''/> </td>
</tr>
<tr>
<td>Residenza:</td><td> <span id="residenza" type='text' name='residenza' value=''/> </td>
</tr>
<tr>
<td>Sesso:</td><td> <span id="sesso" type='text' name='sesso' value=''/> </td>
</tr>
<tr>
<td>Luogo di nascita:</td><td> <span id="luogonascita" type='text' name='luogonascita' value=''/> </td>
</tr>
<tr>
<td>CAP:</td><td> <span id="cap" type='text' name='cap' value=''/> </td>
</tr>
<tr>
<td>Provincia:</td><td> <span id="provincia" type='text' name='provincia' value='BO'/> </td>
</tr>
<tr>
<td>Nazione:</td><td> <span id="nazione" type='text' name='nazione' value='Ita'/> </td><span type='hidden' name='id' value='44'>
</tr>
<tr>
<td>Squadriglia:</td>
<td><select id='idsquadriglie'>
<option value='6' selected>aquile</option>
<option value='7'>iene</option>
<option value='8'>pantere</option>
<option value='9'>lupi</option>
</select>
</td>
</tr>
</table>
</div>
<div id="contatti" class="tab-pane fade">
<h3>Contatti
<button type="button" class="btn btn-xs btn-info editInfo" aria-label="Right Align" onclick="" >
<span class="glyphicon glyphicon-pencil" aria-hidden="true"></span> <span class="">Edit</span>
</button>
</h3>
<table id="contattiTable">
<tr>
<td>Babbo</td>
<td><span id="numbabbo" type="text" /></td>
</tr>
<tr>
<td>Mamma</td>
<td><span id="nummamma" type="text" /></td>
</tr>
<tr>
<td>num Casa</td>
<td><span id="numcasa" type="text" /></td>
</tr>
<tr>
<td>num Cell</td>
<td><span id="numcell" type="text" /></td>
</tr>
<tr>
<td>num Nonno</td>
<td><span id="numnonno" type="text" /></td>
</tr>
<tr>
<td>mail Babbo</td>
<td><span id="mailbabbo" type="text" /></td>
</tr>
<tr>
<td>mail Mamma</td>
<td><span id="mailmamma" type="text" /></td>
</tr>
<tr>
<td>mail</td>
<td><span id="mail" type="text" /></td>
</tr>
</table>
</div>
</div>
<div class="buttonField">
<button id="confirmChange" type="button" class="btn btn-sm btn-success" aria-label="Right Align" onclick="" >
<span class="glyphicon glyphicon-floppy-disk" aria-hidden="true"></span> <span class=""> Confirm</span>
</button>
<button id="closeChange" type="button" class="btn btn-sm btn-danger" aria-label="Right Align" onclick="" >
<span class="glyphicon glyphicon-remove" aria-hidden="true"></span> <span class=""> Discarge</span>
</button>
</div>
</div>
</div>
<div class="row">
<hr />
<div class="col-lg-12">
<div class="panel panel-default">
<div class="panel-heading">Varie <button type="button" class="btn btn-success btn-xs right addComment" data-toggle="modal" data-target="#myModal" data-whatever="@Commento"><span class="glyphicon glyphicon glyphicon-pencil" aria-hidden="true"></span> Post</button></div>
<div class="panel-body" id="commenti">
<!-- <textarea id="varie">Il ragazzo è brutto!</textarea> -->
<div class="media">
<div class="media-left">
<a href="#">
<img src="archive/photo/user.jpg" width=64 height=64 />
<p class="userName">Danger</p>
</a>
</div>
<div class="media-body">
<h4 class="media-heading">Incontro Famiglia <span class="rightText">19/05/2015</span></h4>
Il ragazzo mangia troppi bomboloni alla crema
</div>
</div>
<div class="media">
<div class="media-left">
<a href="#">
<img src="archive/photo/user.jpg" width=64 height=64 />
<p class="userName">Cecilia</p>
</a>
</div>
<div class="media-body">
<h4 class="media-heading">Discussione con ragazzo <span class="rightText">29/15/2015</span></h4>
La PPU ci ha permesso di aiutarlo a mangiare anche i cannoli siciliani
</div>
</div>
<div>
<button type="button" class="btn btn-success right addCommento" data-toggle="modal" data-target="#myModal" data-whatever="@Commento">
<span class="glyphicon glyphicon-plus" aria-hidden="true"></span> post
</button>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="col-lg-6">
<div class="panel panel-default">
<div class="panel-heading">Sentiero <button type="button" class="btn btn-info btn-xs right editSentiero"><span class="glyphicon glyphicon glyphicon-pencil" aria-hidden="true"></span> Edit</button></div>
<div class="panel-body">
<img class="tappa" src="archive/tappe/fine.jpg" />
<ul id="listaImpegni">
<li>Fare tante ba</li>
<li>Non picchiare le bambine!</li>
</ul>
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading">Specialità</div>
<div class="panel-body">
<ul id="listaSpecialita" class="listaVuota Specialita">
<li>
<img src="archive/spec/cuoco.jpg" />
<p>Cuoco <span class="badge">3</span></p>
</li>
<li>
<img src="archive/spec/attore.jpg" />
<p>Attore <span class="badge">6</span></p>
</li>
</ul>
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading">Specialità in Conquista<button type="button" class="btn btn-success btn-xs right" data-toggle="modal" data-target="#myModal" data-whatever="@spec"><span class="glyphicon glyphicon glyphicon-plus" aria-hidden="true"></span> Add</button></div>
<div class="panel-body">
<ul id="specInConquista" class="listaVuota Specialita">
<li>
<img src="archive/spec/cuoco.jpg" />
<p>Cuoco <span class="badge">3</span></p>
</li>
<li>
<img src="archive/spec/attore.jpg" />
<p>Attore <span class="badge">6</span></p>
</li>
</ul>
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading">Brevetti</div>
<div class="panel-body">
<ul id="listaBrevetti" class="listaVuota Brevetti">
<li>
<img src="archive/brev/alpina.jpg" />
<p>Alpinista <span class="badge">3</span></p>
</li>
<li>
<img src="archive/brev/pioniere.jpg" />
<p>Pioniere <span class="badge">6</span></p>
</li>
</ul>
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading">Brevetti in Conquista <button type="button" class="btn btn-success btn-xs right" data-toggle="modal" data-target="#myModal" data-whatever="@brev"><span class="glyphicon glyphicon glyphicon-plus" aria-hidden="true"></span> Add</button></div>
<div class="panel-body">
<ul id="brevInConquista" class="listaVuota Brevetti">
<li>
<img src="archive/brev/alpina.jpg" />
<p>Alpinista <span class="badge">3</span></p>
</li>
<li>
<img src="archive/brev/pioniere.jpg" />
<p>Pioniere <span class="badge">6</span></p>
</li>
</ul>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Modal -->
<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
<h4 class="modal-title" id="myModalLabel">Modal title</h4>
</div>
<div class="modal-body">
...
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
<button id="send" type="button" class="btn btn-primary">Send</button>
</div>
</div>
</div>
</div>
</body>
</html>