Changeset 1801

Show
Ignore:
Timestamp:
04/19/07 10:27:47 (2 years ago)
Author:
franck
Message:

Utilise la liste des quotas dispo sur le serveurs et non ceux du compte, evite les problemes de mise a jour

Files:

Legend:

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

    r1563 r1801  
    7676$col=1; 
    7777$qlist=$quota->getdefaults(); 
     78$aqlist = $quota->qlist(); 
    7879reset($qlist); 
    79 foreach($qlist as $type => $q) { 
     80foreach($qlist as $qname => $q) 
     81
     82 
    8083?> 
    81 <h4><?php echo _("Accounts of type"). " \"$type\"" ?></h4> 
     84<h4><?php echo _("Accounts of type"). " \"" . $qname . "\"" ?></h4> 
    8285<table border="0" cellpadding="4" cellspacing="0"> 
    8386<tr><th><?php __("Quotas") ?></th><th><?php __("Default Value"); ?></th></tr> 
    8487<?php 
    85 foreach($q as $name => $value) { 
    86         $key = $type . ":" . $name; 
    87         $col=3-$col; 
     88 
     89        foreach($aqlist as $aqtype => $aqname) 
     90        { 
     91                $key = $qname . ":" . $aqtype; 
     92                $col=3-$col; 
     93 
    8894?> 
     95<tr class="lst<?php echo $col; ?>"> 
     96<td><label for="<?php echo $key; ?>"><?php echo $aqname; ?></label></td> 
     97<td><input type="text" class="int" size="16" maxlength="16" name="<?php echo $key; ?>" id="<?php echo $key; ?>" value="<?php echo $q[$aqtype]; ?>" /></td></tr> 
     98<?php 
    8999 
    90 <tr class="lst<?php echo $col; ?>"> 
    91 <td><label for="<?php echo $key; ?>"><?php echo "quota_$name"; ?></label></td> 
    92 <td><input type="text" class="int" size="16" maxlength="16" name="<?php echo $key; ?>" id="<?php echo $name; ?>" value="<?php echo $value; ?>" /></td></tr> 
    93 <?php 
    94   } 
     100        } 
     101 
    95102?> 
    96103</table> 
    97104<?php 
     105 
    98106} 
     107 
    99108?> 
    100109<input type="submit" class="inb" value="<?php __("Edit the default quotas"); ?>" />