Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <table class="persist-area" id="results" >
- <thead class="persist-header">
- <tr>
- <th>Pořadí</th>
- <th>Řešitel</th>
- <th n:foreach="$taskSetDefs as $num => $ts" title="{$num}. sada{if $ts['nazev']}:
- {$ts['nazev']}{/if}" colspan="{count($taskSetTasks[$num])}">{$num}</th>
- <th title="Celkem ze všech neotevřených sad">Celkem</th>
- <th title="Ocenění za řešené úlohy">Ocenění</th>
- </tr>
- <tr class="problems-det">
- <th class="white"></th>
- <th class="white"></th>
- {foreach $taskSetTasks as $tasks}
- <th n:foreach="$tasks as $num => $task" title="{$task['nazev']}">{$num}</th>
- {/foreach}
- <th class="white"></th>
- </tr>
- </thead>
- <tbody>
- <tr n:foreach="$results as $r">
- <td > {* pořadí. *}
- {if is_array($r['order'])}
- {$r['order'][0]}. — {$r['order'][1]}.
- {elseif $r['order']}
- {$r['order']}.
- {/if}
- </td>
- {*Odkazy na profily*}
- <td title="{$r['school']}"><a href="{link Profile:show id=>$r['id'], rocnik=>
- $rocnik}">{$r['first_name']} {$r['last_name']}</a></td>
- {foreach $r['task_sets'] as $tsNum => $taskSet}
- <td n:class="problems-sum, $taskSet['open'] ? open" colspan="{count($taskSet
- ['tasks'])}">{$taskSet['subtotal']['det']|number}</td> {* {$tsNum}. série součet *}
- <td n:class="problems-pcs, $taskSet['open'] ? open" colspan="{count($taskSet
- ['tasks'])}">{$taskSet['subtotal']['pct']|round} %</td> {* {$tsNum}. série součet v % *}
- <td n:foreach="$taskSet['tasks'] as $num => $task" n:class="problems-det,
- $taskSet['open'] ? open"> {* {$tsNum}. série {$num}. příklad *}
- {if $task['det'] === false}
- <span title="neodevzdáno">–</span>
- {elseif is_null($task['det'])}
- <span title="odevzdáno, neopraveno">?</span>
- {else}
- {$task['det']|number}
- {/if}
- </td>
- <td n:foreach="$taskSet['tasks'] as $num => $task" n:class="problems-pct,
- $taskSet['open'] ? open"> {* {$tsNum}. série {$num}. příklad v % *}
- {if $task['pct'] === false}
- <span title="neodevzdáno">–</span>
- {elseif is_null($task['pct'])}
- <span title="odevzdáno, neopraveno">?</span>
- {else}
- {$task['pct']|round}%
- {/if}
- </td>
- {/foreach}
- <td class="series-sum">{$r['total']['det']|number}</td> {* celkový
- součet *}
- <td class="series-sum-pcs">{$r['total']['pct']|round} %</td> {* celkový
- součet v % *}
- <td class="achievements_results">
- {if ($awards != null) && count($awards) > 0 }
- <label n:foreach="$awards as $award" n:if="$award['id_uzivatele'] == $r
- ['id']">
- <a class="image-popup-vertical-fit" href="{$basePath}{$award
- ['odkaz']}" title="{$award['popis']}"><img src="{$basePath}{$award['nahled']}" title="{$award['nazev']}" style="height:
- 35px"></a>
- </label>
- {/if}
- </td>
- </tr>
- </tbody>
- </table>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement