<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
	<title>Peter&#039;s Useful Crap - Topic: Adding more years?</title>
	<link>http://www.theblog.ca/peter-forum/peters-sports-league-standings/adding-more-years</link>
	<description><![CDATA[Useful tips on Canada, cell phones, banking, technology, WordPress, PHP and more]]></description>
	<generator>Simple:Press Version 5.5.1</generator>
	<atom:link href="http://www.theblog.ca/peter-forum/peters-sports-league-standings/adding-more-years/rss" rel="self" type="application/rss+xml" />
        <item>
        	<title>Peter on Adding more years?</title>
        	<link>http://www.theblog.ca/peter-forum/peters-sports-league-standings/adding-more-years#p2150</link>
        	<category>Peter's Sports League Standings</category>
        	<guid isPermaLink="true">http://www.theblog.ca/peter-forum/peters-sports-league-standings/adding-more-years#p2150</guid>
        	        	<description><![CDATA[<p>Here's the code for the expanded year dropdowns as given to Jason, although this forum strips the indents:</p>
<p>admin_files/add_score.php</p>
<p><input type="button" class="sfcodeselect" name="sfselectit1959" value="Select Code" onclick="spjSelectCode('sfcode1959');" /></p>
<div class="sfcode" id="sfcode1959">
    &#60;select name=&#34;year[]&#34;&#62;<br />
        &#60;?php<br />
            // Max year is this year + 1. Start year is 2000<br />
            $thisyear = date( 'Y' ) + 1;<br />
            for( $outputyear = 2000; $outputyear &#60;= $thisyear; $outputyear++ )<br />
            {<br />
                print '&#60;option value=&#34;' . $outputyear . '&#34;&#62;' . $outputyear . '&#60;/option&#62;';<br />
            }<br />
        ?&#62;<br />
	  &#60;/select&#62;
</div>
<p>admin_files/edit_score.php</p>
<p><input type="button" class="sfcodeselect" name="sfselectit7947" value="Select Code" onclick="spjSelectCode('sfcode7947');" /></p>
<div class="sfcode" id="sfcode7947">
      &#60;select name=&#34;year&#34;&#62;<br />
        &#60;?php<br />
            // Max year is this year + 1. Start year is 2000<br />
            $thisyear = date( 'Y' ) + 1;<br />
            for( $outputyear = 2000; $outputyear &#60;= $thisyear; $outputyear++ )<br />
            {<br />
                print '&#60;option value=&#34;' . $outputyear . '&#34;';<br />
                if( $year == $outputyear )<br />
                {<br />
                    print ' selected=&#34;selected&#34;';<br />
                }<br />
                print '&#62;' . $outputyear . '&#60;/option&#62;';<br />
            }<br />
        ?&#62;<br />
      &#60;/select&#62;
</div>
]]></description>
        	        	<pubDate>Wed, 06 Oct 2010 08:32:53 +0000</pubDate>
        </item>
        <item>
        	<title>Jason on Adding more years?</title>
        	<link>http://www.theblog.ca/peter-forum/peters-sports-league-standings/adding-more-years#p2149</link>
        	<category>Peter's Sports League Standings</category>
        	<guid isPermaLink="true">http://www.theblog.ca/peter-forum/peters-sports-league-standings/adding-more-years#p2149</guid>
        	        	<description><![CDATA[<p>Thanks Peter. Email has been sent.</p>
]]></description>
        	        	<pubDate>Tue, 05 Oct 2010 04:36:09 +0000</pubDate>
        </item>
        <item>
        	<title>Peter on Adding more years?</title>
        	<link>http://www.theblog.ca/peter-forum/peters-sports-league-standings/adding-more-years#p2148</link>
        	<category>Peter's Sports League Standings</category>
        	<guid isPermaLink="true">http://www.theblog.ca/peter-forum/peters-sports-league-standings/adding-more-years#p2148</guid>
        	        	<description><![CDATA[<p>Followed up via e-mail.  Will post results when we get them.</p>
]]></description>
        	        	<pubDate>Mon, 04 Oct 2010 22:34:53 +0000</pubDate>
        </item>
        <item>
        	<title>Jason on Adding more years?</title>
        	<link>http://www.theblog.ca/peter-forum/peters-sports-league-standings/adding-more-years#p2147</link>
        	<category>Peter's Sports League Standings</category>
        	<guid isPermaLink="true">http://www.theblog.ca/peter-forum/peters-sports-league-standings/adding-more-years#p2147</guid>
        	        	<description><![CDATA[<p>Hey Peter. Thanks for the quick reply.</p>
<p>I had tried hard-coding the years I needed before posting this question, but it seems as though the years are based off a Unix Timestamp. When I hard-coded 2005, 2006, 2007 and 2008 in, the years showed up as 2001 when viewed from the site /admin area.</p>
]]></description>
        	        	<pubDate>Mon, 04 Oct 2010 04:59:32 +0000</pubDate>
        </item>
        <item>
        	<title>Peter on Adding more years?</title>
        	<link>http://www.theblog.ca/peter-forum/peters-sports-league-standings/adding-more-years#p2146</link>
        	<category>Peter's Sports League Standings</category>
        	<guid isPermaLink="true">http://www.theblog.ca/peter-forum/peters-sports-league-standings/adding-more-years#p2146</guid>
        	        	<description><![CDATA[<p>In admin_files/add_score.php you'll see this code:</p>
<p><input type="button" class="sfcodeselect" name="sfselectit668" value="Select Code" onclick="spjSelectCode('sfcode668');" /></p>
<div class="sfcode" id="sfcode668">&#60;select name=&#34;year[]&#34;&#62;</div>
<p>You can hardcode the year options below that code or do some sort of foreach loop to output a certain number of years.  Something similar would have to be done in admin_files/edit_score.php as well.</p>
]]></description>
        	        	<pubDate>Sun, 03 Oct 2010 19:45:30 +0000</pubDate>
        </item>
        <item>
        	<title>Jason on Adding more years?</title>
        	<link>http://www.theblog.ca/peter-forum/peters-sports-league-standings/adding-more-years#p2144</link>
        	<category>Peter's Sports League Standings</category>
        	<guid isPermaLink="true">http://www.theblog.ca/peter-forum/peters-sports-league-standings/adding-more-years#p2144</guid>
        	        	<description><![CDATA[<p>Currently the "Add New Game" form only displays 3 years to choose from. Is there a way to change it so that it shows more than 3 years (eg 2005 - 2011)? Thanks.</p>
]]></description>
        	        	<pubDate>Sat, 02 Oct 2010 20:51:43 +0000</pubDate>
        </item>
</channel>
</rss>