Video | Live stats | Recap | Box Score | Box Score | Preview
Catholic vs. Lynchburg at Lynchburg, VA
11/7/2012 at 5:00 pm

Catholic
3
Lynchburg
4
SCORING 1 2 OT FINAL
Catholic (12-8) 2 1 0 3
Lynchburg (18-3) 2 1 1 4
Period: 1st | 2nd | OT
1st
Time Play
0:00 Megan Comunale at goalie for Catholic University.
0:00 Hannah Myers at goalie for Lynchburg College.
0:42 GOAL by Lynchburg College Katie Kline (FIRST GOAL), Assist by Kelli Williams GOAL by Lynchburg College Shelly Milks
Score: Catholic 0 - Lynchburg 1
03:12 GOAL by Lynchburg College Shelly Milks Penalty corner by Lynchburg College Katie Kline [03:57].
Score: Catholic 0 - Lynchburg 2
03:57 Penalty corner by Lynchburg College Katie Kline [03:57].
04:23 Shot by Lynchburg College Lindsay Leonard, Save (by goalie) Megan Comunale.
04:25 Shot by Lynchburg College Kelli Williams, Save (by goalie) Megan Comunale.
04:42 Penalty corner by Lynchburg College Katie Kline [04:42].
05:06 Shot by Lynchburg College Nicole Marburger, Save (by goalie) Megan Comunale.
05:06 Lynchburg College Melanie Tenney PENALTY STROKE
05:05 Shot by Lynchburg College Kelli Williams, Defensive Save.
09:17 Penalty corner by Catholic University Taylor Elliott [09:17].
09:46 Shot by Catholic University Colleen Harwood, Wide.
11:46 Lynchburg College substitution: Kelsey Link for Katie Kline.
12:41 Penalty corner by Catholic University Taylor Elliott [12:41].
13:15 Shot by Catholic University Maura Campbell, Wide.
16:09 Penalty corner by Catholic University Taylor Elliott [16:09].
16:42 Shot by Catholic University Maura Campbell, Defensive Save.
16:48 Penalty corner by Catholic University Taylor Elliott [16:48].
17:17 Shot by Catholic University Maura Campbell, Save (by goalie) Hannah Myers.
17:29 Lynchburg College substitution: Madlene Brannau for Bianca Merritt.
21:57 Lynchburg College substitution: Tess Brzezynski for Ashley Nelson.
23:56 Lynchburg College substitution: Heather Dodge for Madlene Brannau.
25:54 GOAL by Catholic University Hayley Wright, Assist by Colleen Harwood Lynchburg College substitution: Katie Kline for Kelli Williams.
Score: Catholic 1 - Lynchburg 2
26:09 Lynchburg College substitution: Katie Kline for Kelli Williams.
29:17 Lynchburg College substitution: Ashley Nelson for Katie Kline.
29:17 Lynchburg College substitution: Bianca Merritt for Heather Dodge.
29:17 Lynchburg College substitution: Katie Kline for Lindsay Leonard.
31:29 Shot by Catholic University Kim Hermann, Wide.
32:38 Penalty corner by Catholic University Taylor Elliott [32:38].
33:15 Shot by Catholic University Kim Hermann, Wide.
34:30 GOAL by Catholic University Colleen Harwood, Assist by Maura Campbell End of period [35:00].
Score: Catholic 2 - Lynchburg 2
35:00 End of period [35:00].
Score: Catholic 2 - Lynchburg 2
2nd
Time Play
35:00 Start of 2nd period [35:00].
35:14 Lynchburg College substitution: Eliza Fritz for Bianca Merritt.
36:34 Penalty corner by Catholic University Taylor Elliott [36:34].
37:00 Shot by Catholic University Colleen Harwood, Wide.
38:49 Lynchburg College substitution: Bianca Merritt for Eliza Fritz.
41:55 Green card on Lynchburg College Melanie Tenney.
43:12 Lynchburg College substitution: Danielle Kreider for Katie Kline.
43:34 Shot by Lynchburg College Kelli Williams, Save (by goalie) Megan Comunale.
43:38 Shot by Lynchburg College Danielle Kreider, Blocked.
43:58 Catholic University substitution: Ellen Thorburn for Kim Hermann.
44:36 GOAL by Lynchburg College Danielle Kreider, Assist by Shelly Milks Penalty corner by Catholic University Kiera McGovern [45:43].
Score: Catholic 2 - Lynchburg 3
45:43 Penalty corner by Catholic University Kiera McGovern [45:43].
48:20 Penalty corner by Catholic University Taylor Elliott [48:20].
49:00 Shot by Catholic University Maura Campbell, Blocked.
51:48 Penalty corner by Catholic University Taylor Elliott [51:48].
52:03 Lynchburg College substitution: Katie Kline for Danielle Kreider.
52:26 Shot by Catholic University Taylor Elliott, Wide.
52:50 Penalty corner by Catholic University Taylor Elliott [52:50].
53:52 Lynchburg College substitution: Kelsey Link for Ashley Nelson.
56:31 Catholic University substitution: Kim Hermann for Ellen Thorburn.
56:31 Lynchburg College substitution: Colleen Dore for Katie Kline.
57:22 Penalty corner by Catholic University Taylor Elliott [57:22].
57:38 Shot by Catholic University Colleen Harwood, Save (by goalie) Hannah Myers.
57:47 Catholic University Maura Campbell PENALTY STROKE GOAL Shot by Catholic University Rebecca Lukaszczyk, Blocked.
Score: Catholic 3 - Lynchburg 3
60:00 Shot by Catholic University Rebecca Lukaszczyk, Blocked.
60:09 Penalty corner by Catholic University Taylor Elliott [60:09].
60:17 Lynchburg College substitution: Meredith Bradsher for Bianca Merritt.
60:37 Shot by Catholic University Maura Campbell, Save (by goalie) Hannah Myers.
60:50 Lynchburg College substitution: Meredith Bradsher for Bianca Merritt.
60:50 Lynchburg College substitution: Ashley Nelson for Colleen Dore.
61:44 Shot by Catholic University Rebecca Lukaszczyk, Save (by goalie) Hannah Myers.
62:41 Timeout by LCFH.
62:56 Shot by Catholic University Colleen Harwood, Blocked.
63:40 Green card on Lynchburg College Melanie Tenney.
64:04 Shot by Catholic University Kiera McGovern, Save (by goalie) Hannah Myers.
65:29 Penalty corner by Catholic University Taylor Elliott [65:29].
66:06 Shot by Catholic University Maura Campbell, Save (by goalie) Hannah Myers.
66:14 Penalty corner by Catholic University Taylor Elliott [66:14].
66:45 Shot by Catholic University Colleen Harwood, Blocked.
67:11 Penalty corner by Catholic University Taylor Elliott [67:11].
67:40 Shot by Catholic University Colleen Harwood, Save (by goalie) Hannah Myers.
68:28 Shot by Lynchburg College Kelli Williams, Blocked.
70:00 Penalty corner by Lynchburg College Kelsey Link [70:00].
70:00 End of period [70:00].
Score: Catholic 3 - Lynchburg 3
OT
Time Play
70:00 Start of OT period [70:00].
70:48
There was a problem with a Velocity script
Pagestatcrew-soxml-template
ErrorInvocation of method 'get' in class java.util.ArrayList threw exception java.lang.IndexOutOfBoundsException: Index: 3, Size: 3 at statcrew-soxml-template[line 843, column 33]
Page source:
1: #set ($showWiki = true)
2: #set ($showWiki = $showWikiVar)
3: 
4: #if ($showWiki == true)
5: 	$!wiki.su 
6: #end
7: 
8: #if ($document.valueOf("sogame/@source") == 'DakStats Soccer')
9: 	#set ($isDakStats = true)
10: #else
11: 	#set ($isDakStats = false)
12: #end
13: 
14: #set ($showGoalDesc = $document.valueOf("sogame/venue/show/@goaldesc") == "1")
15: #set ($showFouls = $document.valueOf("sogame/venue/show/@fouls") == "1")
16: #set ($showFieldHockey = $document.valueOf("sogame/venue/show/@fhk") == "1")
17: #set ($shootoutScores = {"V" : 0, "H" : 0})
18: 
19: #set ($linkPlayers = $stats.linkPlayers)
20: #set ($linkPlayersBase = $stats.linkPlayersBase)
21: #set ($linkTeams = $stats.linkTeams)
22: #set ($linkTeamsBase = $stats.linkTeamsBase)
23: 
24: #macro (shootout $shootouts $t)
25: 	#set ($printVal = "")
26: 	#foreach ($shot in $shootouts)
27: 		#if ($shot.valueOf("@vh") == $t)
28: 			#set ($player = $shot.valueOf("@name"))
29: 			#set ($shotResult = ${shot.valueOf("@result")})
30: 			#set ($singlePrintVal = "$player - $shotResult")
31: 			#if ($shot.valueOf("@result") == "MADE")
32: 				#set ($score = $shootoutScores.get($t))
33: 				#set ($score = $tool.math.add($score, 1))
34: 				#set ($score = $shootoutScores.put($t, $score))
35: 			#end ## result
36: 			#if ($printVal.length() > 0) #set ($printVal = "${printVal}; ") #end
37: 			#set ($printVal = "${printVal} ${singlePrintVal}")			
38: 		#end ## if
39: 	#end ## foreach
40: 	$printVal
41: #end
42: 
43: #macro (period $p)
44: #if ($p == 1) 1st
45: #elseif ($p == 2) 2nd
46: #elseif ($p == 3) OT
47: #elseif ($p == 4) 2OT
48: #elseif ($p == 5) SO
49: #else $p
50: #end
51: #end
52: 
53: #macro (printPeriods)
54: 	#foreach ($prd in $document.selectNodes("sogame/team[1]/linescore/lineprd"))
55: 		<th style="width:40px">
56: 			#if ($velocityCount >= 3)
57: 				#if ($velocityCount == 3)
58: 					OT
59: 				#elseif ($velocityCount == 5)
60: 					SO
61: 				#else
62: 					${tool.math.sub($velocityCount, 2)}OT
63: 				#end
64: 			#else
65: 				$!velocityCount
66: 			#end
67: 		</th>
68: 	#end
69: #end
70: 
71: #set ($home = $document.valueOf("sogame/team[@vh='H']/@name"))
72: #set ($visitor = $document.valueOf("sogame/team[@vh='V']/@name"))
73: 
74: #set ($homeNode = $document.selectSingleNode("sogame/team[@vh='H']"))
75: #set ($visitorNode = $document.selectSingleNode("sogame/team[@vh='V']"))
76: 
77: ## RULES
78: #set ($periodRule = $document.valueOf("sogame/venue/rules/@periods"))
79: #set ($periodLength = $document.valueOf("sogame/venue/rules/@minutes"))
80: #set ($otPeriodLength = $document.valueOf("sogame/venue/rules/@minutesot"))
81: 
82: ## STATUS
83: #set ($status = $document.valueOf("sogame/status/@period"))
84: #set ($clock = $document.valueOf("sogame/status/@clock"))
85: 
86: #macro (showTeam $team)
87: 
88: 	#if ($team.attributeValue("teamId").length() > 0 and $linkTeams)
89: 		<a href="$!linkTeamsBase?id=${team.attributeValue("teamId")}">
90: 	#end
91: 	$team.attributeValue("name")
92: 	#if ($team.attributeValue("teamId").length() > 0 and $linkTeams)
93: 		</a>
94: 	#end
95: 	 
96: #end
97: 
98: #if ($clock.length() > 0 && $clock != "90:00")
99:   #if ($periodRule.length() > 0 && $periodLength.length() > 0 && $otPeriodLength.length() > 0)
100:     #set ($normalTime = $tool.math.mul($periodRule, $periodLength))
101: 	#set ($extraTime = $tool.math.mul($otPeriodLength, 2))
102: 	#set ($totalTime = "$tool.math.mul($normalTime, $extraTime):00")
103: 	$totalTime
104:   #end
105: #end
106: 
107: #set ($periodRange = [1..$document.selectNodes("sogame/team[1]/linescore/lineprd").size()])
108: #set ($isNeutralGame = $documnt.valueOf("sogame/venue/@neutralgame"))
109: #if ($isNeutralGame.length() > 0 && $isNeutralGame.equals("Y"))
110:   #set ($isNeutralGame = true)
111: #else
112:   #set ($isNeutralGame = false)
113: #end
114: 
115: #set ($hasPlayByPlay = $document.selectNodes("sogame/plays/period").size() > 0)
116: 
117: ## GOALIE SHOTS
118: #macro (shots $ga $saves)
119: #if ($saves.length() > 0)
120:  $tool.math.add($ga, $saves)
121: #else
122: #end
123: #end
124: 
125: #set ($visname = $document.valueOf("sogame/venue/@visname"))
126: #set ($homename = $document.valueOf("sogame/venue/@homename"))
127: #set ($location = $document.valueOf("sogame/venue/@location"))
128: #set ($stadium = $document.valueOf("sogame/venue/@stadium"))
129: #set ($date = $document.valueOf("sogame/venue/@date"))
130: #set ($duration = $document.valueOf("sogame/venue/@duration"))
131: #set ($schedNote = $document.valueOf("sogame/venue/@schednote"))
132: #set ($attendance = $document.valueOf("sogame/venue/@attend"))
133: 
134: 
135: ##MOBILE VERSION
136: #if ($browser.getIphone() || $browser.getMobile())
137: 
138: #macro(totalCorners $team)
139: 	#set ($totalCorners = 0)
140: 	#foreach ($prd in $team.selectNodes("linescore/lineprd"))
141: 		#set ($totalCorners = $tool.math.add($totalCorners, $prd.valueOf("@corners")))
142: 	#end
143: 	$totalCorners
144: #end
145: 
146: #macro (totalSaves $team)
147: 	#set ($runningTotal = 0)
148: 	#foreach ($prd in $team.selectNodes("linescore/lineprd"))
149: 		#set ($runningTotal = $tool.math.add($runningTotal, $prd.valueOf("@saves")))
150: 	#end
151: 	$runningTotal
152: #end
153: 
154: #macro(penaltyTotals $team)
155: 	$team.valueOf("totals/penalty/@red") red cards, 
156: 	$team.valueOf("totals/penalty/@yellow") yellow cards#if ($showFieldHockey),#end
157: 	#if ($showFieldHockey)
158: 		$team.valueOf("totals/penalty/@green") green cards
159: 	#end
160: #end
161: 
162: #macro (printMobileHeader)
163: <div class="teams">
164: 	<div class="frame clearfix">
165: 		<div class="team">
166: 			$visitorNode.attributeValue("name")
167: 		</div>
168: 		<div class="versus">vs.</div>
169: 		<div class="team right">
170: 			$homeNode.attributeValue("name")
171: 		</div>
172: 	</div>
173: </div>
174: 
175: <div class="board">
176: 	<div class="frame clearfix">
177: 		<div class="result">$visitorNode.valueOf("linescore/@score")</div>
178: 		<div class="timer">
179: 			#if ($stats.final)
180: 				<div class="time">Final</div>
181: 			#else 
182: 				<div class="time">$clock - #period($status)</div>
183: 			#end
184: 		</div>
185: 		<div class="result">$homeNode.valueOf("linescore/@score")</div>
186: 	</div>
187: </div>
188: #end
189: 
190: <script type="text/javascript">
191: 	mobileConf.page = 'boxscore';
192: 	mobileConf.pageParams = {
193: 		deepLinking : true
194: 		#if ($stats.inProgress)
195: 			, inprogress : true
196: 		#end
197: 	}
198: </script>
199: 
200: <div class="swipe-header">
201: 	<a href="#" id="swipe-left"></a>
202: 	<a href="#" id="swipe-right"></a>
203: 	<ul class="dot-nav">
204: 		<li class="dot-nav-1 active"></li>
205: 		<li class="dot-nav-2"></li>
206: 		<li class="dot-nav-3"></li>
207: 	</ul>
208: </div>
209: <!-- BEGING SCORE BOARD-->
210: <div id="swipe-wrapper">
211: <div id="live2" #if ($showFieldHockey) class="fh-stats" #else class="soccer-stats" #end>
212:     <div class="swipe-screen" data-view="scoring">
213:         <div class="score_board">
214: 			
215: 			#printMobileHeader()
216: 			
217:             <div class="table">
218:                 <div class="frame">
219:                     <div class="clearfix">
220:                         <div class="cell cell_s">&nbsp;</div>
221:                         <div class="cell cell_m">&nbsp;</div>
222:                         <div class="cell cell_l title">SCORING</div>
223:                         <div class="cell cell_m">&nbsp;</div>
224:                         <div class="cell cell_s">&nbsp;</div>
225:                     </div>
226:                     #foreach ($i in $periodRange)
227:                         <div class="clearfix">
228:                             <div class="cell cell_s">&nbsp;</div>
229:                             <div class="cell cell_m">$visitorNode.valueOf("linescore/lineprd[$i]/@score")</div>
230:                             <div class="cell cell_l">#period($i)</div>
231:                             <div class="cell cell_m">$homeNode.valueOf("linescore/lineprd[$i]/@score")</div>
232:                             <div class="cell cell_s">&nbsp;</div>
233:                         </div>
234:                     #end
235:                     
236:                     <div class="clearfix">
237:                         <div class="cell cell_s">&nbsp;</div>
238:                         <div class="cell cell_m">$visitorNode.valueOf("linescore/@score")</div>
239:                         <div class="cell cell_l">FINAL</div>
240:                         <div class="cell cell_m">$homeNode.valueOf("linescore/@score")</div>
241:                         <div class="cell cell_s">&nbsp;</div>
242:                     </div>
243:                 </div>
244:             </div>
245: 			#if ($lastPlay)
246: 			<div class="recent">
247:                 <div class="frame">
248:                     <div class="toggle clearfix">
249:                         <div class="title">LAST PLAY</div>
250:                         <div class="arrow">
251:                             <img src="/info/mobile/stats/images/arrow_down2.gif" class="recent_arrow_down" width="13" height="9"/>
252:                             <img src="/info/mobile/stats/images/arrow_up2.gif" class="recent_arrow_up" style="display: none;" width="13" height="9"/>
253:                         </div>
254:                     </div>
255: 					<div class="plays recent_plays" style="display: none;">
256: 						<div class="play period">$!lastPlay.attributeValue("text")</div>
257: 					</div>
258:                 </div>
259: 			</div>
260: 			#end
261: 			
262:             <div class="recent">
263:                 <div class="frame">
264:                     <div class="toggle clearfix">
265:                         <div class="title">Scoring Summary</div>
266:                         <div class="arrow">
267: 							<img height="9" width="13" class="recent_arrow_down" src="/info/mobile/stats/images/arrow_down2.gif" style="display: inline;">
268: 							<img height="9" width="13" style="display: none;" class="recent_arrow_up" src="/info/mobile/stats/images/arrow_up2.gif">
269: 						</div>
270:                     </div>
271: 					
272: 					<div class="plays recent_plays" style="display: none;">
273: 						## SCORING SUMMARY
274: 						#foreach ($pd in $periodRange)
275: 							#set ($shownStats = "")
276: 							<div class="play period">
277: 								#period($pd)
278: 							</div>
279: 						
280: 							#foreach ($score in $document.selectNodes("sogame/scores/score"))
281: 								#if ($pd == $score.valueOf("@prd"))
282: 									#set ($shownStats = "y")
283: 									<div class="play clearfix">
284: 										<div class="time">
285: 											$score.valueOf("@time")
286: 										</div>
287: 										<div class="text">
288: 											<b>
289: 											#if
290: 												($score.valueOf("@vh") == 'H') $homeNode.attributeValue("name")
291: 											#end
292: 											#if
293: 												($score.valueOf("@vh") == 'V') $visitorNode.attributeValue("name")
294: 											#end
295: 											</b>&nbsp; - &nbsp;
296: 											#if ($score.valueOf("@type") == 'PP')<i>PP - </i>#end
297: 											#if ($score.valueOf("@type") == 'SH')<i>SH - </i>#end
298: 											#if ($score.valueOf("@type") == 'PS')<i>PS - </i>#end
299: 											#if ($score.valueOf("@engoal") == 'Y')<i>EN - </i>#end
300: 
301: 											#if ($score.valueOf("@playerId").length() > 0 and $linkPlayers)
302: 												<a href="$!linkPlayersBase?id=${score.valueOf("@playerId")}">
303: 											#end
304: 											$score.valueOf("@name")
305: 											#if ($score.valueOf("@playerId").length() > 0 and $linkPlayers)
306: 												</a>
307: 											#end
308: 											
309: 											#set ($scoreLabel = '')
310: 											
311: 											#if ($hasPlayByPlay && $gender == 'F')
312: 												#set ($scoreTime = $score.valueOf("@time"))
313: 												#set ($fpsFlag = false)
314: 												#foreach ($fpsNode in $document.selectNodes("//play[@action='FPS']"))
315: 													#if ($fpsNode.valueOf("@clock") == $scoreTime)
316: 														#set ($fpsFlag = true)
317: 													#end
318: 												#end
319: 												#if ($fpsFlag)
320: 													#set ($scoreLabel = '(Free position shot)')
321: 												#else
322: 													#set ($scoreLabel = '(unassisted)')
323: 												#end
324: 											#else
325: 												#set ($scoreLabel = '(unassisted)')
326: 											#end
327:   
328: 											<i>#if($score.valueOf("@assist1").length() > 0)
329: 												#if ($score.valueOf("@assist1Id").length() > 0 and $linkPlayers)
330: 													<a href="$!linkPlayersBase?id=${score.valueOf("@assist1Id")}">
331: 												#end
332: 												($score.valueOf("@assist1"))
333: 												#if ($score.valueOf("@assist1Id").length() > 0 and $linkPlayers)
334: 													</a>
335: 												#end
336: 											#else 
337: 												$!scoreLabel 
338: 											#end
339: 											
340: 											#if($score.valueOf("@assist2").length() > 0) 
341: 												&amp; 
342: 												#if ($score.valueOf("@assist2Id").length() > 0 and $linkPlayers)
343: 													<a href="$!linkPlayersBase?id=${score.valueOf("@assist2Id")}">
344: 												#end 
345: 												($score.valueOf("@assist2"))
346: 												#if ($score.valueOf("@assist2Id").length() > 0 and $linkPlayers)
347: 													</a>
348: 												#end
349: 											#end</i>
350: 											
351: 											## SHOW GOAL DESCRIPTION
352: 											#if($!score.valueOf("@desc").length() > 0)
353: 												<br />$!score.valueOf("@desc")
354: 											#else
355: 												#set($scoreTime = $score.valueOf("@time"))
356: 												#foreach ($play in $document.selectNodes("sogame/plays/period/play"))
357: 													#if(($play.valueOf("@action") == "PENSHOT") && ($play.valueOf("@clock") == $scoreTime))
358: 														<br />Penalty Kick
359: 													#end
360: 												#end
361: 											#end
362: 										</div>
363: 									</div>
364: 								#end
365: 							#end
366: 							#if ($shownStats == "")
367: 								<div class="play clearfix center">(no scoring)</div>
368: 							#end
369: 						#end
370: 						
371: 						## SHOOTOUT
372: 						#if ($showFieldHockey)
373: 							## Something for field hockey?
374: 						#else
375: 						#set ($shootouts = $document.selectNodes("sogame/shootouts/shootout"))
376: 						#if ($shootouts.size() > 0)
377: 						<div class="play period">SHOOTOUT</div>
378: 							<div class="play clearfix">
379: 								<div class="time">
380: 									<strong>${visitor}:</strong>
381: 								</div>
382: 								<div class="text">
383: 									#shootout($shootouts "V")
384: 								</div>
385: 							</div>
386: 							<div class="play clearfix">
387: 								<div class="time">
388: 									<strong>${home}:</strong>
389: 								</div>
390: 								<div class="text">
391: 									#shootout($shootouts "H")
392: 								</div>
393: 							</div>							
394: 							<div class="play clearfix center">
395: 							## SHOOTOUT RESULT
396: 								#if ($shootoutScores.get("V") > $shootoutScores.get("H"))
397: 									#set ($shootoutResult = ("$visitor wins shootout ${shootoutScores.get('V')} - ${shootoutScores.get('H')}"))
398: 								#else
399: 									#set ($shootoutResult = ("$home wins shootout ${shootoutScores.get('H')} - ${shootoutScores.get('V')}"))
400: 								#end
401: 								
402: 								<strong>$shootoutResult</strong>
403: 							</div>
404: 						#end
405: 						#end ## field hockey or soccer check
406: 					</div>
407: 				</div>
408: 			</div>
409: 		</div>
410: 	</div>
411: 
412: 		<!-- BEGING LINE UP -->
413: 		<div class="swipe-screen" data-view="boxscore">
414: 			#printMobileHeader()
415: 			<div class="team_stats">
416: 				<div class="teams clearfix"> 
417: 					<div id="button-1" class="button clearfix active">
418: 						<div class="team">$visitorNode.attributeValue("name")</div>
419: 						<div class="end">
420: 							<div>&nbsp;</div>
421: 						</div>
422: 					</div>
423: 					<div id="button-2" class="button clearfix">
424: 						<div class="team">$homeNode.attributeValue("name")</div>
425: 						<div class="end">
426: 							<div>&nbsp;</div>
427: 						</div>
428: 					</div>
429: 	
430: 					<!-- BEGING STATS -->
431: 
432: 					#macro (mobile_playerstats $team)
433: 						<div class="titles clearfix">
434: 							<div class="data">#</div>
435: 							<div class="name">PLAYER</div>
436: 							<div class="data">POS</div>
437: 							<div class="data">SH</div>
438:                             <div class="data">SOG</div>
439: 							<div class="data">G</div>
440: 							<div class="data">A</div>
441: 							#if ($showFieldHockey)
442: 								<div class="data">DS</div>
443: 							#end
444: 						</div>
445: 
446: 						#foreach ($stat in $team.selectNodes("player/shots"))
447: 
448: 							<div class="row">
449: 								<div class="toggle clearfix">
450: 									<div class="data">$!stat.valueOf("../@uni")</div>
451: 									<div class="name">
452: 										#if ($stat.valueOf("../@playerId").length() > 0 and $linkPlayers)
453: 											## <a href="$!linkPlayersBase?id=${stat.valueOf("../@playerId")}">
454: 										#end
455: 										$stat.valueOf("../@name")
456: 										#if ($stat.valueOf("../@playerId").length() > 0 and $linkPlayers)
457: 											## </a>
458: 										#end
459: 									</div>
460: 									<div class="data">
461: 										#if ($stat.valueOf("../@pos").length() > 0)
462: 											$stat.valueOf("../@pos")
463: 										#else
464: 											&nbsp;
465: 										#end
466: 									</div>
467: 									<div class="data">$!stat.valueOf("@sh")</div>
468:                                     <div class="data">$!stat.valueOf("@sog")</div>
469: 									<div class="data">$!stat.valueOf("@g")</div>
470: 									<div class="data">$!stat.valueOf("@a")</div>
471:                                     #if ($showFieldHockey)
472: 										<div class="data">$!stat.valueOf("../misc/@dsave")</div>
473: 									#end
474: 								</div>
475: 							</div>
476: 						#end
477: 
478: 						<div class="titles clearfix goalies">
479: 							<div class="data">#</div>
480: 							<div class="name">GOALIES</div>
481: 							<div class="data">SOG</div>
482: 							<div class="data">GA</div>
483: 							<div class="data">SV</div>
484: 							<div class="data">Min</div>	
485: 						</div>
486: 
487: 						#foreach ($stat in $team.selectNodes("player/goalie"))
488: 							<div class="row goalies">
489: 								<div class="toggle clearfix">
490: 									<div class="data">$!stat.valueOf("../@uni")</div>
491: 									<div class="name">
492: 										#if ($stat.valueOf("../@playerId").length() > 0 and $linkPlayers)
493: 											## <a href="$!linkPlayersBase?id=${stat.valueOf("../@playerId")}">
494: 										#end
495: 										$stat.valueOf("../@name")
496: 										#if ($stat.valueOf("../@playerId").length() > 0 and $linkPlayers)
497: 											## </a>
498: 										#end
499: 									</div>
500: 									## #set ($ga = $stat.numberValueOf("@ga") + $stat.numberValueOf("@eng"))
501: 									<div class="data">#shots($stat.valueOf("@ga") $stat.valueOf("@saves"))</div>
502: 									<div class="data">$stat.valueOf("@ga")</div>
503: 									<div class="data">$!stat.valueOf("@saves")</div>
504: 									<div class="data">$!stat.valueOf("@minutes")</div>
505: 								</div>
506: 							</div>
507: 						#end
508: 					#end
509: 
510: 					## VISITOR STATISTICS
511: 					<div class="table hockey" id="table_team_stats_1">#mobile_playerstats($document.selectSingleNode("sogame/team[@vh='V']"))</div>
512: 
513: 					## HOME STATISTICS
514: 					<div class="table hockey" id="table_team_stats_2" style="display: none">#mobile_playerstats($document.selectSingleNode("sogame/team[@vh='H']"))</div>
515: 
516: 					
517: 					<!-- END STATS -->
518: 				</div>
519: 			</div>
520: 		</div>
521: 		<!-- END LINE UP -->
522: 		<!-- BEGING TEAM STATS -->
523: 		<div class="swipe-screen" data-view="summary">
524: 			#printMobileHeader()
525: 			<div class="line_up">
526: 				<div class="table">
527: 					<div class="frame">
528: 						
529: 						#if (! $isDakStats)
530: 						<div class="clearfix">
531: 							<div class="cell cell_s">&nbsp;</div>
532: 							<div class="cell cell_m">&nbsp;</div>
533: 							<div class="cell cell_l title">SHOTS</div>
534: 							<div class="cell cell_m">&nbsp;</div>
535: 							<div class="cell cell_s">&nbsp;</div>
536: 						</div>
537:                         #foreach ($i in $periodRange)
538:                             <div class="clearfix">
539:                                 <div class="cell cell_s">&nbsp;</div>
540:                                 <div class="cell cell_m">$visitorNode.valueOf("linescore/lineprd[$i]/@shots")</div>
541:                                 <div class="cell cell_l">#period($i)</div>
542:                                 <div class="cell cell_m">$homeNode.valueOf("linescore/lineprd[$i]/@shots")</div>
543:                                 <div class="cell cell_s">&nbsp;</div>
544:                             </div>
545:                         #end
546: 						#end
547:                         
548: 						<div class="clearfix">
549: 							<div class="cell cell_s">&nbsp;</div>
550: 							#if ($isDakStats)
551: 								<div class="cell cell_m">$visitorNode.valueOf('totals/shots/@sh')</div>
552: 								<div class="cell cell_l title">SHOTS</div>
553: 								<div class="cell cell_m">$homeNode.valueOf('totals/shots/@sh')</div>
554: 							#else
555: 								<div class="cell cell_m">$visitorNode.valueOf("linescore/@shots")</div>
556: 								<div class="cell cell_l">TOTAL</div>
557: 								<div class="cell cell_m">$homeNode.valueOf("linescore/@shots")</div>
558: 							#end
559: 							<div class="cell cell_s">&nbsp;</div>
560: 						</div>
561:                         
562: 						##SAVES
563: 						<div class="clearfix">
564: 							<div class="cell cell_s">&nbsp;</div>
565: 							<div class="cell cell_m">$visitorNode.valueOf("totals/goalie/@saves")</div>
566: 							<div class="cell cell_l title">SAVES</div>
567: 							<div class="cell cell_m">$homeNode.valueOf("totals/goalie/@saves")</div>
568: 							<div class="cell cell_s">&nbsp;</div>
569: 						</div>
570: 						
571: 						##Corner Kicks
572: 						<div class="clearfix">
573: 							<div class="cell cell_s">&nbsp;</div>
574: 							<div class="cell cell_m">#totalCorners($visitorNode)</div>
575: 							<div class="cell cell_l title">
576: 								#if ($showFieldHockey)
577: 									PENALTY CORNERS
578: 								#else
579: 									CORNER KICKS
580: 								#end
581: 							</div>
582: 							<div class="cell cell_m">#totalCorners($homeNode)</div>
583: 							<div class="cell cell_s">&nbsp;</div>
584: 						</div>
585: 						
586:                         ##Fouls                        
587: 						<div class="clearfix">
588: 							<div class="cell cell_s">&nbsp;</div>
589: 							<div class="cell cell_m">$visitorNode.valueOf("totals/penalty/@fouls")</div>
590: 							<div class="cell cell_l title">FOULS</div>
591: 							<div class="cell cell_m">$homeNode.valueOf("totals/penalty/@fouls")</div>
592: 							<div class="cell cell_s">&nbsp;</div>
593: 						</div>
594: 						
595: 						 ##PENALTY TOTALS                        
596: 						<div class="clearfix">
597: 							<div class="cell cell_s">&nbsp;</div>
598: 							<div class="cell cell_m">#penaltyTotals($visitorNode)</div>
599: 							<div class="cell cell_l title">PENALTY TOTALS</div>
600: 							<div class="cell cell_m">#penaltyTotals($homeNode)</div>
601: 							<div class="cell cell_s">&nbsp;</div>
602: 						</div>
603: 					
604: 					</div>
605:             
606:                     <div class="recent">
607:                         <div class="frame">
608:                             <div class="toggle clearfix">
609:                                 <div class="play title">
610: 									Cautions and Ejections
611:                                      <div class="arrow">
612:                                         <img src="/info/mobile/stats/images/arrow_down2.gif" class="recent_arrow_down" width="13" height="9"/>
613:                                         <img src="/info/mobile/stats/images/arrow_up2.gif" class="recent_arrow_up" style="display: none;" width="13" height="9"/>
614:                                     </div>
615:                                 </div>
616:                             </div>
617:                                 <div class="recent_plays plays" style="display: none;">
618:                                     #foreach ($pd in $periodRange)
619:                                         #set ($shownStats = "")
620:                                         <div class="play period">#period($pd)</div>
621:                                         #foreach ($penalty in $document.selectNodes("sogame/penalties/pen"))
622:                                             #if ($pd == $penalty.valueOf("@prd"))
623:                                                 #set ($shownStats = "y")
624:                                                 <div class="play clearfix">
625:                                                     <div class="time">$penalty.valueOf("@time")</div>
626:                                                     <div class="text">
627:                                                         <b>
628:                                                             #if($penalty.valueOf("@vh") == 'H') $homeNode.attributeValue("name") #end
629:                                                             #if($penalty.valueOf("@vh") == 'V') $visitorNode.attributeValue("name") #end
630:                                                         </b> &nbsp; - &nbsp; 
631: 														#if ($penalty.valueOf("@type").length() > 0)
632: 															#if ($penalty.valueOf("@type").contains('GREEN'))<i>Green card - </i>#end
633: 															#if ($penalty.valueOf("@type").contains('YELLOW'))<i>Yellow card - </i>#end
634: 															#if ($penalty.valueOf("@type").contains('RED'))<i>Red card - </i>#end
635: 														#end
636:                                                         $penalty.valueOf("@name") $!penalty.valueOf("@desc")
637:                                                     </div>
638:                                                 </div>
639:                                             #end
640:                                         #end
641:                                         #if ($shownStats == "")
642:                                             <div class="row sub_title"><i>No penalties</i></div>
643:                                         #end
644:                                     #end
645:                                 </div>
646:                         </div>
647:                     </div>
648: 
649:                     <div class="recent">
650:                         <div class="frame">
651:                             <div class="other">
652:                                 <div class="toggle clearfix">
653:                                     <div class="row title">
654:                                         Other Information
655:                                          <div class="arrow">
656:                                             <img src="/info/mobile/stats/images/arrow_down2.gif" class="recent_arrow_down" width="13" height="9"/>
657:                                             <img src="/info/mobile/stats/images/arrow_up2.gif" class="recent_arrow_up" style="display: none;" width="13" height="9"/>
658:                                         </div>
659:                                     </div>
660:                                 </div>
661:                                 
662:                                 <div class="recent_plays plays" style="display: none;">
663:                                     <div class="row clearfix">
664:                                         <div class="data">Stadium</div>
665:                                         <div class="text">$document.valueOf("sogame/venue/@stadium")</div>
666:                                     </div>
667: 									<div class="row clearfix">
668:                                         <div class="data">Location</div>
669:                                         <div class="text">$document.valueOf("sogame/venue/@location")</div>
670:                                     </div>
671: 									#if($schedNote.length() > 0)
672: 									<div class="row clearfix">
673:                                         <div class="data">Note</div>
674:                                         <div class="text">$schedNote</div>
675:                                     </div>
676: 									#end									
677:                                     <div class="row clearfix">
678:                                         <div class="data">Game Length</div>
679:                                         <div class="text">$document.valueOf("sogame/venue/@duration")</div>
680:                                     </div>
681:                                     <div class="row clearfix">
682:                                         <div class="data">Attendance</div>
683:                                         <div class="text">$document.valueOf("sogame/venue/@attend")</div>
684:                                     </div>
685:                                         <div class="row title">Officials and game personnel</div>
686:                                     #foreach ($official in $document.selectNodes("sogame/venue/officials/official"))
687:                                         <div class="row clearfix">
688:                                             <div class="data">$official.valueOf("@title")</div>
689:                                             <div class="text">$official.valueOf("@name")</div>
690:                                         </div>
691:                                     #end
692:                                 </div>
693:                             </div>
694:                         </div>
695:                     </div>
696: 				</div>
697: 			</div>
698: 		</div>
699: 	</div>
700: </div>
701: 
702: #set ($showWiki = true)
703: #set ($showWiki = $showWikiVar)
704: 
705: #if ($showWiki == true)
706: 	$!wiki.su 
707: #end
708: 
709: 
710: 
711: #else
712: ##WEBSITE VERSION
713: 
714: 
715: #set ($showWiki = true)
716: #set ($showWiki = $showWikiVar)
717: 
718: #if ($showWiki == true)
719: 	$!wiki.su 
720: #end
721: 
722: <head>
723: <title>$visname #if($isNeutralGame)vs.#else at #end $homename | Box Score #if($date.length() > 0)| $date #end</title>
724: 
725: #if ($stats.inProgress)
726: <meta http-equiv="refresh" content="60">
727: #end
728: </head>
729: 
730: 
731: <div class="stats-wrapper clearfix">
732: 
733: 
734: ## GAME INFORMATION
735: <div class="align-center">
736: 	<strong>$visitor vs. $home</strong> at $document.valueOf("sogame/venue/@location")<br />
737: 	$document.valueOf("sogame/venue/@date") at $document.valueOf("sogame/venue/@start")<br />
738: 	$document.valueOf("sogame/venue/@schednote")
739: </div>
740: <br />
741: 
742: ## TEAM SCORES
743: <table class="all-center">
744:   <tr>
745:     #foreach ($team in $document.selectNodes("sogame/team"))
746:      <td>
747:      #if ($team.attributeValue("teamId").length() > 0 and $linkTeams)
748:      <a href="$!linkTeamsBase?id=${team.attributeValue("teamId")}">
749:      #end
750:      <span class="stats-header">$team.attributeValue("name")</span>
751:      #if ($team.attributeValue("teamId").length() > 0 and $linkTeams)
752:      </a>
753:      #end
754:      <br /><span class="stats-header">$team.valueOf("linescore/@score")</span>
755:      </td>
756:     #end
757:   </tr>
758: </table>
759: 
760: ## PERIOD SUMMARY
761: <div class="stats-fullbox clearfix">
762: <table>
763: 	<tr>
764: 		<th>SCORING</th>
765: 		#printPeriods()
766: 		<th style="width:60px">
767: 			#if ($stats.final)
768: 				FINAL
769: 			#elseif ($stats.inProgress)
770: 				$!clock
771: 			#end
772: 		</th>
773: 	</tr>
774: 
775: 	#foreach ($team in $document.selectNodes("sogame/team"))
776: 	<tr>
777: 		#if ($team.valueOf("@record").length() > 0)
778: 		<td>$team.valueOf("@name") ($team.valueOf("@record"))</td>
779: 		#else
780: 		<td>$team.valueOf("@name")</td>
781: 		#end
782: 		#foreach ($prd in $team.selectNodes("linescore/lineprd"))
783: 		<td class="align-center">$prd.valueOf("@score")</td>
784: 		#end
785: 		<td class="align-center">$team.valueOf("linescore/@score")</td>
786: 	</tr>
787: 	#end
788: </table>
789: </div>
790: ## PERIOD SUMMARY END
791: 
792: #if ($stats.pageUrl.length() > 0 && !$stats.pageUrl.contains("?"))
793: 	#set ($paramSep = "?")
794: #else
795: 	#set ($paramSep = "&")
796: #end
797: 
798: ## TABS
799: <div class="stats-tabs clearfix">
800: <ul class="clearfix">
801: 	<li #if (!($stats.view.length() > 0) || $stats.view == "boxscore") class="active" #end><a href="${stats.pageUrl}" data-view="boxscore">Box Score</a></li>
802: 	#if ($hasPlayByPlay)
803: 	  <li #if ($stats.view == "plays") class="active" #end><a href="${stats.pageUrl}${paramSep}view=plays" data-view="plays" id="pbp">Play by Play</a></li>
804: 	#end
805: 	<li><a href="$stats.pageUrl${paramSep}tmpl=soxml-monospace-template" target="_blank">Coach's View</a></li>
806: 	#*
807: 	#if ($showFieldHockey)
808: 		<li><a href="$stats.pageUrl${paramSep}tmpl=fhxml-monospace-template" target="_blank">Coach's View</a></li>
809: 	#else
810: 		<li><a href="$stats.pageUrl${paramSep}tmpl=soxml-monospace-template" target="_blank">Coach's View</a></li>
811: 	#end
812: 	*#
813: </ul>
814: </div>
815: ## TABS END
816: 
817: #if ($stats.view == "plays" && $hasPlayByPlay)
818: ## PLAY BY PLAY
819: 
820: #macro (printPlays $prd)
821:   #set ($prdCount = $prd.valueOf("@number")) 
822:   <tr><th colspan="2"><span id="prd${prdCount}">#period($prdCount)</span></th></tr>
823:   <tr class="stats-highlight">
824:     <td class="align-center"><span class="bold">Time</span></td>
825:     <td class="align-center"><span class="bold">Play</span></td>
826:   </tr>
827:   #set ($i = 0)
828:   #set ($playNodes = $prd.selectNodes("*"))
829:   #foreach ($play in $playNodes)
830:     #set ($nodeName = $play.getName())
831:     #if ($nodeName == "play" && !$play.valueOf("@action").equalsIgnoreCase("goalmsg"))
832:       #set ($i = $i + 1)
833:       #if ($i % 2 == 0)
834:         #set ($row = "even")
835:       #else
836:         #set ($row = "odd")
837:       #end
838: 	  
839: 	  #if ($play.valueOf("@action").equalsIgnoreCase("goal"))
840: 	  <tr class="${row} highlight bold">
841:         <td class="align-center">$play.valueOf("@clock")</td>
842: 		#set ($printValue = $play.valueOf("@text"))
843: 		#if ($playNodes.get($tool.math.add($velocityCount, 1)))
844: 		  #set ($goalMsg = $playNodes.get($tool.math.add($velocityCount, 1)).valueOf("@text"))
845: 		  #set ($printValue = "${printValue} ${goalMsg}")
846: 		#end
847:         <td>$printValue</td>
848:       </tr>
849: 	  #elseif ($play.valueOf("@action").equalsIgnoreCase("shootout"))
850:      #if(!$shootoutHeader)<tr><th colspan="2">SHOOTOUT</th></tr>#end
851: 	 #set($shootoutHeader = "true")
852: 	  <tr class="${row}">
853:         <td class="align-center"></td>
854:         <td>$play.valueOf("@text")</td>
855:       </tr>
856: 	  #else
857: 	  <tr class="${row}">
858:         <td class="align-center">$play.valueOf("@clock")</td>
859:         <td>$play.valueOf("@text")</td>
860:       </tr>	  
861: 	  #end
862:     #elseif ($nodeName == "currentscore")
863:       <tr class="stats-highlight">
864:         <td colspan="2" class="align-center bold">Score: $visitor $play.valueOf("@vscore") - $home $play.valueOf("@hscore")</td>
865:       </tr>
866:     #end
867: #end
868: #end ## ends printPlays
869: 
870: <div class="stats-fullbox clearfix">
871: <table>
872: <tr>
873: <td colspan="2">
874: <span class="bold">Period: </span>
875: #foreach ($p in [1..$document.selectNodes("sogame/plays/period").size()])
876: #if ($velocityCount > 1) | #end
877: <a href="#prd${p}">#period($p)</a>
878: #end
879: </td>
880: </tr>
881: #foreach ($playPeriod in $document.selectNodes("sogame/plays/period"))
882: #printPlays ($playPeriod)
883: #end
884: </table>
885: </div>
886: 
887: #else
888: ## BOX SCORE
889: 
890: ## SCORING SUMMARY
891: <div class="stats-fullbox clearfix">
892: <table>
893: 	<tr><th colspan="4">Scoring Summary</th></tr>
894: #foreach ($pd in $periodRange)
895: 	#set ($shownStats = "")
896: 	<tr class="stats-highlight"><td colspan="4" class="align-center bold">-- #period($pd) -- </td></tr>
897: 
898: 	#foreach ($score in $document.selectNodes("sogame/scores/score"))
899: 	#if ($pd == $score.valueOf("@prd"))
900: 	#set ($shownStats = "y")
901: 	<tr>
902: 		<td>
903: 		#if($score.valueOf("@vh") == 'H') $home #end
904: 		#if($score.valueOf("@vh") == 'V') $visitor #end
905: 		</td>
906: 		<td>$score.valueOf("@time")</td>
907: 		<td>
908: 		#if ($score.valueOf("@playerId").length() > 0 and $linkPlayers)
909: 		<a href="$!linkPlayersBase?id=${score.valueOf("@playerId")}">
910: 		#end
911: 		$score.valueOf("@name")
912: 		#if ($score.valueOf("@playerId").length() > 0 and $linkPlayers)
913: 		</a>
914: 		#end
915: 
916: 		#if ($score.valueOf("@seasong").length() > 0) (${score.valueOf("@seasong")}) #end
917: 
918: 		#if($score.valueOf("@assist1").length() > 0)
919: 		#if ($score.valueOf("@assist1Id").length() > 0 and $linkPlayers)<a href="$!linkPlayersBase?id=${score.valueOf("@assist1Id")}">#end
920: 		#if ($score.valueOf("@assist2").length() > 0)
921: 		($score.valueOf("@assist1")
922: 		#else
923: 		($score.valueOf("@assist1"))
924: 		#end
925: 		#if ($score.valueOf("@assist1Id").length() > 0 and $linkPlayers)</a>#end
926: 		#else
927: 		(unassisted)
928: 		#end
929: 		#if($score.valueOf("@assist2").length() > 0)
930: 		&amp; 
931: 		#if ($score.valueOf("@assist2Id").length() > 0 and $linkPlayers)<a href="$!linkPlayersBase?id=${score.valueOf("@assist2Id")}">#end
932: 		$score.valueOf("@assist2"))
933: 		#if ($score.valueOf("@assist2Id").length() > 0 and $linkPlayers)</a>#end
934: 		#end
935: 		</td>
936: 		#if ($showGoalDesc)
937: 		<td>
938: 			#if($!score.valueOf("@desc").length() > 0)
939: 				$!score.valueOf("@desc")
940: 			#else
941: 				#set($scoreTime = $score.valueOf("@time"))
942: 				#foreach ($play in $document.selectNodes("sogame/plays/period/play"))
943: 					#if(($play.valueOf("@action") == "PENSHOT") && ($play.valueOf("@clock") == $scoreTime))
944: 						Penalty Kick
945: 					#end
946: 				#end
947: 			#end
948: 		</td>
949: 		#end
950: 	</tr>
951: 	#end ## if
952: 	#end ## scoring foreach
953: 
954: 	#if ($shownStats == "") 
955: 	<tr><td colspan="4" class="align-center">(no scoring)</td></tr>
956: 	#end
957: #end ## period range
958: 
959: 	## SHOOTOUT
960: 	#if ($showFieldHockey)
961: 		## Something for field hockey?
962: 	#else
963: 	#set ($shootouts = $document.selectNodes("sogame/shootouts/shootout"))
964: 	#if ($shootouts.size() > 0)
965: 	<tr>
966: 		<th colspan="4">SHOOTOUT</th>
967: 	</tr>
968: 	<tr>
969: 		<td colspan="4">
970: 		<strong>${visitor}:</strong>
971: 		#shootout($shootouts "V")
972: 		<br />
973: 		<strong>${home}:</strong>
974: 		#shootout($shootouts "H")
975: 		<br />
976: 		#if ($shootoutScores.get("V") > $shootoutScores.get("H"))
977: 			#set ($shootoutResult = ("$visitor wins shootout ${shootoutScores.get('V')} - ${shootoutScores.get('H')}"))
978: 		#else
979: 			#set ($shootoutResult = ("$home wins shootout ${shootoutScores.get('H')} - ${shootoutScores.get('V')}"))
980: 		#end
981: 		<strong>$shootoutResult</strong>
982: 		</td>
983: 	</tr>
984: 	#end
985: 	#end ## field hockey or soccer check
986: </table>
987: </div>
988: ## SCORING SUMMARY END
989: 
990: 
991: ## TEAM SUMMARY
992: #macro (playerstats $team)
993: <table>
994: 	<tr><td class="align-center" colspan="#if ($showFieldHockey) 9 #else 8 #end"><h4>$team.valueOf("@name")</h4></td></tr>
995: 	<tr>
996: 		<th class="align-left">#</th>
997: 		<th>PLAYER</th>
998: 		<th>POS</th>
999: 		<th>SH</th>
1000: 		<th>SOG</th>
1001: 		<th>G</th>
1002: 		<th>A</th>
1003: 		#if ($showFieldHockey)<th>DS</th>#end
1004: 	</tr>
1005: 
1006: 	#foreach ($stat in $team.selectNodes("player/shots"))
1007: 	
1008: 	#if ($velocityCount % 2 == 0)
1009: 		#set ($row = "even")
1010: 	#else
1011: 		#set ($row = "odd")
1012: 	#end
1013: 	
1014: 	<tr class="$row">
1015: 		<td>$!stat.valueOf("../@uni")</td>
1016: 		<td class="nowrap">
1017: 		#if ($stat.valueOf("../@playerId").length() > 0 and $linkPlayers)
1018: 		<a href="$!linkPlayersBase?id=${stat.valueOf("../@playerId")}">
1019: 		#end
1020: 		$stat.valueOf("../@name")
1021: 		#if ($stat.valueOf("../@playerId").length() > 0 and $linkPlayers)
1022: 		</a>
1023: 		#end
1024: 		#if ($stat.valueOf("../@gs") == "1")
1025: 		*
1026: 		#end
1027: 		</td>
1028: 		<td class="align-center">$stat.valueOf("../@pos")</td>
1029: 		<td class="align-center">$!stat.valueOf("@sh")</td>
1030: 		<td class="align-center">$!stat.valueOf("@sog")</td>
1031: 		<td class="align-center">$!stat.valueOf("@g")</td>
1032: 		<td class="align-center">$!stat.valueOf("@a")</td>
1033: 		#if ($showFieldHockey)<td class="align-center">$!stat.valueOf("../misc/@dsave")</td>#end
1034: 	</tr>
1035: 	#end
1036: 	
1037: 	<tr class="stats-highlight totals">
1038: 		<td colspan="3">TOTALS</td>
1039: 		#set ($statTotals = $team.selectSingleNode("totals/shots"))
1040: 		<td class="align-center">$!statTotals.valueOf("@sh")</td>
1041: 		<td class="align-center">$!statTotals.valueOf("@sog")</td>
1042: 		<td class="align-center">$!statTotals.valueOf("@g")</td>
1043: 		<td class="align-center">$!statTotals.valueOf("@a")</td>
1044: 		#if ($showFieldHockey)<td class="align-center">$!statTotals.valueOf("../misc/@dsave")</td>#end
1045: 	</tr>
1046: 
1047: 	<tr>
1048: 		<th>#</th>
1049: 		<th>GOALIES</th>
1050: 		<th #if ($showFieldHockey) colspan="2" #end>&nbsp;</th>
1051: 		<th>SOG</th>
1052: 		<th>GA</th>
1053: 		<th>SV</th>
1054: 		<th>Min</th>
1055: 	</tr>
1056: 
1057: 	#foreach ($stat in $team.selectNodes("player/goalie"))
1058: 	<tr>
1059: 		<td>$!stat.valueOf("../@uni")</td>
1060: 		<td class="nowrap">
1061: 		#if ($stat.valueOf("../@playerId").length() > 0 and $linkPlayers)
1062: 		<a href="$!linkPlayersBase?id=${stat.valueOf("../@playerId")}">
1063: 		#end
1064: 		$stat.valueOf("../@name")
1065: 		#if ($stat.valueOf("../@playerId").length() > 0 and $linkPlayers)
1066: 		</a>
1067: 		#end
1068: 		
1069: 		#if($stat.valueOf("@win").length() > 0)<span>(W, $stat.valueOf("@win"))</span>#end
1070: 		#if($stat.valueOf("@loss").length() > 0)<span>(L, $stat.valueOf("@loss"))</span>#end
1071: 		#if($stat.valueOf("@tie").length() > 0)<span>(T, $stat.valueOf("@tie"))</span>#end
1072: 		</td>
1073: 		<td class="align-center" #if ($showFieldHockey) colspan="2" #end>$!formatter.formatNumber($ga, "#")</td>
1074: 		<td class="align-center">#shots($stat.valueOf("@ga") $stat.valueOf("@saves"))</td>
1075: 		<td class="align-center">$stat.valueOf("@ga")</td>
1076: 		<td class="align-center">$!stat.valueOf("@saves")</td>
1077: 		<td class="align-center">$!stat.valueOf("@minutes")</td>
1078: 	</tr>
1079: 	#end
1080: 	
1081: 	#if ($team.selectNodes("player/goalie").size() > 1) ## if more than one goalie appeared show totals
1082: 	<tr class="stats-highlight totals">
1083: 		<td colspan="#if ($showFieldHockey) 3 #else 2 #end">TOTALS</td>
1084: 		#set ($goalieTotals = $team.selectSingleNode("totals/goalie"))
1085: 		<td class="align-center">$!formatter.formatNumber($goalieTotals.valueOf("@ga"), "#")</td>
1086: 		<td class="align-center">#shots($goalieTotals.valueOf("@ga") $goalieTotals.valueOf("@saves"))</td>
1087: 		<td class="align-center">$!goalieTotals.valueOf("@ga")</td>
1088: 		<td class="align-center">$!goalieTotals.valueOf("@saves")</td>
1089: 		<td class="align-center">$!goalieTotals.valueOf("@minutes")</td>
1090: 	</tr>
1091: 	#end
1092: </table>
1093: #end ##macro
1094: 
1095: 
1096: <div class="clearfix">
1097: ## VISITOR STATISTICS
1098: <div class="stats-halfbox-left">#playerstats($document.selectSingleNode("sogame/team[@vh='V']"))</div>
1099: ## HOME STATISTICS
1100: <div class="stats-halfbox-right">#playerstats($document.selectSingleNode("sogame/team[@vh='H']"))</div>
1101: </div>
1102: 
1103: #if ($isDakStats)
1104: 
1105: <div class="stats-fullbox details clearfix">
1106: 	<table class="all-center"><tbody><tr>
1107: 		<th style="width:33%">#showTeam($visitorNode)</th>
1108: 		<th style="width:34%">Team Statistics</th>
1109: 		<th>#showTeam($homeNode)</th>
1110: 	</tr>
1111: 	<tr class="odd">
1112: 		<td>$visitorNode.valueOf('totals/shots/@sh')</td>
1113: 		<td class="totals">SHOTS</td>
1114: 		<td>$homeNode.valueOf('totals/shots/@sh')</td>    
1115: 	</tr>
1116: 	<tr class="even">
1117: 		##<td>#totalSaves($visitorNode)</td>
1118: 		<td>$visitorNode.valueOf("totals/goalie/@saves")</td>
1119: 		<td class="totals">SAVES</td>
1120: 		##<td>#totalSaves($homeNode)</td>    
1121: 		<td>$homeNode.valueOf("totals/goalie/@saves")</td>
1122: 	</tr>
1123: 	<tr class="odd">
1124: 		<td>#totalCorners($visitorNode)</td>
1125: 		<td class="totals">#if ($showFieldHockey) PENALTY CORNERS #else CORNER KICKS #end</td>
1126: 		<td>#totalCorners($homeNode)</td>    
1127: 	</tr>
1128: 	<tr class="even">
1129: 		<td>$visitorNode.valueOf("totals/penalty/@fouls")</td>
1130: 		<td class="totals">FOULS</td>
1131: 		<td>$homeNode.valueOf("totals/penalty/@fouls")</td>    
1132: 	</tr>
1133: </tbody></table>
1134: </div>
1135: 
1136: #else
1137: 
1138: <div class="clearfix">
1139: ## SHOTS BY PERIOD
1140: <div class="stats-halfbox-left">
1141: <table>
1142: 	<tr>
1143: 		<th>SHOTS</th>
1144: 		#printPeriods()
1145: 		<th style="width:50px">TOTAL</th>
1146: 	</tr>
1147: 
1148: 	#foreach ($team in $document.selectNodes("sogame/team"))
1149: 	<tr>
1150: 		<td>$team.valueOf("@name")</td>
1151: 		#foreach ($prd in $team.selectNodes("linescore/lineprd"))
1152: 			<td class="align-center">$prd.valueOf("@shots")</td>
1153: 		#end
1154: 		<td class="align-center">$team.valueOf("linescore/@shots")</td>
1155: 	</tr>
1156: 	#end
1157: </table>
1158: </div>
1159: ## SHOTS BY PERIOD END
1160: 
1161: ## SAVES
1162: <div class="stats-halfbox-right">
1163: <table>
1164: 	<tr>
1165: 		<th>SAVES</th>
1166: 		#printPeriods()
1167: 		<th style="width:50px">TOTAL</th>
1168: 	</tr>
1169: 
1170: 	#foreach ($team in $document.selectNodes("sogame/team"))
1171: 	#set ($runningTotal = 0)
1172: 	<tr>
1173: 		<td>$team.valueOf("@name")</td>
1174: 		#foreach ($prd in $team.selectNodes("linescore/lineprd"))
1175: 		<td class="align-center">$prd.valueOf("@saves")</td>
1176: 		#set ($runningTotal = $tool.math.add($runningTotal, $prd.valueOf("@saves")))
1177: 		#end
1178: 		<td class="align-center">$runningTotal</td>
1179: 	</tr>
1180: 	#end
1181: </table>
1182: </div>
1183: ## SAVES END
1184: </div>
1185: 
1186: <div class="clearfix">
1187: <div class="stats-halfbox-left">
1188: <table>
1189: #if ($showFieldHockey)
1190: ## PERIOD SUMMARY - PENALTY CORNERS
1191: 	<tr>
1192: 		<th>PENALTY CORNERS</td>
1193: 		#printPeriods()
1194: 		<th style="width:50px">TOTAL</th>
1195: 	</tr>
1196: 
1197: 	## team corners, which have to be manually added up
1198: 	#foreach ($team in $document.selectNodes("sogame/team"))
1199: 	#set ($totalCorners = 0)
1200: 	<tr>
1201: 		<td>$team.attributeValue("name")</td>
1202: 		#foreach ($prd in $team.selectNodes("linescore/lineprd"))
1203: 		#set ($totalCorners = $tool.math.add($totalCorners, $prd.valueOf("@corners")))
1204: 		<td class="align-center">$prd.valueOf("@corners")</td>
1205: 		#end
1206: 		<td class="align-center">$totalCorners</td>
1207: 	</tr>
1208: 	#end
1209: #else
1210: ## PERIOD SUMMARY - CORNER KICKS
1211: 	<tr>
1212: 		<th>CORNER KICKS</th>
1213: 		#printPeriods()
1214: 		<th style="width:50px">TOTAL</th>
1215: 	</tr>
1216: 
1217: 	## team corners, which have to be manually added up
1218: 	#foreach ($team in $document.selectNodes("sogame/team"))
1219: 	#set ($totalCorners = 0)
1220: 	<tr>
1221: 		<td>$team.attributeValue("name")</td>
1222: 		#foreach ($prd in $team.selectNodes("linescore/lineprd"))
1223: 		#set ($totalCorners = $tool.math.add($totalCorners, $prd.valueOf("@corners")))
1224: 		<td class="align-center">$prd.valueOf("@corners")</td>
1225: 		#end
1226: 		<td class="align-center">$totalCorners</td>
1227: 	</tr>
1228: 	#end
1229: #end
1230: </table>
1231: </div>
1232: 
1233: 
1234: ## FOULS BY PERIOD
1235: <div class="stats-halfbox-right">
1236: <table>
1237: 	<tr>
1238: 		<th>FOULS</th>
1239: 		#printPeriods()
1240: 		<th>TOTAL</th>
1241: 	</tr>
1242: 
1243: 	#foreach ($team in $document.selectNodes("sogame/team"))
1244: 	<tr>
1245: 		<td>$team.attributeValue("name")</td>
1246: 		#foreach ($prd in $team.selectNodes("linescore/lineprd"))
1247: 		<td class="align-center">$prd.valueOf("@fouls")</td>
1248: 		#end
1249: 		<td class="align-center">$team.valueOf("totals/penalty/@fouls")</td>
1250: 	</tr>
1251: 	#end
1252: </table>
1253: </div>
1254: 
1255: </div>
1256: 
1257: 
1258: #end
1259: 
1260: ## PENALTY SUMMARY
1261: <div class="stats-fullbox clearfix">
1262: <table>
1263: 	<tr><th colspan="3">#if ($showFieldHockey)Player Cards #else Cautions and Ejections Summary #end</th></tr>
1264: 	#foreach ($pd in $periodRange)
1265: 	#set ($shownStats = "")
1266: 	<tr class="stats-highlight"><td colspan="3" class="align-center bold">-- #period($pd) -- </td></tr>
1267: 	#foreach ($penalty in $document.selectNodes("sogame/penalties/pen"))
1268: 	#if ($pd == $penalty.valueOf("@prd"))
1269: 	#set ($shownStats = "y")
1270: 	<tr>
1271: 		<td>
1272: 		#if($penalty.valueOf("@vh") == 'H') $home #end
1273: 		#if($penalty.valueOf("@vh") == 'V') $visitor #end
1274: 		</td>
1275: 		<td>$penalty.valueOf("@time")</td>
1276: 		<td>
1277: 		
1278: 		#if ($penalty.valueOf("@type").length() > 0)
1279: 		
1280: 			#if ($penalty.valueOf("@type").contains('GREEN'))<span class="italic">Green card - </span>#end
1281: 			#if ($penalty.valueOf("@type").contains('YELLOW'))<span class="italic">Yellow card - </span>#end
1282: 			#if ($penalty.valueOf("@type").contains('RED'))<span class="italic">Red card - </span>#end
1283: 			
1284: 		#end
1285: 		
1286: 	
1287: 		$penalty.valueOf("@name")#if ($!penalty.valueOf("@desc").length() > 0): $!penalty.valueOf("@desc")#end
1288: 
1289: 		</td>
1290: 	</tr>
1291: 	#end ## if
1292: 	#end ## penalty foreach
1293: 	
1294: 	#if ($shownStats == "")
1295: 	<tr><td colspan="3" class="align-center">(no penalties)</td></tr>
1296: 	#end
1297: 	#end ## period range
1298: 
1299: 	## penalty minutes
1300: 	<tr><th colspan="3">Penalty Totals</th></tr>
1301: 	<tr>
1302: 		<td colspan="3">
1303: 		<table width="100%">
1304: 		<tr>
1305: 		#foreach ($team in $document.selectNodes("sogame/team"))
1306: 			<td><span class="bold">$team.attributeValue("name")</span>: $team.valueOf("totals/penalty/@red") red cards, $team.valueOf("totals/penalty/@yellow") yellow cards,
1307: 			#if ($showFieldHockey)
1308: 			$team.valueOf("totals/penalty/@green") green cards,
1309: 			#end
1310: 			and  $team.valueOf("totals/penalty/@fouls") fouls.</td>
1311: 		#end
1312: 		</tr>
1313: 		</table>
1314: 		</td>
1315: 	</tr>
1316: </table>
1317: </div>
1318: 
1319: 
1320: ## OTHER INFORMATION
1321: <div class="stats-fullbox summary clearfix">
1322: <table>
1323:  <tr><th>Other Information</th></tr>
1324:  <tr>
1325:   <td>
1326:     <strong>Stadium:</strong> $document.valueOf("sogame/venue/@stadium")<br />
1327: 	<strong>Game Length:</strong> $document.valueOf("sogame/venue/@duration")<br />
1328:     <strong>Attendance:</strong> $document.valueOf("sogame/venue/@attend")<br />
1329:     #foreach ($official in $document.selectNodes("sogame/venue/officials/official"))
1330:     <strong>$official.valueOf("@title"):</strong> $official.valueOf("@name")<br />
1331:     #end
1332:   </td>
1333:  </tr>
1334: </table>
1335: </div>
1336: 
1337: <div class="legend">* Starter</div>
1338: 
1339: #end  ## VIEW CHECK
1340: </div>
1341: 
1342: #set ($showWiki = true)
1343: #set ($showWiki = $showWikiVar)
1344: 
1345: #if ($showWiki == true)
1346: 	$!wiki.su 
1347: #end
1348: 
1349: ## CORRECT WRONG VIEW WITH REPLACESTATE
1350: <script type="text/javascript">
1351: 	$(function(){
1352: 		if (! $('.stats-tabs li.active').length) {
1353: 			if (history.replaceState) {
1354: 				history.replaceState({}, '', '?view=' + $('.stats-tabs li:first').addClass('active').children('a').data('view'));
1355: 			} else {
1356: 				$('.stats-tabs li:first').addClass('active');
1357: 			}
1358: 		}
1359: 	})
1360: </script>
1361: 
1362: #end

View: Mobile | Desktop