Ignore:
Timestamp:
04/19/07 11:12:58 (6 years ago)
Author:
franck
Message:

Ajout des modifications faites dans la branche principale

File:
1 edited

Legend:

Unmodified
Added
Removed
  • alternc/branches/franck-desktop/bureau/admin/adm_defquotas.php

    r1797 r1802  
    7979<?php 
    8080$col=1; 
    81 $qarray=$quota->qlist(); 
    8281$qlist=$quota->getdefaults(); 
     82$aqlist = $quota->qlist(); 
    8383reset($qlist); 
    84 foreach($qlist as $type => $q) { 
     84foreach($qlist as $qname => $q) 
     85{ 
     86 
    8587?> 
    86 <div> 
    87 <h4><?php echo _("Accounts of type"). " \"$type\"" ?></h4> 
     88<h4><?php echo _("Accounts of type"). " \"" . $qname . "\"" ?></h4> 
    8889<table border="0" cellpadding="4" cellspacing="0"> 
    8990<tr><th><?php __("Quotas") ?></th><th><?php __("Default Value"); ?></th></tr> 
    9091<?php 
    91 foreach($q as $name => $value) { 
    92         $key = $type . ":" . $name; 
    93         $col=3-$col; 
     92 
     93        foreach($aqlist as $aqtype => $aqname) 
     94        { 
     95                $key = $qname . ":" . $aqtype; 
     96                $col=3-$col; 
     97 
    9498?> 
     99<tr class="lst<?php echo $col; ?>"> 
     100<td><label for="<?php echo $key; ?>"><?php echo $aqname; ?></label></td> 
     101<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> 
     102<?php 
    95103 
    96 <tr class="lst<?php echo $col; ?>"> 
    97 <td><label for="<?php echo $key; ?>"><?php echo $qarray[$name]; ?></label></td> 
    98 <td><input type="text" class="int" size="16" maxlength="16" name="<?php echo $key; ?>" id="<?php echo $name; ?>" value="<?php echo $value; ?>" /></td></tr> 
    99 <?php 
    100   } 
     104        } 
     105 
    101106?> 
    102107</table> 
    103 </div> 
    104108<?php 
     109 
    105110} 
     111 
    106112?> 
    107113<input type="submit" class="inb" value="<?php __("Edit the default quotas"); ?>" /> 
Note: See TracChangeset for help on using the changeset viewer.