{print_r($zanyato)}*}
В таблице внизу, каждой ячейки представлена информация о выделенных местах и занятых местах через символ /
День | Пара | Время | {foreach from=$teacher item=teach key=kk}{$teach.fio} |
{/foreach}
---|---|---|---|
{$dd} | {/if}{$tt} | {$time} | {foreach from=$teacher item=teach key=kk}
id_teach={$teach.id_teach}
{if (!isset($zanyato[$dd][$tt][$teach.id_teach]))}
{else}
{*day={$dd} time={$tt} {print_r($zanyato[$dd][$tt][$teach.id_teach])} {$mesta[$dd][$tt][$teach.id_teach].count} / {$mesta[$dd][$tt][$teach.id_teach].zanyt} *}
{*{print_r($mesta[$zanyato[$dd][$tt][$teach.id_teach].fakultets][$zanyato[$dd][$tt][$teach.id_teach].id_section][$zanyato[$dd][$tt][$teach.id_teach].course][$teach.id_teach])}*} {*assign var="zzz" value=*}
{*$mesta[$zanyato[$dd][$zanyato[$dd][$tt][$teach.id_teach].course][$teach.id_teach].fakultets][$zanyato[$dd][$tt][$teach.id_teach].id_section][$tt][$teach.id_teach].count*}
{$zanyato_new[$teach.id_teach][$zanyato[$dd][$tt][$teach.id_teach].id_section][$zanyato[$dd][$tt][$teach.id_teach].course][$zanyato[$dd][$tt][$teach.id_teach].fakultets].count}
/
{*$mesta[$zanyato[$dd][$zanyato[$dd][$tt][$teach.id_teach].course][$teach.id_teach].fakultets][$zanyato[$dd][$tt][$teach.id_teach].id_section][$tt][$teach.id_teach].zanyt*}
{$zanyato_new[$teach.id_teach][$zanyato[$dd][$tt][$teach.id_teach].id_section][$zanyato[$dd][$tt][$teach.id_teach].course][$zanyato[$dd][$tt][$teach.id_teach].fakultets].zanyato}
{/if} |
{/foreach}