##include templates\lheader.htm##
{BEGIN grid_block}
<table class="body2" cellspacing=0 cellpadding=0 border=0 name="maintable" id="grid_block{$id}">
{BEGIN grid_row}
<tr {$rowattrs}>
{BEGIN grid_record}
<td style="vertical-align:top">
{BEGIN grid_vrecord}
<table cellpadding=3 cellspacing=0 border=0 width=100%>
{BEGIN grid_recordheader}
<tr class="blackshade">
<td colspan=2 class="grid_recordheader">
##if @TABLE.bEdit##
{BEGIN edit_link}
<a class="tablelinks" {$editlink_attrs}>##message EDIT##</a>
{END edit_link}
##endif##

##if @TABLE.bInlineEdit##
{BEGIN inlineedit_link}
<a class="tablelinks" {$inlineeditlink_attrs}>##message INLINE_EDIT##</a>
{END inlineedit_link}
##endif##

##if @TABLE.bCopy##
{BEGIN copy_link}
<a class="tablelinks" {$copylink_attrs}>##message COPY##</a>
{END copy_link}
##endif##

##if @TABLE.bView##
{BEGIN view_link}
<a class="tablelinks" {$viewlink_attrs}>
##message VIEW##</a>
{END view_link}
##endif##

##if @TABLE.arrKeyFields.len && (@TABLE.bDelete || @TABLE.bExportTo || @TABLE.bPrinterFriendly || @TABLE.bInlineEdit)##
{BEGIN checkbox}
<input type=checkbox {$checkbox_attrs}>
{END checkbox}
##endif##

##foreach @BUILDER.tables as @t filter @t.arrMasterTables[strMasterTable==@TABLE.strDataSourceTable].len##
{BEGIN ##@t.strShortTableName##_dtable_link}
<a  {$##@t.strShortTableName##_dtablelink_attrs}>##@t.strCaption h####if @t.arrMasterTables[strMasterTable==@TABLE.strDataSourceTable].bDisplayChildCount##{BEGIN ##@t.strShortTableName##_childcount}({$##@t.strShortTableName##_childnumber})
{END ##@t.strShortTableName##_childcount}
##endif##
</a>
{END ##@t.strShortTableName##_dtable_link}
##if @t.arrMasterTables[strMasterTable==@TABLE.strDataSourceTable].nDetailPreview==dpINLINE##
{BEGIN ##@t.strShortTableName##_preview_link}
<a {$##@t.strShortTableName##_previewlink_attrs}>##message PREVIEW##</a>
{END ##@t.strShortTableName##_preview_link}
##endif##
##endfor##
</td>
</tr>
{END grid_recordheader}

##foreach Fields as @f filter bListPage order nListPageOrder##
{BEGIN ##@f.strName g##_fieldcolumn}
<tr>
<td class=headerlistdown_v width=30% style="padding-left:10px">##strLabel h##</td>
<td style="padding-left:10px" {$##@f.strName g##_style} class="shade_b">
{$##@f.strName g##_value}&nbsp;
</td>
{END ##@f.strName g##_fieldcolumn}
##endfor##
</table>
{END grid_vrecord}
</td>
{BEGIN endrecord_block}
<td width=20 class=body2 {$endrecordblock_attrs}>&nbsp;</td>
{END endrecord_block}
{END grid_record}
</tr>
{BEGIN grid_rowspace}
<tr height=30 {$rowspace_attrs}>
{BEGIN grid_recordspace}
<td class=body2>&nbsp;</td>
{END grid_recordspace}
</tr>
{END grid_rowspace}
{END grid_row}
</table>
{END grid_block}
##include templates\lfooter.htm##

