##if (CreateMenu) || IsAdminTable(@TABLE)##
{BEGIN menu_block}
<div class="menu_table" id="menu_block{$id}">
##if !IsAdminTable(@TABLE) || !@BUILDER.m_bDynamicPermissions##
<!-- MainMenuBegin -->
{$mainmenu}
<!-- MainMenuEnd -->
##else##
##foreach @BUILDER.Tables as @t filter IsAdminTable(@t)##
    <div >
		<span>
##if @t.strDataSourceTable==@TABLE.strDataSourceTable## <img src="include/img/arrow_search2.gif" border=0> ##else## <img src="include/img/arrow_search.gif" border=0> ##endif##
        </span>
        <span>&nbsp;&nbsp;<a {$##@t.strShortTableName##_tablelink_attrs} ##if @t.strDataSourceTable==@TABLE.strDataSourceTable## class="highlight-tablesearch" ##else## class="tablelinkssearch"##endif##>
##if @t.strDataSourceTable=="admin_users"##
##message AA_ADDEDIT_USERS##
##elseif @t.strDataSourceTable=="admin_members"##
##message AA_ASSIGN_USERS##
##elseif @t.strDataSourceTable=="admin_rights"##
##message AA_PERMISSIONS##
##endif##
        </a></span>
	</div>
##endfor##
##endif##
</div>
{END menu_block}
##endif##
		