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

37 lines
1.2 KiB
PHP
Raw Permalink Normal View History

2020-10-27 21:58:56 +01: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 -->
<?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>
2020-10-27 22:23:11 +01:00
<th><a href="index.php?category=<?= $photo["catId"] ?>"><?= $photo["nomCat"] ?></a></th>
2020-10-27 21:58:56 +01:00
</tr>
</table>
</div>
<?php } ?>
<!-- Fin de la page -->
<!-- Pied de page -->
<?php require_once(PATH_VIEWS.'footer.php');