<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 {width:100%; text-align:right;padding:3px}
#toplinks_block * {padding:0px 10px;}
#left_block { position:absolute;width:200px; left:10px; overflow:visible;}
#search_records_block { width:100%;}
#search_records_block > * {vertical-align:middle;}
#search_records_block select {margin:3px 0px;}
#login_block,#languages_block {padding:10px; margin-bottom:3px}
#login_block div {margin-left:5px; padding:5px 0px;}
#menu_block{$id} {padding:10px; margin-bottom:3px;width:auto;}
##if @BUILDER.arrLanguages.len>1 || @BUILDER.bCreateLoginPage || CreateMenu##
#records_block {margin-left:203px;width:10%}
##endif##
#chart_block {padding:10px 10px;}
#recordcontrols_block > * {margin:2px 2px;vertical-align:middle}
#grid_block {margin-top:2px;}
.grid_recordheader {padding:0 5px 5px}
.grid_recordheader * {margin:0px 5px; vertical-align:middle}
form#frmAdmin {display:inline;}
body {margin-left:10px;}
</style>
</head>
<body topmargin=5 {$bodyattrs}>
{BEGIN body}
{$header}
{BEGIN toplinks_block}
<div id="toplinks_block">
##if Fields[bAdvancedSearch=1].len##
{BEGIN asearch_link}
<a href="##@TABLE.strShortTableName h##_search.##@ext##" class="tablelinks3">##message ADVANCED_SEARCH##</a>
{END asearch_link}
##endif##
</div>
{END toplinks_block}

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

##if @BUILDER.bCreateLoginPage##
<div id="login_block" class="blackshade toplist">
<div>##message LOGGED_AS ##&nbsp;<b>{$username}</b></div>
<a class="tablelinks" 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##
</div>
##endif##
<!-- MenuBegin -->
##include templates\lmenu.htm##
<!-- MenuEnd -->
</div>
<table id="records_block" class="linedownbody"><tr><td>
{BEGIN chart_block}
<div id="chart_block" class="main_table2">
{$##@TABLE.strShortTableName##_chart 700 530}
{END chart_block}
</td></tr></table>
{$footer}
{END body}
</body>
</html>