Changeset 1801
- Timestamp:
- 04/19/07 10:27:47 (2 years ago)
- Files:
-
- alternc/trunk/bureau/admin/adm_defquotas.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
alternc/trunk/bureau/admin/adm_defquotas.php
r1563 r1801 76 76 $col=1; 77 77 $qlist=$quota->getdefaults(); 78 $aqlist = $quota->qlist(); 78 79 reset($qlist); 79 foreach($qlist as $type => $q) { 80 foreach($qlist as $qname => $q) 81 { 82 80 83 ?> 81 <h4><?php echo _("Accounts of type"). " \" $type\"" ?></h4>84 <h4><?php echo _("Accounts of type"). " \"" . $qname . "\"" ?></h4> 82 85 <table border="0" cellpadding="4" cellspacing="0"> 83 86 <tr><th><?php __("Quotas") ?></th><th><?php __("Default Value"); ?></th></tr> 84 87 <?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 88 94 ?> 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 89 99 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 95 102 ?> 96 103 </table> 97 104 <?php 105 98 106 } 107 99 108 ?> 100 109 <input type="submit" class="inb" value="<?php __("Edit the default quotas"); ?>" />
