Advertisement
Guest User

Untitled

a guest
Feb 4th, 2017
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 2.06 KB | None | 0 0
  1. <table>
  2.     <tr>
  3.         <?php for ($stage = 0; $stage < $playoff->round; $stage++): ?>
  4.             <td>
  5.  
  6.                 <?php for ($stageInside = 0; $stageInside <= $playoff->round; $stageInside++) : ?>
  7.  
  8.                     <table>
  9.                         <?php if ($stage == $stageInside): ?>
  10.  
  11.                             <?php $playoff->splitInHalf($stageInside); ?>
  12.  
  13.  
  14.                             <?php for ($iteration = 0; $iteration < $playoff->colPlayers; $iteration++) : ?>
  15.  
  16.                                 <?php $playoff->getHeight($iteration, $stage); ?>
  17.  
  18.  
  19.                                 <tr>
  20.                                     <td class="pf_line">
  21.                                         <?php if ($iteration % 2 == 0 AND $stageInside < 1 AND $iteration != 0): ?>
  22.                                             <div class="pf_separator"></div>
  23.                                         <?php endif; ?>
  24.                                         <?php if ($iteration % 2 == 0 AND $iteration != 0): ?>
  25.                                             <div class="pf_separator"
  26.                                                 style="height:<?= $stageInside * $playoff->height ?>pt;"></div>
  27.                                         <?php endif; ?>
  28.  
  29.                                         <?php if (@in_array($playoff->position, $playoff->data[$stage]['position'])): ?>
  30.                                             <div class="pf_team">
  31.                                                 <?= $playoff->data[$stage][$playoff->position]['name'] ?>
  32.  
  33.                                             </div>
  34.                                         <?php else: ?>
  35.                                             <div class="pf_team"></div>
  36.                                         <?php endif; ?>
  37.  
  38.  
  39.                                     </td>
  40.                                 </tr>
  41.  
  42.                             <?php endfor; ?>
  43.  
  44.                         <?php endif; ?>
  45.                     </table>
  46.                 <?php endfor; ?>
  47.             </td>
  48.         <?php endfor; ?>
  49.     </tr>
  50. </table>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement