Re: [SMARTY] 3 photos at one row

From: Date: Fri, 21 Nov 2003 15:31:16 +0000
Subject: Re: [SMARTY] 3 photos at one row
References: 1 2  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-10579@lists.php.net to get a copy of this message
okay, if everybody posts: here is one from me (caution! it uses simple math from 2.6.0. actually it's the first (and since that the last) useful application of simple-math i found, yet) {* $cols is the number of columns you want *} <table border=1> {section name=tr loop=$data step=$cols} <tr> {section name=td start=$smarty.section.tr.index loop=$smarty.section.tr.index+$cols} <td>{$data[td]|default:"&nbsp;"}</td> {/section} </tr> {/section} </table> On Fri, Nov 21, 2003 at 09:13:18AM -0600, Eduardo wrote: > Hi, > > You can use this plugin: > http://smarty.incutio.com/?page=PaddedTableCellsPlugin > > Hope this help. > > Later > Eduardo. > > -----Original Message----- > From: Jiøí Nìmec [mailto:konference@menea.cz] > Sent: Friday, November 21, 2003 4:53 AM > To: smarty-general@lists.php.net > Subject: [SMARTY] 3 photos at one row > > Hello, > > I have got problem displaing photos in photogallery. There's an > array with image width, height, filename etc. > > i need in template writeout 3 photos in one <TR>, but I can not use > html_table. > > is there some solutuion how to write out 3 photos per one row? > > thank you for any help! > > Ji??í N??mec, ICQ: 114651500 > www.menea.cz - www stránky a aplikace > > -- > Smarty General Mailing List (http://smarty.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- > Smarty General Mailing List (http://smarty.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.smarty.general (#10579) next »