-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbooks.php
More file actions
39 lines (38 loc) · 1.38 KB
/
books.php
File metadata and controls
39 lines (38 loc) · 1.38 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
<?php
//This file belongs to the Bookfind project.
//
//Bookfind is distributed under the terms of the MIT software license.
//
//Copyright (C) 2025 Chromared
?>
<?php session_start();
require 'actions/database.php';
require 'actions/functions/conversionDate.php';
require 'actions/functions/conversionDateHour.php';
require 'actions/functions/colorDateEmpruntFunction.php'; ?>
<!DOCTYPE html>
<html lang="fr">
<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>
<?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'; ?>
</body>
</html>