<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]-->
{BEGIN style_block}
<style>
#toplinks_caption{$id} {padding:0px 30px;font-size:12px;font-weight:bold;}
#mastertable_block{$id} {margin-left:50px;margin-top:10px}
#toplinks_block{$id} {width:100%;padding:3px;padding-left:30px}
#toplinks_block{$id} span {padding-left:40px;}
#search_records_block{$id} { padding-left:20px;}
#search_records_block{$id} > * {vertical-align:middle;}
#search_records_block{$id} select {margin:3px 0px;}
#login_block{$id} {padding:10px; margin-bottom:3px}
#login_block{$id} * {margin-left:5px; padding:5px 0px;}
#menu_block{$id} {padding:10px;}
#menu_block{$id} * {list-style-type:none;}
#menu_block{$id} IMG {vertical-align:middle;}
#records_block{$id} {margin-left:203px;}
#record_controls{$id} {padding:10px 10px;}
#record_controls{$id} span {padding-left:10px;}
#recordcontrolsadd_block{$id} {padding:10px 10px;border: solid; border-width: 1px; border-color: #C0C0C0;}
#recordcontrolsadd_block{$id} span {padding-left:10px;}
.grid_recordheader{$id} {padding:0 5px 5px;vertical-align:top;}
.grid_recordheader{$id} * {margin:0px 5px; vertical-align:top;}
body {margin-left:10px;}
</style>
{END style_block}
</head>
<body topmargin=5 {$bodyattrs}>
{BEGIN body}
{$header}
##if @TABLE.arrMasterTables.len##
    {BEGIN mastertable_block}
    <div id="mastertable_block{$id}">
    {$showmasterfile}
	<a {$backtomasterlink_attrs} class="toplinks"><b>##message BACK_TO_MASTER##</b></a>
	<br>
    </div>
    {END mastertable_block}
##endif##

{BEGIN toplinks_block}
<div id="toplinks_block{$id}" align=center>

##if @BUILDER.bCreateLoginPage##
    <span id="login_block{$id}">
    ##message LOGGED_AS ##&nbsp;<b>{$username}</b>&nbsp;
    <a href="login.##@ext##?a=logout">##message LOG_OUT##</a>

    ##if @BUILDER.bDynamicPermissions##
        ##if !IsAdminTable(@TABLE)##
            {BEGIN adminarea_link}
            <a href="admin_rights_list.##@ext##">##message AA_ADMINAREA##</a>
            {END adminarea_link}
        ##else##
            {BEGIN exitadminarea_link}
            <a {$exitaalink_attrs}>##message AA_EXIT_ADMINAREA##</a>
            {END exitadminarea_link}
        ##endif##
    ##endif##

    ##if @BUILDER.Registration.bChangePwdPage && @BUILDER.nLoginMethod == SECURITY_TABLE##
        {BEGIN changepwd_link}
        <a href="changepwd.##@ext##">##message CHANGE_PASSWORD ##</a>
        {END changepwd_link}
    ##endif##
    </span>
##endif##

##if @BUILDER.arrLanguages.len>1##
{BEGIN languages_block}
<span id="languages_block{$id}">
<b>##message LANGUAGE ##:</b>&nbsp;&nbsp;&nbsp;&nbsp;
	<select {$langselector_attrs}>
	##foreach @BUILDER.arrLanguages as @lang##
		<option value="##@lang h##" {$##@lang g##_langattrs}>##@lang h##</option>
	##endfor##
	</select>
</span>
{END languages_block}
##endif##



##if CreateMenu || IsAdminTable(@TABLE)##
    {BEGIN menu_block}
    <span id="menu_block{$id}">
        ##message QUICK_JUMP##:&nbsp;
        <select {$quickjump_attrs}>
            ##if !IsAdminTable(@TABLE) || !@BUILDER.m_bDynamicPermissions##
                <option value="menu.##@ext##">##message BACK_TO_MENU##</option>
                ##foreach @BUILDER.Tables as @t filter @t.bMenuItem order @t.nMenuOrder##
                    {BEGIN ##@t.strShortTableName##_tablelink}
                    <option {$##@t.strShortTableName##_optionattrs} ##if @t.strDataSourceTable==@TABLE.strDataSourceTable## selected##endif##>
                    ##@t.strCaption h##</option>
                    {END ##@t.strShortTableName##_tablelink}
                ##endfor##
	##if @BUILDER.bWebReports##
					{BEGIN webreport_link}
                    <option value="webreport.##@ext##" >##message WEBREPORTS_SHORT##</option>
					{END webreport_link}
	##endif##
            ##else##
                ##foreach @BUILDER.Tables as @t filter IsAdminTable(@t)##
                    {BEGIN ##@t.strShortTableName##_tablelink}
                    <option {$##@t.strShortTableName##_optionattrs}
                    ##if @t.strDataSourceTable==@TABLE.strDataSourceTable## selected##endif##>
                    ##if @t.strDataSourceTable=="admin_users"##
                    ##message AA_ADDEDIT_USERS##
                    ##elseif @t.strDataSourceTable=="admin_members"##
                    ##message AA_ASSIGN_USERS##
                    ##elseif @t.strDataSourceTable=="admin_rights"##
                    ##message AA_PERMISSIONS##
                    ##endif##
                    {END ##@t.strShortTableName##_tablelink}
                    </option>
                ##endfor##
            ##endif##
        </select>
    </span>
    {END menu_block}
##endif##


##if Fields[bAdvancedSearch=1].len##
{BEGIN asearch_link}
<span><a href="##@TABLE.strShortTableName h##_search.##@ext##">##message ADVANCED_SEARCH##</a></span>
{END asearch_link}
##endif##

##if @TABLE.bExportTo##
{BEGIN export_link}
<span><a href="##@TABLE.strShortTableName h##_export.##@ext##">##message EXPORT_RESULTS##</a></span>
{END export_link}
##endif##

##if @TABLE.bPrinterFriendly##
{BEGIN print_link}
<span>
<a target="_blank" href="##@TABLE.strShortTableName h##_print.##@ext##">
<img src="images/printer.gif" border=0></a>&nbsp;
<a target=_blank href="##@TABLE.strShortTableName h##_print.##@ext##">##message PRINTER_FRIENDLY##</a></span>
{END print_link}
##if @TABLE.bPrintAll##
{BEGIN printall_link}
<span>
<a target="_blank" href="##@TABLE.strShortTableName h##_print.##@ext##?all=1">
<img src="images/printer.gif" border=0></a>&nbsp;
<a href="##@TABLE.strShortTableName h##_print.##@ext##?all=1">##message PRINT_ALL_PAGES##</a></span>
{END printall_link}
##endif##
##endif##

##if @TABLE.bImport##
{BEGIN import_link}
<span><a href="##@TABLE.strShortTableName h##_import.##@ext##">##message IMPORT##</a></span>
{END import_link}
##endif##
</div>
{END toplinks_block}



<TABLE WIDTH=95% CELLPADDING=4 CELLSPACING=1 BORDER=0 align=center name="maintable" id="grid_block{$id}">
<tr><td colspan=2>
Season&nbsp;
<select style="font: 10pt" onchange="javascript: document.location='##@TABLE.strShortTableName h##_list.##@ext##?a=search&value=1&SearchFor='+this.options[this.selectedIndex].value+'&SearchOption=Contains&SearchField=sDate'">
<option value="2005" {$year2005selected}>2005</option>
<option value="2006" {$year2006selected}>2006</option>
<option value="2007" {$year2007selected}>2007</option>
<option value="2008" {$year2008selected}>2008</option>
<option value="2009" {$year2009selected}>2009</option>
<option value="2010" {$year2010selected}>2010</option>
<option value="2011" {$year2011selected}>2011</option>
<option value="2012" {$year2012selected}>2012</option>
<option value="2013" {$year2013selected}>2013</option>
<option value="2014" {$year2014selected}>2014</option>
<option value="2015" {$year2015selected}>2015</option>
</select>
</b></font>

</td></tr>
<tr><td width=50%><font size=+0><b>##@TABLE.strCaption hn##</b></font></td>
<td align=right><img src="images/list.png"><a href=spschedule_list.##@ext##?a=showall>List View</a></td></tr>
<tr><td colspan=2 colspan=100 style="BACKGROUND-COLOR: #7575ff">{$row00Calendar_Menuvalue}</td></tr>
<tr><td colspan=2>
{BEGIN grid_block}
<table align="center" width="100%" border="0" cellpadding=3 cellspacing=2>
<tr>
<td><table class=blackshade height=30 width=120><tr><td align=center valign=middle><b>Sunday</b></td></tr></table></td>
<td><table class=blackshade height=30 width=120><tr><td align=center valign=middle><b>Monday</b></td></tr></table></td>
<td><table class=blackshade height=30 width=120><tr><td align=center valign=middle><b>Tuesday</b></td></tr></table></td>
<td><table class=blackshade height=30 width=120><tr><td align=center valign=middle><b>Wednesday</b></td></tr></table></td>
<td><table class=blackshade height=30 width=120><tr><td align=center valign=middle><b>Thursday</b></td></tr></table></td>
<td><table class=blackshade height=30 width=120><tr><td align=center valign=middle><b>Friday</b></td></tr></table></td>
<td><table class=blackshade height=30 width=120><tr><td align=center valign=middle><b>Saturday</b></td></tr></table></td>
</tr>

<tr  {$rowattrs}>

<td style="vertical-align:top;">
##repeat 6 @i##
<tr>
##repeat 7 @j##
<td>
{BEGIN row00##eval (@i-1)*7+@j##Datevalue}
<table height=150 width=120 border=1>
<tr><td height=20 class=shade align=right><b>{$row00##eval (@i-1)*7+@j##Datevalue}</b>&nbsp;&nbsp;</td></tr>
<tr><td align=center valign=middle>
&nbsp;{$row00##eval (@i-1)*7+@j##Dayvalue}&nbsp;</td></tr></table>
{END row00##eval (@i-1)*7+@j##Datevalue}
</td>
##endrepeat##
</tr>
##endrepeat##
</td>
</tr>
<tr height=30><td colspan=##eval @TABLE.nRecordsPerRowList*2-1##>&nbsp;</td></tr>

</table>
{END grid_block}
</td></tr>
</table>



{BEGIN pagination_block}
<p align=center class=toplist >{$pagination}</p>
{END pagination_block}

{BEGIN message_block}
<p align=center valign=middle class=toplist><b>{$message}</b></p>
{END message_block}
{$footer}
{END body}
</body>
</html>