| Новости | FAQ | Авторы | Документация | В действии | Библиотека |
| Инструменты | Полезные ссылки | Хостинги | Скачать | Примеры | Форум |
Alexei 06.09.2010 16:56
Приветствую!<form method="post" enctype="multipart/form-data">
Size 1 <input type="checkbox" name="sizes" value="1" checked="checked" />
Price Opt <input type="text" name="price_opt_1" value="100" />
Price Retail <input type="text" name="price_retail_1" value="200" />
<br/>
Size 2 <input type="checkbox" name="sizes" value="2" checked="checked" />
Price Opt <input type="text" name="price_opt_1" value="200" />
Price Retail <input type="text" name="price_retail_1" value="400" />
<br/>
Size 3 <input type="checkbox" name="sizes" value="3" />
Price Opt <input type="text" name="price_opt_3" value="0" />
Price Retail <input type="text" name="price_retail_3" value="0" />
<br/>
<input type="submit" value="Save" />
</form>
^if(def $form:tables.sizes){
$sizes[$form:tables.sizes]
^sizes.menu{
Size $sizes.field <br/>
Price Opt: $form:price_opt_$sizes.field<br/>
Price Retail: $form:price_retail_$sizes.field
}[<hr/>]
}Причём, если изменить $form:price_opt_$sizes.field на $form:price_opt_1 - данные получаются.