<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{$id} {width:500px;margin:0 auto;}
#contents_block{$id} {text-align:center;}
#header_block{$id} {white-space:nowrap;height:31px;padding:5px;text-align:center;}
#footer_block{$id} {height:15px;}
#fields_block{$id} {width:100%}
#buttons_block{$id} {padding-bottom:5px;white-space:nowrap;text-align:center;}
#required_block{$id} {text-align:left;padding:5px}
#message_block{$id} {padding:5px 5px;text-align:center;}
</style>
</head>
<body>
{BEGIN body}
{$header}
<TABLE align=center id="center_block{$id}" cellpadding=0 cellspacing=0 border=0><tr><td>
{BEGIN flybody}
<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">
##@TABLE.strCaption h##, ##message ADD_NEW_RECORD##
</div>
<div class="main_table_border2" style="border: 1px solid #516C81;">
<div class="main_table_border">
<TABLE CELLPADDING=0 CELLSPACING=0 align=center border=0 width="480">
{BEGIN message_block}
<div id="message_block{$id}" class=downedit>{$message}</div>
{END message_block}

##foreach Fields as @f filter @f.bAddPage order @f.nAddPageOrder##
{BEGIN ##@f.strName g##_fieldblock}
  <tr style="padding:3px">
    <td class=editshade_b width=150 style="padding-left:15px;">##@f.strLabel h##</td>
    <td width=250 class=editshade_lb style="padding-left:10px;">
    {$##@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>
<div class="downedit" id="buttons_block{$id}">
<div id="required_block{$id}" ><img src="images/icon_required.gif"> - ##message REQUIRED_FIELD##</div>
{BEGIN save_button}
<span class=buttonborder><input class=button type=submit value="##message SAVE##" name=submit1></span>
{END save_button}
{BEGIN reset_button}
<span class=buttonborder><input class=button type=reset value="##message RESET##" {$resetbutton_attrs}></span>
{END reset_button}
{BEGIN cancel_button}
<span class=buttonborder><input class=button type=button value="##message CANCEL##" {$cancelbutton_attrs}></span>
{END cancel_button}
{BEGIN back_button}
<span class=buttonborder><input class=button type=button value="##message BACK_TO_LIST##" {$backbutton_attrs}></span>
{END back_button}
</div>

</div>
<b class="xbottom"><b class="xb4b"></b><b class="xb3b"></b><b class="xb2b"></b><b class="xb1b"></b></b>
{END flybody}
</td></tr>
</table>
{END body}
{$footer}
</body>
</html>
