commit
5dc66adab3
@ -0,0 +1,115 @@
|
||||
<?php
|
||||
|
||||
use Twig\Environment;
|
||||
use Twig\Error\LoaderError;
|
||||
use Twig\Error\RuntimeError;
|
||||
use Twig\Extension\CoreExtension;
|
||||
use Twig\Extension\SandboxExtension;
|
||||
use Twig\Markup;
|
||||
use Twig\Sandbox\SecurityError;
|
||||
use Twig\Sandbox\SecurityNotAllowedTagError;
|
||||
use Twig\Sandbox\SecurityNotAllowedFilterError;
|
||||
use Twig\Sandbox\SecurityNotAllowedFunctionError;
|
||||
use Twig\Source;
|
||||
use Twig\Template;
|
||||
use Twig\TemplateWrapper;
|
||||
|
||||
/* signin.html */
|
||||
class __TwigTemplate_d8d8ee303bb01e4f719db1d13398adc0 extends Template
|
||||
{
|
||||
private Source $source;
|
||||
/**
|
||||
* @var array<string, Template>
|
||||
*/
|
||||
private array $macros = [];
|
||||
|
||||
public function __construct(Environment $env)
|
||||
{
|
||||
parent::__construct($env);
|
||||
|
||||
$this->source = $this->getSourceContext();
|
||||
|
||||
$this->parent = false;
|
||||
|
||||
$this->blocks = [
|
||||
];
|
||||
}
|
||||
|
||||
protected function doDisplay(array $context, array $blocks = []): iterable
|
||||
{
|
||||
$macros = $this->macros;
|
||||
// line 1
|
||||
yield " <div class=\"container\">
|
||||
<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\">
|
||||
<img src=\"../images/user_dark.png\" alt=\"user\" width=\"70px\" height=\"70px\" onmousedown=\"return false\">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<h1>▶ S'inscrire ◀</h1>
|
||||
<form action=\"../script/signin.php\" method=\"post\">
|
||||
<div class=\"signin\">
|
||||
<div class=\"DivId\">
|
||||
<p>Identifiant *</p>
|
||||
<input type=\"text\" class=\"champ\" id=\"name\" name=\"name\" required/>
|
||||
</div>
|
||||
|
||||
<div class=\"DivEmail\">
|
||||
<p>Email *</p>
|
||||
<input type=\"email\" class=\"champ\" id=\"email\" name=\"email\" required/>
|
||||
</div>
|
||||
|
||||
<div class=\"mdp\">
|
||||
<p>Mot de passe *</p>
|
||||
<input type=\"password\" class=\"champ\" id=\"pswd\" name=\"pswd\" required/>
|
||||
</div>
|
||||
|
||||
<div class=\"confmdp\">
|
||||
<p>Confirmer mot de passe *</p>
|
||||
<input type=\"password\" class=\"champ\" id=\"confpswd\" name=\"confpswd\" required/>
|
||||
</div>
|
||||
|
||||
<div class=\"imgprof\">
|
||||
<p>Image *</p>
|
||||
|
||||
</div>
|
||||
|
||||
<div class=\"confirmer\">
|
||||
<input type=\"submit\" class=\"btn\" value=\"Inscription\" />
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</body>
|
||||
</html>";
|
||||
yield from [];
|
||||
}
|
||||
|
||||
/**
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
public function getTemplateName(): string
|
||||
{
|
||||
return "signin.html";
|
||||
}
|
||||
|
||||
/**
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
public function getDebugInfo(): array
|
||||
{
|
||||
return array ( 42 => 1,);
|
||||
}
|
||||
|
||||
public function getSourceContext(): Source
|
||||
{
|
||||
return new Source("", "signin.html", "/home/www/lebeaulato/public_html/WF-Website/vue/templates/signin.html");
|
||||
}
|
||||
}
|
@ -0,0 +1,102 @@
|
||||
<?php
|
||||
|
||||
use Twig\Environment;
|
||||
use Twig\Error\LoaderError;
|
||||
use Twig\Error\RuntimeError;
|
||||
use Twig\Extension\CoreExtension;
|
||||
use Twig\Extension\SandboxExtension;
|
||||
use Twig\Markup;
|
||||
use Twig\Sandbox\SecurityError;
|
||||
use Twig\Sandbox\SecurityNotAllowedTagError;
|
||||
use Twig\Sandbox\SecurityNotAllowedFilterError;
|
||||
use Twig\Sandbox\SecurityNotAllowedFunctionError;
|
||||
use Twig\Source;
|
||||
use Twig\Template;
|
||||
use Twig\TemplateWrapper;
|
||||
|
||||
/* login.html */
|
||||
class __TwigTemplate_2cd0c955593f8f6da78deaca6452905d extends Template
|
||||
{
|
||||
private Source $source;
|
||||
/**
|
||||
* @var array<string, Template>
|
||||
*/
|
||||
private array $macros = [];
|
||||
|
||||
public function __construct(Environment $env)
|
||||
{
|
||||
parent::__construct($env);
|
||||
|
||||
$this->source = $this->getSourceContext();
|
||||
|
||||
$this->parent = false;
|
||||
|
||||
$this->blocks = [
|
||||
];
|
||||
}
|
||||
|
||||
protected function doDisplay(array $context, array $blocks = []): iterable
|
||||
{
|
||||
$macros = $this->macros;
|
||||
// line 1
|
||||
yield " <div class=\"container\">
|
||||
<div class=\"header\">
|
||||
<div class=\"nav\">
|
||||
<img src=\"../images/coeur.svg\" alt=\"coeur\" width=\"67px\" height=\"67px\" onmousedown=\"return false\">
|
||||
<img id=\"theme-icon\" src=\"../images/light.svg\" alt=\"toggle theme\" width=\"72px\" height=\"37px\" onmousedown=\"return false\" onclick=\"toggleTheme()\">
|
||||
<img src=\"../images/quizz.svg\" alt=\"quizz\" width=\"51px\" height=\"82px\" onmousedown=\"return false\">
|
||||
</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\">
|
||||
<img src=\"../images/user_dark.png\" alt=\"user\" width=\"70px\" height=\"70px\" onmousedown=\"return false\">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<h1>▶ Connexion ◀</h1>
|
||||
|
||||
<div class=\"login\">
|
||||
<p> <strong>Identifiant *</strong></p>
|
||||
<input type=\"text\" class=\"connexion\" name=\"name\" required />
|
||||
|
||||
<p> <strong> Mot de passe *</strong></p>
|
||||
<input type=\"password\" class=\"connexion\" name=\"passwd\" required />
|
||||
|
||||
<div class=\"createAccount\">
|
||||
<p class=\"createAccount\">Vous n'avez pas de compte?</p>
|
||||
<a href=\"/signin\" class=\"createAccount\">S'incrire</a>
|
||||
</div>
|
||||
|
||||
|
||||
<div class=\"buttonSudmiteDiv\">
|
||||
<button class=\"buttonSudmite\">Connexion</button>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</body>
|
||||
</html>";
|
||||
yield from [];
|
||||
}
|
||||
|
||||
/**
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
public function getTemplateName(): string
|
||||
{
|
||||
return "login.html";
|
||||
}
|
||||
|
||||
/**
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
public function getDebugInfo(): array
|
||||
{
|
||||
return array ( 42 => 1,);
|
||||
}
|
||||
|
||||
public function getSourceContext(): Source
|
||||
{
|
||||
return new Source("", "login.html", "/home/www/lebeaulato/public_html/WF-Website/vue/templates/login.html");
|
||||
}
|
||||
}
|
@ -0,0 +1,24 @@
|
||||
<?php
|
||||
namespace Model;
|
||||
use Entity\Quote;
|
||||
use Gateway\QuoteGateway;
|
||||
|
||||
class QuoteModel
|
||||
{
|
||||
private QuoteGateway $gateway;
|
||||
|
||||
public function __construct(QuoteGateway $gate){
|
||||
$this->gateway = $gate;
|
||||
}
|
||||
|
||||
public function searchId(int $id): Quote{
|
||||
$res = $this->gateway->searchId($id);
|
||||
var_dump($res);
|
||||
if( count($res) == 0)
|
||||
return new Quote(-1,"NULL","NULL","NULL","NULL","NULL",0,"Default");
|
||||
else
|
||||
return new Quote($res[0]["id_quote"],$res[0]["content"],$res[0]["caracter"],$res[0]["imgpath"],$res[0]["title"],$res[0]["dates"],$res[0]["likes"],$res[0]["langue"]);
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
@ -1,20 +0,0 @@
|
||||
<?php
|
||||
namespace Model;
|
||||
use Entity\Quote;
|
||||
use Gateway\QuoteGateway;
|
||||
|
||||
class QuoteModel
|
||||
{
|
||||
private QuoteGateway $gateway;
|
||||
|
||||
public function __construct(QuoteGateway $gate){
|
||||
$this->gateway = $gate;
|
||||
}
|
||||
|
||||
public function searchId(int $id): Quote{
|
||||
$res = $this->gate->searchId($id)[0];
|
||||
return new Quote($res["q.id_quote"],$res["q.content"],$res["c.caracter"],$res["c.img_path"],$res["s.title"],$res["s.date"],$res["q.like"],$res["q.language"]);
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
@ -0,0 +1,12 @@
|
||||
<?php
|
||||
|
||||
global $twig;
|
||||
|
||||
echo $twig->render('head.html.twig', array(
|
||||
'title' => "Login",
|
||||
'style' => "../public/styles/styleLogin.css",
|
||||
));
|
||||
|
||||
echo $twig->render('bandeau.html.twig');
|
||||
echo $twig->render('login.html');
|
||||
?>
|
@ -1,20 +1,19 @@
|
||||
<?php
|
||||
|
||||
global $twig, $q;
|
||||
global $twig;
|
||||
|
||||
echo $twig->render('head.html.twig', array(
|
||||
'title' => "Quote",
|
||||
'style' => "public/styles/styleQuote.css",
|
||||
));
|
||||
|
||||
echo $twig->render('bandeau.html.twig');
|
||||
echo $twig->render('quote.html', array(
|
||||
'srcImg' => $q->imgPath,
|
||||
'nameCarac' => $q->carac,
|
||||
'quoteContent' => $q->content,
|
||||
'sourceName' => $q->titleSrc,
|
||||
'dateSortie' => $q->dateSrc,
|
||||
'nbLike' => $q->like,
|
||||
'srcImg' => $q->getImgPath(),
|
||||
'nameCarac' => $q->getCarac(),
|
||||
'quoteContent' => $q->getContent(),
|
||||
'sourceName' => $q->getTitleSrc(),
|
||||
'dateSortie' => $q->getDateSrc(),
|
||||
'nbLike' => $q->getLike(),
|
||||
'timeCode' =>"1h45",
|
||||
|
||||
));
|
||||
|
@ -0,0 +1,12 @@
|
||||
<?php
|
||||
|
||||
global $twig;
|
||||
|
||||
echo $twig->render('head.html.twig', array(
|
||||
'title' => "Sign in",
|
||||
'style' => "../public/styles/styleSignin.css",
|
||||
));
|
||||
|
||||
echo $twig->render('bandeau.html.twig');
|
||||
echo $twig->render('signin.html');
|
||||
?>
|
@ -1,14 +1,14 @@
|
||||
<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"><img src="../images/quizz.svg" alt="quizz" width="51px" height="82px" onmousedown="return false"></a>
|
||||
<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/dark.svg" alt="toggle theme" width="72px" height="37px" onmousedown="return false" onclick="toggleTheme()">
|
||||
<a href="{{ racine }}/quiz"><img src="images/quizz.svg" alt="quizz" width="51px" height="82px" onmousedown="return false"></a>
|
||||
|
||||
</div>
|
||||
<div class="logo">
|
||||
<a href="/"><img src="../images/WIKIFANTASY.png" alt="Logo" width="227px" height="106px" onmousedown="return false"></a>
|
||||
<a href="{{ racine }}/"><img src="images/WIKIFANTASY.png" alt="Logo" width="227px" height="106px" onmousedown="return false"></a>
|
||||
</div>
|
||||
<div class="user">
|
||||
<a href="/login"><img src="../images/user_dark.png" alt="user" width="70px" height="70px" onmousedown="return false"></a>
|
||||
<a href="{{ racine }}/login"><img src="images/user_dark.png" alt="user" width="70px" height="70px" onmousedown="return false"></a>
|
||||
</div>
|
||||
</div>
|
@ -1,15 +1,3 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="fr">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<link rel="stylesheet" type="text/css" href="../public/styles/styleLogin.css" media="screen">
|
||||
<title>Wiki Fantasy : Connexion</title>
|
||||
<link id="favicon" rel="icon" href="../../images/iconeSombre.ico"> <!-- Par défaut sombre -->
|
||||
<link href="https://fonts.googleapis.com/css2?family=Lemon&display=swap" rel="stylesheet">
|
||||
<script defer src="../public/script/theme-toggle.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<div class="container">
|
||||
<div class="header">
|
||||
<div class="nav">
|
@ -1,15 +1,3 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="fr">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<link rel="stylesheet" type="text/css" href="../public/styles/styleSignin.css" media="screen">
|
||||
<title>Wiki Fantasy : Inscription</title>
|
||||
<link id="favicon" rel="icon" href="../images/iconeSombre.ico"> <!-- Par défaut sombre -->
|
||||
<link href="https://fonts.googleapis.com/css2?family=Lemon&display=swap" rel="stylesheet">
|
||||
<script defer src="../public/script/theme-toggle.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<div class="container">
|
||||
<div class="header">
|
||||
<div class="nav">
|
Loading…
Reference in new issue