Exemple #1
0
<?php

require_once 'lib/path.php';
$action = param('action', 'none');
$do = param('do', 'none');
echo '<h1>Rank Information</h1>';
$divisions = Division::getAllDivisions();
if ($action == 'none') {
    foreach ($divisions as $division) {
        $ranks = Rank::getDivisionRanks($division);
        if (count($ranks) > 0) {
            ?>
            <h3><?php 
            echo $division->getName();
            ?>
</h3>
            <table class="table table-hover">
                <tr>
                    <th>Rank Name</th>
                    <th>Rank Abbreviation</th>
                    <th>Rank Paygrade</th>
                    <th>Option(s)</th>
                </tr>
            <?php 
            foreach ($ranks as $rank) {
                ?>
                <tr>
                    <td><?php 
                echo $rank->getName();
                ?>
</td>