<html {$html_attrs}>
<head><title>##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 {width:500px;margin:0 auto;}
#contents_block {text-align:center;width:100%}
#header_block {width:100%;white-space:nowrap;height:35px;padding-top:5px;text-align:center;border-bottom:1px white solid;}
#fields_block {width:100%}
#fields_block td {padding-left:10px}
#buttons_block {width:100%;padding-bottom:5px;text-align:center}
#required_block {text-align:left;padding:5px}
#buttons_block > * {margin:0 2px;text-align:center}
#message_block {padding:7px 15px;}
#span {margin:0 20px 0 20px;}
</style>
</head>
<body>
{BEGIN body}
{$header}
<table align=center id="center_block"><tr><td id="contents_block">
<b class="xtop"><b class="xb1b"></b><b class="xb2b"></b><b class="xb3b"></b><b class="xb4b"></b></b>
<div id="header_block" class="upeditmenu">
##strCaption h##, ##message EDIT_RECORD## [
##foreach @TABLE.arrKeyFields as @k##
##if !@first##
,
##endif##
##Field(@k).strLabel h##: {$show_key##@index##}
##endfor##
]
</div>
<div class="xboxcontentb" id="message_block">
{BEGIN message_block}
<div>
<b class="xtop"><b class="xb1u"></b><b class="xb2u"></b><b class="xb3u"></b><b class="xb4u"></b></b>
<div class="downedit2">
{$message}
</div>
<b class="xbottom"><b class="xb4u"></b><b class="xb3u"></b><b class="xb2u"></b><b class="xb1u"></b></b>
</div>
{END message_block}
</div>
<table cellpadding=4 cellspacing=0 border=0 width=100%>
##foreach Fields as @f filter @f.bEditPage order @f.nEditPageOrder##
{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##_editcontrol}
  ##if NeedLegendIcon(@f)##
    &nbsp;<img src="images/icon_required.gif">
  ##endif##
  </td></tr>
{END ##@f.strName g##_fieldblock}
##endfor##
</table>

<div class="downedit" id="buttons_block">
 <div id="required_block" ><img src="images/icon_required.gif"> - Required field</div>
{BEGIN save_button}
 <span class=buttonborder><input class=button type=submit value="##message SAVE##"></span>
{END save_button} 
{BEGIN reset_button}
 <span class=buttonborder><input class=button type=reset value="##message RESET##" {$resetbutton_attrs}></span>
{END reset_button}
##if @TABLE.moveNext##
<span id="span">&nbsp;</span>
{BEGIN prev_button}
 <span class=buttonborder><input id=prev class=button type=reset value=" <<< " {$prevbutton_attrs}></span>
{END prev_button}
##endif##
{BEGIN back_button}
 <span class=buttonborder><input class=button type=button value="##message BACK_TO_LIST##" {$backbutton_attrs}></span>
{END back_button}
##if @TABLE.moveNext##
{BEGIN next_button}
 <span class=buttonborder><input id=next class=button type=reset value=" >>> " {$nextbutton_attrs}></span>
{END next_button}
##endif##
</div>
<b class="xbottom"><b class="xb4a"></b><b class="xb3a"></b><b class="xb2a"></b><b class="xb1a"></b></b>
<b class="xbottom"><b class="xb4b4"></b><b class="xb3b4"></b><b class="xb2b4"></b><b class="xb1b4"></b></b>
 </td></tr></table>
{$footer}
{END body}
</body>
</html>
