php - How to limit the number of cells per table row to 3? -
I have a dynamically loaded table, in which I want to limit the number of columns by 3 so that the next Here's how I import data using smartphones: How can I make it so that there are only 3 table cells in each row? TD Stars (see and view the categories button at the top of the page).
foreach Use the property of the loop:
... {foreach = $ array_categories items = v name = cat} {if $ Smarty.foreach.cat.iteration% 3 == 0 & amp; Amp; $ Smarty.foreach.cat.iteration & gt; 0} & lt; / Tr & gt; & Lt; TR & gt; {/ If} & lt; Td valign = "top" width = "116px" align = "left" & gt; Smarty2 syntax, if you use Smarty3 you can also use
$ v @ iteration
$ smarty.foreach.cat Iteration code>.
Comments
Post a Comment