Ver Mensaje Individual
  #3 (permalink)  
Antiguo 18/07/2006, 08:08
zsamer
 
Fecha de Ingreso: noviembre-2003
Mensajes: 798
Antigüedad: 20 años, 5 meses
Puntos: 8
gracias, tambien quiero compartir lo que enconté:

Mostrar resultado en x Columnas
Código PHP:
{* Requires Smarty 2.6.0 or later *}
{* 
$data is the array you want to display *}
{* 
$numCols is the number of columns *}
<
table>
    <
tr>
    {
assign var="col" value="0"}
    {
section name=element loop=$data}
        {if 
$col == $numCols}
            </
tr><tr>{assign var="col" value="0"}
        {/if}
        <
td>{$data[element]}</td
        {
assign var="col" value="`$col+1`"}
    {/
section}
    {
assign var="remainder" value="`$numCols-$col`"}
    {
section name=emptyElement loop=$remainder}
        <
td>&nbsp;</td>
    {/
section}
    </
tr>
</
table
Fuente: http://smarty.incutio.com/?page=SmartyColumnsTutorial