From bfc6fb92ee23377bcb544bbd8006280fb9880e36 Mon Sep 17 00:00:00 2001 From: x2000habouzit Date: Tue, 24 Aug 2004 22:18:46 +0000 Subject: [PATCH] xhtml debug. be carefull, in order to embed javascript into a page, the right method is : and NO other one --- htdocs/inscrire.php | 10 +++++++- include/applis.func.inc.php | 4 ++-- include/sondage.header.inc.php | 52 ---------------------------------------- templates/applis.js.tpl | 11 ++++----- templates/docs/charte.tpl | 3 ++- templates/inscrire.charte.tpl | 4 ++-- templates/inscrire.form_data.tpl | 18 +++++++------- templates/inscrire.form_id.tpl | 6 ++--- 8 files changed, 32 insertions(+), 76 deletions(-) delete mode 100644 include/sondage.header.inc.php diff --git a/htdocs/inscrire.php b/htdocs/inscrire.php index 9e924a7..9e9e3d0 100644 --- a/htdocs/inscrire.php +++ b/htdocs/inscrire.php @@ -28,7 +28,7 @@ if(isset($_REQUEST["charte"])) { // ok la variable $_REQUEST["charte"] existe require("applis.func.inc.php"); $page->assign('homonyme', $homonyme); - $page->assign('loginbis', $loginbis); + $page->assign('loginbis', isset($loginbis) ? $loginbis : ''); $page->assign('mailorg', $mailorg); $page->assign('prenom', $prenom); @@ -50,6 +50,14 @@ if(isset($_REQUEST["charte"])) { // ok la variable $_REQUEST["charte"] existe if(!empty($erreur)) { new_skinned_page('inscrire.form_data.tpl', AUTH_PUBLIC, true); + require("applis.func.inc.php"); + $page->assign('homonyme', $homonyme); + $page->assign('loginbis', isset($loginbis) ? $loginbis : ''); + $page->assign('mailorg', $mailorg); + + $page->assign('prenom', $prenom); + $page->assign('nom', $nom); + $page->assign('erreur', $erreur); $page->run(); } diff --git a/include/applis.func.inc.php b/include/applis.func.inc.php index e7c0eff..018ecd3 100644 --- a/include/applis.func.inc.php +++ b/include/applis.func.inc.php @@ -14,8 +14,8 @@ function applis_options($current=0) { $res=$globals->db->query("select * from applis_def order by text"); while ($arr_appli=mysql_fetch_array($res)) { echo '\n"; + if ($arr_appli["id"]==$current) echo " selected='selected'"; + echo '>'.htmlspecialchars($arr_appli["text"])."\n"; } } /** pour appeller applis_options depuis smarty diff --git a/include/sondage.header.inc.php b/include/sondage.header.inc.php deleted file mode 100644 index 59ff2a9..0000000 --- a/include/sondage.header.inc.php +++ /dev/null @@ -1,52 +0,0 @@ - - - - - - - - - " media="screen"> - - " media="screen"> - - - Sondage - - - - diff --git a/templates/applis.js.tpl b/templates/applis.js.tpl index 8f55c2a..1dfe81d 100644 --- a/templates/applis.js.tpl +++ b/templates/applis.js.tpl @@ -1,6 +1,6 @@ - {/literal} +//]]> + diff --git a/templates/docs/charte.tpl b/templates/docs/charte.tpl index f28f669..ad1fcc0 100644 --- a/templates/docs/charte.tpl +++ b/templates/docs/charte.tpl @@ -1,4 +1,4 @@ -{* $Id: charte.tpl,v 1.1 2004-01-29 14:18:55 x2000habouzit Exp $ *} +{* $Id: charte.tpl,v 1.2 2004-08-24 22:18:47 x2000habouzit Exp $ *}
Conditions générales d'utilisation @@ -43,6 +43,7 @@ Tu t'assures que tu as le droit d'utiliser ton adresse e-mail pour un reroutage

La liberté d'expression est limitée en France par certaines lois que tu dois respecter. +

6 - ETHIQUE :
diff --git a/templates/inscrire.charte.tpl b/templates/inscrire.charte.tpl index c1e2d48..fdc9a35 100644 --- a/templates/inscrire.charte.tpl +++ b/templates/inscrire.charte.tpl @@ -1,4 +1,4 @@ -{* $Id: inscrire.charte.tpl,v 1.1 2004-07-19 08:58:04 x2000habouzit Exp $ *} +{* $Id: inscrire.charte.tpl,v 1.2 2004-08-24 22:18:47 x2000habouzit Exp $ *}
@@ -10,8 +10,8 @@ recontactons pour te fournir un mot de passe et te demander de le changer.

{include file="docs/charte.tpl"} -
+
diff --git a/templates/inscrire.form_data.tpl b/templates/inscrire.form_data.tpl index 54a1e57..4deb2bd 100644 --- a/templates/inscrire.form_data.tpl +++ b/templates/inscrire.form_data.tpl @@ -1,4 +1,4 @@ -{* $Id: inscrire.form_data.tpl,v 1.1 2004-07-19 08:58:04 x2000habouzit Exp $ *} +{* $Id: inscrire.form_data.tpl,v 1.2 2004-08-24 22:18:47 x2000habouzit Exp $ *} {include file="applis.js.tpl"} @@ -9,15 +9,10 @@ {dynamic} {foreach from=$erreur item=err} -

{$err}

+

{$err|smarty:nodefaults}

{/foreach}
- - - - - {if $homonyme}

Tu as un homonyme dans notre base de données, nous ne pouvons donc pas te donner @@ -101,7 +96,7 @@ Appli graduate - {applis_options selected=$smarty.request.appli_id1}
@@ -121,7 +116,7 @@ Post-graduate - {applis_options selected=$smarty.request.appli_id2}
@@ -138,6 +133,11 @@ + + + + + diff --git a/templates/inscrire.form_id.tpl b/templates/inscrire.form_id.tpl index d4cb58d..8ee6718 100644 --- a/templates/inscrire.form_id.tpl +++ b/templates/inscrire.form_id.tpl @@ -1,4 +1,4 @@ -{* $Id: inscrire.form_id.tpl,v 1.1 2004-07-19 08:58:04 x2000habouzit Exp $ *} +{* $Id: inscrire.form_id.tpl,v 1.2 2004-08-24 22:18:47 x2000habouzit Exp $ *} {dynamic} @@ -6,11 +6,10 @@

{$err}

{/foreach} - +
Identification
-

Renseigne tes nom, prénom et promotion, et si tu es d'une promotion postérieure à la 1996, ton numéro de matricule. @@ -72,6 +71,7 @@ + -- 2.1.4