##if (CreateMenu) || IsAdminTable(@TABLE)##
{BEGIN menu_block}
  <div class="xboxcontent" id="menu_block{$id}">
##if !IsAdminTable(@TABLE) || !@BUILDER.m_bDynamicPermissions##
<!-- MainMenuBegin -->
{$mainmenu}
<!-- MainMenuEnd -->	
##else##
##foreach @BUILDER.Tables as @t filter IsAdminTable(@t)##
  	{BEGIN ##@t.strShortTableName##_tablelink}
		<div class="menu_block">
   			<span class="menu_pict">	
 			##if @t.strDataSourceTable==@TABLE.strDataSourceTable## <img src="include/img/arrow_search2R.gif" border=0> ##else## <img src="include/img/arrow_searchR.gif" border=0> ##endif##
   			</span>
   			<span class="menu_capt">
				<a ##if @t.strDataSourceTable==@TABLE.strDataSourceTable## class="highlight-tablesearch" ##else## class="tablelinkssearch"##endif## {$##@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>
    		</span>
	    </div>
    {END ##@t.strShortTableName##_tablelink}
##endfor##
##endif##
  </div>
  {END menu_block}
##endif##