Sacred Heart vs. Providence College
(9/15/2010 at Providence, R.I.)
Sacred Heart (4-1-0) vs.
Providence College (2-1-1)
Goals by period 1 2 Tot
 
Sacred Heart........ 0 1 - 1
Providence.......... 1 2 - 3
Sacred Heart
# Player POS SH SOG G A
 
1 Alex Fait........... * GK - - - -
3 Aaron Kiely......... * D - - - -
4 Gustav Granqvist.... * D - - - -
5 Alex Danais......... D - - - -
7 Lusiano Dadario..... * MF 2 - - -
8 Marcelo Simoes...... * MF - - - -
9 Johnny El-Hachem.... F - - - -
10 Marcello Castro..... * MF 3 3 - -
11 Justin Brewer....... * F - - - -
13 Andrew Borts........ MF - - - -
15 Brian Francolini.... * F - - - -
16 Mario Mililli....... * MF 1 1 1 -
17 Eugenio Soares...... MF - - - -
18 Edwin Victor........ * MF - - - -
21 Omer Levy........... * D - - - -
23 K. Dekaneas......... MF - - - -
TM TEAM................ - - - -
  Totals.............. 6 4 1 0
Providence
# Player POS SH SOG G A
 
1 OBANDO, Jhojan...... * gk - - - -
2 DATILUS, David...... * d - - - 1
5 MINOGUE, Bryan...... * d - - - -
6 RALEY, John......... * d - - - -
7 MARCIN, Matt........ * m 3 1 - 1
8 PEREIRA, Michael.... * m - - - 1
9 CINTRON, Marc....... * m 4 1 1 1
10 SOUSA, Andrew....... * m 2 - - -
12 DALY, Michael....... * d - - - -
13 BAUMANN, Anthony.... - - - -
14 DAVIS, Greg......... - - - -
17 GRISELL, Brian...... 1 - - -
19 FABIAN, Daniel...... * m - - - -
20 ARBOLEDA, Wilder.... * f 4 3 2 -
TM TEAM................ - - - -
  Totals.............. 14 5 3 4
Sacred Heart
# Player SOG GA Saves Min
1 Alex Fait........... * 5 3 2 89:10
Providence
# Player SOG GA Saves Min
1 OBANDO, Jhojan...... * 4 1 3 89:10
Shots by period 1 2 Tot
 
Sacred Heart........ 2 4 - 6
Providence.......... 6 8 - 14
Saves by period 1 2 Tot
 
Sacred Heart........ 0 2 - 2
Providence.......... 0 3 - 3
Corner Kicks 1 2 Tot
 
Sacred Heart........ 1 3 - 4
Providence.......... 2 3 - 5
Fouls 1 2 Tot
 
Sacred Heart........ 6 7 - 13
Providence.......... 6 9 - 15
SCORING SUMMARY:
GOAL Time/Team Goal Scorer Assists Description
 
1. 3:08 -
There was a problem with a Velocity script
Pagesoxml-monospace-template
ErrorInvocation of method 'substring' in class java.lang.String threw exception java.lang.StringIndexOutOfBoundsException: String index out of range: 1 at soxml-monospace-template[line 78, column 45]
Page source:
1: ## DEFAULT VALUES
2: #set ($showPlayerMin = false)
3: 
4: ## PICK UP OPTIONS
5: $website.include("options")
6: #set ($options = $request.getAttribute("options"))
7: 
8: ## SET VARIABLES FROM OPTIONS
9: #set ($showPlayerMin = $options.get("boxscore_so_player_min"))
10: #if ($showPlayerMin == "show")#set ($showPlayerMin = true)#end
11: 
12: #set ($showWiki = true)
13: #set ($showWiki = $showWikiVar)
14: 
15: #if ($showWiki == true)
16: 	$website.decorate("printer-decorator")
17: 	$!wiki.su 
18: #end
19: 
20: #set ($showGoalDesc = $document.valueOf("sogame/venue/show/@goaldesc") == "1")
21: #set ($showFieldHockey = $document.valueOf("sogame/venue/show/@fhk") == "1")
22: #set ($shootoutScores = {"V" : 0, "H" : 0})
23: 
24: #set ($linkPlayers = $stats.linkPlayers)
25: #set ($linkPlayersBase = $stats.linkPlayersBase)
26: #set ($linkTeams = $stats.linkTeams)
27: #set ($linkTeamsBase = $stats.linkTeamsBase)
28: 
29: #macro (shootout $shootouts $t)
30: #foreach ($shot in $shootouts)
31: #if ($shot.valueOf("@vh") == $t)
32: ${shot.valueOf("@uni")}/#if ($shot.valueOf("@result") == "MADE")
33: #set ($score = $shootoutScores.get($t))
34: #set ($score = $tool.math.add($score, 1))
35: #set ($score = $shootoutScores.put($t, $score))
36: Y #else
37: N #end
38: #end ## if
39: #end ## foreach
40: #end
41: 
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: #else $p
49: #end
50: #end
51: 
52: #macro (printPeriods)
53: #foreach ($prd in $document.selectNodes("sogame/team[1]/linescore/lineprd"))
54: #if ($velocityCount >= 3)
55: <th class="align-right">#if ($velocityCount == 3)OT #else ${tool.math.sub($velocityCount, 2)}OT #end</th>
56: #else
57: <th class="align-right">$velocityCount</th>
58: #end
59: #end
60: #end
61: 
62: #macro (printName $name)
63: #set ($printVal = $name)
64: #if ($name.length() < 20)
65:   #set ($dotCount = $tool.math.sub(20, $name.length()))
66:   #foreach ($i in [1..$dotCount])
67:     #set ($printVal = "${printVal}.")
68:   #end
69: #end
70: $printVal
71: #end
72: 
73: #macro (printAbbName $s)
74:   #set ($printVal = "")
75:   #if ($s.length() > 0)
76:     #set ($arr = $s.split(' '))
77: 	#foreach ($i in $arr)
78: 	  #set ($printVal = "${printVal}${i.substring(0, 1)}")
79: 	#end
80: 	$printVal
81:   #end
82: #end
83: 
84: #macro (printStatVal $val)
85: #set ($printVal = "")
86: #if ($val.length() > 0)
87:   #if ($tool.math.toInteger($val) == 0)
88:     #set ($printVal = "-")
89:   #else
90:     #set ($printVal = $val)
91:   #end
92: $printVal
93: #end
94: #end
95: 
96: #set ($home = $document.valueOf("sogame/team[@vh='H']/@name"))
97: #set ($visitor = $document.valueOf("sogame/team[@vh='V']/@name"))
98: #set ($visname = $document.valueOf("sogame/venue/@visname"))
99: #set ($homename = $document.valueOf("sogame/venue/@homename"))
100: #set ($location = $document.valueOf("sogame/venue/@location"))
101: #set ($stadium = $document.valueOf("sogame/venue/@stadium"))
102: #set ($date = $document.valueOf("sogame/venue/@date"))
103: #set ($duration = $document.valueOf("sogame/venue/@duration"))
104: #set ($schedNote = $document.valueOf("sogame/venue/@schednote"))
105: #set ($attendance = $document.valueOf("sogame/venue/@attend"))
106: 
107: ## RULES
108: #set ($periodRule = $document.valueOf("sogame/venue/rules/@periods"))
109: #set ($periodLength = $document.valueOf("sogame/venue/rules/@minutes"))
110: #set ($otPeriodLength = $document.valueOf("sogame/venue/rules/@minutesot"))
111: 
112: ## STATUS
113: #set ($status = $document.valueOf("sogame/status/@period"))
114: #set ($clock = $document.valueOf("sogame/status/@clock"))
115: #set ($gameFinished = false)
116: #set ($inProgress = false)
117: 
118: ## FOULS
119: #set ($showFouls = false)
120: #if($showFieldHockey)
121: 	#set ($homeFouls =  $tool.math.toInteger($document.valueOf("sogame/team[@vh='H']/totals/penalty/@fouls")))
122: 	#set ($visitorFouls =  $tool.math.toInteger($document.valueOf("sogame/team[@vh='V']/totals/penalty/@fouls")))
123: 
124: 	#if($homeFouls > 0 || $visitorFouls > 0)
125: 	#set ($showFouls = true)
126: 	#end
127: #else 
128: 	#set ($showFouls = true) ## ALWAYS SHOW FOR SOCCER
129: #end
130: 
131: 
132: #if ($document.valueOf("sogame/venue/@duration").length() > 0)
133:   #set ($gameFinished = true)
134: #end
135: 
136: #if (!$gameFinished && $document.selectNodes("//currentscore").size() > 0)
137:   #set ($inProgress = true)
138: #end
139: 
140: #if ($clock.length() > 0 && $clock != "90:00")
141:   #if ($periodRule.length() > 0 && $periodLength.length() > 0 && $otPeriodLength.length() > 0)
142:     #set ($normalTime = $tool.math.mul($periodRule, $periodLength))
143: 	#set ($extraTime = $tool.math.mul($otPeriodLength, 2))
144: 	#set ($totalTime = "$tool.math.mul($normalTime, $extraTime):00")
145: 	$totalTime
146:   #end
147: #end
148: 
149: #set ($periodCount = $document.selectNodes("sogame/team[1]/linescore/lineprd").size())
150: #set ($periodRange = [1..$periodCount])
151: #set ($isNeutralGame = $documnt.valueOf("sogame/venue/@neutralgame"))
152: #if ($isNeutralGame.length() > 0 && $isNeutralGame.equals("Y"))
153:   #set ($isNeutralGame = true)
154: #else
155:   #set ($isNeutralGame = false)
156: #end
157: 
158: #set ($hasPlayByPlay = $document.selectNodes("sogame/plays/period").size() > 0)
159: 
160: ## GOALIE SHOTS
161: #macro (shots $ga $saves)
162: #if ($saves.length() > 0)
163:  $tool.math.add($ga, $saves)
164: #else
165: #end
166: #end
167: 
168: <head>
169: <title>$visname #if($isNeutralGame)vs.#else at #end $homename | Boxscore #if($date.length() > 0)| $date #end</title>
170: </head>
171: 
172: 
173: <div class="monostats clearfix">
174: 
175: 
176: ## GAME INFORMATION
177: <div class="align-center bold">
178: 	$visname vs. $homename<br />
179: 	($date at $location)
180: 	#if ($schedNote.length() > 0)<br />$!schedNote #end
181: </div>
182: 
183: <div class="clearfix">
184: 
185: ## TEAM RECORDS
186: <div class="monostats-halfbox-left">
187: <table>
188: 	<tr>
189: 		<td>
190: 			$visname ($document.valueOf("sogame/team[@vh='V']/@record")) vs.
191: 			<br /> $homename ($document.valueOf("sogame/team[@vh='H']/@record"))
192: 		</td>
193: 	</tr>
194: </table>
195: </div>
196: 
197: ## PERIOD SUMMARY
198: <div class="monostats-halfbox-right">
199: <table>
200: 	<tr>
201: 		<th class="align-left">Goals by period</th>
202: 		#printPeriods()
203: 		<th colspan="2">Tot</th>
204: 	</tr>
205: 	
206: 	<tr><td colspan="$tool.math.add($periodCount, 3)" class="hr">&nbsp;</td></tr>
207: 
208: 	#foreach ($team in $document.selectNodes("sogame/team"))
209: 	<tr>
210: 		<td>#printName($!team.valueOf("@name"))</td>
211: 		#foreach ($prd in $team.selectNodes("linescore/lineprd"))
212: 		<td class="align-right">$prd.valueOf("@score")</td>
213: 		#end
214: 		<td class="align-center">-</td>
215: 		<td class="align-right">$team.valueOf("linescore/@score")</td>
216: 	</tr>
217: 	#end
218: </table>
219: </div>
220: ## PERIOD SUMMARY END
221: </div> 
222: 
223: #if ($request.getParameter("view") == "plays" && $hasPlayByPlay)
224: ## PLAY BY PLAY
225: 
226: #macro (printPlays $prd)
227:   #set ($prdCount = $prd.valueOf("@number")) 
228:   <tr><th colspan="2"><span id="prd${prdCount}">#period($prdCount)</span></th></tr>
229:   <tr class="stats-highlight">
230:     <td class="align-center"><span class="bold">Time</span></td>
231:     <td class="align-center"><span class="bold">Play</span></td>
232:   </tr>
233:   #set ($i = 0)
234:   #set ($playNodes = $prd.selectNodes("*"))
235:   #foreach ($play in $playNodes)
236:     #set ($nodeName = $play.getName())
237:     #if ($nodeName == "play" && !$play.valueOf("@action").equalsIgnoreCase("goalmsg"))
238:       #set ($i = $i + 1)
239:       #if ($i % 2 == 0)
240:         #set ($row = "even")
241:       #else
242:         #set ($row = "odd")
243:       #end
244: 	  
245: 	  #if ($play.valueOf("@action").equalsIgnoreCase("goal"))
246: 	  <tr class="${row} highlight bold">
247:         <td class="align-center">$play.valueOf("@clock")</td>
248: 		#set ($printValue = $play.valueOf("@text"))
249: 		#if ($playNodes.get($tool.math.add($velocityCount, 1)))
250: 		  #set ($goalMsg = $playNodes.get($tool.math.add($velocityCount, 1)).valueOf("@text"))
251: 		  #set ($printValue = "${printValue} ${goalMsg}")
252: 		#end
253:         <td>$printValue</td>
254:       </tr>
255: 	  #else
256: 	  <tr class="${row}">
257:         <td class="align-center">$play.valueOf("@clock")</td>
258:         <td>$play.valueOf("@text")</td>
259:       </tr>	  
260: 	  #end
261:     #elseif ($nodeName == "currentscore")
262:       <tr class="stats-highlight">
263:         <td colspan="2" class="align-center bold">Score: $visitor $play.valueOf("@vscore") - $home $play.valueOf("@hscore")</td>
264:       </tr>
265:     #end
266: #end
267: #end ## ends printPlays
268: 
269: <div class="monostats-fullbox clearfix">
270: <table>
271: <tr>
272: <td colspan="2">
273: <span class="bold">Period: </span>
274: #foreach ($p in [1..$document.selectNodes("sogame/plays/period").size()])
275: #if ($velocityCount > 1) | #end
276: <a href="#prd${p}">#period($p)</a>
277: #end
278: </td>
279: </tr>
280: #foreach ($playPeriod in $document.selectNodes("sogame/plays/period"))
281: #printPlays ($playPeriod)
282: #end
283: </table>
284: </div>
285: ## PLAY BY PLAY END
286: 
287: #else
288: ## BOXSCORE
289: 
290: ## TEAM SUMMARY
291: #macro (playerstats $team)
292: <div class="caption">$team.valueOf("@name")</div>
293: <table>
294: 	<tr>
295: 		<th class="align-left">&#35;</th>
296: 		<th class="align-left">Player</th>
297: 		<th>POS</th>
298: 		<th>SH</th>
299: 		#if ($showFieldHockey)
300: 		<th>SO</th>
301: 		#else
302: 		<th>SOG</th>
303: 		#end
304: 		<th>G</th>
305: 		<th>A</th>
306: 		#if ($showFieldHockey)
307: 		<th>DS</th>
308: 		#end
309: 		#if ($showPlayerMin == true)
310: 		<th>Min</th>
311: 		#end
312: 	</tr>
313: 
314: #set ($colspan = 7)
315: #if ($showFieldHockey)
316: 	#set ($colspan = $colspan +1)
317: #end
318: #if ($showPlayerMin == true)
319: 	#set ($colspan = $colspan +1)
320: #end
321: 
322: 	<tr><td colspan="$colspan" class="hr">&nbsp;</td></tr>
323: 
324: 	#foreach ($stat in $team.selectNodes("player/shots"))
325: 	<tr>
326: 		<td>$!stat.valueOf("../@uni")</td>
327: 		#if ($stat.valueOf("../@gs") == 1)
328: 		<td class="nowrap">#printName($stat.valueOf("../@name"))*</td>
329: 		#else
330: 		<td class="nowrap">#printName($stat.valueOf("../@name"))</td>
331: 		#end
332: 		<td>$stat.valueOf("../@pos")</td>
333: 		<td class="align-right">#printStatVal($!stat.valueOf("@sh"))</td>
334: 		<td class="align-right">#printStatVal($!stat.valueOf("@sog"))</td>
335: 		<td class="align-right">#printStatVal($!stat.valueOf("@g"))</td>
336: 		<td class="align-right">#printStatVal($!stat.valueOf("@a"))</td>
337: 		#if ($showFieldHockey)
338: 		<td class="align-right">#printStatVal($!stat.valueOf("../misc/@dsave"))</td>
339: 		#end
340: 		#if ($showPlayerMin == true)
341: 		<td class="align-right">$!stat.valueOf("../misc/@minutes")</td>
342: 		#end
343: 	</tr>
344: 	#end
345: 	
346: 	<tr>
347: 		<td>&nbsp;</td>
348: 		<td colspan="2">#printName("Totals")</td>
349: 		#set ($statTotals = $team.selectSingleNode("totals/shots"))
350: 		<td class="align-right">$!statTotals.valueOf("@sh")</td>
351: 		<td class="align-right">$!statTotals.valueOf("@sog")</td>
352: 		<td class="align-right">$!statTotals.valueOf("@g")</td>
353: 		<td class="align-right">$!statTotals.valueOf("@a")</td>
354: 		#if ($showFieldHockey)
355: 		<td class="align-right">$!statTotals.valueOf("../misc/@dsave")</td>
356: 		#end
357: 		#if ($showPlayerMin == true)
358: 		<td class="align-right">$!statTotals.valueOf("../misc/@minutes")</td>
359: 		#end
360: 	</tr>
361: </table>
362: #end ##macro
363: 
364: #macro (goaliestats $team)
365: <div class="caption">$team.valueOf("@name")</div>
366: <table>
367: 	<tr>
368: 		<th class="align-left">&#35;</th>
369: 		#if ($showFieldHockey)
370: 		<th class="align-left">Goalkeepers</th>
371: 		#else
372: 		<th class="align-left">Player</th>
373: 		#end
374: 		<th>SOG</th>
375: 		<th>GA</th>
376: 		<th>Saves</th>
377: 		<th>Min</th>
378: 	</tr>
379: 
380: 	#foreach ($stat in $team.selectNodes("player/goalie"))
381: 	<tr>
382: 		<td>$!stat.valueOf("../@uni")</td>
383: 		#if ($stat.valueOf("../@gs") == 1)
384: 		<td class="nowrap">#printName($stat.valueOf("../@name"))*</td>
385: 		#else
386: 		<td class="nowrap">#printName($stat.valueOf("../@name"))</td>
387: 		#end
388: 		<td class="align-right">#shots($stat.valueOf("@ga") $stat.valueOf("@saves"))</td>
389: 		<td class="align-right">#printStatVal($!stat.valueOf("@ga"))</td>
390: 		<td class="align-right">#printStatVal($!stat.valueOf("@saves"))</td>
391: 		<td class="align-right">$!stat.valueOf("@minutes")</td>
392: 	</tr>
393: 	#end
394: 	
395: 	#if ($team.selectNodes("player/goalie").size() > 1) ## if more than one goalie appeared show totals
396: 	<tr>
397: 		<td>&nbsp;</td>
398: 		#set ($goalieTotals = $team.selectSingleNode("totals/goalie"))
399: 		<td class="align-center">#printName("Totals")</td>
400: 		<td class="align-right">#shots($goalieTotals.valueOf("@ga") $goalieTotals.valueOf("@saves"))</td>
401: 		<td class="align-right">$!goalieTotals.valueOf("@ga")</td>
402: 		<td class="align-right">$!goalieTotals.valueOf("@saves")</td>
403: 		<td class="align-right">$!goalieTotals.valueOf("@minutes")</td>
404: 	</tr>
405: 	#end
406: </table>
407: #end
408: 
409: 
410: <div class="clearfix">
411: ## VISITOR STATISTICS
412: <div class="monostats-halfbox-left">#playerstats($document.selectSingleNode("sogame/team[@vh='V']"))</div>
413: ## HOME STATISTICS
414: <div class="monostats-halfbox-right">#playerstats($document.selectSingleNode("sogame/team[@vh='H']"))</div>
415: </div>
416: 
417: <div class="clearfix">
418: ## VISITOR STATISTICS
419: <div class="monostats-halfbox-left">#goaliestats($document.selectSingleNode("sogame/team[@vh='V']"))</div>
420: ## HOME STATISTICS
421: <div class="monostats-halfbox-left">#goaliestats($document.selectSingleNode("sogame/team[@vh='H']"))</div>
422: </div>
423: 
424: <div class="clearfix">
425: ## SHOTS BY PERIOD
426: <div class="monostats-halfbox-left">
427: <table>
428: 	<tr>
429: 		<th class="align-left">Shots by period</th>
430: 		#printPeriods()
431: 		<th colspan="2" class="align-right">Tot</th>
432: 	</tr>
433: 	
434: 	<tr><td colspan="$tool.math.add($periodCount, 3)" class="hr">&nbsp;</td></tr>
435: 
436: 	#foreach ($team in $document.selectNodes("sogame/team"))
437: 	<tr>
438: 		<td>#printName($!team.valueOf("@name"))</td>
439: 		#foreach ($prd in $team.selectNodes("linescore/lineprd"))
440: 		<td class="align-right">$prd.valueOf("@shots")</td>
441: 		#end
442: 		<td class="align-center">-</td>
443: 		<td class="align-right">$team.valueOf("linescore/@shots")</td>
444: 	</tr>
445: 	#end
446: </table>
447: </div>
448: ## SHOTS BY PERIOD END
449: 
450: ## SAVES
451: <div class="monostats-halfbox-right">
452: <table>
453: 	<tr>
454: 		<th class="align-left">Saves by period</th>
455: 		#printPeriods()
456: 		<th colspan="2" class="align-right">Tot</th>
457: 	</tr>
458: 	
459: 	<tr><td colspan="$tool.math.add($periodCount, 3)" class="hr">&nbsp;</td></tr>
460: 
461: 	#foreach ($team in $document.selectNodes("sogame/team"))
462: 	#set ($runningTotal = 0)
463: 	<tr>
464: 		<td>#printName($!team.valueOf("@name"))</td>
465: 		#foreach ($prd in $team.selectNodes("linescore/lineprd"))
466: 		<td class="align-right">$prd.valueOf("@saves")</td>
467: 		#set ($runningTotal = $tool.math.add($runningTotal, $prd.valueOf("@saves")))
468: 		#end
469: 		<td class="align-center">-</td>
470: 		<td class="align-right">$runningTotal</td>
471: 	</tr>
472: 	#end
473: </table>
474: </div>
475: ## SAVES END
476: </div>
477: 
478: <div class="clearfix">
479: <div class="monostats-halfbox-left">
480: <table>
481: #if ($showFieldHockey)
482: ## PERIOD SUMMARY - PENALTY CORNERS
483: 	<tr>
484: 		<th class="align-left">Penalty corners</td>
485: 		#printPeriods()
486: 		<th colspan="2" class="align-right">Tot</th>
487: 	</tr>
488: 	
489: 	<tr><td colspan="$tool.math.add($periodCount, 3)" class="hr">&nbsp;</td></tr>
490: 
491: 	## team corners, which have to be manually added up
492: 	#foreach ($team in $document.selectNodes("sogame/team"))
493: 	#set ($totalCorners = 0)
494: 	<tr>
495: 		<td>#printName($!team.attributeValue("name"))</td>
496: 		#foreach ($prd in $team.selectNodes("linescore/lineprd"))
497: 		#set ($totalCorners = $tool.math.add($totalCorners, $prd.valueOf("@corners")))
498: 		<td class="align-right">$prd.valueOf("@corners")</td>
499: 		#end
500: 		<td class="align-right">$totalCorners</td>
501: 	</tr>
502: 	#end
503: #else
504: ## PERIOD SUMMARY - CORNER KICKS
505: 	<tr>
506: 		<th class="align-left">Corner Kicks</th>
507: 		#printPeriods()
508: 		<th colspan="2" class="align-right">Tot</th>
509: 	</tr>
510: 	
511: 	<tr><td colspan="$tool.math.add($periodCount, 3)" class="hr">&nbsp;</td></tr>
512: 
513: 	## team corners, which have to be manually added up
514: 	#foreach ($team in $document.selectNodes("sogame/team"))
515: 	#set ($totalCorners = 0)
516: 	<tr>
517: 		<td>#printName($!team.attributeValue("name"))</td>
518: 		#foreach ($prd in $team.selectNodes("linescore/lineprd"))
519: 		#set ($totalCorners = $tool.math.add($totalCorners, $prd.valueOf("@corners")))
520: 		<td class="align-right">$prd.valueOf("@corners")</td>
521: 		#end
522: 		<td class="align-center">-</td>
523: 		<td class="align-right">$totalCorners</td>
524: 	</tr>
525: 	#end
526: #end
527: </table>
528: </div>
529: 
530: #if($showFouls)
531: ## FOULS BY PERIOD
532: <div class="monostats-halfbox-right">
533: <table>
534: 	<tr>
535: 		<th class="align-left">Fouls</th>
536: 		#printPeriods()
537: 		<th colspan="2" class="align-right">Tot</th>
538: 	</tr>
539: 	
540: 	<tr><td colspan="$tool.math.add($periodCount, 3)" class="hr">&nbsp;</td></tr>
541: 
542: 	#foreach ($team in $document.selectNodes("sogame/team"))
543: 	<tr>
544: 		<td>#printName($!team.attributeValue("name"))</td>
545: 		#foreach ($prd in $team.selectNodes("linescore/lineprd"))
546: 		<td class="align-right">$prd.valueOf("@fouls")</td>
547: 		#end
548: 		<td class="align-center">-</td>
549: 		<td class="align-right">$team.valueOf("totals/penalty/@fouls")</td>
550: 	</tr>
551: 	#end
552: </table>
553: </div>
554: #end
555: </div>
556: 
557: ## SCORING SUMMARY
558: <div class="monostats-fullbox clearfix">
559: <div class="caption">SCORING SUMMARY:</div>
560: <table>
561: 	#if ($document.selectNodes("sogame/scores/score").size() > 0)
562: 	<tr>
563: 		<th class="align-left">GOAL</th>
564: 		<th class="align-left">Time/Team</th>
565: 		<th class="align-left">Goal Scorer</th>
566: 		<th class="align-left">Assists</th>
567: 		<th class="align-left">Description</th>
568: 	</tr>
569: 	#end
570: 	
571: 	<tr><td colspan="5" class="hr">&nbsp;</td></tr>
572: 
573: 	#set ($shownStats = "")
574: 	#foreach ($score in $document.selectNodes("sogame/scores/score"))
575: 	#set ($shownStats = "y")
576: 	<tr>
577: 		<td>${velocityCount}.</td>
578: 		<td>
579: 			$score.valueOf("@time")
580: 			#if($score.valueOf("@vh") == 'H') - #printAbbName($homename) #end
581: 			#if($score.valueOf("@vh") == 'V') - #printAbbName($visname) #end
582: 		</td>
583: 		<td>$score.valueOf("@name")</td>
584: 
585: 		#if($score.valueOf("@assist1").length() > 0)
586: 		#if ($score.valueOf("@assist2").length() > 0)
587: 		<td>$score.valueOf("@assist1") &amp; $score.valueOf("@assist2")</td>
588: 		#else
589: 		<td>$score.valueOf("@assist1")</td>
590: 		#end
591: 		#else
592: 		<td>unassisted</td>
593: 		#end
594: 		
595: 		## SHOW GOAL DESCRIPTION
596: 		#if($!score.valueOf("@desc").length() > 0)
597: 			<td>$!score.valueOf("@desc")</td>
598: 		#else
599: 			<td>
600: 				#set($scoreTime = $score.valueOf("@time"))
601: 				#foreach ($play in $document.selectNodes("sogame/plays/period/play"))
602: 					#if(($play.valueOf("@action") == "PENSHOT") && ($play.valueOf("@clock") == $scoreTime))
603: 						#if ($showFieldHockey)Penalty Stroke #else Penalty Kick #end
604: 					#end
605: 				#end
606: 			</td>
607: 		#end		
608: 	</tr>
609: 	#end ## scoring foreach
610: 
611: 	#if ($shownStats == "") 
612: 	<tr><td colspan="5" class="align-center">(no scoring)</td></tr>
613: 	#end
614: </table>
615: </div>
616: ## SCORING SUMMARY END
617: 
618: ## SHOOTOUT
619: #set ($shootouts = $document.selectNodes("sogame/shootouts/shootout"))
620: #if ($shootouts.size() > 0)
621: <div class="monostats-fullbox clearfix">
622: <div class="caption">SHOOTOUT</div>
623: <table>
624:   <tr><td class="hr">&nbsp;</td></tr>
625: 	<tr>
626: 		<td>
627: 		<strong>${visitor}:</strong>
628: 		#shootout($shootouts "V")
629: 		</td>
630: 	</tr>
631: 	<tr>
632: 		<td>
633: 		<strong>${home}:</strong>
634: 		#shootout($shootouts "H")
635: 		</td>
636: 	</tr>
637: 
638: 		#if ($shootoutScores.get("V") > $shootoutScores.get("H"))
639: 			#set ($shootoutResult = ("$visitor wins shootout ${shootoutScores.get('V')} - ${shootoutScores.get('H')}"))
640: 		#else
641: 			#set ($shootoutResult = ("$home wins shootout ${shootoutScores.get('H')} - ${shootoutScores.get('V')}"))
642: 		#end
643: 	<tr>
644: 		<td>
645: 		<strong>$shootoutResult</strong>
646: 		</td>
647: 	</tr>
648: </table>
649: </div>
650: ## SHOOTOUT END
651: #end
652: 
653: 
654: 
655: ## PENALTY SUMMARY
656: <div class="monostats-fullbox clearfix">
657: <div class="caption">#if ($showFieldHockey)PLAYER CARDS: #else CAUTIONS AND EJECTIONS: #end</div>
658: <table>
659: <tr>
660: 	<td>
661: 	#set ($shownStats = "")
662: 	#foreach ($penalty in $document.selectNodes("sogame/penalties/pen"))
663: 	#if ($velocityCount % 4 == 0)<br />#end
664: 	#set ($shownStats = "y")
665: 		#if ($penalty.valueOf("@type") == 'GREEN')GC #end
666: 		#if ($penalty.valueOf("@type") == 'YELLOW')YC #end
667: 		#if ($penalty.valueOf("@type") == 'RED')RC #end
668: 		#if($penalty.valueOf("@vh") == 'H')- #printAbbName($homename) #end
669: 		#if($penalty.valueOf("@vh") == 'V')- #printAbbName($visname) #end
670: 		#if ($penalty.valueOf("@uni").length() > 0)
671: 		  &#35;$penalty.valueOf("@uni")
672: 		#end
673: 		#if ($velocityCount > 1)
674: 		($penalty.valueOf("@time"));
675: 		#else
676: 		($penalty.valueOf("@time"))
677: 		#end
678: 	#end ## penalty foreach
679: 	
680: 	#if ($shownStats == "")
681: 		(no penalties)
682: 	#end
683: 	</td>
684: </tr>
685: </table>
686: </div>
687: 
688: ## OTHER INFORMATION
689: <div class="monostats-fullbox clearfix">
690: <table>
691: 	<tr>
692: 		<td>
693: 		#if ($document.selectNodes("sogame/team/player/goalie[@win]").size() > 0 && $document.selectNodes("sogame/team/player/goalie[@loss]").size() > 0)
694: 			#set ($winGk = $document.selectNodes("sogame/team/player/goalie[@win]").get(0))
695: 			#set ($lossGk = $document.selectNodes("sogame/team/player/goalie[@loss]").get(0))
696: 			Win-$winGk.valueOf("../@name")#if ($winGk.valueOf("@win").length() > 0)($winGk.valueOf("@win"))#end.
697: 			Loss-$lossGk.valueOf("../@name")#if ($lossGk.valueOf("@loss").length() > 0)($lossGk.valueOf("@loss")) #end <br />
698: 		#elseif ($document.selectNodes("sogame/team/player/goalie[@tie]").size() > 0)
699: 			#set ($playerTie = $document.selectNodes("sogame/team/player/goalie[@tie]"))
700: 			#set ($tieGk1 = $playerTie.get(0))
701: 			#set ($tieGk2 = '')
702: 			#if ($playerTie.size() > 1)
703: 				#set ($tieGk2 = $playerTie.get(1))
704: 			#end
705: 			Tie-$tieGk1.valueOf("../@name")#if ($tieGk1.valueOf("@tie").length() > 0)($tieGk1.valueOf("@tie")) #end 
706: 			#if ($tieGk2.length() > 0)
707: 				Tie-$tieGk2.valueOf("../@name")#if ($tieGk2.valueOf("@tie").length() > 0)($tieGk2.valueOf("@tie")) #end <br />
708: 			#end
709: 		#end
710: 		
711: 		#if ($stadium.length() > 0)<span class="bold">Stadium:</span> $stadium; #end
712: 		<span class="bold">Game Length:</span> $document.valueOf("sogame/venue/@duration");
713: 		<span class="bold">Attendance:</span> $document.valueOf("sogame/venue/@attend")
714: 		#set ($officials = $document.selectNodes("sogame/venue/officials/official"))
715: 		#if ($officials.size() > 0)
716: 		<br />
717: 		<span class="bold">Officials:</span>
718: 		#foreach ($official in $officials)
719: 			#if ($velocityCount % 2 == 0)<br />#end
720: 			#if ($official.valueOf("@title").length() > 0)$official.valueOf("@title"):#end $official.valueOf("@name");
721: 		#end
722: 		#end
723: 	</td>
724: 	</tr>
725: </table>
726: </div>
727: #end  ## VIEW CHECK
728: </div>
729: 
730: #set ($showWiki = true)
731: #set ($showWiki = $showWikiVar)
732: 
733: #if ($showWiki == true)
734: 	$!wiki.su
735: #else
736:  	$stats.getPrint()	 
737: #end