Re: [SMARTY-DEV] REQ: $float for {section step=$integer}

From: Date: Mon, 05 May 2003 18:50:53 +0000
Subject: Re: [SMARTY-DEV] REQ: $float for {section step=$integer}
References: 1 2  Groups: php.smarty.dev 
Request: Send a blank email to php-smarty-dev+get-1355@lists.php.net to get a copy of this message
Tom Anderson wrote: > Not necessary. If you run into a problem like this just multiply > each value by 10 (or whatever is necessary to remove the values after > the decimal. good idea, but try to do this :-) <select name="mts" id="mts"> {section start=$_config.MtsMinPercentage loop=$mts step=0.1 name="mts"} <option value="{$smarty.section.mts.iteration}"> {$smarty.section.mts.iteration} </option> {/section} </select> % If you multiply it by 10, the option value is also multiplied by 10, that means the select field has not the correct captions! greets, Joscha

« previous php.smarty.dev (#1355) next »