{if isset($mess)&&count($mess)}
Сообщение! {foreach from=$mess item=m}{$m}
{/foreach}
{/if} {if count($form.err)}{foreach from=$form.err item=er}
Ошибка! {$er}
{/foreach}{/if} {if isset($form.msg)}
Успешно! {$form.msg}
{/if}