EIOS/rabprog/tpl/mod_sidebarMenu.html

49 lines
5.1 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<nav id="sidebarMenu" class="col-md-3 col-lg-2 d-md-block bg-light sidebar collapse">
<div class="position-sticky pt-3">
<ul class="nav flex-column">
<li class="nav-item"><a class="nav-link {if !count($CHPU)}active" aria-current="page{/if}" href="{$TPL}/">Главная</a></li>
{if isset($aUSER.statuses[20])}
<li class="nav-item" style="padding-left: 24px;font-size: 10px;color: gray;">уму</li>
<li class="nav-item"><a class="nav-link {if $CHPU[0]=="shahtplans"}active" aria-current="page{/if}" href="{$TPL}/shahtplans/">Учебные планы</a></li>
<li class="nav-item"><a class="nav-link {if $CHPU[0]=="shahtplans_pravka"}active" aria-current="page{/if}" href="{$TPL}/shahtplans_pravka/">Учебные планы ПРАВКА</a></li>
<li class="nav-item"><a class="nav-link {if $CHPU[0]=="moduls"}active" aria-current="page{/if}" href="{$TPL}/moduls/">Модули</a></li>
<li class="nav-item"><a class="nav-link {if $CHPU[0]=="obrtech"}active" aria-current="page{/if}" href="{$TPL}/obrtech/">Образовательные технологии</a></li>
<li class="nav-item"><a class="nav-link {if $CHPU[0]=="fakkaf"}active" aria-current="page{/if}" href="{$TPL}/fakkaf/">Факультеты-кафедры</a></li>
<li class="nav-item"><a class="nav-link {if $CHPU[0]=="discchangeprepod"}active" aria-current="page{/if}" href="{$TPL}/discchangeprepod/">Смена преподавателя РПД</a></li>
{/if}
{if isset($aUSER.statuses[30])}
<li class="nav-item" style="padding-left: 24px;font-size: 10px;color: gray;">зав.каф.</li>
<li class="nav-item"><a class="nav-link {if $CHPU[0]=="komp_models"}active" aria-current="page{/if}" href="{$TPL}/komp_models/">Комп.модели</a></li>
<li class="nav-item"><a class="nav-link {if $CHPU[0]=="komp_models_sem"}active" aria-current="page{/if}" href="{$TPL}/komp_models_sem/">Этапы формирования компетенций</a></li>
<li class="nav-item"><a class="nav-link {if $CHPU[0]=="disciplins"}active" aria-current="page{/if}" href="{$TPL}/disciplins/">Дисциплины</a></li>
<li class="nav-item"><a class="nav-link {if $CHPU[0]=="report_fosy"}active" aria-current="page{/if}" href="{$TPL}/report_fosy/" target="_blank">Список ФОС</a></li>
{/if}
{if isset($aUSER.statuses[79])|| isset($aUSER.statuses[30])}
<li class="nav-item" style="padding-left: 24px;font-size: 10px;color: gray;">проректор УР, зав.каф.</li>
<li class="nav-item"><a class="nav-link {if $CHPU[0]=="rpdsign"}active" aria-current="page{/if}" href="{$TPL}/rpdsign/">РПД на подпись</a></li>
{/if}
{if isset($aUSER.statuses[29])}
<li class="nav-item" style="padding-left: 24px;font-size: 10px;color: gray;">Библиотека</li>
<li class="nav-item"><a class="nav-link {if $CHPU[0]=="lib_check"}active" aria-current="page{/if}" href="{$TPL}/lib_check/">Проверка лит.</a></li>
<li class="nav-item"><a class="nav-link {if $CHPU[0]=="lib_check_bib"}active" aria-current="page{/if}" href="{$TPL}/lib_check_bib/">Проверенные лит.</a></li>
{/if}
<li class="nav-item" style="padding-left: 24px;font-size: 10px;color: gray;">преподаватель</li>
<li class="nav-item"><a class="nav-link {if $CHPU[0]=="rpd"}active" aria-current="page{/if}" href="{$TPL}/rpd/">Разработка РПД</a></li>
</ul>
{*<pre>{print_R($aUSER.statuses)}</pre>*}
<div class="fixed-bottom" style="width: fit-content;">
<h6 class="sidebar-heading d-flex justify-content-between align-items-center px-3 mt-4 mb-1 text-muted">
<span>Пользователь</span>
</h6>
<ul class="nav flex-column">
<li class="nav-item" style="margin: 0.1rem 1rem;"><span data-bs-toggle="tooltip" data-bs-placement="top" title="{$aUSER.fio}">{$aUSER.fio|truncate:20}</span></li>
<li class="nav-item" style="margin: 0.1rem 1rem;"><span data-bs-toggle="tooltip" data-bs-placement="top" title="{$aUSER.teachers.dolgnost}">{$aUSER.teachers.dolgnost|truncate:20}</span></li>
<li class="nav-item" style="margin: 0.1rem 1rem;"><span data-bs-toggle="tooltip" data-bs-placement="top" title="{$aUSER.teachers.fakultet}">{$aUSER.teachers.fakultet|truncate:20}</span></li>
<li class="nav-item" style="margin: 0.1rem 1rem;"><span data-bs-toggle="tooltip" data-bs-placement="top" title="{$aUSER.teachers.kafedra}">{$aUSER.teachers.kafedra|truncate:20}</span></li>
<li class="nav-item" style="margin: 0.1rem 1rem;"><span data-bs-toggle="tooltip" data-bs-placement="top" title="{foreach from=$aUSER.statuses item=status}{$status}; {/foreach}">Полномочия</span></li>
<li class="nav-item"><a class="nav-link" href="{$TPL}/logout/">Выход</a></li>
</ul>
</div>
</div>
</nav>