Changeset 1660

Show
Ignore:
Timestamp:
05/25/06 15:14:23 (2 years ago)
Author:
benjamin
Message:

Closes #676, quota show totals

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • alternc/trunk/bureau/admin/adm_list.php

    r1659 r1660  
    221221</form> 
    222222<?php 
    223    printf("<p>".__("%s accounts")."</p>",count($r)); 
     223   printf("<p>"._("%s accounts")."</p>",count($r)); 
    224224 }  
    225225?> 
  • alternc/trunk/bureau/admin/quota_show_all.php

    r1549 r1660  
    3838<?php 
    3939 
     40$quota_utilise = 0; 
     41$tot = 0; 
     42 
    4043if ($mem->user['uid'] == "2000") 
    4144  $user_list = $admin->get_list(1); 
     
    7578    $style = ''; 
    7679  } 
     80  $quota_utilise = $quota_utilise + $q['u'];  
     81  $tot = $tot + $q['t'];  
    7782  print "<td $style>".str_replace(" ", "&nbsp;", m_quota::display_val($key, $q['u']).'/'.m_quota::display_val($key, $q['t'])).'</td>'; 
    7883} 
     
    8085$mem->unsu(); 
    8186} 
     87 
     88echo "<br><tr height=\"15\"></tr><tr><td>"._("Total")."</td><td $style>"; 
     89echo format_size($quota_utilise)." / ".format_size($tot)."</td></tr>"; 
     90 
    8291print "</table>"; 
    8392