Advertisement
Guest User

themes/default/ranking/woe.php

a guest
Sep 22nd, 2014
203
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 4.18 KB | None | 0 0
  1.     <?php if (!defined('FLUX_ROOT')) exit; ?>
  2.     <h2>WoE Ranking</h2>
  3.     <h3>
  4.             Top <?php echo number_format($limit=(int)Flux::config('CharRankingLimit')) ?> WoE
  5.             <?php if (!is_null($jobClass)): ?>
  6.             (<?php echo htmlspecialchars($className=$this->jobClassText($jobClass)) ?>)
  7.             <?php endif ?>
  8.             on <?php echo htmlspecialchars($server->serverName) ?>
  9.     </h3>
  10.     <?php if ($chars): ?>
  11. <form action="" method="get" class="search-form2">
  12.     <?php echo $this->moduleActionFormInputs('ranking', 'woe') ?>
  13.     <p>
  14.         <label for="jobclass">Filter by job class:</label>
  15.         <select name="jobclass" id="jobclass">
  16.         <?php foreach ($classes as $jobClassIndex => $jobClassName): ?>
  17.             <option value="<?php echo $jobClassIndex ?>"
  18.                 <?php if (!is_null($jobClass) && $jobClass == $jobClassIndex) echo ' selected="selected"' ?>>
  19.                 <?php echo htmlspecialchars($jobClassName) ?>
  20.             </option>
  21.         <?php endforeach ?>
  22.         </select>
  23.        
  24.         <input type="submit" value="Filter" />
  25.         <input type="button" value="Reset" onclick="reload()" />
  26.     </p>
  27. </form>
  28.     <table class="horizontal-table">
  29.             <tr>
  30.                     <th>№</th>
  31.                     <th>Name</th>
  32.                                 <th>Job</th>
  33.                 <th>Kill</th>
  34.                 <th>Death</th>
  35.                 <th>DMG Done</th>
  36.                 <th>DMG Received</th>
  37.                 <th>Score</th>
  38.               <th>Emp DMG</th>
  39.                 <th>Emp Kill</th>
  40.                 <th>HP Potions</th>
  41.                 <th>SP Potions</th>
  42.            </tr>
  43.             <?php $topRankType = !is_null($jobClass) ? $className : 'character' ?>
  44.             <?php for ($i = 0; $i < $limit; ++$i): ?>
  45.             <tr<?php if (!isset($chars[$i])) echo ' class="empty-row"'; if ($i === 0) echo ' class="top-ranked" title="<strong>'.htmlspecialchars($chars[$i]->char_name).'</strong> is the top ranked '.$topRankType.'!"' ?>>
  46.                     <td align="right"><?php echo number_format($i + 1) ?></td>
  47.                     <?php if (isset($chars[$i])): ?>
  48.                     <td><strong>
  49.                         <?php if ($auth->actionAllowed('character', 'view') && $auth->allowedToViewCharacter): ?>
  50.                                     <?php echo $this->linkToCharacter($chars[$i]->char_id, $chars[$i]->char_name) ?>
  51.                             <?php else: ?>
  52.                                     <?php echo htmlspecialchars($chars[$i]->char_name) ?>
  53.                             <?php endif ?>
  54.                     </strong></td>
  55.                             <td><?php echo $this->jobClassText($chars[$i]->char_class) ?></td>
  56.                     <td><?php echo number_format((int)$chars[$i]->kill_count) ?></td>
  57.                      <td><?php echo number_format((int)$chars[$i]->death_count) ?></td>
  58.                       <td><?php echo number_format((int)$chars[$i]->damage_done) ?></td>
  59.                        <td><?php echo number_format((int)$chars[$i]->damage_received) ?></td>
  60.                         <td><?php echo number_format((int)$chars[$i]->score) ?></td>
  61.                          <td><?php echo number_format((int)$chars[$i]->emperium_damage) ?></td>
  62.                           <td><?php echo number_format((int)$chars[$i]->emperium_kill) ?></td>
  63.                           <td><?php echo number_format((int)$chars[$i]->hp_heal_potions) ?></td>
  64.                            <td><?php echo number_format((int)$chars[$i]->sp_heal_potions) ?></td>
  65.                                                                                        <?php if ($chars[$i]->guild_name): ?>
  66.                  <?php if ($chars[$i]->guild_emblem_len): ?>
  67.                  <?php endif ?>
  68.                  <td<?php if (!$chars[$i]->guild_emblem_len) echo ' colspan="2"' ?>>
  69.                         <?php if ($auth->actionAllowed('guild', 'view') && $auth->allowedToViewGuild): ?>
  70.                                  <?php echo $this->linkToGuild($chars[$i]->guild_id, $chars[$i]->guild_name) ?>
  71.                          <?php else: ?>
  72.                                  <?php echo htmlspecialchars($chars[$i]->guild_name) ?>
  73.                          <?php endif ?>
  74.                     </td>
  75.                     <?php else: ?>
  76.                     <?php endif ?>
  77.                     <?php else: ?>
  78.                     <td colspan="8"></td>
  79.                     <?php endif ?>
  80.             </tr>
  81.             <?php endfor ?>
  82.     </table>
  83.     <?php else: ?>
  84.     <p>There are no characters. <a href="javascript:history.go(-1)">Go back</a>.</p>
  85.     <?php endif ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement