parent
00006f5fc1
commit
20d7496593
@ -0,0 +1,11 @@
|
|||||||
|
@import url(./style.css);
|
||||||
|
|
||||||
|
/* ====== DARK MODE ====== */
|
||||||
|
/*body.dark-mode */
|
||||||
|
|
||||||
|
|
||||||
|
/* ====== LIGHT MODE ====== */
|
||||||
|
/*body.light-mode*/
|
||||||
|
|
||||||
|
|
||||||
|
/* ====== DEFAULT ====== */
|
@ -1,63 +1,16 @@
|
|||||||
<!DOCTYPE html>
|
<?php
|
||||||
<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>
|
|
||||||
|
|
||||||
<div class="container">
|
global $twig;
|
||||||
<div class="row">
|
|
||||||
<div>
|
|
||||||
<input class="searchBarre" type="text" value="" placeholder="Rechercher"/>
|
|
||||||
<div>
|
|
||||||
<?php
|
|
||||||
|
|
||||||
#session_start();
|
echo $twig->render('head.html.twig', array(
|
||||||
#require_once('../bd/connexionDB.php');
|
'title' => "Quote",
|
||||||
#
|
'style' => "public/styles/styleSearch.css",
|
||||||
#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'));
|
|
||||||
|
|
||||||
foreach($req as $r){
|
echo $twig->render('bandeau.html.twig');
|
||||||
?>
|
echo $twig->render('filtre.html.twig');
|
||||||
<div style="margin-top: 20px 0; border-bottom: 2px solid #ccc"><?= $r['nom'] . " " . $r['prenom'] ?></div><?php
|
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…
Reference in new issue