-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathprojectInfo.php
728 lines (651 loc) · 37.4 KB
/
projectInfo.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
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
<?php
require "back/validacao.php";
include_once('back/configlocal.php');
$logado = $_SESSION['nome'];
$arrayOds = null;
$arrayLinks = null;
$arrayArquivos = null;
$arrayCol = null;
$codUser = null;
$imgUser = null;
if(isset($_GET['projeto']) && isset($_GET['user'])){
$projetoCodigo = $_GET['projeto'];
$userCodigo = $_GET['user'];
$queryBusca=mysqli_query($conexao, "SELECT projetos.*, usuario_pessoa.nome AS nomeUser FROM usuario_pessoa INNER JOIN projetos ON usuario_pessoa.codigo = projetos.cod_usuario WHERE usuario_pessoa.codigo = $userCodigo AND projetos.codigo = $projetoCodigo");
$queryBuscaImagem=mysqli_query($conexao, "SELECT imagens_pessoa.path FROM usuario_pessoa INNER JOIN imagens_pessoa ON usuario_pessoa.codigo = imagens_pessoa.cod_pessoa WHERE imagens_pessoa.cod_pessoa = $userCodigo");
$sqlOds = "SELECT ods_projetos.ods_tipo FROM projetos INNER JOIN ods_projetos ON ods_projetos.codigo_projeto = projetos.codigo WHERE ods_projetos.codigo_projeto = $projetoCodigo";
$result = mysqli_query($conexao, $sqlOds);
$sqlColaboradores = "SELECT colaboradores_projeto.nome FROM projetos INNER JOIN colaboradores_projeto ON colaboradores_projeto.cod_projeto = projetos.codigo WHERE colaboradores_projeto.cod_projeto = $projetoCodigo";
$resultColaboradores = mysqli_query($conexao, $sqlColaboradores);
$sqlArquivos = "SELECT arquivos_projetos.path FROM projetos INNER JOIN arquivos_projetos ON arquivos_projetos.cod_projetos = projetos.codigo WHERE arquivos_projetos.cod_projetos = $projetoCodigo AND (arquivos_projetos.path LIKE '%.png%' OR arquivos_projetos.path LIKE '%.jpg%')";
$resultArquivos = mysqli_query($conexao, $sqlArquivos);
$sqlArquivosPdf = "SELECT arquivos_projetos.* FROM projetos INNER JOIN arquivos_projetos ON arquivos_projetos.cod_projetos = projetos.codigo WHERE arquivos_projetos.cod_projetos = $projetoCodigo AND (arquivos_projetos.path LIKE '%.pdf%')";
$resultArquivosPdf = mysqli_query($conexao, $sqlArquivosPdf);
$sqlLinks = "SELECT links_projeto.link FROM projetos INNER JOIN links_projeto ON links_projeto.codigo_projeto = projetos.codigo WHERE links_projeto.codigo_projeto = $projetoCodigo";
$resultLinks = mysqli_query($conexao, $sqlLinks);
while($rowTemp = mysqli_fetch_assoc($result)){
$arrayOds[] = $rowTemp['ods_tipo'];
}
while($rowCol = mysqli_fetch_assoc($resultColaboradores)){
$arrayCol[] = $rowCol['nome'];
}
while($rowLinks = mysqli_fetch_assoc($resultLinks)){
$arrayLinks[] = $rowLinks['link'];
}
while($rowArquivos = mysqli_fetch_assoc($resultArquivos)){
$arrayArquivos[] = $rowArquivos['path'];
}
while($rowArquivosPdf = mysqli_fetch_object($resultArquivosPdf)){
$pdf[] = $rowArquivosPdf->nome;
$path[] = $rowArquivosPdf->path;
$date[] = $rowArquivosPdf->data_upload;
}
$row = $queryBusca -> fetch_assoc();
$rowImagem = $queryBuscaImagem -> fetch_assoc();
} else {
header("location: listProjects-ods.php");
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Meus Projetos</title>
<link rel="shortcut icon" href="image/Logo.svg" type="image/x-icon">
<!-- Bootstrap , fonts & icons -->
<link rel="stylesheet" href="css/bootstrap.css">
<link rel="stylesheet" href="fonts/icon-font/css/style.css">
<link rel="stylesheet" href="fonts/typography-font/typo.css">
<link rel="stylesheet" href="fonts/fontawesome-5/css/all.css">
<!-- Plugin'stylesheets -->
<link rel="stylesheet" href="css/projectsods.css">
<link rel="stylesheet" href="plugins/aos/aos.min.css">
<link rel="stylesheet" href="plugins/fancybox/jquery.fancybox.min.css">
<link rel="stylesheet" href="plugins/nice-select/nice-select.min.css">
<link rel="stylesheet" href="plugins/slick/slick.min.css">
<link rel="stylesheet" href="plugins/ui-range-slider/jquery-ui.css">
<!-- Vendor stylesheets -->
<link rel="stylesheet" href="css/main.css">
<!-- Custom stylesheet -->
</head>
<body>
<div class="site-wrapper overflow-hidden ">
<!-- Header start -->
<!-- Header Area -->
<header class="site-header site-header--menu-right dynamic-sticky-bg py-7 py-lg-0 site-header--absolute site-header--sticky">
<div class="container">
<nav class="navbar site-navbar offcanvas-active navbar-expand-lg px-0 py-0">
<!-- Brand Logo-->
<div class="brand-logo">
<a href="./index.html">
<!-- light version logo (logo must be black)-->
<img src="image/logo-main-black.png" alt="" class="light-version-logo default-logo">
<!-- Dark version logo (logo must be White)-->
</a>
</div>
<div class="collapse navbar-collapse" id="mobile-menu">
<div class="navbar-nav-wrapper">
<ul class="navbar-nav main-menu">
<li class="nav-item dropdown">
<a class="nav-link" href="Projects-ods.php" role="button" aria-haspopup="true" aria-expanded="false">Projetos ODS </a>
</li>
<li class="nav-item dropdown active">
<a class="nav-link " href="#features" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">• Meus Projetos</a>
<li class="drop-menu-item dropdown">
</li>
<li class="nav-item">
<a class="nav-link" href="Projects-ods.php">Agenda 2030</a>
</li>
<li class=""nav-item dropdown active>
<a class="nav-link dropdown-toggle gr-toggle-arrow" id="navbarDropdown" href="#features" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<?php
echo "<p><u>$logado</u></p>";
?>
<i class="icon icon-small-down"></i></a>
<ul class="gr-menu-dropdown dropdown-menu" aria-labelledby="navbarDropdown">
<li class="drop-menu-item">
<a href="#">
Cofiguração
</a>
</li>
<li class="drop-menu-item" style="color: red;">
<a href="#">
SAIR
</a>
</li>
</ul>
</li>
</a>
</li>
<li class=
button class="d-block d-lg-none offcanvas-btn-close focus-reset" type="button" data-toggle="collapse" data-target="#mobile-menu" aria-controls="mobile-menu" aria-expanded="true" aria-label="Toggle navigation">
</button>
</div>
<div class="header-btn-devider ml-auto ml-lg-5 pl-2 d-none d-xs-flex align-items-center">
<div>
</div>
<div>
<div class="dropdown show-gr-dropdown py-5">
<a class="proile media ml-7 flex-y-center" href="#" role="button" id="dropdownMenuLink" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<div class="circle-40">
</div>
<i class="fas fa-chevron-down heading-default-color ml-6"></i>
</a>
<div class="dropdown-menu gr-menu-dropdown dropdown-right border-0 border-width-2 py-2 w-auto bg-default" aria-labelledby="dropdownMenuLink">
<a class="dropdown-item py-2 font-size-3 font-weight-semibold line-height-1p2 text-uppercase" href="notificacoesParceiros.php">MINHAS PARCERIAS </a>
<a class="dropdown-item py-2 font-size-3 font-weight-semibold line-height-1p2 text-uppercase" href="candidate-profile-main.html"> </a>
<a style="color: red;" class="dropdown-item py-2 text-red font-size-3 font-weight-semibold line-height-1p2 text-uppercase" href="back/sair.php">Sair</a>
</div>
</ul>
</div>
</div>
</div>
</div>
<!-- Mobile Menu Hamburger-->
<button class="navbar-toggler btn-close-off-canvas hamburger-icon border-0" type="button" data-toggle="collapse" data-target="#mobile-menu" aria-controls="mobile-menu" aria-expanded="false" aria-label="Toggle navigation">
<!-- <i class="icon icon-simple-remove icon-close"></i> -->
<span class="hamburger hamburger--squeeze js-hamburger">
<span class="hamburger-box">
<span class="hamburger-inner"></span>
</span>
</span>
</button>
<!--/.Mobile Menu Hamburger Ends-->
</nav>
</div>
</header>
<!-- navbar- -->
<!-- Brand1Section Area -->
<!-- category Area -->
<!-- Category Area -->
<br><br>
<div class="pt-11 pt-lg-26 pb-lg-10" data-aos="fade-left" data-aos-duration="800" data-aos-delay="400" data-aos-once="true">
<div class="container">
<!-- Section Top -->
<!-- Main Content Start -->
<!--<img src="image/Novo Projeto (2).png" class="bricon font-size-4 font-weight-bold pr-10">Projetos ODS > Erradicação da pobreza <b>> Informações</b></p>-->
<div class="border border-color-2 rounded-4 pt-7 pb-7 mb-9 bg-white" >
<!-- Main Body ODS
<img
style="width: 100px; right: 100px; margin-left: 10px;margin-right: 10px; " src="ODS/1.png"></i>
<img
style="width: 100px; right: 100px; margin-left: 10px;margin-right: 10px; " src="ODS/2.png"></i>
</div>
Main ODS -->
<!-- Excerpt Start -->
<?php if($row['tipo_parceria'] != null){ ?>
<div class="pr-xl-0 pr-xxl-14 p-5 px-xs-12 pt-7 pb-5">
<h4 class="font-size-6 mb-7 mt-5 text-black-2 font-weight-semibold"><b>Preciso de parceria <?php echo $row['tipo_parceria'] ?></b></h4>
<div class="col-md-12">
<div class="row">
<p class="font-size-4 mb-8 col-md-8"><?php echo $row['descricao_parceria'] ?></p>
<?php if($logado != $row['nomeUser']){ ?>
<input type="button" data-toggle="modal" data-target="#modalParceria" class="btn btn-dark col-md-4" value="Quero fazer parceria">
<?php } ?>
</div>
</div>
</div>
<?php } else { ?>
<div class="col-md-12">
<div class="row pr-xl-0 pr-xxl-14 p-5 px-xs-12 pt-7 pb-5">
<h4 class="font-size-6 mb-7 mt-5 text-black-2 font-weight-semibold"><b>Não preciso de parceria.</b></h4>
</div>
</div><?php } ?>
<!-- Excerpt End -->
<!-- back Button End -->
<div class="row">
<!-- Left Sidebar Start -->
<div class="col-12 col-xxl-3 col-lg-4 col-md-5 mb-11 mb-lg-0">
<div class="pl-lg-5">
<!-- Top Start -->
<div class="bg-white shadow-9 rounded-4">
<div class="px-5 py-11 text-center border-bottom border-mercury">
<a class="mb-4" href="#"><img class="circle-54" src="<?php echo $rowImagem['path'] ?>" alt=""></a>
<h4 class="mb-0"><a class="text-black-2 font-size-6 font-weight-semibold" href="#"><?php echo $row['nomeUser'] ?></a></h4>
<!-- Top End
<div class="icon-link d-flex align-items-center justify-content-center flex-wrap">
<a class="text-smoke circle-32 bg-concrete mr-5 hover-bg-green" href="#"><i class="fab fa-linkedin-in"></i></a>
<a class="text-smoke circle-32 bg-concrete mr-5 hover-bg-green" href="#"><i class="fab fa-facebook-f"></i></a>
<a class="text-smoke circle-32 bg-concrete mr-5 hover-bg-green" href="#"><i class="fab fa-twitter"></i></a>
</div>-->
</div>
</div>
</div>
</div>
<!-- Left Sidebar End -->
<!-- Middle Content -->
<div class="col-12 col-xxl-6 col-lg-8 col-md-7 order-2 order-xl-1">
<div class="bg-white rounded-4 shadow-9">
<!-- Tab Section Start -->
<ul class="nav border-bottom border-mercury pl-12" id="myTab" role="tablist">
<li class="tab-menu-items nav-item pr-12">
<a class="active text-uppercase font-size-3 font-weight-bold text-default-color py-3" id="home-tab" data-toggle="tab" href="#home" role="tab" aria-controls="home" aria-selected="true">DESCRIÇÃO</a>
</li>
<?php if($logado != $row['nomeUser']){ ?>
<li class="tab-menu-items nav-item pr-12">
<a class="text-uppercase font-size-3 font-weight-bold text-default-color py-3" id="profile-tab" data-toggle="tab" href="#profile" role="tab" aria-controls="profile" aria-selected="false">CONTATO</a>
</li>
<?php } ?>
</ul>
<!-- Tab Content -->
<div class="tab-content" id="myTabContent">
<div class="tab-pane fade show active" id="home" role="tabpanel" aria-labelledby="home-tab">
<!-- Excerpt Start -->
<div class="pr-xl-0 pr-xxl-14 p-5 px-xs-12 pt-7 pb-5">
<!-- Single Problema -->
<div class="w-100">
<div class="d-flex align-items-center pr-11 mb-9 flex-wrap flex-sm-nowrap">
<div class="w-100 mt-n2">
<a><img class="circle-85" src="<?php echo $row['imagem'] ?>" alt=""></a>
<h3 class="mb-0">
<a class="font-size-6 text-black-2 font-weight-semibold"><?php echo $row['nome'] ?></a>
<a class="font-size-4 text-gray mr-5" style="float: right;"><b>Status:</b> <?php echo $row['status'] ?></a>
</h3>
<div class="align-items-right justify-content-md-between flex-wrap" style="word-wrap: break-word;">
<b>Descrição do Projeto: </b><?php echo $row['descricao_projeto'] ?>
</div>
</div>
</div>
</div>
</div>
<!-- Excerpt End -->
<!-- Skills -->
<div class="border-top pr-xl-0 pr-xxl-14 p-5 pl-xs-12 pt-7 pb-5">
<h4 class="font-size-6 mb-7 mt-5 text-black-2 font-weight-semibold">ODS</h4>
<ul class="list-unstyled d-flex align-items-center flex-wrap">
<li>
<?php if(in_array(1, $arrayOds)){
echo "<a href='https://odsbrasil.gov.br/objetivo/objetivo?n=1' ><img style='width: 100px; right: 100px; margin: 20px; ' src='ODS/1.png'></i></a>";
} ?>
</li>
<li>
<?php if(in_array(2, $arrayOds)){
echo "<a href='https://odsbrasil.gov.br/objetivo/objetivo?n=2' ><img style='width: 100px; right: 100px; margin: 20px; ' src='ODS/2.png'></i></a>";
} ?>
</li>
<li>
<?php if(in_array(3, $arrayOds)){
echo "<a href='https://odsbrasil.gov.br/objetivo/objetivo?n=3' ><img style='width: 100px; right: 100px; margin: 20px; ' src='ODS/3.png'></i></a>";
} ?>
</li>
<li>
<?php if(in_array(4, $arrayOds)){
echo "<a href='https://odsbrasil.gov.br/objetivo/objetivo?n=4' ><img style='width: 100px; right: 100px; margin: 20px; ' src='ODS/4.png'></i></a>";
} ?>
</li>
<li>
<?php if(in_array(5, $arrayOds)){
echo "<a href='https://odsbrasil.gov.br/objetivo/objetivo?n=5' ><img style='width: 100px; right: 100px; margin: 20px; ' src='ODS/5.png'></i></a>";
} ?>
</li>
<li>
<?php if(in_array(6, $arrayOds)){
echo "<a href='https://odsbrasil.gov.br/objetivo/objetivo?n=6' ><img style='width: 100px; right: 100px; margin: 20px; ' src='ODS/6.png'></i></a>";
} ?>
</li>
<li>
<?php if(in_array(7, $arrayOds)){
echo "<a href='https://odsbrasil.gov.br/objetivo/objetivo?n=7' ><img style='width: 100px; right: 100px; margin: 20px; ' src='ODS/7.png'></i></a>";
} ?>
</li>
<li>
<?php if(in_array(8, $arrayOds)){
echo "<a href='https://odsbrasil.gov.br/objetivo/objetivo?n=8' ><img style='width: 100px; right: 100px; margin: 20px; ' src='ODS/8.png'></i></a>";
} ?>
</li>
<li>
<?php if(in_array(9, $arrayOds)){
echo "<a href='https://odsbrasil.gov.br/objetivo/objetivo?n=9' ><img style='width: 100px; right: 100px; margin: 20px; ' src='ODS/9.png'></i></a>";
} ?>
</li>
<li>
<?php if(in_array(10, $arrayOds)){
echo "<a href='https://odsbrasil.gov.br/objetivo/objetivo?n=10' ><img style='width: 100px; right: 100px; margin: 20px; ' src='ODS/10.png'></i></a>";
} ?>
</li>
<li>
<?php if(in_array(11, $arrayOds)){
echo "<a href='https://odsbrasil.gov.br/objetivo/objetivo?n=11' ><img style='width: 100px; right: 100px; margin: 20px; ' src='ODS/11.png'></i></a>";
} ?>
</li>
<li>
<?php if(in_array(12, $arrayOds)){
echo "<a href='https://odsbrasil.gov.br/objetivo/objetivo?n=12' ><img style='width: 100px; right: 100px; margin: 20px; ' src='ODS/12.png'></i></a>";
} ?>
</li>
<li>
<?php if(in_array(13, $arrayOds)){
echo "<a href='https://odsbrasil.gov.br/objetivo/objetivo?n=13' ><img style='width: 100px; right: 100px; margin: 20px; ' src='ODS/13.png'></i></a>";
} ?>
</li>
<li>
<?php if(in_array(14, $arrayOds)){
echo "<a href='https://odsbrasil.gov.br/objetivo/objetivo?n=14' ><img style='width: 100px; right: 100px; margin: 20px; ' src='ODS/14.png'></i></a>";
} ?>
</li>
<li>
<?php if(in_array(15, $arrayOds)){
echo "<a href='https://odsbrasil.gov.br/objetivo/objetivo?n=15' ><img style='width: 100px; right: 100px; margin: 20px; ' src='ODS/15.png'></i></a>";
} ?>
</li>
<li>
<?php if(in_array(16, $arrayOds)){
echo "<a href='https://odsbrasil.gov.br/objetivo/objetivo?n=16' ><img style='width: 100px; right: 100px; margin: 20px; ' src='ODS/16.png'></i></a>";
} ?>
</li>
<li>
<?php if(in_array(17, $arrayOds)){
echo "<a href='https://odsbrasil.gov.br/objetivo/objetivo?n=17' ><img style='width: 100px; right: 100px; margin: 20px; ' src='ODS/17.png'></i></a>";
} ?>
</li>
</ul>
</div>
<!-- Skills End -->
<!-- Skills -->
<div class="border-top pr-xl-0 pr-xxl-14 p-5 pl-xs-12 pt-7 pb-5">
<h4 class="font-size-6 mb-7 mt-5 text-black-2 font-weight-semibold">Colaboradores</h4>
<ul class="list-unstyled d-flex align-items-center flex-wrap">
<?php if(!empty($arrayCol)) foreach($arrayCol as $value){
$queryCodUser = mysqli_query($conexao, "SELECT codigo FROM usuario_pessoa WHERE nome LIKE '$value'");
while($rowCodUser = mysqli_fetch_assoc($queryCodUser)){
$codUser[] = $rowCodUser['codigo'];
}
$codStr = implode(',', $codUser);
$queryImgCol = mysqli_query($conexao, "SELECT imagens_pessoa.path FROM usuario_pessoa INNER JOIN imagens_pessoa ON usuario_pessoa.codigo = imagens_pessoa.cod_pessoa WHERE imagens_pessoa.cod_pessoa = $codStr");
while($rowImg = mysqli_fetch_assoc($queryImgCol)){
$imgUser[] = $rowImg['path'];
}
$imgStr = implode(',', $imgUser);
echo "
<li>
<img class='circle-54' style='margin-left: 40px;margin-right: 40px; align-items: center;' src='$imgStr'></i>
<p style='margin-left: 25px;margin-right: 25px; align-items: center;'>$value</p>
</li>";
} else echo "<a class='font-size-3 text-black-2 font-weight-semibold'>Não há Colaboradores neste projeto.</a>"?>
</ul>
</div>
<!-- Skills End -->
<!-- Card Section Start -->
<div class="border-top p-5 pl-xs-12 pt-7 pb-5">
<!-- Single Problema -->
<div class="w-100">
<div class="d-flex align-items-center pr-11 mb-9 flex-wrap flex-sm-nowrap">
<div class="w-100 mt-n2">
<h3 class="mb-0">
<a class="font-size-6 text-black-2 font-weight-semibold">Problema</a>
</h3>
<div class="align-items-right justify-content-md-between flex-wrap" style="word-wrap: break-word;">
<?php echo $row['problema'] ?>
</div>
</div>
</div>
</div>
<!-- Single Card End -->
<!-- Single Objetivo -->
<div class="w-100">
<div class="d-flex align-items-center pr-11 mb-9 flex-wrap flex-sm-nowrap">
<div class="w-100 mt-n2">
<h3 class="mb-0">
<a class="font-size-6 text-black-2 font-weight-semibold" >Objetivo</a>
</h3>
<div class="align-items-right justify-content-md-between flex-wrap" style="word-wrap: break-word;">
<?php echo $row['objetivo'] ?>
</div>
</div>
</div>
</div>
<!-- Single Card End -->
<!-- Single Problema -->
<div class="w-100">
<div class="d-flex align-items-center pr-11 mb-9 flex-wrap flex-sm-nowrap">
<div class="w-100 mt-n2">
<h3 class="mb-0">
<a class="font-size-6 text-black-2 font-weight-semibold" >Resultados Esperados</a>
</h3>
<div class="align-items-right justify-content-md-between flex-wrap" style="word-wrap: break-word;">
<?php echo $row['expectativa'] ?>
</div>
</div>
</div>
</div>
<!-- Single Card End -->
<!-- Single publico alvo -->
<div class="w-100">
<div class="d-flex align-items-center pr-11 mb-9 flex-wrap flex-sm-nowrap">
<div class="w-100 mt-n2">
<h3 class="mb-0">
<a class="font-size-6 text-black-2 font-weight-semibold" >Público Alvo</a>
</h3>
<div class="align-items-right justify-content-md-between flex-wrap" style="word-wrap: break-word;">
<?php echo $row['publico_alvo'] ?>
</div>
</div>
</div>
</div>
<!-- Single Card End -->
<!-- Single publico alvo -->
<div class="w-100">
<div class="d-flex align-items-center pr-11 mb-9 flex-wrap flex-sm-nowrap">
<div class="w-100 mt-n2">
<h3 class="mb-0">
<a class="font-size-6 text-black-2 font-weight-semibold" >Recursos Necessários</a>
</h3>
<div class="align-items-right justify-content-md-between flex-wrap" style="word-wrap: break-word;">
<?php echo $row['recursos'] ?>
</div>
</div>
</div>
</div>
<!-- Single Card End -->
</div>
<!-- Card Section End -->
<!-- Card Section Start -->
<div class="border-top p-5 pl-xs-12 pt-7 pb-5">
<h4 class="font-size-6 mb-7 mt-5 text-black-2 font-weight-semibold">Imagens</h4>
<!-- Single Card -->
<div class="w-100">
<div class="">
<div class=" mr-8 mb-7 mb-sm-0">
<?php if(!empty($arrayArquivos)) foreach($arrayArquivos as $value){
echo "<img style='width: 50%' src='$value'>";
} else echo "<a class='font-size-3 text-black-2 font-weight-semibold'>Não há imagens neste projeto.</a>"?>
</div>
</div>
</div>
<!-- Single Card End -->
</div>
<div class="border-top p-5 pl-xs-12 pt-7 pb-5">
<h4 class="font-size-6 mb-7 mt-5 text-black-2 font-weight-semibold">Arquivos</h4>
<!-- Single Card -->
<div class="w-100">
<div class="">
<div class=" mr-8 mb-7 mb-sm-0">
<?php if(!empty($pdf)) foreach($pdf as $key => $value1){
$value2 = $path[$key];
$value3 = $date[$key];
echo "<a href='$value2' download='$value1'>Baixar $value1</a><br>";
} else echo "<a class='font-size-3 text-black-2 font-weight-semibold'>Não há arquivos neste projeto.</a>"?>
</div>
</div>
</div>
<!-- Single Card End -->
</div>
<div class="border-top p-5 pl-xs-12 pt-7 pb-5">
<h4 class="font-size-6 mb-7 mt-5 text-black-2 font-weight-semibold">Links</h4>
<!-- Single Card -->
<div class="w-100">
<div class="">
<div class="mr-8 mb-7 mb-sm-0" style="word-break: break-all;">
<?php if(!empty($arrayLinks)) foreach($arrayLinks as $value){
echo "<a href='$value' class='font-size-4 text-gray mr-5'>$value</a><br>";
} else echo "<a class='font-size-3 text-black-2 font-weight-semibold'>Não há links neste projeto.</a>"?>
</div>
</div>
</div>
<!-- Single Card End -->
</div>
<!-- Card Section End -->
</div>
<div class="tab-pane fade" id="profile" role="tabpanel" aria-labelledby="profile-tab">
<!-- Excerpt Start -->
<div class="pr-xl-11 p-5 pl-xs-12 pt-9 pb-11">
<div class="row">
<div class="col-12 mb-7">
<label for="name3" class="font-size-4 font-weight-semibold text-black-2 mb-5 line-height-reset">Seu Nome*</label>
<input id="name3" type="text" class="form-control" placeholder="">
</div>
<div class="col-lg-6 mb-7">
<label for="email3" class="font-size-4 font-weight-semibold text-black-2 mb-5 line-height-reset">E-mail*</label>
<input id="email3" type="email" class="form-control" placeholder="[email protected]">
</div>
<div class="col-lg-6 mb-7">
<label for="subject3" class="font-size-4 font-weight-semibold text-black-2 mb-5 line-height-reset">Assunto*</label>
<input id="subject3" type="text" class="form-control" placeholder="">
</div>
<div class="col-lg-12 mb-7">
<label for="message3" class="font-size-4 font-weight-semibold text-black-2 mb-5 line-height-reset">Mensagem*</label>
<textarea name="message" id="message3" placeholder="Escreva sua mensagem" class="form-control h-px-144"></textarea>
</div>
<div class="col-lg-12 pt-4">
<button class="btn btn-primary text-uppercase w-100 h-px-48">Enviar Agora</button>
</div>
</div>
</div>
<!-- Excerpt End -->
</div>
</div>
<!-- Tab Content End -->
<!-- Tab Section End -->
</div>
</div>
<!-- Middle Content -->
</div>
</div>
<!-- form end -->
</div>
</div>
</div>
</div>
<!-- Main Content end -->
<!-- Modal -->
<div class="modal fade" id="modalParceria" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLabel">Proposta de parceria</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Fechar">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<div class="pr-xl-11 p-5 pl-xs-12 pt-9 pb-11">
<form method="POST" action="back/enviarSoliticacao.php?projeto=<?php echo $row['codigo'];?>">
<!-- <div class="row">
<div class="col-12 mb-7">
<label for="name3" class="font-size-4 font-weight-semibold text-black-2 mb-5 line-height-reset">Seu Nome*</label>
<input id="name3" type="text" class="form-control" placeholder="">
</div>
<div class="col-lg-6 mb-7">
<label for="email3" class="font-size-4 font-weight-semibold text-black-2 mb-5 line-height-reset">E-mail*</label>
<input id="email3" type="email" class="form-control" placeholder="[email protected]">
</div>
<div class="col-lg-6 mb-7">
<label for="subject3" class="font-size-4 font-weight-semibold text-black-2 mb-5 line-height-reset">Tipo de Parceria*</label>
<input id="subject3" type="text" class="form-control" placeholder="">
</div> -->
<div class="col-lg-12 mb-7">
<label for="message3" class="font-size-4 font-weight-semibold text-black-2 mb-5 line-height-reset">Mensagem*</label>
<textarea id="message3" placeholder="Escreva sua proposta" class="form-control h-px-144"></textarea>
</div>
<!-- <div class="col-lg-12 mb-7">
<label for="name3" class="font-size-4 font-weight-semibold text-black-2 mb-5 line-height-reset">Adicionar arquivos</label>
<div id="arquivoParceria">
<input type="file" class="form-control" style="line-height: normal;">
</div>
<br>
<input type="button" id="parceria" class="btn btn-dark" onclick="parceria()" value="Adicione mais">
</div> -->
<div class="col-lg-12 pt-4">
<input class="btn btn-primary text-uppercase w-100 h-px-48" type="submit" value="Enviar Proposta" name="enviar">
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- footer logo start -->
<footer class="footer bg-ebony-clay dark-mode-texts">
<div class="container">
<!-- Cta section -->
<div class="pt-11 pt-lg-20 pb-13 pb-lg-20 border-bottom border-width-1 border-default-color-2">
<div class="row justify-content-center ">
<div class="col-xl-7 col-lg-12" data-aos="fade-right" data-aos-duration="800" data-aos-once="true">
<!-- cta-content start -->
<div class="pb-xl-0 pb-9 text-xl-left text-center">
<h2 class="text-white font-size-8 mb-4"> Objetivos de Desenvolvimento Sustentável</h2>
<p class="text-hit-gray font-size-5 mb-0"> Objetivos de Desenvolvimento Sustentável - Facens</p>
<br>
</div>
<!-- cta-content end -->
</div>
<div class="col-xl-5 col-lg-12" data-aos="fade-left" data-aos-duration="800" data-aos-once="true">
<!-- cta-btns start -->
<div class="btns d-flex justify-content-xl-end justify-content-center align-items-xl-center flex-wrap h-100 mx-n4">
</div>
</div>
</div>
</div>
<div class="container pt-12 pt-lg-19 pb-10 pb-lg-19">
<div class="row">
<div class="col-lg-4 col-sm-6 mb-lg-0 mb-9">
<!-- footer logo End -->
<!-- media start -->
<div class="media mb-11">
<img src="image/l1/png/message.png" class="align-self-center mr-3" alt="">
<div class="media-body pl-5">
<p class="mb-0 font-size-4 text-white">Contato</p>
<a class="mb-0 font-size-4 font-weight-bold" href="https://github.com/GroupVision/ODS-PARA-TODOS">GroupVision</a>
</div>
</div>
<!-- media start -->
<!-- widget social icon start -->
<!-- widget social icon end -->
</div>
</div>
</div>
</div>
</div>
</footer>
<!-- footer area function start -->
<!-- Vendor Scripts -->
<script src="js/vendor.min.js"></script>
<!-- Plugin's Scripts -->
<script src="plugins/fancybox/jquery.fancybox.min.js"></script>
<script src="plugins/nice-select/jquery.nice-select.min.js"></script>
<script src="plugins/aos/aos.min.js"></script>
<script src="plugins/slick/slick.min.js"></script>
<script src="plugins/counter-up/jquery.counterup.min.js"></script>
<script src="plugins/counter-up/jquery.waypoints.min.js"></script>
<script src="plugins/ui-range-slider/jquery-ui.js"></script>
<!-- Activation Script -->
<!-- <script src="js/drag-n-drop.js"></script> -->
<script src="js/custom.js"></script>
<script>
var proposta = document.getElementById('proposta');
var parceria = document.getElementById('parceria');
var col_mais2 = document.getElementById('arquivoParceria');
parceria.onclick = function(){
var novoCampo = document.createElement('input');
novoCampo.setAttribute('type', 'file');
novoCampo.setAttribute('class', 'form-control');
novoCampo.setAttribute('style', 'line-height: normal;');
col_mais2.appendChild(novoCampo);
}
</script>
</body>
</html>