Afficher un message
Vieux 17/11/2006, 17h05   #3
Max Schwanekamp
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: [SMARTY] if-else-routine bundled

Peggy Schatz wrote:
> ************in the template****************
>
> <td>{checkfield data=$templateVar value=$templateVar_value
> selected=$selected}</td>


For what it's worth, you might also consider using a form handling class
such as formsess, PEAR::HTML_QuickForm, etc. I use the latter, and my
template code is something like this:
<div{if $form.myelement.required} class="required">
<label for=$form.myelement.id>My Element Label</label>
{$form.myelement.html}
</div>

The renderer object for the form takes care of outputting the correct
markup for the input type.

FWIW!

--
Max Schwanekamp
NeptuneWebworks.com
541-517-9064
  Réponse avec citation
 
Page generated in 0,04269 seconds with 9 queries