McDaniel

Shenandoah

Wed, Feb. 27, 2019
7:00 PM EST

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


Overview

McDaniel

Team Record Conf. Record Last Game
0-0 0-0 ${visitorStats.lastGame.APResult} at ${visitorStats.lastGame.opponent.name}

Shenandoah

Team Record Conf. Record Last Game
0-1 0-0 L, 14-3 vs. Mary Washington

Team Comparison

McDaniel

Free position percentage

0.0

Shenandoah

Free position percentage

25.0

0.00GPG3.00
${formatter.formatNumber($visitorStats.teamStats[$statsKey], $formats.get($statsKey))}GAA14.00
${formatter.formatNumber($visitorStats.teamStats[$statsKey], $formats.get($statsKey))}DCPG7.00
McDaniel (based on 0 games)
Shenandoah (based on 1 games)

Key Contributors


Points

Lara Jensen
01
Alyson Bittinger
Olivia Maenner
01
Kaitlyn Morris

Goals

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