forked from sl4ureano/reciclo-hacktudo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
meuPerfil.html
executable file
·327 lines (315 loc) · 17.5 KB
/
meuPerfil.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
<!DOCTYPE html>
<html lang="pt-br">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=0.9, shrink-to-fit=no">
<meta name="description" content="">
<meta name="author" content="Avud">
<link rel="icon" href="img/faviconLogo.ico">
<title>Reciclo</title>
<!-- Bootstrap CSS -->
<link href="css/bootstrap.css" rel="stylesheet">
<!-- Custom styles for this template -->
<link href="css/style.css" rel="stylesheet">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.2.0/css/all.css" integrity="sha384-hWVjflwFxL6sNzntih27bfxkr27PmbbK/iSvJ+a4+0owXq79v+lsFkW54bOGbiDQ" crossorigin="anonymous">
</head>
<body class="text-center">
<nav class="navbar-fixed-top navbar navbar-default " style="margin-bottom:0px !important;">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
<span class="sr-only"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="#"><img style="margin-top: -20px;" height="50px" class="img-reponsive" src="img/logo.png"></a>
</div>
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
<ul class="nav navbar-nav">
<li><a href="novoProduto.html">Anunciar Resíduos</a></li>
<li><a href="resgatarPremios.html">Resgatar Prêmios</a></li>
</ul>
<ul class="nav navbar-nav navbar-right" style="margin-right: 10px;">
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">Notificações (<b>2</b>)</a>
<ul class="dropdown-menu notify-drop">
<div class="notify-drop-title">
<div class="row">
<div class="col-md-6 col-sm-6 col-xs-6">Notificações (<b>2</b>)</div>
<div class="col-md-6 col-sm-6 col-xs-6 text-right"><a href="" class="rIcon allRead" data-tooltip="tooltip" data-placement="bottom" title="tümü okundu."><i class="fa fa-dot-circle-o"></i></a></div>
</div>
</div>
<!-- end notify title -->
<!-- notify content -->
<div class="drop-content">
<li>
<div class="col-md-3 col-sm-3 col-xs-3">
<div class="notify-img"><img src="http://placehold.it/45x45" alt=""></div>
</div>
<div class="col-md-9 col-sm-9 col-xs-9 pd-l0">
<a href="">Pessoa</a> enviou uma oferta. <a href="">no produto...</a> <a href="" class="rIcon"><i class="fa fa-dot-circle-o"></i></a>
<p>Lorem ipsum sit dolor amet consilium.</p>
<hr>
<p class="time">Ver mais</p>
</div>
</li>
<li>
<div class="col-md-3 col-sm-3 col-xs-3">
<div class="notify-img"><img src="http://placehold.it/45x45" alt=""></div>
</div>
<div class="col-md-9 col-sm-9 col-xs-9 pd-l0">
<a href="">Pessoa</a> enviou uma oferta. <a href="">no produto...</a> <a href="" class="rIcon"><i class="fa fa-dot-circle-o"></i></a>
<p>Lorem ipsum sit dolor amet consilium.</p>
<hr>
<p class="time">Ver mais</p>
</div>
</li>
<li>
<div class="col-md-3 col-sm-3 col-xs-3">
<div class="notify-img"><img src="http://placehold.it/45x45" alt=""></div>
</div>
<div class="col-md-9 col-sm-9 col-xs-9 pd-l0">
<a href="">Pessoa</a> enviou uma oferta. <a href="">no produto...</a> <a href="" class="rIcon"><i class="fa fa-dot-circle-o"></i></a>
<p>Lorem ipsum sit dolor amet consilium.</p>
<hr>
<p class="time">Ver mais</p>
</div>
</li>
<li>
<div class="col-md-3 col-sm-3 col-xs-3">
<div class="notify-img"><img src="http://placehold.it/45x45" alt=""></div>
</div>
<div class="col-md-9 col-sm-9 col-xs-9 pd-l0">
<a href="">Pessoa</a> enviou uma oferta. <a href="">no produto...</a> <a href="" class="rIcon"><i class="fa fa-dot-circle-o"></i></a>
<p>Lorem ipsum sit dolor amet consilium.</p>
<hr>
<p class="time">Ver mais</p>
</div>
</li>
<li>
<div class="col-md-3 col-sm-3 col-xs-3">
<div class="notify-img"><img src="http://placehold.it/45x45" alt=""></div>
</div>
<div class="col-md-9 col-sm-9 col-xs-9 pd-l0">
<a href="">Pessoa</a> enviou uma oferta. <a href="">no produto...</a> <a href="" class="rIcon"><i class="fa fa-dot-circle-o"></i></a>
<p>Lorem ipsum sit dolor amet consilium.</p>
<hr>
<p class="time">Ver mais</p>
</div>
</li>
</div>
<div class="notify-drop-footer text-center">
<a href=""><i class="fa fa-eye"></i> Ver todas</a>
</div>
</ul>
</li>
<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">Minha Conta <span class="caret"></span></a>
<ul class="dropdown-menu">
<li><a href="meuPerfil.html">Meu Perfil</a></li>
<li><a href="meusDados.html">Meus Dados</a></li>
<li role="separator" class="divider"></li>
<li><a href="" id="sair">Sair</a></li>
</ul>
</li>
</ul>
</ul>
</div>
</nav>
<div id="cadastroModal" class="modal fade" role="dialog">
<div class="modal-dialog">
<!-- Modal content-->
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal">×</button>
<h4 class="modal-title">Cadastro de Produto</h4>
</div>
<div class="modal-body">
<form class="form-signin" style="background-color: #fff;border-radius:15px;">
<img class="mb-4" src="#" alt="" width="72" height="72">
<input type="text" style="margin-bottom:5px;" class="form-control" placeholder="Qual nome do seu Produto?" required autofocus>
<input type="number" style="margin-bottom:5px;" class="form-control" placeholder="Qual a Quantidade do seu Produto?" required>
<input type="text" style="margin-bottom:5px;" class="form-control" placeholder="Qual seu número de telefone?" required>
<input type="text" style="margin-bottom:5px;" class="form-control" placeholder="Qual seu número de celular?" required>
<select class="form-control" required="">
<option disabled selected value="">Selecione o Tipo de Categoria</option>
</select>
<input type="text" style="margin-bottom:5px;" class="form-control" placeholder="Qual seu CEP?" required>
<input class="form-control" type="text" name="" placeholder="Qual nome da Rua" readonly="">
<input type="text" style="margin-bottom:5px;" class="form-control" readonly placeholder="Qual o nome Bairro?" required>
<input type="text" style="margin-bottom:-1px;" class="form-control" readonly placeholder="Qual o nome da Cidade?" required>
<input style="margin-bottom:-1px;" class="form-control" type="text" name="" placeholder="Qual o nome do seu Estado?" readonly="">
<textarea style="margin-bottom:-1px;" class="form-control" placeholder="Qual a Descrição do Produto" class="form-control" rows="3"></textarea>
<button style="margin-top: 10px;" class="btn btn-lg backgroundVerde btn-block" type="submit">Cadastrar</button>
</form>
</div>
</div>
</div>
</div>
<div class="container" id="fixMobile">
<div class="row">
<div class="col-md-4" id="boxAnuncios">
<div class="container-fluid">
<div class="row">
<div class="col-md-4" style="background-color: black; width: 100px; height: 100px; border-radius: 100px;">
<span id="sigla" style="font-size: 80px; color: #fff; font-weight: bold;" id="siglaUser">Y</span>
</div>
</div>
</div>
<div class="container-fluid">
<h4>Minha Conta</h4>
<div class="row">
<div class="col-md-12" id="userName">[NOME USUARIO]</div>
<div class="col-md-12" id="userEmail">[EMAIL USUARIO]</div>
<div class="col-md-12" ><span style="font-size: 15px;">Pontuação: <b id="pontos">345</b></span></div>
</div>
</div>
</div>
<div class="col-md-6" id="boxAnuncios">
<div class="col-md-12">
<h2>Meus últimos Descartes</h2>
<div id="anuncios">
<table class="table table-striped">
<thead>
<th>Produto</th>
<th>Publicado</th>
<th>Detalhes</th>
</thead>
<tbody>
<td><a href="" id="nomeResiduo">[NOME DO ANUNCIO]</a></td>
<td id="data_criacao">[DATA DO ANUNCIO]</td>
<td><a href="" id="verResiduo"><span class="glyphicon glyphicon-eye-open"></span></a></td>
</tbody>
</table>
</div>
</div>
</div>
<div class="container-fluid">
<div class="row">
<div class="col-md-12">
<div class="col-md-12">
<h2 style="padding-bottom:20px;">Conheça nosso clube de benefícios</h2>
</div>
</div>
</div>
</div>
</div>
<div class="col-md-12">
<div class="carousel slide" data-ride="carousel" data-type="multi" data-interval="3000" id="myCarousel">
<div class="carousel-inner">
<div class="item active">
<div class="col-md-2 col-sm-6 col-xs-12" style="width: 120px;"><a href="#"><img src="logos/flamengo.png" class="img-responsive"></a></div>
</div>
<div class="item">
<div class="col-md-2 col-sm-6 col-xs-12" style="width: 120px;"><a href="#"><img src="logos/tim.jpg" class="img-responsive"></a></div>
</div>
<div class="item">
<div class="col-md-2 col-sm-6 col-xs-12" style="width: 120px;"><a href="#"><img src="logos/netflix.png" class="img-responsive"></a></div>
</div>
<div class="item">
<div class="col-md-2 col-sm-6 col-xs-12" style="width: 120px;"><a href="#"><img src="logos/kinoplex.png" class="img-responsive"></a></div>
</div>
<div class="item">
<div class="col-md-2 col-sm-6 col-xs-12" style="width: 120px;"><a href="#"><img src="logos/spoleto.png" class="img-responsive"></a></div>
</div>
<div class="item">
<div class="col-md-2 col-sm-6 col-xs-12" style="width: 120px;"><a href="#"><img src="logos/claro.png" class="img-responsive"></a></div>
</div>
<div class="item">
<div class="col-md-2 col-sm-6 col-xs-12" style="width: 120px;"><a href="#"><img src="logos/fluminense.png" class="img-responsive"></a></div>
</div>
</div>
<a class="left carousel-control" href="#myCarousel" data-slide="prev"><i class="glyphicon glyphicon-chevron-left"></i></a>
<a class="right carousel-control" href="#myCarousel" data-slide="next"><i class="glyphicon glyphicon-chevron-right"></i></a>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- jQuery -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script type="text/javascript">
$.get("/hackingrio-olx-avud-hacking/api/ws.php?getAct=3", function(data, status){
response = data;
var json = response,
obj = JSON.parse(json);
$("#userEmail").text(obj.email);
$("#userName").text(obj.nome);
$("#pontos").text(obj.qnt_pontos);
var sigla = obj.nome;
$("#sigla").text(sigla.substring(0,1).toUpperCase())
});
$.get("/hackingrio-olx-avud-hacking/api/ws.php?getAct=5", function(data, status){
response = data;
var json2 = response,
obj2 = JSON.parse(json2);
if(Object.keys(obj2.length).length > 0){
$("#nomeResiduo").text(obj2[1].nome_r);
$("#data_criacao").text(obj2[1].data_criacao);
var a = document.getElementById('nomeResiduo'); //or grab it by tagname etc
a.href = 'produtoUser.html?nomeResiduo?='+obj2[1].id;
var b = document.getElementById('verResiduo'); //or grab it by tagname etc
b.href = 'produtoUser.html?nomeResiduo?='+obj2[1].id;
}else{
$("#anuncios").html('<p style="padding-top:10px;">Você ainda não reciclou nenhum item</p><button class="btn btn-primary">Anunciar resíduo</button>')
}
});
$(document).ready(function(){
$('.carousel[data-type="multi"] .item').each(function(){
var next = $(this).next();
if (!next.length) {
next = $(this).siblings(':first');
}
next.children(':first-child').clone().appendTo($(this));
for (var i=0;i<4;i++) {
next=next.next();
if (!next.length) {
next = $(this).siblings(':first');
}
next.children(':first-child').clone().appendTo($(this));
}
});
});
</script>
<style>
.carousel-control { width: 4%; }
.carousel-control.left,.carousel-control.right {margin-left:15px;background-image:none;}
@media (max-width: 567px) {
.carousel-inner .active.left { left: -10%; }
.carousel-inner .next { left: 10%; }
.carousel-inner .prev { left: -10%; }
.active > div { display:none; }
.active > div:first-child { display:block; }
}
@media (min-width: 567px) and (max-width: 592px ) {
.carousel-inner .active.left { left: -10%; }
.carousel-inner .next { left: 10%; }
.carousel-inner .prev { left: -10%; }
.active > div { display:none; }
.active > div:first-child { display:block; }
.active > div:first-child + div { display:block; }
}
@media (min-width: 592px ) {
.carousel-inner .active.left { left: -10.7%; }
.carousel-inner .next { left: 10.7%; }
.carousel-inner .prev { left: -10.7%; }
}
</style>
<script type="text/javascript">
$("#sair").click(function(){
$.get("/hackingrio-olx-avud-hacking/api/ws.php?getAct=2", function(data, status){
response = data;
var json = response;
obj = JSON.parse(json);
console.log(obj);
window.location.href ="login.html";
});
});
</script>
</body>
</html>
</body>
</html>