<h1>Testimonials</h1>

{select_query assign="testimonials"}
	*
FROM testimonials
ORDER BY RAND()
{/select_query}

{assign var="intNewCol" value=$testimonials|@count|math:"floor(x / 2) + 1"}

<table width="95%" cellpadding="5" align="center">
<tr><td valign="top">
{foreach name="testimonials" from=$testimonials item="current"}
{if $smarty.foreach.testimonials.iteration eq $intNewCol}</td><td valign="top">{/if}
<div class="notepaperBG" style="padding:17px;">
	{$current.testimonial}<br />
</div><br />
{/foreach}
</td></tr>
</table>
