<html {$html_attrs}>
<head><title>##strCaption h##</title>
{BEGIN stylefiles_block}
<link REL="stylesheet" href="include/style.css" type="text/css">
<!--[if IE]>
<link REL="stylesheet" href="include/styleIE.css" type="text/css">
<![endif]-->
{END stylefiles_block}
{BEGIN style_block}
<style>
#center_block{$id} {width:500px;margin:0 auto;}
#contents_block{$id} {text-align:center;}
#header_block{$id} {white-space:nowrap;height:31px;padding-top:5px;text-align:center;}
#main_block{$id} {padding:10px 0;text-align:center;}
#inmain_block{$id} {margin:0 10px}
#fields_block{$id} {width:100%}
#buttons_block{$id} {padding:7px 5px 2px;white-space:nowrap;}
#required_block{$id} {text-align:left;padding:5px}
#buttons_block{$id} > * {margin:0 2px}
#message_block{$id} {padding:7px 15px;}
</style>
{END style_block}
</head>
<body>
{BEGIN body}
{$header}
<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##

<table align=center id="center_block{$id}"><tr><td id="contents_block{$id}">
<b class="xtop"><b class="xb1b"></b><b class="xb2b"></b><b class="xb3b"></b><b class="xb4b"></b></b>
<div id="header_block{$id}" class="upeditmenu">
##strCaption h##, ##message VIEW_RECORD## [
##foreach @TABLE.arrKeyFields as @k##
##if !@first##
,
##endif##
##Field(@k).strLabel h##: {$show_key##@index##}
##endfor##
]
</div>
<div class="xboxcontentb" id="message_block{$id}">
<br>
<table cellpadding=4 cellspacing=0 border=0 width=470>

##foreach Fields as @f filter @f.bViewPage order @f.nViewPageOrder##
{BEGIN ##@f.strName g##_fieldblock}
<tr>
##if @first##
    <td class=editshadeleft_b2 width=150 style="padding-left:15px;">##@f.strLabel h##</td>
    <td width=250 class=editshaderight_lb2 style="padding-left:10px;">
##else##
    <td class=editshade_b width=150 style="padding-left:15px;">##@f.strLabel h##</td>
    <td width=250 class=editshade_lb style="padding-left:10px;">
##endif##
    {$##@f.strName g##_value}&nbsp;
  </td></tr>
{END ##@f.strName g##_fieldblock}
##endfor##
</table>

<div class="downedit" id="buttons_block{$id}">
##if @TABLE.moveNext##
{BEGIN prev_button}
 <span class=buttonborder><input class=button type=reset value=" <<< " {$prevbutton_attrs}></span>
{END prev_button}
##endif##
{BEGIN back_button}
 <span class=buttonborder><input class=button type=reset value="##message BACK_TO_LIST##" {$backbutton_attrs}></span>
{END back_button}
##if @TABLE.moveNext##
{BEGIN next_button}
 <span class=buttonborder><input class=button type=reset value=" >>> " {$nextbutton_attrs} ></span>
{END next_button}
##endif##
&nbsp;
</div>
<b class="xbottom"><b class="xb4a"></b><b class="xb3a"></b><b class="xb2a"></b><b class="xb1a"></b></b>
</div>
<b class="xbottom"><b class="xb4b4"></b><b class="xb3b4"></b><b class="xb2b4"></b><b class="xb1b4"></b></b>
</td></tr></table>
</div>
{$footer}
{END body}
</body>
</html>
