Mount Olive
King
In Progress - th Score
Mount Olive
There was a problem with a Velocity script
Pagestatcrew-vbxml-template
ErrorInvocation of method 'selectNodes' in class org.dom4j.tree.DefaultElement threw exception org.dom4j.InvalidXPathException: Invalid XPath expression: linescore/${linegameSel} Expected one of '.', '..', '@', '*', <QName> at statcrew-vbxml-template[line 1420, column 48]
Page source:
1: #if ($stats.view == 'pt')
2: ##    #set ($pregame = true)
3: ##    #set ($startTime = '2014-11-25 07:00:00.000000 PM')
4: 
5:     #set ($pregame = $stats.pregame)
6:     #set ($startTime = $document.getRootElement().valueOf("network/@startTime"))
7:     #if ($document.getRootElement().valueOf("network/@tba") == 'Y')
8:         #set ($tba = true)
9:     #else
10:         #set ($tba = false)
11:     #end
12:     #set ($location = $document.getRootElement().valueOf("network/@location"))
13:     #set ($localDate = $document.getRootElement().valueOf("network/@localDate"))
14:     #set ($localTime = $document.getRootElement().valueOf("network/@localTime"))
15:     #if ($location != '')
16:         #set ($neutral = true)
17:     #else
18:         #set ($neutral = false)
19:     #end
20:     #if ($document.getRootElement().valueOf("primetime/@videoProvider").length() > 0 && $document.getRootElement().valueOf("primetime/@videoProvider") != "none")
21:         #set ($hasVideo = true)
22:     #end
23:     #if ($request.getParameter("paused") == 'y')
24:         #set ($paused = true)
25:     #else
26:         #set ($paused = false)
27:     #end
28: 
29:     <head>
30:         <script type="text/javascript">
31:             var conf = new Object();
32:             conf.locale = '${locale}';
33:             conf.videoProvider = '${videoProvider}';
34:             conf.videoId = '${videoId}';
35:             conf.eventId = '$document.getRootElement().valueOf("network/@eventId")';
36:             conf.eventIdHashCode = '$eventIdHashCode';
37:             conf.visitorTeamLogo = '$stats.visitorTeamLogo';
38:             conf.homeTeamLogo = '$stats.homeTeamLogo';
39:             conf.visitorTeamColor = '$document.getRootElement().valueOf("team[@vh='V']/@color")';
40:             conf.homeTeamColor = '$document.getRootElement().valueOf("team[@vh='H']/@color")';
41:             conf.startTime = '$startTime';
42:             conf.pregame = $pregame;
43:             conf.tba = $tba;
44:             conf.localDate = '$localDate';
45:             conf.localTime = '$localTime';
46:             conf.visitor = '${tool.esc.javascript($document.getRootElement().valueOf("team[@vh='V']/@name"))}';
47:             conf.home = '${tool.esc.javascript($document.getRootElement().valueOf("team[@vh='H']/@name"))}';
48:             conf.currentDate = new Date();
49:             conf.statusFinal = $stats.final;
50:             conf.neutral = $neutral;
51:             conf.paused = $paused;
52:         </script>
53: 
54:         <script type="text/javascript" src="/info/jquery-2.1.1.js"></script>
55:         <script type="text/javascript" src="/info/dataTables/js/jquery.dataTables.js"></script>
56:         <script type="text/javascript" src="/info/primetime3/js/pt3-embed.js"></script>
57:         <script type="text/javascript" src="/info/primetime3/js/pt3-util.js"></script>
58:         <script type="text/javascript" src="/info/primetime3/js/moment.js"></script>
59:         <script type="text/javascript" src="/info/primetime3/js/pt3-volleyball-template.js"></script>
60:         <script type="text/javascript" src="/info/primetime3/js/full_screen_api.js"></script>
61:         <script type="text/javascript" src="/info/primetime3/js/ustream-embedapi.js"></script>
62:         <script type="text/javascript" src="/info/primetime3/js/add-ons.js"></script>
63:         <script type="text/javascript" src="/info/primetime3/js/flipclock.min.js"></script>
64: 
65: 
66:         $website.addCss("/info/dataTables/css/jquery.dataTables.css")
67:         $website.addCss("/info/primetime3/css/pt3-styles.css")
68:         $website.addCss("/info/primetime3/css/flipclock.css")
69:     </head>
70: 
71:     #if ($pregame)
72:         <div id="primetime-wrapper" class="primetime-pre-game clearfix">
73:             <div class="primetime-overflow clearfix">
74:                 <div id="primetime-header" class="grid-row">
75:                     <div class="grid-col grid-col-hdr">
76: 
77:                         <div class="pt-header clearfix">
78:                             <div class="pt-team pt-team-away visitor-team-color" style="background: $document.getRootElement().valueOf("team[@vh='V']/@color")">
79:                                 <img src="$stats.visitorTeamLogo" alt="" class="team-logo visitor-team-logo" />
80:                                 <h3 class="team-name visitor-team-name">$document.getRootElement().valueOf("team[@vh='V']/@name")</h3>
81:                             </div>
82: 
83:                             <div class="pt-team pt-team-home home-team-color" style="background: $document.getRootElement().valueOf("team[@vh='H']/@color")">
84:                                 <img src="$stats.homeTeamLogo" alt="" class="team-logo home-team-logo" />
85:                                 <h3 class="team-name home-team-name">$document.getRootElement().valueOf("team[@vh='H']/@name")</h3>
86:                             </div>
87: 
88:                             <div class="pt-match-scoreboard clearfix">
89:                                 <div class="pt-mtach-info pt-pregame">
90:                                     <center>
91:                                         <div>
92:                                             $localDate <br>
93:                                             #if ($tba)
94:                                                 TBA
95:                                             #else
96:                                                 $localTime
97:                                             #end
98:                                         </div>
99:                                     </center>
100:                                 </div>
101:                             </div>
102:                         </div>
103:                     </div>
104:                 </div>
105:                 <div class="grid-row-container clearfix">
106:                     <div class="grid-row">
107:                         <div class="content">
108:                             <div class="pt-last-play clearfix" style="display: none">
109:                                     <span class="pt-label clearfix" style="text-align: center !important; width: 100% ">
110:                                         This event doesn't have a set start time, but PrimeTime will be available once the event begins.
111:                                     </span>
112:                             </div>
113:                             <div class="text">
114:                                 <h3>
115:                                     Live statistics will be available at the start of the event in:
116:                                 </h3>
117:                                 <center>
118:                                     <div class="clock"></div><br/>
119:                                     #if ($tba)
120:                                         Days
121:                                     #end
122:                                 </center>
123:                             </div>
124:                         </div>
125:                     </div>
126:                     <div class="pt-game-info grid-row clearfix">
127:                         <div class="pt-tabs-panes clearfix">
128:                             <div id="stats-tabs" class="pt-tabs-pane clearfix">
129:                                 <div id="divGameInformation" class="grid-row">
130:                                     <div class="grid-col grid-col-gi grid-col1">
131:                                         <h3 class="grid-title">
132:                                             Game Information
133:                                         </h3>
134:                                         <div class="grid-content clearfix">
135:                                             <div class="pt-game-information clearfix">
136:                                                 <div class="pt-row clearfix">
137:                                                     <center>
138:                                                         <div class="game-location pt-col">
139:                                                             <span class="date">
140:                                                                 $localDate<br />
141:                                                                 #if ($tba)
142:                                                                     TBA
143:                                                                 #else
144:                                                                     $localTime
145:                                                                 #end
146:                                                             </span>
147:                                                             <h3>Date & Time</h3>
148:                                                         </div>
149:                                                         #if ($location != '')
150:                                                             <div class="game-venue pt-col">
151:                                                             <span class="venue">
152:                                                                 $location<br />
153:                                                                 (Neutral)
154:                                                             </span>
155:                                                                 <h3>Location</h3>
156:                                                             </div>
157:                                                         #end
158:                                                     </center>
159:                                                 </div>
160:                                             </div>
161:                                         </div>
162:                                     </div>
163:                                 </div>
164:                             </div>
165:                         </div>
166:                     </div>
167:                 </div>
168: 
169:                 <div id="primetime-footer" class="grid-row">
170:                     <div class="grid-col grid-col-ftr">
171:                         <a href="/"></a>
172:                     </div>
173:                 </div>
174:             </div>
175:         ## GENERAL INFORMATION
176:         </div>
177:     #else
178:         #if ($document.getRootElement().valueOf("primetime/@videoProvider") == "boxcastppv")
179:             $website.requireSSL()
180:         #end
181:         <div id="primetime-wrapper">
182:             <div class="primetime-overflow clearfix">
183: 
184:                 ## HEADER
185:                 <div id="primetime-header" class="grid-row">
186:                     <div class="grid-col grid-col-hdr">
187: 
188:                         <div class="primetime-screen-controls clearfix">
189:                             <a href="#" class="full-screen-button pt-icon-resize-full"><span class="text">Switch</span></a>
190:                             <a href="#" class="normal-screen-button pt-icon-resize-small"><span class="text">Switch</span></a>
191:                             <a href="#" class="expand-button pt-icon-link-ext"><span class="text">Switch</span></a>
192:                         </div>
193: 
194:                         <div class="pt-header clearfix">
195: 
196:                             <div class="pt-team pt-team-away visitor-team-color"><img src="$stats.visitorTeamLogo" alt="" class="team-logo visitor-team-logo" /><span
197:                                     class="team-record visitor-team-record"></span>
198:                                 <h3 class="team-name visitor-team-name"></h3>
199:                             </div>
200: 
201:                             <div class="pt-team pt-team-home home-team-color">
202:                                 <span class="team-record home-team-record"></span>
203:                                 <img src="$stats.homeTeamLogo" alt="" class="team-logo home-team-logo" />
204:                                 <h3 class="team-name home-team-name"></h3>
205:                             </div>
206: 
207:                             <div class="pt-match-scoreboard clearfix">
208:                                 <p class="team-score visitor-team-score"></p>
209:                                 <p class="team-score home-team-score"></p>
210: 
211:                                 <div class="pt-mtach-info">
212:                                     <span class="time scoreboard-time"></span><br />
213:                                     <span class="period scoreboard-period" style="width: 100%"></span>
214:                                 </div>
215: 
216:                             </div>
217: 
218:                             <div id="pt-page-nav" class="pt-page-nav">
219:                                 <a href="#" class="pt-menu">Menu</a>
220:                                 <ul class="clearfix">
221:                                     <li><a href="#live-action-title" data-id="#live-action-title">Live Action</a></li>
222:                                     <li><a href="#box-score-title" data-id="#box-score-title">Line Score</a></li>
223:                                     <li><a href="#set-summary" data-id="#set-summary" data-tab-id="#stats-tabs">Set summary</a></li>
224:                                     <li><a href="#team-comparison-title" data-id="#team-comparison-title" data-tab-id="#stats-tabs">Team Comparison</a></li>
225:                                     <li><a href="#individual-stats-title" data-id="#individual-stats-title" data-tab-id="#stats-tabs">Individual Stats</a></li>
226:                                     <li><a href="#game-info-title" data-id="#game-info-title" data-tab-id="#stats-tabs">Game Information</a></li>
227:                                     <li><a href="#play-by-play-title" data-id="#play-by-play-title" data-tab-id="#pbp-tabs">Play by Play</a></li>
228:                                 </ul>
229:                             </div>
230:                         </div>
231:                     </div>
232:                 </div>
233: 
234:                 <div class="grid-row-container clearfix">
235:                     #set ($gridRowClass = "grid-row no-video")
236:                     #if ($hasVideo)
237:                         #set ($gridRowClass = "grid-row")
238:                     #end
239: 
240:                     <div class="$gridRowClass">
241:                         #set ($gridCounter = 0)
242: 
243:                         #if ($hasVideo)
244:                             #set ($gridCounter = $gridCounter + 1)
245:                             <div class="grid-col grid-col-v grid-col${gridCounter}">
246:                                 <h3 id="video-field-title" class="grid-title">Video<span class="close">x</span></h3>
247:                                 <div class="grid-content clearfix">
248:                                     <div class='embed-container'>
249: 
250:                                     </div>
251:                                 </div>
252:                             ## GRID CONTENT
253:                             </div>
254:                         ## VIDEO COL
255:                         #end
256: 
257:                         #set ($gridCounter = $gridCounter + 1)
258: 
259:                         <div class="grid-col grid-col-cd grid-col${gridCounter}">
260:                             <h3 id="live-action-title" class="grid-title">
261:                                 Live Action<span class="close">x</span>
262:                             </h3>
263:                             <div class="grid-content clearfix">
264:                                 <div class="clearfix">
265:                                     <div class="container clearfix pt-live-action">
266:                                         <table>
267:                                             <thead>
268:                                             <tr>
269:                                                 <th><span class="team-name visitor-team-name"></span></th>
270:                                                 <th><span class="team-name home-team-name"></span></th>
271:                                                 <th style="text-align: left">Plays</th>
272:                                             </tr>
273:                                             </thead>
274:                                             <tbody>
275:                                             </tbody>
276:                                         </table>
277:                                     </div>
278:                                 </div>
279:                             </div>
280:                         </div>
281:                     </div>
282: 
283:                     <div class="grid-row">
284:                         #set ($gridCounter = $gridCounter + 1)
285:                         <div class="grid-col grid-col${gridCounter}">
286:                             <h3 id="box-score-title" class="grid-title">
287:                                 Line Score<span class="close">x</span>
288:                             </h3>
289:                             <div class="grid-content clearfix">
290:                                 <div class="pt-line-score clearfix">
291:                                     <table id="scoreByPeriod">
292:                                         <thead>
293:                                         <tr>
294:                                             <th>&nbsp;</th>
295:                                         </tr>
296:                                         </thead>
297:                                         <tbody>
298:                                         <tr class="visitor">
299:                                             <td><img src="" alt=""
300:                                                      class="team-logo visitor-team-logo" />
301:                                                 <span class="team-name visitor-team-name"></span></td>
302:                                         </tr>
303:                                         <tr class="home">
304:                                             <td><img src="" alt=""
305:                                                      class="team-logo home-team-logo" />
306:                                                 <span class="team-name home-team-name"></span></td>
307:                                         </tr>
308:                                         </tbody>
309:                                     </table>
310:                                 </div>
311:                             </div>
312:                         ## GRID CONTENT
313:                         </div>
314:                     </div>
315: 
316:                     <div class="pt-game-info grid-row clearfix">
317:                         <ul class="pt-tabs clearfix">
318:                             <li id="statisticsTab" class="current"><a href="#stats-tabs">Statistics</a></li>
319:                             <li id="playByPlayTab"><a href="#pbp-tabs">Play By Play</a></li>
320:                         </ul>
321: 
322:                         <div class="pt-tabs-panes clearfix">
323:                             <div id="stats-tabs" class="pt-tabs-pane clearfix">
324:                                 ## GRID ROW
325: 
326:                                 #set ($gridCounter = $gridCounter + 1)
327:                                 <div class="grid-row">
328:                                     <div id="set-summary" class="grid-col grid-col-is grid-col8">
329:                                         <h3 class="grid-title">
330:                                             Set summary<span class="close">x</span>
331:                                         </h3>
332:                                         <div class="grid-content clearfix">
333:                                             <div class="pt-team-stats clearfix">
334:                                                 <div class="pt-team-col active clearfix">
335:                                                     <div class="pt-team clearfix">
336:                                                         <img src="" alt=""
337:                                                              class="team-logo visitor-team-logo active" />
338:                                                         <h3 class="team-name visitor-team-name"></h3>
339:                                                     </div>
340: 
341:                                                     <div class="pt-stats-tabs clearfix">
342:                                                         <div class="pt-panes clearfix">
343:                                                             <div class="pt-row">
344:                                                                 <table class="visitorSet display">
345:                                                                     <thead>
346:                                                                     <tr>
347:                                                                         <th>Set</th>
348:                                                                         <th>K</th>
349:                                                                         <th>E</th>
350:                                                                         <th>TA</th>
351:                                                                         <th>PCT</th>
352:                                                                         <th>PTS</th>
353:                                                                     </tr>
354:                                                                     </thead>
355:                                                                     <tbody>
356: 
357:                                                                     </tbody>
358:                                                                 </table>
359:                                                             </div>
360:                                                         </div>
361:                                                     </div>
362:                                                 </div>
363: 
364:                                                 <div class="pt-team-col clearfix">
365: 
366:                                                     <div class="pt-team clearfix">
367:                                                         <img src="" alt=""
368:                                                              class="team-logo home-team-logo active" />
369:                                                         <h3 class="team-name home-team-name"></h3>
370:                                                     </div>
371: 
372:                                                     <div class="pt-stats-tabs clearfix">
373: 
374:                                                         <div class="pt-panes clearfix">
375: 
376:                                                             <div class="pt-row">
377:                                                                 <table class="homeSet display">
378:                                                                     <thead>
379:                                                                         <tr>
380:                                                                             <th>Set</th>
381:                                                                             <th>K</th>
382:                                                                             <th>E</th>
383:                                                                             <th>TA</th>
384:                                                                             <th>PCT</th>
385:                                                                             <th>PTS</th>
386:                                                                         </tr>
387:                                                                     </thead>
388:                                                                     <tbody>
389: 
390:                                                                     </tbody>
391:                                                                 </table>
392:                                                             </div>
393:                                                         </div>
394:                                                     </div>
395:                                                 </div>
396:                                             </div>
397:                                         </div>
398:                                     ## GRID CONTENT
399:                                     </div>
400:                                 ## INDIVISUAL STATS
401:                                 </div>
402: 
403:                                 <div id="divTeamComparison" class="grid-row">
404:                                     <div class="grid-col grid-col-tc grid-col7">
405:                                         <h3 id="team-comparison-title" class="grid-title">
406:                                             Team Comparison<span class="close">x</span>
407:                                         </h3>
408:                                         <div class="grid-content clearfix">
409:                                             <div class="pt-team-compare clearfix">
410:                                                 <table id="teamCompare">
411: 
412:                                                     <thead>
413:                                                         <tr>
414:                                                             <th><img src="" alt=""
415:                                                                      class="team-logo visitor-team-logo" /><br /> <span
416:                                                                     class="team-name visitor-team-name">Team 1</span></th>
417:                                                             <th>Team Comparison</th>
418:                                                             <th><img src="" alt=""
419:                                                                      class="team-logo home-team-logo" /><br /> <span
420:                                                                     class="team-name home-team-name">Team 2</span></th>
421:                                                         </tr>
422:                                                     </thead>
423: 
424:                                                     <tbody>
425:                                                         <tr class="stats-attacks">
426:                                                             <td></td>
427:                                                             <td class="stats-cat">Attacks</td>
428:                                                             <td></td>
429:                                                         </tr>
430: 
431:                                                         <tr class="stats-kills">
432:                                                             <td></td>
433:                                                             <td class="stats-cat">Kills</td>
434:                                                             <td></td>
435:                                                         </tr>
436: 
437:                                                         <tr class="stats-attack-errors">
438:                                                             <td></td>
439:                                                             <td class="stats-cat">Attack Errors</td>
440:                                                             <td></td>
441:                                                         </tr>
442: 
443:                                                         <tr class="stats-hit">
444:                                                             <td></td>
445:                                                             <td class="stats-cat">Hit Pct</td>
446:                                                             <td></td>
447:                                                         </tr>
448: 
449:                                                         <tr class="stats-assists">
450:                                                             <td></td>
451:                                                             <td class="stats-cat">Assists</td>
452:                                                             <td></td>
453:                                                         </tr>
454: 
455:                                                         <tr class="stats-aces">
456:                                                             <td></td>
457:                                                             <td class="stats-cat">Serve Aces</td>
458:                                                             <td></td>
459:                                                         </tr>
460: 
461:                                                         <tr class="stats-serve-errors">
462:                                                             <td></td>
463:                                                             <td class="stats-cat">Serve Errors</td>
464:                                                             <td></td>
465:                                                         </tr>
466: 
467:                                                         <tr class="stats-digs">
468:                                                             <td></td>
469:                                                             <td class="stats-cat">Digs.</td>
470:                                                             <td></td>
471:                                                         </tr>
472: 
473: 
474:                                                         <tr class="stats-reception-errors">
475:                                                             <td></td>
476:                                                             <td class="stats-cat">Reception Errors</td>
477:                                                             <td></td>
478:                                                         </tr>
479: 
480:                                                         <tr class="stats-total-blocks">
481:                                                             <td></td>
482:                                                             <td class="stats-cat">Total Blocks</td>
483:                                                             <td></td>
484:                                                         </tr>
485: 
486:                                                         <tr class="stats-block-solo">
487:                                                             <td></td>
488:                                                             <td class="stats-cat">Block Solo</td>
489:                                                             <td></td>
490:                                                         </tr>
491: 
492:                                                         <tr class="stats-block-assists">
493:                                                             <td></td>
494:                                                             <td class="stats-cat">Block Assists</td>
495:                                                             <td></td>
496:                                                         </tr>
497: 
498:                                                         <tr class="stats-block-errors">
499:                                                             <td></td>
500:                                                             <td class="stats-cat">Blocking Errors</td>
501:                                                             <td></td>
502:                                                         </tr>
503: 
504:                                                     </tbody>
505: 
506:                                                 </table>
507:                                             </div>
508:                                         </div>
509:                                     ## GRID CONTENT
510:                                     </div>
511:                                 ## TEAM COMOARE
512:                                 </div>
513:                                 <div id="divIndividualStats" class="grid-row">
514:                                     <div class="grid-col grid-col-is grid-col8">
515:                                         <h3 id="individual-stats-title" class="grid-title">
516:                                             Individual Stats &nbsp;&nbsp;
517:                                                 <span>
518:                                                     <img class="switchStats horizontal active" src="/info/primetime3/images/horizontal_view.png" />
519:                                                     &nbsp;
520:                                                     <img class="switchStats vertical" src="/info/primetime3/images/vertical_view.png" />
521:                                                 </span>
522:                                                 <span class="close">x</span>
523:                                         </h3>
524:                                         <div class="grid-content clearfix">
525:                                             <div class="pt-team-stats clearfix">
526: 
527:                                                 <div id="visitorTeamIndividualStats" class="clearfix active pt-vb-team">
528: 
529:                                                     <div class="pt-team clearfix">
530:                                                         <img src="" alt=""
531:                                                              class="team-logo visitor-team-logo active" />
532:                                                         <h3 class="team-name visitor-team-name"></h3>
533:                                                     </div>
534:                                                     <div class="pt-row">
535:                                                         <table class="visitorPlayerStats display">
536:                                                             <thead>
537:                                                                 <tr>
538:                                                                     <th>#</th>
539:                                                                     <th>Player</th>
540:                                                                     <th>K</th>
541:                                                                     <th>E</th>
542:                                                                     <th class="toHide">TA</th>
543:                                                                     <th>Hit%</th>
544:                                                                     <th>A</th>
545:                                                                     <th>SA</th>
546:                                                                     <th class="toHide">SE</th>
547:                                                                     <th class="toHide">RE</th>
548:                                                                     <th>D</th>
549:                                                                     <th class="toHide">BS</th>
550:                                                                     <th class="toHide">BA</th>
551:                                                                     <th>TB</th>
552:                                                                     <th class="toHide">BE</th>
553:                                                                     <th class="toHide">BHE</th>
554:                                                                     <th class="toHide">PTS</th>
555:                                                                 </tr>
556:                                                             </thead>
557:                                                             <tbody>
558: 
559:                                                             </tbody>
560:                                                         </table>
561:                                                         <br />
562:                                                     </div>
563:                                                 </div>
564:                                                 <div id="homeTeamIndividualStats" class="clearfix pt-vb-team">
565:                                                     <div class="pt-team clearfix">
566:                                                         <img src="" alt=""
567:                                                              class="team-logo home-team-logo" />
568:                                                         <h3 class="team-name home-team-name"></h3>
569:                                                     </div>
570:                                                     <div class="pt-row">
571:                                                         <table class="homePlayerStats display">
572:                                                             <thead>
573:                                                                 <tr>
574:                                                                     <th>#</th>
575:                                                                     <th>Player</th>
576:                                                                     <th>K</th>
577:                                                                     <th>E</th>
578:                                                                     <th class="toHide">TA</th>
579:                                                                     <th>Hit%</th>
580:                                                                     <th>A</th>
581:                                                                     <th>SA</th>
582:                                                                     <th class="toHide">SE</th>
583:                                                                     <th class="toHide">RE</th>
584:                                                                     <th>D</th>
585:                                                                     <th class="toHide">BS</th>
586:                                                                     <th class="toHide">BA</th>
587:                                                                     <th>TB</th>
588:                                                                     <th class="toHide">BE</th>
589:                                                                     <th class="toHide">BHE</th>
590:                                                                     <th class="toHide">PTS</th>
591:                                                                 </tr>
592:                                                             </thead>
593:                                                             <tbody>
594: 
595:                                                             </tbody>
596:                                                         </table>
597:                                                     </div>
598:                                                 </div>
599: 
600:                                             </div>
601:                                         </div>
602:                                         ## GRID CONTENT
603:                                     </div>
604:                                     ## INDIVISUAL STATS
605:                                 </div>
606:                                 <div id="divGameInformation" class="grid-row">
607:                                     <div class="grid-col grid-col-gi grid-col9">
608:                                         <h3 id="game-info-title" class="grid-title">
609:                                             Game Information<span class="close">x</span>
610:                                         </h3>
611:                                         <div class="grid-content clearfix">
612:                                             <div class="pt-game-information clearfix">
613: 
614:                                                 <div class="pt-row clearfix">
615:                                                     <center>
616:                                                     <div class="date-time pt-col">
617:                                                         <span id="gameInformationDate" class="date"></span>
618:                                                         <span id="gameInformationTime" class="time"></span>
619:                                                         <h3>Date & Time</h3>
620:                                                     </div>
621: 
622:                                                     <div class="game-location pt-col">
623:                                                         <span id="gameInformationLocation" class="location"></span>
624:                                                         <h3>Location</h3>
625:                                                     </div>
626: 
627:                                                     <div class="game-venue pt-col">
628:                                                         <span id="gameInformationVenue" class="venue"></span>
629:                                                         <h3>Venue</h3>
630:                                                     </div>
631: 
632:                                                     <div class="weather pt-col">
633: 
634:                                                         <div class="weather-condition">
635: 													<span id="gameInformationTemperature"
636:                                                           class="temp"></span>
637:                                                             <span id="gameInformationCondition" class="condition"></span>
638:                                                         </div>
639:                                                         <h3>Weather</h3>
640:                                                     </div>
641:                                                     </center>
642:                                                 </div>
643: 
644:                                             </div>
645:                                         </div>
646:                                     ## GRID CONTENT
647:                                     </div>
648:                                 ## GENERAL INFORMATION
649:                                 </div>
650:                             </div> <!-- Game information -->
651:                             <div id="pbp-tabs" class="pt-tabs-pane clearfix">
652:                                 <div class="grid-row">
653:                                     #set ($gridCounter = $gridCounter + 1)
654:                                     <div class="grid-col grid-col-ds grid-col${gridCounter}">
655:                                         <h3 id="play-by-play-title" class="grid-title">
656:                                             Play by Play<span class="close">x</span>
657:                                         </h3>
658:                                         <div class="grid-content clearfix">
659:                                             <div id="playByPlay" class="clearfix">
660:                                                 <select id="filterPeriod" class="dropdownFilter">
661:                                                     <option value="" selected>ALL SETS</option>
662:                                                     <option value="1">1 Set</option>
663:                                                     <option value="2">2 Set</option>
664:                                                     <option value="3">3 Set</option>
665:                                                     <option value="4">4 Set</option>
666:                                                     <option value="5">5 Set</option>
667:                                                 </select>
668:                                                 <select id="filterTeam" class="dropdownFilter">
669:                                                     <option value="" selected>BOTH TEAMS</option>
670:                                                     <option value="" class="team-name visitor-team-name"></option>
671:                                                     <option value="" class="team-name home-team-name"></option>
672:                                                 </select>
673:                                             </div>
674:                                             <div class="pt-play-by-play volley clearfix">
675:                                                 <table>
676:                                                     <thead>
677:                                                     <tr>
678:                                                         <th><span class="team-name visitor-team-name"></span><span>&nbsp;Score</span></th>
679:                                                         <th>Play</th>
680:                                                         <th><span class="team-name home-team-name"></span><span>&nbsp;Score</span></th>
681:                                                     </tr>
682:                                                     </thead>
683:                                                     <tbody>
684:                                                     </tbody>
685:                                                 </table>
686:                                             </div>
687:                                         </div>
688:                                     ## GRID CONTENT
689:                                     </div>
690:                                 ## DRIVE SUMMARY
691:                                 </div>
692:                             </div>
693:                         </div> <!-- Tab Panes -->
694:                     </div> <!-- Game Info -->
695:                 </div> <!-- Row container -->
696: 
697:                 <div id="primetime-footer" class="grid-row">
698:                     <div class="grid-col grid-col-ftr">
699:                         <a href="/"></a>
700:                     </div>
701:                 </div>
702:             </div> <!-- Primetime Overflow -->
703:         </div><!-- Primetime Wrapper -->
704:     #end
705:     
706:     #set ($showWiki = true)
707:     #set ($showWiki = $showWikiVar)
708:     #if ($showWiki == true)
709:         $wiki.su 
710:     #end
711:     ## END OF PRIMETIME	    
712: 
713: #else
714: ##COMMON FUNCTIONS
715: #macro (changeViewScript)
716: ## CORRECT WRONG VIEW WITH REPLACESTATE
717: <script type="text/javascript">
718:     $(function () {
719:         if (!$('.stats-tabs li.active').length) {
720:             if (history.replaceState) {
721:                 history.replaceState({}, '', '?view=' + $('.stats-tabs li:first').addClass('active').children('a').data('view'));
722:             } else {
723:                 $('.stats-tabs li:first').addClass('active');
724:             }
725:         }
726:     })
727: </script>
728: #end
729: 
730: #macro (printPdfHeader $title)
731: <div class="stats-fullbox clearfix">
732:     <table>
733:         <tr>
734:             <td class="align-center"><h4>$title</h4></td>
735:         </tr>
736:     </table>
737: </div>
738: #end
739: 
740: ##COMMON FUNCTIONS VOLLEYBALL
741: 
742: ## ATTACKS
743: #macro (attackgameHeader $column $name)
744: <tr>
745:     <td colspan="5">$name</td>
746: </tr>
747: <tr>
748:     <th $column >Set</th>
749:     <th $column >K</th>
750:     <th $column >E</th>
751:     <th $column >TA</th>
752:     <th $column >PCT</th>
753: </tr>
754: #end
755: #macro (attackgameBody $row $column $stat)
756: <tr class="$row">
757:     <td $column>$!stat.valueOf("@game")</td>
758:     <td $column>$!stat.valueOf("@k")</td>
759:     <td $column>$!stat.valueOf("@e")</td>
760:     <td $column>$!stat.valueOf("@ta")</td>
761:     <td $column>$!stat.valueOf("@pct")</td>
762: </tr>
763: #end
764: 
765: #macro (attackgame $team)
766: <table class="all-center">
767:     #attackgameHeader('class="align-right"',"TEAM ATTACK PER SET")
768:     #foreach ($stat in $team.selectNodes("attackbygame/attackgame"))
769:     #attackgameBody($row,'class="align-right"',$stat)
770: #end
771: </table>
772: #end ##macro
773: 
774: ##
775: #set ($home = $document.selectSingleNode("vbgame/team[@vh='H']"))
776: #set ($visitor = $document.selectSingleNode("vbgame/team[@vh='V']"))
777: #set ($homeTeam = $home.valueOf("@name"))
778: #set ($visitorTeam = $visitor.valueOf("@name"))
779: #set ($homeid = $document.valueOf("vbgame/venue/@homeid"))
780: #set ($visitorid = $document.valueOf("vbgame/venue/@visid"))
781: 
782: #set ($linkPlayers = $stats.linkPlayers)
783: #set ($linkPlayersBase = $stats.linkPlayersBase)
784: #set ($linkTeams = $stats.linkTeams)
785: #set ($linkTeamsBase = $stats.linkTeamsBase)
786: 
787: #set ($setsPlayed = $document.valueOf("vbgame/status/@game"))
788: #set ($setsPlayed = $tool.math.toInteger($setsPlayed))
789: #set ($hasPlayByPlay = $document.selectNodes("vbgame/plays/game").size() > 0)
790: #set ($isNeutralGame = $document.valueOf("vbgame/venue/@neutralgame"))
791: #if ($isNeutralGame.length() > 0 && $isNeutralGame.equals("Y"))
792:   #set ($isNeutralGame = true)
793: #else
794:   #set ($isNeutralGame = false)
795: #end
796: 
797: #if ($stats.pageUrl.length() > 0 && !$stats.pageUrl.contains("?"))
798: 	#set ($paramSep = "?")
799: #else
800: 	#set ($paramSep = "&")
801: #end
802: 
803: ## Dak Stats or Stat Crew PS-6428
804: #if ($!visitor.selectNodes("linescore/linegame").size() > 0)
805: 	
806: 	#set ($linegameSel = 'linegame')
807: 	#set ($attgameSel = 'attackgame')
808: 	
809: #elseif ($!visitor.selectNodes("linescore/lineprd").size() > 0)
810: 
811: 	#set ($linegameSel = 'lineprd')
812: 	#set ($attgameSel = 'attackbygame')
813: 
814: #end
815: 
816: #macro (attackgameBoxscore $team)
817: <table class="all-center">
818:     #attackgameHeader("","<h4>$team.valueOf('@name')</h4>")
819:     #foreach ($stat in $team.selectNodes("attackbygame/${attgameSel}"))
820:         #if ($velocityCount % 2 == 0)
821:             #set ($row = "even")
822:         #else
823:             #set ($row = "odd")
824:         #end
825:         #attackgameBody($row,"",$stat)
826:     #end
827: </table>
828: #end ##macro
829: 
830: #macro (printSetName $s)
831: #if ($s == 1)
832:   <span>1st</span>
833: #elseif ($s == 2)
834:   <span>2nd</span>
835: #elseif ($s == 3)
836:   <span>3rd</span>
837: #else
838:   <span>${s}th</span>
839: #end
840: #end
841: 
842: 
843: #set ($visname = $document.valueOf("vbgame/venue/@visname"))
844: #set ($homename = $document.valueOf("vbgame/venue/@homename"))
845: #set ($location = $document.valueOf("vbgame/venue/@location").trim())
846: #set ($arena = $document.valueOf("vbgame/venue/@arena").trim())
847: #set ($date = $document.valueOf("vbgame/venue/@date"))
848: #set ($time = $document.valueOf("vbgame/venue/@start"))
849: #set ($schedNote = $document.valueOf("vbgame/venue/@schednote"))
850: 
851: #if ($browser.getIphone() || $browser.getMobile()) ##MOBILE VERSION
852: 
853: ## serve dependencies if missing
854: <script>
855: if (!$('link[href="/info/mobile/stats/mobile-stats.css"]').length) {
856:   $('head').eq(0).append('<link rel="stylesheet" type="text/css" href="/info/responsive-temp-mobile-stats.css" />');
857: }
858: 
859: if (typeof $.mobileSite === "undefined") {
860:   var script = document.createElement('script');
861:   script.src = "/info/mobile/mobile-js/mobile-site.js";
862:   $('body').eq(0).append(script);
863: }
864: 
865: if (typeof $LAB === "undefined") {
866:   var script = document.createElement('script');
867:   script.src = "/info/mobile/mobile-js/LAB.min.js";
868:   $('body').eq(0).append(script);
869: }
870: </script>
871: 
872: ## TEAM LINK 
873: #macro (mobile_showTeam $team)
874: 
875:     #if ($team.attributeValue("teamId").length() > 0 and $linkTeams)
876:        ##<a href="$!linkTeamsBase?id=${team.attributeValue("teamId")}">
877:     #end
878: 	#if($!team.attributeValue("rank").length() > 0)($!team.attributeValue("rank")) #end
879:     $team.attributeValue("name")
880:     #if ($team.attributeValue("teamId").length() > 0 and $linkTeams)
881:         ##</a>
882:     #end
883: #end
884: 
885: #macro (printMobileHeader)
886: 
887: <div class="teams">
888: 	<div class="frame clearfix">
889: 		<div class="team">
890: 			#mobile_showTeam($visitor)
891: 		</div>
892: 		<div class="versus">
893: 			#if ($isNeutralGame)
894: 				vs.
895: 			#else
896: 				at
897: 			#end
898: 		</div>
899: 		<div class="team right">
900: 			#mobile_showTeam($home)
901: 		</div>
902: 	</div>
903: </div>
904: <div class="board">
905: 	<div class="frame clearfix">
906: 		<div class="result">
907: 			$visitor.valueOf("linescore/@score")
908: 		</div>
909: 		
910: 		<div class="timer">
911: 			#if($stats.final)
912: 				<div class="time">Final</div>
913: 			#else
914: 				<div class="time">#printSetName($setsPlayed)</div>
915: 			#end
916: 		</div>
917: 		
918: 		<div class="result">
919: 			$home.valueOf("linescore/@score")
920: 		</div>
921: 	</div>
922: </div>
923: 
924: #end
925: 
926: <script type="text/javascript"> 
927: 	mobileConf.page = 'boxscore';
928: 	mobileConf.pageParams = {
929: 		deepLinking : true
930: 		#if ($stats.inProgress)
931: 			, inprogress : true
932: 		#end
933: 	}
934: </script>
935: 
936: <div class="swipe-header">
937: 	<a href="#" id="swipe-left"></a>
938: 	<a href="#" id="swipe-right"></a>
939: 	<ul class="dot-nav">
940: 		<li class="dot-nav-1 active"></li>
941: 		<li class="dot-nav-2"></li>
942: 		<li class="dot-nav-3"></li>
943: 	</ul>
944: </div>
945: <div id="swipe-wrapper">
946: <div id="live2">
947:     <div class="swipe-screen" data-view="scoring">
948:         <div class="score_board">
949: 			
950: 			#printMobileHeader()
951:             					
952: 				<div class="table">
953: 					<div class="frame">
954: 						<div class="clearfix">
955: 							<div class="cell cell_s">&#160;</div>
956: 							<div class="cell cell_m">&#160;</div>
957: 							<div class="cell cell_l">SCORE BY SET</div>
958: 							<div class="cell cell_m">&#160;</div>
959: 							<div class="cell cell_s">&#160;</div>
960: 						</div>
961: 
962: 						#foreach ($set in [1..$setsPlayed])
963: 						## #foreach ($set in $sets)
964: 							## #set ($s = $set.valueOf("@number"))
965: 							<div class="clearfix">
966: 								<div class="cell cell_s">&#160;</div>
967: 								<div class="cell cell_m">
968: 									$!visitor.valueOf("linescore/${linegameSel}[$set]/@points")
969: 								</div>
970: 								<div class="cell cell_l">
971: 									#printSetName($set)
972: 								</div>
973: 								<div class="cell cell_m">
974: 									$!home.valueOf("linescore/${linegameSel}[$set]/@points")
975: 								</div>
976: 								<div class="cell cell_s">&#160;</div>
977: 							</div>			
978: 						#end
979: 
980: 						
981: 						<div class="clearfix">
982: 							<div class="cell cell_s">&#160;</div>
983: 							<div class="cell cell_m">$visitor.valueOf("linescore/@score")</div>
984: 							<div class="cell cell_l">Score</div>
985: 							<div class="cell cell_m">$home.valueOf("linescore/@score")</div>
986: 							<div class="cell cell_s">&#160;</div>
987: 						</div>
988: 					</div>
989: 				</div>	
990: 
991: 	#if ($hasPlayByPlay)			
992:             <div class="recent">
993: 		<div class="frame">
994:                     <div class="toggle clearfix">
995:                         <div class="title">Recent Plays</div>
996:                         <div class="arrow">
997:                             <img src="/info/mobile/stats/images/arrow_down2.gif" class="recent_arrow_down" width="13" height="9"/>
998:                             <img src="/info/mobile/stats/images/arrow_up2.gif" class="recent_arrow_up" style="display: none;" width="13" height="9"/>
999:                         </div>
1000:                     </div>
1001: 
1002: 
1003: 
1004: 					<div class="plays recent_plays reverse" style="display:none">	
1005:                     #set ($toShowCounter = 0)
1006:                     #set ($sets = $document.selectNodes("vbgame/plays/game"))
1007: 					#foreach ($set in $sets)
1008: 						#foreach ($play in $set.selectNodes("play"))
1009:                             #set ($toShowCounter = $toShowCounter + 1)
1010: 							<div class="clearfix #if ($toShowCounter > 5) hidden #end">
1011: 								<div class="cell cell_s">
1012: 									#if($play.valueOf('@point') == "$visitorid")
1013: 										$play.valueOf("@vscore")-$play.valueOf("@hscore")
1014: 									#end
1015: 								</div>
1016: 								<div class="cell cell_l2">$play.valueOf("@text") #if($play.valueOf("@point").length() > 0)Point $play.valueOf("@point")#end</div>
1017: 								<div class="cell cell_s">
1018: 									#if($play.valueOf('@point') == "$homeid")
1019: 										$play.valueOf("@vscore")-$play.valueOf("@hscore")
1020: 									#end
1021: 								</div>
1022: 							</div>
1023: 						#end
1024: 					#end
1025: 					</div>
1026:                 </div>
1027: 		<div class="button active hidden" id="load-more-plays">
1028: 			<div class="team">More Plays</div>
1029: 		</div>
1030: 
1031:             </div>
1032: 		#end
1033:         </div>
1034:     </div>
1035:     <!-- END SCORE BOARD-->
1036:     
1037:     <!-- BEGING LINE UP -->
1038:     <div class="swipe-screen" data-view="boxscore">
1039: 		#printMobileHeader()
1040:         <div class="team_stats">
1041:             <div class="teams clearfix"> 
1042: 				<div class="button active clearfix" id="button-1">
1043:                     <div class="team">#mobile_showTeam($visitor)</div>
1044:                     <div class="end">
1045:                         <div>&#160;</div>
1046:                     </div>
1047:                 </div>
1048:                 <div class="button clearfix" id="button-2">
1049:                     <div class="team">#mobile_showTeam($home)</div>
1050:                     <div class="end">
1051:                         <div>&#160;</div>
1052:                     </div>
1053:                 </div> 
1054:                 <!-- BEGING STATS -->
1055:                 #macro (mobile_printStat $stat)
1056:                     <div class="row">
1057:                         <div class="toggle clearfix">
1058:                             <div class="data">$!stat.valueOf("@uni")</div>
1059:                             <div class="name">
1060:                                 #if ($stat.valueOf("@playerId").length() > 0 and $linkPlayers)
1061:                                    ##<a href="$!linkPlayersBase?id=${stat.valueOf("../@playerId")}">
1062:                                 #end
1063:                                 $stat.valueOf("@name")
1064: 				#if ($stat.valueOf("@playerId").length() > 0 and $linkPlayers)
1065: 				   ##</a>
1066:                                 #end
1067: 				#if ($stat.valueOf("@pos").length() > 0 && $stat.valueOf("@ms").length() > 0)
1068: 					- $!stat.valueOf("@pos")
1069: 				#end
1070:                             </div>
1071:                             <div class="data">$!stat.valueOf("attack/@k")</div>
1072:                             <div class="data">$!stat.valueOf("attack/@pct")</div>
1073:                             <div class="data">$!stat.valueOf("set/@a")</div>
1074:                             <div class="data arrow">&#160;</div>
1075:                         </div>
1076: 
1077:                         <div class="more" style="display: none">
1078:                             <div class="group clearfix">
1079:                                 <div class="data">
1080:                                     <div class="name">#</div>
1081:                                     <div class="value">$!stat.valueOf("@uni")</div>
1082:                                 </div>
1083:                                 <div class="data">
1084:                                     <div class="name">SP</div>
1085:                                     <div class="value">$!stat.valueOf("@gp")</div>
1086:                                 </div>
1087:                                 <div class="data">
1088:                                     <div class="name">K</div>
1089:                                     <div class="value">$!stat.valueOf("attack/@k")</div>
1090:                                 </div>
1091:                                 <div class="data">
1092:                                     <div class="name">E</div>
1093:                                     <div class="value">$!stat.valueOf("attack/@e")</div>
1094:                                 </div>
1095:                                 <div class="data">
1096:                                     <div class="name">TA</div>
1097:                                     <div class="value">$!stat.valueOf("attack/@ta")</div>
1098:                                 </div>
1099:                                 <div class="data">
1100:                                     <div class="name">PCT</div>
1101:                                     <div class="value">$!stat.valueOf("attack/@pct")</div>
1102:                                 </div>
1103:                                 <div class="data">
1104:                                     <div class="name">A</div>
1105:                                     <div class="value">$!stat.valueOf("set/@a")</div>
1106:                                 </div>
1107:                             </div>
1108:                             <div class="group clearfix">
1109:                                 <div class="data">
1110:                                     <div class="name">SA</div>
1111:                                     <div class="value">$!stat.valueOf("serve/@sa")</div>
1112:                                 </div>
1113:                                 <div class="data">
1114:                                     <div class="name">SE</div>
1115:                                     <div class="value">$!stat.valueOf("serve/@se")</div>
1116:                                 </div>
1117:                                 <div class="data">
1118:                                     <div class="name">RE</div>
1119:                                     <div class="value">$!stat.valueOf("defense/@re")</div>
1120:                                 </div>
1121:                                 <div class="data">
1122:                                     <div class="name">D</div>
1123:                                     <div class="value">$!stat.valueOf("defense/@dig")</div>
1124:                                 </div>
1125:                                 <div class="data">
1126:                                     <div class="name">BS-BA</div>
1127:                                     <div class="value">$!stat.valueOf("block/@bs")-$!stat.valueOf("block/@ba")</div>
1128:                                 </div>
1129:                                 <div class="data">
1130:                                     <div class="name">BE</div>
1131:                                     <div class="value">$!stat.valueOf("block/@be")</div>
1132:                                 </div>
1133:                                 <div class="data">
1134:                                     <div class="name">PTS</div>
1135:                                     <div class="value">$!stat.valueOf("misc/@pts")</div>
1136:                                 </div>
1137:                             </div>
1138:                         </div>
1139:                     </div>
1140:                 #end
1141:                 
1142:                 
1143:                 #macro (mobile_playerstats $team)
1144:                     <div class="titles clearfix">
1145:                         <div class="data">#</div>
1146:                         <div class="name">PLAYERS</div>
1147:                         <div class="data">K</div>
1148:                         <div class="data">PCT</div>
1149:                        <div class="data">AST</div>
1150:                         <div class="data">&#160;</div>
1151:                     </div>
1152:                     
1153:                     #foreach ($stat in $team.selectNodes("player"))
1154: 			#if ($stat.selectNodes("attack").size() > 0)
1155:                         #if ($stat.valueOf("@gp").length() > 0)
1156:                             #if ($stat.valueOf("@name") == 'TEAM')
1157:                                 #set ($teamStat = $stat)
1158:                             #else
1159:                                 #mobile_printStat($stat)
1160:                             #end
1161:                         #end
1162: 			#end
1163:                     #end
1164:                     
1165:                     ##TEAM STAT
1166:                     #if ($teamStat)
1167:                         #mobile_printStat($teamStat)
1168:                     #end
1169:                 #end
1170: 
1171:                 ## VISITOR STATISTICS
1172:                 <div class="table" id="table_team_stats_1">#mobile_playerstats($document.selectSingleNode("vbgame/team[@vh='V']"))</div>
1173: 
1174:                 ## HOME STATISTICS
1175:                 <div class="table" id="table_team_stats_2" style="display: none">#mobile_playerstats($document.selectSingleNode("vbgame/team[@vh='H']"))</div>
1176: 
1177:                 
1178:                 <!-- END STATS -->
1179:             </div>
1180:         </div>
1181:     </div>
1182:     <!-- END LINE UP -->
1183:     
1184:     <!-- BEGING TEAM STATS -->
1185:     <div class="swipe-screen" data-view="summary">
1186: 		#printMobileHeader()
1187:         <div class="line_up">			
1188:             <div class="table">
1189:                 <div class="row clearfix">
1190:                     <div class="data">$!visitor.valueOf("totals/attack/@k")</div>
1191:                     <div class="text">KILLS</div>
1192:                     <div class="data">$!home.valueOf("totals/attack/@k")</div>
1193:                 </div>
1194:                 <div class="row clearfix">
1195:                     <div class="data">$!visitor.valueOf("totals/attack/@e")</div>
1196:                     <div class="text">HIT ERRORS</div>
1197:                     <div class="data">$!home.valueOf("totals/attack/@e")</div>
1198:                 </div>
1199:                 <div class="row clearfix">
1200:                     <div class="data">$!visitor.valueOf("totals/attack/@ta")</div>
1201:                     <div class="text">ATTACKS</div>
1202:                     <div class="data">$!home.valueOf("totals/attack/@ta")</div>
1203:                 </div>
1204:                 <div class="row clearfix">
1205:                     <div class="data">$!visitor.valueOf("totals/attack/@pct")</div>
1206:                     <div class="text">HIT %</div>
1207:                     <div class="data">$!home.valueOf("totals/attack/@pct")</div>
1208:                 </div>
1209:                 <div class="row clearfix">
1210:                     <div class="data">$!visitor.valueOf("totals/set/@a")</div>
1211:                     <div class="text">ASSISTS</div>
1212:                     <div class="data">$!home.valueOf("totals/set/@a")</div>
1213:                 </div>
1214:                 <div class="row clearfix">
1215:                     <div class="data">$!visitor.valueOf("totals/serve/@sa")</div>
1216:                     <div class="text">SERVICE ACES</div>
1217:                     <div class="data">$!home.valueOf("totals/serve/@sa")</div>
1218:                 </div>
1219:                 <div class="row clearfix">
1220:                     <div class="data">$!visitor.valueOf("totals/serve/@se")</div>
1221:                     <div class="text">SERVICE ERRORS</div>
1222:                     <div class="data">$!home.valueOf("totals/serve/@se")</div>
1223:                 </div>
1224:                 <div class="row clearfix">
1225:                     <div class="data">$!visitor.valueOf("totals/defense/@dig")</div>
1226:                     <div class="text">DIGS</div>
1227:                     <div class="data">$!home.valueOf("totals/defense/@dig")</div>
1228:                 </div>
1229:                 <div class="row clearfix">
1230:                     <div class="data">$!visitor.valueOf("totals/defense/@re")</div>
1231:                     <div class="text">RECEIVE ERRORS</div>
1232:                     <div class="data">$!home.valueOf("totals/defense/@re")</div>
1233:                 </div>
1234:                 <div class="row clearfix">
1235:                     <div class="data">$!visitor.valueOf("totals/block/@bs")</div>
1236:                     <div class="text">SOLO  BLOCKS</div>
1237:                     <div class="data">$!home.valueOf("totals/block/@bs")</div>
1238:                 </div>
1239:                 <div class="row clearfix">
1240:                     <div class="data">$!visitor.valueOf("totals/block/@ba")</div>
1241:                     <div class="text">BLOCK ASSISTS</div>
1242:                     <div class="data">$!home.valueOf("totals/block/@ba")</div>
1243:                 </div>
1244:                 <div class="row clearfix">
1245:                     <div class="data">$!visitor.valueOf("totals/block/@be")</div>
1246:                     <div class="text">BLOCK ERRORS</div>
1247:                     <div class="data">$!home.valueOf("totals/block/@be")</div>
1248:                 </div>
1249:                 <div class="row clearfix">
1250:                     <div class="data">$!visitor.valueOf("totals/block/@tb")</div>
1251:                     <div class="text">BLOCKS</div>
1252:                     <div class="data">$!home.valueOf("totals/block/@tb")</div>
1253:                 </div>
1254:                 <div class="row clearfix">
1255:                     <div class="data">$!visitor.valueOf("totals/misc/@bhe")</div>
1256:                     <div class="text">BHE</div>
1257:                     <div class="data">$!home.valueOf("totals/misc/@bhe")</div>
1258:                 </div>
1259:                 <div class="row clearfix">
1260:                     <div class="data">$!visitor.valueOf("totals/misc/@pts")</div>
1261:                     <div class="text">POINTS</div>
1262:                     <div class="data">$!home.valueOf("totals/misc/@pts")</div>
1263:                 </div>
1264:             </div>
1265:             
1266:              <div class="recent">
1267:                 <div class="frame">
1268:                     <div class="other">
1269:                         <div class="toggle clearfix">
1270:                             <div class="row title">
1271:                                 Other Information
1272:                                  <div class="arrow">
1273:                                     <img src="/info/mobile/stats/images/arrow_down2.gif" class="recent_arrow_down" width="13" height="9"/>
1274:                                     <img src="/info/mobile/stats/images/arrow_up2.gif" class="recent_arrow_up" style="display: none;" width="13" height="9"/>
1275:                                 </div>
1276:                             </div>
1277:                         </div>
1278:                         
1279:                         <div class="recent_plays plays" style="display: none;">
1280:                             #if($location.length() > 0)
1281:                             <div class="row clearfix">
1282:                                 <div class="data">Location</div>
1283:                                 <div class="text">$document.valueOf("vbgame/venue/@location") </div>
1284:                             #end 
1285:                             </div>
1286: 							#if($arena.length() > 0 && $arena != ' ')
1287: 								<div class="row clearfix">
1288: 									<div class="data">Arena</div>
1289: 									<div class="text">$arena</div>
1290: 								</div>
1291: 							#end
1292: 
1293:                             <div class="row clearfix">
1294:                                 <div class="data">Game Length</div>
1295:                                 <div class="text">$document.valueOf("vbgame/venue/@duration")</div>
1296:                             </div>
1297:                             <div class="row clearfix">
1298:                                 <div class="data">Attendance</div>
1299:                                 <div class="text">$document.valueOf("vbgame/venue/@attend")</div>
1300:                             </div>
1301:                             #foreach ($official in $document.selectNodes("vbgame/venue/officials"))
1302:                                 <div class="row clearfix">
1303:                                     <div class="data">$official.valueOf("@title")</div>
1304:                                     <div class="text">$official.valueOf("@name")</div>
1305:                                 </div>
1306:                             #end
1307:                         </div>
1308:                     </div>
1309:                 </div>
1310:             </div>
1311:         </div>
1312:     </div>
1313: </div>
1314: </div>
1315: 
1316: #set ($showWiki = true)
1317: #set ($showWiki = $showWikiVar)
1318: 
1319: #if ($showWiki == true)
1320: 	$!wiki.su 
1321: #end
1322: 
1323: 
1324: #else
1325: 
1326:     ##WEBSITE VERSION
1327: 
1328:     #if ($stats.view != "pdf")
1329:         #set ($showWiki = true)
1330:         #set ($showWiki = $showWikiVar)
1331: 
1332:         #if ($showWiki == true)
1333:             $!wiki.su
1334:         #end
1335:     #end
1336: 
1337:     <html>
1338:     <head>
1339:         <title>$visname #if($isNeutralGame)vs.#else at #end $homename | Box Score | $date</title>
1340:         #if ($stats.inProgress)
1341:             <meta http-equiv="refresh" content="60"/>
1342:         #end
1343:         #if ($stats.view == "pdf")
1344:             #include("statcrew-pdf-css-template")
1345:         #end
1346:     </head>
1347:     <body>
1348: 
1349:         #if ($stats.view == "pdf")
1350:             <div class='footer-left'>$visname vs. $homename</div>
1351:             <div class='footer-right'><span id="pagenumber"></span> of <span
1352:                     id="pagecount"></span></div>
1353:         #end
1354:             <div class="stats-wrapper clearfix">
1355:             #if ($stats.view != "pdf")
1356:                 #if ($visname.length() > 0 && $homename.length() > 0)
1357:                     <div class="align-center">
1358:                         <strong>$visname #if($isNeutralGame)vs.#else at #end $homename</strong>
1359:                         #if($location.length() > 0 && $location != ',')
1360:                             <br />@ $!location
1361:                         #end
1362:                         #if($arena.length() > 0)
1363:                             ($!arena)
1364:                         #end
1365:                         <br />$!date
1366:                         #if($time.length() > 0)
1367:                             at $!time
1368:                         #end
1369:                         #if($schedNote.length() > 0)
1370:                             $!schedNote
1371:                         #end
1372:                     </div><br />
1373:                 #end
1374: 
1375:                 #macro (showTeam $team)
1376:                   #if ($team.attributeValue("teamId").length() > 0 and $linkTeams)
1377:                     <a href="$!linkTeamsBase?id=${team.attributeValue("teamId")}">
1378:                   #end
1379:                   $team.attributeValue("name")
1380:                   #if ($team.attributeValue("teamId").length() > 0 and $linkTeams)
1381:                   </a>
1382:                   #end
1383:                 #end
1384: 
1385: 
1386:                 ## BOX SCORE
1387:                 <table class="all-center">
1388:                  <tr>
1389:                   <td style="width:50%">
1390:                    <span class="stats-header">#if($!visitor.valueOf("@rank").length() > 0)($!visitor.valueOf("@rank")) #end#showTeam($visitor)<br />$visitor.valueOf("linescore/@score")</span>
1391:                   </td>
1392:                   <td>
1393:                    <span class="stats-header">#if($home.valueOf("@rank").length() > 0)($!home.valueOf("@rank")) #end#showTeam($home)<br />$home.valueOf("linescore/@score")</span>
1394:                   </td>
1395:                  </tr>
1396:                 </table>
1397: 
1398:                 ## GAME SCORES
1399:                 <div class="stats-fullbox clearfix">
1400:                 <table>
1401:                  <tr>
1402:                   <th class="align-left">
1403:                   #if($stats.final)
1404:                     Final
1405:                   #else
1406:                     In Progress - #printSetName($setsPlayed)
1407:                   #end
1408:                   </th>
1409:                   #foreach ($set in [1..$setsPlayed])
1410:                   <th style="width:60px;">$set</th>
1411:                   #end
1412:                   <th style="width:80px;">Score</th>
1413:                  </tr>
1414: 
1415:                 ## team scores
1416:                 #foreach ($team in $document.selectNodes("vbgame/team"))
1417:                  <tr>
1418:                   #set ($teamRecord = $team.valueOf("@record"))
1419:                   <td class="nowrap">$team.valueOf("@name") #if($teamRecord.length() > 0)($teamRecord)#end</td>
1420:                   #foreach ($linegame in $team.selectNodes("linescore/${linegameSel}"))
1421:                   <td class="align-center">$linegame.valueOf("@points")</td>
1422:                   #end
1423:                   <td class="align-center">$team.valueOf("linescore/@score")</td>
1424:                  </tr>
1425:                 #end
1426:                 </table>
1427:                 </div>
1428: 
1429: 
1430:                 ## TABS
1431:                 <div class="stats-tabs clearfix">
1432:                 <ul class="clearfix">
1433:                   <li #if (!($stats.view.length() > 0) || $stats.view == "boxscore") class="active" #end><a data-view="boxscore" href="${stats.pageUrl}">Box Score</a></li>
1434:                 #if ($hasPlayByPlay)
1435:                   <li #if ($stats.view == "plays") class="active" #end><a data-view="plays" href="${stats.pageUrl}${paramSep}view=plays" id="pbp">Play by Play</a></li>
1436:                 #end
1437:                 <li><a target="_blank" href="$stats.pageUrl?tmpl=vbxml-monospace-template" target="_blank">Coach's View</a></li>
1438:                 </ul>
1439:                 </div>
1440:             #end
1441: 
1442:             #macro (printTabPlayByPlay)
1443:                 ## PLAY BY PLAY
1444: 
1445:                 #set ($sets = $document.selectNodes("vbgame/plays/game"))
1446:                 <div class="stats-fullbox clearfix">
1447:                     <table>
1448: 
1449:                         #if ($stats.view != "pdf")
1450:                             <tr>
1451:                                 <td colspan="3">
1452:                                     <strong>Set: </strong>
1453:                                     #foreach ($set in $sets)
1454:                                         #if ($velocityCount > 1)&#160;|&#160;#end
1455:                                         #set ($s = $set.valueOf("@number"))
1456:                                         <a href="#set${s}">#printSetName($s)</a>
1457:                                     #end
1458:                                 </td>
1459:                             </tr>
1460:                         #end
1461:                         #foreach ($set in $sets)
1462:                             #set ($s = $set.valueOf("@number"))
1463:                             <tr>
1464:                                 <th>$visitorid</th>
1465:                                 <th id="set${s}">-- #printSetName($s) --</th>
1466:                                 <th>$homeid</th>
1467:                             </tr>
1468:                             #foreach ($play in $set.selectNodes("play"))
1469:                                 #if ($velocityCount % 2 == 0)
1470:                                     #set ($row = "even")
1471:                                 #else
1472:                                     #set ($row = "odd")
1473:                                 #end
1474:                                 <tr class="$row">
1475:                                     #if ($play.valueOf("@point").length() > 0)
1476:                                         <td class="align-center bold nowrap" >#if($play.valueOf("@point") == $visitorid)$play.valueOf("@vscore")-$play.valueOf("@hscore")#end</td>
1477:                                         <td>$play.valueOf("@text") Point $play.valueOf("@point")</td>
1478:                                         <td class="align-center bold nowrap" >#if($play.valueOf("@point") == $homeid)$play.valueOf("@vscore")-$play.valueOf("@hscore")#end</td>
1479:                                     #else
1480:                                         <td>&#160;</td>
1481:                                         <td>
1482:                                             $play.valueOf("@text")
1483:                                         </td>
1484:                                         <td>&#160;</td>
1485:                                     #end
1486:                                 </tr>
1487:                             #end
1488:                             #if ($stats.view != "pdf")
1489:                                 <tr><td colspan="3" class="align-center"><a href="#pbp">back to top</a></td></tr>
1490:                             #end
1491:                         #end
1492:                     </table>
1493:                 </div>
1494:             #end
1495: 
1496:             #macro (printTabBoxscore)
1497:                 ## DEFAULT VIEW
1498: 
1499:                 #set ($showLiberoLegend = false)
1500:                 #set ($showStartersLegend = false)
1501:                 #if ($document.selectNodes("//player[@ms='1']").size() > 0)
1502:                     #set ($showStartersLegend = true)
1503:                 #end
1504:                 #if ($document.selectNodes("//player[@pos='LB']").size() > 0)
1505:                     #set ($showLiberoLegend = true)
1506:                 #end
1507: 
1508:                 <div class="clearfix">
1509:                     ## VISITOR STATISTICS
1510:                     <div class="stats-halfbox-left">#attackgameBoxscore($document.selectSingleNode("vbgame/team[@vh='V']"))</div>
1511:                     ## HOME STATISTICS
1512:                     <div class="stats-halfbox-right">#attackgameBoxscore($document.selectSingleNode("vbgame/team[@vh='H']"))</div>
1513:                     <div class="clear"></div>
1514:                 </div>
1515: 
1516: 
1517:                 #macro (playerstats $team)
1518:                 <table>
1519:                     <tr>
1520:                         <td colspan="17" class="align-center">
1521:                             <h4>
1522:                                 $team.valueOf("@name")
1523:                             </h4>
1524:                         </td>
1525:                     </tr>
1526:                     <tr>
1527:                         <th colspan="3">&#160;</th>
1528:                         <th colspan="4">-- Attack --</th>
1529:                         <th>&#160;</th>
1530:                         <th colspan="3">-- Serve --</th>
1531:                         <th>&#160;</th>
1532:                         <th colspan="3">-- Block --</th>
1533:                         <th>&#160;</th>
1534:                         <th>&#160;</th>
1535:                     </tr>
1536:                     <tr>
1537:                         <th>#</th>
1538:                         <th>Player</th>
1539:                         <th>SP</th>
1540:                         <th>K</th>
1541:                         <th>E</th>
1542:                         <th>TA</th>
1543:                         <th>K%</th>
1544:                         <th>A</th>
1545:                         <th>SA</th>
1546:                         <th>SE</th>
1547:                         <th>RE</th>
1548:                         <th>DIGS</th>
1549:                         <th>BS</th>
1550:                         <th>BA</th>
1551:                         <th>BE</th>
1552:                         <th>BHE</th>
1553:                         <th>PTS</th>
1554:                     </tr>
1555:                     #set ($counter = 0)
1556:                     #foreach ($stat in $team.selectNodes("player"))
1557:                         #set ($setsplayed  =  $stat.numberValueOf("@gp"))
1558:                         #if ($setsplayed > 0)
1559:                             #set ($counter = $counter + 1)
1560:                             #if ($counter % 2 == 0)
1561:                                 #set ($row = "even")
1562:                             #else
1563:                                 #set ($row = "odd")
1564:                             #end
1565:                             <tr class="$row">
1566:                                 <td class="align-center">$!stat.valueOf("@uni")</td>
1567:                                 <td class="nowrap">
1568:                                     #if ($stat.valueOf("@playerId").length() > 0 and $linkPlayers)
1569:                                     <a href="$!linkPlayersBase?id=${stat.valueOf("@playerId")}">
1570:                                     #end
1571:                                     $stat.valueOf("@name")
1572:                                     #if ($stat.valueOf("@playerId").length() > 0 and $linkPlayers)
1573:                                     </a>
1574:                                     #end
1575:                                     #if ($stat.valueOf("@pos") == "LB")^#end
1576:                                     #if ($stat.valueOf("@ms") == "1")*#end
1577:                                 </td>
1578:                                 <td class="align-center">$!stat.valueOf("@gp")</td>
1579:                                 <td class="align-center">$!stat.valueOf("attack/@k")</td>
1580:                                 <td class="align-center">$!stat.valueOf("attack/@e")</td>
1581:                                 <td class="align-center">$!stat.valueOf("attack/@ta")</td>
1582:                                 <td class="align-center">$!stat.valueOf("attack/@pct")</td>
1583:                                 <td class="align-center">$!stat.valueOf("set/@a")</td>
1584:                                 <td class="align-center">$!stat.valueOf("serve/@sa")</td>
1585:                                 <td class="align-center">$!stat.valueOf("serve/@se")</td>
1586:                                 <td class="align-center">$!stat.valueOf("defense/@re")</td>
1587:                                 <td class="align-center">$!stat.valueOf("defense/@dig")</td>
1588:                                 <td class="align-center">$!stat.valueOf("block/@bs")</td>
1589:                                 <td class="align-center">$!stat.valueOf("block/@ba")</td>
1590:                                 <td class="align-center">$!stat.valueOf("block/@be")</td>
1591:                                 <td class="align-center">$!stat.valueOf("misc/@bhe")</td>
1592:                                 <td class="align-center">$!stat.valueOf("misc/@pts")</td>
1593:                             </tr>
1594:                         #end ## end $setsplayed
1595:                     #end
1596:                     <tr class="stats-highlight totals">
1597:                         <td colspan="3">Totals</td>
1598:                         <td class="align-center">$!team.valueOf("totals/attack/@k")</td>
1599:                         <td class="align-center">$!team.valueOf("totals/attack/@e")</td>
1600:                         <td class="align-center">$!team.valueOf("totals/attack/@ta")</td>
1601:                         <td class="align-center">$!team.valueOf("totals/attack/@pct")</td>
1602:                         <td class="align-center">$!team.valueOf("totals/set/@a")</td>
1603:                         <td class="align-center">$!team.valueOf("totals/serve/@sa")</td>
1604:                         <td class="align-center">$!team.valueOf("totals/serve/@se")</td>
1605:                         <td class="align-center">$!team.valueOf("totals/defense/@re")</td>
1606:                         <td class="align-center">$!team.valueOf("totals/defense/@dig")</td>
1607:                         <td class="align-center">$!team.valueOf("totals/block/@bs")</td>
1608:                         <td class="align-center">$!team.valueOf("totals/block/@ba")</td>
1609:                         <td class="align-center">$!team.valueOf("totals/block/@be")</td>
1610:                         <td class="align-center">$!team.valueOf("totals/misc/@bhe")</td>
1611:                         <td class="align-center">$!team.valueOf("totals/misc/@pts")</td>
1612:                     </tr>
1613:                 </table>
1614: 
1615:                 #end ##macro
1616: 
1617: 
1618:                 ## VISITOR STATISTICS
1619:                 <div class="stats-fullbox clearfix">#playerstats($document.selectSingleNode("vbgame/team[@vh='V']"))</div>
1620:                 ## HOME STATISTICS
1621:                 <div class="stats-fullbox clearfix">#playerstats($document.selectSingleNode("vbgame/team[@vh='H']"))</div>
1622: 
1623: 
1624:                 ## OTHER INFORMATION
1625:                 <div class="stats-fullbox summary clearfix">
1626:                     <table>
1627:                         <tr><th class="align-left">Other Information</th></tr>
1628:                         <tr>
1629:                             <td>
1630:                                 #if ($document.valueOf("vbgame/venue/@arena").length() > 0)
1631:                                     <span class="bold">Arena: </span>$document.valueOf("vbgame/venue/@arena")<br />
1632:                                 #end
1633:                                 <span class="bold">Attendance: </span>$document.valueOf("vbgame/venue/@attend")<br />
1634:                                 <span class="bold">Time: </span>$document.valueOf("vbgame/venue/@duration")
1635:                                 #foreach ($official in $document.selectNodes("vbgame/venue/officials/official"))
1636:                                     <br />
1637:                                     <span class="bold">$official.valueOf("@title"): </span>$official.valueOf("@name")
1638:                                 #end
1639:                             </td>
1640:                         </tr>
1641:                     </table>
1642:                 </div>
1643: 
1644:                 #if ($showStartersLegend)<div class="legend">* = Starter</div>#end
1645:                 #if ($showLiberoLegend)<div class="legend">^ = Libero</div>#end
1646:             #end
1647: 
1648:             #if ($stats.view == "plays" && $hasPlayByPlay)
1649:                 #printTabPlayByPlay()
1650:             #elseif ($stats.view == "pdf")
1651:                 #printPdfHeader("Box score")
1652:                 #parse("vbxml-monospace-template")
1653:                 #if ($hasPlayByPlay)
1654:                     <p class="pagebreak">&nbsp;</p>
1655:                     #printPdfHeader("Play by Play")
1656:                     #printTabPlayByPlay()
1657:                 #end
1658:             #else
1659:                 #printTabBoxscore()
1660:             #end ## ENDS VIEW CHECK
1661: 
1662:             </div>
1663: 
1664:             #if ($stats.view != "pdf")
1665:                 #set ($showWiki = true)
1666:                 #set ($showWiki = $showWikiVar)
1667: 
1668:                 #if ($showWiki == true)
1669:                     $!wiki.su
1670:                 #end
1671: 
1672:                 #changeViewScript()
1673:             #end
1674:         </body>
1675:     </html>
1676: 
1677: #end ## mobile
1678: #end