<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 {display:table;height:100%;padding:10px;}
#right_block { padding:10px 0px 0px 220px;}
#global_block_table {padding:20px 10px 10px 0px;padding-left:220px;height:100%}
#search_block_line {padding:3px 5px;margin-bottom:1px;}
#search_block_line_pp {text-align:center;padding:3px}
#message_block_line {text-align:center;margin-bottom:1px;}
.message_block {text-align:center;padding:5px;}
#left_block { position:absolute;width:200px; left:20px; overflow:visible;margin-top:20px}
#toplinks_block {padding:7px 5px;border-bottom:1px solid white;}
#toplinks_block > * {margin:4px 6px;vertical-align:middle;}
#export_links * {padding:0}
#menu_block{$id} {padding:3px 5px;margin-top:1px; width:auto;}
#search_records_block {padding:9px 10px 13px 10px;text-align:right}
#search_records_block > * {margin:2px 2px;vertical-align:middle}
#search_records_block span {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}
#message_block {text-align:center;}
#grid_block {margin-top:10px;}
.headerlist_right2 *,.headerlist * {vertical-align:middle}
table.report {  border-collapse: collapse} 
table.report td {padding: 2px;border-width: 1px;border-style: solid;border-color: #cccccc;}
##if @TABLE.arrReportGroupFields.len##
##foreach @TABLE.arrReportGroupFields as @f##
td.group_##@index##{background-color: ##@f.strColor##;}
##endfor##
##foreach @TABLE.arrReportGroupFields as @f##
td.nbgroup_##@index##{background-color: ##@f.strColor##;border-style:none;}
##endfor##
##foreach @TABLE.arrReportGroupFields as @f##
td.header_##@index##{background-color: ##@f.strHeaderColor##;}
##endfor##
##endif##
td.pagesummary{background-color:#ffffbb;}
td.globalsummary{background-color:#ffe0b0;}
body{margin:0px;padding:0px;}
</style> 
</head>
<body marginheight=0 marginwidth=0 {$bodyattrs}>
{BEGIN body}
<div id="height100">
{$header}
<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##
<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 @TABLE.bPrinterFriendly##
{BEGIN print_link}
<span>
<span class=buttonborder><input type=button class=button value="##message PRINT_THIS_PAGE##" {$printlink_attrs}></span>
<span class=buttonborder><input type=button class=button value="##message PRINT_WHOLE_REPORT##" {$printalllink_attrs}></span>
</span>
{END print_link}
{BEGIN export_link}
<span id="export_links">
<a href="##@TABLE.strShortTableName h##_print.##@ext##?all=1&format=excel"><img src="images/excel.gif" border="0"></a>
<a href="##@TABLE.strShortTableName h##_print.##@ext##?all=1&format=word"><img src="images/word.gif" border="0"></a>
##if @ext=="php" && @BUILDER.bViewPDF##
<a target="_blank" href="##@TABLE.strShortTableName h##_print.##@ext##?all=1&format=pdf"><img src="images/pdf.gif" border="0"></a>
##endif##
</span>
{END export_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 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 -->
{BEGIN recordspp_block}
<div id="search_block_line_pp" class="xboxcontent">
##if @TABLE.arrReportGroupFields.len##
##message GROUPS_PP##:&nbsp;
##else##
##message RECORDS_PP##:&nbsp;
##endif##
<select onChange="javascript: document.location='##@TABLE.strShortTableName h##_report.##@ext##?pagesize='+this.options[this.selectedIndex].value;">
{BEGIN rpp_options}
<option value="{$n}" {$selected}>{$txt}</option>
{END rpp_options}
</select>
</div>
{END recordspp_block}
<b class="xbottom"><b class="xb4"></b><b class="xb3"></b><b class="xb2"></b><b class="xb1"></b></b>
</div>

<div class="message_block main_table">
{$pagination}
</div>

<div id="global_block_table" class="main_table">