<html>
<head><title>##@TABLE.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:45%;margin:0 auto;}
#contents_block{$id} {text-align:center;}
#header_block{$id} {white-space:nowrap;height:31px;padding:5px;}
#buttons_block{$id} {padding:5px;white-space:nowrap;text-align:center;}
#required_block{$id} {text-align:left;padding:5px}
</style>
</head>
<body>
{$header}
{BEGIN body}
<table cellpadding=0 cellspacing=0 border=0 width=100%><tr><td>
<div id="header_block{$id}">
<h1>
##strCaption h##, ##message VIEW_RECORD## [
##foreach @TABLE.arrKeyFields as @k##
##if !@first##
,
##endif##
##Field(@k).strLabel h##: {$show_key##@index##}
##endfor##
]
</h1>
</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##

&nbsp;&nbsp;&nbsp;<a href="##@TABLE.strShortTableName##_list.##@ext##?a=return">Back to schedule</a><br><br>

<table cellpadding=4 cellspacing=2 border=0 id="fields_block{$id}" width=600 align=center>
<tr><td colspan=5 width=100% style="BACKGROUND-COLOR: #7575ff">
<FONT face=Tahoma color=#ffffff size=2>&nbsp;<STRONG>Scoreboard</STRONG></font>
</td></tr>

<tr><td colspan=5><b>{$sDate_value}&nbsp;@&nbsp;{$sTime_value}</b></td></tr>
<tr>
##foreach Fields as @f filter @f.bViewPage order @f.nViewPageOrder##
##if strName=="Team1Logo" || strName=="Team2Logo"##
<td width=120 align=center>{$##@f.strName g##_value}</td>
##endif##
##if strName=="Team1" || strName=="Team2"##
<td width=130 align=center><font face=Tahoma size=2><b>{$##@f.strName g##_value}</b></font></td>
##endif##
##if strName=="Score"##
<td width=100 align=center><b><FONT face=Tahoma color=#8b0000 size=2>{$##@f.strName g##_value}</font><br><br>Final</b></td>
##endif##
##endfor##
</tr>
<tr><td></td><td></td><td align=center>{$Place_value}</td><td></td><td></td></tr>
##foreach Fields as @f filter @f.bViewPage && strName!="sDate" && strName!="sTime" && strName!="Team1" && strName!="Team2" && strName!="Team1Logo" && strName!="Team2Logo" && strName!="Score" && strName!="Place" order @f.nViewPageOrder##
{BEGIN ##@f.strName g##_fieldblock}
  <tr><td class=shade width=150>##@f.strLabel h##</td><td width=250>
    {$##@f.strName g##_value}&nbsp;
  </td></tr>
{END ##@f.strName g##_fieldblock}  
##endfor##
</table>
<br>&nbsp;&nbsp;&nbsp;<a href="##@TABLE.strShortTableName##_list.##@ext##?a=return">Back to schedule</a><br><br>
</td></tr></table>
{END body}
{$footer}

</body>
</html>