-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbooks.php
More file actions
47 lines (43 loc) · 1.82 KB
/
Copy pathbooks.php
File metadata and controls
47 lines (43 loc) · 1.82 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<?php
//This file belongs to the BookFind project.
//
//BookFind is distributed under the terms of the MIT software license.
//
//Copyright (C) 2025 Chromared
?>
<?php require 'actions/functions/sessionInit.php';
require 'actions/database.php';
require 'actions/functions/conversionDate.php';
require 'actions/functions/conversionDateHour.php';
require 'actions/functions/colorDateEmpruntFunction.php'; ?>
<!DOCTYPE html>
<html lang="fr" data-bs-theme="<?php include 'actions/users/decodeThemeAction.php'; ?>">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Rechercher un livre</title>
<?php include 'includes/header.php'; ?>
</head>
<body class="d-flex flex-column min-vh-100">
<?php include 'includes/navbar.php'; ?>
<br />
<div class="container mt-3">
<form method="GET">
<div class="input-group mb-3">
<input type="text" name="s" class="form-control" value="<?php if (isset($_GET['s']) and !empty($_GET['s'])) {
echo htmlspecialchars($_GET['s']);
} ?>" placeholder="Rechercher un livre" <?php if (!isset($_GET['s']) or empty($_GET['s'])) {
echo 'autofocus';
} ?> />
<button class="btn btn-outline-secondary" type="submit" id="button-addon2">
<i class="bi bi-search"></i>
Rechercher
</button>
</div>
</form>
</div>
<br />
<?php include 'actions/books/sBooks.php'; ?>
<?php include 'includes/footer.php'; ?>
</body>
</html>