recupe quote

pull/21/head
brongniart 5 months ago
parent 00006f5fc1
commit 20d7496593

@ -20,6 +20,7 @@ $vues['quote'] = 'vue/quote.php';
$vues['login'] = 'vue/login.php';
$vues['signin'] = 'vue/signin.php';
$vues['quiz'] = 'vue/quiz.html';
$vues['search'] = 'vue/search.php';

@ -0,0 +1,11 @@
@import url(./style.css);
/* ====== DARK MODE ====== */
/*body.dark-mode */
/* ====== LIGHT MODE ====== */
/*body.light-mode*/
/* ====== DEFAULT ====== */

@ -42,6 +42,7 @@ Class FrontControler{
$router->map('GET|POST', '/signin', 'VisitorControler','signin');
$router->map('GET|POST', '/quiz/[i:id]?', 'QuizControler','quiz');
$router->map('GET|POST', '/search/[a:type]?', 'VisitorControler','search');
$match = $router->match();

@ -28,4 +28,10 @@ Class VisitorControler{
global $vues;
require_once $vues['signin'];
}
public function search(){
global $vues;
require_once $vues['search'];
}
}

@ -1,63 +1,16 @@
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Wiki Fantasy</title>
<link id="favicon" rel="icon" href="../images/iconeSombre.ico"> <!-- Par défaut sombre -->
<link rel="stylesheet" href="../styles/style.css">
<script defer src="../script/theme-toggle.js"></script>
<script src="../script/auth-check.js"></script>
</head>
<body>
<div class="header">
<div class="nav">
<a href="favorite.html"><img src="../images/coeur.svg" alt="coeur" width="67px" height="67px" onmousedown="return false"></a>
<img id="theme-icon" src="../images/light.svg" alt="toggle theme" width="72px" height="37px" onmousedown="return false" onclick="toggleTheme()">
<a href="quiz.html"><img src="../images/quizz.svg" alt="quizz" width="51px" height="82px" onmousedown="return false"></a>
</div>
<div class="logo">
<a href="accueil.html"><img src="../images/WIKIFANTASY.png" alt="Logo" width="227px" height="106px" onmousedown="return false"></a>
</div>
<div class="user">
<a href="profil.html"><img src="../images/user_dark.png" alt="user" width="70px" height="70px" onmousedown="return false"></a>
</div>
</div>
<?php
<div class="container">
<div class="row">
<div>
<input class="searchBarre" type="text" value="" placeholder="Rechercher"/>
<div>
<?php
global $twig;
#session_start();
#require_once('../bd/connexionDB.php');
#
#if(isset($_GET['user'])){
#$user = (String) trim($_GET['user']);
#
#$req = $DB->query("SELECT *
# FROM utilisateur
# WHERE nom LIKE ?
# LIMIT 10",
# array("$user%"));
#
#$req = $req->fetchALL();
$req=array(array('nom'=>'nom1','prenom'=>'prenom1'),array('nom'=>'nom2','prenom'=>'prenom2'),array('nom'=>'nom3','prenom'=>'prenom3'));
echo $twig->render('head.html.twig', array(
'title' => "Quote",
'style' => "public/styles/styleSearch.css",
));
foreach($req as $r){
?>
<div style="margin-top: 20px 0; border-bottom: 2px solid #ccc"><?= $r['nom'] . " " . $r['prenom'] ?></div><?php
}
#}
echo $twig->render('bandeau.html.twig');
echo $twig->render('filtre.html.twig');
echo $_POST['type'];
echo $_POST['search'];
//echo $twig->render('resultat.html.twig');
?>
</div>
</div>
</div>
</div>
</body>
</html>

@ -0,0 +1,44 @@
<form action="#" method="post">
<input type="search" id="filtre" name="search"/>
<div>
<div>
<input type="radio" id="citation" name="type" value="citation" checked />
<label for="citation">Citation</label>
</div>
<div>
<input type="radio" id="titre" name="type" value="titre" />
<label for="titre">Titre</label>
</div>
<div>
<input type="radio" id="personnage" name="type" value="personnage" />
<label for="personnage">Personnage</label>
</div>
</div>
<p>Plus de filtre</p>
<div>
<label>Filter by:</label>
<div>
<input type="checkbox" id="film" name="film" checked />
<label for="film">Film</label>
</div>
<div>
<input type="checkbox" id="roman" name="roman" />
<label for="roman">Roman</label>
</div>
<div>
<input type="checkbox" id="jeux_vidéo" name="jeux_vidéo" />
<label for="jeux_vidéo">Jeux Vidéo</label>
</div>
</div>
<input type="submit" value="Search" />
</form>
Loading…
Cancel
Save