1
0
Fork 0
This repository has been archived on 2024-02-17. You can view files and clone it, but cannot push or open issues or pull requests.
PHP_TP4/views/v_accueil.php

22 lines
572 B
PHP
Raw Normal View History

2020-10-16 10:23:24 +02:00
<?php
// En tête de page
?>
<?php require_once(PATH_VIEWS.'header.php');?>
<!-- Zone message d'alerte -->
<?php require_once(PATH_VIEWS.'alert.php');?>
<!-- Début de la page -->
<h1><?= TITRE_PAGE_ACCUEIL_TOUS ?></h1>
2020-10-16 11:57:47 +02:00
<?php if(isset($photos) and $photos) {
foreach ($photos as $photo) {?>
2020-10-27 21:58:56 +01:00
<a href="index.php?page=photo&id=<?= $photo["photoId"] ?>"><img src="<?= PATH_IMAGES ?>/<?= $photo['nomFich'] ?>" alt="<?= $photo['description'] ?>"></a>
2020-10-16 11:57:47 +02:00
<?php }
} ?>
2020-10-16 10:23:24 +02:00
<!-- Fin de la page -->
<!-- Pied de page -->
<?php require_once(PATH_VIEWS.'footer.php');