<html {$html_attrs}>
<head>
<title>##@TABLE.strCaption h##</title>
<link REL="stylesheet" href="include/style.css" type="text/css">
<!--[if IE]>
<link REL="stylesheet" href="include/styleIE.css" type="text/css">
<![endif]-->
<style>
#mastertable_block {margin-left:50px;margin-top:10px}
#toplinks_block {padding:10px; margin-bottom:3px;}
#login_block_right {text-align:right;padding-left:30px;}
#login_block_left {text-align:left;}
#login_block_left * {margin-left:5px;}
#menu_block {margin-left:10px}
#recordcontrols_block {padding:10px 10px;text-align:center;vertical-align:middle;}
#recordcontrols_block > * {margin:2px 2px;vertical-align:middle}
#grid_block {margin-top:2px;}
#linebody {height:10px;}
.message_block {text-align:center;padding:5px}
.grid_recordheader {padding:0 5px 5px}
.grid_recordheader * {margin:0px 5px; vertical-align:middle}
form#frmAdmin {display:inline;}
body {margin-left:10px;}
.menutab1 {float:left}
.menutab2 {float:left;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;float:left}
.menutab4 {float:left}
#aftermenu {clear:left;height:1px;overflow:hidden}
</style>
<!--[if IE]>
<style>
.menutab2 {height:26px;}
.menutab3 {height:25px;}
</style>
<![endif]-->
</head>

<body topmargin=5 {$bodyattrs}>
{BEGIN body}
{$header}
{BEGIN toplinks_block}
<div id="toplinks_block">
<span id="login_block_left">
##if @BUILDER.bCreateLoginPage##
##message LOGGED_AS ##&nbsp;<b>{$username}</b>
<a href="login.##@ext##?a=logout">##message LOG_OUT##</a>
##if @BUILDER.bDynamicPermissions##
##if !IsAdminTable(@TABLE)##
{BEGIN adminarea_link}
<a href="admin_rights_list.##@ext##">##message AA_ADMINAREA##</a>
{END adminarea_link}
##else##
{BEGIN exitadminarea_link}
<a {$exitaalink_href} >##message AA_EXIT_ADMINAREA##</a>
{END exitadminarea_link}
##endif##
##endif##

##if @BUILDER.Registration.bChangePwdPage && @BUILDER.nLoginMethod == SECURITY_TABLE##
{BEGIN changepwd_link}
<a href="changepwd.##@ext##">##message CHANGE_PASSWORD ##</a>
{END changepwd_link}
##endif##
##endif##
</span>

<span id="login_block_right">
##if Fields[bAdvancedSearch=1].len##
{BEGIN asearch_link}
<a href="##@TABLE.strShortTableName h##_search.##@ext##">##message ADVANCED_SEARCH##</a>	
{END asearch_link}
##endif##

##if @TABLE.bExportTo##
{BEGIN export_link}
<span>
&nbsp;&nbsp;&nbsp;
<a target="_blank" href="##@TABLE.strShortTableName h##_export.##@ext##">##message EXPORT_RESULTS##</a>
</span>
{END export_link}
##endif##

##if @TABLE.bPrinterFriendly##
{BEGIN print_link}
<span>
&nbsp;&nbsp;&nbsp;
<a target="_blank" href="##@TABLE.strShortTableName h##_print.##@ext##">##message PRINTER_FRIENDLY##</a>
</span>
{END print_link}
##if @TABLE.bPrintAll##
{BEGIN printall_link}
<span>
&nbsp;&nbsp;&nbsp;
<a target="_blank" href="##@TABLE.strShortTableName h##_print.##@ext##?all=1">##message PRINT_ALL_PAGES##</a>
</span>
{END printall_link}
##endif##
##endif##


##if @TABLE.bImport##
{BEGIN import_link}
<span>
&nbsp;&nbsp;&nbsp;
<a href="##@TABLE.strShortTableName h##_import.##@ext##">##message IMPORT##</a>
</span>
{END import_link}
##endif##



<!--language-->
##if @BUILDER.arrLanguages.len>1##
{BEGIN languages_block}
<span>
&nbsp;&nbsp;&nbsp;
<b>##message LANGUAGE ##:</b>&nbsp;
	<select {$langselector_attrs}>
	##foreach @BUILDER.arrLanguages as @lang##
		<option value="##@lang h##" {$##@lang g##_langattrs}>##@lang h##</option>
	##endfor##
	</select>
{END languages_block}
##endif##
</span>

##if CreateMenu || IsAdminTable(@TABLE)##
    {BEGIN menu_block}
    <span id="menu_block">
        ##message QUICK_JUMP##:&nbsp;
        <select {$quickjump_attrs}>
            ##if !IsAdminTable(@TABLE) || !@BUILDER.m_bDynamicPermissions##
                <option value="menu.##@ext##">##message BACK_TO_MENU##</option>
                {$quickjump_options}
            ##else##
                ##foreach @BUILDER.Tables as @t filter IsAdminTable(@t)##
                    {BEGIN ##@t.strShortTableName##_tablelink}
                    <option {$##@t.strShortTableName##_optionattrs}
                    ##if @t.strDataSourceTable==@TABLE.strDataSourceTable## selected##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##
                    {END ##@t.strShortTableName##_tablelink}
                    </option>
                ##endfor##
            ##endif##
        </select>
    </span>
    {END menu_block}
##endif##

</div>
{END toplinks_block}

<div id="aftermenu"></div>
<table class="tableborder" cellspacing=0 cellpadding=0 ><tr><td class="tableborder1">
{BEGIN chart_block}
<div id="chart_block" class="main_table_border_P">
{$##@TABLE.strShortTableName##_chart 700 530}
</div>
{END chart_block}
</td></tr></table>
</div>
{$footer}
{END body}
</body>
</html>