##if (CreateMenu) || IsAdminTable(@TABLE)##
{BEGIN menu_block}
<div id="menu_block{$id}">
##if !IsAdminTable(@TABLE) || !@BUILDER.m_bDynamicPermissions##
<!-- MainMenuBegin -->
{$mainmenu horizontal}
<!-- MainMenuEnd -->
##else##
<style>
.menutab1 {float:left;border-collapse: collapse;margin-top:1px}
.menutab1 * {padding:0;margin:0}
.menutab2 {border-style:solid;border-width:1px;border-right:none;border-bottom:none;height:25px}
.menutab3 {border-style:solid;border-width:1px;border-bottom:none; border-right:none;padding:3px;height:18px;}
.menutab3 a {white-space:nowrap}
</style>
<!--[if IE]>
{BEGIN iestyle_block}
<style>
.menutab2 {height:26px;}
.menutab3 {height:25px;}
</style>
{END iestyle_block}
<![endif]-->
##foreach @BUILDER.Tables as @t filter IsAdminTable(@t)##
{BEGIN ##@t.strShortTableName##_tablelink}
<table class="menutab1">
	<tr>
		<td>
			<div class="menuborder1 menutab2">
				<div class="menutab3 menuborder2 ##if @t.strDataSourceTable!=@TABLE.strDataSourceTable##menu_unselected##else##menuitem_active##endif##">
					<span ve="edit">
						<a class=menu_db {$##@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>
			</div>
		</td>
		<td class="menutab4"><img src="include/img/menu_blue_##if @t.strDataSourceTable!=@TABLE.strDataSourceTable##un##endif##select.gif" border=0></td>
	</tr>
</table>
{END ##@t.strShortTableName##_tablelink}
##endfor##
##endif##
</div>
{END menu_block}
##endif##
