##if (CreateMenu) || IsAdminTable(@TABLE)##
{BEGIN menu_block}
<div id="menu_block{$id}" class="blackshade toplist">
##if !IsAdminTable(@TABLE) || !@BUILDER.m_bDynamicPermissions##
<!-- MainMenuBegin -->
{$mainmenu}
<!-- MainMenuEnd -->
##else##
##foreach @BUILDER.Tables as @t filter IsAdminTable(@t)##
  {BEGIN ##@t.strShortTableName##_tablelink}
    <DIV>##if @t.strDataSourceTable==@TABLE.strDataSourceTable##<img src="include/img/arrow_menuL6_1.gif" border=0>##else##<img src="include/img/arrow_menuL6_2.gif" border=0>##endif##&nbsp;
	<a {$##@t.strShortTableName##_tablelink_attrs}>
		##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>
	</DIV>
  {END ##@t.strShortTableName##_tablelink}
 ##endfor##
##endif##
</div>
{END menu_block}
##endif##