%PDF- %PDF-
| Direktori : /www/varak.net/losik.varak.net/templates/ |
| Current File : /www/varak.net/losik.varak.net/templates/detailed-results.tpl |
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="Detailed results for {$eventName} - {$startDate->format("d. m. Y")}">
<meta name="author" content="">
<title>Detailed results for {$eventName}</title>
<!-- Bootstrap core CSS -->
<link href="{$baseUrl}/css/bootstrap.min.css" rel="stylesheet">
<link rel="stylesheet" href="//code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css">
<!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
<script src="{$baseUrl}/js/ie10-viewport-bug-workaround.js"></script>
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
<style>
td
{
padding: 0 5px 0 5px;
}
th
{
padding: 0 5px 0 5px;
}
tr:first-child
{
border-top:0;
}
{foreach $stageNames as $sn}.stage-{$sn->stageid}, .stage-{$sn->stageid}h
{
background: {$sn->bgcolor};
text-align: center;
}
.stage-{$sn->stageid}h
{
display: none;
}
{/foreach}
</style>
</head>
<body>
<h1>Detailed results for {$eventName} - {$startDate->format("d. m. Y")}</h1>
{assign var=pos value=1}
<table border="0" style="margin-left: 20px;">
<tr>
<td colspan="5"> </td>
{for $i=$minOrder to $numStages + $minOrder - 1}
<td colspan="{(($stagePartials[$i] > 1) ? $stagePartials[$i] : 0) + 11}" class="stage-{$stageNames[$i]->stageid}" style="text-align: center;" onclick="HideStage('Stage', {$stageNames[$i]->stageid});" title="Skrýt tuto stage" style="display: table-cell;">
<span style="cursor:pointer">{$stageNames[$i]->name}</span>
</td>
<td class="stage-{$stageNames[$i]->stageid}h" onclick="ShowStage('Stage', {$stageNames[$i]->stageid});" title="Zobrazit výsledky pro tuto stage" style="display: none;"><span style="cursor:pointer">{$stageNames[$i]->name}</span></td>
<td style="width: 10px;"></td>
{/for}
</tr>
<tr>
<td> </td>
<td> </td>
<td>Name</td>
<td>Division</td>
<td>Percent</td>
{for $i=$minOrder to $numStages + $minOrder - 1}
<td class="stage-{$stageNames[$i]->stageid}"><span class="glyphicon glyphicon-time" style="color: gray;"></span></td>
{if $stagePartials[$i] > 1}
{for $j=1 to $stagePartials[$i]}
<td class="stage-{$stageNames[$i]->stageid}">T{$j}</td>
{/for}
{/if}
<td class="stage-{$stageNames[$i]->stageid}">PP</td>
<td class="stage-{$stageNames[$i]->stageid}">A</td>
<td class="stage-{$stageNames[$i]->stageid}">C</td>
<td class="stage-{$stageNames[$i]->stageid}">D</td>
<td class="stage-{$stageNames[$i]->stageid}">MT</td>
<td class="stage-{$stageNames[$i]->stageid}">MP</td>
<td class="stage-{$stageNames[$i]->stageid}">NS</td>
<td class="stage-{$stageNames[$i]->stageid}">prc</td>
<td class="stage-{$stageNames[$i]->stageid}"><span class="glyphicon glyphicon-time"></span></td>
<td class="stage-{$stageNames[$i]->stageid}">%</td>
<td class="stage-{$stageNames[$i]->stageid}h" style="display: none;">%</td>
<td style="width: 10px;"></td>
{/for}
</tr>
{foreach $results as $result}
<tr>
<td><a href="#" onclick="displayDetail({$pos}); return false;" class="btn btn-sm btn-info"><span class="glyphicon glyphicon-open"></span></a></td>
<td>{$pos++}</td>
<td>{$result->name}</td>
<td>{$result->division}</td>
<td>{$result->finalPercent}</td>
{assign var=i value=$minOrder}
{foreach $result->stages as $stage}
<td class="stage-{$stageNames[$i]->stageid}">{number_format((double)$stage->time, 2, '.', '')}</td>
{if $stagePartials[$i] > 1}
{foreach $stage->partialTimes as $pt}
<td class="stage-{$stageNames[$i]->stageid}">{number_format((double)$pt, 2, '.', '')}</td>
{/foreach}
{/if}
<td class="stage-{$stageNames[$i]->stageid}">{$stage->popper}</td>
<td class="stage-{$stageNames[$i]->stageid}">{$stage->alpha}</td>
<td class="stage-{$stageNames[$i]->stageid}">{$stage->charlie}</td>
<td class="stage-{$stageNames[$i]->stageid}">{$stage->delta}</td>
<td class="stage-{$stageNames[$i]->stageid}">{$stage->miss}</td>
<td class="stage-{$stageNames[$i]->stageid}">{$stage->missPopper}</td>
<td class="stage-{$stageNames[$i]->stageid}">{$stage->noshoot}</td>
<td class="stage-{$stageNames[$i]->stageid}">{$stage->proc}</td>
<td class="stage-{$stageNames[$i]->stageid}">{number_format((double)$stage->totalTime, 2, '.', '')}</td>
<td class="stage-{$stageNames[$i]->stageid}">{$stage->percent}</td>
<td class="stage-{$stageNames[$i++]->stageid}h" style="display: none;">{$stage->percent} %</td>
<td style="width: 10px;"></td>
{/foreach}
</tr>
{/foreach}
</table>
{assign var=pos value=1}
{foreach $results as $result}
<div id="result-{$pos}" title="{$result->name} ({$result->division})">
<h3>{$result->name} ({$result->division})</h3>
<table border="1" id="result-table-{$pos++}">
<tr>
<th>Stage name</th>
<th><span class="glyphicon glyphicon-time" style="color: gray;"></span></th>
<th>PP</th>
<th>A</th>
<th>C</th>
<th>D</th>
<th>MT</th>
<th>MP</th>
<th>NS</th>
<th>prc</th>
<th><span class="glyphicon glyphicon-time"></span></th>
<th>%</th>
</tr>
{assign var=i value=$minOrder}
{foreach $result->stages as $stage}
{if $stagePartials[$i++] > 1}
<tr>
<td colspan="12">
<table width="100%" border="0">
<tr>
{for $j=1 to $stagePartials[$i-1]}
<th class="dc">T{$j}</th>
{/for}
</tr>
<tr>
{foreach $stage->partialTimes as $pt}
<td class="dc">{$pt}</td>
{/foreach}
</tr>
</table>
</td>
</tr>
{/if}
<tr>
<td>{$stage->name}</td>
<td>{$stage->time}</td>
<td>{$stage->popper}</td>
<td>{$stage->alpha}</td>
<td>{$stage->charlie}</td>
<td>{$stage->delta}</td>
<td>{$stage->miss}</td>
<td>{$stage->missPopper}</td>
<td>{$stage->noshoot}</td>
<td>{$stage->proc}</td>
<td>{$stage->totalTime}</td>
<td>{$stage->percent}</td>
</tr>
{/foreach}
</table>
</div>
{/foreach}
<!-- Bootstrap core JavaScript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<script src="{$baseUrl}/js/stringformat.min.js"></script>
<script src="{$baseUrl}/js/jquery-1.11.1.min.js"></script>
<script src="{$baseUrl}/js/bootstrap.min.js"></script>
<script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script>
<script type="text/javascript">
function displayDetail(pos)
{
$( "#result-" + pos ).dialog("open");
}
$( function() {
for (var i = 1; i < {$pos}; i++)
$( "#result-" + i ).dialog( { autoOpen: false, width: 550 } );
} );
function rowHighlight(a) {
$(a).hasClass("act") ? $(a).removeClass("act") : $(a).addClass("act")
}
function rowMark(a) {
$(a).hasClass("marked") ? $(a).removeClass("marked") : $(a).addClass("marked")
}
function HideStage(a, s) {
$(".stage-" + s).hide(), $(".stage-" + s + "h").show()
}
function ShowStage(a, s) {
$(".stage-" + s + "h").hide(), $(".stage-" + s).show()
}
</script>
<!-- Matomo -->
<script type="text/javascript">
var _paq = window._paq || [];
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */
_paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);
(function() {
var u="//stats.varak.net/";
_paq.push(['setTrackerUrl', u+'matomo.php']);
_paq.push(['setSiteId', '3']);
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
g.type='text/javascript'; g.async=true; g.defer=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s);
})();
</script>
<noscript><p><img src="//stats.varak.net/matomo.php?idsite=3&rec=1" style="border:0;" alt="" /></p></noscript>
<!-- End Matomo Code -->
</body>
</html>