Wrapper Background
Text-Only Site

Men's Soccer

 
Recap | Box Score
UC Davis vs. Sacramento State at Sacramento, Calif.
10/20/2012 at 4:00 PM

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

View: Mobile | Desktop