<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>
#height100 {height:100%;display:table;}
#search_block div {padding:5px 7px;}
#global_block {padding:5px 12px;height:100%}
#search_block_center {padding:3px 5px;text-align:center;}
#center_block {text-align:center;padding:4px;}
#center_block_caption {text-align:center;padding:4px;}
#left_block { position:absolute;width:200px; left:20px; overflow:visible;margin-top:10px}
#right_block { padding:10px 0px 0px 220px;width:10%}
#toplinks_block {padding:2px 5px}
#toplinks_block > * {margin:4px 6px;vertical-align:middle;}
#menu_block{$id} {clear:left;padding:5px; width:auto;}
#details_block, #pages_block, #records_pp_block {white-space:nowrap;padding:5px 7px;text-align:center;}
#chart_block {padding:13px 10px 9px 10px;text-align:left}
.menuitem {padding:6px 18px 10px 13px}
.menuitem_active {padding:6px 18px 11px 13px}
.message_block {text-align:center;}
.grid_recordheader {padding:0 5px 5px}
.grid_recordheader * {margin:0px 5px; vertical-align:middle}
#grid_block {margin-top:10px;}
.headerlist_right2 *,.headerlist * {vertical-align:middle}
</style>
</head>
<body topmargin=5 {$bodyattrs}>
{BEGIN body}
{$header}
<div id="height100">
<b class="xtop"><b class="xb1b"></b><b class="xb2b"></b><b class="xb3b"></b><b class="xb4b"></b></b>
{BEGIN toplinks_block}
<div id="toplinks_block" class="upeditmenu">
##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>
<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##
{END toplinks_block}
</div>
<div class="main_table_border2 main_table" id="global_block" style="border: 1px solid #516C81;">
    <div id="left_block" >
        <b class="xtop"><b class="xb1b1"></b><b class="xb2b1"></b><b class="xb3b1"></b><b class="xb4b1"></b></b>
	<!-- MenuBegin -->
##include templates\lmenu.htm##
	<!-- MenuEnd -->	
        <b class="xbottom"><b class="xb4b1"></b><b class="xb3b1"></b><b class="xb2b1"></b><b class="xb1b1"></b></b>
    </div>

    <div id="right_block">
        
        <table class=list_table1><tr><td>
        <div class=list_table>
        
        <div class=blackshade2 id="center_block_caption">
        ##@TABLE.strCaption hn##
        </div>
        {BEGIN chart_block}
        <div class=blackshade id="chart_block">
{$##@TABLE.strShortTableName##_chart 700 530}
        </div>
        {END chart_block}
</div>
</td></tr></table>
</div>
</div>
<b class="xbottom"><b class="xb4b"></b><b class="xb3b"></b><b class="xb2b"></b><b class="xb1b"></b></b>
{$footer}
{END body}
</body>
</html>
