<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>
#center_block{$id} {width:55%;margin:0 auto;min-width: 500px;}
#contents_block{$id} {text-align:center;}
#header_block{$id} {white-space:nowrap;height:31px;padding:5px;}
#fields_block{$id} {width:100%}
#buttons_block{$id} {padding:5px;white-space:nowrap;text-align:center;}
#required_block{$id} {text-align:left;padding:5px}
#span {margin:0 20px 0 20px;}
</style>
</head>
<body>
{BEGIN body}
{$header}
<table cellpadding=0 cellspacing=0 border=0 width=400><tr><td>
<div id="header_block{$id}">
<h1>
##strCaption h##, ##message VIEW_RECORD## [
##foreach @TABLE.arrKeyFields as @k##
##if !@first##
,
##endif##
##Field(@k).strLabel h##: {$show_key##@index##}
##endfor##
]
</h1>
</div>

##if @BUILDER.bViewPDF##
{BEGIN pdf_block}
{BEGIN pdflink_block}
<a href=# class=pdf onclick="RunPDF(); return false; this.style.display='none';">##message PDF_VIEW##</a>
{END pdflink_block}
{END pdf_block}
##endif##

<div align=left><hr width=300 noshade size=1></div>
&nbsp;&nbsp;&nbsp;<a href="##@TABLE.strShortTableName##_list.##@ext##?a=return">##message BACK_TO_LIST##</a><br><br>

<table cellpadding=4 cellspacing=2 border=0 id="fields_block{$id}">
##foreach Fields as @f filter @f.bViewPage order @f.nViewPageOrder##
{BEGIN ##@f.strName g##_fieldblock}
  <tr><td class=shade width=150>##@f.strLabel h##</td><td width=250>
    {$##@f.strName g##_value}&nbsp;
  </td></tr>
{END ##@f.strName g##_fieldblock}  
##endfor##
</table>
<br>&nbsp;&nbsp;&nbsp;<a href="##@TABLE.strShortTableName##_list.##@ext##?a=return">##message BACK_TO_LIST##</a>
##if @TABLE.moveNext##
<span id="span">&nbsp;</span>
{BEGIN prev_button}
<input class=button type=reset value=" <<< " {$prevbutton_attrs}>
{END prev_button}
{BEGIN next_button}
<input class=button type=reset value=" >>> " {$nextbutton_attrs}>
{END next_button}
##endif##
<br><br>
</td></tr></table>
{$footer}
{END body}
</body>
</html>