-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrealisations.php
More file actions
44 lines (39 loc) · 1.63 KB
/
realisations.php
File metadata and controls
44 lines (39 loc) · 1.63 KB
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
<?php require_once('inc/init.inc.php');
// if (!isset($_SESSION['formations'])){
$req = $pdoCV -> query("SELECT * FROM t_realisations WHERE id_utilisateur='1' ORDER BY r_dates DESC");
$_SESSION['realisations'] = $req -> fetchAll(PDO::FETCH_ASSOC);
// }
$page = "réalisations - ";
include('inc/head.inc.php');
?>
<main id="realisations" class="container">
<h1>Mes réalisations</h1>
<section class="row">
<?php foreach ($_SESSION['realisations'] as $formation) : ?>
<div class="col-md-3">
<article>
<!-- <article class="panel panel-info"> -->
<?php
if (!empty($formation['r_lien'])){
$photo = $formation['r_photos'];
} else {
$photos = explode (', ', $formation['r_photos']);
$photo = $photos[0];
}
?>
<!-- <div class="panel-heading"> -->
<h2><?= $formation['r_titre'] ?></h2>
<p><?= $formation['r_soustitre'] . ' - ' . $formation['r_dates'] ?></p>
<!-- </div>
<div class="panel-body"> -->
<a href="<?= $lien = (!empty($formation['r_lien'])?$formation['r_lien']:'') ?>" target="_blank">
<img src="photos/<?= $photo ?>" alt="">
</a>
<p><?= $formation['r_description'] ?></p>
<!-- </div> -->
</article>
</div>
<?php endforeach; ?>
</section>
</main>
<?php include('inc/footer.inc.php'); ?>