Commit 3ad816b7c37753197e62014c11c7e8b1a71b77ef

Authored by Geoffrey PREUD'HOMME
1 parent bf26706c

Écran de connexion

footer.php 0 → 100644
... ... @@ -0,0 +1,17 @@
  1 + <footer class="page-footer red">
  2 + <div class="footer-copyright">
  3 + <div class="container">
  4 + 10p5 v0.0.0 - © Copyright 2016, <a href="http://clubinfo.plil.net">Le Club Info Polytech Lille</a>
  5 + </div>
  6 + </div>
  7 + </footer>
  8 +
  9 +
  10 + <!-- Scripts-->
  11 + <script src="https://code.jquery.com/jquery-2.1.1.min.js"></script>
  12 + <script src="js/materialize.js"></script>
  13 + <script src="js/init.js"></script>
  14 +
  15 + </body>
  16 +</html>
  17 +
... ...
header.php 0 → 100644
... ... @@ -0,0 +1,14 @@
  1 +<!DOCTYPE html>
  2 +<html lang="fr">
  3 +<head>
  4 + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
  5 + <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1.0"/>
  6 + <title>10⁵</title>
  7 +
  8 + <!-- CSS -->
  9 + <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
  10 + <link href="css/materialize.css" type="text/css" rel="stylesheet" media="screen,projection"/>
  11 + <link href="css/style.css" type="text/css" rel="stylesheet" media="screen,projection"/>
  12 +</head>
  13 +<body>
  14 +
... ...
index.php
1   -<!DOCTYPE html>
2   - <html>
3   - <head>
4   - <!--Import Google Icon Font-->
5   - <link href="http://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
6   - <!--Import materialize.css-->
7   - <link type="text/css" rel="stylesheet" href="css/materialize.min.css" media="screen,projection"/>
  1 +<?php
  2 +include("header.php");
  3 +?>
  4 + <!-- Réutilisable -->
  5 + <!-- Page -->
  6 + <nav class="red" role="navigation">
  7 + <div class="nav-wrapper container"><a id="logo-container" href="#" class="brand-logo">10⁵</a>
  8 + <ul class="right">
  9 + </ul>
  10 + </div>
  11 + </nav>
8 12  
9   - <!--Let browser know website is optimized for mobile-->
10   - <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
11   - </head>
12   -
13   - <body>
14   - <!--Import jQuery before materialize.js-->
15   - <script type="text/javascript" src="https://code.jquery.com/jquery-2.1.1.min.js"></script>
16   - <script type="text/javascript" src="js/materialize.min.js"></script>
17   - </body>
18   -</html>
  13 + <div class="section no-pad-bot" id="main">
  14 + <div class="container">
  15 + <br><br><br>
  16 + <h4>Se connecter</h4>
  17 + <h5>Avec votre identifiant et votre mot de passe</h4>
  18 + <div class="row">
  19 + <form class="col s12">
  20 + <div class="row">
  21 + <div class="input-field col s12">
  22 + <input type="text" id="login">
  23 + <label for="login">Identifiant</label>
  24 + </div>
  25 + </div>
  26 + <div class="row">
  27 + <div class="input-field col s12">
  28 + <input type="password" id="mdp">
  29 + <label for="mdp">Mot de passe</label>
  30 + </div>
  31 + </div>
  32 + <div class="row">
  33 + <a href="main.php" id="connecter" class="btn-large waves-effect waves-light">Se connecter</a>
  34 + </div>
  35 + </form>
  36 + </div>
  37 + <h5>Avec votre carte étudiant</h5>
  38 + <p>Passez-la simplement devant le lecteur</p>
  39 + </div>
  40 + </div>
  41 + </div>
  42 +<?php
  43 +include "footer.php"
  44 +?>
... ...
js/init.js
1 1 $(function(){
2 2 $('.button-collapse').sideNav();
3 3 $('.modal-trigger').leanModal()
  4 + Materialize.toast("Connecté en tant que vigou", 4000);
4 5 }); // end of document ready
5 6  
6 7 function vendu() {
... ...
index.html renamed to main.php
1   -<!DOCTYPE html>
2   -<html lang="en">
3   -<head>
4   - <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
5   - <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1.0"/>
6   - <title>10⁵</title>
7   -
8   - <!-- CSS -->
9   - <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
10   - <link href="css/materialize.css" type="text/css" rel="stylesheet" media="screen,projection"/>
11   - <link href="css/style.css" type="text/css" rel="stylesheet" media="screen,projection"/>
12   -</head>
13   -<body>
  1 +<?php
  2 +include("header.php");
  3 +?>
14 4 <!-- Réutilisable -->
15 5 <ul id="menuUtilisateur" class="dropdown-content">
16 6 <li><a href="#!">Se déconnecter</a></li>
... ... @@ -132,20 +122,6 @@
132 122 </div>
133 123 </div>
134 124 </div>
135   -
136   - <footer class="page-footer red">
137   - <div class="footer-copyright">
138   - <div class="container">
139   - 10p5 v0.0.0 - © Copyright 2016, <a href="http://clubinfo.plil.net">Le Club Info Polytech Lille</a>
140   - </div>
141   - </div>
142   - </footer>
143   -
144   -
145   - <!-- Scripts-->
146   - <script src="https://code.jquery.com/jquery-2.1.1.min.js"></script>
147   - <script src="js/materialize.js"></script>
148   - <script src="js/init.js"></script>
149   -
150   - </body>
151   -</html>
  125 +<?php
  126 +include "footer.php"
  127 +?>
... ...