View Single Post
Old 02-19-2007, 06:23 PM   #20
kq76
Global Moderator
 
kq76's Avatar
 
Join Date: Nov 2002
Location: Vancouver, Canada
Posts: 10,703
Well, it appears you just have less teams than the league the original export tracker had and that two of your NL teams are listed at the bottom of the AL list.

Try the following:

Replace:

for ($i = 1; $i < 15; $i++) {

With:

for ($i = 1; $i < 13; $i++) {

AND

Replace:

$j = $i + 14;

With:

$j = $i + 12;

And then I'm not entirely too sure about this (DaveHorn probably can help you better), but you're probably going to still end up with 2 extra lines on the right side so perhaps a large chunk needs to be changed somehow and maybe just deleted:

Starting with:

for ($i = 29; $i < 31; $i++) {
$NL = $base.$i.$ext;
$NLST = $stbase.$i.$ext;

and Ending with:

print("</tr>");


//print("<tr><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>".getTeamName($NL)."</td><td>".getFileDate($NL)."</td><td>".getFileDate($NLST)."</td></tr>");
}

Or you might want to forget about that part and instead flip flop the sides of the two leagues so that the one with the more teams is on the right like the original tracker had, but then you'd have to play with the numbers from the first 2 changes.

Anyway, try the first 2 changes and see what they give you then try the last one.
kq76 is offline