-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMyprojects.php
438 lines (370 loc) · 20.1 KB
/
Myprojects.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
<?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%')";
$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>-->
<h4 class="font-size-6 mb-7 mt-5 text-black-2 font-weight-semibold"><b>Projetos Criados</b></h4>
<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>
</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>
</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>
</h3>
<div class="align-items-right justify-content-md-between flex-wrap" style="word-wrap: break-word;">
</div>
</div>
</div>
</div>
</div>
<!-- Excerpt End -->
<div class="col-md-9">
<div class="media align-items-center">
<!-- start div -->
<div class="square-72 d-block mr-8">
<img style="width: 70px; right: 70px;" src="<?php echo $row['imagem']?>" alt="">
</div>
<div>
<h3 class='mb-0'><a class='font-size-6 heading-default-color'><?php echo $row['nome']?>aaaaaaa</a></h3>
<div class="col-md-10 font-size-3 text-default-color line-height-2" style="word-wrap: break-word;">
aaaaaa<?php echo $row['problema']?>
</div>
<div class="col-md-7">
<ul class="d-flex list-unstyled mr-n3 flex-wrap">
<li>
<div class="col-md-8 min-width-px-273 mr-3 rounded-3 px-6 py-1 font-size-3 text-black-2 mt-2" style="word-wrap: break-word;">
<?php echo $row['descricao_projeto']?>
</div>
</li>
</ul>
</div>
</div>
</div>
</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>
<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 name="message" 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">
<button class="btn btn-primary text-uppercase w-100 h-px-48">Enviar Proposta</button>
</div>
</div>
</form>
</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">
<<<<<<< HEAD
<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>
=======
<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 - Facens</a>
>>>>>>> develop
</div>
</div>
<!-- media start -->
<!-- widget social icon start -->
<!-- widget social icon end -->
</div>
</div>
</div>
</div>
</div>
</footer>
<!-- footer area function start -->
</div>
<!-- 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>