Farmingdale State vs. Ithaca at Ithaca, N.Y.
9/29/2013 at 1 p.m.

Farmingdale State
1
Ithaca
2
SCORING
There was a problem with a Velocity script
Pagestatcrew-soxml-template
ErrorVM #printPeriods: too many arguments to macro. Wanted 0 got 1 at statcrew-soxml-template[line 1642, column 25]
Page source:
1: #if ($stats.view == "pt")
2:     $website.include("options")
3: 
4:     ## This is for testability purposes.
5:     #set ($pregame = $stats.pregame)
6:     #set ($startTime = $document.getRootElement().valueOf("network/@startTime"))
7:     #if ($document.getRootElement().valueOf("network/@tba") == 'Y')
8:         #set ($tba = true)
9:     #else
10:         #set ($tba = false)
11:     #end
12:     #set ($location = $document.getRootElement().valueOf("network/@location"))
13:     #set ($localDate = $document.getRootElement().valueOf("network/@localDate"))
14:     #set ($localTime = $document.getRootElement().valueOf("network/@localTime"))
15: 	#set ($hasVideo = false)
16: 	#if ($document.getRootElement().valueOf("primetime/@videoProvider").length() > 0 && $document.getRootElement().valueOf("primetime/@videoProvider") != "none")
17: 		#set ($hasVideo = true)
18: 	#end
19:     #if ($location != '')
20:         #set ($neutral = true)
21:     #else
22:         #set ($neutral = false)
23:     #end
24:     #if ($request.getParameter("paused") == 'y')
25:         #set ($paused = true)
26:     #else
27:         #set ($paused = false)
28:     #end
29: 
30: 
31:     <head>
32: 
33:     <script type="text/javascript">
34:         var conf = new Object();
35:         conf.locale = '${locale}';
36:         conf.videoProvider = '${videoProvider}';
37:         conf.videoId = '${videoId}';
38:         conf.eventId = '$document.valueOf("sogame/network/@eventId")';
39:         conf.eventIdHashCode = '$eventIdHashCode';
40:         conf.visitorTeamLogo = '$stats.visitorTeamLogo';
41:         conf.homeTeamLogo = '$stats.homeTeamLogo';
42:         conf.visitorTeamColor = '$document.getRootElement().valueOf("team[@vh='V']/@color")';
43:         conf.homeTeamColor = '$document.getRootElement().valueOf("team[@vh='H']/@color")';
44:         conf.startTime = '$startTime';
45:         conf.pregame = $pregame;
46:         conf.tba = $tba;
47:         conf.localDate = '$localDate';
48:         conf.localTime = '$localTime';
49:         conf.visitor = '${tool.esc.javascript($document.getRootElement().valueOf("team[@vh='V']/@name"))}';
50:         conf.home = '${tool.esc.javascript($document.getRootElement().valueOf("team[@vh='H']/@name"))}';
51:         conf.currentDate = new Date();
52:         conf.statusFinal = $stats.final;
53:         conf.neutral = $neutral;
54:         conf.paused = $paused;
55:     </script>
56: 
57:     <script type="text/javascript" src='$website.cdn("/info/jquery-2.1.1.js")'></script>
58:     <script type="text/javascript" src='$website.cdn("/info/notifications/jquery.noty.packaged.min.js")'></script>
59:     <script type="text/javascript" src='$website.cdn("/info/dataTables/js/jquery.dataTables.js")'></script>
60:     <script type="text/javascript" src='$website.cdn("/info/primetime3/js/moment.js")'></script>
61:     <script type="text/javascript" src='$website.cdn("/info/primetime3/js/full_screen_api.js")'></script>
62:     <script type="text/javascript" src='$website.cdn("/info/primetime3/js/ustream-embedapi.js")'></script>
63:     <script type="text/javascript" src='$website.cdn("/info/primetime3/js/flipclock.min.js")'></script>
64: 
65:     $website.addCss($website.cdn("/info/dataTables/css/jquery.dataTables.css"))
66:     $website.addCss($website.cdn("/info/primetime3/css/flipclock.css"))
67: 
68:     <script type="text/javascript" src="/info/primetime3/js/pt3-embed.js"></script>
69: 
70:     <script type="text/javascript">var jQuery_2_1 = $.noConflict(true);</script>
71:     <script type="text/javascript" src="/info/primetime3/js/add-ons.js"></script>
72:     <script type="text/javascript" src="/info/primetime3/js/pt3-util.js"></script>
73:     <script type="text/javascript" src="/info/primetime3/js/pt3-soc-template.js"></script>
74: 
75:     $website.addCss("/info/primetime3/css/pt3-styles.css")
76:     $website.addCss("/info/primetime3/css/pt3-soccer-icons.css")
77:     $website.addCss("/info/primetime3/css/pt3-field-hockey-icons.css")
78: 
79:         $website.addCss("/info/primetime3/css/pt3-responsive.css")
80: 
81:         <script type="text/javascript" src="/info/primetime3/js/restive.js"></script>
82:         <script type="text/javascript" src="/info/primetime3/js/pt3-restive.js"></script>
83:     </head>
84: 
85:     #if ($pregame)
86:         <div id="primetime-wrapper" class="primetime-pre-game primetime-soc primetime-wrapper clearfix">
87:             <div class="primetime-overflow clearfix">
88:                 <div id="primetime-header" class="grid-row">
89:                     <div class="grid-col grid-col-hdr">
90: 
91:                         <div class="pt-header clearfix">
92:                             <div class="pt-team pt-team-away visitor-team-color" style="background: $document.getRootElement().valueOf("team[@vh='V']/@color")">
93:                                 <img src="$stats.visitorTeamLogo" alt="" class="team-logo visitor-team-logo" />
94:                                 <h3 class="team-name visitor-team-name">$document.getRootElement().valueOf("team[@vh='V']/@name")</h3>
95:                             </div>
96: 
97:                             <div class="pt-team pt-team-home home-team-color" style="background: $document.getRootElement().valueOf("team[@vh='H']/@color")">
98:                                 <img src="$stats.homeTeamLogo" alt="" class="team-logo home-team-logo" />
99:                                 <h3 class="team-name home-team-name">$document.getRootElement().valueOf("team[@vh='H']/@name")</h3>
100:                             </div>
101: 
102:                             <div class="pt-match-scoreboard clearfix">
103:                                 <div class="pt-mtach-info pt-pregame">
104:                                     <center>
105:                                         <div>
106:                                             $localDate <br>
107:                                             #if ($tba)
108:                                                 TBA
109:                                             #else
110:                                                 $localTime
111:                                             #end
112:                                         </div>
113:                                     </center>
114:                                 </div>
115:                             </div>
116:                         </div>
117:                     </div>
118:                 </div>
119:                 <div class="grid-row-container clearfix">
120:                     <div class="grid-row">
121:                         <div class="content">
122:                             <div class="pt-last-play clearfix" style="display: none">
123:                                 <span class="pt-label clearfix" style="text-align: center !important; width: 100% ">
124:                                     This event doesn't have a set start time, but PrimeTime will be available once the event begins.
125:                                 </span>
126:                             </div>
127:                             <div class="text">
128:                                 <h3>
129:                                     Live statistics will be available at the start of the event in:
130:                                 </h3>
131:                                 <center>
132:                                     <div class="clock"></div><br/>
133:                                     #if ($tba)
134:                                         Days
135:                                     #end
136:                                 </center>
137:                             </div>
138:                         </div>
139:                     </div>
140:                     <div class="pt-game-info grid-row clearfix">
141:                         <div class="pt-tabs-panes clearfix">
142:                             <div id="stats-tabs" class="pt-tabs-pane clearfix">
143:                                 <div id="divGameInformation" class="grid-row">
144:                                     <div class="grid-col grid-col-gi grid-col1">
145:                                         <h3 class="grid-title">
146:                                             Game Information
147:                                         </h3>
148:                                         <div class="grid-content clearfix">
149:                                             <div class="pt-game-information clearfix">
150:                                                 <div class="pt-row clearfix">
151:                                                     <center>
152:                                                         <div class="game-location pt-col">
153:                                                         <span class="date">
154:                                                             $localDate<br />
155:                                                             #if ($tba)
156:                                                                 TBA
157:                                                             #else
158:                                                                 $localTime
159:                                                             #end
160:                                                         </span>
161:                                                             <h3>Date & Time</h3>
162:                                                         </div>
163:                                                         #if ($location != '')
164:                                                             <div class="game-venue pt-col">
165:                                                         <span class="venue">
166:                                                             $location<br />
167:                                                             (Neutral)
168:                                                         </span>
169:                                                                 <h3>Location</h3>
170:                                                             </div>
171:                                                         #end
172:                                                     </center>
173:                                                 </div>
174:                                             </div>
175:                                         </div>
176:                                     </div>
177:                                 </div>
178:                             </div>
179:                         </div>
180:                     </div>
181:                 </div>
182: 
183:                 <div id="primetime-footer" class="grid-row">
184:                     <div class="grid-col grid-col-ftr">
185:                         <a href="/"></a>
186:                     </div>
187:                 </div>
188:             </div>
189:             ## GENERAL INFORMATION
190:         </div>
191:     #else
192:         #if ($document.getRootElement().valueOf("primetime/@videoProvider") == "boxcastppv")
193:             $website.requireSSL()
194:         #end
195:         <div id="primetime-wrapper" class="primetime-soc primetime-wrapper clearfix">
196: 
197:             <div class="primetime-overflow clearfix">
198:                 ## HEADER
199:                 <div id="primetime-header" class="grid-row">
200:                     <div class="grid-col grid-col-hdr">
201: 
202:                         <div class="primetime-screen-controls clearfix"> 
203:                             <a href="#" class="full-screen-button pt-icon-resize-full"><span class="text">Switch</span></a> 
204:                             <a href="#" class="normal-screen-button pt-icon-resize-small"><span class="text">Switch</span></a> 
205:                             <a href="#" class="expand-button pt-icon-link-ext"><span class="text">Switch</span></a>
206:                         </div>
207: 
208:                         <div class="pt-header clearfix">
209: 
210:                             <div class="pt-team pt-team-away visitor-team-color"><img src="$stats.visitorTeamLogo" alt="" class="team-logo visitor-team-logo" /><span
211:                                     class="team-record visitor-team-record"></span>
212:                                 <h3 class="team-name visitor-team-name"></h3>
213:                             </div>
214: 
215:                             <div class="pt-team pt-team-home home-team-color">
216:                                 <span class="team-record home-team-record"></span>
217:                                 <img src="$stats.homeTeamLogo" alt="" class="team-logo home-team-logo" />
218:                                 <h3 class="team-name home-team-name"></h3>
219:                             </div>
220: 
221:                             <div class="pt-match-scoreboard clearfix">
222:                                 <p class="team-score visitor-team-score"></p>
223:                                 <p class="team-score home-team-score"></p>
224: 
225:                                 <div class="pt-mtach-info">
226:                                     <span class="time scoreboard-time"></span><br />
227:                                     <span class="period scoreboard-period" style="width: 100%"></span>
228:                                 </div>
229: 
230:                             </div>
231: 
232:                             <div id="pt-page-nav" class="pt-page-nav">
233: 								<a href="#" class="pt-menu">Menu</a>
234:                             	<ul class="clearfix">
235:                                     <li><a href="#live-action-title" data-stroke="1" data-id="#live-action-title">Live Action</a></li>
236:                             		<li><a href="#line-score-title" data-stroke="2" data-id="#line-score-title">Line Score</a></li>
237:                             		## <li><a href="#social-sharing-title" data-id="social-sharing-title">Social Sharing</a></li>
238:                             		<li><a href="#scoring-plays-title" data-stroke="3" data-id="#scoring-plays-title" data-tab-id="#stats-tabs">Scoring Plays</a></li>
239:                             		<li><a href="#team-comparison-title" data-stroke="4" data-id="#team-comparison-title" data-tab-id="#stats-tabs">Team Comparison</a></li>
240:                             		<li><a href="#individual-stats-title" data-stroke="5" data-id="#individual-stats-title" data-tab-id="#stats-tabs">Individual Stats</a></li>
241:                             		<li><a href="#game-info-title" data-stroke="6" data-id="#game-info-title" data-tab-id="#stats-tabs">Game Information</a></li>
242:                             		<li><a href="#play-by-play-title" data-stroke="7" data-id="#play-by-play-title" data-tab-id="#pbp-tabs">Play by Play</a></li>
243:                             	</ul>
244:                             </div>
245: 
246:                         </div>
247: 
248:                     </div>
249:                 </div>
250:                 ## PRIMETIME HEADER 
251: 
252: 				## GRID ROW CONTAINER
253:                 <div class="grid-row-container clearfix">
254: 
255:                 ## GRID ROW
256: 				#set ($gridRowClass = "grid-row no-video")
257: 				#if ($hasVideo)
258: 					#set ($gridRowClass = "grid-row")
259: 				#end
260: 				
261:                 <div id="firstPanelRow" class="$gridRowClass">
262: 
263: 				#set ($gridCounter = 0)
264: 				
265: 				#if ($hasVideo)	
266: 					#set ($gridCounter = $gridCounter + 1)
267:                     <div class="grid-col grid-col-v grid-col${gridCounter}">
268:                         <h3 id="video-field-title" class="grid-title">Video<span class="close">x</span></h3>
269:                         <div class="grid-content clearfix">
270:                             <div class='embed-container'>
271: 
272:                             </div>
273:                         </div>
274:                         ## GRID CONTENT
275:                     </div>
276:                     ## VIDEO COL
277: 				#end
278: 
279: 					#set ($gridCounter = $gridCounter + 1)
280:                     <div class="grid-col grid-col-cd grid-col${gridCounter}">
281:                         <h3 id="live-action-title" class="grid-title">
282:                             Live Action<span class="close">x</span>
283:                         </h3>
284:                         <div class="grid-content clearfix">
285:                             <div class="clearfix">
286:                                 <div class="container clearfix pt-live-action">
287:                                     <table>
288:                                         <thead>
289:                                             <tr>
290:                                                 <th>Time</th>
291:                                                 <th>Action</th>
292:                                                 <th>Plays</th>
293:                                             </tr>
294:                                         </thead>
295:                                         <tbody>
296:                                         </tbody>
297:                                     </table>
298:                                 </div>
299:                             </div>
300:                         </div>
301:                     </div>
302:                 </div>
303: 
304: ## COMMENT THE TIMELINE AND TIMEPLAY CODE
305: #*
306:                 <div class="grid-row">
307:                     <div class="grid-col pt-timeline grid-col-tl grid-col3">
308:                         <h3 id="timeline-title" class="grid-title">
309:                             Timeline<span class="close">x</span>
310:                         </h3>
311:                         <div class="grid-content clearfix ">
312:                             <div class="pt-timeline-logos">
313:                                 <img class="team-logo visitor-team-logo" /><br />
314:                                 <img class="team-logo home-team-logo" />
315:                             </div>
316:                             <div class="pt-timeline-times">
317:                             </div>
318:                         </div>
319:                     </div>
320:                 </div>
321: 
322:                 <div class="grid-row">
323:                     <div class="grid-col pt-timeline-plays grid-col-tp grid-col4">
324: 						<h3 id="timeline-plays-title" class="grid-title">
325:                     		Timeline Plays<span class="close">x</span>
326:                     	</h3>
327:                         <div class="grid-content clearfix">
328:                         </div>
329:                     </div>
330:                 </div>
331: *#
332:                 <div class="grid-row">
333: 					#set ($gridCounter = $gridCounter + 1)
334:                     <div class="grid-col grid-col-bs grid-col${gridCounter}">
335:                         <h3 id="line-score-title" class="grid-title">
336:                             Line Score<span class="close">x</span>
337:                         </h3>
338:                         <div class="grid-content clearfix">
339:                             <div class="pt-line-score clearfix">
340:                                 <table id="scoreByPeriod">
341:                                     <thead>
342:                                         <tr>
343:                                             <th></th>
344:                                         </tr>
345:                                     </thead>
346:                                     <tbody>
347:                                         <tr class="visitor">
348:                                             <td><img src="" alt=""
349:                                                 class="team-logo visitor-team-logo" />
350:                                                 <span class="team-name visitor-team-name"></span></td>
351:                                         </tr>
352:                                         <tr class="home">
353:                                             <td><img src="" alt=""
354:                                                 class="team-logo home-team-logo" />
355:                                                 <span class="team-name home-team-name"></span></td>
356:                                         </tr>
357:                                     </tbody>
358:                                 </table>
359: 
360:                             </div>
361:                         </div>
362:                         ## GRID CONTENT
363:                     </div>
364:                     ## LINE SCORE
365: 					
366: 					## SOCIAL
367: 					#*
368: 					#set ($gridCounter = $gridCounter + 1)
369:                     <div class="grid-col grid-col-ls grid-col${gridCounter}">
370:                         <h3 id="social-sharing-title" class="grid-title">
371:                             Social Sharing<span class="close">x</span>
372:                         </h3>
373:                         <div class="grid-content clearfix">
374:                             <div class="pt-last-score clearfix">
375: 
376:                             </div>
377:                         </div>
378:                         ## GRID CONTENT
379:                     </div>
380: 					*#
381:                     ## SOCIAL
382:                 </div>
383:                 ## GRID ROW ## TABS
384:                 <div class="pt-game-info clearfix">
385: 
386:                     <ul class="pt-tabs clearfix">
387:                         <li class="current"><a href="#stats-tabs">Statistics</a></li>
388:                         <li><a href="#pbp-tabs">Play By Play</a></li>
389:                     </ul>
390: 
391:                     <div class="pt-tabs-panes clearfix">
392:                         <div id="stats-tabs" class="pt-tabs-pane clearfix">
393: 
394:                             ## GRID ROW
395:                             <div class="grid-row">
396: 								#set ($gridCounter = $gridCounter + 1)
397:                                 <div class="grid-col grid-col-sp grid-col${gridCounter}">
398:                                     <h3 id="scoring-plays-title" class="grid-title">
399:                                         Scoring Plays<span class="close">x</span>
400:                                     </h3>
401:                                     <div class="grid-content clearfix">
402:                                         <div id="scoringPlayList" class="pt-scoring-plays clearfix">
403:                                         </div>
404:                                     </div>
405:                                     ## GRID CONTENT
406: 
407:                                 </div>
408:                                 ## SCRING PLAY
409:                             </div>
410:                             ## GRID ROW ##GRID ROW
411:                             <div class="grid-row">
412: 								#set ($gridCounter = $gridCounter + 1)
413:                                 <div class="grid-col grid-col-tc grid-col${gridCounter}">
414:                                     <h3 id="team-comparison-title" class="grid-title">
415:                                         Team Comparison<span class="close">x</span>
416:                                     </h3>
417:                                     <div class="grid-content clearfix">
418:                                         <div class="pt-team-compare clearfix">
419:                                             <table id="teamCompare">
420:                                                 <thead>
421:                                                     <tr>
422:                                                         <th><img src="" alt="" class="team-logo visitor-team-logo" /><br />
423:                                                             <span class="team-name visitor-team-name"></span></th>
424:                                                         <th> <span></span></th>
425:                                                         <th><img src="" alt="" class="team-logo home-team-logo" /><br />
426:                                                             <span class="team-name home-team-name"></span></th>
427:                                                     </tr>
428:                                                 </thead>
429: 
430:                                                 <tbody>
431:                                                     <tr class="stats-shots">
432:                                                         <td></td>
433:                                                         <td class="stats-cat">Shots</td>
434:                                                         <td></td>
435:                                                     </tr>
436: 
437:                                                     <tr class="stats-sog">
438:                                                         <td></td>
439:                                                         <td class="stats-cat">SOG</td>
440:                                                         <td></td>
441:                                                     </tr>
442: 
443:                                                     <tr class="stats-saves">
444:                                                         <td></td>
445:                                                         <td class="stats-cat">Saves</td>
446:                                                         <td></td>
447:                                                     </tr>
448: 
449:                                                     <tr class="stats-corners">
450:                                                         <td></td>
451:                                                         <td class="stats-cat">Corners</td>
452:                                                         <td></td>
453:                                                     </tr>
454: 
455:                                                     <tr class="stats-offsides">
456:                                                         <td></td>
457:                                                         <td class="stats-cat">Offsides</td>
458:                                                         <td></td>
459:                                                     </tr>
460: 
461:                                                     <tr class="stats-fouls">
462:                                                         <td></td>
463:                                                         <td class="stats-cat">Fouls</td>
464:                                                         <td></td>
465:                                                     </tr>
466: 
467:                                                     <tr class="stats-yc">
468:                                                         <td></td>
469:                                                         <td class="stats-cat">YC</td>
470:                                                         <td></td>
471:                                                     </tr>
472: 
473:                                                     <tr class="stats-rc">
474:                                                         <td></td>
475:                                                         <td class="stats-cat">RC</td>
476:                                                         <td></td>
477:                                                     </tr>
478:                                                 </tbody>
479: 
480:                                             </table>
481:                                         </div>
482:                                     </div>
483:                                     ## GRID CONTENT
484:                                 </div>
485:                                 ## TEAM COMPARE
486:                             </div>
487:                             ## GRID ROW ## GRID ROW
488:                             <div class="grid-row">
489: 								#set ($gridCounter = $gridCounter + 1)
490:                                 <div class="grid-col grid-col-is grid-col${gridCounter}">
491:                                     <h3 id="individual-stats-title" class="grid-title">
492:                                         Individual Stats<span class="close">x</span>
493:                                     </h3>
494:                                     <div class="grid-content clearfix">
495:                                         <div class="pt-team-stats clearfix">
496: 
497:                                             <div id="visitorTeamIndividualStats"
498:                                                 class="pt-team-col pt-stats-team active clearfix">
499: 
500:                                                 <div class="pt-team clearfix">
501:                                                     <img src="" alt=""
502:                                                         class="team-logo visitor-team-logo active" />
503:                                                     <h3 class="team-name visitor-team-name"></h3>
504:                                                 </div>
505: 
506:                                                 <div class="pt-stats-tabs clearfix">
507:                                                     <div class="pt-panes clearfix">
508:                                                         <div id="vOffenseTab" class="pt-pane pt-pane1 clearfix">
509: 
510:                                                             <div class="pt-row">
511:                                                                 <table class="goalieStats display"> <!-- goalies -->
512:                                                                     <thead>
513:                                                                         <tr>
514:                                                                             <th>#</th>
515:                                                                             <th>Goalkeepers</th>
516:                                                                             <th>SOG</th>
517:                                                                             <th>GA</th>
518:                                                                             <th>SV</th>
519:                                                                             <th>MIN</th>
520:                                                                         </tr>
521:                                                                     </thead>
522:                                                                     <tbody>
523: 
524:                                                                     </tbody>
525:                                                                 </table>
526:                                                             </div>
527: 
528:                                                             <div class="pt-row">
529:                                                                 <table class="startersStats display"> <!-- starters -->
530:                                                                     <thead>
531:                                                                         <tr>
532:                                                                             <th>#</th>
533:                                                                             <th>Starters</th>
534:                                                                             <th>Pos</th>
535:                                                                             <th>Sh</th>
536:                                                                             <th>Sog</th>
537:                                                                             <th>G</th>
538:                                                                             <th>A</th>
539:                                                                             <th class="dsCell">DS</th>
540:                                                                         </tr>
541:                                                                     </thead>
542:                                                                     <tbody>
543: 
544:                                                                     </tbody>
545:                                                                 </table>
546:                                                             </div>
547:                                                             <div class="pt-row">
548:                                                                 <table class="substitutesStats display"> <!-- substitutes -->
549:                                                                     <thead>
550:                                                                         <tr>
551:                                                                             <th>#</th>
552:                                                                             <th>Substitutes</th>
553:                                                                             <th>Pos</th>
554:                                                                             <th>Sh</th>
555:                                                                             <th>Sog</th>
556:                                                                             <th>G</th>
557:                                                                             <th>A</th>
558:                                                                             <th class="dsCell">DS</th>
559:                                                                         </tr>
560:                                                                     </thead>
561:                                                                     <tbody>
562: 
563:                                                                     </tbody>
564:                                                                 </table>
565:                                                             </div>
566:                                                         </div>
567:                                                     </div>
568:                                                 </div>
569:                                             </div>
570: 
571:                                             <div id="homeTeamIndividualStats" class="pt-team-col pt-stats-team clearfix">
572: 
573:                                                 <div class="pt-team clearfix">
574:                                                     <img src="" alt=""
575:                                                         class="team-logo home-team-logo active" />
576:                                                     <h3 class="team-name home-team-name"></h3>
577:                                                 </div>
578: 
579:                                                 <div class="pt-stats-tabs clearfix">
580: 
581:                                                     <div class="pt-panes clearfix">
582:                                                         <div class="pt-pane clearfix">
583: 
584:                                                             <div class="pt-row">
585:                                                                 <table class="goalieStats display"> <!-- goalies -->
586:                                                                     <thead>
587:                                                                         <tr>
588:                                                                             <th>#</th>
589:                                                                             <th>Goalkeepers</th>
590:                                                                             <th>SOG</th>
591:                                                                             <th>GA</th>
592:                                                                             <th>SV</th>
593:                                                                             <th>MIN</th>
594:                                                                         </tr>
595:                                                                     </thead>
596:                                                                     <tbody>
597: 
598:                                                                     </tbody>
599:                                                                 </table>
600:                                                             </div>
601: 
602:                                                             <div class="pt-row">
603:                                                                 <table class="startersStats display"> <!-- starters -->
604:                                                                     <thead>
605:                                                                         <tr>
606:                                                                             <th>#</th>
607:                                                                             <th>Starters</th>
608:                                                                             <th>Pos</th>
609:                                                                             <th>Sh</th>
610:                                                                             <th>Sog</th>
611:                                                                             <th>G</th>
612:                                                                             <th>A</th>
613:                                                                             <th class="dsCell">DS</th>
614:                                                                         </tr>
615:                                                                     </thead>
616:                                                                     <tbody>
617: 
618:                                                                     </tbody>
619:                                                                 </table>
620:                                                             </div>
621:                                                             <div class="pt-row">
622:                                                                 <table class="substitutesStats display"> <!-- substitutes -->
623:                                                                     <thead>
624:                                                                         <tr>
625:                                                                             <th>#</th>
626:                                                                             <th>Substitutes</th>
627:                                                                             <th>Pos</th>
628:                                                                             <th>Sh</th>
629:                                                                             <th>Sog</th>
630:                                                                             <th>G</th>
631:                                                                             <th>A</th>
632:                                                                             <th class="dsCell">DS</th>
633:                                                                         </tr>
634:                                                                     </thead>
635:                                                                     <tbody>
636:                                                                     </tbody>
637:                                                                 </table>
638:                                                             </div>
639: 
640:                                                         </div>
641:                                                     </div>
642:                                                 </div>
643:                                             </div>
644: 
645:                                         </div>
646:                                     </div>
647:                                     ## GRID CONTENT
648:                                 </div>
649:                                 ## INDIVISUAL STATS
650:                             </div>
651:                             ## GRID ROW ## GRID ROW
652:                             <div class="grid-row">
653: 								#set ($gridCounter = $gridCounter + 1)
654:                                 <div class="grid-col grid-col-gi grid-col${gridCounter}">
655:                                     <h3 id="game-info-title" class="grid-title">
656:                                         Game Information<span class="close">x</span>
657:                                     </h3>
658:                                     <div class="grid-content clearfix">
659:                                         <div class="pt-game-information clearfix">
660: 
661:                                             <div class="pt-row clearfix">
662:                                                 <center>
663:                                                 <div class="date-time pt-col">
664:                                                     <span id="gameInformationDate" class="date"></span>
665:                                                     <span id="gameInformationTime" class="time"></span>
666:                                                     <h3>Date & Time</h3>
667:                                                 </div>
668: 
669:                                                 <div class="game-location pt-col">
670:                                                     <span id="gameInformationLocation" class="location"></span>
671:                                                     <h3>Location</h3>
672:                                                 </div>
673: 
674:                                                 <div class="game-venue pt-col">
675:                                                     <span id="gameInformationVenue" class="venue"></span>
676:                                                     <h3>Venue</h3>
677:                                                 </div>
678: 
679:                                                 <div class="weather pt-col">
680: 
681:                                                     <div class="weather-condition">
682:                                                         <span id="gameInformationTemperature"
683:                                                             class="temp"></span>
684:                                                         <span id="gameInformationCondition" class="condition"></span>
685:                                                     </div>
686:                                                     <h3>Weather</h3>
687:                                                 </div>
688:                                                 </center>
689:                                             </div>
690: 
691:                                         </div>
692:                                     </div>
693:                                     ## GRID CONTENT
694:                                 </div>
695:                                 ## GENERAL INFORMATION
696:                             </div>
697:                             ## GRID ROW
698: 
699:                         </div>
700: 
701:                         ## PLAY BY PLAY TABS
702:                         <div id="pbp-tabs" class="pt-tabs-pane clearfix">
703: 
704:                             ## GRID ROW
705:                             <div class="grid-row">
706: 								#set ($gridCounter = $gridCounter + 1)
707:                                 <div class="grid-col grid-col-ds grid-col${gridCounter}">
708: 								<h3 id="play-by-play-title" class="grid-title">
709: 									Play by Play<span class="close">x</span>
710: 								</h3>                                	
711:                                     <div class="grid-content clearfix">
712:                                         <div id="playByPlay" class="clearfix">
713:                                             <select id="filterPeriod" class="dropdownFilter">
714:                                                 <option value="" selected>ALL PERIODS</option>
715:                                             </select>
716:                                             <select id="filterTeam" class="dropdownFilter">
717:                                                 <option value="" selected>BOTH TEAMS</option>
718:                                                 <option value="" class="team-name visitor-team-name"></option>
719:                                                 <option value="" class="team-name home-team-name"></option>
720:                                             </select>
721:                                             <select id="filterPlayType" class="dropdownFilter">
722:                                                 <option value="" selected>ALL PLAYS</option>
723:                                                 <option value="GOAL">Goal</option>
724:                                                 <option value="SHOT">Shot</option>
725:                                                 <option id="headerOption" value="HDR">Header</option>
726:                                                 <option id="cornerOption" value="CORNER">Corner</option>
727:                                                 <option value="FOUL">Foul</option>
728:                                                 <option id="offsideOption" value="OFFSIDE">Offside</option>
729:                                                 <option value="YC">Yellow Card</option>
730:                                                 <option value="RC">Red Card</option>
731:                                                 <option id="greenCardOption" value="GC">Green Card</option>
732:                                                 <option value="SUB">Substitution</option>
733:                                             </select>
734:                                         </div>
735:                                         <div class="pt-play-by-play clearfix">
736:                                             <table>
737:                                                 <thead>
738:                                                     <tr>
739:                                                         <th><span class="team-name visitor-team-name"></span><span>&nbsp;PLAYS</span></th>
740:                                                         <th>TIME</th>
741:                                                         <th>ACTION</th>
742:                                                         <th><span class="team-name home-team-name"></span><span>&nbsp;PLAYS</span></th>
743:                                                     </tr>
744:                                                 </thead>
745:                                                 <tbody>
746:                                                 </tbody>
747:                                             </table>
748:                                         </div>
749:                                     </div>
750:                                     ## GRID CONTENT
751:                                 </div>
752:                                 ## DRIVE SUMMARY
753:                             </div>
754:                             ## GRID ROW
755: 
756:                         </div>
757:                         ## PLAY BY PLAY TABS
758:                     </div>
759:                     ## PT TABS PANES
760:                 </div>
761:                 ## PRIME TIME GAME INFO 
762: 
763: 				</div> 
764: 				## GRID ROW CONTAINER
765: 
766:                 ## FOOTER
767:                 <div id="primetime-footer" class="grid-row">
768:                     <div class="grid-col grid-col-ftr">
769:                         <a href="/"></a>
770:                     </div>
771:                 </div>
772: 
773:             </div>
774:             ## PRIMTE TIME OVERFLOW
775:         </div>
776:         ## PRIME TIME WRAPPER
777:     #end
778:     
779:     #set ($showWiki = true)
780:     #set ($showWiki = $showWikiVar)
781:     #if ($showWiki == true)
782:         $wiki.su 
783:     #end
784:     ## END OF PRIMETIME	    
785: 
786: #else
787: ##COMMON FUNCTIONS
788: #macro (changeViewScript)
789: ## CORRECT WRONG VIEW WITH REPLACESTATE
790: <script type="text/javascript">
791:     $(function () {
792:         if (!$('.stats-tabs li.active').length) {
793:             if (history.replaceState) {
794:                 history.replaceState({}, '', '?view=' + $('.stats-tabs li:first').addClass('active').children('a').data('view'));
795:             } else {
796:                 $('.stats-tabs li:first').addClass('active');
797:             }
798:         }
799:     })
800: </script>
801: #end
802: 
803: #macro (printPdfHeader $title)
804: <div class="stats-fullbox clearfix">
805:     <table>
806:         <tr>
807:             <td class="align-center"><h4>$title</h4></td>
808:         </tr>
809:     </table>
810: </div>
811: #end
812: 
813: 
814: ##COMMON SOCCER FUNCTIONS
815: #macro (printPeriods $class)
816:     #foreach ($prd in $document.selectNodes("sogame/team[1]/linescore/lineprd"))
817:     <th $class>
818:         #if ($velocityCount >= 3)
819:             #if ($velocityCount == 3)
820:                 OT
821:             #elseif ($velocityCount == 5)
822:                 SO
823:             #else
824:                 ${tool.math.sub($velocityCount, 2)}OT
825:             #end
826:         #else
827:             $!velocityCount
828:         #end
829:     </th>
830:     #end
831: #end
832: 
833: 
834: 
835: ## DEFAULT VALUES
836: #set ($showPlayerMin = false)
837: 
838: ## PICK UP OPTIONS
839: #if ($website && $stats.view != "pdf")
840:     $website.include("options")
841: #end
842: #set ($options = $request.getAttribute("options"))
843: 
844: ## SET VARIABLES FROM OPTIONS
845: #set ($showPlayerMin = $options.get("boxscore_so_player_min"))
846: #if ($showPlayerMin == "show")#set ($showPlayerMin = true)#end
847: 
848: #set ($showWiki = true)
849: #set ($showWiki = $showWikiVar)
850: 
851: #if ($showWiki == true)
852: 	$!wiki.su 
853: #end
854: 
855: #if ($document.valueOf("sogame/@source") == 'DakStats Soccer')
856: 	#set ($isDakStats = true)
857: #else
858: 	#set ($isDakStats = false)
859: #end
860: 
861: #set ($showGoalDesc = $document.valueOf("sogame/venue/show/@goaldesc") == "1")
862: #set ($showFieldHockey = $document.valueOf("sogame/venue/show/@fhk") == "1")
863: #set ($shootoutScores = {"V" : 0, "H" : 0})
864: 
865: #set ($linkPlayers = $stats.linkPlayers)
866: #set ($linkPlayersBase = $stats.linkPlayersBase)
867: #set ($linkTeams = $stats.linkTeams)
868: #set ($linkTeamsBase = $stats.linkTeamsBase)
869: 
870: #macro (shootout $shootouts $t)
871: 	#set ($printVal = "")
872: 	#foreach ($shot in $shootouts)
873: 		#if ($shot.valueOf("@vh") == $t)
874: 			#set ($player = $shot.valueOf("@name"))
875: 			#set ($shotResult = ${shot.valueOf("@result")})
876: 			#set ($singlePrintVal = "$player - $shotResult")
877: 			#if ($shot.valueOf("@result") == "MADE")
878: 				#set ($score = $shootoutScores.get($t))
879: 				#set ($score = $tool.math.add($score, 1))
880: 				#set ($score = $shootoutScores.put($t, $score))
881: 			#end ## result
882: 			#if ($printVal.length() > 0) #set ($printVal = "${printVal}; ") #end
883: 			#set ($printVal = "${printVal} ${singlePrintVal}")			
884: 		#end ## if
885: 	#end ## foreach
886: 	$printVal
887: #end
888: 
889: #macro (period $p)
890: #if ($p == 1) 1st
891: #elseif ($p == 2) 2nd
892: #elseif ($p == 3) OT
893: #elseif ($p == 4) 2OT
894: #elseif ($p == 5) SO
895: #else $p
896: #end
897: #end
898: 
899: #set ($home = $document.valueOf("sogame/team[@vh='H']/@name"))
900: #set ($visitor = $document.valueOf("sogame/team[@vh='V']/@name"))
901: 
902: #set ($homeNode = $document.selectSingleNode("sogame/team[@vh='H']"))
903: #set ($visitorNode = $document.selectSingleNode("sogame/team[@vh='V']"))
904: 
905: ## RULES
906: #set ($periodRule = $document.valueOf("sogame/venue/rules/@periods"))
907: #set ($periodLength = $document.valueOf("sogame/venue/rules/@minutes"))
908: #set ($otPeriodLength = $document.valueOf("sogame/venue/rules/@minutesot"))
909: 
910: ## STATUS
911: #set ($status = $document.valueOf("sogame/status/@period"))
912: #set ($clock = $document.valueOf("sogame/status/@clock"))
913: #set ($compClock = $document.valueOf("sogame/status/@complementClock"))
914: 
915: ## FOULS
916: #set ($showFouls = false)
917: #if($showFieldHockey)
918: 	#set ($homeFouls =  $tool.math.toInteger($document.valueOf("sogame/team[@vh='H']/totals/penalty/@fouls")))
919: 	#set ($visitorFouls =  $tool.math.toInteger($document.valueOf("sogame/team[@vh='V']/totals/penalty/@fouls")))
920: 
921: 	#if($homeFouls > 0 || $visitorFouls > 0)
922: 	#set ($showFouls = true)
923: 	#end
924: #else 
925: 	#set ($showFouls = true) ## ALWAYS SHOW FOR SOCCER
926: #end
927: 
928: 
929: #macro (showTeam $team)
930: 
931: 	#if ($team.attributeValue("teamId").length() > 0 and $linkTeams)
932: 		<a href="$!linkTeamsBase?id=${team.attributeValue("teamId")}">
933: 	#end
934: 	$team.attributeValue("name")
935: 	#if ($team.attributeValue("teamId").length() > 0 and $linkTeams)
936: 		</a>
937: 	#end
938: 	 
939: #end
940: 
941: #if ($clock.length() > 0 && $clock != "90:00")
942:   #if ($periodRule.length() > 0 && $periodLength.length() > 0 && $otPeriodLength.length() > 0)
943:     #set ($normalTime = $tool.math.mul($periodRule, $periodLength))
944: 	#set ($extraTime = $tool.math.mul($otPeriodLength, 2))
945: 	#set ($totalTime = "$tool.math.mul($normalTime, $extraTime):00")
946: 	$totalTime
947:   #end
948: #end
949: 
950: #set ($periodRange = [1..$document.selectNodes("sogame/team[1]/linescore/lineprd").size()])
951: #set ($isNeutralGame = $documnt.valueOf("sogame/venue/@neutralgame"))
952: #if ($isNeutralGame.length() > 0 && $isNeutralGame.equals("Y"))
953:   #set ($isNeutralGame = true)
954: #else
955:   #set ($isNeutralGame = false)
956: #end
957: 
958: #set ($hasPlayByPlay = $document.selectNodes("sogame/plays/period").size() > 0)
959: 
960: ## GOALIE SHOTS
961: #macro (shots $ga $saves)
962: #if ($saves.length() > 0)
963:  $tool.math.add($ga, $saves)
964: #else
965: #end
966: #end
967: 
968: #set ($visname = $document.valueOf("sogame/venue/@visname"))
969: #set ($homename = $document.valueOf("sogame/venue/@homename"))
970: #set ($location = $document.valueOf("sogame/venue/@location"))
971: #set ($stadium = $document.valueOf("sogame/venue/@stadium"))
972: #set ($date = $document.valueOf("sogame/venue/@date"))
973: #set ($duration = $document.valueOf("sogame/venue/@duration"))
974: #set ($schedNote = $document.valueOf("sogame/venue/@schednote"))
975: #set ($attendance = $document.valueOf("sogame/venue/@attend"))
976: 
977: 
978: ##MOBILE VERSION
979: #if ($browser.getIphone() || $browser.getMobile())
980: 	
981: ## serve dependencies if missing
982: <script>
983: if (!$('link[href="/info/mobile/stats/mobile-stats.css"]').length) {
984:   $('head').eq(0).append('<link rel="stylesheet" type="text/css" href="/info/responsive-temp-mobile-stats.css" />');
985: }
986: 
987: if (typeof $.mobileSite === "undefined") {
988:   var script = document.createElement('script');
989:   script.src = "/info/mobile/mobile-js/mobile-site.js";
990:   $('body').eq(0).append(script);
991: }
992: 
993: if (typeof $LAB === "undefined") {
994:   var script = document.createElement('script');
995:   script.src = "/info/mobile/mobile-js/LAB.min.js";
996:   $('body').eq(0).append(script);
997: }
998: </script>
999: 
1000: #macro(totalCorners $team)
1001: 	#set ($totalCorners = 0)
1002: 	#foreach ($prd in $team.selectNodes("linescore/lineprd"))
1003: 		#set ($totalCorners = $tool.math.add($totalCorners, $prd.valueOf("@corners")))
1004: 	#end
1005: 	$totalCorners
1006: #end
1007: 
1008: #macro (totalSaves $team)
1009: 	#set ($runningTotal = 0)
1010: 	#foreach ($prd in $team.selectNodes("linescore/lineprd"))
1011: 		#set ($runningTotal = $tool.math.add($runningTotal, $prd.valueOf("@saves")))
1012: 	#end
1013: 	$runningTotal
1014: #end
1015: 
1016: #macro(penaltyTotals $team)
1017: 	$team.valueOf("totals/penalty/@red") red cards, 
1018: 	$team.valueOf("totals/penalty/@yellow") yellow cards#if ($showFieldHockey),#end
1019: 	#if ($showFieldHockey)
1020: 		$team.valueOf("totals/penalty/@green") green cards
1021: 	#end
1022: #end
1023: 
1024: #macro (printMobileHeader)
1025: <div class="teams">
1026: 	<div class="frame clearfix">
1027: 		<div class="team">
1028: 			$visitorNode.attributeValue("name")
1029: 		</div>
1030: 		<div class="versus">vs.</div>
1031: 		<div class="team right">
1032: 			$homeNode.attributeValue("name")
1033: 		</div>
1034: 	</div>
1035: </div>
1036: 
1037: <div class="board">
1038: 	<div class="frame clearfix">
1039: 		<div class="result">$visitorNode.valueOf("linescore/@score")</div>
1040: 		<div class="timer">
1041: 			#if ($stats.final)
1042: 				<div class="time">Final</div>
1043: 			#else 
1044: 				<div class="time">$clock - #period($status)</div>
1045: 			#end
1046: 		</div>
1047: 		<div class="result">$homeNode.valueOf("linescore/@score")</div>
1048: 	</div>
1049: </div>
1050: #end
1051: 
1052: <script type="text/javascript">
1053: 	mobileConf.page = 'boxscore';
1054: 	mobileConf.pageParams = {
1055: 		deepLinking : true
1056: 		#if ($stats.inProgress)
1057: 			, inprogress : true
1058: 		#end
1059: 	}
1060: </script>
1061: 
1062: <div class="swipe-header">
1063: 	<a href="#" id="swipe-left"></a>
1064: 	<a href="#" id="swipe-right"></a>
1065: 	<ul class="dot-nav">
1066: 		<li class="dot-nav-1 active"></li>
1067: 		<li class="dot-nav-2"></li>
1068: 		<li class="dot-nav-3"></li>
1069: 	</ul>
1070: </div>
1071: <!-- BEGING SCORE BOARD-->
1072: <div id="swipe-wrapper">
1073: <div id="live2" #if ($showFieldHockey) class="fh-stats" #else class="soccer-stats" #end>
1074:     <div class="swipe-screen" data-view="scoring">
1075:         <div class="score_board">
1076: 			
1077: 			#printMobileHeader()
1078: 			
1079:             <div class="table">
1080:                 <div class="frame">
1081:                     <div class="clearfix">
1082:                         <div class="cell cell_s">&#160;</div>
1083:                         <div class="cell cell_m">&#160;</div>
1084:                         <div class="cell cell_l title">SCORING</div>
1085:                         <div class="cell cell_m">&#160;</div>
1086:                         <div class="cell cell_s">&#160;</div>
1087:                     </div>
1088:                     #foreach ($i in $periodRange)
1089:                         <div class="clearfix">
1090:                             <div class="cell cell_s">&#160;</div>
1091:                             <div class="cell cell_m">$visitorNode.valueOf("linescore/lineprd[$i]/@score")</div>
1092:                             <div class="cell cell_l">#period($i)</div>
1093:                             <div class="cell cell_m">$homeNode.valueOf("linescore/lineprd[$i]/@score")</div>
1094:                             <div class="cell cell_s">&#160;</div>
1095:                         </div>
1096:                     #end
1097:                     
1098:                     <div class="clearfix">
1099:                         <div class="cell cell_s">&#160;</div>
1100:                         <div class="cell cell_m">$visitorNode.valueOf("linescore/@score")</div>
1101:                         <div class="cell cell_l">FINAL</div>
1102:                         <div class="cell cell_m">$homeNode.valueOf("linescore/@score")</div>
1103:                         <div class="cell cell_s">&#160;</div>
1104:                     </div>
1105:                 </div>
1106:             </div>
1107: 			#if ($lastPlay)
1108: 			<div class="recent">
1109:                 <div class="frame">
1110:                     <div class="toggle clearfix">
1111:                         <div class="title">LAST PLAY</div>
1112:                         <div class="arrow">
1113:                             <img src="/info/mobile/stats/images/arrow_down2.gif" class="recent_arrow_down" width="13" height="9"/>
1114:                             <img src="/info/mobile/stats/images/arrow_up2.gif" class="recent_arrow_up" style="display: none;" width="13" height="9"/>
1115:                         </div>
1116:                     </div>
1117: 					<div class="plays recent_plays" style="display: none;">
1118: 						<div class="play period">$!lastPlay.attributeValue("text")</div>
1119: 					</div>
1120:                 </div>
1121: 			</div>
1122: 			#end
1123: 			
1124:             <div class="recent">
1125:                 <div class="frame">
1126:                     <div class="toggle clearfix">
1127:                         <div class="title">Scoring Summary</div>
1128:                         <div class="arrow">
1129: 							<img height="9" width="13" class="recent_arrow_down" src="/info/mobile/stats/images/arrow_down2.gif" style="display: inline;">
1130: 							<img height="9" width="13" style="display: none;" class="recent_arrow_up" src="/info/mobile/stats/images/arrow_up2.gif">
1131: 						</div>
1132:                     </div>
1133: 					
1134: 					<div class="plays recent_plays" style="display: none;">
1135: 						## SCORING SUMMARY
1136: 						#foreach ($pd in $periodRange)
1137: 							#set ($shownStats = "")
1138: 							<div class="play period">
1139: 								#period($pd)
1140: 							</div>
1141: 						
1142: 							#foreach ($score in $document.selectNodes("sogame/scores/score"))
1143: 								#if ($pd == $score.valueOf("@prd"))
1144: 									#set ($shownStats = "y")
1145: 									<div class="play clearfix">
1146: 										<div class="time">
1147: 											$score.valueOf("@time")
1148: 										</div>
1149: 										<div class="text">
1150: 											<b>
1151: 											#if
1152: 												($score.valueOf("@vh") == 'H') $homeNode.attributeValue("name")
1153: 											#end
1154: 											#if
1155: 												($score.valueOf("@vh") == 'V') $visitorNode.attributeValue("name")
1156: 											#end
1157: 											</b>&#160; - &#160;
1158: 											#if ($score.valueOf("@type") == 'PP')<i>PP - </i>#end
1159: 											#if ($score.valueOf("@type") == 'SH')<i>SH - </i>#end
1160: 											#if ($score.valueOf("@type") == 'PS')<i>PS - </i>#end
1161: 											#if ($score.valueOf("@engoal") == 'Y')<i>EN - </i>#end
1162: 
1163: 											#if ($score.valueOf("@playerId").length() > 0 and $linkPlayers)
1164: 												<a href="$!linkPlayersBase?id=${score.valueOf("@playerId")}">
1165: 											#end
1166: 											#if($score.valueOf("@name").equalsIgnoreCase("team") && $hasPlayByPlay)
1167: 												#if($score.valueOf("@vh") == 'H') $visitorNode.attributeValue("name")#elseif($score.valueOf("@vh") == 'V') $homeNode.attributeValue("name")#end Own goal
1168: 											#else
1169: 												$score.valueOf("@name")
1170: 											#end
1171: 											#if ($score.valueOf("@playerId").length() > 0 and $linkPlayers)
1172: 												</a>
1173: 											#end
1174: 											
1175: 											#set ($scoreLabel = '')
1176: 											
1177: 											#if ($hasPlayByPlay && $gender == 'F')
1178: 												#set ($scoreTime = $score.valueOf("@time"))
1179: 												#set ($fpsFlag = false)
1180: 												#foreach ($fpsNode in $document.selectNodes("//play[@action='FPS']"))
1181: 													#if ($fpsNode.valueOf("@clock") == $scoreTime)
1182: 														#set ($fpsFlag = true)
1183: 													#end
1184: 												#end
1185: 												#if ($fpsFlag)
1186: 													#set ($scoreLabel = '(Free position shot)')
1187: 												#else
1188: 													#set ($scoreLabel = '(unassisted)')
1189: 												#end
1190: 											#elseif ($score.valueOf("@name") != "Team")
1191: 												#set ($scoreLabel = '(unassisted)')
1192: 											#end
1193:   
1194: 											<i>#if($score.valueOf("@assist1").length() > 0)
1195: 												#if ($score.valueOf("@assist1Id").length() > 0 and $linkPlayers)
1196: 													<a href="$!linkPlayersBase?id=${score.valueOf("@assist1Id")}">
1197: 												#end
1198: 												($score.valueOf("@assist1"))
1199: 												#if ($score.valueOf("@assist1Id").length() > 0 and $linkPlayers)
1200: 													</a>
1201: 												#end
1202: 											#else 
1203: 												$!scoreLabel 
1204: 											#end
1205: 											
1206: 											#if($score.valueOf("@assist2").length() > 0) 
1207: 												&amp; 
1208: 												#if ($score.valueOf("@assist2Id").length() > 0 and $linkPlayers)
1209: 													<a href="$!linkPlayersBase?id=${score.valueOf("@assist2Id")}">
1210: 												#end 
1211: 												($score.valueOf("@assist2"))
1212: 												#if ($score.valueOf("@assist2Id").length() > 0 and $linkPlayers)
1213: 													</a>
1214: 												#end
1215: 											#end</i>
1216: 											
1217: 											## SHOW GOAL DESCRIPTION
1218: 											#if($!score.valueOf("@desc").length() > 0)
1219: 												<br />$!score.valueOf("@desc")
1220: 											#else
1221: 												#set($scoreTime = $score.valueOf("@time"))
1222: 												#foreach ($play in $document.selectNodes("sogame/plays/period/play"))
1223: 													#if(($play.valueOf("@action") == "PENSHOT") && ($play.valueOf("@clock") == $scoreTime))
1224: 														<br />#if ($showFieldHockey)Penalty Stroke #else Penalty Kick #end
1225: 													#end
1226: 												#end
1227: 											#end
1228: 										</div>
1229: 									</div>
1230: 								#end
1231: 							#end
1232: 							#if ($shownStats == "")
1233: 								<div class="play clearfix center">(no scoring)</div>
1234: 							#end
1235: 						#end
1236: 						
1237: 						## SHOOTOUT
1238: 						#set ($shootouts = $document.selectNodes("sogame/shootouts/shootout"))
1239: 						#if ($shootouts.size() > 0)
1240: 						<div class="play period">SHOOTOUT</div>
1241: 							<div class="play clearfix">
1242: 								<div class="time">
1243: 									<strong>${visitor}:</strong>
1244: 								</div>
1245: 								<div class="text">
1246: 									#shootout($shootouts "V")
1247: 								</div>
1248: 							</div>
1249: 							<div class="play clearfix">
1250: 								<div class="time">
1251: 									<strong>${home}:</strong>
1252: 								</div>
1253: 								<div class="text">
1254: 									#shootout($shootouts "H")
1255: 								</div>
1256: 							</div>							
1257: 							<div class="play clearfix center">
1258: 							## SHOOTOUT RESULT
1259: 								#if ($shootoutScores.get("V") > $shootoutScores.get("H"))
1260: 									#set ($shootoutResult = ("$visitor wins shootout ${shootoutScores.get('V')} - ${shootoutScores.get('H')}"))
1261: 								#else
1262: 									#set ($shootoutResult = ("$home wins shootout ${shootoutScores.get('H')} - ${shootoutScores.get('V')}"))
1263: 								#end
1264: 								
1265: 								<strong>$shootoutResult</strong>
1266: 							</div>
1267: 						#end
1268: 					</div>
1269: 				</div>
1270: 			</div>
1271: 		</div>
1272: 	</div>
1273: 
1274: 		<!-- BEGING LINE UP -->
1275: 		<div class="swipe-screen" data-view="boxscore">
1276: 			#printMobileHeader()
1277: 			<div class="team_stats">
1278: 				<div class="teams clearfix"> 
1279: 					<div id="button-1" class="button clearfix active">
1280: 						<div class="team">$visitorNode.attributeValue("name")</div>
1281: 						<div class="end">
1282: 							<div>&#160;</div>
1283: 						</div>
1284: 					</div>
1285: 					<div id="button-2" class="button clearfix">
1286: 						<div class="team">$homeNode.attributeValue("name")</div>
1287: 						<div class="end">
1288: 							<div>&#160;</div>
1289: 						</div>
1290: 					</div>
1291: 	
1292: 					<!-- BEGING STATS -->
1293: 
1294: 					#macro (mobile_playerstats $team)
1295: 						<div class="titles clearfix">
1296: 							<div class="data" class="align-left">#</div>
1297: 							<div class="name">PLAYER</div>
1298: 							<div class="data">POS</div>
1299: 							<div class="data">SH</div>
1300:                             <div class="data">SOG</div>
1301: 							<div class="data">G</div>
1302: 							<div class="data">A</div>
1303: 							#if ($showFieldHockey)
1304: 								<div class="data">DS</div>
1305: 							#end			
1306: 						</div>
1307: 
1308: 						#foreach ($stat in $team.selectNodes("player/shots"))
1309: 
1310: 							<div class="row">
1311: 								<div class="toggle clearfix">
1312: 									<div class="data">$!stat.valueOf("../@uni")</div>
1313: 									<div class="name">
1314: 										#if ($stat.valueOf("../@playerId").length() > 0 and $linkPlayers)
1315: 											## <a href="$!linkPlayersBase?id=${stat.valueOf("../@playerId")}">
1316: 										#end
1317: 										$stat.valueOf("../@name")
1318: 										#if ($stat.valueOf("../@playerId").length() > 0 and $linkPlayers)
1319: 											## </a>
1320: 										#end
1321: 									</div>
1322: 									<div class="data">
1323: 										#if ($stat.valueOf("../@pos").length() > 0)
1324: 											$stat.valueOf("../@pos")
1325: 										#else
1326: 											&#160;
1327: 										#end
1328: 									</div>
1329: 									<div class="data">$!stat.valueOf("@sh")</div>
1330:                                     <div class="data">$!stat.valueOf("@sog")</div>
1331: 									<div class="data">$!stat.valueOf("@g")</div>
1332: 									<div class="data">$!stat.valueOf("@a")</div>
1333:                                     #if ($showFieldHockey)
1334: 										<div class="data">$!stat.valueOf("../misc/@dsave")</div>
1335: 									#end								
1336: 								</div>
1337: 							</div>
1338: 						#end
1339: 
1340: 						<div class="titles clearfix goalies">
1341: 							<div class="data">#</div>
1342: 							<div class="name">GOALIES</div>
1343: 							<div class="data">SOG</div>
1344: 							<div class="data">GA</div>
1345: 							<div class="data">SV</div>
1346: 							<div class="data">Min</div>	
1347: 						</div>
1348: 
1349: 						#foreach ($stat in $team.selectNodes("player/goalie"))
1350: 							<div class="row goalies">
1351: 								<div class="toggle clearfix">
1352: 									<div class="data">$!stat.valueOf("../@uni")</div>
1353: 									<div class="name">
1354: 										#if ($stat.valueOf("../@playerId").length() > 0 and $linkPlayers)
1355: 											## <a href="$!linkPlayersBase?id=${stat.valueOf("../@playerId")}">
1356: 										#end
1357: 										$stat.valueOf("../@name")
1358: 										#if ($stat.valueOf("../@playerId").length() > 0 and $linkPlayers)
1359: 											## </a>
1360: 										#end
1361: 									</div>
1362: 									## #set ($ga = $stat.numberValueOf("@ga") + $stat.numberValueOf("@eng"))
1363: 									<div class="data">#shots($stat.valueOf("@ga") $stat.valueOf("@saves"))</div>
1364: 									<div class="data">$stat.valueOf("@ga")</div>
1365: 									<div class="data">$!stat.valueOf("@saves")</div>
1366: 									<div class="data">$!stat.valueOf("@minutes")</div>
1367: 								</div>
1368: 							</div>
1369: 						#end
1370: 					#end
1371: 
1372: 					## VISITOR STATISTICS
1373: 					<div class="table hockey" id="table_team_stats_1">#mobile_playerstats($document.selectSingleNode("sogame/team[@vh='V']"))</div>
1374: 
1375: 					## HOME STATISTICS
1376: 					<div class="table hockey" id="table_team_stats_2" style="display: none">#mobile_playerstats($document.selectSingleNode("sogame/team[@vh='H']"))</div>
1377: 
1378: 					
1379: 					<!-- END STATS -->
1380: 				</div>
1381: 			</div>
1382: 		</div>
1383: 		<!-- END LINE UP -->
1384: 		<!-- BEGING TEAM STATS -->
1385: 		<div class="swipe-screen" data-view="summary">
1386: 			#printMobileHeader()
1387: 			<div class="line_up">
1388: 				<div class="table">
1389: 					<div class="frame">
1390: 						
1391: 						#if (! $isDakStats)
1392: 						<div class="clearfix">
1393: 							<div class="cell cell_s">&#160;</div>
1394: 							<div class="cell cell_m">&#160;</div>
1395: 							<div class="cell cell_l title">SHOTS</div>
1396: 							<div class="cell cell_m">&#160;</div>
1397: 							<div class="cell cell_s">&#160;</div>
1398: 						</div>
1399:                         #foreach ($i in $periodRange)
1400:                             <div class="clearfix">
1401:                                 <div class="cell cell_s">&#160;</div>
1402:                                 <div class="cell cell_m">$visitorNode.valueOf("linescore/lineprd[$i]/@shots")</div>
1403:                                 <div class="cell cell_l">#period($i)</div>
1404:                                 <div class="cell cell_m">$homeNode.valueOf("linescore/lineprd[$i]/@shots")</div>
1405:                                 <div class="cell cell_s">&#160;</div>
1406:                             </div>
1407:                         #end
1408: 						#end
1409:                         
1410: 						<div class="clearfix">
1411: 							<div class="cell cell_s">&#160;</div>
1412: 							#if ($isDakStats)
1413: 								<div class="cell cell_m">$visitorNode.valueOf('totals/shots/@sh')</div>
1414: 								<div class="cell cell_l title">SHOTS</div>
1415: 								<div class="cell cell_m">$homeNode.valueOf('totals/shots/@sh')</div>
1416: 							#else
1417: 								<div class="cell cell_m">$visitorNode.valueOf("linescore/@shots")</div>
1418: 								<div class="cell cell_l">TOTAL</div>
1419: 								<div class="cell cell_m">$homeNode.valueOf("linescore/@shots")</div>
1420: 							#end
1421: 							<div class="cell cell_s">&#160;</div>
1422: 						</div>
1423:                         
1424: 						##SAVES
1425: 						<div class="clearfix">
1426: 							<div class="cell cell_s">&#160;</div>
1427: 							<div class="cell cell_m">$visitorNode.valueOf("totals/goalie/@saves")</div>
1428: 							<div class="cell cell_l title">SAVES</div>
1429: 							<div class="cell cell_m">$homeNode.valueOf("totals/goalie/@saves")</div>
1430: 							<div class="cell cell_s">&#160;</div>
1431: 						</div>
1432: 						
1433: 						##Corner Kicks
1434: 						<div class="clearfix">
1435: 							<div class="cell cell_s">&#160;</div>
1436: 							<div class="cell cell_m">#totalCorners($visitorNode)</div>
1437: 							<div class="cell cell_l title">
1438: 								#if ($showFieldHockey)
1439: 									PENALTY CORNERS
1440: 								#else
1441: 									CORNER KICKS
1442: 								#end
1443: 							</div>
1444: 							<div class="cell cell_m">#totalCorners($homeNode)</div>
1445: 							<div class="cell cell_s">&#160;</div>
1446: 						</div>
1447: 
1448: 
1449:                         ##Fouls
1450: 					#if ($showFouls)                        
1451: 						<div class="clearfix">
1452: 							<div class="cell cell_s">&#160;</div>
1453: 							<div class="cell cell_m">$visitorNode.valueOf("totals/penalty/@fouls")</div>
1454: 							<div class="cell cell_l title">FOULS</div>
1455: 							<div class="cell cell_m">$homeNode.valueOf("totals/penalty/@fouls")</div>
1456: 							<div class="cell cell_s">&#160;</div>
1457: 						</div>
1458: 					#end
1459: 						
1460: 						 ##PENALTY TOTALS                        
1461: 						<div class="clearfix">
1462: 							<div class="cell cell_s">&#160;</div>
1463: 							<div class="cell cell_m">#penaltyTotals($visitorNode)</div>
1464: 							<div class="cell cell_l title">PENALTY TOTALS</div>
1465: 							<div class="cell cell_m">#penaltyTotals($homeNode)</div>
1466: 							<div class="cell cell_s">&#160;</div>
1467: 						</div>
1468: 					
1469: 					</div>
1470:             
1471:                     <div class="recent">
1472:                         <div class="frame">
1473:                             <div class="toggle clearfix">
1474:                                 <div class="play title">
1475: 									Cautions and Ejections
1476:                                      <div class="arrow">
1477:                                         <img src="/info/mobile/stats/images/arrow_down2.gif" class="recent_arrow_down" width="13" height="9"/>
1478:                                         <img src="/info/mobile/stats/images/arrow_up2.gif" class="recent_arrow_up" style="display: none;" width="13" height="9"/>
1479:                                     </div>
1480:                                 </div>
1481:                             </div>
1482:                                 <div class="recent_plays plays" style="display: none;">
1483:                                     #foreach ($pd in $periodRange)
1484:                                         #set ($shownStats = "")
1485:                                         <div class="play period">#period($pd)</div>
1486:                                         #foreach ($penalty in $document.selectNodes("sogame/penalties/pen"))
1487:                                             #if ($pd == $penalty.valueOf("@prd"))
1488:                                                 #set ($shownStats = "y")
1489:                                                 <div class="play clearfix">
1490:                                                     <div class="time">$penalty.valueOf("@time")</div>
1491:                                                     <div class="text">
1492:                                                         <b>
1493:                                                             #if($penalty.valueOf("@vh") == 'H') $homeNode.attributeValue("name") #end
1494:                                                             #if($penalty.valueOf("@vh") == 'V') $visitorNode.attributeValue("name") #end
1495:                                                         </b> &#160; - &#160; 
1496: 														#if ($penalty.valueOf("@type").length() > 0)
1497: 															#if ($penalty.valueOf("@type").contains('GREEN'))<i>Green card - </i>#end
1498: 															#if ($penalty.valueOf("@type").contains('YELLOW'))<i>Yellow card - </i>#end
1499: 															#if ($penalty.valueOf("@type").contains('RED'))<i>Red card - </i>#end
1500: 														#end
1501:                                                         $penalty.valueOf("@name") $!penalty.valueOf("@desc")
1502:                                                     </div>
1503:                                                 </div>
1504:                                             #end
1505:                                         #end
1506:                                         #if ($shownStats == "")
1507:                                             <div class="row sub_title"><i>No penalties</i></div>
1508:                                         #end
1509:                                     #end
1510:                                 </div>
1511:                         </div>
1512:                     </div>
1513: 
1514:                     <div class="recent">
1515:                         <div class="frame">
1516:                             <div class="other">
1517:                                 <div class="toggle clearfix">
1518:                                     <div class="row title">
1519:                                         Other Information
1520:                                          <div class="arrow">
1521:                                             <img src="/info/mobile/stats/images/arrow_down2.gif" class="recent_arrow_down" width="13" height="9"/>
1522:                                             <img src="/info/mobile/stats/images/arrow_up2.gif" class="recent_arrow_up" style="display: none;" width="13" height="9"/>
1523:                                         </div>
1524:                                     </div>
1525:                                 </div>
1526:                                 
1527:                                 <div class="recent_plays plays" style="display: none;">
1528:                                     <div class="row clearfix">
1529:                                         <div class="data">Stadium</div>
1530:                                         <div class="text">$document.valueOf("sogame/venue/@stadium")</div>
1531:                                     </div>
1532: 									<div class="row clearfix">
1533:                                         <div class="data">Location</div>
1534:                                         <div class="text">$document.valueOf("sogame/venue/@location")</div>
1535:                                     </div>
1536: 									#if($schedNote.length() > 0)
1537: 									<div class="row clearfix">
1538:                                         <div class="data">Note</div>
1539:                                         <div class="text">$schedNote</div>
1540:                                     </div>
1541: 									#end									
1542:                                     <div class="row clearfix">
1543:                                         <div class="data">Game Length</div>
1544:                                         <div class="text">$document.valueOf("sogame/venue/@duration")</div>
1545:                                     </div>
1546:                                     <div class="row clearfix">
1547:                                         <div class="data">Attendance</div>
1548:                                         <div class="text">$document.valueOf("sogame/venue/@attend")</div>
1549:                                     </div>
1550:                                         <div class="row title">Officials and game personnel</div>
1551:                                     #foreach ($official in $document.selectNodes("sogame/venue/officials/official"))
1552:                                         <div class="row clearfix">
1553:                                             <div class="data">$official.valueOf("@title")</div>
1554:                                             <div class="text">$official.valueOf("@name")</div>
1555:                                         </div>
1556:                                     #end
1557:                                 </div>
1558:                             </div>
1559:                         </div>
1560:                     </div>
1561: 				</div>
1562: 			</div>
1563: 		</div>
1564: 	</div>
1565: </div>
1566: 
1567: #set ($showWiki = true)
1568: #set ($showWiki = $showWikiVar)
1569: 
1570: #if ($showWiki == true)
1571: 	$!wiki.su 
1572: #end
1573: 
1574: 
1575: 
1576: #else
1577: ##WEBSITE VERSION
1578: 
1579:     #if ($stats.view != "pdf")
1580:         #set ($showWiki = true)
1581:         #set ($showWiki = $showWikiVar)
1582: 
1583:         #if ($showWiki == true)
1584:             $!wiki.su
1585:         #end
1586:     #end
1587: 
1588:     <html>
1589:         <head>
1590:             <title>$visname #if($isNeutralGame)vs.#else at #end $homename | Box Score #if($date.length() > 0)| $date #end</title>
1591: 
1592:             #if ($stats.inProgress)
1593:                 <meta http-equiv="refresh" content="60"/>
1594:             #end
1595:             #if ($stats.view == "pdf")
1596:                 #include("statcrew-pdf-css-template")
1597:             #end
1598:         </head>
1599:         <body>
1600: 
1601:             #if ($stats.view == "pdf")
1602:                 <div class='footer-left'>$visname vs. $homename</div>
1603:                 <div class='footer-right'><span id="pagenumber"></span> of <span
1604:                         id="pagecount"></span></div>
1605:             #end
1606: 
1607:             <div class="stats-wrapper clearfix">
1608: 
1609: 
1610:             #if ($stats.view != "pdf")
1611:                 ## GAME INFORMATION
1612:                 <div class="align-center">
1613:                     <strong>$visitor vs. $home</strong> at $document.valueOf("sogame/venue/@location")<br />
1614:                     $document.valueOf("sogame/venue/@date") at $document.valueOf("sogame/venue/@start")<br />
1615:                     $document.valueOf("sogame/venue/@schednote")
1616:                 </div>
1617:                 <br />
1618: 
1619:                 ## TEAM SCORES
1620:                 <table class="all-center">
1621:                   <tr>
1622:                     #foreach ($team in $document.selectNodes("sogame/team"))
1623:                      <td>
1624:                      #if ($team.attributeValue("teamId").length() > 0 and $linkTeams)
1625:                      <a href="$!linkTeamsBase?id=${team.attributeValue("teamId")}">
1626:                      #end
1627:                      <span class="stats-header">$team.attributeValue("name")</span>
1628:                      #if ($team.attributeValue("teamId").length() > 0 and $linkTeams)
1629:                      </a>
1630:                      #end
1631:                      <br /><span class="stats-header">$team.valueOf("linescore/@score")</span>
1632:                      </td>
1633:                     #end
1634:                   </tr>
1635:                 </table>
1636: 
1637:                 ## PERIOD SUMMARY
1638:                 <div class="stats-fullbox clearfix">
1639:                 <table>
1640:                     <tr>
1641:                         <th class="align-left">SCORING</th>
1642:                         #printPeriods('style="width:40px"')
1643:                         <th style="width:60px">
1644:                             #if ($stats.final)
1645:                                 FINAL
1646:                             #elseif ($stats.inProgress)
1647:                                 #period($!status)- $!compClock
1648:                             #end
1649:                         </th>
1650:                     </tr>
1651: 
1652:                     #foreach ($team in $document.selectNodes("sogame/team"))
1653:                     <tr>
1654:                         #if ($team.valueOf("@record").length() > 0)
1655:                         <td>$team.valueOf("@name") ($team.valueOf("@record"))</td>
1656:                         #else
1657:                         <td>$team.valueOf("@name")</td>
1658:                         #end
1659:                         #foreach ($prd in $team.selectNodes("linescore/lineprd"))
1660:                         <td class="align-center">$prd.valueOf("@score")</td>
1661:                         #end
1662:                         <td class="align-center">$team.valueOf("linescore/@score")</td>
1663:                     </tr>
1664:                     #end
1665:                 </table>
1666:                 </div>
1667:                 ## PERIOD SUMMARY END
1668: 
1669:                 #if ($stats.pageUrl.length() > 0 && !$stats.pageUrl.contains("?"))
1670:                     #set ($paramSep = "?")
1671:                 #else
1672:                     #set ($paramSep = "&")
1673:                 #end
1674: 
1675:                 ## TABS
1676:                 <div class="stats-tabs clearfix">
1677:                 <ul class="clearfix">
1678:                     <li #if (!($stats.view.length() > 0) || $stats.view == "boxscore") class="active" #end><a href="${stats.pageUrl}" data-view="boxscore">Box Score</a></li>
1679:                     #if ($hasPlayByPlay)
1680:                       <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>
1681:                     #end
1682:                     <li><a href="$stats.pageUrl${paramSep}tmpl=soxml-monospace-template" target="_blank">Coach's View</a></li>
1683:                     #*
1684:                     #if ($showFieldHockey)
1685:                         <li><a href="$stats.pageUrl${paramSep}tmpl=fhxml-monospace-template" target="_blank">Coach's View</a></li>
1686:                     #else
1687:                         <li><a href="$stats.pageUrl${paramSep}tmpl=soxml-monospace-template" target="_blank">Coach's View</a></li>
1688:                     #end
1689:                     *#
1690:                 </ul>
1691:                 </div>
1692:                 ## TABS END
1693:             #end
1694: 
1695:             #macro (printTabPlayByPlay)
1696:                 ## PLAY BY PLAY
1697: 
1698:                 #macro (printPlays $prd)
1699:                     #set ($prdCount = $prd.valueOf("@number"))
1700:                     <tr><th colspan="2" class="align-left"><span id="prd${prdCount}">
1701:                         #period($prdCount)</span></th></tr>
1702:                     <tr class="stats-highlight">
1703:                         <td class="align-center"><span class="bold">Time</span></td>
1704:                         <td class="align-center"><span class="bold">Play</span></td>
1705:                     </tr>
1706:                     #set ($i = 0)
1707:                     #set ($playNodes = $prd.selectNodes("*"))
1708:                     #foreach ($play in $playNodes)
1709:                         #set ($nodeName = $play.getName())
1710:                         #if ($nodeName == "play" && !$play.valueOf("@action").equalsIgnoreCase("goalmsg"))
1711:                             #set ($i = $i + 1)
1712:                             #if ($i % 2 == 0)
1713:                                 #set ($row = "even")
1714:                             #else
1715:                                 #set ($row = "odd")
1716:                             #end
1717: 
1718:                             #if ($play.valueOf("@action").equalsIgnoreCase("goal"))
1719:                             <tr class="${row} highlight bold">
1720:                                 <td class="align-center">$play.valueOf("@clock")</td>
1721:                                 #set ($printValue = $play.valueOf("@text"))
1722:                                 #if ($playNodes.size() > $tool.math.add($velocityCount, 1) && $playNodes.get($tool.math.add($velocityCount, 1)).valueOf("@action").equalsIgnoreCase("goalmsg"))
1723:                                     #set ($goalMsg = $playNodes.get($tool.math.add($velocityCount, 1)).valueOf("@text"))
1724:                                     #set ($printValue = "${printValue} ${goalMsg}")
1725:                                 #end
1726:                                 <td>$printValue</td>
1727:                             </tr>
1728:                             #elseif ($play.valueOf("@action").equalsIgnoreCase("shootout"))
1729:                                 #if(!$shootoutHeader)<tr><th colspan="2">SHOOTOUT</th></tr>#end
1730:                                 #set($shootoutHeader = "true")
1731:                             <tr class="${row}">
1732:                                 <td class="align-center"></td>
1733:                                 <td>$play.valueOf("@text")</td>
1734:                             </tr>
1735:                             #else
1736:                             <tr class="${row}">
1737:                                 <td class="align-center">$play.valueOf("@clock")</td>
1738:                                 <td>$play.valueOf("@text")</td>
1739:                             </tr>
1740:                             #end
1741:                         #elseif ($nodeName == "currentscore")
1742:                         <tr class="stats-highlight">
1743:                             <td colspan="2" class="align-center bold">Score: $visitor $play.valueOf("@vscore") - $home $play.valueOf("@hscore")</td>
1744:                         </tr>
1745:                         #end
1746:                     #end
1747:                 #end ## ends printPlays
1748: 
1749:                 <div class="stats-fullbox clearfix">
1750:                     <table>
1751:                         #if ($stats.view != "pdf")
1752:                             <tr>
1753:                                 <td colspan="2">
1754:                                     <span class="bold">Period: </span>
1755:                                     #foreach ($p in [1..$document.selectNodes("sogame/plays/period").size()])
1756:                                         #if ($velocityCount > 1) | #end
1757:                                         <a href="#prd${p}">#period($p)</a>
1758:                                     #end
1759:                                 </td>
1760:                             </tr>
1761:                         #end
1762:                         #foreach ($playPeriod in $document.selectNodes("sogame/plays/period"))
1763:                             #printPlays ($playPeriod)
1764:                         #end
1765:                     </table>
1766:                 </div>
1767:             #end
1768: 
1769:             #macro (printTabBoxscore)
1770:                 ## BOX SCORE
1771: 
1772:                 ## SCORING SUMMARY
1773:                 <div class="stats-fullbox clearfix">
1774:                     <table>
1775:                         <tr><th colspan="4" class="align-left">Scoring
1776:                             Summary</th></tr>
1777:                         #foreach ($pd in $periodRange)
1778:                             #set ($shownStats = "")
1779:                             <tr class="stats-highlight"><td colspan="4" class="align-center bold">-- #period($pd) -- </td></tr>
1780: 
1781:                             #foreach ($score in $document.selectNodes("sogame/scores/score"))
1782:                                 #if ($pd == $score.valueOf("@prd"))
1783:                                     #set ($shownStats = "y")
1784:                                     <tr>
1785:                                         <td>
1786:                                             #if($score.valueOf("@vh") == 'H') $home #end
1787:                         #if($score.valueOf("@vh") == 'V') $visitor #end
1788:                                         </td>
1789:                                         <td>$score.valueOf("@time")</td>
1790:                                         <td>
1791:                                             #if ($score.valueOf("@playerId").length() > 0 and $linkPlayers)
1792:                                             <a href="$!linkPlayersBase?id=${score.valueOf("@playerId")}">
1793:                                             #end
1794:                                             #if($score.valueOf("@name").equalsIgnoreCase("team") && $hasPlayByPlay)
1795:                                                 #if($score.valueOf("@vh") == 'H') $visitorNode.attributeValue("name")#elseif($score.valueOf("@vh") == 'V') $homeNode.attributeValue("name")#end Own goal
1796:                                             #else
1797:                                                 $score.valueOf("@name")
1798:                                             #end
1799:                                             #if ($score.valueOf("@playerId").length() > 0 and $linkPlayers)
1800:                                             </a>
1801:                                             #end
1802: 
1803:                                             #if ($score.valueOf("@seasong").length() > 0) (${score.valueOf("@seasong")}) #end
1804: 
1805:                                             #if($score.valueOf("@assist1").length() > 0)
1806:                                                 #if ($score.valueOf("@assist1Id").length() > 0 and $linkPlayers)<a href="$!linkPlayersBase?id=${score.valueOf("@assist1Id")}">#end
1807:                                                 #if ($score.valueOf("@assist2").length() > 0)
1808:                                                     ($score.valueOf("@assist1")
1809:                                                 #else
1810:                                                     ($score.valueOf("@assist1"))
1811:                                                 #end
1812:                                                 #if ($score.valueOf("@assist1Id").length() > 0 and $linkPlayers)</a>#end
1813:                                             #elseif ($score.valueOf("@name") != "Team")
1814:                                                 (unassisted)
1815:                                             #end
1816:                                             #if($score.valueOf("@assist2").length() > 0)
1817:                                                 &amp;
1818:                                                 #if ($score.valueOf("@assist2Id").length() > 0 and $linkPlayers)<a href="$!linkPlayersBase?id=${score.valueOf("@assist2Id")}">#end
1819:                                                 $score.valueOf("@assist2"))
1820:                                                 #if ($score.valueOf("@assist2Id").length() > 0 and $linkPlayers)</a>#end
1821:                                             #end
1822:                                         </td>
1823:                                         #if ($showGoalDesc)
1824:                                             <td>
1825:                                                 #if($!score.valueOf("@desc").length() > 0)
1826:                                                     $!score.valueOf("@desc")
1827:                                                 #else
1828:                                                     #set($scoreTime = $score.valueOf("@time"))
1829:                                                     #foreach ($play in $document.selectNodes("sogame/plays/period/play"))
1830:                                                         #if(($play.valueOf("@action") == "PENSHOT") && ($play.valueOf("@clock") == $scoreTime))
1831:                                                             #if ($showFieldHockey)Penalty Stroke #else Penalty Kick #end
1832:                                                         #end
1833:                                                     #end
1834:                                                 #end
1835:                                             </td>
1836:                                         #end
1837:                                     </tr>
1838:                                 #end ## if
1839:                             #end ## scoring foreach
1840: 
1841:                             #if ($shownStats == "")
1842:                                 <tr><td colspan="4" class="align-center">(no scoring)</td></tr>
1843:                             #end
1844:                         #end ## period range
1845: 
1846:                     ## SHOOTOUT
1847:                         #set ($shootouts = $document.selectNodes("sogame/shootouts/shootout"))
1848:                         #if ($shootouts.size() > 0)
1849:                             <tr>
1850:                                 <th colspan="4">SHOOTOUT</th>
1851:                             </tr>
1852:                             <tr>
1853:                                 <td colspan="4">
1854:                                     <strong>${visitor}:</strong>
1855:                                     #shootout($shootouts "V")
1856:                                     <br />
1857:                                     <strong>${home}:</strong>
1858:                                     #shootout($shootouts "H")
1859:                                     <br />
1860:                                     #if ($shootoutScores.get("V") > $shootoutScores.get("H"))
1861:                                         #set ($shootoutResult = ("$visitor wins shootout ${shootoutScores.get('V')} - ${shootoutScores.get('H')}"))
1862:                                     #else
1863:                                         #set ($shootoutResult = ("$home wins shootout ${shootoutScores.get('H')} - ${shootoutScores.get('V')}"))
1864:                                     #end
1865:                                     <strong>$shootoutResult</strong>
1866:                                 </td>
1867:                             </tr>
1868:                         #end
1869:                     </table>
1870:                 </div>
1871:                 ## SCORING SUMMARY END
1872: 
1873: 
1874:                 ## TEAM SUMMARY
1875:                     #macro (playerstats $team)
1876: 
1877:                         #set ($colspan = 7)
1878:                         #if ($showFieldHockey)
1879:                             #set ($colspan = $colspan +1)
1880:                         #end
1881:                         #if ($showPlayerMin == true)
1882:                             #set ($colspan = $colspan +1)
1883:                         #end
1884: 
1885:                     <table>
1886:                         <tr><td class="align-center" colspan="$colspan"><h4>$team.valueOf("@name")</h4></td></tr>
1887:                         <tr>
1888:                             <th class="align-left">#</th>
1889:                             <th>PLAYER</th>
1890:                             <th>POS</th>
1891:                             <th>SH</th>
1892:                             <th>SOG</th>
1893:                             <th>G</th>
1894:                             <th>A</th>
1895:                             #if ($showFieldHockey)<th>DS</th>#end
1896:                             #if ($showPlayerMin == true)<th>MIN</th>#end
1897:                         </tr>
1898: 
1899:                         #foreach ($stat in $team.selectNodes("player[@gp='1']/shots"))
1900: 
1901:                             #if ($velocityCount % 2 == 0)
1902:                                 #set ($row = "even")
1903:                             #else
1904:                                 #set ($row = "odd")
1905:                             #end
1906: 
1907:                             <tr class="$row">
1908:                                 <td>$!stat.valueOf("../@uni")</td>
1909:                                 <td class="nowrap">
1910:                                     #if ($stat.valueOf("../@playerId").length() > 0 and $linkPlayers)
1911:                                     <a href="$!linkPlayersBase?id=${stat.valueOf("../@playerId")}">
1912:                                     #end
1913:                                     $stat.valueOf("../@name")
1914:                                     #if ($stat.valueOf("../@playerId").length() > 0 and $linkPlayers)
1915:                                     </a>
1916:                                     #end
1917:                                     #if ($stat.valueOf("../@gs") == "1")
1918:                                         *
1919:                                     #end
1920:                                 </td>
1921:                                 <td class="align-center">$stat.valueOf("../@pos")</td>
1922:                                 <td class="align-center">$!stat.valueOf("@sh")</td>
1923:                                 <td class="align-center">$!stat.valueOf("@sog")</td>
1924:                                 <td class="align-center">$!stat.valueOf("@g")</td>
1925:                                 <td class="align-center">$!stat.valueOf("@a")</td>
1926:                                 #if ($showFieldHockey)<td class="align-center">$!stat.valueOf("../misc/@dsave")</td>#end
1927:                                 #if ($showPlayerMin == true)<td class="align-center">$!stat.valueOf("../misc/@minutes")</td>#end
1928:                             </tr>
1929:                         #end
1930: 
1931:                         <tr class="stats-highlight totals">
1932:                             <td colspan="3">TOTALS</td>
1933:                             #set ($statTotals = $team.selectSingleNode("totals/shots"))
1934:                             <td class="align-center">$!statTotals.valueOf("@sh")</td>
1935:                             <td class="align-center">$!statTotals.valueOf("@sog")</td>
1936:                             <td class="align-center">$!statTotals.valueOf("@g")</td>
1937:                             <td class="align-center">$!statTotals.valueOf("@a")</td>
1938:                             #if ($showFieldHockey)<td class="align-center">$!statTotals.valueOf("../misc/@dsave")</td>#end
1939:                             #if ($showPlayerMin == true)<td class="align-center">$!statTotals.valueOf("../misc/@minutes")</td>#end
1940:                         </tr>
1941: 
1942:                         <tr>
1943:                             <th class="align-left">#</th>
1944:                             <th>GOALIES</th>
1945:                             <th>&#160;</th>
1946:                             #if ($showPlayerMin == true)<th>&#160;</th>#end
1947:                             <th>SOG</th>
1948:                             <th>GA</th>
1949:                             <th>SV</th>
1950:                             #if ($showFieldHockey)<th>&#160;</th>#end
1951:                             <th>Min</th>
1952:                         </tr>
1953: 
1954:                         #foreach ($stat in $team.selectNodes("player/goalie"))
1955:                             <tr>
1956:                                 <td>$!stat.valueOf("../@uni")</td>
1957:                                 <td class="nowrap">
1958:                                     #if ($stat.valueOf("../@playerId").length() > 0 and $linkPlayers)
1959:                                     <a href="$!linkPlayersBase?id=${stat.valueOf("../@playerId")}">
1960:                                     #end
1961:                                     $stat.valueOf("../@name")
1962:                                     #if ($stat.valueOf("../@playerId").length() > 0 and $linkPlayers)
1963:                                     </a>
1964:                                     #end
1965: 
1966:                                     #if($stat.valueOf("@win").length() > 0)<span>(W, $stat.valueOf("@win"))</span>#end
1967:                                     #if($stat.valueOf("@loss").length() > 0)<span>(L, $stat.valueOf("@loss"))</span>#end
1968:                                     #if($stat.valueOf("@tie").length() > 0)<span>(T, $stat.valueOf("@tie"))</span>#end
1969:                                 </td>
1970:                                 <td class="align-center">$!formatter.formatNumber($ga, "#")</td>
1971:                                 #if ($showPlayerMin == true)<td>&#160;</td>#end
1972:                                 <td class="align-center">#shots($stat.valueOf("@ga") $stat.valueOf("@saves"))</td>
1973:                                 <td class="align-center">$stat.valueOf("@ga")</td>
1974:                                 <td class="align-center">$!stat.valueOf("@saves")</td>
1975:                                 #if ($showFieldHockey)<td>&#160;</td>#end
1976:                                 <td class="align-center">$!stat.valueOf("@minutes")</td>
1977:                             </tr>
1978:                         #end
1979: 
1980:                         #if ($team.selectNodes("player/goalie").size() > 1) ## if more than one goalie appeared show totals
1981:                             <tr class="stats-highlight totals">
1982:                                 <td colspan="2">TOTALS</td>
1983:                                 #set ($goalieTotals = $team.selectSingleNode("totals/goalie"))
1984:                                 <td class="align-center">$!formatter.formatNumber($goalieTotals.valueOf("@ga"), "#")</td>
1985:                                 #if ($showPlayerMin == true)<td>&#160;</td>#end
1986:                                 <td class="align-center">#shots($goalieTotals.valueOf("@ga") $goalieTotals.valueOf("@saves"))</td>
1987:                                 <td class="align-center">$!goalieTotals.valueOf("@ga")</td>
1988:                                 <td class="align-center">$!goalieTotals.valueOf("@saves")</td>
1989:                                 #if ($showFieldHockey)<td>&#160;</td>#end
1990:                                 <td class="align-center">$!goalieTotals.valueOf("@minutes")</td>
1991:                             </tr>
1992:                         #end
1993:                     </table>
1994:                     #end ##macro
1995: 
1996: 
1997:                 <div class="clearfix">
1998:                 ## VISITOR STATISTICS
1999:                     <div class="stats-fullbox">#playerstats($document.selectSingleNode("sogame/team[@vh='V']"))</div>
2000:                 ## HOME STATISTICS
2001:                     <div class="stats-fullbox">#playerstats($document.selectSingleNode("sogame/team[@vh='H']"))</div>
2002:                 </div>
2003: 
2004:                     #if ($isDakStats)
2005: 
2006:                     <div class="stats-fullbox details clearfix">
2007:                         <table class="all-center"><tbody><tr>
2008:                             <th style="width:33%">#showTeam($visitorNode)</th>
2009:                             <th style="width:34%">Team Statistics</th>
2010:                             <th>#showTeam($homeNode)</th>
2011:                         </tr>
2012:                         <tr class="odd">
2013:                             <td >$visitorNode.valueOf('totals/shots/@sh')</td>
2014:                             <td class="totals">SHOTS</td>
2015:                             <td>$homeNode.valueOf('totals/shots/@sh')</td>
2016:                         </tr>
2017:                         <tr class="even">
2018:                         ##<td>#totalSaves($visitorNode)</td>
2019:                             <td>$visitorNode.valueOf("totals/goalie/@saves")</td>
2020:                             <td class="totals">SAVES</td>
2021:                         ##<td>#totalSaves($homeNode)</td>
2022:                             <td>$homeNode.valueOf("totals/goalie/@saves")</td>
2023:                         </tr>
2024:                         <tr class="odd">
2025:                             <td>#totalCorners($visitorNode)</td>
2026:                             <td class="totals">#if ($showFieldHockey) PENALTY CORNERS #else CORNER KICKS #end</td>
2027:                             <td>#totalCorners($homeNode)</td>
2028:                         </tr>
2029:                             #if ($showFouls)
2030:                             <tr class="even">
2031:                                 <td>$visitorNode.valueOf("totals/penalty/@fouls")</td>
2032:                                 <td class="totals">FOULS</td>
2033:                                 <td>$homeNode.valueOf("totals/penalty/@fouls")</td>
2034:                             </tr>
2035:                             #end
2036:                         </tbody></table>
2037:                     </div>
2038: 
2039:                     #else
2040: 
2041:                     <div class="clearfix">
2042:                     ## SHOTS BY PERIOD
2043:                         <div class="stats-halfbox-left">
2044:                             <table>
2045:                                 <tr>
2046:                                     <th class="align-left">SHOTS</th>
2047:                                     #printPeriods('style="width:40px"')
2048:                                     <th style="width:50px">TOTAL</th>
2049:                                 </tr>
2050: 
2051:                                 #foreach ($team in $document.selectNodes("sogame/team"))
2052:                                     <tr>
2053:                                         <td>$team.valueOf("@name")</td>
2054:                                         #foreach ($prd in $team.selectNodes("linescore/lineprd"))
2055:                                             <td class="align-center">$prd.valueOf("@shots")</td>
2056:                                         #end
2057:                                         <td class="align-center">$team.valueOf("linescore/@shots")</td>
2058:                                     </tr>
2059:                                 #end
2060:                             </table>
2061:                         </div>
2062:                     ## SHOTS BY PERIOD END
2063: 
2064:                     ## SAVES
2065:                         <div class="stats-halfbox-right">
2066:                             <table>
2067:                                 <tr>
2068:                                     <th class="align-left">SAVES</th>
2069:                                     #printPeriods('style="width:40px"')
2070:                                     <th style="width:50px">TOTAL</th>
2071:                                 </tr>
2072: 
2073:                                 #foreach ($team in $document.selectNodes("sogame/team"))
2074:                                     #set ($runningTotal = 0)
2075:                                     <tr>
2076:                                         <td>$team.valueOf("@name")</td>
2077:                                         #foreach ($prd in $team.selectNodes("linescore/lineprd"))
2078:                                             <td class="align-center">$prd.valueOf("@saves")</td>
2079:                                             #set ($runningTotal = $tool.math.add($runningTotal, $prd.valueOf("@saves")))
2080:                                         #end
2081:                                         <td class="align-center">$runningTotal</td>
2082:                                     </tr>
2083:                                 #end
2084:                             </table>
2085:                         </div>
2086:                     ## SAVES END
2087:                     </div>
2088: 
2089:                     <div class="clearfix">
2090:                         <div class="stats-halfbox-left">
2091:                             <table>
2092:                                 #if ($showFieldHockey)
2093:                                 ## PERIOD SUMMARY - PENALTY CORNERS
2094:                                     <tr>
2095:                                         <th class="align-left">PENALTY CORNERS</th>
2096:                                         #printPeriods('style="width:40px"')
2097:                                         <th style="width:50px">TOTAL</th>
2098:                                     </tr>
2099: 
2100:                                 ## team corners, which have to be manually added up
2101:                                     #foreach ($team in $document.selectNodes("sogame/team"))
2102:                                         #set ($totalCorners = 0)
2103:                                         <tr>
2104:                                             <td>$team.attributeValue("name")</td>
2105:                                             #foreach ($prd in $team.selectNodes("linescore/lineprd"))
2106:                                                 #set ($totalCorners = $tool.math.add($totalCorners, $prd.valueOf("@corners")))
2107:                                                 <td class="align-center">$prd.valueOf("@corners")</td>
2108:                                             #end
2109:                                             <td class="align-center">$totalCorners</td>
2110:                                         </tr>
2111:                                     #end
2112:                                 #else
2113:                                 ## PERIOD SUMMARY - CORNER KICKS
2114:                                     <tr>
2115:                                         <th class="align-left">CORNER KICKS</th>
2116:                                         #printPeriods('style="width:40px"')
2117:                                         <th style="width:50px">TOTAL</th>
2118:                                     </tr>
2119: 
2120:                                 ## team corners, which have to be manually added up
2121:                                     #foreach ($team in $document.selectNodes("sogame/team"))
2122:                                         #set ($totalCorners = 0)
2123:                                         <tr>
2124:                                             <td>$team.attributeValue("name")</td>
2125:                                             #foreach ($prd in $team.selectNodes("linescore/lineprd"))
2126:                                                 #set ($totalCorners = $tool.math.add($totalCorners, $prd.valueOf("@corners")))
2127:                                                 <td class="align-center">$prd.valueOf("@corners")</td>
2128:                                             #end
2129:                                             <td class="align-center">$totalCorners</td>
2130:                                         </tr>
2131:                                     #end
2132:                                 #end
2133:                             </table>
2134:                         </div>
2135: 
2136:                         #if ($showFouls)
2137:                         ## FOULS BY PERIOD
2138:                             <div class="stats-halfbox-right">
2139:                                 <table>
2140:                                     <tr>
2141:                                         <th>FOULS</th>
2142:                                         #printPeriods('style="width:40px"')
2143:                                         <th>TOTAL</th>
2144:                                     </tr>
2145: 
2146:                                     #foreach ($team in $document.selectNodes("sogame/team"))
2147:                                         <tr>
2148:                                             <td>$team.attributeValue("name")</td>
2149:                                             #foreach ($prd in $team.selectNodes("linescore/lineprd"))
2150:                                                 <td class="align-center">$prd.valueOf("@fouls")</td>
2151:                                             #end
2152:                                             <td class="align-center">$team.valueOf("totals/penalty/@fouls")</td>
2153:                                         </tr>
2154:                                     #end
2155:                                 </table>
2156:                             </div>
2157:                         #end
2158:                         <div class="clear"></div>
2159:                     </div>
2160: 
2161: 
2162:                     #end
2163: 
2164:                 ## PENALTY SUMMARY
2165:                 <div class="stats-fullbox clearfix">
2166:                     <table>
2167:                         <tr><th colspan="3" class="align-left">#if ($showFieldHockey)Player
2168:                             Cards #else Cautions and Ejections Summary #end</th></tr>
2169:                         #foreach ($pd in $periodRange)
2170:                             #set ($shownStats = "")
2171:                             <tr class="stats-highlight"><td colspan="3" class="align-center bold">-- #period($pd) -- </td></tr>
2172:                             #foreach ($penalty in $document.selectNodes("sogame/penalties/pen"))
2173:                                 #if ($pd == $penalty.valueOf("@prd"))
2174:                                     #set ($shownStats = "y")
2175:                                     <tr>
2176:                                         <td>
2177:                                             #if($penalty.valueOf("@vh") == 'H') $home #end
2178:                         #if($penalty.valueOf("@vh") == 'V') $visitor #end
2179:                                         </td>
2180:                                         <td>$penalty.valueOf("@time")</td>
2181:                                         <td>
2182: 
2183:                                             #if ($penalty.valueOf("@type").length() > 0)
2184: 
2185:                                                 #if ($penalty.valueOf("@type").contains('GREEN'))<span class="italic">Green card - </span>#end
2186:                                                 #if ($penalty.valueOf("@type").contains('YELLOW'))<span class="italic">Yellow card - </span>#end
2187:                                                 #if ($penalty.valueOf("@type").contains('RED'))<span class="italic">Red card - </span>#end
2188: 
2189:                                             #end
2190: 
2191: 
2192:                                             $penalty.valueOf("@name")#if ($!penalty.valueOf("@desc").length() > 0): $!penalty.valueOf("@desc")#end
2193: 
2194:                                         </td>
2195:                                     </tr>
2196:                                 #end ## if
2197:                             #end ## penalty foreach
2198: 
2199:                             #if ($shownStats == "")
2200:                                 <tr><td colspan="3" class="align-center">(no penalties)</td></tr>
2201:                             #end
2202:                         #end ## period range
2203: 
2204:                     ## penalty minutes
2205:                         <tr><th colspan="3" class="align-left">Penalty Totals</th></tr>
2206:                         <tr>
2207:                             <td colspan="3">
2208:                                 <table width="100%">
2209:                                     <tr>
2210:                                         #foreach ($team in $document.selectNodes("sogame/team"))
2211:                                             <td><span class="bold">$team.attributeValue("name")</span>: $team.valueOf("totals/penalty/@red") red cards, $team.valueOf("totals/penalty/@yellow") yellow cards,
2212:                                                 #if ($showFieldHockey)
2213:                                                     $team.valueOf("totals/penalty/@green") green cards,
2214:                                                 #end
2215:                                                 #if($showFouls)
2216:                                                     and  $team.valueOf("totals/penalty/@fouls") fouls.
2217:                                                 #end
2218:                                             </td>
2219:                                         #end
2220:                                     </tr>
2221:                                 </table>
2222:                             </td>
2223:                         </tr>
2224:                     </table>
2225:                 </div>
2226: 
2227: 
2228:                 ## OTHER INFORMATION
2229:                 <div class="stats-fullbox summary clearfix">
2230:                     <table>
2231:                         <tr><th class="align-left">Other Information</th></tr>
2232:                         <tr>
2233:                             <td>
2234:                                 <strong>Stadium:</strong> $document.valueOf("sogame/venue/@stadium")<br />
2235:                                 <strong>Game Length:</strong> $document.valueOf("sogame/venue/@duration")<br />
2236:                                 <strong>Attendance:</strong> $document.valueOf("sogame/venue/@attend")<br />
2237:                                 #foreach ($official in $document.selectNodes("sogame/venue/officials/official"))
2238:                                     <strong>$official.valueOf("@title"):</strong> $official.valueOf("@name")<br />
2239:                                 #end
2240:                             </td>
2241:                         </tr>
2242:                     </table>
2243:                 </div>
2244: 
2245:                 <div class="legend">* Starter</div>
2246:             #end
2247: 
2248:             #if ($stats.view == "plays" && $hasPlayByPlay)
2249:                 #printTabPlayByPlay()
2250:             #elseif ($stats.view == "pdf")
2251:                 #printPdfHeader("Box score")
2252:                 #parse("soxml-monospace-template")
2253:                 #if ($hasPlayByPlay)
2254:                     <p class="pagebreak">&nbsp;</p>
2255:                     #printPdfHeader("Play by Play")
2256:                     #printTabPlayByPlay()
2257:                 #end
2258:             #else
2259:                 #printTabBoxscore()
2260:             #end  ## VIEW CHECK
2261:             </div>
2262: 
2263:             #if ($stats.view != "pdf")
2264:                 #set ($showWiki = true)
2265:                 #set ($showWiki = $showWikiVar)
2266: 
2267:                 #if ($showWiki == true)
2268:                     $!wiki.su
2269:                 #end
2270: 
2271:                 #changeViewScript()
2272:             #end
2273:         </body>
2274:     </html>
2275: #end
2276: #end