-
Notifications
You must be signed in to change notification settings - Fork 0
/
dados.php
639 lines (486 loc) · 19.6 KB
/
dados.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
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
<?php
include_once "conexao.php";
include_once "Usuario.php";
include_once "dadosSistema.php";
include_once "enviaNotificacaoDeAtraso.php";
include_once "verificaTempoSessao.php";
if(!isset($_SESSION)) session_start();
$conexao = conexao::getConexao();
if(!isset($_SESSION["usuario"])){
header("location: index.php");
}
$dados = $_SESSION["usuario"];
$nivelAcesso = $dados->getNivelAcesso();
//Função que coloca maskara nos inputs
function Mask($mask, $str){
$str = str_ireplace(" ", "", $str);
for($i = 0; $i < strlen($str); $i++){
$mask[strpos($mask,"#")] = $str[$i];
}
return $mask;
}
//Pesquisando os dados do usuário
$dadosPessoais = null;
$dadosExibicao = null;
$pegarCurso = true;
//Pesquisando alunos
$comando = $conexao->prepare("SELECT * FROM aluno AS a INNER JOIN contato_aluno AS c ON c.rm_aluno_contato = a.rm_aluno INNER JOIN endereco_aluno AS e ON e.rm_aluno_endereco = a.rm_aluno WHERE a.id_usuario_aluno = :id LIMIT 1");
$comando->bindValue(":id", $dados->getCodUsuario());
$comando->execute();
$dadosPessoais = $comando->fetchAll();
if(count($dadosPessoais) == 0){
//Pesquisando professores
$comando = $conexao->prepare("SELECT * FROM professor AS p INNER JOIN contato_professor AS c ON c.rm_professor_contato = p.rm_professor INNER JOIN endereco_professor AS e ON e.rm_professor_endereco = p.rm_professor INNER JOIN instituicao AS i ON i.id_instituicao = p.sede WHERE p.id_usuario_professor = :id LIMIT 1");
$comando->bindValue(":id", $dados->getCodUsuario());
$comando->execute();
$dadosPessoais = $comando->fetchAll();
if(count($dadosPessoais) == 0){
//Pesquisando funcionários
$comando = $conexao->prepare("SELECT * FROM funcionario AS f INNER JOIN contato_funcionario AS c ON f.cpf = c.cpf_funcionario INNER JOIN endereco_funcionario AS e ON e.cpf_funcionario_endereco = f.cpf WHERE id_usuario_funcionario = :id LIMIT 1");
$comando->bindValue(":id", $dados->getCodUsuario());
$comando->execute();
$dadosPessoais = $comando->fetchAll();
if(count($dadosPessoais) == 0){
header("location: Inicio.php");
}else{
$pegarCurso = false;
foreach($dadosPessoais as $valor){
$nome = htmlspecialchars($valor['nome']) . " " . htmlspecialchars($valor['sobrenome']);
$cpf = Mask("###.###.###-##", htmlspecialchars($valor['cpf']));
if(htmlspecialchars($valor['sexo']) == 'M'){
$sexo = "Masculino";
}else if(htmlspecialchars($valor['sexo']) == 'F'){
$sexo = "Feminino";
}else{
$sexo = "Personalizado";
}
$data = explode("-", htmlspecialchars($valor['data_cadastro']));
$data = $data[2] . "/" . $data[1] . "/" . $data[0];
$telefone = (strlen(htmlspecialchars($valor['telefone'])) > 0) ? Mask("(##)####-####", htmlspecialchars($valor['telefone'])) : "";
$celular = Mask("(##)#####-####", htmlspecialchars($valor['celular']));
$email = htmlspecialchars($valor['email']);
$cep = Mask("#####-###", htmlspecialchars($valor['cep']));
$logradouro = htmlspecialchars($valor['logradouro']);
$numero = htmlspecialchars($valor['numero']);
$bairro = htmlspecialchars($valor['bairro']);
$cidade = htmlspecialchars($valor['cidade']);
$complemento = htmlspecialchars($valor['complemento']);
$dadosExibicao = "<div class='dados'>
<div>
<h3>Dados Pessoais</h3>
</div>
<div>
<button onclick='abreMoldalSenha()'>Alterar Senha <i class='fas fa-lock'></i></button>
</div>
</div>
<div>
<h4>$nome</h4><br>
<p><strong>CPF:</strong> $cpf</p>
<p><strong>Sexo:</strong> $sexo</p>
<p><strong>Data de Cadastro:</strong> $data</p>
</div>
<br><hr><br>
<h3>Contato</h3>
<div>
<p><strong>Telefone:</strong> $telefone</p>
<p><strong>Celular:</strong> $celular</p>
<p><strong>E-Mail:</strong> $email</p>
</div>
<br><hr><br>
<h3>Endereço</h3>
<div>
<p><strong>CEP:</strong> $cep</p>
<p><strong>Logradouro:</strong> $logradouro</p>
<p><strong>Número:</strong> $numero</p>
<p><strong>Bairro:</strong> $bairro</p>
<p><strong>Cidade:</strong> $cidade</p>
<p><strong>Complemento:</strong> $complemento</p>
</div>
<br><hr><br>";
}
}
}else{
$pegarCurso = false;
foreach($dadosPessoais as $valor){
$rm = htmlspecialchars($valor['rm_professor']);
$nome = htmlspecialchars($valor['nome']) . " " . htmlspecialchars($valor['sobrenome']);
$cpf = Mask("###.###.###-##", htmlspecialchars($valor['cpf']));
if(htmlspecialchars($valor['sexo']) == 'M'){
$sexo = "Masculino";
}else if(htmlspecialchars($valor['sexo']) == 'F'){
$sexo = "Feminino";
}else{
$sexo = "Personalizado";
}
$data = explode("-", htmlspecialchars($valor['data_cadastro']));
$data = $data[2] . "/" . $data[1] . "/" . $data[0];
$sede = htmlspecialchars($valor['nome_instituicao']);
$telefone = (strlen(htmlspecialchars($valor['telefone'])) > 0) ? Mask("(##)####-####", htmlspecialchars($valor['telefone'])) : "";
$celular = Mask("(##)#####-####", htmlspecialchars($valor['celular']));
$email = htmlspecialchars($valor['email']);
$cep = Mask("#####-###", htmlspecialchars($valor['cep']));
$logradouro = htmlspecialchars($valor['logradouro']);
$numero = htmlspecialchars($valor['numero']);
$bairro = htmlspecialchars($valor['bairro']);
$cidade = htmlspecialchars($valor['cidade']);
$complemento = htmlspecialchars($valor['complemento']);
$dadosExibicao = "<div class='dados'>
<div>
<h3>Dados Pessoais</h3>
</div>
<div>
<button onclick='abreMoldalSenha()'>Alterar Senha <i class='fas fa-lock'></i></button>
</div>
</div>
<div>
<h4>$nome</h4><br>
<p><strong>RM:</strong> $rm</p>
<p><strong>CPF:</strong> $cpf</p>
<p><strong>Sexo:</strong> $sexo</p>
<p><strong>Data de Cadastro:</strong> $data</p>
<p><strong>Sede:</strong> $sede</p>
</div>
<br><hr><br>
<h3>Contato</h3>
<div>
<p><strong>Telefone:</strong> $telefone</p>
<p><strong>Celular:</strong> $celular</p>
<p><strong>E-Mail:</strong> $email</p>
</div>
<br><hr><br>
<h3>Endereço</h3>
<div>
<p><strong>CEP:</strong> $cep</p>
<p><strong>Logradouro:</strong> $logradouro</p>
<p><strong>Número:</strong> $numero</p>
<p><strong>Bairro:</strong> $bairro</p>
<p><strong>Cidade:</strong> $cidade</p>
<p><strong>Complemento:</strong> $complemento</p>
</div>
<br><hr><br>";
}
}
}else{
foreach($dadosPessoais as $valor){
$rm = htmlspecialchars($valor['rm_aluno']);
$nome = htmlspecialchars($valor['nome']) . " " . htmlspecialchars($valor['sobrenome']);
$cpf = Mask("###.###.###-##", htmlspecialchars($valor['cpf']));
if(htmlspecialchars($valor['sexo']) == 'M'){
$sexo = "Masculino";
}else if(htmlspecialchars($valor['sexo']) == 'F'){
$sexo = "Feminino";
}else{
$sexo = "Personalizado";
}
$data = explode("-", htmlspecialchars($valor['data_cadastro']));
$data = $data[2] . "/" . $data[1] . "/" . $data[0];
$telefone = (strlen(htmlspecialchars($valor['telefone'])) > 0) ? Mask("(##)####-####", htmlspecialchars($valor['telefone'])) : "";
$celular = Mask("(##)#####-####", htmlspecialchars($valor['celular']));
$email = htmlspecialchars($valor['email']);
$cep = Mask("#####-###", htmlspecialchars($valor['cep']));
$logradouro = htmlspecialchars($valor['logradouro']);
$numero = htmlspecialchars($valor['numero']);
$bairro = htmlspecialchars($valor['bairro']);
$cidade = htmlspecialchars($valor['cidade']);
$complemento = htmlspecialchars($valor['complemento']);
$dadosExibicao = "<div class='dados'>
<div>
<h3>Dados Pessoais</h3>
</div>
<div>
<button onclick='abreMoldalSenha()'>Alterar Senha <i class='fas fa-lock'></i></button>
</div>
</div>
<div>
<h4>$nome</h4><br>
<p><strong>RM:</strong> $rm</p>
<p><strong>CPF:</strong> $cpf</p>
<p><strong>Sexo:</strong> $sexo</p>
<p><strong>Data de Cadastro:</strong> $data</p>
</div>
<br><hr><br>
<h3>Contato</h3>
<div>
<p><strong>Telefone:</strong> $telefone</p>
<p><strong>Celular:</strong> $celular</p>
<p><strong>E-Mail:</strong> $email</p>
</div>
<br><hr><br>
<h3>Endereço</h3>
<div>
<p><strong>CEP:</strong> $cep</p>
<p><strong>Logradouro:</strong> $logradouro</p>
<p><strong>Número:</strong> $numero</p>
<p><strong>Bairro:</strong> $bairro</p>
<p><strong>Cidade:</strong> $cidade</p>
<p><strong>Complemento:</strong> $complemento</p>
</div>
<br><hr><br>";
}
}
//Pesquisando cursos
if($pegarCurso){
$comando = $conexao->prepare("SELECT c.nome_curso, c.modulo_serie, c.periodo, c.turma, i.nome_instituicao FROM curso AS c INNER JOIN curso_usuario as ca ON ca.curso_id_curso = c.id_curso INNER JOIN instituicao AS i ON i.id_instituicao = c.id_instituicao_curso WHERE ca.usuario_id_usuario = :id");
$comando->bindValue(":id", $dados->getCodUsuario());
$comando->execute();
$dadosPessoais = $comando->fetchAll();
$dadosExibicao .= "<h3>Curso(s)</h3>
<div>
<ul>";
foreach($dadosPessoais as $valor){
$nomeCurso = htmlspecialchars($valor[0]);
$modulo_serie = htmlspecialchars($valor[1]);
$periodo = null;
if (htmlspecialchars($valor[2]) == "M") $periodo = "Manhã";
else if (htmlspecialchars($valor[2]) == "T") $periodo = "Tarde";
else if (htmlspecialchars($valor[2]) == "N") $periodo = "Noite";
else $periodo = "Integral";
$turma = htmlspecialchars($valor[3]);
$nome_instituicao = htmlspecialchars($valor[4]);
$dadosExibicao .= "<li>$nomeCurso - $modulo_serie º Módulo/Série - Turma: $turma - $periodo - $nome_instituicao</li><br>";
}
$dadosExibicao .= "</ul></div>";
}else{
$comando = $conexao->prepare("SELECT i.nome_instituicao FROM instituicao AS i INNER JOIN instituicao_usuario AS iu ON iu.id_instituicao = i.id_instituicao WHERE iu.id_usuario = :id");
$comando->bindValue(":id", $dados->getCodUsuario());
$comando->execute();
$dadosPessoais = $comando->fetchAll();
$dadosExibicao .= "<h3>Instituição(ões)</h3>
<div>
<ul>";
foreach($dadosPessoais as $valor){
$nomeI = htmlspecialchars($valor[0]);
$dadosExibicao .= "<li>$nomeI</li><br>";
}
$dadosExibicao .= "</ul></div>";
}
?>
<!DOCTYPE html>
<html lang="pt-br">
<head>
<title><?php echo Info::$nomeSistema ?> - Dados Pessoias</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<script src="./scripts/jquery.min.js"></script>
<script type="text/javascript" src="./scripts/Menu.js"></script>
<script type="text/javascript" src="./scripts/audio.js"></script>
<script type="text/javascript" src="./scripts/moldalMsg.js"></script>
<script type="text/javascript" src="./scripts/dados.js"></script>
<link rel="stylesheet" type="text/css" href="./css/fontawesome-free-5.12.1-web/css/all.min.css">
<link rel="stylesheet" type="text/css" href="./css/fontawesome-free-5.12.1-web/css/brands.min.css">
<link rel="stylesheet" type="text/css" href="./css/fontawesome-free-5.12.1-web/css/solid.min.css">
<link rel="stylesheet" type="text/css" href="./css/fontawesome-free-5.12.1-web/css/svg-with-js.min.css">
<link rel="stylesheet" type="text/css" href="./css/fontawesome-free-5.12.1-web/css/regular.min.css">
<link rel="stylesheet" type="text/css" href="./css/fontawesome-free-5.12.1-web/css/v4-shims.min.css">
<link rel="shortcut icon" type="image/jpg" <?php echo "href='".Info::$logoSistema."'" ?> sizes="50x50">
<link rel="stylesheet" type="text/css" href="./css/config.css">
<link rel="stylesheet" type="text/css" href="./css/telas.css">
<link rel="stylesheet" type="text/css" href="./css/dados.css">
<style type="text/css">
#principal .ferramentas{
display: grid;
grid-template-columns: 1fr;
}
.MoldalOp .telas{
height: 400px;
}
hr{
border: 1px solid #2e2b2b;
}
@media(max-width: 380px){
.MoldalOp .telas{
height: 380px;
}
.MoldalOp .telas .selectI form{
margin: 10px;
}
.MoldalOp .telas .selectI form input[type=password]{
width: 90%;
}
}
</style>
</head>
<body>
<section id='MoldalAviso'></section>
<section id="moldalLoading">
<div></div>
</section>
<section id="MoldalLivros">
<div class="livrosM">
<button onclick="fechaMoldalLivroPesquisa()">×</button>
<input type="text" placeholder="Pesquisar livro..." class="pesqLivro" onkeyup="copiaTexto(this)">
<select id="tipoPesquisaLivro" onchange="defineTipoPesquisa()">
<option value="T">Todos</option>
<option value="F">Livros Fisicos</option>
<option value="P">Livros em PDF</option>
</select>
<section id="dadosPesquisados">
<div class="loading"></div>
</section>
</div>
</section>
<!--Moldal de senha-->
<section class="MoldalOp">
<section class="telas">
<div class="fechaMoldalOp" onclick="fechaMoldalSenha()">×</div>
<header>
<div>
<img <?php echo "src='". Info::$logoSistema ."'" ?>>
<h5><?php echo Info::$nomeSistema; ?> - Senha</h5>
</div>
<div>
<?php
echo "<img title='". Info::$nomeEtec ."' src='". Info::$logoEtec ."'>
<img title='". Info::$nomeCentro ."' src='". Info::$logoCentro ."'>";
?>
</div>
</header>
<section class="selectI" style="padding: 15px;">
<form action="javascript: void(0)">
<input type="password" name="senha" placeholder="Senha" class="inputSenha" onkeyup="limpaCampoSenha()">
<br><br><br>
<input type="password" name="novaSenha" placeholder="Nova senha" class="inputSenha" onkeyup="limpaCampoSenha()">
<br><br><br>
<input type="password" name="repetirSenha" placeholder="Repetir nova senha" class="inputSenha" onkeyup="limpaCampoSenha()">
<br><br><span class="spanSenha">Repita sua nova senha</span><br><br>
<div>
<input type="submit" value="Alterar Senha" onclick="alterarSenha()">
<div>
</form>
</section>
</section>
</section>
<nav id="menu">
<ul>
<li id="mn"><span onclick="abrirMenu()">☰</span></li>
<li id="barraPesquisa">
<input type="text" name="barraPesquisa" class="barra" id="barra" placeholder="Pesquisar livro..." onkeyup="copiaTexto(this)">
<div title="Pesquisar" class="textPesq" onclick="pesquisarLivroI()"><i class="fas fa-search"></i></div>
<div title="Pesquisar por voz" id="microfonePesq"><i class="fas fa-microphone"></i></div>
</li>
<li id="imgInicial">
<?php
echo "<a href='". Info::$siteEtec ."' target='_blank'><img title='". Info::$nomeEtec ."' src='". Info::$logoEtec ."'></a>
<a href='Inicio.php'><img title='". Info::$nomeSistema ."' src='". Info::$logoSistema ."'></a>
<a href='". Info::$siteCentro ."' target='_blank'><img title='". Info::$nomeCentro ."' src='". Info::$logoCentro ."'></a>";
?>
</li>
</ul>
</nav>
<nav id="menu2">
<div>
<span title="Fechar Menu" onclick="fechaMenu()">×</span>
<?php
echo "<img src='data:image/jpg;base64,{$dados->getImg()}'>";
echo "<p>{$dados->getNome()} {$dados->getSobrenome()}</p>";
?>
</div>
<ul>
<?php
if($nivelAcesso == "A"){
echo "<a href='Inicio.php'><li><i class='fas fa-home'></i> Inicio</li></a>
<a href='dados.php'><li id='MarcadoItem'><i class='fas fa-user'></i> Dados Pessoais</li></a>
<a href='meuslivros.php'><li><i class='fas fa-book-open'></i> Meus Livros</li></a>
<a href='minhalista.php'><li><i class='fas fa-list'></i> Minha Lista</li></a>
<a href='livros.php'><li><i class='fas fa-book'></i> Livros</li></a>
<a href='alunos.php'><li><i class='fas fa-users'></i> Alunos</li></a>
<a href='professores.php'><li><i class='fas fa-user-tie'></i> Professores</li></a>
<a href='funcionarios.php'><li><i class='fas fa-user-circle'></i> Funcionários</li></a>
<a href='instituicoes.php'><li><i class='fas fa-school'></i> Cursos da Instituição</li></a>
<a href='alocacoes.php'><li><i class='fas fa-location-arrow'></i> Alocações</li></a>
<a href='sair.php'><li><i class='fas fa-sign-out-alt'></i> Sair</li></a>";
}else{
echo "<a href='Inicio.php'><li><i class='fas fa-home'></i> Inicio</li></a>
<a href='dados.php'><li id='MarcadoItem'><i class='fas fa-user'></i> Dados Pessoais</li></a>
<a href='meuslivros.php'><li><i class='fas fa-book-open'></i> Meus Livros</li></a>
<a href='minhalista.php'><li><i class='fas fa-list'></i> Minha Lista</li></a>
<a href='sair.php'><li><i class='fas fa-sign-out-alt'></i> Sair</li></a>";
}
?>
</ul><br><br>
</nav>
<!--Moldal que exibirá o microfone-->
<section id="MoldalVoz">
<div class="containerMicro">
<div><i class="fas fa-microphone"></i></div>
<h4>Estou te ouvindo...</h4>
</div>
</section>
<!--Moldal que exibirá as mensagens do usuário-->
<section class="MoldalMensagens">
<section class="telas">
<div class="fechaMoldalMsg" onclick="fechaMoldalMsg(0)">×</div>
<header>
<div>
<img <?php echo "src='". Info::$logoSistema ."'" ?>>
<h5><?php echo Info::$nomeSistema; ?> - Mensagens</h5>
</div>
<div>
<?php
echo "<img title='". Info::$nomeEtec ."' src='". Info::$logoEtec ."'>
<img title='". Info::$nomeCentro ."' src='". Info::$logoCentro ."'>";
?>
</div>
</header>
<section class="tabelaMsg">
<table>
<thead>
<tr>
<th>Data</th>
<th>Titulo</th>
<th>Situação</th>
<th class="columnOp">Opções</th>
</tr>
</thead>
<tbody id='tbodyMsgAviso'>
<tr id="trMsgLoading">
<td colspan="4"><button class="loading"></button></td>
</tr>
</tbody>
</table>
</section>
</section>
</section>
<section class="MoldalMensagens">
<section class="telas" id="MoldalMensagensView">
<div class="fechaMoldalMsg" onclick="fechaMoldalMsg(1)">×</div>
<header>
<div>
<img <?php echo "src='". Info::$logoSistema ."'" ?>>
<h5><?php echo Info::$nomeSistema; ?> - Mensagens</h5>
</div>
<div>
<?php
echo "<img title='". Info::$nomeEtec ."' src='". Info::$logoEtec ."'>
<img title='". Info::$nomeCentro ."' src='". Info::$logoCentro ."'>";
?>
</div>
</header>
<section class="tabelaMsg" id="itensMsg"></section>
</section>
</section>
<!--Botão para ajuda-->
<a href="ajuda.php#Dados"><div id="btnhelp" title="Ajuda"><i class="fas fa-question"></i></div></a>
<!--Sino de notificação-->
<div id="sinoNotificacao" title="Notificações">
<?php
$cod = $dados->getCodUsuario();
$comando = $conexao->prepare("SELECT * FROM avisos WHERE id_usuario_avisos = :id AND situacao = 'N'");
$comando->bindParam(":id", $cod);
$comando->execute();
$dadoMsg = $comando->fetchAll();
if(count($dadoMsg) > 0 && count($dadoMsg) <= 99){
echo "<div>".count($dadoMsg)."</div>";
}else if(count($dadoMsg) > 99){
echo "<div>+99</div>";
}
?>
<i class="fas fa-bell"></i>
</div>
<section id="principal">
<section class="containerDados">
<?php echo $dadosExibicao; ?>
</section>
</section>
</body>
</html>