<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;}
#left_block { position:absolute;width:200px; left:20px; overflow:visible;margin-top:10px}
#right_block { padding:10px 0px 0px 220px;}
#search_block_line {padding:3px 5px;}
#search_block, #search_block_option, #search_block_text {padding:3px 5px;}
#toplinks_block {padding:7px 5px;border-bottom:1px solid white;}
#toplinks_block > * {margin:4px 6px;vertical-align:middle;}
#global_block {padding:10px 10px 10px 0px;height:100%}
#global_block_table {padding:10px 10px 10px 0px;padding-left:220px;height:100%}
#menu_block{$id} {padding:3px 5px;margin-top:1px; width:auto;}
#details_block,#pages_block {white-space:nowrap;text-align:center;padding:3px}
#pages_block {margin-bottom:1px}
#chart_block {width:10%}
#chart_area {padding:5px 10px;text-align:left;}
.menuitem {padding:6px 18px 10px 13px}
.menuitem_active {padding:6px 18px 11px 13px}
.message_block {text-align:center;padding:5px}
#message_block {text-align:center;}
#message_block_line {text-align:center;margin-bottom:1px;}
#center_block {text-align:center;padding:4px;}
#center_block_line {text-align:center;padding:4px;margin-bottom:1px;}
#grid_block {margin-top:10px;}
.grid_recordheader {padding:0 5px 5px}
.grid_recordheader * {margin:0px 5px; vertical-align:middle}
.headerlist_right2 *,.headerlist * {vertical-align:middle}
</style>
<!--[if IE]>
<style>
#toplinks_block * {margin:2px 3px;vertical-align:middle;}
#recordcontrols_block * {margin:1x 1px;vertical-align:middle}
</style>
<![endif]-->

</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 class="uplistmenu" id="toplinks_block">
##if @BUILDER.bCreateLoginPage##
##message LOGGED_AS##&nbsp;<b>{$username}</b>&nbsp;
<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}
<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##
</div>
{END toplinks_block}
<div class="main_table" id="global_block">
<div id=left_block >
    <b class="xtop"><b class="xb1a"></b><b class="xb2a"></b><b class="xb3a"></b><b class="xb4a"></b></b>
    <div  id="message_block_line" class="upsearchmenu">
	##@TABLE.strCaption hn##
    </div>
<!-- MenuBegin -->
##include templates\lmenu.htm##
<!-- MenuEnd -->
	<b class="xbottom"><b class="xb4"></b><b class="xb3"></b><b class="xb2"></b><b class="xb1"></b></b>
</div>

<div id=right_block>
{BEGIN chart_block}
<table id="chart_block"><tr><td>
<b class="xtop"><b class="xb1"></b><b class="xb2"></b><b class="xb3"></b><b class="xb4"></b></b>
<div id="chart_area" class="xboxcontent">
{$##@TABLE.strShortTableName##_chart 700 530}
</div>
<b class="xbottom"><b class="xb4"></b><b class="xb3"></b><b class="xb2"></b><b class="xb1"></b></b>
</td></tr></table>
{END chart_block}
</div>

</div>
<b class="xbottom"><b class="xb4b3"></b><b class="xb3b3"></b><b class="xb2b3"></b><b class="xb1b3"></b></b>
</div>
{$footer}
{END body}
</body>
</html>
