{foreach from=$sections item=sw}
&lt;a style=&quot;font-weight:bold;text-decoration:none&quot; href=&quot;index.php?do=login&amp;action=sectionswitch&amp;id={$sw->Id}&quot;&gt;{$sw->Name}&lt;/a&gt;&lt;br /&gt;
{/foreach}