<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;}
#center_block{$id} {width:400px}
#contents_block{$id} {text-align:center;}
#header_block{$id} {white-space:nowrap;height:31px;text-align:center;padding:10px}
#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}
#buttons_block{$id} > * {margin:0 2px}
#message_block{$id} {text-align:center;width:100%;padding:5px}
</style>
</head>
<body>
{BEGIN body}
{$header}
<TABLE class="main_table" id="center_block{$id}" align=center cellpadding=0 cellspacing=0><tr><td>
{BEGIN flybody}
<div id="header_block{$id}" class="upeditmenu">
##@TABLE.strCaption h##, ##message ADD_NEW_RECORD##
</div>
{BEGIN message_block}
<div id="message_block{$id}" class="downedit2">{$message}</div>
{END message_block}

<table cellpadding=4 cellspacing=0 border=0 id="fields_block{$id}">
##foreach Fields as @f filter @f.bAddPage order @f.nAddPageOrder##
{BEGIN ##@f.strName g##_fieldblock}
  <tr><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 class=blackshade2 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##" {$cancelonclick}></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}
{END flybody}
</td></tr></table>
{$footer}
{END body}
</body>
</html>

