
	<ul id="admin-tabmenu">
		{foreach from=$menubar item=tab}
		{if $tab eq $panel}
		
		<li id="admin-{$tab}">
			<a class="admin-tab-current" href="{$smarty.const.BLOG_BASEURL}admin.php?p={$tab}">
				{$lang.admin.panels[$tab]|default:$tab}
			</a>
		</li>
		{else}
		<li id="admin-{$tab}">
			<a href="{$smarty.const.BLOG_BASEURL}admin.php?p={$tab}">
				{$lang.admin.panels[$tab]|default:$tab}
			</a>
		</li>
		{/if}
		{/foreach}
	</ul>
	
	{if isset($submenu)}
	<ul id="admin-submenu">
		{foreach from=$submenu key=subtab item=item}
		{if $item}
		<li id="admin-{$panel}-{$subtab}">
			<a {if $action == $subtab}class="active" {/if}
				href="{$smarty.const.BLOG_BASEURL}admin.php?p={$panel}&amp;action={$subtab}">
			{$lang.admin[$panel].submenu[$subtab]|default:$subtab}
			</a>
		</li>
		{/if}
		{/foreach}
	</ul>
	{/if}
	
	<div id="admin-content">
	{if isset($action)}
		{include file=$admin_resource|default:"admin:$panel/$action"}
	{else}
		{include file=$admin_resource|default:"admin:$panel"}
	{/if}
	</div>
