{page title="Сотрудники Лицея ФТШ"} {body} {literal} {/literal} {include_php file="staff.php"} {funcval function="staffAll" param=$smarty.get.sort} {foreach name=subj key=position item=teachers from=$staffAll} {foreach key=id item=data from=$teachers} {foreach key=name item=years from=$data} {funcval function="person" param=$id} {/foreach} {/foreach} {/foreach}

{$position}

{if $person.isDead}{/if} {$name} {if $years}{$years}{else} {if $person.years} {if $person.yearFinish} с {$person.years} по {$person.yearFinish}{else}с {$person.years}{/if}{else}  {/if} {/if}
{/body}