Advertisement
Guest User

Untitled

a guest
Feb 28th, 2015
191
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 3.69 KB | None | 0 0
  1. <table class="persist-area" id="results" >
  2.                     <thead class="persist-header">
  3.                 <tr>
  4.                                         <th>Pořadí</th>
  5.                     <th>Řešitel</th>
  6.                                         <th n:foreach="$taskSetDefs as $num => $ts" title="{$num}. sada{if $ts['nazev']}:
  7.  
  8. {$ts['nazev']}{/if}" colspan="{count($taskSetTasks[$num])}">{$num}</th>
  9.                     <th title="Celkem ze všech neotevřených sad">Celkem</th>
  10.                                         <th title="Ocenění za řešené úlohy">Ocenění</th>
  11.                 </tr>
  12.  
  13.                 <tr class="problems-det">
  14.                     <th class="white"></th>
  15.                     <th class="white"></th>
  16.                     {foreach $taskSetTasks as $tasks}
  17.                                         <th n:foreach="$tasks as $num => $task" title="{$task['nazev']}">{$num}</th>
  18.                                         {/foreach}
  19.                     <th class="white"></th>
  20.                 </tr>
  21.             </thead>
  22.                         <tbody>
  23.                 <tr n:foreach="$results as $r">
  24.                     <td > {* pořadí. *}
  25.                         {if is_array($r['order'])}
  26.                             {$r['order'][0]}.&nbsp;&mdash;&nbsp;{$r['order'][1]}.
  27.                         {elseif $r['order']}
  28.                             {$r['order']}.
  29.                         {/if}
  30.                     </td>
  31.                                         {*Odkazy na profily*}  
  32.                      
  33.                                         <td title="{$r['school']}"><a href="{link Profile:show id=>$r['id'], rocnik=>
  34.  
  35. $rocnik}">{$r['first_name']} {$r['last_name']}</a></td>        
  36.                     {foreach $r['task_sets'] as $tsNum => $taskSet}
  37.                     <td n:class="problems-sum, $taskSet['open'] ? open" colspan="{count($taskSet
  38.  
  39. ['tasks'])}">{$taskSet['subtotal']['det']|number}</td>       {* {$tsNum}. série součet *}
  40.                     <td n:class="problems-pcs, $taskSet['open'] ? open" colspan="{count($taskSet
  41.  
  42. ['tasks'])}">{$taskSet['subtotal']['pct']|round}&nbsp;%</td> {* {$tsNum}. série součet v % *}
  43.                                         <td n:foreach="$taskSet['tasks'] as $num => $task" n:class="problems-det,
  44.  
  45. $taskSet['open'] ? open"> {* {$tsNum}. série {$num}. příklad *}
  46.                         {if $task['det'] === false}
  47.                             <span title="neodevzdáno">&ndash;</span>
  48.                         {elseif is_null($task['det'])}
  49.                             <span title="odevzdáno, neopraveno">?</span>
  50.                         {else}
  51.                             {$task['det']|number}
  52.                         {/if}
  53.                     </td>
  54.                     <td n:foreach="$taskSet['tasks'] as $num => $task" n:class="problems-pct,
  55.  
  56. $taskSet['open'] ? open"> {* {$tsNum}. série {$num}. příklad v % *}
  57.                         {if $task['pct'] === false}
  58.                             <span title="neodevzdáno">&ndash;</span>
  59.                         {elseif is_null($task['pct'])}
  60.                             <span title="odevzdáno, neopraveno">?</span>
  61.                         {else}
  62.                             {$task['pct']|round}%
  63.                         {/if}
  64.                     </td>
  65.                     {/foreach}
  66.  
  67.                     <td class="series-sum">{$r['total']['det']|number}</td>           {* celkový
  68.  
  69. součet *}
  70.                     <td class="series-sum-pcs">{$r['total']['pct']|round}&nbsp;%</td> {* celkový
  71.  
  72. součet v % *}
  73.                                                    
  74.                                         <td class="achievements_results">
  75.                                             {if ($awards != null) && count($awards) > 0 }
  76.                                                 <label n:foreach="$awards as $award" n:if="$award['id_uzivatele'] == $r
  77.  
  78. ['id']">
  79.                                                     <a class="image-popup-vertical-fit" href="{$basePath}{$award
  80.  
  81. ['odkaz']}" title="{$award['popis']}"><img src="{$basePath}{$award['nahled']}" title="{$award['nazev']}" style="height:
  82.  
  83. 35px"></a>
  84.                                                 </label>
  85.                                             {/if}
  86.                                         </td>
  87.                                 </tr>                              
  88.             </tbody>
  89.         </table>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement