<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>
#toplinks_block {padding:2px 5px}
#toplinks_block > * {margin:4px 6px;vertical-align:middle;}
#menu_block{$id} {clear:left;margin-top:10px;}
#menu_block{$id} div {float:left;white-space:nowrap;}
#menu_block{$id} div div {margin-right:1px;float:none;}
#menu_block{$id} a {white-space:nowrap;}
#details_block, #pages_block {white-space:nowrap}
#recordcontrols_block {padding:13px 10px 9px 10px;text-align:right}
#recordcontrols_block > * {margin:2px 2px;vertical-align:middle}
#search_records_top {clear:left;width:10%}
#chart_block {padding:5px 10px}
#message_block {text-align:center;}
#grid_block {margin-top:10px;}
.headerlist_right2 *,.headerlist * {vertical-align:middle}
.grid_recordheader {padding:0 5px 5px}
.grid_recordheader * {margin:0px 5px; vertical-align:middle}
#mastertable_block {margin:10px 0}
</style>
<!--[if IE]>
<style>
#toplinks_block * {margin:2px 3px;vertical-align:middle;}
#search_records_block * {margin:1px 1px;vertical-align:middle}
#recordcontrols_block * {margin:1x 1px;vertical-align:middle}
</style>
<![endif]-->

</head>
<body topmargin=5 {$bodyattrs}>
{BEGIN body}
{$header}
{BEGIN toplinks_block}
<div>
<b class="xtop"><b class="rb1 rb1_top"></b><b class="rb2 rb2_top"></b><b class="rb3 rb3_top"></b><b class="rb4 rb4_top"></b></b>
<div class="top" id="toplinks_block" >
##if @BUILDER.bCreateLoginPage##
<span><font style="FONT-FAMILY: Verdana, Arial;">##message LOGGED_AS ##</font>&nbsp;<b>{$username}</b>&nbsp;</span>
<span class=buttonborder><input type=button class=button value="##message LOG_OUT##" {$logoutlink_attrs}></span>

##if @BUILDER.bDynamicPermissions##
##if !IsAdminTable(@TABLE)##
{BEGIN adminarea_link}
<span class=buttonborder><input type=button class=button value="##message AA_ADMINAREA##" {$adminarealink_attrs}></span>
{END adminarea_link}
##else##
{BEGIN exitadminarea_link}
<span class=buttonborder><input type=button class=button value="##message AA_EXIT_ADMINAREA##" {$exitaalink_attrs}></span>
{END exitadminarea_link}
##endif##
##endif##

##if @BUILDER.Registration.bChangePwdPage && @BUILDER.nLoginMethod == SECURITY_TABLE##
{BEGIN changepwd_link}
<span class=buttonborder><input type=button class=button value="##message CHANGE_PASSWORD##" {$changepwdlink_attrs}></span>
{END changepwd_link}
##endif##
##endif##

##if Fields[bAdvancedSearch=1].len##
{BEGIN asearch_link}
<span class=buttonborder><input type=button class=button value="##message ADVANCED_SEARCH##" {$asearchlink_attrs}></span>
{END asearch_link}
##endif##

##if @BUILDER.arrLanguages.len>1##
{BEGIN languages_block}
<span id="languages_block">
<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>
</span>
{END languages_block}
##endif##
</div>
<b class="xbottom"><b class="rb4 rb4_top"></b><b class="rb3 rb3_top"></b><b class="rb2 rb2_top"></b><b class="rb1 rb1_top"></b></b>
</div>
{END toplinks_block}
<!-- MenuBegin -->
##include templates\lmenu.htm##
<!-- MenuEnd -->
<table id="search_records_top" cellpadding=0 cellspacing=0><tr><td>
<b class="rb1 rb1_search" ></b><b class="rb2 rb2_search"></b><b class="rb3 rb3_search"></b><b class="rb4 rb4_search"></b>
<div id="chart_block" class="main_table_border_P">
{$##@TABLE.strShortTableName##_chart 700 530}
</div>
<b class="rb4 rb4_menua" ></b><b class="rb3 rb3_menua"></b><b class="rb2 rb2_menua"></b><b class="rb1 rb1_menua"></b>
</td></tr></table>
{$footer}
{END body}
</body>
</html>