This is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.

this software is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this software. If not, see <http://www.gnu.org/licenses/>.
--------------------------------------------------------------------------
*/
require_once "../config/config_base.php";
require_once CONFIG_DIR . "/config_db.php";
require_once INC_DIR . "/autoload.function.php";
$p = new Webpage("Gestion des Types de Billets");
$p->appendCssUrl("../css/index.css");
$p->appendJsUrl("../lib/jquery.min.js");
$content = "";
if (isset($_GET['id']) && $_GET['id'] != null) {
    $request = new Request('SELECT', 'Utilisateur');
    $request->setparams("id_user ,firstName, lastName");
    $request->setConditions("id_user = "******"<p>" . $joueur['firstName'] . " " . $joueur['lastName'] . "</p>";
    }
}
$p->appendContent($content);
echo $p->toHTML();
<?php

include '../inc/autoload.function.php';
$p = new Webpage("Inscription");
$p->appendCssUrl('../css/index.css');
$p->appendBootstrap("../bootstrap");
if (isset($_GET['pass'])) {
    $p->appendContent(<<<HTML
\t<div class="alert alert-danger" role="alert"><b>Mots de passe incorrects</b></div>
HTML
);
} elseif (isset($_GET['mail'])) {
    $p->appendContent(<<<HTML
\t<div class="alert alert-danger" role="alert"><b>Mail déjà utilisé</b></div>
HTML
);
} elseif (isset($_GET['login'])) {
    $p->appendContent(<<<HTML
\t<div class="alert alert-danger" role="alert"><b>Pseudo déjà utilisé</b></div>
HTML
);
}
$p->appendContent(<<<HTML
\t<form class="form-horizontal" name="inscription" method="POST" action="../inc/inscription.php">

\t\t<div class="form-group">
\t\t\t<label for="lastName" class="col-sm-2 control-label">Nom *</label>
\t\t\t<div class="col-sm-4">
\t\t\t\t<input class="form-control" name="lastName" type="text" required>
\t\t\t</div>
\t\t</div>