Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php if (!defined('FLUX_ROOT')) exit; ?>
- <h2>WoE Ranking</h2>
- <h3>
- Top <?php echo number_format($limit=(int)Flux::config('CharRankingLimit')) ?> WoE
- <?php if (!is_null($jobClass)): ?>
- (<?php echo htmlspecialchars($className=$this->jobClassText($jobClass)) ?>)
- <?php endif ?>
- on <?php echo htmlspecialchars($server->serverName) ?>
- </h3>
- <?php if ($chars): ?>
- <form action="" method="get" class="search-form2">
- <?php echo $this->moduleActionFormInputs('ranking', 'woe') ?>
- <p>
- <label for="jobclass">Filter by job class:</label>
- <select name="jobclass" id="jobclass">
- <?php foreach ($classes as $jobClassIndex => $jobClassName): ?>
- <option value="<?php echo $jobClassIndex ?>"
- <?php if (!is_null($jobClass) && $jobClass == $jobClassIndex) echo ' selected="selected"' ?>>
- <?php echo htmlspecialchars($jobClassName) ?>
- </option>
- <?php endforeach ?>
- </select>
- <input type="submit" value="Filter" />
- <input type="button" value="Reset" onclick="reload()" />
- </p>
- </form>
- <table class="horizontal-table">
- <tr>
- <th>№</th>
- <th>Name</th>
- <th>Job</th>
- <th>Kill</th>
- <th>Death</th>
- <th>DMG Done</th>
- <th>DMG Received</th>
- <th>Score</th>
- <th>Emp DMG</th>
- <th>Emp Kill</th>
- <th>HP Potions</th>
- <th>SP Potions</th>
- </tr>
- <?php $topRankType = !is_null($jobClass) ? $className : 'character' ?>
- <?php for ($i = 0; $i < $limit; ++$i): ?>
- <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.'!"' ?>>
- <td align="right"><?php echo number_format($i + 1) ?></td>
- <?php if (isset($chars[$i])): ?>
- <td><strong>
- <?php if ($auth->actionAllowed('character', 'view') && $auth->allowedToViewCharacter): ?>
- <?php echo $this->linkToCharacter($chars[$i]->char_id, $chars[$i]->char_name) ?>
- <?php else: ?>
- <?php echo htmlspecialchars($chars[$i]->char_name) ?>
- <?php endif ?>
- </strong></td>
- <td><?php echo $this->jobClassText($chars[$i]->char_class) ?></td>
- <td><?php echo number_format((int)$chars[$i]->kill_count) ?></td>
- <td><?php echo number_format((int)$chars[$i]->death_count) ?></td>
- <td><?php echo number_format((int)$chars[$i]->damage_done) ?></td>
- <td><?php echo number_format((int)$chars[$i]->damage_received) ?></td>
- <td><?php echo number_format((int)$chars[$i]->score) ?></td>
- <td><?php echo number_format((int)$chars[$i]->emperium_damage) ?></td>
- <td><?php echo number_format((int)$chars[$i]->emperium_kill) ?></td>
- <td><?php echo number_format((int)$chars[$i]->hp_heal_potions) ?></td>
- <td><?php echo number_format((int)$chars[$i]->sp_heal_potions) ?></td>
- <?php if ($chars[$i]->guild_name): ?>
- <?php if ($chars[$i]->guild_emblem_len): ?>
- <?php endif ?>
- <td<?php if (!$chars[$i]->guild_emblem_len) echo ' colspan="2"' ?>>
- <?php if ($auth->actionAllowed('guild', 'view') && $auth->allowedToViewGuild): ?>
- <?php echo $this->linkToGuild($chars[$i]->guild_id, $chars[$i]->guild_name) ?>
- <?php else: ?>
- <?php echo htmlspecialchars($chars[$i]->guild_name) ?>
- <?php endif ?>
- </td>
- <?php else: ?>
- <?php endif ?>
- <?php else: ?>
- <td colspan="8"></td>
- <?php endif ?>
- </tr>
- <?php endfor ?>
- </table>
- <?php else: ?>
- <p>There are no characters. <a href="javascript:history.go(-1)">Go back</a>.</p>
- <?php endif ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement