Section - stepИли сделать цикл с шагом 1, но и брались значения из массива только нечетные, а четные итерации пропускал?
Подумайте и перечитайте, если нужно, ман.читал я..доку, хотя бы скажи как пропускать четные итерации?
читал не написано.Автор оригинала: Mr_Max
Подумайте и перечитайте, если нужно, ман.
Из _рельного_темплейта_ взяли?{if $section.customer.i1.index is div by 2}
Автор оригинала: Mr_Max
koder
Из _рельного_темплейта_ взяли?
Синтаксис неверный.
{if $smarty.section.i1.index is div by 2}
<table border="0" cellspacing="0" cellpadding="0" >
{section name=i1 loop=$products_to_show step=10}
<tr>
<td>
{include file="product_brief.tpl.html" product_info=$products_to_show[i1] product_info_2=$products_to_show[$smarty.section.i1.index_next]}
</td>
</tr>
{/section}
</table>
делали{section name=i1 loop=$products_to_show step=10}
<tr>
<td>
{include file="product_brief.tpl.html" product_info=$products_to_show[i1] product_info_2=$products_to_show[$smarty.section.i1.index_next]}
</td>
</tr>
{/section}
???{if $smarty.section.i1.index is div by 2}
Мне нужно что-то типо этогоАвтор оригинала: Mr_Max
koder
Инклюды в цикле?...
Жесть.
Вы в данном куске кода
делали
???
Если да то подумайте.
о том, какое значение индекса будет у
$smarty.section.i1.index при step=10
<table border="0" cellspacing="0" cellpadding="0" >
{section name=i1 loop=$products_to_show step=10}
{if $smarty.section.i1.index is odd}
<tr>
<td>
{include file="product_brief.tpl.html" product_info=$products_to_show[i1] product_info_2=$products_to_show[$smarty.section.i1.index_next]}
</td>
</tr>
{/if}
{/section}
</table>
Пора включать мозги.{section name=i1 loop=$products_to_show step=10}
{if $smarty.section.i1.index is odd}
<tr>
<td>
{include file="product_brief.tpl.html" product_info=$products_to_show[i1] product_info_2=$products_to_show[$smarty.section.i1.index_next]}
</td>
</tr>
{/if}
{/section}
translate.ru :// is odd{if $smarty.section.i1.index is odd}
Нужно постить реальный код а не фиг знает что.тестовый код кинул
Нет. http://phpclub.ru/faq/WhyForumВы мне не можете подсказать бегаете да около..