Subversion Repositories Applications.papyrus

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
831 florian 1
{IF MAX_PM_MESSAGECOUNT}
2
  <?php
3
    $avail = $PHORUM['DATA']['PM_SPACE_LEFT'];
4
    $used = $PHORUM['DATA']['PM_MESSAGECOUNT'];
5
    $total = $avail + $used;
6
    $size = 130;
7
    $usedsize = ceil($used/$total * $size);
8
    $usedperc = floor($used/$total * 100 + 0.5);
9
  ?>
10
  <div class="phorum-menu" style="margin-top: 6px">
11
    <div style="text-align: center; padding: 10px 0px 10px 0px">
12
      <div style="padding-bottom: 10px">
13
        {IF PM_SPACE_LEFT}
14
          {LANG->PMSpaceLeft}
15
        {ELSE}
16
          {LANG->PMSpaceFull}
17
        {/IF}
18
      </div>
19
      <table class="phorum-gaugetable" align="center">
20
        <tr>
21
          <td class="phorum-gaugeprefix"><?php echo "{$usedperc}%" ?></td>
22
          <td class="phorum-gauge" width="<?php echo $size?>"><img align="left" src="{gauge_image}" width="<?php echo $usedsize?>" height="16px" /></td>
23
        </tr>
24
      </table>
25
    </div>
26
  </div>
27
{/IF}