add pdo
This commit is contained in:
57
ma_bibli/index.php
Normal file
57
ma_bibli/index.php
Normal file
@@ -0,0 +1,57 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="fr">
|
||||
<head>
|
||||
<title>Ma super bibliothèque</title>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet">
|
||||
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js"></script>
|
||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css">
|
||||
<link href="style.css" rel="stylesheet" type="text/css">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<?php include("sql/pdo.php"); ?>
|
||||
|
||||
<header class="main-content">
|
||||
<H1>Bibliothèque</H1>
|
||||
<ul class="nav nav-tabs">
|
||||
<li class="nav-item">
|
||||
<a class="nav-link active" aria-current="page" href="/">Accueil</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" href="/">Ajouter un livre</a>
|
||||
</li>
|
||||
</ul>
|
||||
</header>
|
||||
|
||||
|
||||
<main class="main-content">
|
||||
<?php include("view/view_books.php"); ?>
|
||||
</main>
|
||||
|
||||
|
||||
|
||||
<footer class="fixed-bottom d-flex flex-wrap justify-content-between align-items-center py-3 my-4 border-top p-4">
|
||||
<div>
|
||||
<i class="bi bi-c-circle"></i> 2025 - LM I-Manager
|
||||
</div>
|
||||
<div>
|
||||
Version : 1.0.0
|
||||
</div>
|
||||
<div class="d-flex align-items-center d-flex-row">
|
||||
Connexion BDD :
|
||||
<?php
|
||||
if ($GLOBALS['BddIsConnected']) {
|
||||
echo "<p class='m-1' style='color:green;'>✅</p>";
|
||||
} else {
|
||||
echo "<p class='m-1' style='color:red;'>❌</p>";
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
</footer>
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
||||
Reference in New Issue
Block a user