Eastern Wash.

Games Pts per game FG % 3PT % FT % Reb per game Ast per game
30 69.4 43.0 36.9 76.6 34.1 15.5
  gp fg pct 3pt pct ft pct off def reb ast to stl blk pf pts
Total 30 737-1715 43.0 191-518 36.9 416-543 76.6 11.0 23.1 34.1 15.5 15.2 8.1 3.8 18.9 69.4
Conference 20 470-1109 42.4 124-336 36.9 319-405 78.8 11.0 22.8 33.8 14.6 14.4 7.8 3.6 19.2 69.2
Exhibition 1 28-66 42.4 10-21 47.6 21-28 75.0 19.0 27.0 46.0 20.0 21.0 6.0 2.0 22.0 87.0

Home 15 406-878 46.2 107-262 40.8 204-266 76.7 11.9 24.4 36.3 18.2 14.9 7.6 4.5 16.7 74.9
Away 12 264-670 39.4 69-209 33.0 185-239 77.4 10.8 22.0 32.8 13.3 14.6 8.6 3.0 20.8 65.2
Neutral 3 67-167 40.1 15-47 31.9 27-38 71.1 7.7 21.0 28.7 11.0 19.0 8.7 4.0 22.0 58.7

Wins 16 418-906 46.1 108-271 39.9 238-304 78.3 12.1 25.7 37.8 17.9 15.2 7.1 4.2 16.4 73.9
Losses 14 319-809 39.4 83-247 33.6 178-239 74.5 9.9 20.1 30.0 12.9 15.2 9.3 3.4 21.7 64.2

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

View: Mobile | Desktop