33 lines
No EOL
1.5 KiB
PHP
33 lines
No EOL
1.5 KiB
PHP
<?php
|
|
include("./Assets/functions.php");
|
|
$config = json_decode(file_get_contents("./Assets/config.json"), true);
|
|
$bdd = connectBDD("localhost", $config["BDD_USER"], $config["BDD_PASSWD"], $config["BDD_NAME"]);
|
|
$page = 'Guides';
|
|
|
|
$guides = getGuides($bdd);
|
|
?>
|
|
<!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');?>
|
|
|
|
<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>
|
|
|
|
<!-- 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>
|