IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

Dreamweaver Discussion :

utilisation de validation spry cases à cocher [CS3]


Sujet :

Dreamweaver

Vue hybride

Message précédent Message précédent   Message suivant Message suivant
  1. #1
    Membre éclairé
    Homme Profil pro
    directeur hypermarché
    Inscrit en
    Avril 2009
    Messages
    227
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Yonne (Bourgogne)

    Informations professionnelles :
    Activité : directeur hypermarché

    Informations forums :
    Inscription : Avril 2009
    Messages : 227
    Par défaut utilisation de validation spry cases à cocher
    Bonjour à tous,

    J'ai une page qui contient pas moins de 20 cases à cocher et je pensais utiliser facilement le spry ( en définissant dans propriétés / imposer plage ( plusieurs cases )/ nombre min de sélections 5 / nombre max de sélection 5 ). Toutefois, je n'arrive pas à le faire fonctionner.

    Voici le body de ma page...Où faut-il placer ce spry pour que mon formulaire fonctionne ?

    ( PS : Comment fait-on pour utiliser la balise code php ? )

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    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
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
    117
    118
    119
    120
    121
    122
    123
    124
    125
    126
    127
    128
    129
    130
    131
    132
    133
      <form action="<?php echo $editFormAction; ?>" method="post" name="form1" id="form1">
      <tr>
        <td colspan="4"><span id="sprycheckbox1">
          <label>
          <input class="toCheck" type="checkbox" name="a1" id="a1" value="Y"/>
          </label>
          <span class="checkboxRequiredMsg">Effectuez une sélection.</span></span><span class="Style5"><?php echo $row_Recordset2['r1'];?></span>
              </td>
        <td colspan="4">
                    <label>
                    <input class="toCheck" type="checkbox" name="b1" id="b1" value="Y"/>
                    </label>
                    <span class="Style5"><?php echo $row_Recordset3['r1'];?></span>            </td>
        <td colspan="4">
                    <label>
                    <input class="toCheck" type="checkbox" name="c1" id="c1" value="Y"/>
                    </label>
                    <span class="Style5"><?php echo $row_Recordset4['r1'];?></span>            </td>
        <td colspan="4">
          <label>
          <input class="toCheck" type="checkbox" name="d1" id="d1" value="Y"/>
          </label>
          <span class="Style5"><?php echo $row_Recordset5['r1'];?></span>    </td>
        <td colspan="4">
          <label>
          <input class="toCheck" type="checkbox" name="e1" id="e1" value="Y"/>
          </label>
          <span class="Style5"><?php echo $row_Recordset6['r1'];?></span>    </td>
        </tr>
      <tr>
        <td colspan="4">
                    <label>
                    <input class="toCheck" type="checkbox" name="a2" id="a2" value="Y"/>
                    </label>
                    <span class="Style5"><?php echo $row_Recordset2['r2'];?></span></td>
        <td colspan="4">
                    <label>
                    <input class="toCheck" type="checkbox" name="b2" id="b2" value="Y"/>
                    </label>
                    <span class="Style5"><?php echo $row_Recordset3['r2'];?></span>            </td>
        <td colspan="4">
                    <label>
                    <input class="toCheck" type="checkbox" name="c2" id="c2" value="Y"/>
                    </label>
                    <span class="Style5"><?php echo $row_Recordset4['r2'];?></span>            </td>
        <td colspan="4">
          <label>
          <input class="toCheck" type="checkbox" name="d2" id="d2" value="Y"/>
          </label>
          <span class="Style5"><?php echo $row_Recordset5['r2'];?></span>    </td>
        <td colspan="4">
          <label>
          <input class="toCheck" type="checkbox" name="e2" id="e2" value="Y"/>
          </label>
          <span class="Style5"><?php echo $row_Recordset6['r2'];?></span>    </td>
        </tr>
      <tr>
        <td colspan="4">
                    <label>
                    <input class="toCheck" type="checkbox" name="a3" id="a3" value="Y"/>
                    </label>
                    <span class="Style5"><?php echo $row_Recordset2['r3'];?></span>   </td>
        <td colspan="4">
                    <label>
                    <input class="toCheck" type="checkbox" name="b3" id="b3" value="Y"/>
                    </label>
                    <span class="Style5"><?php echo $row_Recordset3['r3'];?></span>            </td>
        <td colspan="4">
          <label>
          <input class="toCheck" type="checkbox" name="c3" id="c3" value="Y"/>
          </label>
          <span class="Style5"><?php echo $row_Recordset4['r3'];?></span>   </td>
        <td colspan="4">
          <label>
          <input class="toCheck" type="checkbox" name="d3" id="d3" value="Y"/>
          </label>
          <span class="Style5"><?php echo $row_Recordset5['r3'];?></span>    </td>
        <td colspan="4">
          <label>
          <input class="toCheck" type="checkbox" name="e3" id="e3" value="Y"/>
          </label>
          <span class="Style5"><?php echo $row_Recordset6['r3'];?></span>    </td>
        </tr>
      <tr>
        <td colspan="4">
                    <label>
                    <input class="toCheck" type="checkbox" name="a4" id="a4" value="Y"/>
                    </label>
                    <span class="Style5"><?php echo $row_Recordset2['r4'];?></span>            </td>
        <td colspan="4">
                    <label>
                    <input class="toCheck" type="checkbox" name="b4" id="b4" value="Y"/>
                    </label>
                    <span class="Style5"><?php echo $row_Recordset3['r4'];?></span>            </td>
        <td colspan="4">
          <label>
          <input class="toCheck" type="checkbox" name="c4" id="c4" value="Y"/>
          </label>
          <span class="Style5"><?php echo $row_Recordset4['r4'];?></span>    </td>
        <td colspan="4">
          <label>
          <input class="toCheck" type="checkbox" name="d4" id="d4" value="Y"/>
          </label>
          <span class="Style5"><?php echo $row_Recordset5['r4'];?></span>    </td>
        <td colspan="4">
          <label>
          <input class="toCheck" type="checkbox" name="e4" id="e4" value="Y"/>
          </label>
          <span class="Style5"><?php echo $row_Recordset6['r4'];?></span>
        </td>
        </tr>
         <tr>
        <td colspan="4">*</td>
        <td colspan="4">*</td>
        <td colspan="4">*</td>
        <td colspan="4">*</td>
        <td colspan="4">*</td>
        </tr>
         <tr>
        <td colspan="4">*</td>
        <td colspan="4">*</td>
        <td colspan="4">*</td>
        <td colspan="4">*</td>
        <td colspan="4">
          <label>
            <div align="right">
              <input type="submit" name="button" id="button" value="Valider" />
              <input type="hidden" name="pseudo1" value="<?php echo $_SESSION['MM_Username']; ?>" />
              <input type="hidden" name="id_alea" value="<?php echo $_GET['id_alea']; ?>" />
              <input type="hidden" name="MM_insert" value="form1" />
            </div>
          </label>
        </form>

  2. #2
    Membre éclairé
    Homme Profil pro
    directeur hypermarché
    Inscrit en
    Avril 2009
    Messages
    227
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Yonne (Bourgogne)

    Informations professionnelles :
    Activité : directeur hypermarché

    Informations forums :
    Inscription : Avril 2009
    Messages : 227
    Par défaut
    Bon Je viens de comprendre ...

    Le validation Spry des cases à cocher ne fonctionne pas tout à fait comme les autres Spry de validation...
    Il faut tout de suite faire : Spry Validation de case à cocher ; et mettre ensuite les autres cases à cocher à l'intérieur.

+ Répondre à la discussion
Cette discussion est résolue.

Discussions similaires

  1. Validation des cases à cocher
    Par HAbroc dans le forum Général JavaScript
    Réponses: 3
    Dernier message: 18/06/2014, 07h50
  2. [Tableaux] Utiliser en case à cocher en PHP
    Par innova dans le forum Langage
    Réponses: 18
    Dernier message: 17/01/2007, 15h38
  3. Réponses: 3
    Dernier message: 09/01/2007, 09h37
  4. Réponses: 8
    Dernier message: 09/12/2005, 15h08
  5. Réponses: 24
    Dernier message: 24/11/2005, 10h28

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo