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

View: Mobile | Desktop