Compare commits
43 Commits
d74c04a97d
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0d1d4385f9 | ||
|
|
30e988a406 | ||
|
|
ad2a770dc8 | ||
|
|
3cfc1f99e4 | ||
|
|
ff03911709 | ||
|
|
3eafc8b2ee | ||
|
|
0ec37013ed | ||
|
|
e27f948c2a | ||
|
|
1a26976d0a | ||
|
|
c7df279eab | ||
|
|
1e8257677c | ||
|
|
e5fa228860 | ||
|
|
05e4eb1b4c | ||
|
|
2d81cde4a8 | ||
|
|
94db0015ee | ||
|
|
fa6c0561f6 | ||
|
|
e58f60e5ec | ||
|
|
eb07fbaac9 | ||
|
|
caf65f4bfe | ||
|
|
cc1a3760ef | ||
|
|
5ebec6b026 | ||
|
|
239a3b33e7 | ||
|
|
8841819f19 | ||
|
|
1a8e93244b | ||
|
|
10c95e08ef | ||
|
|
18fb6ec354 | ||
|
|
d13cdc2f75 | ||
|
|
a0deb75318 | ||
|
|
4553efe201 | ||
|
|
bf5a567b33 | ||
|
|
4294fa0494 | ||
|
|
8ca0bc8a7d | ||
|
|
1be712e230 | ||
|
|
ad9ed3f6d2 | ||
|
|
9c667fbe9a | ||
|
|
0e5bc4a527 | ||
|
|
ffd7162dde | ||
|
|
1047fa5de6 | ||
|
|
5a0ba05682 | ||
|
|
761e62ebe0 | ||
|
|
56355e857b | ||
|
|
0450b70925 | ||
|
|
2fa67490d9 |
3
.gitignore
vendored
Normal file
3
.gitignore
vendored
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
/nbproject/private/
|
||||||
|
/build/
|
||||||
|
/dist/
|
||||||
@@ -1,8 +1,8 @@
|
|||||||
build.xml.data.CRC32=573ee386
|
build.xml.data.CRC32=5eaaa012
|
||||||
build.xml.script.CRC32=9c118765
|
build.xml.script.CRC32=9c118765
|
||||||
build.xml.stylesheet.CRC32=1707db4f@1.86.0.1
|
build.xml.stylesheet.CRC32=1707db4f@1.86.0.1
|
||||||
# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml.
|
# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml.
|
||||||
# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you.
|
# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you.
|
||||||
nbproject/build-impl.xml.data.CRC32=573ee386
|
nbproject/build-impl.xml.data.CRC32=5eaaa012
|
||||||
nbproject/build-impl.xml.script.CRC32=7458d665
|
nbproject/build-impl.xml.script.CRC32=7458d665
|
||||||
nbproject/build-impl.xml.stylesheet.CRC32=334708a0@1.86.0.1
|
nbproject/build-impl.xml.stylesheet.CRC32=334708a0@1.86.0.1
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ build.test.classes.dir=${build.dir}/test/classes
|
|||||||
build.test.results.dir=${build.dir}/test/results
|
build.test.results.dir=${build.dir}/test/results
|
||||||
build.web.dir=${build.dir}/web
|
build.web.dir=${build.dir}/web
|
||||||
build.web.excludes=${build.classes.excludes}
|
build.web.excludes=${build.classes.excludes}
|
||||||
client.urlPart=
|
client.urlPart=/Authentif
|
||||||
compile.jsps=false
|
compile.jsps=false
|
||||||
conf.dir=${source.root}/conf
|
conf.dir=${source.root}/conf
|
||||||
debug.classpath=${build.classes.dir}:${javac.classpath}
|
debug.classpath=${build.classes.dir}:${javac.classpath}
|
||||||
@@ -69,7 +69,6 @@ javadoc.use=true
|
|||||||
javadoc.version=false
|
javadoc.version=false
|
||||||
javadoc.windowtitle=
|
javadoc.windowtitle=
|
||||||
lib.dir=${web.docbase.dir}/WEB-INF/lib
|
lib.dir=${web.docbase.dir}/WEB-INF/lib
|
||||||
no.dependencies=false
|
|
||||||
persistence.xml.dir=${conf.dir}
|
persistence.xml.dir=${conf.dir}
|
||||||
platform.active=default_platform
|
platform.active=default_platform
|
||||||
resource.dir=setup
|
resource.dir=setup
|
||||||
|
|||||||
@@ -21,10 +21,10 @@
|
|||||||
</web-module-libraries>
|
</web-module-libraries>
|
||||||
<web-module-additional-libraries/>
|
<web-module-additional-libraries/>
|
||||||
<source-roots>
|
<source-roots>
|
||||||
<root id="src.dir" name="Source Packages"/>
|
<root id="src.dir"/>
|
||||||
</source-roots>
|
</source-roots>
|
||||||
<test-roots>
|
<test-roots>
|
||||||
<root id="test.src.dir" name="Test Packages"/>
|
<root id="test.src.dir"/>
|
||||||
</test-roots>
|
</test-roots>
|
||||||
</data>
|
</data>
|
||||||
</configuration>
|
</configuration>
|
||||||
|
|||||||
BIN
proj/AP31-Projet1.war
Normal file
BIN
proj/AP31-Projet1.war
Normal file
Binary file not shown.
@@ -1,22 +0,0 @@
|
|||||||
/*
|
|
||||||
* To change this license header, choose License Headers in Project Properties.
|
|
||||||
* To change this template file, choose Tools | Templates
|
|
||||||
* and open the template in the editor.
|
|
||||||
*/
|
|
||||||
package bdd;
|
|
||||||
|
|
||||||
import java.sql.Connection;
|
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @author thomas.millot
|
|
||||||
*/
|
|
||||||
public class ClientMysql {
|
|
||||||
|
|
||||||
private Connection theConnection;
|
|
||||||
|
|
||||||
public ClientMysql()
|
|
||||||
{
|
|
||||||
theConnection = Connexion.getConnect("localhost", "sdis29", "admin", "minda");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,4 +1,5 @@
|
|||||||
package bdd;
|
package bdd;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Connexion.java
|
Connexion.java
|
||||||
Classe permettant d'établir une connexion avec une base de données mySQL
|
Classe permettant d'établir une connexion avec une base de données mySQL
|
||||||
@@ -7,10 +8,12 @@ import java.sql.Connection;
|
|||||||
import java.sql.DriverManager;
|
import java.sql.DriverManager;
|
||||||
|
|
||||||
public class Connexion {
|
public class Connexion {
|
||||||
|
|
||||||
private static Connection connect; // Variable de connexion
|
private static Connection connect; // Variable de connexion
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructeur
|
* Constructeur
|
||||||
|
*
|
||||||
* @param serveur nom du serveur, localhost si local
|
* @param serveur nom du serveur, localhost si local
|
||||||
* @param bdd nom de la base de données
|
* @param bdd nom de la base de données
|
||||||
* @param nomUtil nom utilisateur
|
* @param nomUtil nom utilisateur
|
||||||
@@ -44,7 +47,9 @@ public class Connexion {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Retourne la connection établie (Création d'une connection si elle n'existe pas)
|
* Retourne la connection établie (Création d'une connection si elle
|
||||||
|
* n'existe pas)
|
||||||
|
*
|
||||||
* @param serveur nom du serveur, localhost si local
|
* @param serveur nom du serveur, localhost si local
|
||||||
* @param bdd nom de la base de données
|
* @param bdd nom de la base de données
|
||||||
* @param nomUtil nom utilisateur
|
* @param nomUtil nom utilisateur
|
||||||
|
|||||||
186
src/java/bdd/PompierMysql.java
Normal file
186
src/java/bdd/PompierMysql.java
Normal file
@@ -0,0 +1,186 @@
|
|||||||
|
/*
|
||||||
|
* To change this license header, choose License Headers in Project Properties.
|
||||||
|
* To change this template file, choose Tools | Templates
|
||||||
|
* and open the template in the editor.
|
||||||
|
*/
|
||||||
|
package bdd;
|
||||||
|
|
||||||
|
import com.mysql.cj.xdevapi.Client;
|
||||||
|
import com.test.beans.Pompier;
|
||||||
|
import com.test.forms.MD5;
|
||||||
|
import jakarta.servlet.http.HttpServletRequest;
|
||||||
|
import java.net.http.HttpRequest;
|
||||||
|
import java.sql.Connection;
|
||||||
|
import java.sql.PreparedStatement;
|
||||||
|
import java.sql.ResultSet;
|
||||||
|
import java.sql.SQLException;
|
||||||
|
import java.sql.Statement;
|
||||||
|
import java.util.ArrayList;
|
||||||
|
import java.util.logging.Level;
|
||||||
|
import java.util.logging.Logger;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @author thomas.millot
|
||||||
|
*/
|
||||||
|
public class PompierMysql {
|
||||||
|
|
||||||
|
private Connection theConnection;
|
||||||
|
private Pompier unPompier;
|
||||||
|
|
||||||
|
public PompierMysql() {
|
||||||
|
theConnection = Connexion.getConnect("localhost", "sdis29", "admin", "minda");
|
||||||
|
}
|
||||||
|
|
||||||
|
public ArrayList<Pompier> readAll() {
|
||||||
|
ArrayList<Pompier> lesPompiers = new ArrayList<>();
|
||||||
|
|
||||||
|
try {
|
||||||
|
Statement stmt = theConnection.createStatement();
|
||||||
|
ResultSet resultQ = null;
|
||||||
|
resultQ = stmt.executeQuery("SELECT * FROM pompier");
|
||||||
|
while (resultQ.next()) {
|
||||||
|
unPompier = new Pompier(resultQ.getInt("id"),
|
||||||
|
resultQ.getString("nom"),
|
||||||
|
resultQ.getString("prenom"),
|
||||||
|
resultQ.getString("statut"),
|
||||||
|
resultQ.getString("typePers"),
|
||||||
|
resultQ.getString("mail"),
|
||||||
|
resultQ.getString("login"),
|
||||||
|
resultQ.getString("mdp"),
|
||||||
|
resultQ.getString("adresse"),
|
||||||
|
resultQ.getInt("cp"),
|
||||||
|
resultQ.getString("ville"),
|
||||||
|
resultQ.getInt("bip"),
|
||||||
|
resultQ.getInt("nbGardes"),
|
||||||
|
resultQ.getInt("grade"),
|
||||||
|
resultQ.getString("commentaire"),
|
||||||
|
resultQ.getString("dateEnreg"),
|
||||||
|
resultQ.getString("dateModif"));
|
||||||
|
lesPompiers.add(unPompier);
|
||||||
|
}
|
||||||
|
resultQ.close();
|
||||||
|
stmt.close();
|
||||||
|
//theConnection.close();
|
||||||
|
} catch (SQLException ex) {
|
||||||
|
System.out.println("SQLException : " + ex.getMessage());
|
||||||
|
System.out.println("SQLState : " + ex.getSQLState());
|
||||||
|
System.out.println("Code erreur : " + ex.getErrorCode());
|
||||||
|
}
|
||||||
|
|
||||||
|
return lesPompiers;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Creation du client passé en paramètre dans la table client Requête non
|
||||||
|
* préparée
|
||||||
|
*
|
||||||
|
* @param c objet de type Client (sans identifiant)
|
||||||
|
* @return int : id du client créé
|
||||||
|
*/
|
||||||
|
public int create(Pompier p) {
|
||||||
|
int id = -1;
|
||||||
|
try {
|
||||||
|
Statement stmt = theConnection.createStatement();
|
||||||
|
int status = stmt.executeUpdate(
|
||||||
|
"INSERT INTO pompier (nom, prenom, statut, mail, login, mdp, adresse, cp, ville, bip, nbGardes, grade, commentaire, dateEnreg, dateModif) "
|
||||||
|
+ "VALUES ('" + p.getNom() + "', '"
|
||||||
|
+ p.getPrenom() + "', '"
|
||||||
|
+ p.getStatut() + "', "
|
||||||
|
+ p.getMail() + ", '"
|
||||||
|
+ p.getLogin() + "', '"
|
||||||
|
+ p.getMdp() + "', '"
|
||||||
|
+ p.getAdresse() + "', '"
|
||||||
|
+ p.getVille() + "', '"
|
||||||
|
+ p.getBip() + "', '"
|
||||||
|
+ p.getNbGardes() + "', '"
|
||||||
|
+ p.getGrade() + "', '"
|
||||||
|
+ p.getCommentaire() + "', '"
|
||||||
|
+ p.getDateEnreg() + "', '"
|
||||||
|
+ p.getDateModif() + "');",
|
||||||
|
Statement.RETURN_GENERATED_KEYS);
|
||||||
|
|
||||||
|
// Recherche de l'identifiant du client créé
|
||||||
|
if (status > 0) {
|
||||||
|
ResultSet result = stmt.getGeneratedKeys();
|
||||||
|
if (result.first()) {
|
||||||
|
id = result.getInt(1);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
} catch (SQLException ex) {
|
||||||
|
System.out.println("SQLException : " + ex.getMessage());
|
||||||
|
System.out.println("SQLState : " + ex.getSQLState());
|
||||||
|
System.out.println("Code erreur : " + ex.getErrorCode());
|
||||||
|
}
|
||||||
|
return id;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Creation du client passé en paramètre dans la table client Requête
|
||||||
|
* préparée
|
||||||
|
*
|
||||||
|
* @param c objet de type Client (sans identifiant)
|
||||||
|
* @return int : id du client créé
|
||||||
|
*/
|
||||||
|
public int createRP(Pompier p) {
|
||||||
|
int id = -1;
|
||||||
|
try {
|
||||||
|
PreparedStatement stmt = null;
|
||||||
|
String sql = "INSERT INTO pompier (nom, prenom, statut, mail, login, mdp, adresse, cp, ville, bip, nbGardes, grade, commentaire, dateEnreg, dateModif) "
|
||||||
|
+ "VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?);";
|
||||||
|
stmt = theConnection.prepareStatement(sql, Statement.RETURN_GENERATED_KEYS);
|
||||||
|
stmt.setString(1, p.getNom());
|
||||||
|
stmt.setString(2, p.getPrenom());
|
||||||
|
stmt.setString(3, p.getStatut());
|
||||||
|
stmt.setString(4, p.getMail());
|
||||||
|
stmt.setString(5, p.getLogin());
|
||||||
|
stmt.setString(6, p.getMdp());
|
||||||
|
stmt.setString(7, p.getAdresse());
|
||||||
|
stmt.setString(8, p.getVille());
|
||||||
|
stmt.setInt(9, p.getBip());
|
||||||
|
stmt.setInt(10, p.getNbGardes());
|
||||||
|
stmt.setInt(11, p.getGrade());
|
||||||
|
stmt.setString(12, p.getCommentaire());
|
||||||
|
stmt.setString(13, p.getDateEnreg());
|
||||||
|
stmt.setString(14, p.getDateModif());
|
||||||
|
System.out.println("Requête : " + stmt.toString());
|
||||||
|
int status = stmt.executeUpdate();
|
||||||
|
|
||||||
|
// Recherche de l'identifiant du client créé
|
||||||
|
if (status > 0) {
|
||||||
|
ResultSet result = stmt.getGeneratedKeys();
|
||||||
|
if (result.first()) {
|
||||||
|
id = result.getInt(1);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
} catch (SQLException ex) {
|
||||||
|
System.out.println("SQLException : " + ex.getMessage());
|
||||||
|
System.out.println("SQLState : " + ex.getSQLState());
|
||||||
|
System.out.println("Code erreur : " + ex.getErrorCode());
|
||||||
|
}
|
||||||
|
return id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public boolean readPompier(HttpServletRequest request) {
|
||||||
|
boolean reponse = false;
|
||||||
|
Statement stmt;
|
||||||
|
String userSaisi = request.getParameter("ztPseudo");
|
||||||
|
String mdpSaisi = request.getParameter("ztMDP");
|
||||||
|
String mdpChiffre = MD5.encode(mdpSaisi);
|
||||||
|
System.out.println("userSaisi : "+ userSaisi);
|
||||||
|
System.out.println("mdpSaisi : "+ mdpChiffre);
|
||||||
|
try {
|
||||||
|
System.out.println("Select * FROM pompier WHERE login = '"+userSaisi+"' AND mdp = '"+mdpChiffre+"';");
|
||||||
|
stmt = theConnection.createStatement();
|
||||||
|
ResultSet resultQ = null;
|
||||||
|
resultQ = stmt.executeQuery("Select * FROM pompier WHERE login = '"+userSaisi+"' AND mdp = '"+mdpChiffre+"';");
|
||||||
|
reponse = resultQ.next();
|
||||||
|
} catch (SQLException ex) {
|
||||||
|
Logger.getLogger(PompierMysql.class.getName()).log(Level.SEVERE, null, ex);
|
||||||
|
}
|
||||||
|
|
||||||
|
return reponse;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
306
src/java/com/test/beans/Pompier.java
Normal file
306
src/java/com/test/beans/Pompier.java
Normal file
@@ -0,0 +1,306 @@
|
|||||||
|
/*
|
||||||
|
* To change this license header, choose License Headers in Project Properties.
|
||||||
|
* To change this template file, choose Tools | Templates
|
||||||
|
* and open the template in the editor.
|
||||||
|
*/
|
||||||
|
package com.test.beans;
|
||||||
|
|
||||||
|
import java.util.Objects;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @author thomas.millot
|
||||||
|
*/
|
||||||
|
public class Pompier {
|
||||||
|
|
||||||
|
private int id;
|
||||||
|
private int idCaserne;
|
||||||
|
private String nom;
|
||||||
|
private String prenom;
|
||||||
|
private String Statut;
|
||||||
|
private String typePers;
|
||||||
|
private String mail;
|
||||||
|
private String login;
|
||||||
|
private String mdp;
|
||||||
|
private String adresse;
|
||||||
|
private int cp;
|
||||||
|
private String ville;
|
||||||
|
private int bip;
|
||||||
|
private int nbGardes;
|
||||||
|
private int grade;
|
||||||
|
private String commentaire;
|
||||||
|
private String dateEnreg;
|
||||||
|
private String dateModif;
|
||||||
|
|
||||||
|
public Pompier(int id, int idCaserne, String nom, String prenom, String Statut, String typePers, String mail, String login, String mdp, String adresse, int cp, String ville, int bip, int nbGardes, int grade, String commentaire, String dateEnreg, String dateModif) {
|
||||||
|
this.id = id;
|
||||||
|
this.idCaserne = idCaserne;
|
||||||
|
this.nom = nom;
|
||||||
|
this.prenom = prenom;
|
||||||
|
this.Statut = Statut;
|
||||||
|
this.typePers = typePers;
|
||||||
|
this.mail = mail;
|
||||||
|
this.login = login;
|
||||||
|
this.mdp = mdp;
|
||||||
|
this.adresse = adresse;
|
||||||
|
this.cp = cp;
|
||||||
|
this.ville = ville;
|
||||||
|
this.bip = bip;
|
||||||
|
this.nbGardes = nbGardes;
|
||||||
|
this.grade = grade;
|
||||||
|
this.commentaire = commentaire;
|
||||||
|
this.dateEnreg = dateEnreg;
|
||||||
|
this.dateModif = dateModif;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Pompier(int aInt, String string, String string0, String string1, String string2, int aInt0, String string3, String string4, String string5, String string6, String string7, String string8) {
|
||||||
|
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
|
||||||
|
}
|
||||||
|
|
||||||
|
public Pompier(int aInt, String string, String string0, String string1, String string2, String string3, String string4, String string5, String string6, int aInt0, String string7, int aInt1, int aInt2, int aInt3, String string8, String string9, String string10) {
|
||||||
|
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
|
||||||
|
}
|
||||||
|
|
||||||
|
public int getId() {
|
||||||
|
return id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setId(int id) {
|
||||||
|
this.id = id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public int getIdCaserne() {
|
||||||
|
return idCaserne;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setIdCaserne(int idCaserne) {
|
||||||
|
this.idCaserne = idCaserne;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getNom() {
|
||||||
|
return nom;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setNom(String nom) {
|
||||||
|
this.nom = nom;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPrenom() {
|
||||||
|
return prenom;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPrenom(String prenom) {
|
||||||
|
this.prenom = prenom;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getStatut() {
|
||||||
|
return Statut;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setStatut(String Statut) {
|
||||||
|
this.Statut = Statut;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getTypePers() {
|
||||||
|
return typePers;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTypePers(String typePers) {
|
||||||
|
this.typePers = typePers;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getMail() {
|
||||||
|
return mail;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setMail(String mail) {
|
||||||
|
this.mail = mail;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getLogin() {
|
||||||
|
return login;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setLogin(String login) {
|
||||||
|
this.login = login;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getMdp() {
|
||||||
|
return mdp;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setMdp(String mdp) {
|
||||||
|
this.mdp = mdp;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getAdresse() {
|
||||||
|
return adresse;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setAdresse(String adresse) {
|
||||||
|
this.adresse = adresse;
|
||||||
|
}
|
||||||
|
|
||||||
|
public int getCp() {
|
||||||
|
return cp;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCp(int cp) {
|
||||||
|
this.cp = cp;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getVille() {
|
||||||
|
return ville;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setVille(String ville) {
|
||||||
|
this.ville = ville;
|
||||||
|
}
|
||||||
|
|
||||||
|
public int getBip() {
|
||||||
|
return bip;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setBip(int bip) {
|
||||||
|
this.bip = bip;
|
||||||
|
}
|
||||||
|
|
||||||
|
public int getNbGardes() {
|
||||||
|
return nbGardes;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setNbGardes(int nbGardes) {
|
||||||
|
this.nbGardes = nbGardes;
|
||||||
|
}
|
||||||
|
|
||||||
|
public int getGrade() {
|
||||||
|
return grade;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setGrade(int grade) {
|
||||||
|
this.grade = grade;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getCommentaire() {
|
||||||
|
return commentaire;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setCommentaire(String commentaire) {
|
||||||
|
this.commentaire = commentaire;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDateEnreg() {
|
||||||
|
return dateEnreg;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDateEnreg(String dateEnreg) {
|
||||||
|
this.dateEnreg = dateEnreg;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getDateModif() {
|
||||||
|
return dateModif;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setDateModif(String dateModif) {
|
||||||
|
this.dateModif = dateModif;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
int hash = 5;
|
||||||
|
hash = 89 * hash + this.id;
|
||||||
|
hash = 89 * hash + this.idCaserne;
|
||||||
|
hash = 89 * hash + Objects.hashCode(this.nom);
|
||||||
|
hash = 89 * hash + Objects.hashCode(this.prenom);
|
||||||
|
hash = 89 * hash + Objects.hashCode(this.Statut);
|
||||||
|
hash = 89 * hash + Objects.hashCode(this.typePers);
|
||||||
|
hash = 89 * hash + Objects.hashCode(this.mail);
|
||||||
|
hash = 89 * hash + Objects.hashCode(this.login);
|
||||||
|
hash = 89 * hash + Objects.hashCode(this.mdp);
|
||||||
|
hash = 89 * hash + Objects.hashCode(this.adresse);
|
||||||
|
hash = 89 * hash + this.cp;
|
||||||
|
hash = 89 * hash + Objects.hashCode(this.ville);
|
||||||
|
hash = 89 * hash + this.bip;
|
||||||
|
hash = 89 * hash + this.nbGardes;
|
||||||
|
hash = 89 * hash + this.grade;
|
||||||
|
hash = 89 * hash + Objects.hashCode(this.commentaire);
|
||||||
|
hash = 89 * hash + Objects.hashCode(this.dateEnreg);
|
||||||
|
hash = 89 * hash + Objects.hashCode(this.dateModif);
|
||||||
|
return hash;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(Object obj) {
|
||||||
|
if (this == obj) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
if (obj == null) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
if (getClass() != obj.getClass()) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
final Pompier other = (Pompier) obj;
|
||||||
|
if (this.id != other.id) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
if (this.idCaserne != other.idCaserne) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
if (this.cp != other.cp) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
if (this.bip != other.bip) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
if (this.nbGardes != other.nbGardes) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
if (this.grade != other.grade) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
if (!Objects.equals(this.nom, other.nom)) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
if (!Objects.equals(this.prenom, other.prenom)) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
if (!Objects.equals(this.Statut, other.Statut)) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
if (!Objects.equals(this.typePers, other.typePers)) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
if (!Objects.equals(this.mail, other.mail)) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
if (!Objects.equals(this.login, other.login)) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
if (!Objects.equals(this.mdp, other.mdp)) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
if (!Objects.equals(this.adresse, other.adresse)) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
if (!Objects.equals(this.ville, other.ville)) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
if (!Objects.equals(this.commentaire, other.commentaire)) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
if (!Objects.equals(this.dateEnreg, other.dateEnreg)) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
if (!Objects.equals(this.dateModif, other.dateModif)) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
return "Pompier{" + "id=" + id + ", idCaserne=" + idCaserne + ", nom=" + nom + ", prenom=" + prenom + ", Statut=" + Statut + ", typePers=" + typePers + ", mail=" + mail + ", login=" + login + ", mdp=" + mdp + ", adresse=" + adresse + ", cp=" + cp + ", ville=" + ville + ", bip=" + bip + ", nbGardes=" + nbGardes + ", grade=" + grade + ", commentaire=" + commentaire + ", dateEnreg=" + dateEnreg + ", dateModif=" + dateModif + '}';
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@@ -6,11 +6,13 @@
|
|||||||
package com.test.beans;
|
package com.test.beans;
|
||||||
|
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @author thomas.millot
|
* @author thomas.millot
|
||||||
*/
|
*/
|
||||||
public class User {
|
public class User {
|
||||||
|
|
||||||
private String pseudo;
|
private String pseudo;
|
||||||
private String mdp;
|
private String mdp;
|
||||||
|
|
||||||
|
|||||||
37
src/java/com/test/forms/AuthentifForm.java
Normal file
37
src/java/com/test/forms/AuthentifForm.java
Normal file
@@ -0,0 +1,37 @@
|
|||||||
|
/*
|
||||||
|
* To change this license header, choose License Headers in Project Properties.
|
||||||
|
* To change this template file, choose Tools | Templates
|
||||||
|
* and open the template in the editor.
|
||||||
|
*/
|
||||||
|
package com.test.forms;
|
||||||
|
|
||||||
|
import bdd.PompierMysql;
|
||||||
|
import com.test.beans.User;
|
||||||
|
import jakarta.servlet.http.HttpServletRequest;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @author thomas.millot
|
||||||
|
*/
|
||||||
|
public class AuthentifForm {
|
||||||
|
|
||||||
|
private String resultat;
|
||||||
|
|
||||||
|
public String getResultat() {
|
||||||
|
return resultat;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setResultat(String resultat) {
|
||||||
|
this.resultat = resultat;
|
||||||
|
}
|
||||||
|
|
||||||
|
public boolean authentifPompier(HttpServletRequest request)
|
||||||
|
{
|
||||||
|
PompierMysql pms = new PompierMysql();
|
||||||
|
boolean reponse = pms.readPompier(request);
|
||||||
|
resultat = reponse ?"": "login ou mot de passe incorrect";
|
||||||
|
request.setAttribute("message", resultat);
|
||||||
|
return reponse;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
36
src/java/com/test/forms/MD5.java
Normal file
36
src/java/com/test/forms/MD5.java
Normal file
@@ -0,0 +1,36 @@
|
|||||||
|
/*
|
||||||
|
* To change this license header, choose License Headers in Project Properties.
|
||||||
|
* To change this template file, choose Tools | Templates
|
||||||
|
* and open the template in the editor.
|
||||||
|
*/
|
||||||
|
package com.test.forms;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @author sio
|
||||||
|
*/
|
||||||
|
|
||||||
|
import java.security.MessageDigest;
|
||||||
|
import java.security.NoSuchAlgorithmException;
|
||||||
|
import java.util.logging.Level;
|
||||||
|
import java.util.logging.Logger;
|
||||||
|
|
||||||
|
public abstract class MD5 {
|
||||||
|
|
||||||
|
public static String encode(String uneChaine){
|
||||||
|
MessageDigest md = null;
|
||||||
|
try {
|
||||||
|
md = MessageDigest.getInstance("MD5");
|
||||||
|
} catch (NoSuchAlgorithmException ex) {
|
||||||
|
throw new IllegalArgumentException(ex);
|
||||||
|
}
|
||||||
|
md.update(uneChaine.getBytes());
|
||||||
|
byte[] digest = md.digest();
|
||||||
|
//myHash = DatatypeConverter.printHexBinary(digest).toLowerCase();
|
||||||
|
StringBuilder sb = new StringBuilder();
|
||||||
|
for (byte b : digest) {
|
||||||
|
sb.append(String.format("%02x", b));
|
||||||
|
}
|
||||||
|
return sb.toString();
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -5,6 +5,7 @@
|
|||||||
*/
|
*/
|
||||||
package com.test.servlets;
|
package com.test.servlets;
|
||||||
|
|
||||||
|
import com.test.forms.AuthentifForm;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.io.PrintWriter;
|
import java.io.PrintWriter;
|
||||||
import jakarta.servlet.ServletException;
|
import jakarta.servlet.ServletException;
|
||||||
@@ -71,7 +72,19 @@ public class AuthentifServlet extends HttpServlet {
|
|||||||
@Override
|
@Override
|
||||||
protected void doPost(HttpServletRequest request, HttpServletResponse response)
|
protected void doPost(HttpServletRequest request, HttpServletResponse response)
|
||||||
throws ServletException, IOException {
|
throws ServletException, IOException {
|
||||||
processRequest(request, response);
|
// Création de l'objet leControle de type AuthentifForm
|
||||||
|
AuthentifForm leControle = new AuthentifForm();
|
||||||
|
// Appel de la méthode authentifPompier
|
||||||
|
if(leControle.authentifPompier(request))
|
||||||
|
{
|
||||||
|
getServletContext().getRequestDispatcher("/WEB-INF/ProfilJSP.jsp")
|
||||||
|
.forward(request, response);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
getServletContext().getRequestDispatcher("/WEB-INF/AuthentificationJSP.jsp")
|
||||||
|
.forward(request, response);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -30,15 +30,15 @@ public class ProfilServlet extends HttpServlet {
|
|||||||
protected void processRequest(HttpServletRequest request, HttpServletResponse response)
|
protected void processRequest(HttpServletRequest request, HttpServletResponse response)
|
||||||
throws ServletException, IOException {
|
throws ServletException, IOException {
|
||||||
response.setContentType("text/html;charset=UTF-8");
|
response.setContentType("text/html;charset=UTF-8");
|
||||||
try ( PrintWriter out = response.getWriter()) {
|
try ( PrintWriter out = response.getWriter())
|
||||||
/* TODO output your page here. You may use following sample code. */
|
{
|
||||||
out.println("<!DOCTYPE html>");
|
out.println("<!DOCTYPE html>");
|
||||||
out.println("<html>");
|
out.println("<html>");
|
||||||
out.println("<head>");
|
out.println("<head>");
|
||||||
out.println("<title>Servlet ProfilServlet</title>");
|
out.println("<title>Servlet ProfilServlets</title>");
|
||||||
out.println("</head>");
|
out.println("</head>");
|
||||||
out.println("<body>");
|
out.println("<body>");
|
||||||
out.println("<h1>Servlet ProfilServlet at " + request.getContextPath() + "</h1>");
|
out.println("<h1>Servlet ProfilServlets at " + request.getContextPath() + "</h1>");
|
||||||
out.println("</body>");
|
out.println("</body>");
|
||||||
out.println("</html>");
|
out.println("</html>");
|
||||||
}
|
}
|
||||||
@@ -71,7 +71,8 @@ public class ProfilServlet extends HttpServlet {
|
|||||||
@Override
|
@Override
|
||||||
protected void doPost(HttpServletRequest request, HttpServletResponse response)
|
protected void doPost(HttpServletRequest request, HttpServletResponse response)
|
||||||
throws ServletException, IOException {
|
throws ServletException, IOException {
|
||||||
processRequest(request, response);
|
getServletContext().getRequestDispatcher("/WEB-INF/ProfilJSP.jsp")
|
||||||
|
.forward(request, response);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -1,17 +1,31 @@
|
|||||||
<%--
|
<%--
|
||||||
Document : authentificationJSP
|
Document : authentificationJSP
|
||||||
Created on : 18 oct. 2021, 11:09:26
|
Created on : 18 oct. 2021, 11:09:26
|
||||||
Author : thomas.millot
|
Author : Millot.Thomas
|
||||||
--%>
|
--%>
|
||||||
|
<%@include file="jspf/enteteJSPF.jspf" %>
|
||||||
|
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
|
||||||
|
<%@page import="com.test.forms.AuthentifForm" %>
|
||||||
|
|
||||||
<%@page contentType="text/html" pageEncoding="UTF-8"%>
|
<!-- Affichage du formulaire si l'utilisateur ne s'est pas encore authentifi<66> -->
|
||||||
<!DOCTYPE html>
|
<div id="contenu">
|
||||||
<html>
|
<form name="frmIdentification" method="POST" action="Authentif">
|
||||||
<head>
|
<h2>Merci de vous identifier pour acceder aux dossiers</h2>
|
||||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
<fieldset><legend>Identification utilisateur</legend>
|
||||||
<title>JSP Page</title>
|
<br /><br />
|
||||||
</head>
|
<label for="nom">Nom du compte</label>
|
||||||
<body>
|
<input type="text" name="ztPseudo" size="30" maxlength="45" placeholder="Entrez votre nom d'Utilisateur">
|
||||||
<h1>Hello World!</h1>
|
</p>
|
||||||
</body>
|
<p>
|
||||||
|
<label for="mdp">Mot de passe</label>
|
||||||
|
<input type="password" name="ztMDP" size="30" maxlength="45" placeholder="Entrez votre Mot de Passe">
|
||||||
|
</p><br /><br />
|
||||||
|
<input type="submit" name="valider" value="Valider">
|
||||||
|
<input type="reset" name="annuler" value="Annuler">
|
||||||
|
</p>
|
||||||
|
<p>${message}</p>
|
||||||
|
</fieldset>
|
||||||
|
</form>
|
||||||
|
<br/><br/>
|
||||||
|
</div>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
@@ -1,17 +1,36 @@
|
|||||||
<%--
|
<%--
|
||||||
Document : ModifProfilJSP
|
Document : ModifProfilJSP
|
||||||
Created on : 18 oct. 2021, 11:10:01
|
Created on : 18 oct. 2021, 11:10:01
|
||||||
Author : thomas.millot
|
Author : Millot.thomas
|
||||||
--%>
|
--%>
|
||||||
|
<%@include file="jspf/enteteJSPF.jspf" %>
|
||||||
<%@page contentType="text/html" pageEncoding="UTF-8"%>
|
<%@page contentType="text/html" pageEncoding="UTF-8"%>
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<form name="Profil" method="POST" action="ProfilJSP.jsp">
|
||||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
<table style='border: 0px solid white;'>
|
||||||
<title>JSP Page</title>
|
<tr>
|
||||||
</head>
|
<td style='border :0px;'>
|
||||||
<body>
|
<fieldset><legend>Coordonnées Pompier</legend>
|
||||||
<h1>Hello World!</h1>
|
<table>
|
||||||
</body>
|
<tr><th>Nom : </th><td><input type="text" name="ztNom" size="20" maxlength="30"></td></tr>
|
||||||
|
<tr><th>Prénom : </th><td><input type="text" name="ztPrenom" size="20" maxlength="30"></td></tr>
|
||||||
|
<tr><th>Adresse : </th><td><input type="text" name="ztAdr" size="20" maxlength="30"></td></tr>
|
||||||
|
<tr><th>Ville : </th><td><input type="text"name="ztVille" size="20" maxlength="30"></td></tr>
|
||||||
|
<tr><th>Code postal : </th><td><input type="text" name="ztCp" size="20" maxlength="30"></td></tr>
|
||||||
|
<tr><th>Téléphone : </th><td><input type="text" name="ztTel" size="20" maxlength="30"></td></tr>
|
||||||
|
<tr><th>Mail : </th><td><input type="text" name="ztMail" size="20" maxlength="30"></td></tr>
|
||||||
|
<tr><th>Statut : </th><td><input readonly type="text" name="ztStatut" size="20" maxlength="30"></td></tr>
|
||||||
|
<tr><th>Grade : </th><td><input readonly type="text" name="ztGrade" size="20" maxlength="30"></td></tr>
|
||||||
|
</table>
|
||||||
|
</fieldset>
|
||||||
|
<fieldset><legend>Coordonnées Employeur</legend>
|
||||||
|
<table>
|
||||||
|
<tr><th>Nom employeur : </th><td><input type="text" name="ztNomEmp" size="20" maxlength="30"></td></tr>
|
||||||
|
<tr><th>Téléphone employeur : </th><td><input type="text" name="ztTelEmp" size="20" maxlength="30"></td></tr>
|
||||||
|
<tr><th>Adresse employeur : </th><td><input type="text" name="ztadrEmp" size="20" maxlength="30"></td></tr>
|
||||||
|
<tr><th>Mail employeur : </th><td><input type="text" name="ztMailEmp" size="20" maxlength="30"></td></tr>
|
||||||
|
</table>
|
||||||
|
</fieldset>
|
||||||
|
<input type="button" name="button" onclick="window.location='http://localhost:8080/AP31-Projet1/Profil'" value="Valider les modification">
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
@@ -1,17 +1,32 @@
|
|||||||
<%--
|
<%@include file="jspf/enteteJSPF.jspf" %>
|
||||||
Document : ProfilJSP
|
<br /><br />
|
||||||
Created on : 18 oct. 2021, 11:09:44
|
<form name="frmModifProfil" method="POST" action="ModifProfilJSP.jsp">
|
||||||
Author : thomas.millot
|
<table style='border: 0px solid white;'>
|
||||||
--%>
|
<tr>
|
||||||
|
<td style='border :0px;'>
|
||||||
<%@page contentType="text/html" pageEncoding="UTF-8"%>
|
<fieldset><legend>Coordonn<6E>es Pompier</legend>
|
||||||
<!DOCTYPE html>
|
<table>
|
||||||
<html>
|
<tr><th>Nom : </th><td><input type="text" name="ztNom" size="20" maxlength="30"></td></tr>
|
||||||
<head>
|
<tr><th>Pr<50>nom : </th><td><input type="text" name="ztPrenom" size="20" maxlength="30"></td></tr>
|
||||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
<tr><th>Adresse : </th><td><input type="text" name="ztAdr" size="20" maxlength="30"></td></tr>
|
||||||
<title>JSP Page</title>
|
<tr><th>Ville : </th><td><input type="text"name="ztVille" size="20" maxlength="30"></td></tr>
|
||||||
</head>
|
<tr><th>Code postal : </th><td><input type="text" name="ztCp" size="20" maxlength="30"></td></tr>
|
||||||
<body>
|
<tr><th>T<>l<EFBFBD>phone : </th><td><input type="text" name="ztTel" size="20" maxlength="30"></td></tr>
|
||||||
<h1>Hello World!</h1>
|
<tr><th>Mail : </th><td><input type="text" name="ztMail" size="20" maxlength="30"></td></tr>
|
||||||
</body>
|
<tr><th>Statut : </th><td><input readonly type="text" name="ztStatut" size="20" maxlength="30"></td></tr>
|
||||||
</html>
|
<tr><th>Grade : </th><td><input readonly type="text" name="ztGrade" size="20" maxlength="30"></td></tr>
|
||||||
|
</table>
|
||||||
|
</fieldset>
|
||||||
|
<fieldset><legend>Coordonn<6E>es Employeur</legend>
|
||||||
|
<table>
|
||||||
|
<tr><th>Nom employeur : </th><td><input type="text" name="ztNomEmp" size="20" maxlength="30"></td></tr>
|
||||||
|
<tr><th>T<>l<EFBFBD>phone employeur : </th><td><input type="text" name="ztTelEmp" size="20" maxlength="30"></td></tr>
|
||||||
|
<tr><th>Adresse employeur : </th><td><input type="text" name="ztadrEmp" size="20" maxlength="30"></td></tr>
|
||||||
|
<tr><th>Mail employeur : </th><td><input type="text" name="ztMailEmp" size="20" maxlength="30"></td></tr>
|
||||||
|
</table>
|
||||||
|
</fieldset>
|
||||||
|
<input type="button" name="button" onclick="window.location='http://localhost:8080/AP31-Projet1/Modif'" value="Modification du profil">
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</form>
|
||||||
@@ -1,3 +1,13 @@
|
|||||||
<%-- any content can be specified here e.g.: --%>
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
||||||
<%@ page pageEncoding="UTF-8" %>
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||||
<h2>Hello World!</h2>
|
|
||||||
|
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" lang="fr">
|
||||||
|
<head>
|
||||||
|
<<link rel="stylesheet" href="css/newcss.css"/>
|
||||||
|
<title>SDIS29</title>
|
||||||
|
</head>
|
||||||
|
<div id="page">
|
||||||
|
<div id="entete">
|
||||||
|
<img src="./images/LogoSDIS29.jpg" id="logo" alt="SDIS29" title="SDIS 29" align='left' style="width: 200px; height: 180px";
|
||||||
|
}/>
|
||||||
|
<!-- fin de l'ent<6E>te -->
|
||||||
|
|||||||
59
web/css/newcss.css
Normal file
59
web/css/newcss.css
Normal file
@@ -0,0 +1,59 @@
|
|||||||
|
/*
|
||||||
|
To change this license header, choose License Headers in Project Properties.
|
||||||
|
To change this template file, choose Tools | Templates
|
||||||
|
and open the template in the editor.
|
||||||
|
*/
|
||||||
|
/*
|
||||||
|
Created on : 21 oct. 2021, 16:37:16
|
||||||
|
Author : elliass.chelloug
|
||||||
|
*/
|
||||||
|
body
|
||||||
|
{
|
||||||
|
background-color: #596b6e;
|
||||||
|
background-repeat: repeat-x;
|
||||||
|
margin:0% 0%;
|
||||||
|
padding : 0.9em;
|
||||||
|
font-family:"Trebuchet MS",Verdana,Geneva,Arial,Helvetica,sans-serif;
|
||||||
|
font-size: 0.9em;
|
||||||
|
}
|
||||||
|
#contenu
|
||||||
|
{
|
||||||
|
border: none;
|
||||||
|
padding: 2.1em;
|
||||||
|
background-color: white;
|
||||||
|
border-left : groove 0.8em #980101;
|
||||||
|
margin-top : 1.1em;
|
||||||
|
margin-left: 82px;
|
||||||
|
min-height:27em;
|
||||||
|
height:27em;
|
||||||
|
}
|
||||||
|
piedForm
|
||||||
|
{
|
||||||
|
border-bottom-width : 0.1em;
|
||||||
|
border-left-width : 0.1em;
|
||||||
|
border-right-width : 0.1em;
|
||||||
|
border-top-width : 0em;
|
||||||
|
border-style : solid;
|
||||||
|
border-color : #000;
|
||||||
|
text-align:right ;
|
||||||
|
width : 95%;
|
||||||
|
margin-top:0em;
|
||||||
|
}
|
||||||
|
form
|
||||||
|
{
|
||||||
|
margin-bottom:1em;
|
||||||
|
}
|
||||||
|
corpsForm legend
|
||||||
|
{
|
||||||
|
font-weight:bold;
|
||||||
|
font-size:1.2em;
|
||||||
|
}
|
||||||
|
corpsForm label
|
||||||
|
{
|
||||||
|
float: left;
|
||||||
|
text-align:right;
|
||||||
|
width:33%;
|
||||||
|
margin: 0;
|
||||||
|
padding: 0 .5em 0 0;
|
||||||
|
line-height: 1.8;
|
||||||
|
}
|
||||||
BIN
web/images/LogoSDIS29.jpg
Normal file
BIN
web/images/LogoSDIS29.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 54 KiB |
Reference in New Issue
Block a user