%PDF- %PDF-
Direktori : /data/www_bck/varak.net_bck/verify.varak.net/templates/ |
Current File : //data/www_bck/varak.net_bck/verify.varak.net/templates/match.tpl |
{extends file='layout.tpl'} {block name=content} {if ($type == 'ipsc')} <table id="shooters" width="100%" border="1" class="table table-striped table-bordered"> <thead> <tr> <th> </th> <th>Squad</th> <th>Shooter</th> <th>Division</th> <th>Class</th> <th>Power Factor</th> <th>Stages completed</th> </tr> </thead> <tbody> {foreach $shooters as $shooter} <tr> <td><a href="{$baseUrl}/match/{$uuid}/{$shooter.id}" class="btn btn-info"><span class="fa fa-eye"></span></a></td> <td><b>{$shooter->squad}</b></td> <td>{$shooter->lastName}, {$shooter->firstName}</td> <td>{$shooter->division}</td> <td>{$shooter->class}</td> <td>{$shooter->factor}</td> <td data-order="{sprintf("%03d", $shooter.stages)}">{$shooter.stages}</td> </tr> {/foreach} </tbody> </table> {elseif ($type == 'los')} <table id="shooters" width="100%" border="1" class="table table-striped table-bordered"> <thead> <tr> <th> </th> <th>Squad</th> <th>Střelec</th> <th>Divize</th> <th>Stagí odstříleno</th> </tr> </thead> <tbody> {foreach $shooters as $shooter} <tr> <td><a href="{$baseUrl}/match/{$uuid}/{$shooter.id}" class="btn btn-info"><span class="fa fa-eye"></span></a></td> <td><b>{$shooter->squad}</b></td> <td>{$shooter->lastName}, {$shooter->firstName}</td> <td>{$shooter->division}</td> <td data-order="{sprintf("%03d", $shooter.stages)}">{$shooter.stages}</td> </tr> {/foreach} </tbody> </table> {/if} {/block} {block name=foot} <script type="text/javascript"> $(document).ready(function() { $('#shooters').DataTable( { stateSave: true, order: [[ 2, "asc" ]] } ); } ); </script> {/block}