##Title = Добавить сообщение ##Text {t_component src="Test_Gbook_Add" name="error" book="test"}
Ваше имя: {if @$error.name}Не указано имя!{/if}
E-mail: {if @$error.email} Не указан E-mail! {/if}
Профессия: {if @$error.occupation} Не указана профессия! {/if}
Комментарий: {if @$error.text} Слишком короткий текст сообщения! {/if}
  {if $error} Ошибка: сообщение не добавлено! {/if}
{/t_component} {t_component src="Test_Gbook_Show" name="book" book="test"} {foreach from="$book" key="id" item="e"}
{$e.stamp|date_format:"%Y-%m-%d %H:%M"} {$e.name|htmlspecialchars} :
    {$e.text|htmlspecialchars}
{/foreach} {/t_component}