[SPIP Zone] [Spip-zone-commit] r13969 - in /_plugins_/_test_/inscription2: ./ css/ fonds/ javascript/ lang/

Pour info au cas où
sur une svn 193 dernier modèle.
Avec tiger, tabs c'est super sous firefox mais non fonctionnant sous safari (à moins d'insérer le #fragment à la main dans l'url)
C'est la même chose avec 14025. idem en 1434 et 14035.
Snif...

En désactivant forms et tables 13914 tabs fonctionne correctement 1 fois (si je quitte la page il ne fonctionne pas quand j'y reviens). Pour qu'il refonctionne ll faut vider le cache de safari et celui de spip et recharger la page (avec &var_mode=recalcul); parfois il faut refaire l'opération plusieurs.

Ps : autres bug récurrents :
- exec=editer_adherent&id=4
Warning: Invalid argument supplied for foreach() in /.../ecrire/public/assembler.php(517) : eval()'d code on line 210

- exec=auteur_infos&id_auteur=1
Warning: Invalid argument supplied for foreach() in /.../plugins/auto/inscription2/inc/legender_auteur_supp.php on line 295
chiotte 2
Warning: Invalid argument supplied for foreach() in /.../plugins/auto/inscription2/inc/legender_auteur_supp.php on line 102

Avec Abonnement :
Le simple chargement de cette page (exec=auteur_infos) provoque maintenant l'écriture en base (4 fois tout de même) ...
La palme revient à exec=editer_adherent qui permet de vider l'ensemble d'un compte en tentant de modifier une info (plus aucune info login et compagnie mais il garde son id et son nbre de ligne dans exec=inscription2_adherents)

  @+

Le 28 juil. 07 à 19:21, kent1@arscenic.info a écrit :

Author: kent1@arscenic.info
Date: Sat Jul 28 19:21:20 2007
New Revision: 13969

Log:
un cfg en tabs et non plus de 3 km de long

Added:
    _plugins_/_test_/inscription2/css/jquery.tabs_prive.css
    _plugins_/_test_/inscription2/fonds/inscription2_infos_persos.html
    _plugins_/_test_/inscription2/fonds/inscription2_infos_pros.html
    _plugins_/_test_/inscription2/javascript/jquery.tabs.js
    _plugins_/_test_/inscription2/javascript/jquery.tabs.min.js
    _plugins_/_test_/inscription2/javascript/jquery.tabs.pack.js
Modified:
    _plugins_/_test_/inscription2/fonds/cfg_inscription2.html
    _plugins_/_test_/inscription2/inscription2_ajouter_onglets.php
    _plugins_/_test_/inscription2/lang/inscription2_fr.php
    _plugins_/_test_/inscription2/plugin.xml

Added: _plugins_/_test_/inscription2/css/jquery.tabs_prive.css

--- _plugins_/_test_/inscription2/css/jquery.tabs_prive.css (added)
+++ _plugins_/_test_/inscription2/css/jquery.tabs_prive.css Sat Jul 28 19:21:20 2007
@@ -0,0 +1,86 @@
+/* Caution! Ensure accessibility in print and other media types... */
+@media projection, screen { /* Use class for showing/hiding tab content, so that visibility can be better controlled in different media types... */
+ .tabs-hide {
+ display: none;
+ }
+}
+
+/* Hide useless elements in print layouts... */
+@media print {
+ .tabs-nav {
+ display: none;
+ }
+}
+
+/* Skin */
+.tabs-nav {
+ list-style: none;
+ margin: 0;
+ padding: 0;
+}
+.tabs-nav:after { /* clearing without presentational markup, IE gets extra treatment */
+ display: block;
+ clear: both;
+ content: " ";
+}
+.tabs-nav li {
+ float: left;
+ margin: 0 0 0 2px;
+ min-width: 84px; /* be nice to Opera */
+ border:1px solid #666666;
+}
+.tabs-nav a, .tabs-nav a span {
+ display: block;
+}
+.tabs-nav a {
+ position: relative;
+ z-index: 2;
+ padding: 0;
+ color: #85909A;
+ font-weight: bold;
+ line-height: 1.2;
+ text-align: center;
+ text-decoration: none;
+ white-space: nowrap; /* required in IE 6 */
+}
+.tabs-nav .tabs-selected a {
+ color: #fff;
+ background-color:#85909A;
+}
+.tabs-nav .tabs-selected a, .tabs-nav a:hover, .tabs-nav a:focus, .tabs-nav a:active {
+ outline: 0; /* prevent dotted border in Firefox */
+}
+
+.tabs-nav a span {
+ width: 64px; /* IE 6 treats width as min-width */
+ min-width: 64px;
+ height: 18px; /* IE 6 treats height as min-height */
+ min-height: 18px;
+ padding-top: 6px;
+ padding-right: 0;
+ font-size:11px;
+}
+*>.tabs-nav a span { /* hide from IE 6 */
+ width: auto;
+ height: auto;
+}
+.tabs-nav .tabs-selected a span {
+ padding-top: 5px;
+}
+
+.tabs-nav .tabs-selected a:link, .tabs-nav .tabs-selected a:visited, .tabs-nav .tabs-disabled a:link, .tabs-nav .tabs-disabled a:visited { /* @ Opera, use pseudo classes otherwise it confuses cursor... */
+ cursor: text;
+}
+.tabs-nav a:hover, .tabs-nav a:focus, .tabs-nav a:active { /* @ Opera, we need to be explicit again here now... */
+ cursor: pointer;
+}
+.tabs-nav .tabs-disabled {
+ opacity: .4;
+}
+.tabs-container {
+ padding: 1em 8px;
+ background: #fff; /* declare background color for container to avoid distorted fonts in IE while fading */
+}
+.tabs-loading em {
+ padding: 0 0 0 20px;
+}

Modified: _plugins_/_test_/inscription2/fonds/cfg_inscription2.html

--- _plugins_/_test_/inscription2/fonds/cfg_inscription2.html (original)
+++ _plugins_/_test_/inscription2/fonds/cfg_inscription2.html Sat Jul 28 19:21:20 2007
@@ -9,6 +9,12 @@

#CACHE{0}

+<script type="text/javascript">
+$(document).ready(function() {
+ $('#container-1').tabs({ fxAutoHeight: true, fxFade: true, fxSpeed: 'fast' });
+});
+</script>
+
<form name="formulario" method="post" action="#SELF"><div>[(#ENV{_cfg_}|form_hidden)]</div>

<br />
@@ -79,666 +85,41 @@

</fieldset>

-<fieldset>
-<legend>
- <:inscription2:info_perso:>
-</legend>
-<:inscription2:info_perso_desc:>
-<br /><br />

-<table>
-<tr>
-<td width='140'/>
-<td width='70'> <:inscription2:form:> </td>
-<td width='70'> <:inscription2:fiche_mod:> </td>
-<td width='70'> <:inscription2:fiche:> </td>
-<td width='70'> <:inscription2:table:> </td>
-</tr><tr>
-<td>
- <strong><:inscription2:nom_famille:></strong>
-</td><td>
- <label>
- <input type="checkbox" name="nom_famille" [checked="(#ENV{nom_famille}?{checked})"] onclick="showoblig(this)" id="nom_famille" />
- </label>
- <label style="[(#ENV{nom_famille}|=={on}|?{display: block;, display:none;})]">
- <input type="checkbox" name="nom_famille_obligatoire" [checked="(#ENV{nom_famille_obligatoire}?{checked})"] id="nom_famille_obligatoire" />
- <span style="color:red">*</span>
- </label>
-</td><td>
- <label>
- <input type="checkbox" name="nom_famille_fiche_mod" onclick = "enadis(this,nom_famille_fiche)" [checked="(#ENV{nom_famille_fiche_mod}?{checked})"] id="nom_famille_fiche_mod" />
- </label>
-</td><td>
- <label>
- <input type="checkbox" name="nom_famille_fiche" [checked="(#ENV{nom_famille_fiche}?{checked})"] id="nom_famille_fiche" [disabled ="(#ENV{nom_famille_fiche_mod}?{true})"] />
- </label>
-</td><td>
- <label>
- <input type="checkbox" name="nom_famille_table" [checked="(#ENV{nom_famille_table}?{checked})"] id="nom_famille_table" />
- </label>
-</td>
-</tr><tr>
-<td>
- <strong><:inscription2:prenom:></strong>
-</td><td>
- <label>
- <input type="checkbox" name="prenom" [checked="(#ENV{prenom}?{checked})"] onclick="showoblig(this)" id="prenom" />
- </label>
- <label style="[(#ENV{prenom}|=={on}|?{display: block;, display:none;})]">
- <input type="checkbox" name="prenom_obligatoire" [checked="(#ENV{prenom_obligatoire}?{checked})"] id="prenom_obligatoire" />
- <span style="color:red">*</span>
- </label>
-</td><td>
- <label>
- <input type="checkbox" name="prenom_fiche_mod" onclick = "enadis(this,prenom_fiche)" [checked="(#ENV{prenom_fiche_mod}?{checked})"] id="prenom_fiche_mod" />
- </label>
-</td><td>
- <label>
- <input type="checkbox" name="prenom_fiche" [checked="(#ENV{prenom_fiche}?{checked})"] id="prenom_fiche" [disabled ="(#ENV{prenom_fiche_mod}?{true})"] />
- </label>
-</td><td>
- <label>
- <input type="checkbox" name="prenom_table" [checked="(#ENV{prenom_table}?{checked})"] id="prenom_table" />
- </label>
-</td>
-</tr><tr>
-<td>
- <strong><:inscription2:username:></strong>
-</td><td>
- <label>
- <input type="checkbox" name="username" [checked="(#ENV{username}?{checked})"] onclick="showoblig(this)" id="username" />
- </label>
- <label style="[(#ENV{username}|=={on}|?{display: block;, display:none;})]">
- <input type="checkbox" name="username_obligatoire" [checked="(#ENV{username_obligatoire}?{checked})"] id="username_obligatoire" />
- <span style="color:red">*</span>
- </label>
-</td><td>
- <label>
- <input type="checkbox" name="username_fiche_mod" onclick = "enadis(this,username_fiche)" [checked="(#ENV{username_fiche_mod}?{checked})"] id="username_fiche_mod" />
- </label>
-</td><td>
- <label>
- <input type="checkbox" name="username_fiche" [checked="(#ENV{username_fiche}?{checked})"] id="username_fiche" [disabled ="(#ENV{username_fiche_mod}?{true})"] />
- </label>
-</td><td>
- <label>
- <input type="checkbox" name="username_table" [checked="(#ENV{username_table}?{checked})"] id="username_table" />
- </label>
-</td>
-</tr><tr>
-<td>
- <strong><:inscription2:naissance:></strong>
-</td><td>
- <label>
- <input type="checkbox" name="naissance" [checked="(#ENV{naissance}?{checked})"] onclick="showoblig(this)" id="naissance" />
- </label>
- <label style="[(#ENV{naissance}|=={on}|?{display: block;, display:none;})]">
- <input type="checkbox" name="naissance_obligatoire" [checked="(#ENV{naissance_obligatoire}?{checked})"] id="naissance_obligatoire" />
- <span style="color:red">*</span>
- </label>
-</td><td>
- <label>
- <input type="checkbox" name="naissance_fiche_mod" onclick = "enadis(this,naissance_fiche)" [checked="(#ENV{naissance_fiche_mod}?{checked})"] id="naissance_fiche_mod" />
- </label>
-</td><td>
- <label>
- <input type="checkbox" name="naissance_fiche" [checked="(#ENV{naissance_fiche}?{checked})"] id="naissance_fiche" [disabled ="(#ENV{naissance_fiche_mod}?{true})"]/>
- </label>
-</td><td>
- <label>
- <input type="checkbox" name="naissance_table" [checked="(#ENV{naissance_table}?{checked})"] id="naissance_table" />
- </label>
-</td>
-</tr><tr>
-<td>
- <strong><:inscription2:sexe:></strong>
-</td><td>
- <label>
- <input type="checkbox" name="sexe" [checked="(#ENV{sexe}?{checked})"] onclick="showoblig(this)" id="sexe" />
- </label>
- <label style="[(#ENV{sexe}|=={on}|?{display: block;, display:none;})]">
- <input type="checkbox" name="sexe_obligatoire" [checked="(#ENV{sexe_obligatoire}?{checked})"] id="sexe_obligatoire" />
- <span style="color:red">*</span>
- </label>
-</td><td>
- <label>
- <input type="checkbox" name="sexe_fiche_mod" onclick = "enadis(this,sexe_fiche)" [checked="(#ENV{sexe_fiche_mod}?{checked})"] id="sexe_fiche_mod" />
- </label>
-</td><td>
- <label>
- <input type="checkbox" name="sexe_fiche" [checked="(#ENV{sexe_fiche}?{checked})"] id="sexe_fiche" [disabled ="(#ENV{sexe_fiche_mod}?{true})"]/>
- </label>
-</td><td>
- <label>
- <input type="checkbox" name="sexe_table" [checked="(#ENV{sexe_table}?{checked})"] id="sexe_table" />
- </label>
-</td>
-</tr><tr>
-<td>
- <strong><:inscription2:adresse:></strong>
-</td><td>
- <label>
- <input type="checkbox" name="adresse" [checked="(#ENV{adresse}?{checked})"] onclick="showoblig(this)" id="adresse" />
- </label>
- <label style="[(#ENV{adresse}|=={on}|?{display: block;, display:none;})]">
- <input type="checkbox" name="adresse_obligatoire" [checked="(#ENV{adresse_obligatoire}?{checked})"] id="adresse_obligatoire" />
- <span style="color:red">*</span>
- </label>
-</td><td>
- <label>

[... 1960 lines stripped ...]
_______________________________________________
Spip-zone-commit@rezo.net - http://listes.rezo.net/mailman/listinfo/spip-zone-commit

Pierre Fiches
09 50 72 86 94
06 30 34 79 32

Pour info au cas où
sur une svn 193 dernier modèle.
Avec tiger, tabs c'est super sous firefox mais non fonctionnant sous
safari (à moins d'insérer le #fragment à la main dans l'url)
C'est la même chose avec 14025. idem en 1434 et 14035.
Snif...

Quelle version de Safari?
sur la 3 ca marche parfaitement...

As tu up cfg aussi puisque les tabs sont dedans maintenant...

Marche nickel sur FF mac Safari3 mac Opera mac IE7 Pc

En désactivant forms et tables 13914 tabs fonctionne correctement 1
fois (si je quitte la page il ne fonctionne pas quand j'y reviens).
Pour qu'il refonctionne ll faut vider le cache de safari et celui de
spip et recharger la page (avec &var_mode=recalcul); parfois il faut
refaire l'opération plusieurs.

Est ce que forms & tables utilise jquery.tabs?

Ps : autres bug récurrents :
- exec=editer_adherent&id=4
Warning: Invalid argument supplied for foreach() in /.../ecrire/
public/assembler.php(517) : eval()'d code on line 210

- exec=auteur_infos&id_auteur=1
Warning: Invalid argument supplied for foreach() in /.../plugins/auto/
inscription2/inc/legender_auteur_supp.php on line 295
chiotte 2
Warning: Invalid argument supplied for foreach() in /.../plugins/auto/
inscription2/inc/legender_auteur_supp.php on line 102

Normal c'est le même bug...

Le truc c'est qu'on le connait cf => spip-contrib

Mais pour l'instant incapable de le résoudre...

Avec Abonnement :
Le simple chargement de cette page (exec=auteur_infos) provoque
maintenant l'écriture en base (4 fois tout de même) ...
La palme revient à exec=editer_adherent qui permet de vider
l'ensemble d'un compte en tentant de modifier une info (plus aucune
info login et compagnie mais il garde son id et son nbre de ligne
dans exec=inscription2_adherents)

Je sais pas je touche pas abonnement...

  @+

Le 28 juil. 07 à 19:21, kent1@arscenic.info a écrit :

Author: kent1@arscenic.info
Date: Sat Jul 28 19:21:20 2007
New Revision: 13969

Log:
un cfg en tabs et non plus de 3 km de long

Added:
    _plugins_/_test_/inscription2/css/jquery.tabs_prive.css
    _plugins_/_test_/inscription2/fonds/inscription2_infos_persos.html
    _plugins_/_test_/inscription2/fonds/inscription2_infos_pros.html
    _plugins_/_test_/inscription2/javascript/jquery.tabs.js
    _plugins_/_test_/inscription2/javascript/jquery.tabs.min.js
    _plugins_/_test_/inscription2/javascript/jquery.tabs.pack.js
Modified:
    _plugins_/_test_/inscription2/fonds/cfg_inscription2.html
    _plugins_/_test_/inscription2/inscription2_ajouter_onglets.php
    _plugins_/_test_/inscription2/lang/inscription2_fr.php
    _plugins_/_test_/inscription2/plugin.xml

Added: _plugins_/_test_/inscription2/css/jquery.tabs_prive.css

========
--- _plugins_/_test_/inscription2/css/jquery.tabs_prive.css (added)
+++ _plugins_/_test_/inscription2/css/jquery.tabs_prive.css Sat Jul
28 19:21:20 2007
@@ -0,0 +1,86 @@
+/* Caution! Ensure accessibility in print and other media types... */
+@media projection, screen { /* Use class for showing/hiding tab
content, so that visibility can be better controlled in different
media types... */
+ .tabs-hide {
+ display: none;
+ }
+}
+
+/* Hide useless elements in print layouts... */
+@media print {
+ .tabs-nav {
+ display: none;
+ }
+}
+
+/* Skin */
+.tabs-nav {
+ list-style: none;
+ margin: 0;
+ padding: 0;
+}
+.tabs-nav:after { /* clearing without presentational markup, IE
gets extra treatment */
+ display: block;
+ clear: both;
+ content: " ";
+}
+.tabs-nav li {
+ float: left;
+ margin: 0 0 0 2px;
+ min-width: 84px; /* be nice to Opera */
+ border:1px solid #666666;
+}
+.tabs-nav a, .tabs-nav a span {
+ display: block;
+}
+.tabs-nav a {
+ position: relative;
+ z-index: 2;
+ padding: 0;
+ color: #85909A;
+ font-weight: bold;
+ line-height: 1.2;
+ text-align: center;
+ text-decoration: none;
+ white-space: nowrap; /* required in IE 6 */
+}
+.tabs-nav .tabs-selected a {
+ color: #fff;
+ background-color:#85909A;
+}
+.tabs-nav .tabs-selected a, .tabs-nav a:hover, .tabs-nav
a:focus, .tabs-nav a:active {
+ outline: 0; /* prevent dotted border in Firefox */
+}
+
+.tabs-nav a span {
+ width: 64px; /* IE 6 treats width as min-width */
+ min-width: 64px;
+ height: 18px; /* IE 6 treats height as min-height */
+ min-height: 18px;
+ padding-top: 6px;
+ padding-right: 0;
+ font-size:11px;
+}
+*>.tabs-nav a span { /* hide from IE 6 */
+ width: auto;
+ height: auto;
+}
+.tabs-nav .tabs-selected a span {
+ padding-top: 5px;
+}
+
+.tabs-nav .tabs-selected a:link, .tabs-nav .tabs-selected
a:visited, .tabs-nav .tabs-disabled a:link, .tabs-nav .tabs-
disabled a:visited { /* @ Opera, use pseudo classes otherwise it
confuses cursor... */
+ cursor: text;
+}
+.tabs-nav a:hover, .tabs-nav a:focus, .tabs-nav a:active { /* @
Opera, we need to be explicit again here now... */
+ cursor: pointer;
+}
+.tabs-nav .tabs-disabled {
+ opacity: .4;
+}
+.tabs-container {
+ padding: 1em 8px;
+ background: #fff; /* declare background color for container to
avoid distorted fonts in IE while fading */
+}
+.tabs-loading em {
+ padding: 0 0 0 20px;
+}

Modified: _plugins_/_test_/inscription2/fonds/cfg_inscription2.html

========
--- _plugins_/_test_/inscription2/fonds/cfg_inscription2.html
(original)
+++ _plugins_/_test_/inscription2/fonds/cfg_inscription2.html Sat
Jul 28 19:21:20 2007
@@ -9,6 +9,12 @@

#CACHE{0}

+<script type="text/javascript">
+$(document).ready(function() {
+ $('#container-1').tabs({ fxAutoHeight: true, fxFade: true,
fxSpeed: 'fast' });
+});
+</script>
+
<form name="formulario" method="post" action="#SELF"><div>[(#ENV
{_cfg_}|form_hidden)]</div>

<br />
@@ -79,666 +85,41 @@

</fieldset>

-<fieldset>
-<legend>
- <:inscription2:info_perso:>
-</legend>
-<:inscription2:info_perso_desc:>
-<br /><br />

-<table>
-<tr>
-<td width='140'/>
-<td width='70'> <:inscription2:form:> </td>
-<td width='70'> <:inscription2:fiche_mod:> </td>
-<td width='70'> <:inscription2:fiche:> </td>
-<td width='70'> <:inscription2:table:> </td>
-</tr><tr>
-<td>
- <strong><:inscription2:nom_famille:></strong>
-</td><td>
- <label>
- <input type="checkbox" name="nom_famille" [checked="(#ENV
{nom_famille}?{checked})"] onclick="showoblig(this)"
id="nom_famille" />
- </label>
- <label style="[(#ENV{nom_famille}|=={on}|?{display: block;,
display:none;})]">
- <input type="checkbox"
name="nom_famille_obligatoire" [checked="(#ENV
{nom_famille_obligatoire}?{checked})"] id="nom_famille_obligatoire" />
- <span style="color:red">*</span>
- </label>
-</td><td>
- <label>
- <input type="checkbox" name="nom_famille_fiche_mod" onclick =
"enadis(this,nom_famille_fiche)" [checked="(#ENV
{nom_famille_fiche_mod}?{checked})"] id="nom_famille_fiche_mod" />
- </label>
-</td><td>
- <label>
- <input type="checkbox" name="nom_famille_fiche" [checked="(#ENV
{nom_famille_fiche}?{checked})"] id="nom_famille_fiche" [disabled
="(#ENV{nom_famille_fiche_mod}?{true})"] />
- </label>
-</td><td>
- <label>
- <input type="checkbox" name="nom_famille_table" [checked="(#ENV
{nom_famille_table}?{checked})"] id="nom_famille_table" />
- </label>
-</td>
-</tr><tr>
-<td>
- <strong><:inscription2:prenom:></strong>
-</td><td>
- <label>
- <input type="checkbox" name="prenom" [checked="(#ENV{prenom}?
{checked})"] onclick="showoblig(this)" id="prenom" />
- </label>
- <label style="[(#ENV{prenom}|=={on}|?{display: block;,
display:none;})]">
- <input type="checkbox" name="prenom_obligatoire" [checked="(#ENV
{prenom_obligatoire}?{checked})"] id="prenom_obligatoire" />
- <span style="color:red">*</span>
- </label>
-</td><td>
- <label>
- <input type="checkbox" name="prenom_fiche_mod" onclick = "enadis
(this,prenom_fiche)" [checked="(#ENV{prenom_fiche_mod}?{checked})"]
id="prenom_fiche_mod" />
- </label>
-</td><td>
- <label>
- <input type="checkbox" name="prenom_fiche" [checked="(#ENV
{prenom_fiche}?{checked})"] id="prenom_fiche" [disabled ="(#ENV
{prenom_fiche_mod}?{true})"] />
- </label>
-</td><td>
- <label>
- <input type="checkbox" name="prenom_table" [checked="(#ENV
{prenom_table}?{checked})"] id="prenom_table" />
- </label>
-</td>
-</tr><tr>
-<td>
- <strong><:inscription2:username:></strong>
-</td><td>
- <label>
- <input type="checkbox" name="username" [checked="(#ENV{username}?
{checked})"] onclick="showoblig(this)" id="username" />
- </label>
- <label style="[(#ENV{username}|=={on}|?{display: block;,
display:none;})]">
- <input type="checkbox"
name="username_obligatoire" [checked="(#ENV{username_obligatoire}?
{checked})"] id="username_obligatoire" />
- <span style="color:red">*</span>
- </label>
-</td><td>
- <label>
- <input type="checkbox" name="username_fiche_mod" onclick =
"enadis(this,username_fiche)" [checked="(#ENV{username_fiche_mod}?
{checked})"] id="username_fiche_mod" />
- </label>
-</td><td>
- <label>
- <input type="checkbox" name="username_fiche" [checked="(#ENV
{username_fiche}?{checked})"] id="username_fiche" [disabled ="(#ENV
{username_fiche_mod}?{true})"] />
- </label>
-</td><td>
- <label>
- <input type="checkbox" name="username_table" [checked="(#ENV
{username_table}?{checked})"] id="username_table" />
- </label>
-</td>
-</tr><tr>
-<td>
- <strong><:inscription2:naissance:></strong>
-</td><td>
- <label>
- <input type="checkbox" name="naissance" [checked="(#ENV
{naissance}?{checked})"] onclick="showoblig(this)" id="naissance" />
- </label>
- <label style="[(#ENV{naissance}|=={on}|?{display: block;,
display:none;})]">
- <input type="checkbox"
name="naissance_obligatoire" [checked="(#ENV{naissance_obligatoire}?
{checked})"] id="naissance_obligatoire" />
- <span style="color:red">*</span>
- </label>
-</td><td>
- <label>
- <input type="checkbox" name="naissance_fiche_mod" onclick =
"enadis(this,naissance_fiche)" [checked="(#ENV{naissance_fiche_mod}?
{checked})"] id="naissance_fiche_mod" />
- </label>
-</td><td>
- <label>
- <input type="checkbox" name="naissance_fiche" [checked="(#ENV
{naissance_fiche}?{checked})"] id="naissance_fiche" [disabled
="(#ENV{naissance_fiche_mod}?{true})"]/>
- </label>
-</td><td>
- <label>
- <input type="checkbox" name="naissance_table" [checked="(#ENV
{naissance_table}?{checked})"] id="naissance_table" />
- </label>
-</td>
-</tr><tr>
-<td>
- <strong><:inscription2:sexe:></strong>
-</td><td>
- <label>
- <input type="checkbox" name="sexe" [checked="(#ENV{sexe}?
{checked})"] onclick="showoblig(this)" id="sexe" />
- </label>
- <label style="[(#ENV{sexe}|=={on}|?{display: block;,
display:none;})]">
- <input type="checkbox" name="sexe_obligatoire" [checked="(#ENV
{sexe_obligatoire}?{checked})"] id="sexe_obligatoire" />
- <span style="color:red">*</span>
- </label>
-</td><td>
- <label>
- <input type="checkbox" name="sexe_fiche_mod" onclick = "enadis
(this,sexe_fiche)" [checked="(#ENV{sexe_fiche_mod}?{checked})"]
id="sexe_fiche_mod" />
- </label>
-</td><td>
- <label>
- <input type="checkbox" name="sexe_fiche" [checked="(#ENV
{sexe_fiche}?{checked})"] id="sexe_fiche" [disabled ="(#ENV
{sexe_fiche_mod}?{true})"]/>
- </label>
-</td><td>
- <label>
- <input type="checkbox" name="sexe_table" [checked="(#ENV
{sexe_table}?{checked})"] id="sexe_table" />
- </label>
-</td>
-</tr><tr>
-<td>
- <strong><:inscription2:adresse:></strong>
-</td><td>
- <label>
- <input type="checkbox" name="adresse" [checked="(#ENV{adresse}?
{checked})"] onclick="showoblig(this)" id="adresse" />
- </label>
- <label style="[(#ENV{adresse}|=={on}|?{display: block;,
display:none;})]">
- <input type="checkbox" name="adresse_obligatoire" [checked="(#ENV
{adresse_obligatoire}?{checked})"] id="adresse_obligatoire" />
- <span style="color:red">*</span>
- </label>
-</td><td>
- <label>

[... 1960 lines stripped ...]
_______________________________________________
Spip-zone-commit@rezo.net - Listes de diffusion sur listes.rezo.net
spip-zone-commit

Pierre Fiches
09 50 72 86 94
06 30 34 79 32

_______________________________________________
spip-zone@rezo.net - http://listes.rezo.net/mailman/listinfo/spip-zone

Quentin Drouet

-- -----
Arscenic - Luxembourg
Promotion et diffusion des Arts Numériques et des Nouvelles Scénographies
5, rue de la Montagne – L-4879 Lamadeleine
http://www.arscenic.info - http://www.sklunk.net
tél : +33 (0)616706301
mail: kent1@arscenic.info

Drouet Quentin a écrit :

Avec Abonnement :
Le simple chargement de cette page (exec=auteur_infos) provoque
maintenant l'écriture en base (4 fois tout de même) ...
   

ah oué ? et sans abonnement ca fait pas ca ?

La palme revient à exec=editer_adherent qui permet de vider
l'ensemble d'un compte en tentant de modifier une info (plus aucune
info login et compagnie mais il garde son id et son nbre de ligne
dans exec=inscription2_adherents)
   
Je sais pas je touche pas abonnement...

Je pense que c'est possible que ca soit aussi le bug du foreach, et donc de inscription2 et non pas abonnement.

Conclusion : il faut résoudre le bug du foreach (cf spip-contrib, plugin inscription2) et probablement que tout cela sera résolu.

BoOz

avant tout, merci pour ta réponse.

Le 31 juil. 07 à 16:24, Drouet Quentin a écrit :

Pour info au cas où
sur une svn 193 dernier modèle.
Avec tiger, tabs c'est super sous firefox mais non fonctionnant sous
safari (à moins d'insérer le #fragment à la main dans l'url)
C'est la même chose avec 14025. idem en 1434 et 14035.
Snif...

Quelle version de Safari?
sur la 3 ca marche parfaitement...

Tant mieux mais j'ai fais le test sur la version 2.04 (la dernière version stable),

As tu up cfg aussi puisque les tabs sont dedans maintenant...

Les test non concluant ont été fait en 14034 pour cfg et 14035 pour inscription2.

Avec la maj 14052 de cfg et 14047 pour inscription2, après vidage des cahe spip et navigateur :
Ça marche mieux.
La première utilisation c'est nickel mais si je change de page (par exemple en passant sur la config de crayon) et que je reviens sur celle d'inscription2 le formulaire se comporte presque comme avant c'est à dire j'ai bien perso mais pas les deux autres item, si je clique sur pro, non seulement il ne s'affiche pas, mais en plus je ne peux plus afficher perso, à moins de recharger la page. Pour pouvoir afficher les trois parties du formulaire il reste indispensable de vider le cache spip et celui du navigateur, mais le comportement est assez curieux il faut plusieurs vidange parfois pour retrouver un comportement satisfaisant.

Une validation du formulaire provoque le même comportement que le changement de page et retour.

Marche nickel sur FF mac Safari3 mac Opera mac IE7 Pc

En désactivant forms et tables 13914 tabs fonctionne correctement 1
fois (si je quitte la page il ne fonctionne pas quand j'y reviens).
Pour qu'il refonctionne ll faut vider le cache de safari et celui de
spip et recharger la page (avec &var_mode=recalcul); parfois il faut
refaire l'opération plusieurs.

Est ce que forms & tables utilise jquery.tabs?

Non apparemment. Mais jtip, jquery.tablesorter, jquery-dom, interface, iautocompleter, plus d'autres js

Ps : autres bug récurrents :
- exec=editer_adherent&id=4
Warning: Invalid argument supplied for foreach() in /.../ecrire/
public/assembler.php(517) : eval()'d code on line 210

- exec=auteur_infos&id_auteur=1
Warning: Invalid argument supplied for foreach() in /.../plugins/auto/
inscription2/inc/legender_auteur_supp.php on line 295
chiotte 2
Warning: Invalid argument supplied for foreach() in /.../plugins/auto/
inscription2/inc/legender_auteur_supp.php on line 102

Normal c'est le même bug...

Le truc c'est qu'on le connait cf => spip-contrib

Mais pour l'instant incapable de le résoudre...

Avec Abonnement :
Le simple chargement de cette page (exec=auteur_infos) provoque
maintenant l'écriture en base (4 fois tout de même) ...
La palme revient à exec=editer_adherent qui permet de vider
l'ensemble d'un compte en tentant de modifier une info (plus aucune
info login et compagnie mais il garde son id et son nbre de ligne
dans exec=inscription2_adherents)

Je sais pas je touche pas abonnement...

  @+

Le 28 juil. 07 à 19:21, kent1@arscenic.info a écrit :

Author: kent1@arscenic.info
Date: Sat Jul 28 19:21:20 2007
New Revision: 13969

Log:
un cfg en tabs et non plus de 3 km de long

Added:
    _plugins_/_test_/inscription2/css/jquery.tabs_prive.css
    _plugins_/_test_/inscription2/fonds/inscription2_infos_persos.html
    _plugins_/_test_/inscription2/fonds/inscription2_infos_pros.html
    _plugins_/_test_/inscription2/javascript/jquery.tabs.js
    _plugins_/_test_/inscription2/javascript/jquery.tabs.min.js
    _plugins_/_test_/inscription2/javascript/jquery.tabs.pack.js
Modified:
    _plugins_/_test_/inscription2/fonds/cfg_inscription2.html
    _plugins_/_test_/inscription2/inscription2_ajouter_onglets.php
    _plugins_/_test_/inscription2/lang/inscription2_fr.php
    _plugins_/_test_/inscription2/plugin.xml

Added: _plugins_/_test_/inscription2/css/jquery.tabs_prive.css

========
--- _plugins_/_test_/inscription2/css/jquery.tabs_prive.css (added)
+++ _plugins_/_test_/inscription2/css/jquery.tabs_prive.css Sat Jul
28 19:21:20 2007
@@ -0,0 +1,86 @@
+/* Caution! Ensure accessibility in print and other media types... */
+@media projection, screen { /* Use class for showing/hiding tab
content, so that visibility can be better controlled in different
media types... */
+ .tabs-hide {
+ display: none;
+ }
+}
+
+/* Hide useless elements in print layouts... */
+@media print {
+ .tabs-nav {
+ display: none;
+ }
+}
+
+/* Skin */
+.tabs-nav {
+ list-style: none;
+ margin: 0;
+ padding: 0;
+}
+.tabs-nav:after { /* clearing without presentational markup, IE
gets extra treatment */
+ display: block;
+ clear: both;
+ content: " ";
+}
+.tabs-nav li {
+ float: left;
+ margin: 0 0 0 2px;
+ min-width: 84px; /* be nice to Opera */
+ border:1px solid #666666;
+}
+.tabs-nav a, .tabs-nav a span {
+ display: block;
+}
+.tabs-nav a {
+ position: relative;
+ z-index: 2;
+ padding: 0;
+ color: #85909A;
+ font-weight: bold;
+ line-height: 1.2;
+ text-align: center;
+ text-decoration: none;
+ white-space: nowrap; /* required in IE 6 */
+}
+.tabs-nav .tabs-selected a {
+ color: #fff;
+ background-color:#85909A;
+}
+.tabs-nav .tabs-selected a, .tabs-nav a:hover, .tabs-nav
a:focus, .tabs-nav a:active {
+ outline: 0; /* prevent dotted border in Firefox */
+}
+
+.tabs-nav a span {
+ width: 64px; /* IE 6 treats width as min-width */
+ min-width: 64px;
+ height: 18px; /* IE 6 treats height as min-height */
+ min-height: 18px;
+ padding-top: 6px;
+ padding-right: 0;
+ font-size:11px;
+}
+*>.tabs-nav a span { /* hide from IE 6 */
+ width: auto;
+ height: auto;
+}
+.tabs-nav .tabs-selected a span {
+ padding-top: 5px;
+}
+
+.tabs-nav .tabs-selected a:link, .tabs-nav .tabs-selected
a:visited, .tabs-nav .tabs-disabled a:link, .tabs-nav .tabs-
disabled a:visited { /* @ Opera, use pseudo classes otherwise it
confuses cursor... */
+ cursor: text;
+}
+.tabs-nav a:hover, .tabs-nav a:focus, .tabs-nav a:active { /* @
Opera, we need to be explicit again here now... */
+ cursor: pointer;
+}
+.tabs-nav .tabs-disabled {
+ opacity: .4;
+}
+.tabs-container {
+ padding: 1em 8px;
+ background: #fff; /* declare background color for container to
avoid distorted fonts in IE while fading */
+}
+.tabs-loading em {
+ padding: 0 0 0 20px;
+}

Modified: _plugins_/_test_/inscription2/fonds/cfg_inscription2.html

========
--- _plugins_/_test_/inscription2/fonds/cfg_inscription2.html
(original)
+++ _plugins_/_test_/inscription2/fonds/cfg_inscription2.html Sat
Jul 28 19:21:20 2007
@@ -9,6 +9,12 @@

#CACHE{0}

+<script type="text/javascript">
+$(document).ready(function() {
+ $('#container-1').tabs({ fxAutoHeight: true, fxFade: true,
fxSpeed: 'fast' });
+});
+</script>
+
<form name="formulario" method="post" action="#SELF"><div>[(#ENV
{_cfg_}|form_hidden)]</div>

<br />
@@ -79,666 +85,41 @@

</fieldset>

-<fieldset>
-<legend>
- <:inscription2:info_perso:>
-</legend>
-<:inscription2:info_perso_desc:>
-<br /><br />

-<table>
-<tr>
-<td width='140'/>
-<td width='70'> <:inscription2:form:> </td>
-<td width='70'> <:inscription2:fiche_mod:> </td>
-<td width='70'> <:inscription2:fiche:> </td>
-<td width='70'> <:inscription2:table:> </td>
-</tr><tr>
-<td>
- <strong><:inscription2:nom_famille:></strong>
-</td><td>
- <label>
- <input type="checkbox" name="nom_famille" [checked="(#ENV
{nom_famille}?{checked})"] onclick="showoblig(this)"
id="nom_famille" />
- </label>
- <label style="[(#ENV{nom_famille}|=={on}|?{display: block;,
display:none;})]">
- <input type="checkbox"
name="nom_famille_obligatoire" [checked="(#ENV
{nom_famille_obligatoire}?{checked})"] id="nom_famille_obligatoire" />
- <span style="color:red">*</span>
- </label>
-</td><td>
- <label>
- <input type="checkbox" name="nom_famille_fiche_mod" onclick =
"enadis(this,nom_famille_fiche)" [checked="(#ENV
{nom_famille_fiche_mod}?{checked})"] id="nom_famille_fiche_mod" />
- </label>
-</td><td>
- <label>
- <input type="checkbox" name="nom_famille_fiche" [checked="(#ENV
{nom_famille_fiche}?{checked})"] id="nom_famille_fiche" [disabled
="(#ENV{nom_famille_fiche_mod}?{true})"] />
- </label>
-</td><td>
- <label>
- <input type="checkbox" name="nom_famille_table" [checked="(#ENV
{nom_famille_table}?{checked})"] id="nom_famille_table" />
- </label>
-</td>
-</tr><tr>
-<td>
- <strong><:inscription2:prenom:></strong>
-</td><td>
- <label>
- <input type="checkbox" name="prenom" [checked="(#ENV{prenom}?
{checked})"] onclick="showoblig(this)" id="prenom" />
- </label>
- <label style="[(#ENV{prenom}|=={on}|?{display: block;,
display:none;})]">
- <input type="checkbox" name="prenom_obligatoire" [checked="(#ENV
{prenom_obligatoire}?{checked})"] id="prenom_obligatoire" />
- <span style="color:red">*</span>
- </label>
-</td><td>
- <label>
- <input type="checkbox" name="prenom_fiche_mod" onclick = "enadis
(this,prenom_fiche)" [checked="(#ENV{prenom_fiche_mod}?{checked})"]
id="prenom_fiche_mod" />
- </label>
-</td><td>
- <label>
- <input type="checkbox" name="prenom_fiche" [checked="(#ENV
{prenom_fiche}?{checked})"] id="prenom_fiche" [disabled ="(#ENV
{prenom_fiche_mod}?{true})"] />
- </label>
-</td><td>
- <label>
- <input type="checkbox" name="prenom_table" [checked="(#ENV
{prenom_table}?{checked})"] id="prenom_table" />
- </label>
-</td>
-</tr><tr>
-<td>
- <strong><:inscription2:username:></strong>
-</td><td>
- <label>
- <input type="checkbox" name="username" [checked="(#ENV{username}?
{checked})"] onclick="showoblig(this)" id="username" />
- </label>
- <label style="[(#ENV{username}|=={on}|?{display: block;,
display:none;})]">
- <input type="checkbox"
name="username_obligatoire" [checked="(#ENV{username_obligatoire}?
{checked})"] id="username_obligatoire" />
- <span style="color:red">*</span>
- </label>
-</td><td>
- <label>
- <input type="checkbox" name="username_fiche_mod" onclick =
"enadis(this,username_fiche)" [checked="(#ENV{username_fiche_mod}?
{checked})"] id="username_fiche_mod" />
- </label>
-</td><td>
- <label>
- <input type="checkbox" name="username_fiche" [checked="(#ENV
{username_fiche}?{checked})"] id="username_fiche" [disabled ="(#ENV
{username_fiche_mod}?{true})"] />
- </label>
-</td><td>
- <label>
- <input type="checkbox" name="username_table" [checked="(#ENV
{username_table}?{checked})"] id="username_table" />
- </label>
-</td>
-</tr><tr>
-<td>
- <strong><:inscription2:naissance:></strong>
-</td><td>
- <label>
- <input type="checkbox" name="naissance" [checked="(#ENV
{naissance}?{checked})"] onclick="showoblig(this)" id="naissance" />
- </label>
- <label style="[(#ENV{naissance}|=={on}|?{display: block;,
display:none;})]">
- <input type="checkbox"
name="naissance_obligatoire" [checked="(#ENV{naissance_obligatoire}?
{checked})"] id="naissance_obligatoire" />
- <span style="color:red">*</span>
- </label>
-</td><td>
- <label>
- <input type="checkbox" name="naissance_fiche_mod" onclick =
"enadis(this,naissance_fiche)" [checked="(#ENV{naissance_fiche_mod}?
{checked})"] id="naissance_fiche_mod" />
- </label>
-</td><td>
- <label>
- <input type="checkbox" name="naissance_fiche" [checked="(#ENV
{naissance_fiche}?{checked})"] id="naissance_fiche" [disabled
="(#ENV{naissance_fiche_mod}?{true})"]/>
- </label>
-</td><td>
- <label>
- <input type="checkbox" name="naissance_table" [checked="(#ENV
{naissance_table}?{checked})"] id="naissance_table" />
- </label>
-</td>
-</tr><tr>
-<td>
- <strong><:inscription2:sexe:></strong>
-</td><td>
- <label>
- <input type="checkbox" name="sexe" [checked="(#ENV{sexe}?
{checked})"] onclick="showoblig(this)" id="sexe" />
- </label>
- <label style="[(#ENV{sexe}|=={on}|?{display: block;,
display:none;})]">
- <input type="checkbox" name="sexe_obligatoire" [checked="(#ENV
{sexe_obligatoire}?{checked})"] id="sexe_obligatoire" />
- <span style="color:red">*</span>
- </label>
-</td><td>
- <label>
- <input type="checkbox" name="sexe_fiche_mod" onclick = "enadis
(this,sexe_fiche)" [checked="(#ENV{sexe_fiche_mod}?{checked})"]
id="sexe_fiche_mod" />
- </label>
-</td><td>
- <label>
- <input type="checkbox" name="sexe_fiche" [checked="(#ENV
{sexe_fiche}?{checked})"] id="sexe_fiche" [disabled ="(#ENV
{sexe_fiche_mod}?{true})"]/>
- </label>
-</td><td>
- <label>
- <input type="checkbox" name="sexe_table" [checked="(#ENV
{sexe_table}?{checked})"] id="sexe_table" />
- </label>
-</td>
-</tr><tr>
-<td>
- <strong><:inscription2:adresse:></strong>
-</td><td>
- <label>
- <input type="checkbox" name="adresse" [checked="(#ENV{adresse}?
{checked})"] onclick="showoblig(this)" id="adresse" />
- </label>
- <label style="[(#ENV{adresse}|=={on}|?{display: block;,
display:none;})]">
- <input type="checkbox" name="adresse_obligatoire" [checked="(#ENV
{adresse_obligatoire}?{checked})"] id="adresse_obligatoire" />
- <span style="color:red">*</span>
- </label>
-</td><td>
- <label>

[... 1960 lines stripped ...]
_______________________________________________
Spip-zone-commit@rezo.net - Listes de diffusion sur listes.rezo.net
spip-zone-commit

Pierre Fiches
09 50 72 86 94
06 30 34 79 32

_______________________________________________
spip-zone@rezo.net - http://listes.rezo.net/mailman/listinfo/spip-zone

Quentin Drouet

-- -----
Arscenic - Luxembourg
Promotion et diffusion des Arts Numériques et des Nouvelles Scénographies
5, rue de la Montagne – L-4879 Lamadeleine
http://www.arscenic.info - http://www.sklunk.net
tél : +33 (0)616706301
mail: kent1@arscenic.info

Pierre Fiches
09 50 72 86 94
06 30 34 79 32

Le 31 juil. 07 à 16:41, BoOz a écrit :

Drouet Quentin a écrit :

Avec Abonnement :
Le simple chargement de cette page (exec=auteur_infos) provoque
maintenant l'écriture en base (4 fois tout de même) ...

ah oué ? et sans abonnement ca fait pas ca ?

La palme revient à exec=editer_adherent qui permet de vider
l'ensemble d'un compte en tentant de modifier une info (plus aucune
info login et compagnie mais il garde son id et son nbre de ligne
dans exec=inscription2_adherents)

Je sais pas je touche pas abonnement...

Je pense que c'est possible que ca soit aussi le bug du foreach, et donc de inscription2 et non pas abonnement.

Conclusion : il faut résoudre le bug du foreach (cf spip-contrib, plugin inscription2) et probablement que tout cela sera résolu.

Un milliard d'excuse sans abonnement nous avons aussi un nouveau moyen d'éffacer complètement un compte.
Il suffit d'ajouter une liste (spip-liste) à l'auteur via inscription2. Et ce, malgrè le sens interdit.
Potentiellement très ennuyeux donc.

Pierre

Pierre FICHES a écrit :

Un milliard d'excuse sans abonnement nous avons aussi un nouveau moyen d'éffacer complètement un compte.

Ah !

Il suffit d'ajouter une liste (spip-liste) à l'auteur via inscription2. Et ce, malgrè le sens interdit.

Bon, je suppose que ce n'est pas lié à la liste en particulier. Peux tu essayer de vider spip_meta/inscription2 avec phpmyadmin, puis reconfigurer le cfg d'inscription2 en cliquant des cases, puis retenter la maj d'un inscrit et voir si ca efface toujours.

Si ca n'efface pas, c'est qu'on à faire un bug sus décrit, sinon, c'est que tu en as levé un nouveau :stuck_out_tongue:

Merci pour ces tests.

BoOz