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_photo.php
2020-11-02 18:54:13 +01:00

36 lines
1.2 KiB
PHP

<?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 -->
<?php if (isset($photo) and $photo) { ?>
<h1><?= TITRE_PAGE_PHOTO ?></h1>
<div class = "col-md-6 col-sm-6 col-xs-12">
<img src="<?= PATH_IMAGES ?>/<?= $photo['nomFich'] ?>" alt="<?= $photo['description'] ?>">
</div>
<div class = "col-md-6 col-sm-6 col-xs-12">
<table class="table table-bordered">
<tr>
<th><?= DESCRIPTION ?></th>
<th><?= $photo["description"] ?></th>
</tr>
<tr>
<th><?= FILE_NAME ?></th>
<th><?= $photo["nomFich"] ?></th>
</tr>
<tr>
<th><?= CATEGORY ?></th>
<th><a href="index.php?category=<?= $photo["catId"] ?>"><?= $photo["nomCat"] ?></a></th>
</tr>
</table>
</div>
<?php } ?>
<!-- Fin de la page -->
<!-- Pied de page -->
<?php require_once(PATH_VIEWS.'footer.php');