<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{$id} {margin-left:50px;margin-top:10px}
#search_records_block{$id} {vertical-align:middle;text-align:center;padding-top:2px;}
#search_records_block{$id} > * {vertical-align:middle;}
#search_records_block{$id} select {margin:3px 0px;}
#toplinks_block{$id} {padding:10px; margin-bottom:3px;}
#login_block_right{$id} {text-align:right;padding-left:30px;}
#login_block_left{$id} {text-align:left;}
#login_block_left{$id} * {margin-left:5px;}
#menu_block{$id} {margin-left:10px}
#recordcontrols_block{$id} {padding:10px 10px;text-align:center;vertical-align:middle;}
#record_controls{$id} > *,#newrecord_controls > * {margin:2px 2px;vertical-align:middle}
#grid_block{$id} {margin-top:2px;}
#linebody{$id} {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{$id} {display:inline;}
body {margin-left:10px;}
#aftermenu{$id} {clear:left;height:1px;overflow:hidden}
#chart_block {padding:5px 10px}
</style>
<!--[if IE]>
{BEGIN iestyle_block}
<style>
.menutab2 {height:26px;}
.menutab3 {height:25px;}
</style>
{END iestyle_block}
<![endif]-->
</head>

<body topmargin=5 {$bodyattrs}>
{BEGIN body}
{$header}
{BEGIN toplinks_block}
<div id="toplinks_block{$id}">
<span id="login_block_left{$id}">
##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 class="tablelinks" href="admin_rights_list.##@ext##">##message AA_ADMINAREA##</a>
{END adminarea_link}
##else##
{BEGIN exitadminarea_link}
<a {$exitaalink_href} class=tablelinks>##message AA_EXIT_ADMINAREA##</a>
{END exitadminarea_link}
##endif##
##endif##

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

<span id="login_block_right{$id}">
##if Fields[bAdvancedSearch=1].len##
{BEGIN asearch_link}
<a href="##@TABLE.strShortTableName h##_search.##@ext##">##message ADVANCED_SEARCH##</a>	
{END asearch_link}
##endif##
<!--language-->
##if @BUILDER.arrLanguages.len>1##
{BEGIN languages_block}
<span>
&nbsp;&nbsp;&nbsp;|&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>
</div>
{END toplinks_block}
<!-- MenuBegin -->
##include templates\lmenu.htm##
<!-- MenuEnd -->
<div id="aftermenu{$id}"></div>
<table class="tableborder" cellspacing=0 cellpadding=0 ><tr><td class="tableborder1">
<div id="chart_block" class="main_table_border_P">
{$##@TABLE.strShortTableName##_chart 700 530}
</div>
</td></tr></table>
{$footer}
{END body}
</body>
</html>