2009-03-10から1日間の記事一覧

Smartyでテーブルの隙間を詰める

<tr> [テーブル作成用のループ] {assign var='cnt' value=$record|@count} {if $cnt%5>0} {section name='loop1' start=$cnt%5 loop=5} <td>&nbsp;</td> {/section} {/if} </tr> このくらいが見やすいか… プラグイン作るほどでもないし。 もう少し考えれば if 文を省略できそう…