<?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>
<table class="table table-bordered">
<tr>
<th><?= DESCRIPTION ?></th>
<th><?= $photo["description"] ?></th>
</tr>
<th><?= FILE_NAME ?></th>
<th><?= $photo["nomFich"] ?></th>
<th><?= CATEGORY ?></th>
<th><a href="index.php?category=<?= $photo["catId"] ?>"><?= $photo["nomCat"] ?></a></th>
</table>
<?php } ?>
<!-- Fin de la page -->
<!-- Pied de page -->
<?php require_once(PATH_VIEWS.'footer.php');