2026-02-24 14:26:25 +00:00
< ? php
include ( " ./Assets/functions.php " );
2026-02-25 07:52:22 +00:00
$config = json_decode ( file_get_contents ( " ./Assets/config.json " ), true );
$bdd = connectBDD ( " localhost " , $config [ " BDD_USER " ], $config [ " BDD_PASSWD " ], $config [ " BDD_NAME " ]);
2026-02-24 14:26:25 +00:00
$page = 'Guides' ;
2026-03-10 09:37:35 +00:00
$guides = getGuides ( $bdd );
2026-02-24 14:26:25 +00:00
?>
<! doctype html >
< html lang = " fr " >
< head >
< meta charset = " utf-8 " >
< meta name = " viewport " content = " width=device-width, initial-scale=1 " >
< title > Intranet de l ' APEI </ title >
< link href = " https://cdn.jsdelivr.net/npm/bootstrap@5.3.8/dist/css/bootstrap.min.css " rel = " stylesheet " integrity = " sha384-sRIl4kxILFvY47J16cr9ZwB07vP4J8+LH7qKQnuqkuIAvNWLzeN8tE5YBujZqJLB " crossorigin = " anonymous " >
< link rel = " shortcut icon " href = " ./Assets/Icones/APEIMBGE.jpg " type = " image/x-icon " >
</ head >
< body >
< ? php include ( './Assets/navbar.php' ); ?>
2026-03-10 09:37:35 +00:00
< div class = " grid-container " >
< ? php foreach ( $guides as $guide ) : ?>
< div class = " card " onclick = " window.location.href='<?= $guide['lien'] ?>' " >
< h4 >< ? = $guide [ 'nom' ] ?> </h4>
< img src = " https://upload.wikimedia.org/wikipedia/commons/thumb/c/c1/Google_%22G%22_logo.svg/3840px-Google_%22G%22_logo.svg.png " alt = " Image de couverture " >
</ div >
< ? php endforeach ?>
</ div >
2026-02-24 14:26:25 +00:00
<!-- footer pas toucher -->
< script src = " https://cdn.jsdelivr.net/npm/bootstrap@5.3.8/dist/js/bootstrap.bundle.min.js " integrity = " sha384-FKyoEForCGlyvwx9Hj09JcYn3nv7wiPVlz7YYwJrWVcXK/BmnVDxM+D2scQbITxI " crossorigin = " anonymous " ></ script >
</ body >
</ html >