-
Notifications
You must be signed in to change notification settings - Fork 0
/
perfil_geral.php
437 lines (395 loc) · 22.9 KB
/
perfil_geral.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
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
<!DOCTYPE html>
<!--
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
-->
<html>
<head>
<meta charset="UTF-8">
<title></title>
<!--- Fonts--->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css"/>
<link href="http://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet"/>
<link href='http://fonts.googleapis.com/css?family=Roboto:400,700,300' rel='stylesheet' type='text/css'/>
<link href="css/pe-icon-7-stroke.css" rel="stylesheet" />
<!--- Stylesheets--->
<link rel = "stylesheet" href = "css/main.page.style.css"/>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.2/css/bootstrap.min.css" integrity="sha384-y3tfxAZXuh4HwSYylfB+J125MxIs6mR5FOHamPBG064zB+AFeWH94NdvaCBm8qnd" crossorigin="anonymous">
<link rel="stylesheet" href="bootstrap-3.3.6-dist/css/bootstrap.min.css"/>
<style>
.card-user {
border-radius: 4px;
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05), 0 0 0 1px rgba(63, 63, 68, 0.1);
background-color: #FFFFFF;
margin-bottom: 30px;
}
.form-control::-moz-placeholder {
color: #DDDDDD;
opacity: 1;
filter: alpha(opacity=100);
}
.form-control:-moz-placeholder {
color: #DDDDDD;
opacity: 1;
filter: alpha(opacity=100);
}
.form-control::-webkit-input-placeholder {
color: #DDDDDD;
opacity: 1;
filter: alpha(opacity=100);
}
.form-control:-ms-input-placeholder {
color: #DDDDDD;
opacity: 1;
filter: alpha(opacity=100);
}
.form-control {
background-color: #FFFFFF;
border: 1px solid #E3E3E3;
border-radius: 4px;
color: #565656;
padding: 8px 12px;
height: 40px;
-webkit-box-shadow: none;
box-shadow: none;
}
.form-control:focus {
background-color: #FFFFFF;
border: 1px solid #AAAAAA;
-webkit-box-shadow: none;
box-shadow: none;
outline: 0 !important;
color: #333333;
}
.has-success .form-control, .has-error .form-control, .has-success .form-control:focus, .has-error .form-control:focus {
border-color: #E3E3E3;
-webkit-box-shadow: none;
box-shadow: none;
}
.has-success .form-control {
color: #87CB16;
}
.has-success .form-control:focus {
border-color: #87CB16;
}
.has-error .form-control {
color: #FF4A55;
}
.has-error .form-control:focus {
border-color: #FF4A55;
}
.form-control + .form-control-feedback {
border-radius: 6px;
font-size: 14px;
margin-top: -7px;
position: absolute;
right: 10px;
top: 50%;
vertical-align: middle;
}
.open .form-control {
border-radius: 4px 4px 0 0;
border-bottom-color: transparent;
}
.form-control[disabled], .form-control[readonly], fieldset[disabled] .form-control {
background-color: #F5F5F5;
color: #888888;
cursor: not-allowed;
}
</style>
</head>
<body>
<!-- Início perfil geral -->
<div class="row">
<div class="col-md-9">
<div class="card">
<div class="header">
<i class="fa fa-undo" aria-hidden="true"></i>
<button type="button" class="btn btn-lg" class="fa fa-undo" aria-hidden="true"> Voltar</button>
<p><h4 class="title" style = "color: #DC006C;"><b>Perfil de Brad Pitt</b></h4></p>
</div>
<div class="content">
<form>
<div class="row">
<div class="col-md-4">
<div class="form-group">
<label>Primeiro nome</label>
<input type="text" class="form-control" value="Brad" readonly>
</div>
</div>
<div class="col-md-4">
<div class="form-group">
<label>Último nome</label>
<input type="text" class="form-control" value="Pitt" readonly>
</div>
</div>
<div class="col-md-2">
<div class="form-group">
<label>Género</label>
<select class="form-control" disabled>
<option selected="selected">Masculino</option>
<option value="2">Feminino</option>
</select>
</div>
</div>
<div class="col-md-2">
<div class="form-group">
<label>Idade</label>
<input type="text" class="form-control" value="53 anos" readonly>
</div>
</div>
</div>
<div class="row">
<div class="col-md-4">
<div class="form-group">
<label>Orientação sexual</label>
<select class="form-control" disabled>
<option selected="selected">Heterossexual</option>
<option value="2">Homossexual</option>
<option value="3">Bissexual</option>
</select>
</div>
</div>
<div class="col-md-4">
<div class="form-group">
<label>Escolaridade</label>
<select class="form-control" disabled>
<option selected="selected">Sem Escolaridade</option>
<option value="2">1ºCiclo do Ensino Básico (4º ano ou equivalente)</option>
<option value="3">2ºCiclo do Ensino Básico (6º ano ou equivalente)</option>
<option value="4">3ºCiclo do Ensino Básico (9º ano ou equivalente)</option>
<option value="5">Ensino Secundário (12ºano ou equivalente) </option>
<option value="5">Ensino Superior - Licenciatura </option>
<option value="6">Ensino Superior - Mestrado </option>
<option value="7">Ensino Superior - Doutoramento </option>
</select>
</div>
</div>
<div class="col-md-4">
<div class="form-group">
<label>Distrito</label>
<input type="text" class="form-control" value="Lisboa" readonly>
</div>
</div>
</div>
<div class="row">
<div class="col-md-12">
<div class="form-group">
<label>Sobre mim</label>
<textarea rows="5" class="form-control" readonly>Ator comediante aahaha</textarea>
</div>
</div>
</div>
<div class = "row">
<div class = "col-sm-4">
<label>Facebook</label>
<input type="text" class="form-control" value="https://www.facebook.com/Brad-Pitt-165952813475830/" readonly>
</div>
<div class = "col-sm-4">
<label>Skype</label>
<input type="text" class="form-control" value="/brad_pitt_97" readonly>
</div>
<div class = "col-sm-4">
<label>Instagram</label>
<input type="text" class="form-control" value="@brad_pitt_97" readonly>
</div>
</div>
<br>
<br><br>
<div class="clearfix"></div>
</form>
</div>
</div>
</div>
<div class="col-md-3">
<div class="card card-user" style = "top: 0;">
<br>
<img class ="avatar" src = "img/brad_pitt.jpg">
<br><br>
<h2 class="title">Brad Pitt</h2>
<p class="category">Ator comediante aahaha</p>
<a href="#"><i class="fa fa-twitter"></i></a>
<a href="#"><i class="fa fa-facebook"></i></a>
</div>
<div align = "center">
<button type="button" class="btn btn-lg btn-success" style = "background-color: #DC006C; border-color: #DC006C"><i class="fa fa-check "></i> Aceitar</button>
<button type="button" class="btn btn-lg btn-danger" style = "background-color: #9D9D9D; border-color: #9D9D9D"><i class="fa fa-times"></i> Rejeitar</button>
</div>
</div>
<!-- Fim perfil geral -->
<div class="row">
<div class="col-md-9">
<div class="card " style = "top: 0;">
<div class="header">
</div>
</div>
</div>
</div>
<!-- Início preferencias -->
<div class = "row">
<div class = "col-md-9">
<div class="card">
<div class="header">
<h4 class="title" style = "color: #DC006C;"><b>As suas músicas favoritas</b><b></b></h4>
</div>
<div class = "content">
<form>
<div id = "musicas">
<div class = "row">
<div class="col-md-4">
<div class="form-group">
<label>Artista</label>
<input type="text" class="form-control m-artist-input" readonly>
<div class = "suggesstion-box"></div>
</div>
</div>
<div class="col-md-4">
<div class="form-group">
<label>Nome da música</label>
<input type="text" class="form-control m-music-input" readonly>
<div class = "suggesstion-box"></div>
</div>
</div>
<div class="col-md-4">
<div class="form-group">
<label>Género</label>
<input type="text" class="form-control m-music-genre" style = "width:80%; position:absolute;" readonly>
</div>
</div>
<br>
</div>
</div>
<br>
<div class = "col-sm-4 col-md-offset-8">
</div>
<br><br>
<div class="clearfix"></div>
</form>
</div>
</div>
</div>
</div>
<div class = "row">
<div class = "col-md-9">
<div class="card">
<div class="header">
<h4 class="title" style = "color: #DC006C;"><b>Os seus filmes favoritos</b><b></b></h4>
</div>
<div class = "content">
<form>
<div id = "filmes">
<div class = "row">
<div class="col-md-4">
<div class="form-group">
<label>Filme</label>
<input type="text" class="form-control m-movie-input" readonly>
<div class = "suggesstion-box"></div>
</div>
</div>
<div class="col-md-4">
<div class="form-group">
<label>Diretor</label>
<input type="text" class="form-control m-director-input" readonly>
</div>
</div>
<div class="col-md-4">
<div class="form-group">
<label>Género</label>
<input type="text" class="form-control m-movie-genre" style = "width:80%; position:absolute;" readonly>
</div>
</div>
<br>
</div>
</div>
<br>
<div class = "col-sm-4 col-md-offset-8">
</div>
<br>
<div class="clearfix"></div>
</form>
</div>
</div>
</div>
</div>
<div class = "row">
<div class = "col-md-9">
<div class="card">
<div class="header">
<h4 class="title" style = "color: #DC006C;"><b>As suas cores favoritas</b><b></b></h4>
</div>
<div class = "content">
<form>
<div id = "cores">
<div class = "row">
<div class="col-md-12">
<div class="form-group">
<label>Cores</label>
<select class="form-control" style = "width:80%; position:absolute;" disabled>
<option value = "1">Preto</option>
<option value = "2">Branco</option>
<option value = "3">Vermelho</option>
<option value = "4">Amarelo</option>
<option value = "5">Azul</option>
<option value = "6">Verde</option>
<option value = "7">Laranja</option>
<option value = "8">Roxo</option>
<option value = "9">Rosa</option>
</select>
</div>
</div>
<br>
</div>
</div>
<br>
<div class = "col-sm-4 col-md-offset-8">
</div>
<br>
<div class="clearfix"></div>
</form>
</div>
</div>
</div>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.4/jquery.min.js"></script>
<script src="bootstrap-3.3.6-dist/js/bootstrap.min.js"></script>
<script src = "scripts/suggestion_scripts/suggestion.script.js"></script>
<script>
//remover inputs
$(document).on('click', '.remove-row-icon', function () {
//codigo PHP para remover da bd, se necessário
$(this).parent().parent().parent().remove();
});
$(document).on('click', '.add-row-icon', function() {
var div = document.createElement('div');
div.className = 'row';
$parent_to_add = $(this).parent().parents().children(".content").children().children(":first");
$interest_field = $parent_to_add.attr('id');
if($interest_field === "musicas"){
div.innerHTML = ' <div class="col-md-4"><div class="form-group"><label>Artista</label><input type="text" class="form-control m-artist-input"><div class = "suggesstion-box"></div></div></div><div class="col-md-4"><div class="form-group"><label>Nome da música</label><input type="text" class="form-control m-music-input"><div class = "suggesstion-box"></div></div>' +
' </div><div class="col-md-4"><div class="form-group"><label>Género</label><input type="text" class="form-control m-music-genre" style = "width:80%; position:absolute;" readonly> ' +
' <i class="fa fa-minus-circle pull-right remove-row-icon" style = "color: #a5a5a5; position:relative; cursor:pointer; font-size: 1.5em;padding-top:30px;"></i></div></div> <br>';
}
else if ($interest_field === "filmes") {
div.innerHTML = ' <div class="col-md-4"><div class="form-group"><label>Filme</label><input type="text" class="form-control m-movie-input"><div class = "suggesstion-box"></div></div></div><div class="col-md-4"><div class="form-group"><label>Diretor</label><input type="text" class="form-control m-director-input" readonly></div>' +
' </div><div class="col-md-4"><div class="form-group"><label>Género</label><input type="text" class="form-control m-movie-genre" style = "width:80%; position:absolute;" readonly> ' +
' <i class="fa fa-minus-circle pull-right remove-row-icon" style = "color: #a5a5a5; position:relative; cursor:pointer; font-size: 1.5em;padding-top:30px;"></i></div></div> <br>';
}
else if ($interest_field === "cores"){
div.innerHTML = ' <div class="col-md-12"><div class="form-group"><label>Cores</label><select class="form-control" style = "width:90%; position:absolute;"><option value = "1">Preto</option><option value = "2">Branco</option><option value = "3">Vermelho</option><option value = "4">Amarelo</option><option value = "5">Azul</option><option value = "6">Verde</option><option value = "7">Laranja</option><option value = "8">Roxo</option><option value = "9">Rosa</option></select> ' +
' <i class="fa fa-minus-circle pull-right remove-row-icon" style = "color: #a5a5a5; position:relative; cursor:pointer; font-size: 1.5em;padding-top:30px;"></i></div></div> <br>';
} else if ($interest_field === "disp"){
div.innerHTML ='<div class="col-md-12"><div class="form-group"><label>Dia</label><select class="form-control"><option selected="selected" >Seg</option><option >Ter</option><option >Qua</option><option >Qui</option><option >Sex</option><option >Sáb</option><option >Dom</option></select></div></div><br>';
div.innerHTML ='<div class="col-md-12"><div class="form-group"><label>Dia</label><select class="form-control"><option selected="selected" >Seg</option><option >Ter</option><option >Qua</option><option >Qui</option><option >Sex</option><option >Sáb</option><option >Dom</option></select></div></div><br>';
}
$parent_to_add.append(div);
});
$(function(){
$('#time').combodate({
firstItem: 'name', //show 'hour' and 'minute' string at first item of dropdown
minuteStep: 1
});
});
</script>
</body>
</html>