Yale

Harvard

Sat, Apr. 29, 2017
2:00 PM EDT

Live statistics will be available at the start of the event in:


Overview

Yale

Team Record Conf. Record Last Game
3-3 1-0 W, 17-8 vs. Cornell

Harvard

Team Record Conf. Record Last Game
4-3 0-1 L, 13-8 at Boston University

Team Comparison

Yale

Man-up Percetange

16.7

Faceoff Percentage

54.1

Harvard

Man-up Percetange

30.8

Faceoff Percentage

39.9

11.67GPG11.14
9.98GAA10.86
Yale (based on 6 games)
Harvard (based on 7 games)

Key Contributors


Points

There was a problem with a Velocity script
Pagestatcrew-lcxml-template
ErrorError invoking method 'get(java.lang.Integer)' in java.util.ArrayList at statcrew-lcxml-template[line 439, column 86]
Page source:
1: #if ($stats.view == 'pt')
2:     ## CONFIGURATION
3:     $website.include("options")
4:     #set ($options = $request.getAttribute("options"))
5: 
6:     #set ($sportCode =  $document.getRootElement().valueOf("network/@sportCode"))
7:     #set ($menLacrosseSportCode = 6)
8:     #set ($womenLacrosseSportCode = 10)
9: 
10:     #set ($pregame = $stats.pregame)
11:     #set ($startTime = $document.getRootElement().valueOf("network/@startTime"))
12:     #if ($document.getRootElement().valueOf("network/@tba") == 'Y')
13:         #set ($tba = true)
14:     #else
15:         #set ($tba = false)
16:     #end
17:     #set ($location = $document.getRootElement().valueOf("network/@location"))
18:     #set ($localDate = $document.getRootElement().valueOf("network/@localDate"))
19:     #set ($localTime = $document.getRootElement().valueOf("network/@localTime"))
20:     #set ($hasVideo = false)
21:     #if ($document.getRootElement().valueOf("primetime/@videoProvider").length() > 0 && $document.getRootElement().valueOf("primetime/@videoProvider") != "none")
22:         #set ($hasVideo = true)
23:     #end
24:     #if ($location != '')
25:         #set ($neutral = true)
26:     #else
27:         #set ($neutral = false)
28:     #end
29:     #if ($request.getParameter("paused") == 'y')
30:         #set ($paused = true)
31:     #else
32:         #set ($paused = false)
33:     #end
34: 
35:     #if ($pregame)
36:         #set ($visitorTeamId = $document.getRootElement().valueOf("team[@vh='V']/@teamId"))
37:         #set ($homeTeamId = $document.getRootElement().valueOf("team[@vh='H']/@teamId"))
38: 
39:         #if ($!options.get("primetime_preview_hide").equalsIgnoreCase("hide"))
40:             #set ($shouldStatsShow = false)
41:         #else
42:             #set ($shouldStatsShow = $preview.shouldStatsShow($homeTeamId,$visitorTeamId))
43:         #end
44:     #end
45: 
46:     <head>
47:         <script type="text/javascript" src='$website.cdn("/info/jquery-2.1.1.js")'></script>
48:         <script type="text/javascript" src='$website.cdn("/info/notifications/jquery.noty.packaged.min.js")'></script>
49:         <script type="text/javascript" src='$website.cdn("/info/dataTables/js/jquery.dataTables.js")'></script>
50:         <script type="text/javascript" src='$website.cdn("/info/momentjs/moment.js")'></script>
51:         <script type="text/javascript" src='$website.cdn("/info/primetime3/js/full_screen_api.js")'></script>
52:         <script type="text/javascript" src='$website.cdn("/info/primetime3/js/ustream-embedapi.js")'></script>
53:         <script type="text/javascript" src='$website.cdn("/info/primetime3/js/flipclock.min.js")'></script>
54: 
55:         $website.addCss($website.cdn("/info/dataTables/css/jquery.dataTables.css"))
56:         $website.addCss($website.cdn("/info/primetime3/css/flipclock.css"))
57: 
58:         <script type="text/javascript" src="/info/primetime3/js/pt3-embed.js"></script>
59: 
60:         <script type="text/javascript">var jQuery_2_1 = $.noConflict(true);</script>
61:         <script type="text/javascript" src="/info/primetime3/js/add-ons.js"></script>
62:         <script type="text/javascript" src="/info/primetime3/js/pt3-util.js"></script>
63:         <script type="text/javascript" src="/info/primetime3/js/pt3-lacrosse-template.js"></script>
64: 
65:         <script src="/info/primetime3/js/highcharts.js"></script>
66:         <script src="/info/primetime3/js/highcharts-more.js"></script>
67:         <script src="/info/primetime3/js/solid-gauge.js"></script>
68: 
69:         <script type="text/javascript" src="/info/primetime3/js/pt3-preview-charts.js"></script>
70: 
71:         $website.addCss("/info/dataTables/css/jquery.dataTables.css")
72: 
73:         $website.addCss("/info/primetime3/css/pt3-styles.css")
74:         $website.addCss("/info/primetime3/css/pt3-responsive.css")
75:         $website.addCss("/info/primetime3/css/pt3-lacrosse-icons.css")
76: 
77:         <script type="text/javascript" src="/info/primetime3/js/restive.js"></script>
78:         <script type="text/javascript" src="/info/primetime3/js/pt3-restive.js"></script>
79: 
80:         <script type="text/javascript">
81:             var conf = new Object();
82:             conf.locale = '${locale}';
83:             conf.videoProvider = '${videoProvider}';
84:             conf.videoId = '${videoId}';
85:             conf.eventId = '$document.getRootElement().valueOf("network/@eventId")';
86:             conf.eventIdHashCode = '$eventIdHashCode';
87:             conf.visitorTeamLogo = '$stats.visitorTeamLogo';
88:             conf.homeTeamLogo = '$stats.homeTeamLogo';
89:             conf.visitorTeamColor = '$document.getRootElement().valueOf("team[@vh='V']/@color")';
90:             conf.homeTeamColor = '$document.getRootElement().valueOf("team[@vh='H']/@color")';
91:             conf.startTime = '$startTime';
92:             conf.pregame = $pregame;
93:             conf.tba = $tba;
94:             conf.localDate = '$localDate';
95:             conf.localTime = '$localTime';
96:             conf.visitor = '${tool.esc.javascript($document.getRootElement().valueOf("team[@vh='V']/@name"))}';
97:             conf.home = '${tool.esc.javascript($document.getRootElement().valueOf("team[@vh='H']/@name"))}';
98:             conf.currentDate = new Date();
99:             conf.statusFinal = $stats.final;
100:             conf.neutral = $neutral;
101:             conf.paused = $paused;
102: 
103:             if (!conf.homeTeamColor) {
104:                 conf.homeTeamColor = '#6D6D6D';
105:             }
106: 
107:             if (!conf.visitorTeamColor) {
108:                 conf.visitorTeamColor = '#121212';
109:             }
110: 
111:             conf.visitorTeamLighterColor = $.fn.increase_brightness(conf.visitorTeamColor, 30);
112:             conf.homeTeamLighterColor = $.fn.increase_brightness(conf.homeTeamColor, 30);
113:         </script>
114: 
115:     </head>
116: 
117:     #if ($pregame && !$shouldStatsShow)
118:         <div id="primetime-wrapper" class="primetime-pre-game primetime-lacrosse clearfix">
119:             <div class="primetime-overflow clearfix">
120:                 <div id="primetime-header" class="grid-row">
121:                     <div class="grid-col grid-col-hdr">
122: 
123:                         <div class="pt-header clearfix">
124:                             <div class="pt-team pt-team-away visitor-team-color" style="background: $document.getRootElement().valueOf("team[@vh='V']/@color")">
125:                                 <img src="$stats.visitorTeamLogo" alt="" class="team-logo visitor-team-logo" />
126:                                 <h3 class="team-name visitor-team-name">$document.getRootElement().valueOf("team[@vh='V']/@name")</h3>
127:                             </div>
128: 
129:                             <div class="pt-team pt-team-home home-team-color" style="background: $document.getRootElement().valueOf("team[@vh='H']/@color")">
130:                                 <img src="$stats.homeTeamLogo" alt="" class="team-logo home-team-logo" />
131:                                 <h3 class="team-name home-team-name">$document.getRootElement().valueOf("team[@vh='H']/@name")</h3>
132:                             </div>
133: 
134:                             <div class="pt-match-scoreboard clearfix">
135:                                 <div class="pt-mtach-info pt-pregame">
136:                                     <center>
137:                                         <div>
138:                                             $localDate <br>
139:                                             #if ($tba)
140:                                                 TBA
141:                                             #else
142:                                                 $localTime
143:                                             #end
144:                                         </div>
145:                                     </center>
146:                                 </div>
147:                             </div>
148:                         </div>
149:                     </div>
150:                 </div>
151:                 <div class="grid-row-container clearfix">
152:                     <div class="grid-row preview">
153:                         <div class="content">
154:                             <div class="pt-last-play clearfix" style="display: none">
155:                                     <span class="pt-label clearfix" style="text-align: center !important; width: 100% ">
156:                                         This event doesn't have a set start time, but PrimeTime will be available once the event begins.
157:                                     </span>
158:                             </div>
159:                             <div class="text">
160:                                 <h3>
161:                                     Live statistics will be available at the start of the event in:
162:                                 </h3>
163:                                 <center>
164:                                     <div class="clock"></div><br/>
165:                                     #if ($tba)
166:                                         Days
167:                                     #end
168:                                 </center>
169:                             </div>
170:                         </div>
171:                     </div>
172:                     <div class="pt-game-info grid-row clearfix">
173:                         <div class="pt-tabs-panes clearfix">
174:                             <div id="stats-tabs" class="pt-tabs-pane clearfix">
175:                                 <div id="divGameInformation" class="grid-row">
176:                                     <div class="grid-col grid-col-gi grid-col1">
177:                                         <h2 class="grid-title">
178:                                             Game Information
179:                                         </h2>
180:                                         <div class="grid-content clearfix">
181:                                             <div class="pt-game-information clearfix">
182:                                                 <div class="pt-row clearfix">
183:                                                     <center>
184:                                                         <div class="game-location pt-col">
185:                                                             <span class="date">
186:                                                                 $localDate<br />
187:                                                                 #if ($tba)
188:                                                                     TBA
189:                                                                 #else
190:                                                                     $localTime
191:                                                                 #end
192:                                                             </span>
193:                                                             <h3>Date & Time</h3>
194:                                                         </div>
195:                                                         #if ($location != '')
196:                                                             <div class="game-venue pt-col">
197:                                                             <span class="venue">
198:                                                                 $location<br />
199:                                                                 (Neutral)
200:                                                             </span>
201:                                                                 <h3>Location</h3>
202:                                                             </div>
203:                                                         #end
204:                                                     </center>
205:                                                 </div>
206:                                             </div>
207:                                         </div>
208:                                     </div>
209:                                 </div>
210:                             </div>
211:                         </div>
212:                     </div>
213:                 </div>
214: 
215:                 <div id="primetime-footer" class="grid-row">
216:                     <div class="grid-col grid-col-ftr">
217:                         <a href="/"></a>
218:                     </div>
219:                 </div>
220:             </div>
221:         ## GENERAL INFORMATION
222:         </div>
223:     #elseif ($pregame && $shouldStatsShow)
224:         #set ($visitorTeamId = $document.getRootElement().valueOf("team[@vh='V']/@teamId"))
225:         #set ($homeTeamId = $document.getRootElement().valueOf("team[@vh='H']/@teamId"))
226: 
227:         #if ($sportCode == $menLacrosseSportCode)
228:             #set ($teamDonutChartsCount = 2)
229:             #set ($teamBarChartsCount = 2)
230:             #set ($teamBarRanges = {"gfa": 15.0, "gaa": 15.0})
231:             #set ($teamStats = ["pppt", "fopt", "pppt100", "fopt100", "gfa", "gaa"])
232:             #set ($teamStatsLabels = {"pppt": "Man-up Percetange", "fopt": "Faceoff Percentage", "gfa": "GPG", "gaa": "GAA"})
233:         #else
234:             #set ($teamDonutChartsCount = 1)
235:             #set ($teamBarChartsCount = 3)
236:             #set ($teamBarRanges = {"gfa": 20.0, "gaa": 20.0, "dcpg": 20.0})
237:             #set ($teamStats = ["fppt", "fppt100", "gfa", "gaa", "dcpg"])
238:             #set ($teamStatsLabels = {"fppt": "Free position percentage", "gfa": "GPG", "gaa": "GAA", "dcpg": "DCPG"})
239:         #end
240:         #set ($topStats = ["p", "g", "a", "gaa"])
241: 
242:         #set ($visitorStats = $preview.getTeam($visitorTeamId).setTeamStats($teamStats).setTopStats($topStats).calculate())
243:         #set ($homeStats = $preview.getTeam($homeTeamId).setTeamStats($teamStats).setTopStats($topStats).calculate())
244: 
245:     <div id="primetime-wrapper" class="primetime-pre-game primetime-lacrosse clearfix">
246:         <div class="primetime-overflow clearfix">
247:             <div id="primetime-header" class="grid-row">
248:                 <div class="grid-col grid-col-hdr">
249:                     <div class="pt-header clearfix">
250:                         <div class="pt-team pt-team-away visitor-team-color" style="background: $document.getRootElement().valueOf("team[@vh='V']/@color")">
251:                             <img src="$stats.visitorTeamLogo" alt="" class="team-logo visitor-team-logo" />
252:                             <h3 class="team-name visitor-team-name">$document.getRootElement().valueOf("team[@vh='V']/@name")</h3>
253:                         </div>
254: 
255:                         <div class="pt-team pt-team-home home-team-color" style="background: $document.getRootElement().valueOf("team[@vh='H']/@color")">
256:                             <img src="$stats.homeTeamLogo" alt="" class="team-logo home-team-logo" />
257:                             <h3 class="team-name home-team-name">$document.getRootElement().valueOf("team[@vh='H']/@name")</h3>
258:                         </div>
259: 
260:                         <div class="pt-match-scoreboard clearfix">
261:                             <div class="pt-mtach-info pt-pregame">
262:                                 <center>
263:                                     <div>
264:                                         $localDate <br>
265:                                         #if ($tba)
266:                                             TBA
267:                                         #else
268:                                             $localTime
269:                                         #end
270:                                     </div>
271:                                 </center>
272:                             </div>
273:                         </div>
274:                     </div>
275:                 </div>
276:             </div>
277:             <div class="grid-row-container clearfix">
278:                 <div class="grid-row preview">
279:                     <div class="content">
280:                         <div class="pt-last-play clearfix" style="display: none">
281:                             <span class="pt-label clearfix" style="text-align: center !important; width: 100% ">
282:                                 This event doesn't have a set start time, but PrimeTime will be available once the event begins.
283:                             </span>
284:                         </div>
285:                         <div class="text">
286:                             <h3>
287:                                 Live statistics will be available at the start of the event in:
288:                             </h3>
289:                             <center>
290:                                 <div class="clock"></div><br/>
291:                                 #if ($tba)
292:                                     Days
293:                                 #end
294:                             </center>
295:                         </div>
296:                     </div>
297:                 </div>
298: 
299:                 <!-- Team Overview -->
300:                 <div class="grid-row pt-overview">
301:                     <h2>Overview</h2>
302:                     <div class="grid-col grid-col-e grid-col2 background-black">
303:                         <h3>$document.getRootElement().valueOf("team[@vh='V']/@name")</h3>
304:                         <div class="container clearfix pt-live-action">
305:                             <table>
306:                                 <thead>
307:                                 <tr>
308:                                     <th>Team Record</th>
309:                                     <th>Conf. Record</th>
310:                                     <th>Last Game</th>
311:                                 </tr>
312:                                 </thead>
313:                                 <tbody>
314:                                 <tr>
315:                                     <td>${visitorStats.overallRecord}</td>
316:                                     <td>${visitorStats.conferenceRecord}</td>
317:                                     <td style="text-align: center">
318:                                         ${visitorStats.lastGame.APResult}
319:                                         <span>
320:                                             #if ($visitorStats.lastGame.neutralSite.length() > 0 || $visitorStats.lastGame.home)
321:                                                 vs.
322:                                             #else
323:                                                 at
324:                                             #end
325:                                             ${visitorStats.lastGame.opponent.name}
326:                                         </span>
327:                                     </td>
328:                                 </tr>
329:                                 </tbody>
330:                             </table>
331:                         </div>
332:                         <br />
333:                     </div>
334:                     <div class="grid-col grid-col-e grid-col2 background-gray">
335:                         <h3>$document.getRootElement().valueOf("team[@vh='H']/@name")</h3>
336:                         <div class="pt-live-action">
337:                             <table>
338:                                 <thead>
339:                                 <tr>
340:                                     <th>Team Record</th>
341:                                     <th>Conf. Record</th>
342:                                     <th>Last Game</th>
343:                                 </tr>
344:                                 </thead>
345:                                 <tbody>
346:                                 <tr>
347:                                     <td>${homeStats.overallRecord}</td>
348:                                     <td>${homeStats.conferenceRecord}</td>
349:                                     <td style="text-align: center">
350:                                         ${homeStats.lastGame.APResult}
351:                                         <span>
352:                                             #if ($homeStats.lastGame.neutralSite.length() > 0 || $homeStats.lastGame.home)
353:                                                 vs.
354:                                             #else
355:                                                 at
356:                                             #end
357:                                             ${homeStats.lastGame.opponent.name}
358:                                         </span>
359:                                     </td>
360:                                 </tr>
361:                                 </tbody>
362:                             </table>
363:                         </div>
364:                         <br />
365:                     </div>
366:                 </div>
367: 
368:                 <!-- Team Comaprison -->
369:                 <div class="grid-row">
370:                     <div class="grid-col team-compare">
371:                         <h2>Team Comparison</h2>
372:                         <div class="grid-col clearfix">
373:                             #set ($teamDonutQuantity = $teamDonutChartsCount - 1)
374:                             <div class="grid-col-e left">
375:                                 <h3>$document.getRootElement().valueOf("team[@vh='V']/@name")</h3>
376:                                 #foreach ($i in [0..$teamDonutQuantity])
377:                                     #set ($statsKey = $teamStats[$i])
378:                                     #if ($visitorStats.teamStats[$statsKey])
379:                                         <div class="chart-container">
380:                                             <h3>${teamStatsLabels[$statsKey]}</h3>
381:                                             <h3 class="stat-total-value">${formatter.formatNumber($visitorStats.teamStats[$statsKey], $formats.get($statsKey))}</h3>
382:                                             <div class="stats-chart ts-${statsKey} visitor"></div>
383:                                         </div>
384:                                     #end
385:                                 #end
386:                             </div>
387:                             <div class="grid-col-e right">
388:                                 <h3>$document.getRootElement().valueOf("team[@vh='H']/@name")</h3>
389:                                 #foreach ($i in [0..$teamDonutQuantity])
390:                                     #set ($statsKey = $teamStats[$i])
391:                                     #if ($homeStats.teamStats[$statsKey])
392:                                         <div class="chart-container">
393:                                             <h3>${teamStatsLabels[$statsKey]}</h3>
394:                                             <h3 class="stat-total-value">${formatter.formatNumber($homeStats.teamStats[$statsKey], $formats.get($statsKey))}</h3>
395:                                             <div class="stats-chart ts-${statsKey} home"></div>
396:                                         </div>
397:                                     #end
398:                                 #end
399:                             </div>
400:                         </div>
401: 
402:                         <div class="game-leaders team-game-leaders">
403:                             <div class="top">
404:                                 <div class="charts">
405:                                     ## Multiplied by 2 because we need to skip the stats100
406:                                     #set ($teamBarChartsStart = $teamDonutChartsCount * 2)
407:                                     #set ($teamBarQuantity = $teamBarChartsStart + $teamBarChartsCount - 1)
408:                                     #foreach ($i in [$teamBarChartsStart..$teamBarQuantity])
409:                                         #set ($statsKey = $teamStats[$i])
410:                                         <div class="chart">
411:                                             <div class="stats-chart visitor ts-$statsKey"></div>
412:                                             <div class="label"><span>${formatter.formatNumber($visitorStats.teamStats[$statsKey], $formats.get($statsKey))}</span><span class="title">${teamStatsLabels[$statsKey]}</span><span>${formatter.formatNumber($homeStats.teamStats[$statsKey], $formats.get($statsKey))}</span></div>
413:                                             <div class="stats-chart home ts-$statsKey"></div>
414:                                         </div>
415:                                     #end
416:                                 </div>
417:                             </div>
418:                         </div>
419: 
420:                         <div class="legend grid-col clearfix">
421:                             <div class="stats-value visitor">$document.getRootElement().valueOf("team[@vh='V']/@name") (based on ${visitorStats.gamesPlayed} games)</div>
422:                             <div class="stats-value home">$document.getRootElement().valueOf("team[@vh='H']/@name") (based on ${homeStats.gamesPlayed} games)</div>
423:                         </div>
424:                     </div>
425:                 </div>
426: 
427:                 <!-- Key Contributors -->
428:                 <div class="grid-row">
429:                     <div class="grid-col grid-col1 game-leaders grid-col">
430:                         <h2>Key Contributors</h2>
431:                         #macro (gameLeaders $category $label $visitorPlayers $homePlayers $quantityPlayers)
432:                             #set ($quantityPlayers = $quantityPlayers - 1)
433:                             <div class="game-leaders player-game-leaders">
434:                                 <br/>
435:                                 <h3>$label</h3>
436:                                 <div class="grid-col top1">
437:                                     <div class="grid-col charts">
438:                                         #foreach ($i in [0..$quantityPlayers])
439:                                             #set ($visitorTopPlayer = $visitorPlayers[$i])
440:                                             #set ($homeTopPlayer = $homePlayers[$i])
441:                                             ## Using the format '#' directly since the stats has set 0.0 as format on the stats metadata object
442:                                             #set ($format = '#')
443:                                             #if ($category == "gaa") ## Except for gaa we want decimals
444:                                                 #set ($format = $formats.get($category))
445:                                             #end
446:                                             <div class="grid-col chart">
447:                                                 <div class="stats-player visitor">
448:                                                     <div class="player-name">${visitorTopPlayer.firstName} ${visitorTopPlayer.lastName}</div>
449:                                                     <div class="stats-chart visitor ${category}-top${i}"></div>
450:                                                 </div>
451:                                                 <div class="label"><span>${formatter.formatNumber($visitorTopPlayer.stats[$category], $format)}</span><span class="title"></span><span>${formatter.formatNumber($homeTopPlayer.stats[$category], $format)}</span></div>
452:                                                 <div class="stats-player home">
453:                                                     <div class="player-name">${homeTopPlayer.firstName} ${homeTopPlayer.lastName}</div>
454:                                                     <div class="stats-chart home ${category}-top${i}"></div>
455:                                                 </div>
456:                                             </div>
457:                                         #end
458:                                     </div>
459:                                 </div>
460:                             </div>
461:                         #end
462: 
463:                         #gameLeaders('p' 'Points' $visitorStats.topStats['p'] $homeStats.topStats['p'] 2)
464:                         #gameLeaders('g' 'Goals' $visitorStats.topStats['g'] $homeStats.topStats['g'] 2)
465:                         #gameLeaders('a' 'Assists' $visitorStats.topStats['a'] $homeStats.topStats['a'] 2)
466:                         #gameLeaders('gaa' 'GAA' $visitorStats.topStats['gaa'] $homeStats.topStats['gaa'] 1)
467: 
468:                         <div class="legend grid-col clearfix">
469:                             <div class="stats-value visitor">$document.getRootElement().valueOf("team[@vh='V']/@name") (based on ${visitorStats.gamesPlayed} games)</div>
470:                             <div class="stats-value home">$document.getRootElement().valueOf("team[@vh='H']/@name") (based on ${homeStats.gamesPlayed} games)</div>
471:                         </div>
472:                     </div>
473:                 </div>
474: 
475:                 <div class="pt-game-info grid-row clearfix">
476:                     <div class="pt-tabs-panes clearfix">
477:                         <div id="stats-tabs" class="pt-tabs-pane clearfix">
478:                             <div id="divGameInformation" class="grid-row">
479:                                 <div class="grid-col grid-col-gi grid-col1">
480:                                     <h2 class="grid-title">
481:                                         Game Information
482:                                     </h2>
483:                                     <div class="grid-content clearfix">
484:                                         <div class="pt-game-information clearfix">
485:                                             <div class="pt-row clearfix">
486:                                                 <center>
487:                                                     <div class="game-location pt-col">
488:                                                             <span class="date">
489:                                                                 $localDate<br />
490:                                                                 #if ($tba)
491:                                                                     TBA
492:                                                                 #else
493:                                                                     $localTime
494:                                                                 #end
495:                                                             </span>
496:                                                         <h3>Date & Time</h3>
497:                                                     </div>
498:                                                     #if ($location != '')
499:                                                         <div class="game-venue pt-col">
500:                                                             <span class="venue">
501:                                                                 $location<br />
502:                                                                 (Neutral)
503:                                                             </span>
504:                                                             <h3>Location</h3>
505:                                                         </div>
506:                                                     #end
507:                                                 </center>
508:                                             </div>
509:                                         </div>
510:                                     </div>
511:                                 </div>
512:                             </div>
513:                         </div>
514:                     </div>
515:                 </div>
516:             </div>
517: 
518:             <div id="primetime-footer" class="grid-row">
519:                 <div class="grid-col grid-col-ftr">
520:                     <a href="/"></a>
521:                 </div>
522:             </div>
523:         </div>
524: 
525:         <script type="text/javascript">
526:         (function($) {
527:             $(document).ready(function() {
528:                 // Team Comparison
529:                 Highcharts.setOptions({
530:                     colors: [conf.visitorTeamColor, null]
531:                 });
532: 
533:                 #foreach ($i in [0..$teamDonutQuantity])
534:                     #set ($statsKey = $teamStats[$i])
535:                     #set ($stats100Key = $statsKey + '100')
536:                     $.fn.buildDonutChart('.stats-chart.ts-${statsKey}.visitor', ${visitorStats.teamStats[$stats100Key]}, ${visitorStats.teamStats[$statsKey]}, conf.visitorTeamLighterColor);
537:                 #end
538: 
539:                 Highcharts.setOptions({
540:                     colors: [conf.homeTeamColor, null]
541:                 });
542: 
543:                 #foreach ($i in [0..$teamDonutQuantity])
544:                     #set ($statsKey = $teamStats[$i])
545:                     #set ($stats100Key = $statsKey + '100')
546:                     $.fn.buildDonutChart('.stats-chart.ts-${statsKey}.home', ${homeStats.teamStats[$stats100Key]}, ${homeStats.teamStats[$statsKey]}, conf.homeTeamLighterColor);
547:                 #end
548: 
549:                 // Radialize the colors
550:                 Highcharts.setOptions({
551:                     colors: [conf.homeTeamColor, conf.visitorTeamColor]
552:                 });
553: 
554:                 #set ($barTeamKeys = ["gfa", "gaa", "dcpg"])
555:                 #foreach ($visitorStats in $visitorStats.teamStats.entrySet())
556:                     #if ($visitorStats.value && $homeStats.teamStats[$visitorStats.key])
557:                         #if ($barTeamKeys.contains($visitorStats.key))
558:                             $.fn.buildVisitorBarChart('.team-game-leaders .visitor.ts-${visitorStats.key}', ${visitorStats.value}, $teamBarRanges[$visitorStats.key], conf.visitorTeamLighterColor);
559:                             $.fn.buildHomeBarChart('.team-game-leaders .home.ts-${visitorStats.key}', ${homeStats.teamStats[$visitorStats.key]}, $teamBarRanges[$visitorStats.key], conf.homeTeamLighterColor);
560:                         #end
561:                     #end
562:                 #end
563: 
564:                 // Key Contributors
565:                 #macro (playerStatsScript $category $visitorPlayers $homePlayers $visitorLimit $homeLimit $playersLimit)
566:                     #set ($playersLimit = $playersLimit - 1)
567:                     #foreach ($i in [0..$playersLimit])
568:                         #set ($visitorTopPlayer = $visitorPlayers[$i])
569:                         #set ($homeTopPlayer = $homePlayers[$i])
570:                         $.fn.buildVisitorBarChart('.${category}-top${i}.visitor', ${visitorTopPlayer.stats[$category]}, $visitorLimit, conf.visitorTeamLighterColor);
571:                         $.fn.buildHomeBarChart('.${category}-top${i}.home', ${homeTopPlayer.stats[$category]}, $homeLimit, conf.homeTeamLighterColor);
572:                     #end
573:                 #end
574: 
575:                 #playerStatsScript('p' $visitorStats.topStats['p'] $homeStats.topStats['p'] 100 100 2)
576:                 #playerStatsScript('g' $visitorStats.topStats['g'] $homeStats.topStats['g'] 100 100 2)
577:                 #playerStatsScript('a' $visitorStats.topStats['a'] $homeStats.topStats['a'] 100 100 2)
578:                 #playerStatsScript('gaa' $visitorStats.topStats['gaa'] $homeStats.topStats['gaa'] $teamBarRanges['gaa'] $teamBarRanges['gaa'] 1)
579: 
580:                 $('.stats-value.visitor').css("background-color", conf.visitorTeamColor);
581:                 $('.stats-value.visitor.light').css("background-color", conf.visitorTeamLighterColor);
582:                 $('.stats-value.home').css("background-color", conf.homeTeamColor);
583:                 $('.stats-value.home.light').css("background-color", conf.homeTeamLighterColor);
584:             });
585:         })(jQuery);
586:         </script>
587: 
588:     ## GENERAL INFORMATION
589:     </div>
590: 
591:     #else
592:         #if ($document.getRootElement().valueOf("primetime/@videoProvider") == "boxcastppv")
593:             $website.requireSSL()
594:         #end
595: 
596:         <div id="primetime-wrapper" class="primetime-lacrosse primetime-wrapper clearfix">
597: 
598:             <div class="primetime-overflow clearfix">
599:                 ## HEADER
600:                 <div id="primetime-header" class="grid-row">
601:                     <div class="grid-col grid-col-hdr">
602: 
603:                         <div class="primetime-screen-controls clearfix">
604:                             <a href="#" class="full-screen-button pt-icon-resize-full"><span class="text">Switch</span></a>
605:                             <a href="#" class="normal-screen-button pt-icon-resize-small"><span class="text">Switch</span></a>
606:                             <a href="#" class="expand-button pt-icon-link-ext"><span class="text">Switch</span></a>
607:                         </div>
608: 
609:                         <div class="pt-header clearfix">
610: 
611:                             <div class="pt-team pt-team-away visitor-team-color"><img src="$stats.visitorTeamLogo" alt="" class="team-logo visitor-team-logo" /><span
612:                                     class="team-record visitor-team-record"></span>
613:                                 <h3 class="team-name visitor-team-name"></h3>
614:                             </div>
615: 
616:                             <div class="pt-team pt-team-home home-team-color">
617:                                 <span class="team-record home-team-record"></span>
618:                                 <img src="$stats.homeTeamLogo" alt="" class="team-logo home-team-logo" />
619:                                 <h3 class="team-name home-team-name"></h3>
620:                             </div>
621: 
622:                             <div class="pt-match-scoreboard clearfix">
623:                                 <p class="team-score visitor-team-score"></p>
624:                                 <p class="team-score home-team-score"></p>
625: 
626:                                 <div class="pt-mtach-info">
627:                                     <span class="time scoreboard-time"></span><br />
628:                                     <span class="period scoreboard-period" style="width: 100%"></span>
629:                                 </div>
630: 
631:                             </div>
632: 
633:                             <div id="pt-page-nav" class="pt-page-nav">
634:                                 <a href="#" class="pt-menu">Menu</a>
635:                                 <ul class="clearfix">
636:                                     <li><a href="#live-action-title" data-stroke="1" data-id="#live-action-title">Live Action</a></li>
637:                                     <li><a href="#line-score-title" data-stroke="2" data-id="#line-score-title">Line Score</a></li>
638:                                     <li><a href="#scoring-plays-title" data-stroke="3" data-id="#scoring-plays-title" data-tab-id="#stats-tabs">Scoring Plays</a></li>
639:                                     <li><a href="#team-comparison-title" data-stroke="4" data-id="#team-comparison-title" data-tab-id="#stats-tabs">Team Comparison</a></li>
640:                                     <li><a href="#individual-stats-title" data-stroke="5" data-id="#individual-stats-title" data-tab-id="#stats-tabs">Individual Stats</a></li>
641:                                     <li><a href="#game-info-title" data-stroke="6" data-id="#game-info-title" data-tab-id="#stats-tabs">Game Information</a></li>
642:                                     <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>
643:                                 </ul>
644:                             </div>
645: 
646:                         </div>
647: 
648:                     </div>
649:                 </div>
650:                 ## PRIMETIME HEADER
651: 
652:                 ## GRID ROW CONTAINER
653:                 <div class="grid-row-container clearfix">
654:                     ## GRID ROW
655:                     #set ($gridRowClass = "grid-row no-video")
656:                     #if ($hasVideo)
657:                         #set ($gridRowClass = "grid-row")
658:                     #end
659: 
660:                     <div id="firstPanelRow" class="$gridRowClass">
661: 
662:                         #set ($gridCounter = 0)
663: 
664:                         #if ($hasVideo)
665:                             #set ($gridCounter = $gridCounter + 1)
666:                             <div class="grid-col grid-col-v grid-col${gridCounter}">
667:                                 <h3 id="video-field-title" class="grid-title">Broadcast<span class="close">x</span></h3>
668:                                 <div class="grid-content clearfix">
669:                                     <div class='embed-container'>
670: 
671:                                     </div>
672:                                 </div>
673:                             ## GRID CONTENT
674:                             </div>
675:                         ## VIDEO COL
676:                         #end
677: 
678:                         #set ($gridCounter = $gridCounter + 1)
679:                         <div class="grid-col grid-col-cd grid-col${gridCounter}">
680:                             <h3 id="live-action-title" class="grid-title">
681:                                 Live Action<span class="close">x</span>
682:                             </h3>
683:                             <div class="grid-content clearfix">
684:                                 <div class="clearfix">
685:                                     <div class="container clearfix pt-live-action">
686:                                         <table>
687:                                             <thead>
688:                                             <tr>
689:                                                 <th>Time</th>
690:                                                 <th>Action</th>
691:                                                 <th>Plays</th>
692:                                             </tr>
693:                                             </thead>
694:                                             <tbody>
695:                                             </tbody>
696:                                         </table>
697:                                     </div>
698:                                 </div>
699:                             </div>
700:                         </div>
701:                     </div>
702: 
703:                     <div class="grid-row">
704:                         #set ($gridCounter = $gridCounter + 1)
705:                         <div class="grid-col grid-col${gridCounter}">
706:                             <h3 id="line-score-title" class="grid-title">
707:                                 Line Score<span class="close">x</span>
708:                             </h3>
709:                             <div class="grid-content clearfix">
710:                                 <div class="pt-line-score clearfix">
711:                                     <table id="scoreByPeriod">
712:                                         <thead>
713:                                         <tr>
714:                                             <th>&nbsp;</th>
715:                                         </tr>
716:                                         </thead>
717:                                         <tbody>
718:                                         <tr class="visitor">
719:                                             <td><img src="" alt=""
720:                                                      class="team-logo visitor-team-logo" />
721:                                                 <span class="team-name visitor-team-name"></span></td>
722:                                         </tr>
723:                                         <tr class="home">
724:                                             <td><img src="" alt=""
725:                                                      class="team-logo home-team-logo" />
726:                                                 <span class="team-name home-team-name"></span></td>
727:                                         </tr>
728:                                         </tbody>
729:                                     </table>
730: 
731:                                 </div>
732:                             </div>
733:                         ## GRID CONTENT
734:                         </div>
735:                     ## LINE SCORE
736:                     </div>
737: 
738:                     ## GRID ROW ## TABS
739:                     <div class="pt-game-info clearfix">
740: 
741:                         <ul class="pt-tabs clearfix">
742:                             <li class="current"><a href="#stats-tabs">Statistics</a></li>
743:                             <li><a href="#pbp-tabs">Play By Play</a></li>
744:                         </ul>
745: 
746:                         <div class="pt-tabs-panes clearfix">
747:                             <div id="stats-tabs" class="pt-tabs-pane clearfix">
748: 
749:                                 ## GRID ROW
750:                                 <div class="grid-row">
751:                                     #set ($gridCounter = $gridCounter + 1)
752:                                     <div class="grid-col grid-col-sp grid-col${gridCounter}">
753:                                         <h3 id="scoring-plays-title" class="grid-title">
754:                                             Scoring Plays<span class="close">x</span>
755:                                         </h3>
756:                                         <div class="grid-content clearfix">
757:                                             <div id="scoringPlayList" class="pt-scoring-plays clearfix">
758:                                             </div>
759:                                         </div>
760:                                     ## GRID CONTENT
761: 
762:                                     </div>
763:                                     ## SCRING PLAY
764:                                 </div>
765: 
766:                                 ## GRID ROW ##GRID ROW
767:                                 <div class="grid-row">
768:                                     #set ($gridCounter = $gridCounter + 1)
769:                                     <div class="grid-col grid-col-tc grid-col${gridCounter}">
770:                                         <h3 id="team-comparison-title" class="grid-title">
771:                                             Team Comparison<span class="close">x</span>
772:                                         </h3>
773:                                         <div class="grid-content clearfix">
774:                                             <div class="pt-team-compare clearfix">
775:                                                 <table id="teamCompare">
776:                                                     <thead>
777:                                                     <tr>
778:                                                         <th><img src="" alt="" class="team-logo visitor-team-logo" /><br />
779:                                                             <span class="team-name visitor-team-name"></span></th>
780:                                                         <th> <span></span></th>
781:                                                         <th><img src="" alt="" class="team-logo home-team-logo" /><br />
782:                                                             <span class="team-name home-team-name"></span></th>
783:                                                     </tr>
784:                                                     </thead>
785: 
786:                                                     <tbody>
787:                                                     <tr class="stats-shots">
788:                                                         <td></td>
789:                                                         <td class="stats-cat">Shots</td>
790:                                                         <td></td>
791:                                                     </tr>
792: 
793:                                                     <tr class="stats-shots-goal">
794:                                                         <td></td>
795:                                                         <td class="stats-cat">Shots on goal</td>
796:                                                         <td></td>
797:                                                     </tr>
798: 
799:                                                     <tr class="stats-free-shots">
800:                                                         <td></td>
801:                                                         <td class="stats-cat">Free position shots</td>
802:                                                         <td></td>
803:                                                     </tr>
804: 
805: 
806:                                                     <tr class="stats-saves">
807:                                                         <td></td>
808:                                                         <td class="stats-cat">Saves</td>
809:                                                         <td></td>
810:                                                     </tr>
811: 
812:                                                     <tr class="stats-face-won">
813:                                                         <td></td>
814:                                                         <td class="stats-cat">Face offs won</td>
815:                                                         <td></td>
816:                                                     </tr>
817: 
818:                                                     <tr class="stats-draw-controls">
819:                                                         <td></td>
820:                                                         <td class="stats-cat">Draw controls</td>
821:                                                         <td></td>
822:                                                     </tr>
823: 
824:                                                     <tr class="stats-ground-balls">
825:                                                         <td></td>
826:                                                         <td class="stats-cat">Ground balls</td>
827:                                                         <td></td>
828:                                                     </tr>
829: 
830:                                                     <tr class="stats-clears">
831:                                                         <td></td>
832:                                                         <td class="stats-cat">Clears</td>
833:                                                         <td></td>
834:                                                     </tr>
835: 
836:                                                     <tr class="stats-turnovers">
837:                                                         <td></td>
838:                                                         <td class="stats-cat">Turnovers</td>
839:                                                         <td></td>
840:                                                     </tr>
841: 
842:                                                     <tr class="stats-caused-to">
843:                                                         <td></td>
844:                                                         <td class="stats-cat">Caused TO</td>
845:                                                         <td></td>
846:                                                     </tr>
847: 
848:                                                     <tr class="stats-extra-man">
849:                                                         <td></td>
850:                                                         <td class="stats-cat">Man Up</td>
851:                                                         <td></td>
852:                                                     </tr>
853: 
854:                                                     <tr class="stats-penalties">
855:                                                         <td></td>
856:                                                         <td class="stats-cat">Penalties</td>
857:                                                         <td></td>
858:                                                     </tr>
859: 
860:                                                     <tr class="stats-fouls">
861:                                                         <td></td>
862:                                                         <td class="stats-cat">Fouls</td>
863:                                                         <td></td>
864:                                                     </tr>
865: 
866: 
867:                                                     </tbody>
868: 
869:                                                 </table>
870:                                             </div>
871:                                         </div>
872:                                     ## GRID CONTENT
873:                                     </div>
874:                                 ## TEAM COMPARE
875:                                 </div>
876:                                 ## GRID ROW ## GRID ROW
877:                                 <div class="grid-row">
878:                                     #set ($gridCounter = $gridCounter + 1)
879:                                     <div class="grid-col grid-col-is grid-col${gridCounter}">
880:                                         <h3 id="individual-stats-title" class="grid-title">
881:                                             Individual Stats<span class="close">x</span>
882:                                                                     <span>
883:                                                                         <img class="switchStats horizontal" src="/info/primetime3/images/horizontal_view.png" />
884:                                                                         &nbsp;
885:                                                                         <img class="switchStats vertical active" src="/info/primetime3/images/vertical_view.png" />
886:                                                                     </span>
887:                                         </h3>
888:                                         <div class="grid-content clearfix">
889:                                             <div class="pt-team-stats clearfix">
890: 
891:                                                 <div id="visitorTeamIndividualStats" class="active clearfix pt-stats-team">
892: 
893:                                                     <div class="pt-team clearfix">
894:                                                         <img src="" alt=""
895:                                                              class="team-logo visitor-team-logo active" />
896:                                                         <h3 class="team-name visitor-team-name"></h3>
897:                                                     </div>
898: 
899:                                                     <div class="pt-stats-tabs clearfix">
900:                                                         <div class="pt-panes clearfix">
901:                                                             <div id="vOffenseTab" class="pt-pane pt-pane1 clearfix">
902:                                                                 <div class="pt-row">
903:                                                                     <table class="goalieStats display"> <!-- goalies -->
904:                                                                         <thead>
905:                                                                         <tr>
906:                                                                             <th>#</th>
907:                                                                             <th>Goalie</th>
908:                                                                             <th>GA</th>
909:                                                                             <th>SV</th>
910:                                                                             <th>SF</th>
911:                                                                             <th>SV %</th>
912:                                                                             <th>Min</th>
913:                                                                         </tr>
914:                                                                         </thead>
915:                                                                         <tbody>
916: 
917:                                                                         </tbody>
918:                                                                     </table>
919:                                                                 </div>
920: 
921:                                                                 <div class="pt-row">
922:                                                                     <table class="playerStats display"> <!-- starters -->
923:                                                                         <thead>
924:                                                                         <tr>
925:                                                                             <th>#</th>
926:                                                                             <th>Player</th>
927:                                                                             <th class="toHide">Pos</th>
928:                                                                             <th>G</th>
929:                                                                             <th>A</th>
930:                                                                             <th class="toHide">P</th>
931:                                                                             <th>SH</th>
932:                                                                             <th class="toHide">Sog</th>
933:                                                                             <th class="toHide">FPG-A</th>
934:                                                                             <th>GB</th>
935:                                                                             <th class="toHide FO">FO</th>
936:                                                                             <th class="toHide DC">DC</th>
937:                                                                             <th>T/O</th>
938:                                                                             <th class="ct">CT</th>
939:                                                                             <th class="toHide PEN">PEN</th>
940:                                                                             <th class="toHide F">F</th>
941:                                                                         </tr>
942:                                                                         </thead>
943:                                                                         <tbody>
944: 
945:                                                                         </tbody>
946:                                                                     </table>
947:                                                                 </div>
948:                                                             </div>
949:                                                         </div>
950:                                                     </div>
951:                                                 </div>
952: 
953:                                                 <div id="homeTeamIndividualStats" class="clearfix pt-stats-team">
954: 
955:                                                     <div class="pt-team clearfix">
956:                                                         <img src="" alt=""
957:                                                              class="team-logo home-team-logo active" />
958:                                                         <h3 class="team-name home-team-name"></h3>
959:                                                     </div>
960: 
961:                                                     <div class="pt-stats-tabs clearfix">
962: 
963:                                                         <div class="pt-panes clearfix">
964:                                                             <div class="pt-pane clearfix">
965:                                                                 <div class="pt-row">
966:                                                                     <table class="goalieStats display"> <!-- goalies -->
967:                                                                         <thead>
968:                                                                         <tr>
969:                                                                             <th>#</th>
970:                                                                             <th>Goalie</th>
971:                                                                             <th>GA</th>
972:                                                                             <th>SV</th>
973:                                                                             <th>SF</th>
974:                                                                             <th>SV %</th>
975:                                                                             <th>Min</th>
976:                                                                         </tr>
977:                                                                         </thead>
978:                                                                         <tbody>
979: 
980:                                                                         </tbody>
981:                                                                     </table>
982:                                                                 </div>
983: 
984:                                                                 <div class="pt-row">
985:                                                                     <table class="playerStats display"> <!-- starters -->
986:                                                                         <thead>
987:                                                                         <tr>
988:                                                                             <th>#</th>
989:                                                                             <th>Player</th>
990:                                                                             <th class="toHide">Pos</th>
991:                                                                             <th>G</th>
992:                                                                             <th>A</th>
993:                                                                             <th class="toHide">P</th>
994:                                                                             <th>SH</th>
995:                                                                             <th class="toHide">Sog</th>
996:                                                                             <th class="toHide">FPG-A</th>
997:                                                                             <th>GB</th>
998:                                                                             <th class="toHide FO">FO</th>
999:                                                                             <th class="toHide DC">DC</th>
1000:                                                                             <th>T/O</th>
1001:                                                                             <th class="ct">CT</th>
1002:                                                                             <th class="toHide PEN">PEN</th>
1003:                                                                             <th class="toHide F">F</th>
1004:                                                                         </tr>
1005:                                                                         </thead>
1006:                                                                         <tbody>
1007: 
1008:                                                                         </tbody>
1009:                                                                     </table>
1010:                                                                 </div>
1011: 
1012:                                                             </div>
1013:                                                         </div>
1014:                                                     </div>
1015:                                                 </div>
1016: 
1017:                                             </div>
1018:                                         </div>
1019:                                     ## GRID CONTENT
1020:                                     </div>
1021:                                 ## INDIVISUAL STATS
1022:                                 </div>
1023:                                 ## GRID ROW ## GRID ROW
1024:                                 <div class="grid-row">
1025:                                     #set ($gridCounter = $gridCounter + 1)
1026:                                     <div class="grid-col grid-col-gi grid-col${gridCounter}">
1027:                                         <h3 id="game-info-title" class="grid-title">
1028:                                             Game Information<span class="close">x</span>
1029:                                         </h3>
1030:                                         <div class="grid-content clearfix">
1031:                                             <div class="pt-game-information clearfix">
1032: 
1033:                                                 <div class="pt-row clearfix">
1034:                                                     <center>
1035:                                                         <div class="date-time pt-col">
1036:                                                             <span id="gameInformationDate" class="date"></span>
1037:                                                             <span id="gameInformationTime" class="time"></span>
1038:                                                             <h3>Date & Time</h3>
1039:                                                         </div>
1040: 
1041:                                                         <div class="game-location pt-col">
1042:                                                             <span id="gameInformationLocation" class="location"></span>
1043:                                                             <h3>Location</h3>
1044:                                                         </div>
1045: 
1046:                                                         <div class="game-venue pt-col">
1047:                                                             <span id="gameInformationVenue" class="venue"></span>
1048:                                                             <h3>Venue</h3>
1049:                                                         </div>
1050: 
1051:                                                         <div class="weather pt-col">
1052: 
1053:                                                             <div class="weather-condition">
1054:                                                                 <span id="gameInformationTemperature" class="temp"></span>
1055:                                                                 <span id="gameInformationCondition" class="condition"></span>
1056:                                                             </div>
1057:                                                             <h3>Weather</h3>
1058:                                                         </div>
1059:                                                     </center>
1060:                                                 </div>
1061: 
1062:                                             </div>
1063:                                         </div>
1064:                                     ## GRID CONTENT
1065:                                     </div>
1066:                                 ## GENERAL INFORMATION
1067:                                 </div>
1068:                                 ## GRID ROW
1069:                             </div>
1070: 
1071:                             ## PLAY BY PLAY TABS
1072:                             <div id="pbp-tabs" class="pt-tabs-pane clearfix">
1073:                                 ## GRID ROW
1074:                                 <div class="grid-row">
1075:                                     #set ($gridCounter = $gridCounter + 1)
1076:                                     <div class="grid-col grid-col-ds grid-col${gridCounter}">
1077:                                         <h3 id="play-by-play-title" class="grid-title">
1078:                                             Play by Play<span class="close">x</span>
1079:                                         </h3>
1080:                                         <div class="grid-content clearfix">
1081:                                             <div id="playByPlay" class="clearfix">
1082:                                                 <select id="filterPeriod" class="dropdownFilter">
1083:                                                     <option value="" selected>ALL PERIODS</option>
1084:                                                 </select>
1085:                                                 <select id="filterTeam" class="dropdownFilter">
1086:                                                     <option value="" selected>BOTH TEAMS</option>
1087:                                                     <option value="" class="team-name visitor-team-name"></option>
1088:                                                     <option value="" class="team-name home-team-name"></option>
1089:                                                 </select>
1090:                                                 <select id="filterPlayType" class="dropdownFilter">
1091:                                                     <option value="" selected>ALL PLAYS</option>
1092:                                                     <option value="SHOT">Shot</option>
1093:                                                     <option value="FPA" class="women">Free position attempt</option>
1094:                                                     <option value="FPS" class="women">Free position shot</option>
1095:                                                     <option value="PEN" class="men">Penalty</option>
1096:                                                     <option value="FOUL" class="women">Foul</option>
1097:                                                     <option value="FACE" class="men">Faceoff</option>
1098:                                                     <option value="DC" class="women">Draw Control</option>
1099:                                                     <option value="CLEAR" class="men">Clear</option>
1100:                                                     <option value="GB">Ground ball</option>
1101:                                                     <option value="TURN">Turnover</option>
1102:                                                     <option value="TOUT">Timeout</option>
1103:                                                     <option value="YC" class="women">Yellow Card</option>
1104:                                                 </select>
1105:                                             </div>
1106:                                             <div class="pt-play-by-play clearfix">
1107:                                                 <table>
1108:                                                     <thead>
1109:                                                     <tr>
1110:                                                         <th><span class="team-name visitor-team-name"></span><span>&nbsp;PLAYS</span></th>
1111:                                                         <th>TIME</th>
1112:                                                         <th>ACTION</th>
1113:                                                         <th><span class="team-name home-team-name"></span><span>&nbsp;PLAYS</span></th>
1114:                                                     </tr>
1115:                                                     </thead>
1116:                                                     <tbody>
1117:                                                     </tbody>
1118:                                                 </table>
1119:                                             </div>
1120:                                         </div>
1121:                                     ## GRID CONTENT
1122:                                     </div>
1123:                                 ## DRIVE SUMMARY
1124:                                 </div>
1125:                             ## GRID ROW
1126:                             </div>
1127:                             ## PLAY BY PLAY TABS
1128:                         </div>
1129:                         ## PT TABS PANES
1130:                     </div>
1131:                     ## PRIME TIME GAME INFO
1132:                 </div>
1133:                 ## GRID ROW CONTAINER
1134: 
1135:                 ## FOOTER
1136:                 <div id="primetime-footer" class="grid-row">
1137:                     <div class="grid-col grid-col-ftr">
1138:                         <a href="/"></a>
1139:                     </div>
1140:                 </div>
1141:             </div>
1142:         ## PRIMTE TIME OVERFLOW
1143:         </div>
1144: 	#end    
1145:     
1146:     #set ($showWiki = true)
1147:     #set ($showWiki = $showWikiVar)
1148:     #if ($showWiki == true)
1149:         $wiki.su 
1150:     #end
1151:     ## END OF PRIMETIME	    
1152: 
1153: #else
1154: ##COMMON FUNCTIONS
1155: #macro (changeViewScript)
1156: ## CORRECT WRONG VIEW WITH REPLACESTATE
1157: <script type="text/javascript">
1158:     $(function () {
1159:         if (!$('.stats-tabs li.active').length) {
1160:             if (history.replaceState) {
1161:                 history.replaceState({}, '', '?view=' + $('.stats-tabs li:first').addClass('active').children('a').data('view'));
1162:             } else {
1163:                 $('.stats-tabs li:first').addClass('active');
1164:             }
1165:         }
1166:     })
1167: </script>
1168: #end
1169: 
1170: #macro (printPdfHeader $title)
1171: <div class="stats-fullbox clearfix">
1172:     <table>
1173:         <tr>
1174:             <td class="align-center"><h4>$title</h4></td>
1175:         </tr>
1176:     </table>
1177: </div>
1178: #end
1179: ##
1180: #set ($periodRule = $tool.math.toInteger($document.valueOf("lcgame/venue/rules/@prds")))
1181: #if ($periodRule == 4)
1182:     #set ($gender = 'M')
1183: #else
1184:     #set ($gender = 'F')
1185: #end
1186: 
1187: #set($isMobile = false)
1188: #if ($browser.getIphone() || $browser.getMobile())
1189: 	#set($isMobile = true)
1190: #end
1191: 
1192: #macro (period $p)
1193:   #if ($p == 1) 1st 
1194:   #elseif ($p == 2) 2nd #end
1195:   
1196:   #if ($p == 3 && $gender == 'M') 3rd
1197:   #elseif ($p == 3 && $gender == 'F') OT #end
1198:   
1199:   #if ($p == 4 && $gender == 'M') 4th
1200:   #elseif ($p == 4 && $gender == 'F') 2OT #end
1201:   
1202:   #if ($p > 4 && $gender == 'M') 
1203: 	#set($ot = $p - 4)
1204: 	#if ($ot > 1)
1205: 		${ot}OT
1206: 	#else
1207: 		OT
1208: 	#end
1209:   #elseif ($p > 4 && $gender == 'F')
1210:     #set ($ot = $p - 3)
1211: 	${ot}th
1212:   #end
1213: #end
1214: 
1215: #set ($home = $document.valueOf("lcgame/team[@vh='H']/@name"))
1216: #set ($visitor = $document.valueOf("lcgame/team[@vh='V']/@name"))
1217: #set ($status = $tool.math.toInteger($document.valueOf("lcgame/status/@period")))
1218: #set ($clock = $document.valueOf("lcgame/status/@clock"))
1219: #set ($visname = $document.valueOf("lcgame/venue/@visname"))
1220: #set ($homename = $document.valueOf("lcgame/venue/@homename"))
1221: #set ($location = $document.valueOf("lcgame/venue/@location"))
1222: #set ($stadium = $document.valueOf("lcgame/venue/@stadium"))
1223: #set ($date = $document.valueOf("lcgame/venue/@date"))
1224: #set ($time = $document.valueOf("lcgame/venue/@start"))
1225: #set ($schedNote = $document.valueOf("lcgame/venue/@schednote"))
1226: #set ($duration = $document.valueOf("lcgame/venue/@duration"))
1227: #set ($attendance = $document.valueOf("lcgame/venue/@attend"))
1228: 
1229: #set ($periods = $document.numberValueOf("lcgame/team[@vh='V']/linescore/@periods"))
1230: #set ($periods = $tool.math.toInteger($periods))
1231: #set ($periodRange = [1..$periods])
1232: 
1233: #set ($linkPlayers = $stats.linkPlayers)
1234: #set ($linkPlayersBase = $stats.linkPlayersBase)
1235: #set ($linkTeams = $stats.linkTeams)
1236: #set ($linkTeamsBase = $stats.linkTeamsBase)
1237: 
1238: #set ($shootoutScores = {"V" : 0, "H" : 0})
1239: #set ($hasPlayByPlay = $document.selectNodes("lcgame/plays/period").size() > 0)
1240: #set ($isNeutralGame = $document.valueOf("lcgame/venue/@neutralgame"))
1241: #if ($isNeutralGame.length() > 0 && $isNeutralGame.equals("Y"))
1242:   #set ($isNeutralGame = true)
1243: #else
1244:   #set ($isNeutralGame = false)
1245: #end
1246: 
1247: #if ($stats.pageUrl.length() > 0 && !$stats.pageUrl.contains("?"))
1248: 	#set ($paramSep = "?")
1249: #else
1250: 	#set ($paramSep = "&")
1251: #end
1252: 
1253: 
1254: ## SORT GOALIES BY GOALIECHANGES NODE https://prestosports.jira.com/browse/PS-5828
1255: #set ($visitorGoaliesOrder = [])
1256: #set ($visitorCount = 1)
1257: 
1258: #set ($homeGoaliesOrder = [])
1259: #set ($homeCount = 1)
1260: 
1261: #foreach ($node in $document.selectNodes("lcgame/goaliechanges/goaliechange"))
1262: 	#if ($node.attributeValue('vh') == 'V')
1263: 		#if ($!visitorGoaliesOrder.add($node.attributeValue('uni'))) #end
1264: 		#set($visitorCount = $visitorCount + 1)
1265: 	#else
1266: 		#if ($!homeGoaliesOrder.add($node.attributeValue('uni'))) #end
1267: 		#set($homeCount = $homeCount + 1)
1268: 	#end
1269: #end
1270: 
1271: #macro (printPlayerName $node $link)
1272: 	#if ($node.valueOf("../@playerId").length() > 0 && $linkPlayers && $link)
1273: 		<a href="$!linkPlayersBase?id=${stat.valueOf("../@playerId")}">
1274: 	#end
1275: 	$node.valueOf("../@name")
1276: 	#if ($node.valueOf("../@playerId").length() > 0 && $linkPlayers && $link)
1277: 		</a>
1278: 	#end
1279: #end
1280: 
1281: #macro (listGoalies $nodes $pos)
1282: 	#foreach ($stat in $nodes)
1283: 		#if ($pos == $stat.valueOf("../@uni") || $pos == $stat.valueOf("../@uniSave") || ! $pos)
1284: 			#if (! $isMobile)
1285: 				<tr>
1286: 					<td>$!stat.valueOf("../@uni")</td>
1287: 					<td class="nowrap">
1288: 						#printPlayerName($stat, false)
1289: 						#if($stat.valueOf("@win").length() > 0)<span>(W, $stat.valueOf("@win"))</span>#end
1290: 						#if($stat.valueOf("@loss").length() > 0)<span>(L, $stat.valueOf("@loss"))</span>#end
1291: 					</td>
1292: 					#set ($ga = $stat.numberValueOf("@ga"))
1293: 					<td class="align-center">$!formatter.formatNumber($ga, "#")</td>
1294: 					<td class="align-center">$!stat.valueOf("@minutes")</td>
1295: 					<td class="align-center">$!stat.valueOf("@saves")</td>
1296: 					<td class="align-center">#shots($stat.valueOf("@ga") $stat.valueOf("@saves"))</td>
1297: 				</tr>
1298: 			#else
1299: 				<div class="row goalies">
1300: 					<div class="toggle clearfix">
1301: 						<div class="data">$!stat.valueOf("../@uni")</div>
1302: 						<div class="name">
1303: 							#printPlayerName($stat, false)
1304: 							#if($stat.valueOf("@win").length() > 0)<span>(W, $stat.valueOf("@win"))</span>#end
1305: 							#if($stat.valueOf("@loss").length() > 0)<span>(L, $stat.valueOf("@loss"))</span>#end
1306: 						</div>
1307: 						#set ($ga = $stat.numberValueOf("@ga"))
1308: 						<div class="data">$!formatter.formatNumber($ga, "#")</div>
1309: 						<div class="data">$!stat.valueOf("@minutes")</div>
1310: 						<div class="data">$!stat.valueOf("@saves")</div>
1311: 						<div class="data">#shots($stat.valueOf("@ga") $stat.valueOf("@saves"))</div>
1312: 					</div>
1313: 				</div>
1314: 			#end
1315: 		#end
1316: 	#end
1317: #end
1318: 
1319: #macro (printGoalies $team)
1320: 	#set ($nodes = $team.selectNodes("player/goalie"))
1321: 	#if ($team.attributeValue('vh') == 'V')
1322: 		#set($order = $visitorGoaliesOrder)
1323: 	#else
1324: 		#set($order = $homeGoaliesOrder)
1325: 	#end
1326: 	
1327: 	#set ($printedUNIS = [])
1328: 
1329: 	#if ($order.size() > 0)
1330: 		#foreach($uni in $order)
1331: 
1332: 			#set ($printAllowed = true)
1333: 
1334: 			#foreach($printedUNI in $printedUNIS)
1335: 				#if ($uni == $printedUNI)
1336: 					#set ($printAllowed = false)
1337: 				#end
1338: 			#end
1339: 
1340: 			#if ($printAllowed)
1341: 				#listGoalies($nodes, $uni)
1342: 				#set ($addResult = $printedUNIS.add($uni))
1343: 			#end
1344: 		#end
1345: 	#else
1346: 		#listGoalies($nodes, false)
1347: 	#end
1348: #end
1349: 
1350: ## GOALIE SHOTS
1351: #macro (shots $ga $saves)
1352: 	#if ($saves.length() > 0)
1353: 		$tool.math.add($ga, $saves)
1354: 	#else
1355: 	
1356: 	#end
1357: #end
1358: 
1359: ## POWER PLAY PERCENTAGE
1360: #macro (pp $ppg $ppopp)
1361: 	#if ($ppopp.length() > 0)
1362: 		$formatter.formatNumber($tool.math.div($ppopp, $ppg), 3)
1363: 	#else
1364: 	
1365: 	#end
1366: #end
1367: 
1368: ## SHOOTOUT
1369: #macro (shootout $shootouts $t)
1370: 	#foreach ($shot in $shootouts)
1371: 		#if ($shot.valueOf("@vh") == $t)
1372: 			#if ($shot.valueOf("@result") == "MADE")
1373: 				#set ($score = $shootoutScores.get($t))
1374: 				#set ($score = $tool.math.add($score, 1))
1375: 				#set ($score = $shootoutScores.put($t, $score))
1376: 				Goal 
1377: 			#else
1378: 				No Goal 
1379: 			#end
1380: 			- #${shot.valueOf("@uni")} ${shot.valueOf("@name")}<br />
1381: 		#end ## if
1382: 	#end ## foreach
1383: #end
1384: 
1385: 
1386: ##MOBILE VERSION
1387: #if ($isMobile)
1388: 	
1389: ## serve dependencies if missing
1390: <script>
1391: if (!$('link[href="/info/mobile/stats/mobile-stats.css"]').length) {
1392:   $('head').eq(0).append('<link rel="stylesheet" type="text/css" href="/info/responsive-temp-mobile-stats.css" />');
1393: }
1394: 
1395: if (typeof $.mobileSite === "undefined") {
1396:   var script = document.createElement('script');
1397:   script.src = "/info/mobile/mobile-js/mobile-site.js";
1398:   $('body').eq(0).append(script);
1399: }
1400: 
1401: if (typeof $LAB === "undefined") {
1402:   var script = document.createElement('script');
1403:   script.src = "/info/mobile/mobile-js/LAB.min.js";
1404:   $('body').eq(0).append(script);
1405: }
1406: </script>
1407: 
1408: #macro (printMobileHeader)
1409: 
1410: <div class="teams">
1411: 	<div class="frame clearfix">
1412: 		<div class="team">
1413: 			$mobile_visitor.attributeValue("name")
1414: 		</div>
1415: 		<div class="versus">vs.</div>
1416: 		<div class="team right">
1417: 			$mobile_home.attributeValue("name")
1418: 		</div>
1419: 	</div>
1420: </div>
1421: 
1422: <div class="board">
1423: 	<div class="frame clearfix">
1424: 		<div class="result">$mobile_visitor.valueOf("linescore/@score")</div>
1425: 		<div class="timer">
1426: 			#if ($stats.final)
1427: 				<div class="time">Final</div>
1428: 			#else 
1429: 				<div class="time">$clock - #period($status)</div>
1430: 			#end
1431: 		</div>
1432: 		<div class="result">$mobile_home.valueOf("linescore/@score")</div>
1433: 	</div>
1434: </div>
1435: 
1436: #end
1437: 
1438: <script type="text/javascript"> 
1439: 	mobileConf.page = 'boxscore';
1440: 	mobileConf.pageParams = {
1441: 		deepLinking: true
1442: 		#if ($stats.inProgress)
1443: 			,inprogress : true
1444: 		#end
1445: 	}
1446: </script>
1447: 
1448: 	#set ($showWiki = true)
1449: 	#set ($showWiki = $showWikiVar)
1450: 
1451: 	#if ($showWiki == true)
1452: 		$!wiki.su 
1453: 	#end
1454: 
1455: 	#set ($mobile_home = $document.selectSingleNode("lcgame/team[@vh='H']"))
1456: 	#set ($mobile_visitor = $document.selectSingleNode("lcgame/team[@vh='V']"))
1457: 	
1458: 	#set ($mobile_plays = $document.valueOf("lcgame/plays/period[@number=$periods.intValue()]"))
1459: 	#set ($mobile_lastPlay = $document.selectSingleNode("lcgame/plays/period[@number=$periods.intValue()]/play[last()]"))
1460: 
1461: <div class="swipe-header">
1462: 	<a href="#" id="swipe-left"></a>
1463: 	<a href="#" id="swipe-right"></a>
1464: 	<ul class="dot-nav">
1465: 		<li class="dot-nav-1 active"></li>
1466: 		<li class="dot-nav-2"></li>
1467: 		<li class="dot-nav-3"></li>
1468: 	</ul>
1469: </div>
1470: <!-- BEGING SCORE BOARD-->
1471: <div id="swipe-wrapper">
1472: <div id="live2" class="lacrosse-stats">
1473:     <div class="swipe-screen" data-view="scoring">
1474:         <div class="score_board">
1475: 			
1476: 			#printMobileHeader()
1477: 			
1478:             <div class="table">
1479:                 <div class="frame">
1480:                     <div class="clearfix">
1481:                         <div class="cell cell_s">&nbsp;</div>
1482:                         <div class="cell cell_m">&nbsp;</div>
1483:                         <div class="cell cell_l title">SCORING</div>
1484:                         <div class="cell cell_m">&nbsp;</div>
1485:                         <div class="cell cell_s">&nbsp;</div>
1486:                     </div>
1487:                     #foreach ($i in $periodRange)
1488:                         <div class="clearfix">
1489:                             <div class="cell cell_s">&nbsp;</div>
1490:                             <div class="cell cell_m">$mobile_visitor.valueOf("linescore/lineprd[$i]/@score")</div>
1491:                             <div class="cell cell_l">#period($i)</div>
1492:                             <div class="cell cell_m">$mobile_home.valueOf("linescore/lineprd[$i]/@score")</div>
1493:                             <div class="cell cell_s">&nbsp;</div>
1494:                         </div>
1495:                     #end
1496:                     
1497:                     <div class="clearfix">
1498:                         <div class="cell cell_s">&nbsp;</div>
1499:                         <div class="cell cell_m">$mobile_visitor.valueOf("linescore/@score")</div>
1500:                         <div class="cell cell_l">FINAL</div>
1501:                         <div class="cell cell_m">$mobile_home.valueOf("linescore/@score")</div>
1502:                         <div class="cell cell_s">&nbsp;</div>
1503:                     </div>
1504:                 </div>
1505:             </div>
1506: 			#if ($lastPlay)
1507: 			<div class="recent">
1508:                 <div class="frame">
1509:                     <div class="toggle clearfix">
1510:                         <div class="title">LAST PLAY</div>
1511:                         <div class="arrow">
1512:                             <img src="/info/mobile/stats/images/arrow_down2.gif" class="recent_arrow_down" width="13" height="9"/>
1513:                             <img src="/info/mobile/stats/images/arrow_up2.gif" class="recent_arrow_up" style="display: none;" width="13" height="9"/>
1514:                         </div>
1515:                     </div>
1516: 					<div class="plays recent_plays" style="display: none;">
1517: 						<div class="play period">$!lastPlay.attributeValue("text")</div>
1518: 					</div>
1519:                 </div>
1520: 			</div>
1521: 			#end
1522: 			
1523:             <div class="recent">
1524:                 <div class="frame">
1525:                     <div class="toggle clearfix">
1526:                         <div class="title">Scoring Summary</div>
1527:                         <div class="arrow">
1528: 							<img height="9" width="13" class="recent_arrow_down" src="/info/mobile/stats/images/arrow_down2.gif" style="display: inline;">
1529: 							<img height="9" width="13" style="display: none;" class="recent_arrow_up" src="/info/mobile/stats/images/arrow_up2.gif">
1530: 						</div>
1531:                     </div>
1532: 					
1533: 					
1534: 						
1535: 					<div class="plays recent_plays" style="display: none;">
1536: 							## SCORING SUMMARY
1537: 							#foreach ($pd in $periodRange)
1538: 								#set ($shownStats = "")
1539: 								<div class="play period">
1540: 									#period($pd)
1541: 								</div>
1542: 							
1543: 								#foreach ($score in $document.selectNodes("lcgame/scores/score"))
1544: 									#if ($pd == $score.valueOf("@prd"))
1545: 										#set ($shownStats = "y")
1546: 										<div class="play clearfix">
1547: 											<div class="time">
1548: 												$score.valueOf("@time")
1549: 											</div>
1550: 											<div class="text">
1551: 												<b>
1552: 												#if
1553: 													($score.valueOf("@vh") == 'H') $mobile_home.attributeValue("name")
1554: 												#end
1555: 												#if
1556: 													($score.valueOf("@vh") == 'V') $mobile_visitor.attributeValue("name")
1557: 												#end
1558: 												</b>&nbsp; - &nbsp;
1559: 												#if ($score.valueOf("@type") == 'PP')<i>PP - </i>#end
1560: 												#if ($score.valueOf("@type") == 'SH')<i>SH - </i>#end
1561: 												#if ($score.valueOf("@type") == 'PS')<i>PS - </i>#end
1562: 												#if ($score.valueOf("@engoal") == 'Y')<i>EN - </i>#end
1563: 
1564: 												#if ($score.valueOf("@playerId").length() > 0 and $linkPlayers and $score.valueOf("../@link").length() > 0)
1565: 													<a href="$!linkPlayersBase?id=${score.valueOf("@playerId")}">
1566: 												#end
1567: 												$score.valueOf("@name")
1568: 												#if ($score.valueOf("@playerId").length() > 0 and $linkPlayers and $score.valueOf("../@link").length() > 0)
1569: 													</a>
1570: 												#end
1571: 												
1572:                                                 #set ($scoreLabel = '')
1573:                                                 
1574:                                                 #if ($hasPlayByPlay && $gender == 'F')
1575:                                                     #set ($scoreTime = $score.valueOf("@time"))
1576:                                                     #set ($fpsFlag = false)
1577:                                                     #foreach ($fpsNode in $document.selectNodes("//play[@action='FPS']"))
1578:                                                         #if ($fpsNode.valueOf("@clock") == $scoreTime)
1579:                                                             #set ($fpsFlag = true)
1580:                                                         #end
1581:                                                     #end
1582:                                                     #if ($fpsFlag)
1583:                                                         #set ($scoreLabel = '(Free position shot)')
1584:                                                     #else
1585:                                                         #set ($scoreLabel = '(unassisted)')
1586:                                                     #end
1587:                                                 #else
1588:                                                     #set ($scoreLabel = '(unassisted)')
1589:                                                 #end
1590:       
1591: 												<i>#if($score.valueOf("@assist1").length() > 0)
1592:                                                     #if ($score.valueOf("@assist1Id").length() > 0 and $linkPlayers and $stat.valueOf("../@link").length() > 0)
1593:                                                         <a href="$!linkPlayersBase?id=${score.valueOf("@assist1Id")}">
1594:                                                     #end
1595:                                                     ($score.valueOf("@assist1"))
1596:                                                     #if ($score.valueOf("@assist1Id").length() > 0 and $linkPlayers and $stat.valueOf("../@link").length() > 0)
1597:                                                         </a>
1598:                                                     #end
1599:                                                 #else 
1600:                                                     $!scoreLabel 
1601:                                                 #end
1602:                                                 
1603:                                                 #if($score.valueOf("@assist2").length() > 0) 
1604:                                                     &amp; 
1605:                                                     #if ($score.valueOf("@assist2Id").length() > 0 and $linkPlayers)
1606:                                                         <a href="$!linkPlayersBase?id=${score.valueOf("@assist2Id")}">
1607:                                                     #end 
1608:                                                     ($score.valueOf("@assist2"))
1609:                                                     #if ($score.valueOf("@assist2Id").length() > 0 and $linkPlayers)
1610:                                                         </a>
1611:                                                     #end
1612:                                                 #end</i>
1613: 											</div>
1614: 										</div>
1615: 									#end
1616: 								#end
1617: 								#if ($shownStats == "")
1618: 									<div class="play clearfix center">(no scoring)</div>
1619: 								#end
1620: 							#end
1621: 						</div>
1622: 					</div>
1623: 				</div>
1624: 			</div>
1625: 		</div>
1626: 
1627: 		<!-- BEGING LINE UP -->
1628: 		<div class="swipe-screen" data-view="boxscore">
1629: 			#printMobileHeader()
1630: 			<div class="team_stats">
1631: 				<div class="teams clearfix"> 
1632: 					<div id="button-1" class="button clearfix active">
1633: 						<div class="team">$mobile_visitor.attributeValue("name")</div>
1634: 						<div class="end">
1635: 							<div>&nbsp;</div>
1636: 						</div>
1637: 					</div>
1638: 					<div id="button-2" class="button clearfix">
1639: 						<div class="team">$mobile_home.attributeValue("name")</div>
1640: 						<div class="end">
1641: 							<div>&nbsp;</div>
1642: 						</div>
1643: 					</div>
1644: 	
1645: 					<!-- BEGING STATS -->
1646: 
1647: 					#macro (mobile_playerstats $team)
1648: 						<div class="titles clearfix">
1649: 							<div class="data">#</div>
1650: 							<div class="name">PLAYER</div>
1651: 							<div class="data">POS</div>
1652: 							<div class="data">G</div>
1653: 							<div class="data">A</div>
1654: 							##<div class="data">+/-</div>
1655: 							<div class="data">SH</div>
1656: 							##<div class="data">PIM</div>
1657:                             <div class="data">SOG</div>
1658:                             <div class="data">GB</div>
1659: 						</div>
1660: 
1661: 						#foreach ($stat in $team.selectNodes("player/shots"))
1662: 
1663: 							<div class="row">
1664: 								<div class="toggle clearfix">
1665: 									<div class="data">$!stat.valueOf("../@uni")</div>
1666: 									<div class="name">
1667: 										#if ($stat.valueOf("../@playerId").length() > 0 and $linkPlayers and $stat.valueOf("../../@link").length() > 0)
1668: 											## <a href="$!linkPlayersBase?id=${stat.valueOf("../@playerId")}">
1669: 										#end
1670: 										$stat.valueOf("../@name")
1671: 										#if ($stat.valueOf("../@playerId").length() > 0 and $linkPlayers and $stat.valueOf("../../@link").length() > 0)
1672: 											## </a>
1673: 										#end
1674: 									</div>
1675: 									<div class="data">
1676: 										#if ($stat.valueOf("../@pos").length() > 0)
1677: 											$stat.valueOf("../@pos")
1678: 										#else
1679: 											&nbsp;
1680: 										#end
1681: 									</div>
1682: 									<div class="data">$!stat.valueOf("@g")</div>
1683: 									<div class="data">$!stat.valueOf("@a")</div>
1684: 									<div class="data">$!stat.valueOf("@sh")</div>
1685:                                     <div class="data">$!stat.valueOf("@sog")</div>
1686:                                     <div class="data">$!stat.valueOf("../misc/@gb")</div>
1687: 								</div>
1688: 							</div>
1689: 						#end
1690: 
1691: 						<div class="titles clearfix goalies">
1692: 							<div class="data">#</div>
1693: 							<div class="name">GOALIES</div>
1694: 							<div class="data">GA</div>
1695: 							<div class="data">Min</div>
1696: 							<div class="data">SV</div>
1697: 							<div class="data">SH</div>
1698: 							##<div class="data">PIM</div>
1699: 						</div>
1700: 
1701: 						#printGoalies($team)
1702: 						
1703: 					#end
1704: 
1705: 					## VISITOR STATISTICS
1706: 					<div class="table hockey" id="table_team_stats_1">#mobile_playerstats($document.selectSingleNode("lcgame/team[@vh='V']"))</div>
1707: 
1708: 					## HOME STATISTICS
1709: 					<div class="table hockey" id="table_team_stats_2" style="display: none">#mobile_playerstats($document.selectSingleNode("lcgame/team[@vh='H']"))</div>
1710: 
1711: 					
1712: 					<!-- END STATS -->
1713: 				</div>
1714: 			</div>
1715: 		</div>
1716: 		<!-- END LINE UP -->
1717: 		<!-- BEGING TEAM STATS -->
1718: 		<div class="swipe-screen" data-view="summary">
1719: 			#printMobileHeader()
1720: 			<div class="line_up">
1721: 				<div class="table">
1722: 					<div class="frame">
1723: 						<div class="clearfix">
1724: 							<div class="cell cell_s">&nbsp;</div>
1725: 							<div class="cell cell_m">&nbsp;</div>
1726: 							<div class="cell cell_l title">SHOTS</div>
1727: 							<div class="cell cell_m">&nbsp;</div>
1728: 							<div class="cell cell_s">&nbsp;</div>
1729: 						</div>
1730:                         #foreach ($i in $periodRange)
1731:                             <div class="clearfix">
1732:                                 <div class="cell cell_s">&nbsp;</div>
1733:                                 <div class="cell cell_m">$mobile_visitor.valueOf("linescore/lineprd[$i]/@shots")</div>
1734:                                 <div class="cell cell_l">#period($i)</div>
1735:                                 <div class="cell cell_m">$mobile_home.valueOf("linescore/lineprd[$i]/@shots")</div>
1736:                                 <div class="cell cell_s">&nbsp;</div>
1737:                             </div>
1738:                         #end
1739:                         
1740: 						<div class="clearfix">
1741: 							<div class="cell cell_s">&nbsp;</div>
1742: 							<div class="cell cell_m">$mobile_visitor.valueOf("linescore/@shots")</div>
1743: 							<div class="cell cell_l">TOTAL</div>
1744: 							<div class="cell cell_m">$mobile_home.valueOf("linescore/@shots")</div>
1745: 							<div class="cell cell_s">&nbsp;</div>
1746: 						</div>
1747:                         
1748:                         ##GROUND BALLS                        
1749: 						<div class="clearfix">
1750: 							<div class="cell cell_s">&nbsp;</div>
1751: 							<div class="cell cell_m">&nbsp;</div>
1752: 							<div class="cell cell_l title">Ground Balls</div>
1753: 							<div class="cell cell_m">&nbsp;</div>
1754: 							<div class="cell cell_s">&nbsp;</div>
1755: 						</div>
1756: 						<div class="clearfix">
1757: 							<div class="cell cell_s">&nbsp;</div>
1758: 							<div class="cell cell_m">
1759: 								$mobile_visitor.valueOf("totals/misc/@gb")
1760: 							</div>
1761: 							<div class="cell cell_l">&nbsp;</div>
1762: 							<div class="cell cell_m">
1763: 								$mobile_home.valueOf("totals/misc/@gb")
1764: 							</div>
1765: 							<div class="cell cell_s">&nbsp;</div>
1766: 						</div>
1767:                         
1768:                         ##TURNOVERS                        
1769: 						<div class="clearfix">
1770: 							<div class="cell cell_s">&nbsp;</div>
1771: 							<div class="cell cell_m">&nbsp;</div>
1772: 							<div class="cell cell_l title">Turnovers</div>
1773: 							<div class="cell cell_m">&nbsp;</div>
1774: 							<div class="cell cell_s">&nbsp;</div>
1775: 						</div>
1776: 						<div class="clearfix">
1777: 							<div class="cell cell_s">&nbsp;</div>
1778: 							<div class="cell cell_m">
1779: 								$mobile_visitor.valueOf("totals/misc/@turnover")
1780: 							</div>
1781: 							<div class="cell cell_l">&nbsp;</div>
1782: 							<div class="cell cell_m">
1783: 								$mobile_home.valueOf("totals/misc/@turnover")
1784: 							</div>
1785: 							<div class="cell cell_s">&nbsp;</div>
1786: 						</div>
1787:                         
1788:                         #if ($gender == 'M')
1789:                          
1790:                             ##FACEOFFS                        
1791:                             <div class="clearfix">
1792:                                 <div class="cell cell_s">&nbsp;</div>
1793:                                 <div class="cell cell_m">&nbsp;</div>
1794:                                 <div class="cell cell_l title">Faceoffs</div>
1795:                                 <div class="cell cell_m">&nbsp;</div>
1796:                                 <div class="cell cell_s">&nbsp;</div>
1797:                             </div>
1798:                             <div class="clearfix">
1799:                                 <div class="cell cell_s">&nbsp;</div>
1800:                                 <div class="cell cell_m">
1801:                                     #set ($facewonVisitor = $tool.math.toInteger($mobile_visitor.valueOf("totals/misc/@facewon")) +  $tool.math.toInteger($mobile_visitor.valueOf("totals/misc/@facelost")))
1802:                                     $mobile_visitor.valueOf("totals/misc/@facewon")-$!facewonVisitor
1803:                                 </div>
1804:                                 <div class="cell cell_l">&nbsp;</div>
1805:                                 <div class="cell cell_m">
1806:                                      #set ($facewonHome = $tool.math.toInteger($mobile_home.valueOf("totals/misc/@facewon")) +  $tool.math.toInteger($mobile_home.valueOf("totals/misc/@facelost")))
1807:                                     $mobile_home.valueOf("totals/misc/@facewon")-$!facewonHome
1808:                                 </div>
1809:                                 <div class="cell cell_s">&nbsp;</div>
1810:                             </div>
1811:                             
1812:                             ##MAN UP                        
1813:                             <div class="clearfix">
1814:                                 <div class="cell cell_s">&nbsp;</div>
1815:                                 <div class="cell cell_m">&nbsp;</div>
1816:                                 <div class="cell cell_l title">Man Up</div>
1817:                                 <div class="cell cell_m">&nbsp;</div>
1818:                                 <div class="cell cell_s">&nbsp;</div>
1819:                             </div>
1820:                             <div class="clearfix">
1821:                                 <div class="cell cell_s">&nbsp;</div>
1822:                                 <div class="cell cell_m">
1823:                                     $mobile_visitor.valueOf("totals/powerplay/@ppg")-$mobile_visitor.valueOf("totals/powerplay/@ppopp")
1824:                      
1825:                                 </div>
1826:                                 <div class="cell cell_l">&nbsp;</div>
1827:                                 <div class="cell cell_m">
1828:                                     $mobile_home.valueOf("totals/powerplay/@ppg")-$mobile_home.valueOf("totals/powerplay/@ppopp")
1829:                                 </div>
1830:                                 <div class="cell cell_s">&nbsp;</div>
1831:                             </div>
1832: 							
1833: 							##FO Violation
1834:                             <div class="clearfix">
1835:                                 <div class="cell cell_s">&nbsp;</div>
1836:                                 <div class="cell cell_m">&nbsp;</div>
1837:                                 <div class="cell cell_l title">FO Violation</div>
1838:                                 <div class="cell cell_m">&nbsp;</div>
1839:                                 <div class="cell cell_s">&nbsp;</div>
1840:                             </div>
1841:                             <div class="clearfix">
1842:                                 <div class="cell cell_s">&nbsp;</div>
1843:                                 <div class="cell cell_m">
1844:                                     $mobile_visitor.valueOf("totals/penalty/@fviol")
1845:                                 </div>
1846:                                 <div class="cell cell_l">&nbsp;</div>
1847:                                 <div class="cell cell_m">
1848:                                     $mobile_home.valueOf("totals/penalty/@fviol")
1849:                                 </div>
1850:                                 <div class="cell cell_s">&nbsp;</div>
1851:                             </div>
1852:                             
1853:                              ##PENALTY TOTALS                        
1854:                             <div class="clearfix">
1855:                                 <div class="cell cell_s">&nbsp;</div>
1856:                                 <div class="cell cell_m">&nbsp;</div>
1857:                                 <div class="cell cell_l title">Penalty Totals</div>
1858:                                 <div class="cell cell_m">&nbsp;</div>
1859:                                 <div class="cell cell_s">&nbsp;</div>
1860:                             </div>
1861:                             
1862:                             #set ($penaltySeconds = $mobile_visitor.valueOf("totals/penalty/@seconds"))
1863:                             #set ($penaltyCount = $mobile_visitor.valueOf("totals/penalty/@count"))
1864:                             #if ($penaltySeconds.length() > 0 && $penaltyCount.length() > 0)
1865:                                 #set ($penaltyMinutes = $tool.math.toInteger($tool.math.div($penaltySeconds, 60)))
1866:                                 #set ($minString = "${penaltyMinutes}")
1867:                                 #set ($secString = "")
1868:                                 #if ($remainder > 0)
1869:                                     #set ($secString = "${remainder}")
1870:                                 #end
1871:                             #end
1872:                             
1873:                             <div class="clearfix">
1874:                                 <div class="cell cell_s">&nbsp;</div>
1875:                                 <div class="cell cell_m">$minString $secString</div>
1876:                                 
1877:                                 #set ($penaltySeconds = $mobile_home.valueOf("totals/penalty/@seconds"))
1878:                                 #set ($penaltyCount = $mobile_home.valueOf("totals/penalty/@count"))
1879:                                 #if ($penaltySeconds.length() > 0 && $penaltyCount.length() > 0)
1880:                                     #set ($penaltyMinutes = $tool.math.toInteger($tool.math.div($penaltySeconds, 60)))
1881:                                     #set ($minString = "${penaltyMinutes} ")
1882:                                     #set ($secString = "")
1883:                                     #if ($remainder > 0)
1884:                                         #set ($secString = "${remainder}")
1885:                                     #end
1886:                                 #end
1887:                                 
1888:                                 <div class="cell cell_l">Minutes</div>
1889:                                 <div class="cell cell_m">$minString $secString</div>
1890:                                 <div class="cell cell_s">&nbsp;</div>
1891:                             </div>
1892:                             
1893:                             <div class="clearfix">
1894:                                 <div class="cell cell_s">&nbsp;</div>
1895:                                 <div class="cell cell_m">$mobile_visitor.valueOf("totals/penalty/@count")</div>
1896:                                 <div class="cell cell_l">Infractions</div>
1897:                                 <div class="cell cell_m">$mobile_home.valueOf("totals/penalty/@count")</div>
1898:                                 <div class="cell cell_s">&nbsp;</div>
1899:                             </div>
1900:                              
1901:                             
1902:                         #else
1903:                         
1904:                              ##Drawcontrols  
1905:                             <div class="clearfix">
1906:                                 <div class="cell cell_s">&nbsp;</div>
1907:                                 <div class="cell cell_m">&nbsp;</div>
1908:                                 <div class="cell cell_l title">Draw controls</div>
1909:                                 <div class="cell cell_m">&nbsp;</div>
1910:                                 <div class="cell cell_s">&nbsp;</div>
1911:                             </div>
1912:                             <div class="clearfix">
1913:                                 <div class="cell cell_s">&nbsp;</div>
1914:                                 <div class="cell cell_m">
1915:                                     $mobile_visitor.valueOf("totals/misc/@dc")
1916:                      
1917:                                 </div>
1918:                                 <div class="cell cell_l">&nbsp;</div>
1919:                                 <div class="cell cell_m">
1920:                                     $mobile_home.valueOf("totals/misc/@dc")
1921:                                 </div>
1922:                                 <div class="cell cell_s">&nbsp;</div>
1923:                             </div>
1924:                             
1925:                              ##Free position shots                       
1926:                             <div class="clearfix">
1927:                                 <div class="cell cell_all title">Free position shots</div>
1928:                             </div>
1929:                             <div class="clearfix">
1930:                                 <div class="cell cell_s">&nbsp;</div>
1931:                                 <div class="cell cell_m">
1932:                                     $mobile_visitor.valueOf("totals/goaltype/@freepos")-$mobile_visitor.valueOf("totals/shots/@freepos")
1933:                      
1934:                                 </div>
1935:                                 <div class="cell cell_l">&nbsp;</div>
1936:                                 <div class="cell cell_m">
1937:                                     $mobile_home.valueOf("totals/goaltype/@freepos")-$mobile_home.valueOf("totals/shots/@freepos")
1938:                                 </div>
1939:                                 <div class="cell cell_s">&nbsp;</div>
1940:                             </div>
1941:                         
1942:                         #end
1943:                         
1944: 					</div>
1945:             
1946:                     <div class="recent">
1947:                         <div class="frame">
1948:                             <div class="toggle clearfix">
1949:                                 <div class="play title">
1950:                                     Penalty Summary
1951:                                      <div class="arrow">
1952:                                         <img src="/info/mobile/stats/images/arrow_down2.gif" class="recent_arrow_down" width="13" height="9"/>
1953:                                         <img src="/info/mobile/stats/images/arrow_up2.gif" class="recent_arrow_up" style="display: none;" width="13" height="9"/>
1954:                                     </div>
1955:                                 </div>
1956:                             </div>
1957:                                 <div class="recent_plays plays" style="display: none;">
1958:                                     #foreach ($pd in $periodRange)
1959:                                         #set ($shownStats = "")
1960:                                         <div class="play period">#period($pd)</div>
1961:                                         #foreach ($penalty in $document.selectNodes("lcgame/penalties/pen"))
1962:                                             #if ($pd == $penalty.valueOf("@prd"))
1963:                                                 #set ($shownStats = "y")
1964:                                                 <div class="play clearfix">
1965:                                                     <div class="time">$penalty.valueOf("@time")</div>
1966:                                                     <div class="text">
1967:                                                         <b>
1968:                                                             #if($penalty.valueOf("@vh") == 'H') $mobile_home.attributeValue("name") #end
1969:                                                             #if($penalty.valueOf("@vh") == 'V') $mobile_visitor.attributeValue("name") #end
1970:                                                         </b> &nbsp; - &nbsp; 
1971:                                                         #if ($penalty.valueOf("@type") == 'PP')<i>PP - </i>#end
1972:                                                         #if ($penalty.valueOf("@type") == 'SH')<i>SH - </i>#end
1973:                                                         $penalty.valueOf("@name"): $!penalty.valueOf("@desc")
1974:                                                     </div>
1975:                                                 </div>
1976:                                             #end
1977:                                         #end
1978:                                         #if ($shownStats == "")
1979:                                             <div class="row sub_title"><i>No penalties</i></div>
1980:                                         #end
1981:                                     #end
1982:                                 </div>
1983:                         </div>
1984:                     </div>
1985: 
1986:                     <div class="recent">
1987:                         <div class="frame">
1988:                             <div class="other">
1989:                                 <div class="toggle clearfix">
1990:                                     <div class="row title">
1991:                                         Other Information
1992:                                          <div class="arrow">
1993:                                             <img src="/info/mobile/stats/images/arrow_down2.gif" class="recent_arrow_down" width="13" height="9"/>
1994:                                             <img src="/info/mobile/stats/images/arrow_up2.gif" class="recent_arrow_up" style="display: none;" width="13" height="9"/>
1995:                                         </div>
1996:                                     </div>
1997:                                 </div>
1998:                                 
1999:                                 <div class="recent_plays plays" style="display: none;">
2000: 									#if($location.length() > 0)
2001:                                     <div class="row clearfix">
2002:                                         <div class="data">Location</div>
2003:                                         <div class="text">$location #if($stadium.length() > 0) ($!stadium)#end</div>
2004:                                     </div>
2005: 									#end
2006: 									
2007: 									#if($duration.length() > 0)
2008:                                     <div class="row clearfix">
2009:                                         <div class="data">Game Length</div>
2010:                                         <div class="text">$!duration</div>
2011:                                     </div>
2012: 									#end
2013: 									
2014: 									#if($attendance.length() > 0)
2015:                                     <div class="row clearfix">
2016:                                         <div class="data">Attendance</div>
2017:                                         <div class="text">$!attendance</div>
2018:                                     </div>
2019: 									#end
2020: 									
2021: 									#if($schedNote.length() > 0)
2022:                                     <div class="row clearfix">
2023:                                         <div class="data">Note</div>
2024:                                         <div class="text">$!schedNote</div>
2025:                                     </div>									
2026: 									
2027: 									#end
2028: 									
2029:                                         <div class="row  title">Officials and game personnel</div>
2030:                                     #foreach ($official in $document.selectNodes("lcgame/venue/officials/official"))
2031:                                         <div class="row clearfix">
2032:                                             <div class="data">$official.valueOf("@title")</div>
2033:                                             <div class="text">$official.valueOf("@name")</div>
2034:                                         </div>
2035:                                     #end
2036:                                 </div>
2037:                             </div>
2038:                         </div>
2039:                     </div>
2040: 				</div>
2041: 			</div>
2042: 		</div>
2043: 	</div>
2044: </div>
2045: 
2046: #set ($showWiki = true)
2047: #set ($showWiki = $showWikiVar)
2048: 
2049: #if ($showWiki == true)
2050: 	$!wiki.su 
2051: #end
2052: 
2053: 
2054: #else
2055:     ##WEBSITE VERSION
2056: 
2057:     #set ($showWiki = true)
2058:     #set ($showWiki = $showWikiVar)
2059: 
2060:     #if ($stats.view != "pdf")
2061:         #if ($showWiki == true)
2062:             $!wiki.su
2063:         #end
2064:     #end
2065: 
2066:     <html>
2067:     <head>
2068:         <title>$visname #if($isNeutralGame)vs.#else at #end $homename | Box
2069:             Score #if($date.length() > 0)| $date #end</title>
2070:         #if ($stats.inProgress)
2071:             <meta http-equiv="refresh" content="60"/>
2072:         #end
2073:         #if ($stats.view == "pdf")
2074:             #include("statcrew-pdf-css-template")
2075:         #end
2076:     </head>
2077:     <body>
2078: 
2079:         #if ($stats.view == "pdf")
2080:             <div class='footer-left'>$visname vs. $homename</div>
2081:             <div class='footer-right'><span id="pagenumber"></span> of <span
2082:                     id="pagecount"></span></div>
2083:         #end
2084: 
2085:     <div class="stats-wrapper lcgame clearfix">
2086: 
2087:         #if ($stats.view != "pdf")
2088:             ## GAME INFORMATION
2089:             <div class="align-center"><span class="bold">$visname #if($isNeutralGame)
2090:                 vs.#else at #end $homename</span>#if($location.length() > 0)
2091:                 <br/>@ $location #if($stadium.length() > 0)($stadium
2092:                     )#end#end #if($date.length() > 0)<br/>$date #if($time.length() > 0)
2093:                 at $time#end#end #if($schedNote.length() > 0)$schedNote#end</div>
2094:             <br/>
2095: 
2096:             ## TEAM SCORES
2097:             <table>
2098:                 <tr>
2099:                     #foreach ($team in $document.selectNodes("lcgame/team"))
2100:                         <td class="align-center" style="width:50%">
2101: 
2102:                             #if ($team.attributeValue("link").length() > 0 and
2103:                                 $linkTeams and $stats.view != "pdf")
2104:                             <a href="$!linkTeamsBase?id=${team.attributeValue("teamId")}">
2105:                             #end
2106:                             <span class="stats-header">$team.attributeValue("name")</span>
2107:                             #if ($team.attributeValue("link").length() > 0 and
2108:                                 $linkTeams and $stats.view != "pdf")
2109:                             </a>
2110:                             #end
2111:                             <br/><span
2112:                                 class="stats-header">$team.valueOf("linescore/@score")</span>
2113:                         </td>
2114:                     #end
2115:                 </tr>
2116:             </table>
2117:         #end
2118: 
2119:         #macro (printPeriodHead)
2120:             #set ($ot = 0)
2121:             #foreach ($i in $periodRange)
2122:                 #if (($gender == 'M' && $i > 4) || ($gender == 'F' && $i > 2))
2123:                     #set ($ot = $ot + 1)
2124:                     #if ($ot > 1)
2125:                     <th style="width:40px">${ot}OT</th>
2126:                     #else
2127:                     <th style="width:40px">OT</th>
2128:                     #end
2129:                 #else
2130:                 <th style="width:40px">$i</th>
2131:                 #end
2132:             #end
2133:         #end
2134: 
2135:         #if ($stats.view != "pdf")
2136:             <div class="stats-fullbox clearfix">
2137:                 ## PERIOD SUMMARY
2138:                 <table>
2139:                     <tr>
2140:                         <th class="align-left">SCORING</th>
2141:                         #printPeriodHead()
2142:                         <th style="width:80px">#if($stats.final)
2143:                             FINAL#else#period($status)#if($clock.length() > 0)
2144:                             - $clock#end#end</th>
2145:                     </tr>
2146: 
2147:                 ## team scores
2148:                     #foreach ($team in $document.selectNodes("lcgame/team"))
2149:                         <tr>
2150:                             #set ($teamRecord = $team.valueOf("@record"))
2151:                             <td>$team.attributeValue("name") #if($teamRecord.length() > 0)
2152:                                 ($teamRecord)#end</td>
2153:                             #foreach ($i in $periodRange)
2154:                                 <td class="align-center">$team.valueOf("linescore/lineprd[$i
2155:                                     ]/@score")</td>
2156:                             #end
2157:                             <td class="align-center">$team.valueOf("linescore/@score")</td>
2158:                         </tr>
2159:                     #end
2160:                 </table>
2161:             </div>
2162:         #end
2163: 
2164:         ## TABS
2165:         #if ($hasPlayByPlay and $stats.view != "pdf")
2166:         <div class="stats-tabs clearfix">
2167:             <ul class="clearfix">
2168:                 <li #if (!($stats.view.length() > 0) || $stats.view == "boxscore")
2169:                         class="active" #end>
2170:                     <a data-view="boxscore" href="${stats.pageUrl}">
2171:                         Box Score
2172:                     </a>
2173:                 </li>
2174:                 <li #if ($stats.view == "plays") class="active" #end>
2175:                     <a data-view="plays"
2176:                         href="${stats.pageUrl}${paramSep}view=plays" id="pbp">
2177:                         Play by Play
2178:                     </a>
2179:                 </li>
2180:                 <li>
2181:                     <a href="${stats.pageUrl}?tmpl=lcxml-monospace-template"
2182:                        target="_blank">
2183:                     Coach's view
2184:                     </a>
2185:                 </li>
2186:             </ul>
2187:         </div>
2188:         #end
2189: 
2190:         #macro (printTabPlayByPlay)
2191:         ## PLAY BY PLAY
2192: 
2193:             #macro (printPlays $prd)
2194:                 #set ($prdCount = $prd.valueOf("@number"))
2195:             <tr>
2196:                 <th colspan="4" class="align-left"><span id="prd${prdCount}">#period($prdCount)
2197:                 </span>
2198:                 </th>
2199:             </tr>
2200:             <tr class="stats-highlight">
2201:                 <td class="align-center"><span class="bold">Time</span></td>
2202:                 <td class="align-center"><span class="bold">Play</span></td>
2203:             </tr>
2204:                 #set ($i = 0)
2205:                 #foreach ($play in $prd.selectNodes("*"))
2206:                     #set ($nodeName = $play.getName())
2207:                     #if ($nodeName == "play")
2208:                         #set ($i = $i + 1)
2209:                         #if ($i % 2 == 0)
2210:                             #set ($row = "even")
2211:                         #else
2212:                             #set ($row = "odd")
2213:                         #end
2214:                     <tr class="${row} #if($play.valueOf("@text").toLowerCase().startsWith("goal by"))bold#end">
2215:                         <td class="align-center">$play.valueOf("@clock")</td>
2216:                         <td>$play.valueOf("@text")</td>
2217:                     </tr>
2218:                     #elseif ($nodeName == "currentscore")
2219:                     <tr class="stats-highlight">
2220:                         <td colspan="2" class="align-center bold">
2221:                             Score: $visitor $play.valueOf("@vscore")
2222:                             - $home $play.valueOf("@hscore")</td>
2223:                     </tr>
2224:                     #end
2225:                 #end
2226:             #end ## ends printPlays
2227: 
2228:             <div class="stats-fullbox clearfix">
2229:                 <table>
2230:                     <tr>
2231:                         <td colspan="3">
2232:                             <span class="bold">Period: </span>
2233:                             #foreach ($p in [1..$document.selectNodes("lcgame/plays/period").size()])
2234:                                 #if ($velocityCount > 1) | #end
2235:                                 #if ($stats.view != "pdf")
2236:                                     <a href="#prd${p}">#period($p)</a>
2237:                                 #else
2238:                                     #period($p)
2239:                                 #end
2240:                             #end
2241:                         </td>
2242:                     </tr>
2243:                     #foreach ($playPeriod in $document.selectNodes("lcgame/plays/period"))
2244:                         #printPlays ($playPeriod)
2245:                     #end
2246:                 </table>
2247:             </div>
2248:         #end
2249: 
2250:         #macro (printTabBoxscore)
2251:             ## BOX SCORE
2252: 
2253:             ## SCORING SUMMARY
2254:             <div class="stats-fullbox clearfix">
2255:                 <table>
2256:                     <tr>
2257:                         <th colspan="5" class="align-left">SCORING SUMMARY</th>
2258:                     </tr>
2259:                     #set ($currentscoreNodes = $document.selectNodes("//currentscore"))
2260:                     #set ($homeScore = "0")
2261:                     #set ($visitorScore = "0")
2262:                     #foreach ($pd in $periodRange)
2263:                         #set ($shownStats = "")
2264:                         <tr class="stats-highlight">
2265:                             <td colspan="3" class="align-center">-- <span
2266:                                     class="bold">#period($pd)</span> --
2267:                             </td>
2268:                             <td class="align-center"><span class="bold">$visitor</span>
2269:                             </td>
2270:                             <td class="align-center"><span class="bold">$home</span>
2271:                             </td>
2272:                         </tr>
2273:                         #foreach ($score in $document.selectNodes("lcgame/scores/score"))
2274:                             #if ($pd == $score.valueOf("@prd"))
2275:                                 #set ($shownStats = "y")
2276:                                 #set ($type = $score.valueOf("@type"))
2277:                                 #if ($velocityCount % 2 == 0)
2278:                                     #set ($row = "even")
2279:                                 #else
2280:                                     #set ($row = "odd")
2281:                                 #end
2282:                                 <tr class="$row">
2283:                                     <td>
2284:                                         #if($score.valueOf("@vh") == 'H') $home #end
2285:                                             #if($score.valueOf("@vh") == 'V') $visitor #end
2286:                                     </td>
2287:                                     <td>$score.valueOf("@time")</td>
2288:                                     <td>
2289:                                         #if ($type == 'PP')<span
2290:                                                 class="italic">UP - </span>#end
2291:                                         #if ($type == 'SH')<span
2292:                                                 class="italic">DN - </span>#end
2293:                                         #if ($type == 'PS')<span
2294:                                                 class="italic">PS - </span>#end
2295:                                         #if ($score.valueOf("@engoal") == 'Y')<span
2296:                                                 class="italic">EN - </span>#end
2297:                                         #if ($score.valueOf("@playerId").length() > 0 and $linkPlayers)
2298:                                         <a href="$!linkPlayersBase?id=${score.valueOf("@playerId")}">
2299:                                         #end
2300:                                         $score.valueOf("@name")
2301:                                         #if ($score.valueOf("@playerId").length() > 0 and $linkPlayers)
2302:                                         </a>
2303:                                         #end
2304:                                         #if($score.valueOf("@assist1").length() > 0)
2305:                                             #if ($score.valueOf("@assist1Id").length() > 0 and $linkPlayers)
2306:                                             <a href="$!linkPlayersBase?id=${score.valueOf("@assist1Id")}">
2307:                                             #end
2308:                                             ($score.valueOf("@assist1")#if($score.valueOf("@assist2").length() > 0)#else
2309:                                             )#end
2310:                                             #if ($score.valueOf("@assist1Id").length() > 0 and $linkPlayers)
2311:                                             </a>
2312:                                             #end
2313:                                         #else
2314:                                             #if ($gender == 'F')
2315:                                                 #set ($scoreTime = $score.valueOf("@time"))
2316:                                                 #set ($fpsFlag = false)
2317: 
2318:                                                 #foreach ($fpsNode in $document.selectNodes("//play[@action='FPS']"))
2319:                                                     #if ($fpsNode.valueOf("@clock") == $scoreTime)
2320:                                                         #set ($fpsFlag = true)
2321:                                                     #end
2322:                                                 #end
2323: 
2324:                                                 #if ($fpsFlag)
2325:                                                     (Free position shot)
2326:                                                 #else
2327:                                                     (unassisted)
2328:                                                 #end
2329:                                             #else
2330:                                                 (unassisted)
2331:                                             #end
2332:                                         #end
2333:                                         #if($score.valueOf("@assist2").length() > 0)
2334:                                             &amp;
2335:                                             #if ($score.valueOf("@assist2Id").length() > 0 and $linkPlayers)
2336:                                             <a href="$!linkPlayersBase?id=${score.valueOf("@assist2Id")}">
2337:                                             #end
2338:                                             $score.valueOf("@assist2"))
2339:                                             #if ($score.valueOf("@assist2Id").length() > 0 and $linkPlayers)
2340:                                             </a>
2341:                                             #end
2342:                                         #end
2343: 
2344:                                         #if($score.valueOf("@vh") == 'H')
2345:                                             #set ($homeScore = $tool.math.add($homeScore, 1))
2346:                                         #elseif($score.valueOf("@vh") == 'V')
2347:                                             #set ($visitorScore = $tool.math.add($visitorScore, 1))
2348:                                         #end
2349: 
2350:                                     </td>
2351:                                     <td class="align-center">$visitorScore</td>
2352:                                     <td class="align-center">$homeScore</td>
2353:                                 </tr>
2354:                             #end ## if
2355:                         #end ## scoring foreach
2356:                         #if ($shownStats == "")
2357:                             <tr>
2358:                                 <td colspan="6" class="align-center">(no scoring)</td>
2359:                             </tr> #end
2360: 
2361:                     #end ## period range
2362:                 </table>
2363:             </div>
2364: 
2365:             ## SHOOTOUTS
2366: 
2367:             #set ($shootouts = $document.selectNodes("lcgame/shootouts/shootout"))
2368:             #if ($shootouts.size() > 0)
2369:             <div class="stats-fullbox clearfix">
2370:                 <table>
2371:                     <tr>
2372:                         <th colspan="2" class="align-left">Shootout</th>
2373:                     </tr>
2374:                     <tr>
2375:                         <th>${visitor}
2376:                         </td>
2377:                         <th>${home}
2378:                         </td>
2379:                     </tr>
2380:                     <tr>
2381:                         <td valign="top" width="50%">#shootout($shootouts "V")</td>
2382:                         <td valign="top" width="50%">#shootout($shootouts "H")</td>
2383:                     </tr>
2384:                     <tr class="stats-highlight">
2385:                         <td colspan="2" class="align-center">
2386:                             #if ($shootoutScores.get("V") > $shootoutScores.get("H"))
2387:                                 $visitor wins shootout ${shootoutScores.get("V")}
2388:                                 - ${shootoutScores.get("H")}
2389:                             #else
2390:                                 $home wins shootout ${shootoutScores.get("H")}
2391:                                 - ${shootoutScores.get("V")}
2392:                             #end
2393: 
2394:                         </td>
2395:                     </tr>
2396:                 </table>
2397:             </div> ## fullbox div end
2398:             #end
2399: 
2400:             ## TEAM SUMMARY
2401:             #macro (showTeamSummary $team)
2402:                 #set ($foString = "")
2403:                 #set ($pimString = "")
2404:                 #set ($focounter = 0)
2405:                 #set ($pimcounter = 0)
2406: 
2407:                 #foreach ($stat in $team.selectNodes("player/misc"))
2408:                     #if ($stat.valueOf("@facewon").length() > 0 && $stat.valueOf("@facelost").length() > 0)
2409:                         #set ($focounter = $focounter + 1)
2410:                         #if ($focounter > 1)
2411:                             #set ($foString = "${foString}; ")
2412:                         #end
2413:                         #set ($pName = $stat.valueOf("../@name"))
2414:                         #set ($fw = $stat.valueOf("@facewon"))
2415:                         #set ($fl = $stat.valueOf("@facelost"))
2416:                         #set ($fl = $tool.math.add($fw, $fl))
2417:                         #set ($foString = "${foString}${pName} ${fw}-${fl}")
2418:                     #end
2419:                 #end
2420: 
2421:                 #foreach ($stat in $team.selectNodes("player/penalty"))
2422:                     #if ($stat.valueOf("@count").length() > 0 && $stat.valueOf("@seconds").length() > 0 && $tool.math.toInteger($stat.valueOf("@count")) > 0 && $tool.math.toInteger($stat.valueOf("@seconds")) > 0)
2423:                         #set ($pimcounter = $pimcounter + 1)
2424:                         #if ($pimcounter > 1)
2425:                             #set ($pimString = "${pimString}; ")
2426:                         #end
2427:                         #set ($pName = $stat.valueOf("../@name"))
2428:                         #set ($pc = $stat.valueOf("@count"))
2429:                         #set ($ps = $stat.valueOf("@seconds"))
2430:                         #set ($pimString = "${pimString}${pName} ${pc}-${ps}")
2431:                     #end
2432:                 #end
2433: 
2434:                 #if ($foString.length() > 0 || $pimString.length() > 0)
2435:                 <table>
2436:                     <tr>
2437:                         <th colspan="10" class="align-left">TEAM SUMMARY</th>
2438:                     </tr>
2439:                     #if ($foString.length() > 0)
2440:                         <tr>
2441:                             <td colspan="10"><span class="bold">FO: </span>$foString
2442:                             </td>
2443:                         </tr>#end
2444:                     #if ($pimString.length() > 0)
2445:                         <tr>
2446:                             <td colspan="10"><span
2447:                                     class="bold">PIM: </span>$pimString</td>
2448:                         </tr>#end
2449:                 </table>
2450:                 #end
2451:             #end
2452: 
2453:             #macro (playerstats $team)
2454:                 <table>
2455:                     <tr>
2456:                         <td class="align-center"><h4>$team.valueOf("@name")</h4></td>
2457:                     </tr>
2458:                 </table>
2459:                 <table>
2460:                     <tr>
2461:                         <th class="align-left">#</th>
2462:                         <th class="align-left">PLAYER</th>
2463:                         <th>POS</th>
2464:                         <th>G</th>
2465:                         <th>A</th>
2466:                         <th>SH</th>
2467:                         <th>SOG</th>
2468:                         <th>GB</th>
2469:                         #if ($gender == 'F')
2470:                             <th>DC</th> ## WOMEN ONLY
2471:                         #end
2472:                         <th>T/O</th>
2473:                         <th>CT</th>
2474:                     </tr>
2475: 
2476:                     #foreach ($stat in $team.selectNodes("player/shots"))
2477:                         #if ($velocityCount % 2 == 0)
2478:                             #set ($row = "even")
2479:                         #else
2480:                             #set ($row = "odd")
2481:                         #end
2482:                         <tr class="$row">
2483:                             <td>$!stat.valueOf("../@uni")</td>
2484:                             <td class="nowrap">
2485:                                 #if ($stat.valueOf("../@playerId").length() > 0 and $linkPlayers and $stat.valueOf("../../@link").length() > 0)
2486:                                 <a href="$!linkPlayersBase?id=${stat.valueOf("../@playerId")}">
2487:                                 #end
2488:                                 $stat.valueOf("../@name")
2489:                                 #if ($stat.valueOf("../@playerId").length() > 0 and $linkPlayers and $stat.valueOf("../../@link").length() > 0)
2490:                                 </a>
2491:                                 #end
2492:                                 #if($stat.valueOf("../@gs").length() > 0)*#end
2493:                             </td>
2494:                             <td class="align-center">$stat.valueOf("../@pos")</td>
2495:                             <td class="align-center">$!stat.valueOf("@g")</td>
2496:                             <td class="align-center">$!stat.valueOf("@a")</td>
2497:                             <td class="align-center">$!stat.valueOf("@sh")</td>
2498:                             <td class="align-center">$!stat.valueOf("@sog")</td>
2499:                             <td class="align-center">$!stat.valueOf("../misc/@gb")</td>
2500:                             #if ($gender == 'F')
2501:                                 <td class="align-center">$!stat.valueOf("../misc/@dc")</td> ##  WOMEN ONLY
2502:                             #end
2503:                             <td class="align-center">$!stat.valueOf("../misc/@turnover")</td>
2504:                             <td class="align-center">$!stat.valueOf("../misc/@ct")</td>
2505:                         </tr>
2506:                     #end
2507:                     <tr class="stats-highlight totals">
2508:                         <td colspan="3">Totals</td>
2509:                         <td class="align-center">$team.valueOf("totals/shots/@g")</td>
2510:                         <td class="align-center">$team.valueOf("totals/shots/@a")</td>
2511:                         <td class="align-center">$team.valueOf("totals/shots/@sh")</td>
2512:                         <td class="align-center">$team.valueOf("totals/shots/@sog")</td>
2513:                         <td class="align-center">$team.valueOf("totals/misc/@gb")</td>
2514:                         #if ($gender == 'F')
2515:                             <td class="align-center">$team.valueOf("totals/misc/@dc")</td> ##  WOMEN ONLY
2516:                         #end
2517:                         <td class="align-center">$team.valueOf("totals/misc/@turnover")</td>
2518:                         <td class="align-center">$team.valueOf("totals/misc/@ct")</td>
2519:                     </tr>
2520:                 </table>
2521:                 <table>
2522:                     <tr>
2523:                         <th class="align-left">#</th>
2524:                         <th class="align-left">GOALIES</th>
2525:                         <th>GA</th>
2526:                         <th>Min</th>
2527:                         <th>SV</th>
2528:                         <th>SH</th>
2529:                     </tr>
2530: 
2531:                     #printGoalies($team)
2532: 
2533:                     #if ($team.selectNodes("player/goalie").size() > 1)
2534:                         <tr class="stats-highlight totals">
2535:                             <td colspan="2">Totals</td>
2536:                             #set ($ga = $team.numberValueOf("totals/goalie/@ga") + $team.numberValueOf("totals/goalie/@eng"))
2537:                             <td class="align-center">$formatter.formatNumber($ga, "
2538:                                 #")</td>
2539:                             <td class="align-center">$team.valueOf("totals/goalie/@minutes")</td>
2540:                             <td class="align-center">$team.valueOf("totals/goalie/@saves")</td>
2541:                             <td class="align-center">#shots($team.valueOf("totals/goalie/@ga") $team.valueOf("totals/goalie/@saves"))</td>
2542:                         </tr>
2543:                     #end
2544: 
2545:                 </table>
2546:                 #showTeamSummary($team)
2547:             #end ##macro
2548: 
2549:             <div class="clearfix">
2550: 
2551:                 ## VISITOR STATISTICS
2552:                 <div class="stats-halfbox-left">#playerstats($document.selectSingleNode("lcgame/team[@vh='V']"))</div>
2553:                 ## HOME STATISTICS
2554:                 <div class="stats-halfbox-right">#playerstats($document.selectSingleNode("lcgame/team[@vh='H']"))</div>
2555: 
2556:                 <div class="clear"></div>
2557: 
2558:             </div> ## clearfix
2559: 
2560:             <div class="clearfix">
2561: 
2562:                 <div class="stats-halfbox-left">
2563:                 ## SAVES
2564:                     <table>
2565:                         <tr>
2566:                             <th class="align-left">SAVES</th>
2567:                             #printPeriodHead()
2568:                             <th style="width:50px">TOTAL</th>
2569:                         </tr>
2570:                         #foreach ($team in $document.selectNodes("lcgame/team"))
2571:                             <tr>
2572:                                 <td class="nowrap">$team.attributeValue("name")</td>
2573:                                 #foreach ($i in $periodRange)
2574:                                     <td class="align-center">$team.valueOf("
2575:                                         linescore/lineprd[$i]/@saves")</td>
2576:                                 #end
2577:                                 <td class="align-center">$team.valueOf("totals/goalie/@saves")</td>
2578:                             </tr>
2579:                         #end
2580:                     </table>
2581:                 </div>
2582: 
2583: 
2584:                 <div class="stats-halfbox-right">
2585:                 ## GROUND BALLS
2586:                     <table>
2587:                         <tr>
2588:                             <th class="align-left">GROUND BALLS</th>
2589:                             #printPeriodHead()
2590:                             <th style="width:50px">TOTAL</th>
2591:                         </tr>
2592:                         #foreach ($team in $document.selectNodes("lcgame/team"))
2593:                             <tr>
2594:                                 <td class="nowrap">$team.attributeValue("name")</td>
2595:                                 #foreach ($i in $periodRange)
2596:                                     <td class="align-center">$team.valueOf("
2597:                                         linescore/lineprd[$i]/@gb")</td>
2598:                                 #end
2599:                                 <td class="align-center">$team.valueOf("totals/misc/@gb")</td>
2600:                             </tr>
2601:                         #end
2602:                     </table>
2603:                 </div>
2604: 
2605:             </div> ## clearfix
2606: 
2607:             <div class="clearfix">
2608: 
2609:                 <div class="stats-halfbox-left">
2610:                 ## TURNOVERS
2611:                     <table>
2612:                         <tr>
2613:                             <th class="align-left">TURNOVERS</th>
2614:                             #printPeriodHead()
2615:                             <th style="width:50px">TOTAL</th>
2616:                         </tr>
2617:                         #foreach ($team in $document.selectNodes("lcgame/team"))
2618:                             <tr>
2619:                                 <td class="nowrap">$team.attributeValue("name")</td>
2620:                                 #foreach ($i in $periodRange)
2621:                                     <td class="align-center">$team.valueOf("
2622:                                         linescore/lineprd[$i]/@turnover")</td>
2623:                                 #end
2624:                                 <td class="align-center">$team.valueOf("totals/misc/@turnover")</td>
2625:                             </tr>
2626:                         #end
2627:                     </table>
2628:                 </div>
2629: 
2630: 
2631:                 <div class="stats-halfbox-right">
2632:                 ## CLEARS
2633:                     <table>
2634:                         <tr>
2635:                             <th class="align-left">CLEARS</th>
2636:                             #printPeriodHead()
2637:                             <th style="width:50px">TOTAL</th>
2638:                         </tr>
2639:                         #foreach ($team in $document.selectNodes("lcgame/team"))
2640:                             <tr>
2641:                                 <td class="nowrap">$team.attributeValue("name")</td>
2642:                                 #foreach ($i in $periodRange)
2643:                                     <td class="align-center">$team.valueOf("
2644:                                         linescore/lineprd[$i]/@clearm")-$team.valueOf("
2645:                                         linescore/lineprd[$i]/@cleara")</td>
2646:                                 #end
2647:                                 <td class="align-center">$team.valueOf("totals/clear/@clearm")
2648:                                     -$team.valueOf("totals/clear/@cleara")</td>
2649:                             </tr>
2650:                         #end
2651:                     </table>
2652:                 </div>
2653: 
2654:             </div> ## clearfix
2655: 
2656:             #if ($gender == 'M')
2657: 
2658:                 ##<H3>Men Only</H3>
2659: 
2660:                 ## CALCULATE FACEOFF
2661:                 #macro (calculate $pVal $period $team)
2662:                     #if ($team.attributeValue("name") == $visitor)
2663:                         #set ($otherTeam = $document.selectSingleNode("lcgame/team[@vh='H']"))
2664:                     #else
2665:                         #set ($otherTeam = $document.selectSingleNode("lcgame/team[@vh='V']"))
2666:                     #end
2667:                     #set($add1 = $team.valueOf("linescore/lineprd[$period]/@fowon"))
2668:                     #set($add2 = $otherTeam.valueOf("linescore/lineprd[$period
2669:                     ]/@fowon"))
2670:                     #if ($add1.length() > 0 && $add2.length() > 0)
2671:                         ${pVal}-$tool.math.add($add1, $add2)
2672:                     #end
2673:                 #end
2674: 
2675:                 <div class="clearfix">
2676:                     <div class="stats-halfbox-left">
2677:                     ## FACE OFFS
2678:                         <table>
2679:                             <tr>
2680:                                 <th class="align-left">FACE OFFS WON</th>
2681:                                 #printPeriodHead()
2682:                                 <th style="width:50px">TOTAL</th>
2683:                             </tr>
2684:                             #foreach ($team in $document.selectNodes("lcgame/team"))
2685:                                 <tr>
2686:                                     <td class="nowrap">$team.attributeValue("name")</td>
2687:                                     #foreach ($i in $periodRange)
2688:                                         #set ($tfo = $team.valueOf("linescore/lineprd[$i
2689:                                             ]/@fowon"))
2690:                                         <td class="align-center">#calculate($tfo $i $team)</td>
2691:                                     #end
2692:                                     <td class="align-center">$team.valueOf("totals/misc/@facewon")
2693:                                         -$tool.math.add($team.valueOf("totals/misc/@facewon"),$team.valueOf("totals/misc/@facelost"))</td>
2694:                                 </tr>
2695:                             #end
2696:                         </table>
2697:                     </div>
2698: 
2699:                     <div class="stats-halfbox-right">
2700:                     ## MAN ADVANTAGE
2701:                         <table>
2702:                             <tr>
2703:                                 <th class="align-left">MAN UP</th>
2704:                                 #printPeriodHead()
2705:                                 <th>TOTAL</th>
2706:                             </tr>
2707:                             #foreach ($team in $document.selectNodes("lcgame/team"))
2708:                                 <tr>
2709:                                     <td class="nowrap">$team.attributeValue("name")</td>
2710:                                     #foreach ($i in $periodRange)
2711:                                         <td class="align-center">$team.valueOf("
2712:                                             linescore/lineprd[$i]/@ppg")-$team.valueOf("
2713:                                             linescore/lineprd[$i]/@ppatt")</td>
2714:                                     #end
2715:                                     <td class="align-center">$team.valueOf("totals/powerplay/@ppg")
2716:                                         -$team.valueOf("totals/powerplay/@ppopp")</td>
2717:                                 </tr>
2718:                             #end
2719:                         </table>
2720:                     </div>
2721: 
2722:                 </div> ## clearfix
2723:                 ##End Men Only
2724: 
2725:             #else
2726: 
2727:                 ##<H3>Women Only</H3>
2728: 
2729:                 <div class="clearfix">
2730: 
2731:                     <div class="stats-halfbox-left">
2732:                     ## DRAW CONTROLS
2733:                         <table>
2734:                             <tr>
2735:                                 <th class="align-left">DRAW CONTROLS</th>
2736:                                 #printPeriodHead()
2737:                                 <th style="width:50px">TOTAL</th>
2738:                             </tr>
2739:                             #foreach ($team in $document.selectNodes("lcgame/team"))
2740:                                 <tr>
2741:                                     <td class="nowrap">$team.attributeValue("name")</td>
2742:                                     #foreach ($i in $periodRange)
2743:                                         <td class="align-center">$team.valueOf("
2744:                                             linescore/lineprd[$i]/@dc")</td>
2745:                                     #end
2746:                                     <td class="align-center">$team.valueOf("totals/misc/@dc")</td>
2747:                                 </tr>
2748:                             #end
2749:                         </table>
2750:                     </div>
2751: 
2752: 
2753:                     <div class="stats-halfbox-right">
2754:                     ## FREE POSITION
2755:                         <table>
2756:                             <tr>
2757:                                 <th class="align-left">FREE POSITION SHOTS</th>
2758:                                 #printPeriodHead()
2759:                                 <th style="width:50px">TOTAL</th>
2760:                             </tr>
2761:                             #foreach ($team in $document.selectNodes("lcgame/team"))
2762:                                 <tr>
2763:                                     <td class="nowrap">$team.attributeValue("name")</td>
2764:                                     #foreach ($i in $periodRange)
2765:                                         <td class="align-center">$team.valueOf("
2766:                                             linescore/lineprd[$i]/@fpg")-$team.valueOf("
2767:                                             linescore/lineprd[$i]/@fps")</td>
2768:                                     #end
2769:                                     <td class="align-center">$team.valueOf("totals/goaltype/@freepos")
2770:                                         -$team.valueOf("totals/shots/@freepos")</td>
2771:                                 </tr>
2772:                             #end
2773:                         </table>
2774:                     </div>
2775: 
2776:                 </div> ## clearfix
2777: 
2778:                 ##End Women Only
2779:             #end
2780: 
2781:             ## STAT CREW DOES NOT PROVIDE PERIOD DATA - 20100310
2782:             ## COMMENTING OUT FOR NOW
2783:             #*
2784:             <div class="stats-halfbox-left">
2785:             ## CAUSED TURNOVERS
2786:             <table>
2787:              <tr>
2788:               <th>CAUSED TURNOVERS</th>
2789:               <th>1</th>
2790:               <th>2</th>
2791:               #if ($gender == 'M')
2792:                 <th>3</th>
2793:                 <th>4</th>
2794:               #end
2795:               #if ($periods > 4)<th>OT</th>#end
2796:               <th>TOTAL</th>
2797:              </tr>
2798:             #foreach ($team in $document.selectNodes("lcgame/team"))
2799:              <tr class="boxscoreStats">
2800:               <td>$team.attributeValue("name")</td>
2801:               <td class="align-center">$team.valueOf("linescore/lineprd[1]/@ct")</td>
2802:               <td class="align-center">$team.valueOf("linescore/lineprd[2]/@ct")</td>
2803:               #if ($gender == 'M')
2804:                 <td class="align-center">$team.valueOf("linescore/lineprd[3]/@ct")</td>
2805:                 <td class="align-center">$team.valueOf("linescore/lineprd[4]/@ct")</td>
2806:               #end
2807:               #if ($periods > 4)<td class="align-center">$team.valueOf("linescore/lineprd[5]/@ct")</td>#end
2808:               <td class="align-center">$team.valueOf("totals/misc/@ct")</td>
2809:              </tr>
2810:             #end
2811:             </table>
2812:             </div>
2813:             *#
2814:             <div class="clearfix">
2815: 
2816:                 <div class="stats-halfbox-left">
2817:                 ## SHOTS BY PERIOD
2818:                     <table>
2819:                         <tr>
2820:                             <th class="align-left">SHOTS</th>
2821:                             #printPeriodHead()
2822:                             <th style="width:50px">TOTAL</th>
2823:                         </tr>
2824: 
2825:                     ## TEAM SHOTS
2826:                         #foreach ($team in $document.selectNodes("lcgame/team"))
2827:                             <tr>
2828:                                 <td class="nowrap">$team.attributeValue("name")</td>
2829:                                 #foreach ($i in $periodRange)
2830:                                     <td class="align-center">$team.valueOf("
2831:                                         linescore/lineprd[$i]/@shots")</td>
2832:                                 #end
2833:                                 <td class="align-center">$team.valueOf("linescore/@shots")</td>
2834:                             </tr>
2835:                         #end
2836:                     </table>
2837:                 </div>
2838: 
2839:                 #if ($gender == 'F')
2840:                 ## FOULS
2841:                     <div class="stats-halfbox-right">
2842:                         <table>
2843:                             <tr>
2844:                                 <th class="align-left">FOULS</th>
2845:                                 #printPeriodHead()
2846:                                 <th style="width:50px">TOTAL</th>
2847:                             </tr>
2848:                             #foreach ($team in $document.selectNodes("lcgame/team"))
2849:                                 <tr>
2850:                                     <td class="nowrap">$team.attributeValue("name")</td>
2851:                                     #set ($foulTotal = 0)
2852:                                     #foreach ($i in $periodRange)
2853:                                         #set ($foulVal = $team.valueOf("linescore/lineprd[$i]/@fouls"))
2854:                                         #if ($foulVal.length() > 0)
2855:                                             #set ($foulTotal = $tool.math.add($foulTotal, $foulVal))
2856:                                             <td class="align-center">$foulVal</td>
2857:                                         #else
2858:                                             <td>&nbsp;</td>
2859:                                         #end
2860:                                     #end
2861:                                     <td class="align-center">$foulTotal</td>
2862:                                 </tr>
2863:                             #end
2864:                         </table>
2865:                     </div>
2866:                 #else
2867:         
2868:                     ## FO Violations - MEN ONLY
2869:                     #if ($document.valueOf("lcgame/team[1]/totals/penalty/@fviol") != '')
2870:                         <div class="stats-halfbox-right">
2871:                             <table>
2872:                                 <tr>
2873:                                     <th>FO Violations</th>
2874:                                     #printPeriodHead()
2875:                                     <th>TOTAL</th>
2876:                                 </tr>
2877:                                 #foreach ($team in $document.selectNodes("lcgame/team"))
2878:                                     <tr>
2879:                                         <td class="nowrap">$team.attributeValue("name")</td>
2880:                                         #foreach ($i in $periodRange)
2881:                                             <td class="align-center">$team.valueOf("linescore/lineprd[$i]/@fviol")</td>
2882:                                         #end
2883:                                         <td class="align-center">$team.valueOf("totals/penalty/@fviol")</td>
2884:                                     </tr>
2885:                                 #end
2886:                             </table>
2887:                         </div>
2888:                     #end ## FO Violation exist check
2889:         
2890:                 #end
2891: 
2892:                 <div class="clear"></div>
2893:             </div> ## clearfix
2894: 
2895:             ## PENALTY SUMMARY
2896:             <div class="stats-fullbox clearfix">
2897:                 <table>
2898:                     <tr>
2899:                         <th colspan="4" class="align-left">PENALTY SUMMARY</th>
2900:                     </tr>
2901:                     #foreach ($pd in $periodRange)
2902:                         #set ($shownStats = "")
2903:                         <tr class="stats-highlight">
2904:                             <td colspan="4" class="align-center">-- <span
2905:                                     class="bold">#period($pd)</span> --
2906:                             </td>
2907:                         </tr>
2908: 
2909:                         #foreach ($penalty in $document.selectNodes("lcgame/penalties/pen"))
2910:                             #if ($pd == $penalty.valueOf("@prd"))
2911:                                 #set ($shownStats = "y")
2912: 
2913:                                 <tr>
2914:                                     <td>
2915:                                         #if($penalty.valueOf("@vh") == 'H') $home #end
2916:                                         #if($penalty.valueOf("@vh") == 'V') $visitor #end
2917:                                     </td>
2918: 
2919:                                     #if ($gender == 'M')
2920:                                     ## MEN ONLY
2921:                                         <td>$penalty.valueOf("@seconds") seconds</td>
2922:                                     #end
2923: 
2924:                                     <td>$penalty.valueOf("@time")</td>
2925:                                     <td>
2926:                                         #if ($penalty.valueOf("@type") == 'PP')<span
2927:                                                 class="italic">PP - </span>#end
2928:                                         #if ($penalty.valueOf("@type") == 'SH')<span
2929:                                                 class="italic">SH - </span>#end
2930:                                         $penalty.valueOf("@name")
2931:                                         : $!penalty.valueOf("@minutes")
2932:                                         - $!penalty.valueOf("@desc")
2933:                                     </td>
2934:                                 </tr>
2935: 
2936:                             #end ## if
2937:                         #end ## penalty foreach
2938: 
2939:                         #if ($shownStats == "")
2940:                             <tr>
2941:                                 <td colspan="4" class="align-center">(no penalties)</td>
2942:                             </tr>
2943:                         #end
2944: 
2945:                     #end ## period range
2946: 
2947:                     #if ($gender == 'M')
2948:                     ## penalty minutes
2949:                     ## MEN ONLY
2950:                         <tr>
2951:                             <th colspan="4">PENALTY TOTALS</th>
2952:                         </tr>
2953:                         <tr>
2954:                             <td colspan="4">
2955: 
2956:                                 <table>
2957:                                     <tr>
2958:                                         #foreach ($team in $document.selectNodes("lcgame/team"))
2959:                                             #set ($penaltySeconds = $team.valueOf("totals/penalty/@seconds"))
2960:                                             #set ($penaltyCount = $team.valueOf("totals/penalty/@count"))
2961:                                             #if ($penaltySeconds.length() > 0 && $penaltyCount.length() > 0)
2962:                                                 #set ($penaltySeconds = $tool.math.toInteger($penaltySeconds))
2963:                                                 #set ($remainder = 0)
2964:                                                 #set ($remainder = $penaltySeconds % 60)
2965:                                                 #set ($penaltyMinutes = $tool.math.toInteger($tool.math.div($penaltySeconds, 60)))
2966:                                                 #if ($penaltyMinutes > 1)
2967:                                                     #set ($minString = "${penaltyMinutes}
2968:                                                         minutes")
2969:                                                 #else
2970:                                                     #set ($minString = "${penaltyMinutes}
2971:                                                         minute")
2972:                                                 #end
2973:                                                 #set ($secString = "")
2974:                                                 #if ($remainder > 0)
2975:                                                     #if ($remainder > 1)
2976:                                                         #set ($secString = "${remainder}
2977:                                                             seconds")
2978:                                                     #else
2979:                                                         #set ($secString = "${remainder}
2980:                                                             second")
2981:                                                     #end
2982:                                                 #end
2983:                                                 <td><span
2984:                                                         class="bold">$team.attributeValue("name")</span>:  $minString $secString
2985:                                                     on $penaltyCount infraction(s)
2986:                                                 </td>
2987:                                             #else
2988:                                                 <td>&nbsp;</td>
2989:                                             #end
2990:                                         #end
2991:                                     </tr>
2992:                                 </table>
2993: 
2994:                             </td>
2995:                         </tr>
2996:                     #end
2997:                 </table>
2998:             </div>
2999: 
3000:             ## OTHER INFORMATION
3001:             <div class="stats-fullbox summary clearfix">
3002:                 <table>
3003:                     <tr>
3004:                         <th class="align-left">OTHER INFORMATION</th>
3005:                     </tr>
3006:                     <tr>
3007:                         <td>
3008:                             #if($duration.length() > 0)<span
3009:                                     class="bold">Game Length: </span>$!duration<br/>#end
3010:                             #if($attendance.length() > 0)<span
3011:                                     class="bold">Attendance: </span>$!attendance
3012:                                 <br/>#end
3013:                             #if ($document.selectNodes("lcgame/venue/officials/official").size() > 0)
3014:                                 <span class="bold">Officials and game personnel: </span>
3015:                                 #foreach ($official in $document.selectNodes("lcgame/venue/officials/official"))
3016:                                     #if ($official.valueOf("@title").length() > 0)
3017:                                         <span>$official.valueOf("@title"): </span>#end
3018:                                     #if($velocityCount > 1); #end
3019:                                     <span>$official.valueOf("@name")</span>
3020:                                 #end
3021:                             #end
3022:                         </td>
3023:                     </tr>
3024:                 </table>
3025:             </div>
3026: 
3027:             <div class="clearfix">
3028:                 <table>
3029:                     <tr>
3030:                         <td><span class="footnote">Starter *</span></td>
3031:                     </tr>
3032:                 </table>
3033:             </div>
3034: 
3035:         #end
3036: 
3037:         #if ($stats.view == "plays" && $hasPlayByPlay)
3038:             #printTabPlayByPlay()
3039:         #elseif ($stats.view == "pdf")
3040:             #printPdfHeader("Box score")
3041:             #parse("lcxml-monospace-template")
3042:             #if ($hasPlayByPlay)
3043:                 <p class="pagebreak">&nbsp;</p>
3044:                 #printPdfHeader("Play by Play")
3045:                 #printTabPlayByPlay()
3046:             #end
3047:         #else
3048:             #printTabBoxscore()
3049:         #end ## ENDS VIEW CHECK
3050: 
3051:         #set ($showWiki = true)
3052:         #set ($showWiki = $showWikiVar)
3053: 
3054:         #if ($showWiki == true)
3055:             $!wiki.su
3056:         #end
3057:     </div>
3058: 
3059:     #if ($stats.view != "pdf")
3060:         #changeViewScript()
3061:     #end
3062:     </body>
3063:     </html>
3064: #end
3065: #end