blob: c75e1882bd184f703fae7fdb04710d05010d1286 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
<?php
require('include/ludo/session_verify.inc.php');
require_once('include/ludo/html_elements.inc.php');
require_once('include/connect.inc.php');
require_once('include/ju.inc.php');
if ( isset($_REQUEST['action']) )
{
$nom_func = 'traiter_formulaire_' . $_REQUEST['action'];
$nom_func();
}
generate_html_doctype_and_head("Mod�le");
echo "<body>\n";
generate_html_divs_menu();
?>
<div id="sous_menu">
<p class="arbre">
> <a href="index.php">Accueil</a>
> Administration du profil
</p>
</div>
<?php
generate_html_div_help();
echo "<div id=\"contenu\">\n";
$idP = $_SESSION['session_idP'];
if ( isset( $_SESSION['session_prenomP'] ) && isset( $_SESSION['session_prenomP'] ) )
{
$nom=$_SESSION['session_prenomP'] . ' ' . $_SESSION['session_nomP'];
}
else
{
$nom = $_SESSION['session_loginP'];
}
$resultat = mysql_query("SELECT * FROM Personne WHERE idP = '".$_SESSION['session_idP']."'");
if($resultat != false)
{
$p = mysql_fetch_array($resultat);
echo "<form method=\"post\" action=\"profil.php\">\n";
echo "<table>\n";
echo "<tr><td>Methode d'authentification : </td><td><select name=\"methodeAuth\"><option value=\"webetud\">Webetud</option><option value=\"pop\">POP3</option></select></td></tr>\n";
echo "<tr><td>Votre login :</td><td><input type=\"text\" name=\"loginP\" value=\"".$p["loginP"]."\"/></td></tr>\n";
echo "<tr><td>Votre adresse mail :</td><td><input type=\"text\" name=\"courrielP\" value=\"".$p["courrielP"]."\"/></td></tr>\n";
echo "<tr><td>Votre nom :</td><td><input type=\"text\" name=\"nomP\" value=\"".$p["nomP"]."\"/></td></tr>\n";
echo "<tr><td>Votre prenom :</td><td><input type=\"text\" name=\"prenomP\" value=\"".$p["prenomP"]."\"/></td></tr>\n";
echo "<tr><td colspan=\"2\"><input type=\"submit\" /></td></tr>\n";
echo "</table>\n";
echo "</div>\n";
echo "<input type=\"hidden\" name=\"action\" value=\"maj_profil\">";
echo "</form>";
}
if ( isset ($errmsg) ) generate_html_div_errmsg($errmsg);
?>
</body>
</html>
|