Compare commits
14 Commits
0ec37013ed
...
master
Author | SHA1 | Date | |
---|---|---|---|
0d1d4385f9 | |||
30e988a406 | |||
ad2a770dc8 | |||
3cfc1f99e4 | |||
ff03911709 | |||
3eafc8b2ee | |||
e27f948c2a | |||
c7df279eab | |||
1e8257677c | |||
05e4eb1b4c | |||
fa6c0561f6 | |||
e58f60e5ec | |||
eb07fbaac9 | |||
5ebec6b026 |
@ -174,7 +174,7 @@ public class PompierMysql {
|
||||
stmt = theConnection.createStatement();
|
||||
ResultSet resultQ = null;
|
||||
resultQ = stmt.executeQuery("Select * FROM pompier WHERE login = '"+userSaisi+"' AND mdp = '"+mdpChiffre+"';");
|
||||
reponse = resultQ.next();
|
||||
reponse = resultQ.next();
|
||||
} catch (SQLException ex) {
|
||||
Logger.getLogger(PompierMysql.class.getName()).log(Level.SEVERE, null, ex);
|
||||
}
|
||||
|
@ -34,4 +34,4 @@ public class AuthentifForm {
|
||||
return reponse;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
@ -30,8 +30,8 @@ public class ProfilServlet extends HttpServlet {
|
||||
protected void processRequest(HttpServletRequest request, HttpServletResponse response)
|
||||
throws ServletException, IOException {
|
||||
response.setContentType("text/html;charset=UTF-8");
|
||||
try ( PrintWriter out = response.getWriter()) {
|
||||
/* TODO output your page here. You may use following sample code. */
|
||||
try ( PrintWriter out = response.getWriter())
|
||||
{
|
||||
out.println("<!DOCTYPE html>");
|
||||
out.println("<html>");
|
||||
out.println("<head>");
|
||||
|
@ -26,6 +26,6 @@
|
||||
<p>${message}</p>
|
||||
</fieldset>
|
||||
</form>
|
||||
<br /><br/>
|
||||
<br/><br/>
|
||||
</div>
|
||||
</html>
|
||||
|
@ -3,15 +3,34 @@
|
||||
Created on : 18 oct. 2021, 11:10:01
|
||||
Author : Millot.thomas
|
||||
--%>
|
||||
|
||||
<%@include file="jspf/enteteJSPF.jspf" %>
|
||||
<%@page contentType="text/html" pageEncoding="UTF-8"%>
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title>JSP Page</title>
|
||||
</head>
|
||||
<body>
|
||||
<h1>Hello World!</h1>
|
||||
</body>
|
||||
<form name="Profil" method="POST" action="ProfilJSP.jsp">
|
||||
<table style='border: 0px solid white;'>
|
||||
<tr>
|
||||
<td style='border :0px;'>
|
||||
<fieldset><legend>Coordonnées Pompier</legend>
|
||||
<table>
|
||||
<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>
|
||||
|
@ -1,29 +1,32 @@
|
||||
<%@include file="jspf/enteteJSPF.jspf" %>
|
||||
<br /><br />
|
||||
<form name="frmModifProfil" method="POST" action="ModifProfilJSP.jsp">
|
||||
<table style='border: 0px solid white;'>
|
||||
<tr>
|
||||
<td style='border :0px;'>
|
||||
<fieldset><legend>Coordonn<6E>es Pompier</legend>
|
||||
<table>
|
||||
<tr><th>Nom : <input readonly type="text" name="ztNom" size="20" maxlength="30"></th></tr>
|
||||
<tr><th>Pr<50>nom : <input readonly type="text" name="ztPrenom" size="20" maxlength="30"></th></tr>
|
||||
<tr><th>Adresse : <input readonly type="text" name="ztAdr" size="20" maxlength="30"></th></tr>
|
||||
<tr><th>Ville : <input readonly type="text"name="ztVille" size="20" maxlength="30"></th></tr>
|
||||
<tr><th>Code postal : <input readonly type="text" name="ztCp" size="20" maxlength="30"></th></tr>
|
||||
<tr><th>T<>l<EFBFBD>phone : <input readonly type="text" name="ztTel" size="20" maxlength="30"></th></tr>
|
||||
<tr><th>Mail : <input readonly type="text" name="ztMail" size="20" maxlength="30"></th></tr>
|
||||
<tr><th>Statut : <input readonly type="text" name="ztStatut" size="20" maxlength="30"></th></tr>
|
||||
<tr><th>Grade : <input readonly type="text" name="ztGrade" size="20" maxlength="30"></th></tr>
|
||||
<tr><th>Nom : </th><td><input type="text" name="ztNom" size="20" maxlength="30"></td></tr>
|
||||
<tr><th>Pr<50>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<EFBFBD>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<6E>es Employeur</legend>
|
||||
<table>
|
||||
<tr><th>Nom employeur : <input readonly type="text" name="ztNomEmp" size="20" maxlength="30"></th></tr>
|
||||
<tr><th>T<>l<EFBFBD>phone employeur : <input readonly type="text" name="ztTelEmp" size="20" maxlength="30"></th></tr>
|
||||
<tr><th>Adresse employeur : <input readonly type="text" name="ztadrEmp" size="20" maxlength="30"></th></tr>
|
||||
<tr><th>Mail employeur : <input readonly type="text" name="ztMailEmp" size="20" maxlength="30"></th></tr>
|
||||
<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>
|
||||
</table>
|
||||
</form>
|
@ -1,10 +1,13 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
|
||||
<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 -->
|
||||
<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;
|
||||
}
|
Reference in New Issue
Block a user