| Current Path : /home/x/b/o/xbodynamge/www/reservation/dev/ |
| Current File : /home/x/b/o/xbodynamge/www/reservation/dev/fiche_client.php |
<?php
include_once('./inc/init.inc.php');
include_once('./inc/secure.inc.php');
setlocale (LC_TIME, 'fr_FR.utf8','fra');
$sql = "SELECT * from reservation_client where id =".$_SESSION['id_client'];
$req = mysql_query($sql) or die('Erreur SQL !'.mysql_error());
$client = mysql_fetch_assoc($req);
?>
<html>
<head>
<link rel="stylesheet" type="text/css" href="style_client.css">
</head>
<body>
<div class="container_maintable">
<span style="float: right;"><form style="display: inline; margin: 0px;padding: 0px;" action="fiche_client.php" method="POST"><input type="submit" class="normal_bouton" value=" Déconnexion "></form></span>
<table class="main">
<form action="fiche_client_update.php" method="POST">
<?php include_once('./inc/header.php');?>
<tr class="calendrier_alternate1">
<td style="text-align:left; vertical-align:top;">
<div class="titre">Mise à jour de vos données :<br><br></div>
<table class="sub">
<tr class="sub1">
<td style ="width:250px;text-align:right;padding-right:5px;">
Nom :
</td>
<td>
<?php echo $client['nom']; ?>
</td>
</tr>
<tr class="sub1">
<td style ="text-align:right;padding-right:5px;">
Prenom :
</td>
<td>
<?php echo $client['prenom']; ?>
</td>
</tr>
<tr class="sub1">
<td style ="text-align:right;padding-right:5px;">
Email :
</td>
<td>
<input type="text" name="email" value="<?php echo $client['email']; ?>" size="40" maxlenght="250">
</td>
</tr>
<tr class="sub1">
<td style ="text-align:right;padding-right:5px;">
Gsm :
</td>
<td>
<input type="text" name="gsm" value="<?php echo $client['gsm']; ?>" size="40" maxlenght="250">
</td>
</tr>
<tr class="sub1">
<td style ="text-align:right;padding-right:5px;">
Adresse :
</td>
<td>
<input type="text" name="adr" value="<?php echo $client['adr']; ?>" size="40" maxlenght="250">
</td>
</tr>
<tr class="sub1">
<td style ="text-align:right;padding-right:5px;">
CP - Ville :
</td>
<td>
<input type="text" name="cp" value="<?php echo $client['cp']; ?>" size="5" maxlenght="6"> - <input type="text" name="ville" value="<?php echo $client['ville']; ?>" size="26" maxlenght="250">
</td>
</tr>
<tr class="sub1">
<td style ="text-align:right;padding-right:5px;">
Ancien mot de passe :
</td>
<td>
<input type="password" name="ancien_mdp" size="40"> <span class="ptit"> (Uniquement si un changement de mot de passe est souhaité)</span>
</td>
</tr>
<tr class="sub1">
<td style ="text-align:right;padding-right:5px;">
Nouveau mot de passe :
</td>
<td>
<input type="password" name="nouveau_mdp" size="40">
</td>
</tr>
<tr class="sub1">
<td style ="text-align:right;padding-right:5px;">
Confirmer mot de passe :
</td>
<td>
<input type="password" name="conf_mdp" size="40">
</td>
</tr>
<tr class="sub1">
<td style ="text-align:right;padding-right:5px;">
</td>
<td>
<?php
if ($_GET['error']==1)
echo '<span class="rouge">Ancien mot de passe incorrect</span>';
if ($_GET['error']==2)
echo '<span class="rouge">Le nouveau mot de passe et la confirmation ne sont pas identiques</span>';
if ($_GET['error']==3)
echo '<span class="rouge">Le mot de passe doit contenir au moins 5 caractères</span>';
?>
</td>
</tr>
</table>
<br>
<center><input type="submit" class="submit_bouton" value="Mise à jour des données"></center>
</td>
</tr>
</table>
</div>
</form>
</body>
</html>