- Timestamp:
- 04/19/07 11:12:58 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
alternc/branches/franck-desktop/bureau/admin/adm_defquotas.php
r1797 r1802 79 79 <?php 80 80 $col=1; 81 $qarray=$quota->qlist();82 81 $qlist=$quota->getdefaults(); 82 $aqlist = $quota->qlist(); 83 83 reset($qlist); 84 foreach($qlist as $type => $q) { 84 foreach($qlist as $qname => $q) 85 { 86 85 87 ?> 86 <div> 87 <h4><?php echo _("Accounts of type"). " \"$type\"" ?></h4> 88 <h4><?php echo _("Accounts of type"). " \"" . $qname . "\"" ?></h4> 88 89 <table border="0" cellpadding="4" cellspacing="0"> 89 90 <tr><th><?php __("Quotas") ?></th><th><?php __("Default Value"); ?></th></tr> 90 91 <?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 94 98 ?> 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 95 103 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 101 106 ?> 102 107 </table> 103 </div>104 108 <?php 109 105 110 } 111 106 112 ?> 107 113 <input type="submit" class="inb" value="<?php __("Edit the default quotas"); ?>" />
Note: See TracChangeset
for help on using the changeset viewer.
