Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <table>
- <tr>
- <?php for ($stage = 0; $stage < $playoff->round; $stage++): ?>
- <td>
- <?php for ($stageInside = 0; $stageInside <= $playoff->round; $stageInside++) : ?>
- <table>
- <?php if ($stage == $stageInside): ?>
- <?php $playoff->splitInHalf($stageInside); ?>
- <?php for ($iteration = 0; $iteration < $playoff->colPlayers; $iteration++) : ?>
- <?php $playoff->getHeight($iteration, $stage); ?>
- <tr>
- <td class="pf_line">
- <?php if ($iteration % 2 == 0 AND $stageInside < 1 AND $iteration != 0): ?>
- <div class="pf_separator"></div>
- <?php endif; ?>
- <?php if ($iteration % 2 == 0 AND $iteration != 0): ?>
- <div class="pf_separator"
- style="height:<?= $stageInside * $playoff->height ?>pt;"></div>
- <?php endif; ?>
- <?php if (@in_array($playoff->position, $playoff->data[$stage]['position'])): ?>
- <div class="pf_team">
- <?= $playoff->data[$stage][$playoff->position]['name'] ?>
- </div>
- <?php else: ?>
- <div class="pf_team"></div>
- <?php endif; ?>
- </td>
- </tr>
- <?php endfor; ?>
- <?php endif; ?>
- </table>
- <?php endfor; ?>
- </td>
- <?php endfor; ?>
- </tr>
- </table>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement