forked from antux18/ChasseTresorPange
57 lines
1.6 KiB
PHP
57 lines
1.6 KiB
PHP
|
<?php
|
||
|
require_once "require/base.php";
|
||
|
|
||
|
$art_nb = 3;
|
||
|
|
||
|
$database = new Database();
|
||
|
$stmt = $database->pdo_article->prepare("SELECT * FROM article WHERE id <= :id");
|
||
|
$stmt->bindValue(":id", $art_nb);
|
||
|
$stmt->execute();
|
||
|
$articles = $stmt->fetchAll();
|
||
|
?>
|
||
|
|
||
|
<!DOCTYPE html>
|
||
|
<html lang="fr">
|
||
|
<head>
|
||
|
<?php
|
||
|
require_once $rq_path . "head.php";
|
||
|
?>
|
||
|
<title><?= $tr["tab_title"]["home"]?></title>
|
||
|
</head>
|
||
|
<body>
|
||
|
<header>
|
||
|
<?php
|
||
|
require_once $rq_path . "nav.php";
|
||
|
?>
|
||
|
</header>
|
||
|
<main>
|
||
|
<header>
|
||
|
<h1><?= $tr["page_title"]["home"]?></h1>
|
||
|
<p><?= $tr["home"]["subtitle"]?></p>
|
||
|
<p><?= $tr["home"]["message"]?></p>
|
||
|
</header>
|
||
|
<nav>
|
||
|
<video></video>
|
||
|
<script src="<?= $rq_path ?>js/qr-scanner/qr-scanner.umd.min.js"></script>
|
||
|
<script>
|
||
|
const qrScanner = new QrScanner(
|
||
|
document.querySelector("video"),
|
||
|
result => console.log('decoded qr code:', result),
|
||
|
{
|
||
|
onDecodeError: error => {
|
||
|
},
|
||
|
highlightScanRegion: true,
|
||
|
highlightCodeOutline: true,
|
||
|
},
|
||
|
);
|
||
|
qrScanner.start();
|
||
|
</script>
|
||
|
</nav>
|
||
|
</main>
|
||
|
<footer>
|
||
|
<?php
|
||
|
require_once $rq_path . "footer.php";
|
||
|
?>
|
||
|
</footer>
|
||
|
</body>
|
||
|
</html>
|