Butler

Yds Rush Pass Pts/game Yds allowed Rush allowed Pass allowed Pts allowed/game
438.5 167.8 270.7 27.5 372.5 149.1 223.5 22.1
Offense | Defense
  gp td fg xpt 2pc dxp saf pts ppg
Total 11 42 4 34 2 - - 302 27.5
Conference 8 33 3 29 1 - - 238 29.8
Exhibition - - - - - - - - -

Home 5 22 2 16 1 - - 156 31.2
Away 6 20 2 18 1 - - 146 24.3
Neutral - - - - - - - - -

There was a problem with a Velocity script
Pageteaminfo-network-template
ErrorVM #split: too many arguments to macro. Wanted 2 got 3 at teaminfo-network-template[line 818, column 9]
Page source:
1: ## PICK UP OPTIONS
2: $website.include("options")
3: #set ($options = $request.getAttribute("options"))
4: 
5: ## MOBILE CHECK
6: #if ($browser.getIphone() || $browser.getMobile())
7: 	#set ($isMobile = true)
8: #else
9: 	#set ($isMobile = false)
10: #end
11: 
12: #set ($mobileNS = 'mobile-stats-')
13: #set ($mobileNSP = "#${mobileNS}")
14: 
15: 
16: #set ($locale = "en_us")
17: #set ($locale = $options.get("locale"))
18: #set ($teamId = $attributes.get("teamId"))
19: #set ($stats = $splits.overall)
20: #set ($pos = "")
21: #if ($sport.enumCode == 0) ## Football
22:   #set ($pos = "off")
23: #elseif ($sport.enumCode == 2) ## Basketball
24:   #set ($pos = "sh")
25: #elseif ($sport.enumCode == 3 or $sport.enumCode == 9) ## Soccer and Field Hockey
26:   #set ($pos = "kickers")  
27: #end
28: 
29: #set ($posEsc = $formatter.escapeXml($request.getParameter("pos")))
30: #if ($posEsc.length() > 0)
31: 	#set ($pos = $posEsc)
32: #end
33: 
34: #if ($sport.enumCode == 2) ## Basketball
35:   #if ($pos == "bc")
36:     #set ($pos = "sh")
37:   #end
38:   #if ($pos == "bt")
39:     #set ($pos = "st")
40:   #end
41:   #if ($pos == "bm")
42:     #set ($pos = "sm")
43:   #end
44: #end
45: #if ($sport.enumCode == 3 or $sport.enumCode == 9) ## Soccer and Field Hockey
46:   #if ($pos == "goalie")
47:     #set ($pos = "kickers")
48:   #end
49:   #if ($pos == "gg")
50:     #set ($pos = "kg")
51:   #end
52: #end
53: 
54: #if($briefsCategoriesLabels)
55: 	#set($briefsCategoriesSeason = $briefsCategoriesLabels.get("Season"))
56: 	#set($firstCategoryPos = $briefsCategoriesSeason.keySet().iterator().next())
57: #end
58: 
59: ## MACROS
60: #macro (split $label $stats $rowClass)
61:   <tr class="${rowClass}">
62:   #if ($isMobile)
63:     <td class="${mobileNS}fixed-column">${label}</td>
64:   #else
65:     <td>${label}</td>
66:   #end
67:     #foreach ($brief in $briefs.keySet())
68:       #set ($value = "-")
69:       #set ($value = $!formatter.formatNumber($stats.get($brief), $formats.get($brief)))
70:       <td align="center">
71:       #if ($value.length() > 0)$value#else - #end
72:       </td>
73:     #end
74:   </tr>
75: #end
76: 
77: #macro(roundbutton $enabled $url $label, $restriction, $pos, $class)
78: 	#if ($isMobile)
79: 		#if ($label == 'Overall' || $label == 'Conference')
80: 			<a data-restriction="${restriction}" data-pos="${pos}" class="${mobileNS}subtab #if ($enabled) ${mobileNS}tab-selected #end" href="${url}">${label}</a>
81: 		#else
82: 			<option data-restriction="${restriction}" data-pos="${pos}" value="${url}" #if ($enabled) selected="selected" #end>${label}</option>
83: 		#end
84: 	#else
85: 		#if ($enabled) <li class="active">#else <li> #end
86: 		 #if ($class.length() > 0)
87: 		  <a href="${url}" class="$!{class}">${label}</a>
88: 		 #else
89: 		   <a href="${url}">${label}</a>
90: 		 #end
91: 		</li>
92: 	#end
93: #end
94: 
95: #macro(printSeasonGameMinutesTabs)
96: 	
97: 	#if($briefsCategoriesLabels.containsKey("Game"))
98: 		#set($briefsCategoriesGame = $briefsCategoriesLabels.get("Game"))
99: 		#set($gamePos = $briefsCategoriesGame.keySet().iterator().next())
100: 		
101: 		<!-- Print the Game tab -->
102: 		#if($isMobile)
103: 			#roundbutton($pos.equals($gamePos), "${url}?view=${view}&r=${restriction}&pos=${gamePos}", "Game", ${restriction}, ${gamePos}, "")
104: 		#else
105: 			#roundbutton($pos.equals($gamePos), "${url}?view=${view}&r=${restriction}&pos=${gamePos}", "Game", "", "", "t_game")	
106: 		#end	
107:     	
108: 		<!-- Print the Season tab -->
109:     	#if($isMobile)
110:     		#roundbutton($pos.equals($firstCategoryPos), "${url}?view=${view}&r=${restriction}&pos=${firstCategoryPos}", "Season", ${restriction}, ${firstCategoryPos}, "")
111:     	#else
112:     		#roundbutton($pos.equals($firstCategoryPos), "${url}?view=${view}&r=${restriction}&pos=${firstCategoryPos}", "Season", "", "", "t_season")
113:     	#end	
114:     	
115:     	#if($briefsCategoriesLabels.containsKey("Minutes"))
116: 			#set($briefsCategoriesMinutes = $briefsCategoriesLabels.get("Minutes"))
117: 			#set($minutesPos = $briefsCategoriesMinutes.keySet().iterator().next())
118:     		
119: 			#set($showMinutesTab = false)
120:     		
121:     		#if($restriction == 0 && $lineupMinTeam && $lineupMinTeam.containsKey($minutesPos))
122:     			#set($lineupMinOverallValues = $lineupMinTeam.get($minutesPos))
123:     			
124:     			#set($lineupMinOverallStat = $lineupMinOverallValues[0])
125:     			#set($lineupMinOverallMinVal = $lineupMinOverallValues[1])
126:     			#set($lineupMinOverallMinNumericValue = $tool.number.toNumber($lineupMinOverallMinVal))
127:     			
128:     			#if($splits.overall[$lineupMinOverallStat] && $splits.overall[$lineupMinOverallStat] >= $lineupMinOverallMinNumericValue)
129:     				#set($showMinutesTab = true)
130:     			#end	
131:     		#end	
132:     		
133:     		#if($restriction == 1 && $lineupMinTeam && $lineupMinTeam.containsKey($minutesPos))
134:     			#set($lineupMinConferenceValues = $lineupMinTeam.get($minutesPos))
135:     			
136:     			#set($lineupMinConferenceStat = $lineupMinConferenceValues[0])
137:     			#set($lineupMinConferenceMinVal = $lineupMinConferenceValues[1])
138:     			#set($lineupMinConferenceMinNumericValue = $tool.number.toNumber($lineupMinConferenceMinVal))
139:     			
140:     			#if($splits.conference[$lineupMinConferenceStat] && $splits.conference[$lineupMinConferenceStat] >= $lineupMinConferenceMinNumericValue)
141:     				#set($showMinutesTab = true)
142:     			#end
143:     		#end
144:     		
145: 			<!-- Print the Minutes tab -->
146:     		#if($showMinutesTab)
147:     			#if($isMobile)
148:     				#roundbutton($pos.equals($minutesPos), "${url}?view=${view}&r=${restriction}&pos=${minutesPos}", "Minutes", "${restriction}", ${minutesPos}, "")
149:     			#else
150:     				#roundbutton($pos.equals($minutesPos), "${url}?view=${view}&r=${restriction}&pos=${minutesPos}", "Minutes", "", "" , "t_minutes")
151:     			#end	
152: 			#end
153: 			
154:     	#end
155: 	#end
156: #end
157: 
158: #macro(printBriefCategory $briefCatLabel $briefCatPos $isFirstCategoryPrinted)
159: 	#if($locale == "en_gb" && $briefCatLabel == "Defense")
160:     	#set($briefCatLabel = "Defence")
161:     #end
162: 	
163: 	#if($lineupDefaultSorting && $lineupDefaultSorting.containsKey($briefCatPos))
164: 		#set($sort = $lineupDefaultSorting.get($briefCatPos))
165: 	#end	
166: 	
167: 	#if($allowChooseSort)
168: 		#set ($sortEsc = $formatter.escapeXml($request.getParameter("sort")))
169: 		#if ($sortEsc.length() > 0)
170: 			#set ($sort = $sortEsc)
171: 		#end
172: 	#end
173: 	
174: 	#set ($url = "../players?teamId=${attributes.teamId}&view=lineup&sort=$!{sort}&pos=${briefCatPos}&r=${restriction}")
175: 	
176: 	#if($lineupMin && $lineupMin.containsKey($briefCatPos))
177: 		#set($minStat = $lineupMin.get($briefCatPos))
178: 		#set($url = $url + "&min=" + $minStat)
179: 	#end
180: 	
181: 	#if($lineupFilters)
182: 		#if($lineupFilters.containsKey("cs"))
183: 			#set($url = $url + "&cs=n")
184: 		#end
185: 		
186: 		#if($lineupFilters.containsKey("skipBlank"))
187: 		    #set($skipBlank = $lineupFilters.get("skipBlank"))	
188: 			
189: 			#if($skipBlank.contains($briefCatPos))
190: 				#set($url = $url + "&skipBlank=n")
191: 			#end	
192: 		#end	
193: 	#end	
194: 	
195: 	#if($isMobile)
196: 		<table class="${mobileNS}static-table">
197: 	#else
198: 		<table>
199: 	#end	
200: 	
201: 	<tr><th>$briefCatLabel</th></tr></table>
202: 	
203: 	#if($isFirstCategoryPrinted)
204: 		$website.include($url)
205: 	#else
206: 		$website.includeAgain($url)
207: 	#end
208: #end	
209: 
210: #macro(printBriefCategories)
211:     
212: 	#if($briefsCategoriesLabels)
213:     	#set($allowChooseSort = false)
214:     	
215:     	#if($lineupFilters && $lineupFilters.containsKey("allowChooseSort"))
216:     		#set($allowChooseSort = true)
217:     	#end
218:     
219: 		#if($briefsCategoriesLabels.containsKey("Game"))
220: 			#set($briefsCategoriesGame = $briefsCategoriesLabels.get("Game"))
221:         	
222:     		#if ($pos.equals($firstCategoryPos))
223: 				<!-- Ok, the selected is the 'Season' tab -->
224: 				#set($isFirstCategoryPrinted = true) 
225: 				#set($briefsCategoriesSeason = $briefsCategoriesLabels.get("Season"))
226:     			<!-- Print the Season categories tables  -->
227: 				#foreach($briefCat in $briefsCategoriesSeason.entrySet())
228:     				#set($briefCatLabel = $briefCat.value)
229:     				#set($briefCatPos = $briefCat.key)
230:     				#printBriefCategory($briefCatLabel, $briefCatPos, $isFirstCategoryPrinted)
231: 					#set($isFirstCategoryPrinted = false)
232:     			#end
233:     		#end
234: 			
235: 			<!-- Get the first Game category position --> 
236: 			#set($gamePos = $briefsCategoriesGame.keySet().iterator().next())
237: 			
238: 			#if ($pos.equals($gamePos))
239: 				#set($isFirstCategoryPrinted = true)
240: 				<!-- Print Game categories tables -->
241: 				#foreach($briefsCatGame in $briefsCategoriesGame.entrySet())
242: 					#printBriefCategory($briefsCatGame.value, $briefsCatGame.key, $isFirstCategoryPrinted)
243: 					#set($isFirstCategoryPrinted = false)
244: 				#end	
245: 			#end
246:     		
247:     		#if($briefsCategoriesLabels.containsKey("Minutes"))
248: 				
249: 				#set($briefsCategoriesMinutes = $briefsCategoriesLabels.get("Minutes"))
250: 				#set($minutesPos = $briefsCategoriesMinutes.keySet().iterator().next())
251:         		
252: 				#set($showMinutesTab = false)
253: 				
254: 				#if($restriction == 0 && $lineupMinTeam && $lineupMinTeam.containsKey($minutesPos))
255:         			#set($lineupMinOverallValues = $lineupMinTeam.get($minutesPos))
256:         			
257:         			#set($lineupMinOverallStat = $lineupMinOverallValues[0])
258:         			#set($lineupMinOverallMinVal = $lineupMinOverallValues[1])
259:         			#set($lineupMinOverallMinNumericValue = $tool.number.toNumber($lineupMinOverallMinVal))
260:         			
261:         			#if($splits.overall[$lineupMinOverallStat] && $splits.overall[$lineupMinOverallStat] >= $lineupMinOverallMinNumericValue)
262:         				#set($showMinutesTab = true)
263:         			#end	
264:         		#end	
265:     		
266:         		#if($restriction == 1 && $lineupMinTeam && $lineupMinTeam.containsKey($minutesPos))
267:         			#set($lineupMinConferenceValues = $lineupMinTeam.get($minutesPos))
268:         			
269:         			#set($lineupMinConferenceStat = $lineupMinConferenceValues[0])
270:         			#set($lineupMinConferenceMinVal = $lineupMinConferenceValues[1])
271:         			#set($lineupMinConferenceMinNumericValue = $tool.number.toNumber($lineupMinConferenceMinVal))
272:         			
273:         			#if($splits.conference[$lineupMinConferenceStat] && $splits.conference[$lineupMinConferenceStat] >= $lineupMinConferenceMinNumericValue)
274:         				#set($showMinutesTab = true)
275:         			#end
276:         		#end
277:     			
278: 				#if ($pos.equals($minutesPos))
279:     				#if($showMinutesTab)
280: 						#set($isFirstCategoryPrinted = true)
281: 						<!-- Print the Minutes categories tables -->
282: 						#foreach($briefsCatMinutes in $briefsCategoriesMinutes.entrySet())
283: 							#printBriefCategory($briefsCatMinutes.value, $briefsCatMinutes.key, $isFirstCategoryPrinted)
284: 							#set($isFirstCategoryPrinted = false)
285: 						#end
286:     				#end
287:     			#end
288:     		#end		
289:     	#else
290: 			#set($isFirstCategoryPrinted = true)
291: 			#set($briefsCategoriesSeason = $briefsCategoriesLabels.get("Season"))
292:     		#foreach($briefCat in $briefsCategoriesSeason.entrySet())
293: 				#set($briefCatLabel = $briefCat.value)
294:         		#set($briefCatPos = $briefCat.key)
295:     			#printBriefCategory($briefCatLabel, $briefCatPos, $isFirstCategoryPrinted)
296: 				#set($isFirstCategoryPrinted = false)
297:         	#end
298:     	#end
299:     #elseif($lineupFilters)
300:     	<!-- All of the supported sports has lineupFilters, so print it without matter it does not have briefs category, yeah voleyball is you :) -->
301:     	#set ($sort = $formatter.escapeXml($request.getParameter("sort")))
302:     	#set ($url = "../players?teamId=${attributes.teamId}&view=lineup&sort=$!{sort}&r=${restriction}")
303:     	$website.include($url)
304:     #else	
305:     	We do not support this sport
306:     #end	
307: #end
308: 
309: 
310: 
311: #if ($isMobile) ## MOBILE
312: 
313: <div class="stats-wrapper mobile-stats">
314: <h1>$!attributes.get("school_name")</h1>
315: ## <img src="/info/mobile/mobile-js/photoswipe/loader.gif" alt="" id="${mobileNS}tabs-spinner" />
316: 
317: ## TABS
318: <div class="stats-tabs mobile-tabs">
319: 	<ul>
320: 		<li><a data-url="${page.url}" #if (!($request.getParameter('view').length() > 0)) href="#Team_Profile" class="active" #else href="${page.url}" #end title="Team Profile">Team</a></li>
321: 		<li><a data-url="${page.url}?view=lineup" #if ($request.getParameter('view') == "lineup") href="#Lineup" class="active" #else href="${page.url}?view=lineup" #end title="Lineup">Lineup</a></li>
322: 		<li><a data-url="${page.url}?view=gamelog" #if ($request.getParameter('view') == "gamelog") href="#Gamelog" class="active" #else href="${page.url}?view=gamelog" #end title="Gamelog">Games</a></li>
323: 		<li><a data-url="${page.url}?view=splits" #if ($request.getParameter('view') == "splits") href="#Split_Stats" class="active" #else href="${page.url}?view=splits" #end title="Split Stats">Splits</a></li>
324: 		<li><a data-url="${page.url}?view=attendance" #if ($request.getParameter("view") == "attendance") href="#Attendance" class="active" #else href="${page.url}?view=attendance" #end title="Attendance">Attendance</a></li>
325: 	</ul>
326: 
327: #if ($request.getParameter("view") == "gamelog" and $events)
328: <div id="Gamelog">
329: <div class="${mobileNS}panel-container">
330: <table><thead>
331:   <tr>
332:     <th><b>Date</b></th>
333:     <th class="${mobileNS}fixed-column"><b>Opponent</b></th>
334:     <th><b>Score</b></th>
335:     #foreach ($gamelog in $gamelogs)
336:       <th><b>$gamelog</b></th>
337:     #end
338:   </tr>
339: </thead>
340: <tbody>
341: 
342: #set ($atLeastOneNotOverall = false)
343: 
344: #foreach ($event in $events)
345: 
346: <tr>
347: 	<td>$formatter.formatDate($event.event.date, "MMM d") #if (!$event.event.overall) #set ($atLeastOneNotOverall = true) # #end</td>
348: 	<td class="${mobileNS}fixed-column ${mobileNS}no-wrap">
349:     #if ($event.event.neutralSite.length() > 0) vs.
350:     #elseif (!$event.event.home) at
351:     #else ## nothing for a home game
352:     #end
353:     $event.event.opponent.name</td>
354:     <td>
355:     #if ($event.event.statusCode >= 0)
356:       #if ($event.event.eventId.length() > 0 && $event.stats.size() > 0)
357:       <a href="../boxscores/${formatter.formatDate($event.event.date, "yyyyMMdd")}_${event.event.eventId.substring(0, 4)}.xml">${event.event.APResult}</a>
358:       #else
359:       ${event.event.result}
360:       #end
361: 
362:     #else &nbsp; #end
363:     </td>
364:     #foreach ($gamelog in $gamelogs.keySet())
365:       #set ($value = "-")
366:       #set ($value = $!formatter.formatNumber($event.stats.get($gamelog), $formats.get($gamelog)))
367:       <td align="center">
368:       #if ($value.length() > 0)$value#else - #end
369:       </td>
370:     #end
371:   </tr>
372: #end
373: </tbody></table>
374: </div>
375: #if ($atLeastOneNotOverall)
376: 	<div># Does not affect overall record</div>
377: #end
378: </div>
379: 
380: 
381: #elseif ($request.getParameter("view") == "splits" and $events)
382: 
383: <div id="Split_Stats">
384: <div class="stats-fullbox ${mobileNS}panel-wrapper" data-pos="${pos}">
385: 
386: #if ($sport.enumCode == 0) ## Football
387: 	<select class="${mobileNS}tab-select">
388: 		<option #if ($pos == "off") selected="selected" #end data-pos="off" value="$page.url?view=splits&pos=off">Offense</option>
389: 		<option #if ($pos == "def") selected="selected" #end data-pos="def" value="$page.url?view=splits&pos=def">#if ($locale == "en_us") Defense #elseif ($locale == "en_gb") Defence #end</option>
390: 	</select>
391: 	<div class="${mobileNS}panel-container">
392: 	<table><thead>
393: #else
394: 	<div class="${mobileNS}panel-container">
395: 	<table><thead>
396: #end
397: 
398:   <tr>
399:     <th class="${mobileNS}fixed-column" data-sorter="false">&nbsp;</th>
400:     #foreach ($brief in $briefs)
401:       <th><b>$brief</b></th>
402:     #end
403:   </tr>
404: </thead><tbody>
405: 
406: #macro (printHr)
407: <tr>
408: 	<td class="${mobileNS}fixed-column">&nbsp;</td>
409: 	<td colspan="${colspan}">&nbsp;</td>
410: </tr>
411: #end
412: 
413: #set ($colspan = $briefs.size() + 1)
414: 
415: #split("Total", $splits.overall, "")
416: #split("Conference", $splits.conference, "")
417: #split("Exhibition", $splits.exhibition, "")
418: #printHr()
419: #split("Home", $splits.home, "")
420: #split("Away", $splits.away, "")
421: #split("Neutral", $splits.neutral, "")
422: #printHr()
423: 
424: #foreach($gameResult in $gamesResults.entrySet())
425: 	
426: 	#if($gameResult.key == "wins")
427: 		#set($splitGameResult = $splits.inWins)
428: 	#elseif($gameResult.key == "losses")
429: 		#set($splitGameResult = $splits.inLosses)
430: 	#elseif($gameResult.key == "ties")
431: 		#set($splitGameResult = $splits.inTies)
432: 	#end
433: 	
434: 	#split($gameResult.value, $splitGameResult, "")
435: #end
436: 
437: #printHr()
438: 
439: #if($monthsPlayed and $monthsPlayed.size() > 0)
440: 	#foreach($month in $monthsPlayed)
441: 		#if($month == 'January')
442: 			#set($splitMonth =  $splits.january)
443: 		#elseif($month == 'February')
444: 			#set($splitMonth =  $splits.february)
445: 		#elseif($month == 'March')
446: 			#set($splitMonth =  $splits.march)
447: 		#elseif($month == 'April')
448: 			#set($splitMonth =  $splits.april)
449: 		#elseif($month == 'May')
450: 			#set($splitMonth =  $splits.may)
451: 		#elseif($month == 'June')
452: 			#set($splitMonth =  $splits.june)
453: 		#elseif($month == 'July')
454: 			#set($splitMonth =  $splits.july)
455: 		#elseif($month == 'August')
456: 			#set($splitMonth =  $splits.august)
457: 		#elseif($month == 'September')
458: 			#set($splitMonth =  $splits.september)
459: 		#elseif($month == 'October')
460: 			#set($splitMonth =  $splits.october)
461: 		#elseif($month == 'November')
462: 			#set($splitMonth =  $splits.november)
463: 		#elseif($month == 'December')
464: 			#set($splitMonth =  $splits.december)
465: 		#end
466: 		
467: 		#split($month, $splitMonth, "")	
468: 	#end	
469: #end	
470: 
471: </tbody>
472: </table>
473: </div>
474: </div>
475: </div>
476: 
477: #elseif ($request.getParameter("view") == "lineup") ## Lineup page
478: 
479: #set ($restriction = "0")
480: #set ($restrictionEsc = $formatter.escapeXml($request.getParameter("r")))
481: #if ($restrictionEsc.length() > 0)
482: 	#set ($restriction = $restrictionEsc)
483: #end
484: 
485: #set ($view = "")
486: #set ($viewEsc = $!request.getParameter("view"))
487: #if ($viewEsc.length() > 0)
488: 	#set ($view = $viewEsc)
489: #end
490: 
491: ## Set this for the inner page to pull something out
492: #if ($restriction == "1")
493: $!request.setAttribute("teamStats", $splits.conference)
494: #else
495: $!request.setAttribute("teamStats", $splits.overall)
496: #end
497: 
498: <div id="Lineup">
499: <div class="stats-fullbox ${mobileNS}panel-wrapper" data-pos="${pos}" data-r="${restriction}">
500: ## start of overall/conference
501: #set ($url = $request.requestURI)
502: 
503: <div class="stats-tabs-secondary">
504: 
505: 	#if($briefsCategoriesLabels.containsKey("Game"))
506: 		<select class="${mobileNS}tab-select" style="visibility:visible">
507: 			#printSeasonGameMinutesTabs()
508: 		</select>	
509: 	#end	
510: 	
511: 	<div class="${mobileNS}subtabs">
512: 		#roundbutton($restriction.equals("0"), "${url}?view=${view}&r=0&pos=${pos}", "Overall", "0", "${pos}", "")
513: 		#roundbutton($restriction.equals("1"), "${url}?view=${view}&r=1&pos=${pos}", "Conference", "1", "${pos}", "")
514: 	</div>
515: 	
516: </div>
517: ## end of overall/conference
518: 
519: #printBriefCategories()
520: 
521: </div>
522: </div>
523: 
524: #elseif ($request.getParameter("view") == "attendance" and $events)
525: 
526: <div id="Attendance">
527: <table>
528:   <tr>
529:     <th><b>Date</b></th>
530:     <th><b>Opponent</b></th>
531:     <th><b>Score</b></th>
532:     <th><b>Attend</b></th>
533:   </tr>
534: #foreach ($event in $events)
535: 
536: <tr>
537: <td>$formatter.formatDate($event.event.date, "MMM d")</td>
538: <td>
539:     #if ($event.event.neutralSite.length() > 0) vs.
540:     #elseif (!$event.event.home) at
541:     #else ## nothing for a home game
542:     #end
543:     $event.event.opponent.name</td>
544:     <td>
545:     #if ($event.event.statusCode >= 0)
546:       #if ($event.event.eventId.length() > 0 && $event.stats.size() > 0)
547:       <a href="../boxscores/${formatter.formatDate($event.event.date, "yyyyMMdd")}_${event.event.eventId.substring(0, 4)}.xml">${event.event.APResult}</a>
548:       #else
549:       ${event.event.result}
550:       #end
551: 
552:     #else &nbsp; #end
553:     </td>
554:     #set ($value = "-")
555:       #set ($value = $!formatter.formatNumber($event.stats.get('at'), $formats.get('at')))
556:       <td align="center">
557:       #if ($value.length() > 0)$value#else - #end
558:       </td>
559:   </tr>
560: #end
561: </table>
562: </div>
563: 
564: #else ## Team profile page
565: 
566: #set($school_name_url = $!attributes.get("school_name"))
567: #set($school_name_url = $tool.esc.url($school_name_url))
568: 
569: <div id="Team_Profile">
570: <div class="stats-halfbox-left">
571: 
572: ## SCHEDULE INFORMATION
573:    $website.include("schedule?teamId=${teamId}&tmpl=schedule-data-template")
574: 
575: 
576: ## LAST SIX GAMES
577: <table>
578:   <tr><th colspan="3">Recent Games</th></tr>
579: #set ($eventEnd = -1)
580: #foreach ($event in $events)
581:   #if ($event.event.result.resolved)
582:     #set ($eventEnd = $velocityCount)
583:   #end
584: #end
585: #set ($eventStart = $eventEnd - 5)
586: #if ($eventStart < 0) #set ($eventStart = 0) #end
587: #foreach ($event in $events)
588: #if ($velocityCount >= $eventStart and $velocityCount <= $eventEnd)
589:   <tr>
590:     <td>$formatter.formatDate($event.event.date, "MMM d")</td>
591:     <td>
592:     #if ($event.event.neutralSite.length() > 0) vs.
593:     #elseif (!$event.event.home) at
594:     #else ## nothing for a home game
595:     #end
596:     $event.event.opponent.name</td>
597:     <td>
598:     #if ($event.event.statusCode >= 0)
599:       #if ($event.event.eventId.length() > 0 && $event.stats.size() > 0)
600:       <a href="../boxscores/${formatter.formatDate($event.event.date, "yyyyMMdd")}_${event.event.eventId.substring(0, 4)}.xml">${event.event.APResult}</a>
601:       #else
602:       ${event.event.APResult}
603:       #end
604:     #end
605:     </td>
606:   </tr>
607: #end ## if
608: #end
609: </table>
610: </div>
611: 
612: 
613: ## RANKINGS
614: $website.include("../teams?tmpl=stats-teams-rank-template&rank=${teamId}")
615: 
616: <div style="clear: both"></div>
617: 
618: </div>
619: 
620: #end
621: 
622: </div> ## MOBILE TABS
623: 
624: 
625: $wiki.su
626: </div>
627: 
628: <script type="text/javascript">
629: 	mobileConf = {
630: 		page : 'stats',
631: 		pageParams : {
632: 		#if (!($request.getParameter('view').length() > 0))
633: 			activeStatTab : $('#Team_Profile')
634: 		#elseif ($request.getParameter('view') == "lineup")
635: 			activeStatTab : $('#Lineup')
636: 		#elseif ($request.getParameter('view') == "gamelog")
637: 			activeStatTab : $('#Gamelog')
638: 		#elseif ($request.getParameter('view') == "splits")
639: 			activeStatTab : $('#Split_Stats')
640: 		#elseif ($request.getParameter('view') == "attendance")
641: 			activeStatTab : $('#Attendance')
642: 		#end
643: 		}
644: 	}
645: </script>
646: 
647: 
648: #else ## DESKTOP
649: 
650: <head>
651:   <title>$!attributes.get("school_name")</title>
652: </head>
653: 
654: <div class="stats-wrapper clearfix">
655: 	
656: #if ($page.title.length() > 0)
657: 	<h1>$page.title</h1>
658: #end
659: 
660: #if ($attributes.get("school_name").length() > 0)
661:     <h2>$!attributes.get("school_name")</h2>
662: #end
663: 
664: ## HIGHLIGHTS
665: <div class="stats-fullbox clearfix">
666: <table>
667:  <tr>
668:     #foreach ($highlight in $highlights.keySet())
669:       <th>$!highlights.get($highlight)</th>
670:     #end
671:  </tr>
672:  <tr>
673:     #foreach ($highlight in $highlights.keySet())
674:       #set ($value = "-")
675:       #set ($value = $!formatter.formatNumber($stats.get($highlight), $formats.get($highlight)))
676:       <td align="center">
677:       #if ($value.length() > 0)$value#else - #end
678:       </td>
679:     #end
680:  </tr>
681: </table>
682: </div>
683: 
684: ## TABS
685: <div class="stats-tabs clearfix">
686: <ul class="clearfix">
687: 	<li #if (!($request.getParameter("view").length() > 0))class="active"#end><a href="${page.url}">Team Profile</a></li>
688: 	<li #if ($request.getParameter("view") == "lineup")class="active"#end><a href="${page.url}?view=lineup">Lineup</a></li>
689: 	<li #if ($request.getParameter("view") == "gamelog")class="active"#end><a href="${page.url}?view=gamelog">Game Log</a></li>
690: 	<li #if ($request.getParameter("view") == "splits")class="active"#end><a href="${page.url}?view=splits">Split Stats</a></li>
691: 	#if ($sport.enumCode == 0) ## Football
692: 		<li><a href="${page.url}?tmpl=teaminfo-network-monospace-template" target="_blank">Coach's View</a></li>
693: 	#elseif ($sport.enumCode == 2) ## Basketball
694: 		<li><a href="${page.url}?sort=ptspg&tmpl=teaminfo-network-monospace-template" target="_blank">Coach's View</a></li>
695: 	#elseif ($sport.enumCode == 1 || $sport.enumCode == 11) ## baseball or softball
696: 		<li><a href="${page.url}?sort=ab&pos=h&tmpl=teaminfo-network-monospace-template" target="_blank">Coach's View</a></li>
697: 	#elseif ($sport.enumCode == 6 or $sport.enumCode == 10) ## Men's or women's lacrosse	
698: 		<li><a href="${page.url}?tmpl=teaminfo-network-monospace-template" target="_blank">Coach's View</a></li>
699: 	#elseif ($sport.enumCode == 9) ## field hockey
700: 		<li><a href="${page.url}?tmpl=teaminfo-network-monospace-template" target="_blank">Coach's View</a></li>
701: 	#elseif ($sport.enumCode == 3) ## Men's or women's soccer
702: 		<li><a href="${page.url}?tmpl=teaminfo-network-monospace-template" target="_blank">Coach's View</a></li>
703: 	#elseif ($sport.enumCode == 4) ## Men's or women's volleyball
704: 		<li><a href="${page.url}?tmpl=teaminfo-network-monospace-template" target="_blank">Coach's View</a></li>
705: 	#elseif ($sport.enumCode == 5) ## Men's or women's ice hockey
706: 		<li><a href="${page.url}?tmpl=teaminfo-network-monospace-template" target="_blank">Coach's View</a></li>
707: 	#end
708: 	<li #if ($request.getParameter("view") == "attendance")class="active"#end><a href="${page.url}?view=attendance">Attendance</a></li>
709: </ul>
710: </div>
711: 
712: #if ($request.getParameter("view") == "gamelog" and $events)
713: 
714: <div class="stats-fullbox clearfix">
715: <table>
716:   <tr>
717:     <th>Date</th>
718:     <th>Opponent</th>
719:     <th>Score</th>
720:     #foreach ($gamelog in $gamelogs)
721:       <th>$gamelog</th>
722:     #end
723:   </tr>
724: 
725: #set ($counter = 0)
726: #set ($atLeastOneNotOverall = false)
727: 
728: #foreach ($event in $events)
729: 
730: #set ($counter = $counter + 1)
731: #if ($counter % 2 == 0)
732:  #set ($row = "even")
733: #else
734:  #set ($row = "odd")
735: #end
736: <tr class="${row}">
737: <td>$formatter.formatDate($event.event.date, "MMM d") #if (!$event.event.overall) #set ($atLeastOneNotOverall = true) # #end</td>
738: <td>
739:     #if ($event.event.neutralSite.length() > 0) vs.
740:     #elseif (!$event.event.home) at
741:     #else ## nothing for a home game
742:     #end
743:     $event.event.opponent.name</td>
744:     <td>
745:     #if ($event.event.statusCode >= 0)
746:       #if ($event.event.eventId.length() > 0 && $event.stats.size() > 0)
747:       <a href="../boxscores/${formatter.formatDate($event.event.date, "yyyyMMdd")}_${event.event.eventId.substring(0, 4)}.xml">${event.event.APResult}</a>
748:       #else
749:       ${event.event.result}
750:       #end
751: 
752:     #else &nbsp; #end
753:     </td>
754:     #foreach ($gamelog in $gamelogs.keySet())
755:       #set ($value = "-")
756:       #set ($value = $!formatter.formatNumber($event.stats.get($gamelog), $formats.get($gamelog)))
757:       <td align="center">
758:       #if ($value.length() > 0)$value#else - #end
759:       </td>
760:     #end
761:   </tr>
762: #end
763: #if ($atLeastOneNotOverall)
764: 	<tr><td colspan='2'># Does not affect overall record</td></tr>
765: #end
766: </table>
767: </div>
768: 
769: #elseif ($request.getParameter("view") == "splits" and $events)
770: 
771: <div class="stats-fullbox clearfix">
772: <table>
773: #if ($sport.enumCode == 0) ## Football
774: <tr><td colspan="100">
775:   #if ($pos == "off")<b>#end
776: <a href="$page.url?view=splits&pos=off">Offense</a>
777:   #if ($pos == "off")</b>#end
778: |
779:   #if ($pos == "def")<b>#end
780: <a href="$page.url?view=splits&pos=def">#if ($locale == "en_us")
781: Defense
782: #elseif ($locale == "en_gb")
783: Defence
784: #end
785: </a>
786:   #if ($pos == "def")<b>#end
787: </td></tr>
788: #end
789:   <tr>
790:     <th>&nbsp;</th>
791:     #foreach ($brief in $briefs)
792:       <th>$brief</th>
793:     #end
794:   </tr>
795: 
796: #set ($colspan = $briefs.size() + 1)
797: 
798: #split("Total", $splits.overall, "odd")
799: #split("Conference", $splits.conference, "even")
800: #split("Exhibition", $splits.exhibition, "odd")
801: <tr><td colspan="${colspan}"><hr /></td></tr>
802: #split("Home", $splits.home, "even")
803: #split("Away", $splits.away, "odd")
804: #split("Neutral", $splits.neutral, "even")
805: <tr><td colspan="${colspan}"><hr /></td></tr>
806: #set($isOddOrEven = 'odd')
807: 
808: #foreach($gameResult in $gamesResults.entrySet())
809: 	
810: 	#if($gameResult.key == "wins")
811: 		#set($splitGameResult = $splits.inWins)
812: 	#elseif($gameResult.key == "losses")
813: 		#set($splitGameResult = $splits.inLosses)
814: 	#elseif($gameResult.key == "ties")
815: 		#set($splitGameResult = $splits.inTies)
816: 	#end
817: 	
818: 	#split($gameResult.value, $splitGameResult, $isOddOrEven)
819: 	
820: 	#if($isOddOrEven == 'even')
821: 		#set($isOddOrEven = 'odd')
822: 	#else
823: 		#set($isOddOrEven = 'even')
824: 	#end
825: #end
826: 
827: <tr><td colspan="${colspan}"><hr /></td></tr>
828: 
829: #if($monthsPlayed and $monthsPlayed.size() > 0)
830: 	#foreach($month in $monthsPlayed)
831: 		#if($month == 'January')
832: 			#set($splitMonth =  $splits.january)
833: 		#elseif($month == 'February')
834: 			#set($splitMonth =  $splits.february)
835: 		#elseif($month == 'March')
836: 			#set($splitMonth =  $splits.march)
837: 		#elseif($month == 'April')
838: 			#set($splitMonth =  $splits.april)
839: 		#elseif($month == 'May')
840: 			#set($splitMonth =  $splits.may)
841: 		#elseif($month == 'June')
842: 			#set($splitMonth =  $splits.june)
843: 		#elseif($month == 'July')
844: 			#set($splitMonth =  $splits.july)
845: 		#elseif($month == 'August')
846: 			#set($splitMonth =  $splits.august)
847: 		#elseif($month == 'September')
848: 			#set($splitMonth =  $splits.september)
849: 		#elseif($month == 'October')
850: 			#set($splitMonth =  $splits.october)
851: 		#elseif($month == 'November')
852: 			#set($splitMonth =  $splits.november)
853: 		#elseif($month == 'December')
854: 			#set($splitMonth =  $splits.december)
855: 		#end
856: 		
857: 		#split($month, $splitMonth, $isOddOrEven)	
858: 		
859: 		#if($isOddOrEven == 'odd')
860: 			#set($isOddOrEven = 'even')
861: 		#else
862: 			#set($isOddOrEven = 'odd')
863: 		#end
864: 	#end	
865: #end	
866: 
867: </table>
868: </div>
869: 
870: 
871: #elseif ($request.getParameter("view") == "lineup")
872: 
873: ## Lineup page
874: <div class="stats-fullbox clearfix">
875: 
876: #set ($restriction = "0")
877: #set ($restrictionEsc = $formatter.escapeXml($request.getParameter("r")))
878: #if ($restrictionEsc.length() > 0)
879: 	#set ($restriction = $restrictionEsc)
880: #end
881: 
882: #set ($view = "")
883: #set ($view = $formatter.escapeXml($!request.getParameter("view")))
884: 
885: ## Set this for the inner page to pull something out
886: #if ($restriction == "1")
887: $!request.setAttribute("teamStats", $splits.conference)
888: #else
889: $!request.setAttribute("teamStats", $splits.overall)
890: #end
891: 
892: ## start of overall/conference
893: #set ($url = $request.requestURI)
894: <div class="stats-tabs-secondary">
895: <ul class="clearfix">
896: 
897: #roundbutton($restriction.equals("0"), "${url}?view=${view}&r=0&pos=${pos}", "Overall", "", "", "first t_overall")
898: #roundbutton($restriction.equals("1"), "${url}?view=${view}&r=1&pos=${pos}", "Conference", "", "", "t_conf")
899: 
900: #printSeasonGameMinutesTabs()
901: 
902: </ul>
903: </div>
904: ## end of overall/conference
905: 
906: #printBriefCategories()
907:    
908: </div>
909: 
910: Download roster:
911: <a href="../players?teamId=${attributes.teamId}&view=ext">${rosterExtension} (First Last) </a>|<a href="../players?teamId=${attributes.teamId}&view=ext&type=lf"> ${rosterExtension} (Last, First)</a>
912: #if ($rosterExtraExtension)
913: <a href="../players?teamId=${attributes.teamId}&view=exte">${rosterExtraExtension} (First Last)</a>|<a href="../players?teamId=${attributes.teamId}&view=exte&type=lf">${rosterExtraExtension} (Last, First)</a>
914: #end
915: <br />
916: 
917: #elseif ($request.getParameter("view") == "attendance" and $events)
918: 
919: <div class="stats-fullbox clearfix">
920: <table>
921:   <tr>
922:     <th>Date</th>
923:     <th>Opponent</th>
924:     <th>Score</th>
925:     <th>Attend</th>
926:   </tr>
927: #set ($counter = 0)
928: #foreach ($event in $events)
929: 
930: #set ($counter = $counter + 1)
931: #if ($counter % 2 == 0)
932:   #set ($row = "even")
933: #else
934:   #set ($row = "odd")
935: #end
936: <tr class="${row}">
937: <td>$formatter.formatDate($event.event.date, "MMM d")</td>
938: <td>
939:     #if ($event.event.neutralSite.length() > 0) vs.
940:     #elseif (!$event.event.home) at
941:     #else ## nothing for a home game
942:     #end
943:     $event.event.opponent.name</td>
944:     <td>
945:     #if ($event.event.statusCode >= 0)
946:       #if ($event.event.eventId.length() > 0 && $event.stats.size() > 0)
947:       <a href="../boxscores/${formatter.formatDate($event.event.date, "yyyyMMdd")}_${event.event.eventId.substring(0, 4)}.xml">${event.event.APResult}</a>
948:       #else
949:       ${event.event.result}
950:       #end
951: 
952:     #else &nbsp; #end
953:     </td>
954:     #set ($value = "-")
955:       #set ($value = $!formatter.formatNumber($event.stats.get('at'), $formats.get('at')))
956:       <td align="center">
957:       #if ($value.length() > 0)$value#else - #end
958:       </td>
959:   </tr>
960: #end
961: </table>
962: </div>
963: 
964: #else
965: 
966: ## Team profile page
967: 
968: #set($school_name_url = $!attributes.get("school_name"))
969: #set($school_name_url = $tool.esc.url($school_name_url))
970: 
971: <div class="clearfix">
972: <div class="stats-halfbox-left">
973: 
974: ## SCHEDULE INFORMATION
975: $website.include("schedule?teamId=${teamId}&tmpl=schedule-data-template")
976: 
977: 
978: ## LAST SIX GAMES
979: <table>
980:   <tr><th colspan="3">Recent Games</th></tr>
981: #set ($eventEnd = -1)
982: #foreach ($event in $events)
983:   #if ($event.event.result.resolved)
984:     #set ($eventEnd = $velocityCount)
985:   #end
986: #end
987: #set ($eventStart = $eventEnd - 5)
988: #if ($eventStart < 0) #set ($eventStart = 0) #end
989: 
990: #set ($counter = 0)
991: #foreach ($event in $events)
992: #if ($velocityCount >= $eventStart and $velocityCount <= $eventEnd)
993: 
994: #set ($counter = $counter + 1)
995: #if ($counter % 2 == 0)
996:   #set ($row = "even")
997: #else
998:   #set ($row = "odd")
999: #end
1000:   <tr class="${row}">
1001:     <td>$formatter.formatDate($event.event.date, "MMM d")</td>
1002:     <td>
1003:     #if ($event.event.neutralSite.length() > 0) vs.
1004:     #elseif (!$event.event.home) at
1005:     #else ## nothing for a home game
1006:     #end
1007:     $event.event.opponent.name</td>
1008:     <td>
1009:     #if ($event.event.statusCode >= 0)
1010:       #if ($event.event.eventId.length() > 0 && $event.stats.size() > 0)
1011:       <a href="../boxscores/${formatter.formatDate($event.event.date, "yyyyMMdd")}_${event.event.eventId.substring(0, 4)}.xml">${event.event.APResult}</a>
1012:       #else
1013:       ${event.event.APResult}
1014:       #end
1015:     #end
1016:     </td>
1017:   </tr>
1018: #end ## if
1019: #end
1020: </table>
1021: </div>
1022: 
1023: 
1024: ## RANKINGS
1025: $website.include("../teams?tmpl=stats-teams-rank-template&rank=${teamId}")
1026: 
1027: </div> ## clearfix
1028: 
1029: #end
1030: 
1031: $wiki.su
1032: </div>
1033: 
1034: ## DESKTOP ENDS
1035: #end