{include file='scripts.tpl'}
{if $user_avatar}
{else}
{/if}
{#MAIN_USER_ONLINE#}
{$smarty.session.user_name|escape}
{if $smarty.const.ADMIN_MENU_QUICK_ADD}
{#MAIN_BUTTON_ADD#}
{if check_permission('documents_edit')}
{#MAIN_ADD_DOC#}
{/if} {if check_permission('rubric_edit')}
{#MAIN_ADD_RUB#}
{/if} {if check_permission('request_edit')}
{#MAIN_ADD_REQ#}
{/if} {if check_permission('sysblocks_edit')}
{#MAIN_ADD_SYS#}
{/if} {if check_permission('template_edit')}
{#MAIN_ADD_TEM#}
{/if} {if check_permission('navigation_edit')}
{#MAIN_ADD_NAV#}
{/if} {if check_permission('user_edit')}
{#MAIN_ADD_USR#}
{/if} {if check_permission('group_edit')}
{#MAIN_ADD_GRP#}
{/if}
{/if}
{#MAIN_BRANCHES#}
{$navi_top}
{if check_permission('modules_view')} {if $modules}
{#MAIN_LINK_MODULES_H#}
{if $modules && check_permission('modules_view')}
{foreach from=$modules item=module}
{$module.ModuleName}
{/foreach}
{/if}
{/if} {/if} {if check_permission('gen_settings') || check_permission('gen_settings_more') || check_permission('dbactions') || check_permission('gen_settings_countries') || check_permission('gen_settings_languages') }
{#MAIN_LINK_SETTINGS_H#}
{if check_permission('gen_settings')}
{#MAIN_SETTINGS_EDIT_1#}
{/if} {if check_permission('gen_settings_more')}
{#MAIN_SETTINGS_EDIT_2#}
{/if} {if check_permission('gen_settings_countries')}
{#MAIN_SETTINGS_EDIT_3#}
{/if} {if check_permission('gen_settings_languages')}
{#MAIN_LINK_LANG#}
{/if} {if check_permission('db_actions')}
{#MAIN_SETTINGS_EDIT_4#}
{/if}
{/if} {if check_permission('cache_clear')}
{#MAIN_STAT_CLEAR_CACHE#}
{#MAIN_SETTINGS_SHOWCACHE#}
{/if} {*
{#MAIN_LOGIN_HELP#}
*}
{#MAIN_LINK_SITE#}
{#MAIN_BUTTON_LOGOUT#}
{#MAIN_LINK_HOME#}
{$navi}
{$content}