Men's Lacrosse Box Score (Final)
Concordia Wisconsin at Wittenberg
(3/5/2011 at 3 p.m. at Springfield, Ohio (Edwards-Maurer Field))

Concordia University Wisconsin (0-1) at
Wittenberg University (4-0)
Date: 3/5/2011, Attendance: 75
SCORE BY PERIOD 1 2 3 4 FINAL
Concordia University Wisconsin 0 0 0 1 1
Wittenberg University 5 9 2 5 21
Concordia University Wisconsin SCORING: GOALS: cody chassels 1.
ASSISTS: .

Wittenberg University SCORING: GOALS: matt snider 3; matt lord 2; chris gipson 1; brady christensen 2; tyler hall 3; george gion 1; jack bornhofen 4; mitch cohagan 3; jim ferris 2.
ASSISTS: matt snider 1; matt lord 3; chris gipson 1; brady christensen 4; lynn crum 1; george gion 1; jack bornhofen 1.



SHOTS BY PERIOD 1 2 3 4 TOTAL
Concordia University Wisconsin 5 5 2 5 17
Wittenberg University 18 17 15 11 61
GROUND BALLS BY PRD 1 2 3 4 TOTAL
Concordia University Wisconsin 3 5 6 3 15
Wittenberg University 9 9 17 9 44
FACE-OFFS BY PRD 1 2 3 4 TOTAL
Concordia University Wisconsin 1-6 2-9 1-3 0-9 4-24
Wittenberg University 5-6 7-9 2-3 9-9 23-27
CLEARS 1 2 3 4 TOTAL
Concordia University Wisconsin 1-1 2-4 3-4 2-4 8-13
Wittenberg University 4-4 5-5 3-3 3-3 15-15
EXTRA-MAN OPPS 1 2 3 4 TOTAL
Concordia University Wisconsin 0-1 0-1 0-0 1-1 1-3
Wittenberg University 0-3 1-1 0-1 1-2 2-7
SAVES BY PERIOD 1 2 3 4 TOTAL
Concordia University Wisconsin 3 3 4 1 11
Wittenberg University 2 3 0 1 6
TURNOVERS BY PRD 1 2 3 4 TOTAL
Concordia University Wisconsin 4 4 10 4 21
Wittenberg University 3 2 7 5 17

Concordia University Wisconsin

POS # PLAYER G A Pts Sh SOG GB Face T/O CT Pen-Min
1 Wladyka, Samuel * 0 0 0 1 0 0 3 0 0-0
5 Parrott, Andrew 0 0 0 0 0 0 1 0 0-0
6 Greenblatt, Miles 0 0 0 0 0 0 0 0 1-60
8 Wilson, Andrew * 0 0 0 1 0 0 2 0 0-0
10 Morton, Peter 0 0 0 1 0 0 0 0 0 0-0
11 Stephenson, Colin * 0 0 0 1 0 0 0 0 0 0-0
14 Dahms, Danny * 0 0 0 4 0 2 1 1 1-30
16 Krause, Justin * 0 0 0 2 0 3 3 1 0 0-0
18 Moon, Quinn 0 0 0 0 0 0 1 1 0-0
19 Chassels, Cody * 1 0 1 6 0 3 3 0 3-120
21 Bobowski, Ben * 0 0 0 0 0 1 3 0 1-60
22 Burrell, Kyle * 0 0 0 1 0 1 1 0 0 0-0
g 23 Davis, Zack * 0 0 0 0 0 2 5 0 0-0
24 Pridham, Curtis * 0 0 0 0 0 2 1 2 1-30
25 Kunze, Trevor 0 0 0 0 0 0 0 0 0-0
34 Wyenn, Michael 0 0 0 0 0 1 0 0 0-0
Totals 1 0 1 17 0 15 4 21 4 7-300

Wittenberg University

POS # PLAYER G A Pts Sh SOG GB Face T/O CT Pen-Min
2 Matt Snider * 3 1 4 4 0 1 1 0 0-0
3 Matt Lord * 2 3 5 7 0 1 1 0 1-60
4 Adam Ansel * 0 0 0 0 0 0 0 1 1-60
6 Chris Gipson 1 1 2 8 0 2 0 0 0-0
8 Brady Christensen * 2 4 6 7 0 3 1 0 0-0
9 Dan Gaines * 0 0 0 0 0 2 0 1 0-0
10 Charles Harreys 0 0 0 0 0 1 0 0 0-0
11 Elliot Avis * 0 0 0 1 0 8 23 2 0 0-0
12 Alex Previte * 0 0 0 4 0 4 1 1 0-0
14 Tyler Hall 3 0 3 3 0 2 2 0 0-0
15 Ryan Spain * 0 0 0 0 0 2 0 1 0-0
16 Martin Park 0 0 0 1 0 2 1 1 0-0
g 17 Mark DeOliveira * 0 0 0 0 0 1 0 0 0-0
18 Spencer Baker 0 0 0 0 0 2 0 0 0-0
19 William Emery 0 0 0 0 0 3 0 4 0-0
21 Michael Cocking * 0 0 0 1 0 2 0 1 0-0
23 Lynn Crum 0 1 1 0 0 2 0 0 0-0
24 George Gion 1 1 2 8 0 3 3 1 0-0
25 Jack Bornhofen 4 1 5 6 0 1 2 2 1-60
27 Mitch Cohagan 3 0 3 5 0 0 0 0 0-0
28 Tucker Bond 0 0 0 0 0 1 0 0 0-0
32 Kevin Pfotenhauer 0 0 0 0 0 0 0 0 0-0
33 Hunter Bastian 0 0 0 0 0 0 0 1 0-0
44 Jim Ferris 2 0 2 6 0 1 3 0 0-0
Totals 21 12 33 61 0 44 23 17 14 3-180
SCORING SUMMARY
  Prd Time Team Type Goal Scorer Assists H-V
1. 1st 11:23 WU EV Matt Snider Matt Lord 0-1
2.   08:30 WU EV Mitch Cohagan Brady Christensen 0-2
3.   03:40 WU EV Matt Snider unassisted 0-2
4.   02:55 WU EV Matt Snider Matt Lord
There was a problem with a Velocity script
Pagelcxml-monospace-template
ErrorInvocation of method 'get' in class java.util.ArrayList threw exception java.lang.IndexOutOfBoundsException: Index: 3, Size: 3 at lcxml-monospace-template[line 769, column 58]
Page source:
1: $website.decorate("printer-decorator")
2: 
3: #set ($periodRule = $tool.math.toInteger($document.valueOf("lcgame/venue/rules/@prds")))
4: #if ($periodRule == 4)
5:     #set ($gender = 'M')
6: #else
7:     #set ($gender = 'F')
8: #end
9: 
10: #macro (period $p)
11:   #if ($p == 1) 1st 
12:   #elseif ($p == 2) 2nd #end
13:   
14:   #if ($p == 3 && $gender == 'M') 3rd
15:   #elseif ($p == 3 && $gender == 'F') OT #end
16:   
17:   #if ($p == 4 && $gender == 'M') 4th
18:   #elseif ($p == 4 && $gender == 'F') 2OT #end
19:   
20:   #if ($p > 4 && $gender == 'M') 
21: 	#set($ot = $p - 4)
22: 	#if ($ot > 1)
23: 		${ot}OT
24: 	#else
25: 		OT
26: 	#end
27:   #elseif ($p > 4 && $gender == 'F')
28:     #set ($ot = $p - 3)
29: 	${ot}th
30:   #end
31: #end
32: 
33: #set ($home = $document.valueOf("lcgame/team[@vh='H']/@name"))
34: #set ($visitor = $document.valueOf("lcgame/team[@vh='V']/@name"))
35: #set ($status = $tool.math.toInteger($document.valueOf("lcgame/status/@period")))
36: #set ($clock = $document.valueOf("lcgame/status/@clock"))
37: 
38: #set ($periods = $document.numberValueOf("lcgame/team[@vh='V']/linescore/@periods"))
39: #set ($periods = $tool.math.toInteger($periods))
40: #set ($periodRange = [1..$periods])
41: 
42: #set ($linkPlayers = $stats.linkPlayers)
43: #set ($linkPlayersBase = $stats.linkPlayersBase)
44: #set ($linkTeams = $stats.linkTeams)
45: #set ($linkTeamsBase = $stats.linkTeamsBase)
46: 
47: #set ($shootoutScores = {"V" : 0, "H" : 0})
48: #set ($hasPlayByPlay = $document.selectNodes("lcgame/plays/period").size() > 0)
49: #set ($isNeutralGame = $documnt.valueOf("lcgame/venue/@neutralgame"))
50: #if ($isNeutralGame.length() > 0 && $isNeutralGame.equals("Y"))
51:   #set ($isNeutralGame = true)
52: #else
53:   #set ($isNeutralGame = false)
54: #end
55: 
56: #if ($stats.pageUrl.length() > 0 && !$stats.pageUrl.contains("?"))
57: 	#set ($paramSep = "?")
58: #else
59: 	#set ($paramSep = "&")
60: #end
61: 
62: #set ($visname = $document.valueOf("lcgame/venue/@visname"))
63: #set ($homename = $document.valueOf("lcgame/venue/@homename"))
64: #set ($visid = $document.valueOf("lcgame/venue/@visid"))
65: #set ($homeid = $document.valueOf("lcgame/venue/@homeid"))
66: #set ($location = $document.valueOf("lcgame/venue/@location"))
67: #set ($stadium = $document.valueOf("lcgame/venue/@stadium"))
68: #set ($date = $document.valueOf("lcgame/venue/@date"))
69: #set ($time = $document.valueOf("lcgame/venue/@start"))
70: #set ($schedNote = $document.valueOf("lcgame/venue/@schednote"))
71: 
72: ## SORT GOALIES BY GOALIECHANGES NODE https://prestosports.jira.com/browse/PS-5828
73: #set ($visitorGoaliesOrder = [])
74: #set ($visitorCount = 1)
75: 
76: #set ($homeGoaliesOrder = [])
77: #set ($homeCount = 1)
78: 
79: #foreach ($node in $document.selectNodes("lcgame/goaliechanges/goaliechange"))
80: 	#if ($node.attributeValue('vh') == 'V')
81: 		#if ($!visitorGoaliesOrder.add($node.attributeValue('uni')))#end
82: 		#set($visitorCount = $visitorCount + 1)
83: 	#else
84: 		#if ($!homeGoaliesOrder.add($node.attributeValue('uni')))#end
85: 		#set($homeCount = $homeCount + 1)
86: 	#end
87: #end
88: 
89: #macro (printPlayerName $node $link)
90: 	#if ($node.valueOf("../@playerId").length() > 0 && $linkPlayers && $link)
91: 		<a href="$!linkPlayersBase?id=${stat.valueOf("../@playerId")}">
92: 	#end
93: 	$node.valueOf("../@name")
94: 	#if ($node.valueOf("../@playerId").length() > 0 && $linkPlayers && $link)
95: 		</a>
96: 	#end
97: #end
98: 
99: #macro (listGoalies $nodes $pos)
100: 	#foreach ($stat in $nodes)
101: 		#if ($pos == $stat.valueOf("../@uni") || ! $pos)
102: 			<div class="row goalies">
103: 				<div class="toggle clearfix">
104: 					<div class="data">$!stat.valueOf("../@uni")</div>
105: 					<div class="name">#printPlayerName($stat, false)</div>
106: 					#set ($ga = $stat.numberValueOf("@ga"))
107: 					<div class="data">$!formatter.formatNumber($ga, "#")</div>
108: 					<div class="data">$!stat.valueOf("@minutes")</div>
109: 					<div class="data">$!stat.valueOf("@saves")</div>
110: 					<div class="data">#shots($stat.valueOf("@ga") $stat.valueOf("@saves"))</div>
111: 				</div>
112: 			</div>
113: 		#end
114: 	#end
115: #end
116: 
117: #macro (printGoalies $team)
118: 	#set ($nodes = $team.selectNodes("player/goalie"))
119: 	#if ($team.attributeValue('vh') == 'V')
120: 		#set($order = $visitorGoaliesOrder)
121: 	#else
122: 		#set($order = $homeGoaliesOrder)
123: 	#end
124: 	
125: 	#set ($printedUNIS = [])
126: 	
127: 	#if ($order.size() > 0)
128: 		#foreach($uni in $order)
129: 		
130: 			#set ($printAllowed = true)
131: 		
132: 			#foreach($printedUNI in $printedUNIS)
133: 				#if ($uni == $printedUNI)
134: 					#set ($printAllowed = false)
135: 				#end
136: 			#end
137: 			
138: 			#if ($printAllowed)
139: 				#listGoalies($nodes, $uni)
140: 				#set ($addResult = $printedUNIS.add($uni))
141: 			#end
142: 		#end
143: 	#else
144: 		#listGoalies($nodes, false)
145: 	#end
146: #end
147: 
148: ## GOALIE SHOTS
149: #macro (shots $ga $saves)
150: 	#if ($saves.length() > 0)
151: 		$tool.math.add($ga, $saves)
152: 	#else
153: 	
154: 	#end
155: #end
156: 
157: ## POWER PLAY PERCENTAGE
158: #macro (pp $ppg $ppopp)
159: 	#if ($ppopp.length() > 0)
160: 		$formatter.formatNumber($tool.math.div($ppopp, $ppg), 3)
161: 	#else
162: 	
163: 	#end
164: #end
165: 
166: ## SHOOTOUT
167: #macro (shootout $shootouts $t)
168: 	#foreach ($shot in $shootouts)
169: 		#if ($shot.valueOf("@vh") == $t)
170: 			#if ($shot.valueOf("@result") == "MADE")
171: 				#set ($score = $shootoutScores.get($t))
172: 				#set ($score = $tool.math.add($score, 1))
173: 				#set ($score = $shootoutScores.put($t, $score))
174: 				Goal 
175: 			#else
176: 				No Goal 
177: 			#end
178: 			- #${shot.valueOf("@uni")} ${shot.valueOf("@name")}<br />
179: 		#end ## if
180: 	#end ## foreach
181: #end
182: 
183: #macro (printPeriodHead)
184: #set ($ot = 0)
185: #foreach ($i in $periodRange)
186: #if (($gender == 'M' && $i > 4) || ($gender == 'F' && $i > 2))
187:   #set ($ot = $ot + 1)
188:   #if ($ot > 1)
189:   <th style="width:40px;" class="align-left">${ot}OT</th>
190:   #else
191:   <th style="width:40px;" class="align-left">OT</th>
192:   #end
193: #else
194:   <th style="width:40px;" class="align-left">$i</th>
195: #end
196: #end
197: #end
198: 
199: ## CALCULATE FACEOFF
200: #macro (calculateFaceoff $pVal $period $team)
201:    #if ($team.attributeValue("name") == $visitor)
202:       #set ($otherTeam = $document.selectSingleNode("lcgame/team[@vh='H']"))
203:    #else
204:       #set ($otherTeam = $document.selectSingleNode("lcgame/team[@vh='V']"))
205:    #end
206:    #set($add1 = $team.valueOf("linescore/lineprd[$period]/@fowon"))
207:    #set($add2 = $otherTeam.valueOf("linescore/lineprd[$period]/@fowon"))
208:    #if ($add1.length() > 0 && $add2.length() > 0)
209:    ${pVal}-$tool.math.add($add1, $add2)
210:    #end
211: #end
212: 
213: 
214: #macro (playerstats $team)
215: <table>
216:  <tr><td class="align-center"><h4>$team.valueOf("@name")</h4></td></tr>
217: </table>
218: <table>
219:  <tr>
220:   <th>POS</th>
221:   <th class="align-left">#</th>
222:   <th class="align-left">PLAYER</th>
223:   <th>G</th>
224:   <th>A</th>
225:   <th>Pts</th>
226:   <th>Sh</th>
227:   <th>SOG</th>
228:   <th>GB</th>
229:    #if ($gender == 'M')<th>Face</th>#elseif ($gender == 'F')<th>DC</th>#end
230:    #if ($gender == 'F')<th>FPS</th>#end
231:   <th>T/O</th>
232:   <th>CT</th>
233:   #if ($gender == 'M')<th>Pen-Min</th>#elseif ($gender == 'F')<th>Fouls</th>#end
234:  </tr>
235: 
236: #foreach ($stat in $team.selectNodes("player/shots"))
237:  #if ($velocityCount % 2 == 0)
238:   #set ($row = "even")
239:  #else
240:   #set ($row = "odd")
241:  #end
242: 
243:  <tr class="$row">
244:   <td class="align-left">$stat.valueOf("../@pos")</td>
245:   <td>$!stat.valueOf("../@uni")</td>
246:   <td class="nowrap">
247:   #if ($stat.valueOf("../@playerId").length() > 0 and $linkPlayers)
248:   <a href="$!linkPlayersBase?id=${stat.valueOf("../@playerId")}">
249:   #end
250:   $stat.valueOf("../@name")
251:   #if ($stat.valueOf("../@playerId").length() > 0 and $linkPlayers)
252:   </a>
253:   #end
254:   #if($stat.valueOf("../@gs").length() > 0)*#end
255:   </td>
256:   
257:   <td class="align-center">$!stat.valueOf("@g")</td>
258:   <td class="align-center">$!stat.valueOf("@a")</td>
259:   <td class="align-center">$tool.math.add($!stat.valueOf("@g"),$!stat.valueOf("@a"))</td> ## PTS
260:   <td class="align-center">$!stat.valueOf("@sh")</td>
261:   <td class="align-center">$!stat.valueOf("@sog")</td>
262:   <td class="align-center">$!stat.valueOf("../misc/@gb")</td>
263:   #if ($gender == 'M')
264:     <td class="align-center">$!stat.valueOf("../misc/@facewon")</td> ## FACEOFFS
265:   #elseif ($gender == 'F')
266:     <td class="align-center">$!stat.valueOf("../misc/@dc")</td> ##  DRAW CONTROLS
267:   #end
268:    #if ($gender == 'F')<td class="align-center">$!stat.valueOf("../shots/@freepos")</td>#end ## FREE POSITION
269:   <td class="align-center">$!stat.valueOf("../misc/@turnover")</td>
270:   <td class="align-center">$!stat.valueOf("../misc/@ct")</td>
271:   #if ($gender == 'M')
272:   <td class="align-center">$!stat.valueOf("../penalty/@count")-$!stat.valueOf("../penalty/@seconds")</td> ## PEN MIN
273:   #elseif ($gender == 'F')
274:      <td class="align-center">$!stat.valueOf("../penalty/@foul")</td> ## FOULS
275:   #end
276:  </tr>
277: #end
278:  <tr class="totals">
279:   <td colspan="3">Totals</td>
280:   <td class="align-center">$team.valueOf("totals/shots/@g")</td>
281:   <td class="align-center">$team.valueOf("totals/shots/@a")</td>
282:   <td class="align-center">$tool.math.add($!team.valueOf("totals/shots/@g"),$!team.valueOf("totals/shots/@a"))</td> ## PTS
283:   <td class="align-center">$team.valueOf("totals/shots/@sh")</td>
284:   <td class="align-center">$team.valueOf("totals/shots/@sog")</td>
285:   <td class="align-center">$team.valueOf("totals/misc/@gb")</td>
286:   #if ($gender == 'M')
287:     <td class="align-center">$team.valueOf("totals/misc/@facewon")</td> ## FACEOFFS
288:   #elseif ($gender == 'F')
289:     <td class="align-center">$!team.valueOf("totals/misc/@dc")</td> ##  DRAW CONTROLS
290:   #end
291:    #if ($gender == 'F')<td class="align-center">$!team.valueOf("totals/shots/@freepos")</td>#end ## FREE POSITION
292:   <td class="align-center">$team.valueOf("totals/misc/@turnover")</td>
293:   <td class="align-center">$team.valueOf("totals/misc/@ct")</td>
294:   #if ($gender == 'M')
295:     <td class="align-center">$!team.valueOf("totals/penalty/@count")-$!team.valueOf("totals/penalty/@seconds")</td> ## PEN MIN
296:   #elseif ($gender == 'F')
297:     <td class="align-center">$!team.valueOf("totals/penalty/@foul")</td> ## FOULS
298:   #end
299:  </tr>
300: </table>
301: #*
302: <table>
303:  <tr>
304:   <th>#</th>
305:   <th>GOALIES</th>
306:   <th>GA</th>
307:   <th>Min</th>
308:   <th>SV</th>
309:   <th>SH</th>
310:  </tr>
311: 
312: #if ($team.selectNodes("player/goalie").size() > 1)
313: <tr class="totals">
314:  <td colspan="2">Totals</td>
315:  #set ($ga = $team.numberValueOf("totals/goalie/@ga") + $team.numberValueOf("totals/goalie/@eng"))
316:  <td class="align-center">$formatter.formatNumber($ga, "#")</td>
317:  <td class="align-center">$team.valueOf("totals/goalie/@minutes")</td>
318:  <td class="align-center">$team.valueOf("totals/goalie/@saves")</td>
319:  <td class="align-center">#shots($team.valueOf("totals/goalie/@ga") $team.valueOf("totals/goalie/@saves"))</td>
320: </tr>
321: #end
322: </table>
323: *#
324: 
325: #end ##macro
326: 
327: ## CAPITALIZE NAMES
328: #macro (printScoringName $name)
329: #set ($name = $name.toLowerCase())
330: ##$name[0] <br />
331: ##$name.get(0) <br />
332: ##$name.get(1) <br />
333: #set ($comaIndex = $name.indexOf(','))
334: #set ($comaIndexNext = $comaIndex + 1)
335: #if ($comaIndex > -1)
336: <span class="capitalize">$name.substring($comaIndexNext) $name.substring(0, $comaIndex)</span>##
337: #else
338: $name##
339: #end
340: #end
341: 
342: #macro (printScoring $team)
343: $team.valueOf("@name") SCORING: GOALS:
344: #set ($playerShown = false)##
345: #foreach ($stat in $team.selectNodes("player/shots[@g]"))##
346: #if ($stat.numberValueOf("@g") > 0)##
347: #if ($playerShown); #end##
348: #set ($playerShown = true)##
349: #printScoringName($stat.valueOf('../@checkname')) $stat.valueOf('@g')##
350: #end##
351: #end##
352: .
353: 
354: <br /> ASSISTS:
355: #set ($playerShown = false)
356: #foreach ($stat in $team.selectNodes("player/shots[@a]"))##
357: #if ($stat.numberValueOf("@a") > 0)##
358: #if ($playerShown); #end##
359: #set ($playerShown = true)##
360: #printScoringName($stat.valueOf('../@checkname')) $stat.valueOf('@a')##
361: #end##
362: #end##
363: .
364: #end ##macro
365: 
366: <head>
367: 	<title>$visname #if($isNeutralGame)vs.#else at #end $homename | #if($gender == 'M')Men's #elseif($gender == 'F') Women's #end Lacrosse Box Score #if($date.length() > 0)| $date #end</title>
368: 	<style type="text/css">
369: 		.capitalize { text-transform:capitalize }
370: 		.stats-fullbox,
371: 		.stats-halfbox-left,
372: 		.stats-halfbox-right { border:0 }
373: 		
374: 		.stats-halfbox-left th,
375: 		.stats-halfbox-right th,
376: 		.stats-fullbox th { border-bottom:1px dashed; }
377: 	</style>
378: </head>
379: 
380: <div class="monostats clearfix">
381: 
382: <hr />
383: ## GAME INFORMATION
384: <div class="align-left bold">
385: #if($gender == 'M')Men's #elseif($gender == 'F') Women's #end Lacrosse Box Score #if ($stats.final)(Final)#end <br />
386: #if ($page.title.length() > 0)$!page.title <br />#end
387: $visname #if($isNeutralGame)vs.#else at #end $homename <br />
388: (#if($date.length() > 0)$date #if($time.length() > 0)at $time#end#end #if($location.length() > 0)at $location #if($stadium.length() > 0)($stadium)#end#end)
389: </div>
390: <br />
391: 
392: ## SCORING
393: <div class="clearfix">
394: <div class="stats-halfbox-left">
395: <table>
396: <tr><td valign="top">
397: 	#foreach ($team in $document.selectNodes("lcgame/team"))
398: 		#set ($teamRecord = $team.valueOf("@record"))
399: 		$team.attributeValue("name") #if($teamRecord.length() > 0)($teamRecord)#end
400: 		#if ($velocityCount == 1)
401: 			#if($isNeutralGame)vs.#else at #end <br />
402: 		#end
403: 	#end
404: 	#if($date.length() > 0)<br /> Date: $date, #end
405: 	Attendance: $document.valueOf("lcgame/venue/@attend")
406: </td>
407: </tr></table>
408: </div>
409: 
410: ## TEAM SCORES
411: <div class="stats-halfbox-right">
412: <table>
413: <tr>
414: 	<th class="align-left" style="padding-right:10px;">SCORE BY PERIOD</th>
415: 	#printPeriodHead()
416: 	<th style="width:40px" class="align-left">#if($stats.final)FINAL#else#period($status)#if($clock.length() > 0) - $clock#end#end</th>
417: </tr>
418: #foreach ($team in $document.selectNodes("lcgame/team"))
419: 	<tr>
420: 		<td>$team.attributeValue("name")</td>
421: 		#foreach ($i in $periodRange)
422: 			<td class="align-left">$team.valueOf("linescore/lineprd[$i]/@score")</td>
423: 		#end
424: 		<td class="align-left">$team.valueOf("linescore/@score")</td>
425: 	</tr>
426: #end
427: </table>
428: </div>
429: </div>
430: 
431: ## SCORING BY TEAM
432: #printScoring($document.selectSingleNode("lcgame/team[@vh='V']"))
433: <br /><br />
434: #printScoring($document.selectSingleNode("lcgame/team[@vh='H']"))
435: <br /><br /><br /><br />
436: 
437: ## TEAM STATS
438: ## SHOTS BY PERIOD
439: <div class="stats-fullbox">
440: <table>
441: <tr>
442:   <th class="align-left" style="width:150px">SHOTS BY PERIOD</th>
443:   #printPeriodHead()
444:   <th style="width:50px" class="align-left">TOTAL</th>
445:  </tr>
446: 
447: ## TEAM SHOTS
448: #foreach ($team in $document.selectNodes("lcgame/team"))
449:  <tr>
450:   <td class="nowrap">$team.attributeValue("name")</td>
451: #foreach ($i in $periodRange)
452:   <td class="align-left">$team.valueOf("linescore/lineprd[$i]/@shots")</td>
453: #end
454:   <td class="align-left">$team.valueOf("linescore/@shots")</td>
455:  </tr>
456: #end
457: </table>
458: </div>
459: 
460: ## GROUND BALLS
461: <div class="stats-fullbox">
462: <table>
463:  <tr>
464:   <th class="align-left" style="width:150px">GROUND BALLS BY PRD</th>
465:   #printPeriodHead()
466:   <th style="width:50px" class="align-left">TOTAL</th>
467:  </tr>
468: #foreach ($team in $document.selectNodes("lcgame/team"))
469:  <tr>
470:   <td class="nowrap">$team.attributeValue("name")</td>
471: #foreach ($i in $periodRange)
472:   <td class="align-left">$team.valueOf("linescore/lineprd[$i]/@gb")</td>
473: #end
474:   <td class="align-left">$team.valueOf("totals/misc/@gb")</td>
475:  </tr>
476: #end
477: </table>
478: </div>
479: 
480: #if ($gender == 'M')
481: ## FACE OFFS
482: <div class="stats-fullbox">
483: <table>
484:  <tr>
485:   <th class="align-left" style="width:150px">FACE-OFFS BY PRD</th>
486:   #printPeriodHead()
487:   <th style="width:50px" class="align-left">TOTAL</th>
488:  </tr>
489: #foreach ($team in $document.selectNodes("lcgame/team"))
490:  <tr>
491:   <td class="nowrap">$team.attributeValue("name")</td>
492: #foreach ($i in $periodRange)
493:   #set ($tfo = $team.valueOf("linescore/lineprd[$i]/@fowon"))
494:   <td class="align-left">#calculateFaceoff($tfo $i $team)</td>
495: #end
496:   <td class="align-left">$team.valueOf("totals/misc/@facewon")-$tool.math.add($team.valueOf("totals/misc/@facewon"),$team.valueOf("totals/misc/@facelost"))</td>
497:  </tr>
498: #end
499: </table>
500: </div>
501: #elseif ($gender == 'F')
502: <div class="stats-fullbox">
503: <table>
504:  <tr>
505:   <th class="align-left" style="width:150px">DRAW CONTROLS BY PRD</th>
506:   #printPeriodHead()
507:   <th style="width:50px" class="align-left">TOTAL</th>
508:  </tr>
509: #foreach ($team in $document.selectNodes("lcgame/team"))
510:  <tr>
511:   <td class="nowrap">$team.attributeValue("name")</td>
512: #foreach ($i in $periodRange)
513:   <td class="align-left">$team.valueOf("linescore/lineprd[$i]/@dc")</td>
514: #end
515:   <td class="align-left">$team.valueOf("totals/misc/@dc")</td>
516:  </tr>
517: #end
518: </table>
519: </div>
520: 
521: #end
522: 
523: ## CLEARS
524: <div class="stats-fullbox">
525: <table>
526:  <tr>
527:   <th class="align-left" style="width:150px">CLEARS</th>
528:   #printPeriodHead()
529:   <th class="align-left" style="width:50px">TOTAL</th>
530:  </tr>
531: #foreach ($team in $document.selectNodes("lcgame/team"))
532:  <tr>
533:   <td class="nowrap">$team.attributeValue("name")</td>
534: #foreach ($i in $periodRange)
535:   <td class="align-left">$team.valueOf("linescore/lineprd[$i]/@clearm")-$team.valueOf("linescore/lineprd[$i]/@cleara")</td>
536: #end
537:   <td class="align-left">$team.valueOf("totals/clear/@clearm")-$team.valueOf("totals/clear/@cleara")</td>
538:  </tr>
539: #end
540: </table>
541: </div>
542: 
543: #if ($gender == 'M')
544: ## MAN ADVANTAGE
545: <div class="stats-fullbox">
546: <table>
547:  <tr>
548:   <th class="align-left" style="width:150px">EXTRA-MAN OPPS</th>
549:   #printPeriodHead()
550:   <th>TOTAL</th>
551:  </tr>
552: #foreach ($team in $document.selectNodes("lcgame/team"))
553:  <tr>
554:   <td class="nowrap">$team.attributeValue("name")</td>
555: #foreach ($i in $periodRange)
556:   <td class="align-left">$team.valueOf("linescore/lineprd[$i]/@ppg")-$team.valueOf("linescore/lineprd[$i]/@ppatt")</td>
557: #end
558:   <td class="align-left">$team.valueOf("totals/powerplay/@ppg")-$team.valueOf("totals/powerplay/@ppopp")</td>
559:  </tr>
560: #end
561: </table>
562: </div>
563: 
564: #elseif ($gender == 'F')
565: ## FREE POSITION SHOTS
566: <div class="stats-fullbox">
567: <table>
568:  <tr>
569:   <th class="align-left" style="width:150px">FREE-POSITION SHOTS</th>
570:   #printPeriodHead()
571:   <th>TOTAL</th>
572:  </tr>
573: #foreach ($team in $document.selectNodes("lcgame/team"))
574:  <tr>
575:   <td class="nowrap">$team.attributeValue("name")</td>
576: #foreach ($i in $periodRange)
577:   <td class="align-left">$team.valueOf("linescore/lineprd[$i]/@fpg")-$team.valueOf("linescore/lineprd[$i]/@fps")</td>
578: #end
579:   <td class="align-left">$team.valueOf("totals/powerplay/@freepos")-$team.valueOf("totals/powerplay/@freepos")</td>
580:  </tr>
581: #end
582: </table>
583: </div>
584: #end
585: 
586: ## SAVES
587: <div class="stats-fullbox">
588: <table>
589:  <tr>
590:   <th class="align-left" style="width:150px">SAVES BY PERIOD</th>
591:   #printPeriodHead()
592:   <th style="width:50px" class="align-left">TOTAL</th>
593:  </tr>
594: #foreach ($team in $document.selectNodes("lcgame/team"))
595:  <tr>
596:   <td class="nowrap">$team.attributeValue("name")</td>
597: #foreach ($i in $periodRange)
598:   <td class="align-left">$team.valueOf("linescore/lineprd[$i]/@saves")</td>
599: #end
600:   <td class="align-left">$team.valueOf("totals/goalie/@saves")</td>
601:  </tr>
602: #end
603: </table>
604: </div>
605: 
606: 
607: #if ($gender == 'F')
608: ## FOULS
609: <div class="stats-fullbox">
610: <table>
611:  <tr>
612:   <th class="align-left" style="width:150px">FOULS BY PRD</th>
613:   #printPeriodHead()
614:   <th style="width:50px" class="align-left">TOTAL</th>
615:  </tr>
616: #foreach ($team in $document.selectNodes("lcgame/team"))
617: <tr>
618:   <td class="nowrap">$team.attributeValue("name")</td>
619: #set ($foulTotal = 0)
620: #foreach ($i in $periodRange)
621:   #set ($foulVal = $team.valueOf("linescore/lineprd[$i]/@fouls"))
622:   #if ($foulVal.length() > 0)
623:     #set ($foulTotal = $tool.math.add($foulTotal, $foulVal))
624: 	<td class="align-left">$foulVal</td>
625:   #else
626:     <td>&nbsp;</td>
627:   #end
628: #end
629:   <td class="align-left">$foulTotal</td>
630: </tr>
631: #end
632: </table>
633: </div>
634: #end
635: 
636: 
637: 
638: ## TURNOVERS
639: <div class="stats-fullbox">
640: <table>
641:  <tr>
642:   <th class="align-left" style="width:150px">TURNOVERS BY PRD</th>
643:   #printPeriodHead()
644:   <th style="width:50px" class="align-left">TOTAL</th>
645:  </tr>
646: #foreach ($team in $document.selectNodes("lcgame/team"))
647:  <tr>
648:   <td class="nowrap">$team.attributeValue("name")</td>
649: #foreach ($i in $periodRange)
650:   <td class="align-left">$team.valueOf("linescore/lineprd[$i]/@turnover")</td>
651: #end
652:   <td class="align-left">$team.valueOf("totals/misc/@turnover")</td>
653:  </tr>
654: #end
655: </table>
656: </div>
657: 
658: <span class="pagebreak"></span>
659: 
660: ## VISITOR STATISTICS
661: <div class="stats-fullbox">#playerstats($document.selectSingleNode("lcgame/team[@vh='V']"))</div>
662: ## HOME STATISTICS
663: <div class="stats-fullbox">#playerstats($document.selectSingleNode("lcgame/team[@vh='H']"))</div>
664: 
665: <span class="pagebreak"></span>
666: 
667: ## SCORING SUMMARY
668: <div class="stats-fullbox clearfix">
669: <table style="width:100%">
670:  <tr><td #if($hasPlayByPlay)colspan="8"#else colspan="7"#end>SCORING SUMMARY</td></tr>
671:  <tr>
672: 	<th>&nbsp;</th>
673: 	<th class="align-left">Prd</th>
674: 	<th class="align-left">Time</th>
675: 	<th class="align-left">Team</th>
676: 	<th class="align-left">Type</th>
677: 	<th class="align-left" style="width:30%">Goal Scorer</th>
678: 	<th class="align-left" style="width:30%">Assists</th>
679: 	#if ($hasPlayByPlay)
680: 		<th class="align-left">H-V</th>
681: 	#end
682: </tr>
683:  
684: ## #foreach ($pd in $periodRange)
685: ## #set ($shownStats = "")
686: 
687: ## <th class="align-center">-- <span class="bold">#period($pd)</span> -- </th>
688: ## #if ($hasPlayByPlay)
689: ## <td class="align-center"><span class="bold">$visitor</span></td>
690: ## <td class="align-center"><span class="bold">$home</span></td>
691: ## #end
692:  
693: #set ($currentPeriod = '')
694: #set ($currentscoreNodes = $document.selectNodes("//currentscore"))
695: #foreach ($score in $document.selectNodes("lcgame/scores/score"))
696: 	#set ($pd = $score.valueOf("@prd"))
697: 	#set ($shownStats = "y")
698: 	#set ($type = $score.valueOf("@type"))
699: 	
700: 	<tr>
701: 	<td>$velocityCount.</td>
702: 	<td>#if ($currentPeriod != $pd) #period($pd) #set ($currentPeriod = $pd) #else &nbsp; #end</td>
703: 	<td>$score.valueOf("@time")</td>
704: 	<td>
705: 		#if($score.valueOf("@vh") == 'H') $homeid #end
706: 		#if($score.valueOf("@vh") == 'V') $visid #end
707: 	</td>
708: 	
709: 	## TYPE
710: 	<td>
711: 		$!type
712: 		#*
713: 		#if ($type == 'PP')<span class="italic">UP - </span>#end
714: 		#if ($type == 'SH')<span class="italic">DN - </span>#end
715: 		#if ($type == 'PS')<span class="italic">PS - </span>#end
716: 		#if ($score.valueOf("@engoal") == 'Y')<span class="italic">EN - </span>#end
717: 		*#
718: 	</td>
719: 	<td>
720: 		#if ($score.valueOf("@playerId").length() > 0 and $linkPlayers)
721: 			<a href="$!linkPlayersBase?id=${score.valueOf("@playerId")}">
722: 		#end
723: 		$score.valueOf("@name")
724: 		#if ($score.valueOf("@playerId").length() > 0 and $linkPlayers)
725: 			</a>
726: 		#end
727: 	</td>
728: 	<td>
729: 		#if($score.valueOf("@assist1").length() > 0)
730: 			#if ($score.valueOf("@assist1Id").length() > 0 and $linkPlayers)
731: 				<a href="$!linkPlayersBase?id=${score.valueOf("@assist1Id")}">
732: 			#end
733: 			$score.valueOf("@assist1")
734: 			#if ($score.valueOf("@assist1Id").length() > 0 and $linkPlayers)
735: 				</a>
736: 			#end
737: 		#else
738: 			#if ($hasPlayByPlay && $gender == 'F')
739: 				#set ($scoreTime = $score.valueOf("@time"))
740: 				#set ($fpsFlag = false)
741: 	
742: 				#foreach ($fpsNode in $document.selectNodes("//play[@action='FPS']"))
743: 					#if ($fpsNode.valueOf("@clock") == $scoreTime)
744: 						#set ($fpsFlag = true)
745: 					#end
746: 				#end
747: 	
748: 				#if ($fpsFlag)
749: 					Free position shot
750: 				#else
751: 					unassisted
752: 				#end
753: 			#else
754: 				unassisted
755: 			#end
756: 		#end
757: 		#if($score.valueOf("@assist2").length() > 0)
758: 			&amp;
759: 			#if ($score.valueOf("@assist2Id").length() > 0 and $linkPlayers)
760: 				<a href="$!linkPlayersBase?id=${score.valueOf("@assist2Id")}">
761: 			#end
762: 			$score.valueOf("@assist2")
763: 			#if ($score.valueOf("@assist2Id").length() > 0 and $linkPlayers)
764: 				</a>
765: 			#end
766: 		#end
767: 	</td>
768: 	#if ($hasPlayByPlay)
769: 		#set ($currentScore = $currentscoreNodes.get($tool.math.sub($velocityCount, 1)))
770: 		<td>$currentScore.valueOf("@hscore")-$currentScore.valueOf("@vscore")</td>
771: 	#end
772: 	</tr>
773: #end ## scoring foreach
774: 
775: #if ($shownStats == "") <tr><td #if($hasPlayByPlay)colspan="8"#else colspan="7"#end class="align-center">(no scoring)</td></tr> #end
776: 
777: ## #end ## period range
778: </table>
779: </div>
780: 
781: 
782: ## PENALTY SUMMARY
783: <div class="stats-fullbox clearfix">
784: <table style="width:100%">
785: 	<tr><td colspan="6">PENALTY SUMMARY</td></tr>
786: 	###foreach ($pd in $periodRange)
787: 	## #set ($shownStats = "")
788: 	## <tr class="stats-highlight"><td colspan="4" class="align-center">-- <span class="bold">#period($pd)</span> -- </td></tr>
789: 
790: 	<tr>
791: 		<th class="align-left">Prd</th>
792: 		<th class="align-left">Time</th>
793: 		<th class="align-left">Team</th>
794: 		<th class="align-left" style="width:30%">#-Player</th>
795: 		<th class="align-left">Min</th>
796: 		<th class="align-left" style="width:30%">Offence</th>
797: 	</tr>
798: 	
799: #foreach ($penalty in $document.selectNodes("lcgame/penalties/pen"))
800: 	#set ($shownStats = "y")
801: 	<tr>
802: 	<td>#period($penalty.valueOf("@prd"))</td>
803: 	<td>$penalty.valueOf("@time")</td>
804: 	<td>
805: 		#if($penalty.valueOf("@vh") == 'H') $homeid #end
806: 		#if($penalty.valueOf("@vh") == 'V') $visid #end
807: 	</td>		
808: 	<td>
809: 		##$penalty.valueOf("@../uni")-
810: 		$penalty.valueOf("@name")
811: 	</td>
812: 	<td>
813: 		$!penalty.valueOf("@minutes") $!penalty.valueOf("@type")
814: 		## #if ($penalty.valueOf("@type") == 'PP')PP#end
815: 		## #if ($penalty.valueOf("@type") == 'SH')SH#end
816: 	</td>
817: 	<td>
818: 		$!penalty.valueOf("@desc")
819: 	</td></tr>
820: #end ## penalty foreach
821: 
822: #if ($shownStats == "")
823: <tr><td colspan="6" class="align-center">(no penalties)</td></tr>
824: #end
825: 
826: #if ($gender == 'M')
827: ## penalty minutes
828: ## MEN ONLY
829:  <tr><th colspan="6" class="align-left"><br /> PENALTY TOTALS</th></tr>
830:  <tr>
831:   <td colspan="6">
832: 
833:    <table>
834:     <tr>
835:      #foreach ($team in $document.selectNodes("lcgame/team"))
836: 	  #set ($penaltySeconds = $team.valueOf("totals/penalty/@seconds"))
837: 	  #set ($penaltyCount = $team.valueOf("totals/penalty/@count"))
838: 	  #if ($penaltySeconds.length() > 0 && $penaltyCount.length() > 0)
839: 	    #set ($penaltySeconds = $tool.math.toInteger($penaltySeconds))
840: 		#set ($remainder = 0)
841: 	    #set ($remainder = $penaltySeconds % 60)
842: 	    #set ($penaltyMinutes = $tool.math.toInteger($tool.math.div($penaltySeconds, 60)))
843: 	    #if ($penaltyMinutes > 1)
844: 	      #set ($minString = "${penaltyMinutes} minutes")
845: 	    #else
846: 	      #set ($minString = "${penaltyMinutes} minute")
847:         #end
848: 		#set ($secString = "")
849: 		#if ($remainder > 0)
850: 		  #if ($remainder > 1)
851: 		    #set ($secString = "${remainder} seconds")
852: 		  #else
853: 		    #set ($secString = "${remainder} second")
854: 		  #end
855: 		#end
856:         <td><span class="bold">$team.attributeValue("name")</span>:  $minString $secString on $penaltyCount infraction(s)</td>
857: 	  #else
858: 	    <td>&nbsp;</td>
859: 	  #end
860:      #end
861:     </tr>
862:    </table>
863: 
864:   </td>
865:  </tr>
866: #end
867: </table>
868: </div>
869: 
870: $wiki.su