ouvag/admin/auth.php

39 lines
1.2 KiB
PHP

<?php
include "inc/auth.inc.php";
?>
<!DOCTYPE html>
<html>
<head>
<?php include("theme/_head.php"); ?>
</head>
<body>
<?php include("../theme/header.php"); ?>
<section id="pageadmin">
<div id="auth-form">
<form action="<?php echo htmlspecialchars($_SERVER['PHP_SELF']); ?>" method="post">
<?php
// Rencontre-t-on une erreur ?
if(!empty($errorMessage))
{
echo '<p class="red">', htmlspecialchars($errorMessage) ,'</p>';
}
?>
<h3>Identifiez-vous :</h3>
<label for="login">Login :</label>
<input type="text" name="login" id="login" value="" autofocus /><br />
<label for="password">Password :</label>
<input type="password" name="password" id="password" value="" /><br />
<input type="submit" name="submit" value="S'enregistrer" />
</form>
<p>Ou <a href="../index.php">retournez à l'accueil</a>.</p>
</div>
</section>
<?php include("theme/footer.php"); ?>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<script>window.jQuery || document.write('<script src="js/vendor/jquery-1.10.2.min.js"><\/script>')</script>
<script src="js/main.js"></script>
</body>
</html>