Sujet fermé
Note de ce sujet :
  • Moyenne : 0 (0 vote(s))
  • 1
  • 2
  • 3
  • 4
  • 5

[RESOLU] Personnaliser Module FEU - SelfReg
#4

Tu peux appliquer une classe distincte sur chaque labels et champs de cette manière :

Code :
{foreach from=$controls item=control}
  <tr>
    <td class='label{counter name=label}'>{$control->hidden}
    {if $control->color != ''}
      <font color="{$control->color}">{$control->prompt}{$control->marker}</font>
    {else}
      {$control->prompt}{$control->marker}
    {/if}
    </td>
    <td class='input{counter name=champ}'>{$control->control}</td>
  </tr>
{/foreach}
counter : http://www.smarty.net/manual/fr/language...ounter.php
Sujet fermé


Messages dans ce sujet

Atteindre :


Utilisateur(s) parcourant ce sujet : 1 visiteur(s)