summaryrefslogtreecommitdiff
path: root/appli_3_alpha_old/app/profil.php
diff options
context:
space:
mode:
authorLudovic Pouzenc <ludovic@pouzenc.fr>2018-06-30 11:17:01 +0200
committerLudovic Pouzenc <ludovic@pouzenc.fr>2018-06-30 11:17:01 +0200
commita25edc8edf23e652dbd529b8c42199ae559905a1 (patch)
treebdc47a31288343a8bd11310a021fdf0679eb503c /appli_3_alpha_old/app/profil.php
parent3fc908d3a1d0f6c9b1fca690561098541a73266e (diff)
download2007-AWOR-a25edc8edf23e652dbd529b8c42199ae559905a1.tar.gz
2007-AWOR-a25edc8edf23e652dbd529b8c42199ae559905a1.tar.bz2
2007-AWOR-a25edc8edf23e652dbd529b8c42199ae559905a1.zip
Version alpha_old6 2007-02-22+15:45:00 - 2007-03-12+13:59:02
Diffstat (limited to 'appli_3_alpha_old/app/profil.php')
-rw-r--r--appli_3_alpha_old/app/profil.php21
1 files changed, 13 insertions, 8 deletions
diff --git a/appli_3_alpha_old/app/profil.php b/appli_3_alpha_old/app/profil.php
index c75e188..6277d50 100644
--- a/appli_3_alpha_old/app/profil.php
+++ b/appli_3_alpha_old/app/profil.php
@@ -9,6 +9,7 @@ if ( isset($_REQUEST['action']) )
$nom_func();
}
generate_html_doctype_and_head("Modèle");
+
echo "<body>\n";
generate_html_divs_menu();
?>
@@ -34,21 +35,25 @@ $resultat = mysql_query("SELECT * FROM Personne WHERE idP = '".$_SESSION['sessio
if($resultat != false)
{
$p = mysql_fetch_array($resultat);
- echo "<form method=\"post\" action=\"profil.php\">\n";
+ echo "<form method=\"post\" action=\"profil.php\" onSubmit=\"return verifProfil()\" >\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>Methode d'authentification : </td><td>\n<select name=\"methodeAuth\">\n";
+ if($p["methodeAuth"] == "webetud") echo "<option value=\"webetud\" selected=\"selected\">Webetud</option>\n"; else echo "<option value=\"webetud\">Webetud</option>\n";
+ if($p["methodeAuth"] == "pop") echo "<option value=\"pop\" selected=\"selected\">POP3</option>\n"; else echo "<option value=\"pop\">POP3</option>\n";
+ echo "</select></td></tr>\n";
+ echo "<tr><td>Votre login :</td><td><input type=\"text\" name=\"loginP\" id=\"loginP\" value=\"".$p["loginP"]."\"/></td></tr>\n";
+ echo "<tr><td>Votre adresse mail :</td><td><input type=\"text\" name=\"courrielP\" id=\"courrielP\" value=\"".$p["courrielP"]."\"/></td></tr>\n";
+ echo "<tr><td>Votre nom :</td><td><input type=\"text\" name=\"nomP\" id=\"nomP\" value=\"".$p["nomP"]."\"/></td></tr>\n";
+ echo "<tr><td>Votre prenom :</td><td><input type=\"text\" name=\"prenomP\" id=\"prenomP\" value=\"".$p["prenomP"]."\"/></td></tr>\n";
echo "<tr><td colspan=\"2\"><input type=\"submit\" /></td></tr>\n";
echo "</table>\n";
+ echo "<input type=\"hidden\" name=\"action\" value=\"maj_profil\" />\n";
+ echo "</form>\n";
echo "</div>\n";
- echo "<input type=\"hidden\" name=\"action\" value=\"maj_profil\">";
- echo "</form>";
}
if ( isset ($errmsg) ) generate_html_div_errmsg($errmsg);
?>
+<div id="msg"></div>
</body>
</html>