<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{$id} {padding:10px;}
#mastertable_block {margin-left:50px;margin-top:10px}
#search_records_block {vertical-align:middle;text-align:center;padding-top:2px;}
#search_records_block > * {vertical-align:middle;}
#search_records_block select {margin:3px 0px;}
#toplinks_block {padding:10px; margin-bottom:3px;}
#export_links * {padding:0}
#login_block_right {text-align:right;padding-left:30px;}
#login_block_left {text-align:left;}
#login_block_left * {margin-left:5px}
#login_block div {margin-left:5px; padding:5px 0px;}
#recordcontrols_block {padding:10px 10px;text-align:center;vertical-align:middle;}
#recordcontrols_block > * {margin:2px 2px;vertical-align:middle}
#grid_block {margin-top:2px;}
#linebody {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 {display:inline;}
body {margin:0px;padding:0px;}
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;}
#aftermenu {clear:left;height:1px;overflow:hidden}
</style>
<!--[if IE]>
<style>
.menutab2 {height:26px;}
.menutab3 {height:25px;}
</style>
<![endif]-->
<body marginheight=0 marginwidth=0 {$bodyattrs}>
{BEGIN body}
<div id="height100{$id}">
{$header}
{BEGIN toplinks_block}
<div id="toplinks_block">
<span id="login_block_left">
##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">
##if Fields[bAdvancedSearch=1].len##
{BEGIN asearch_link}
<a href="##@TABLE.strShortTableName h##_search.##@ext##">##message ADVANCED_SEARCH##</a>	
{END asearch_link}
##endif##


##if @TABLE.bPrinterFriendly##
{BEGIN print_link}
<span>
&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;
<a target="_blank" href="##@TABLE.strShortTableName h##_print.##@ext##">##message PRINT_THIS_PAGE##</a>
</span>
{END print_link}
{BEGIN printall_link}
<span>
&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;
<a target="_blank" href="##@TABLE.strShortTableName h##_print.##@ext##?all=1">##message PRINT_WHOLE_REPORT##</a>
</span>
{END printall_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##
<!--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"></div>
<table class="tableborder" cellspacing=0 cellpadding=0 ><tr><td class="tableborder1">
{BEGIN recordspp_block}
<div class="main_table_border_P message_block">
##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}
<div class="message_block">
{$pagination}
</div>
<div>