Show Rank Image in Admin Panel.

A little modification I made to the rank editing page on the Admin panel I thought I would share.

  1. Open “/admin/templates/ranks_allranks.tpl”

  2. Find this code:

    Rank Title Minimum Hours Pay Rate Total Pilots Options
  3. Replace with:

    Rank Title Minimum Hours Rank Image Pay Rate Total Pilots Options
  4. Find the following code:

    <?php echo $rank->rank; ?> <?php echo $rank->minhours; ?> <?php echo Config::Get('MONEY_UNIT').$rank->payrate.'/hr'; ?> <?php echo $rank->totalpilots; ?>
  5. Replace with:

    <?php echo $rank->rank; ?> <?php echo $rank->minhours; ?> <?php echo Config::Get('MONEY_UNIT').$rank->payrate.'/hr'; ?> <?php echo $rank->totalpilots; ?>
  6. Save and Close “ranks_allranks.tpl”.

Now when you view all ranks in the admin panel it will show the corresponding image.

I’ll integrate this into the main source tree, thanks!

Your welcome , i added it to my admin panel to make it easier when managing ranks so i could make sure i had the right image for each rank.