Afficher un message
Vieux 09/02/2006, 19h26   #3
Monte Ohrt
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: [SMARTY] html_options is possible to do that ?

syntax is:

{html_options values=$catArr.IDC output=$catArr.ANombre}

You cannot embed delimiters.



Reynier Perez Mira wrote:

>I have this PHP Code:
>$sql = $db->Execute("SELECT IDC, CNombre FROM os_catproductos ORDER BY IDC ASC");
>$arrCat = array();
>while ( $categorias = $sql->fetchRow() ) {
> $arrCat[] = $categorias;
>}
>$tpl->assign('catArr', $arrCat);
>
>Then I need to build an SELECT working with catArr values. I try this in template:
>
><select id="arrCatSELECT" id="arrCatSELECT" size="1" onchange="javascript:document.location.href='index .php?cPath={$catArr.IDC}';">{html_options values={$catArr.IDC} output=$catArr.ANombre}</select>
>
>But it not works. Any ?
>
>
>

  Réponse avec citation
 
Page generated in 0,04364 seconds with 9 queries