|
Revision 431, 2.8 kB
(checked in by anarcat, 3 years ago)
|
[project @ alternc: changeset 2004-10-24 20:09:21 by anonymous]
quotas automatiques : suppression du bouton "recalculer" ;) et
suppression du 3e paramètre dans setquota
Original author: anonymous
Date: 2004-10-24 20:09:21
|
| Line | |
|---|
| 1 |
<?php |
|---|
| 2 |
|
|---|
| 3 |
|
|---|
| 4 |
|
|---|
| 5 |
|
|---|
| 6 |
|
|---|
| 7 |
|
|---|
| 8 |
|
|---|
| 9 |
|
|---|
| 10 |
|
|---|
| 11 |
|
|---|
| 12 |
|
|---|
| 13 |
|
|---|
| 14 |
|
|---|
| 15 |
|
|---|
| 16 |
|
|---|
| 17 |
|
|---|
| 18 |
|
|---|
| 19 |
|
|---|
| 20 |
|
|---|
| 21 |
|
|---|
| 22 |
|
|---|
| 23 |
|
|---|
| 24 |
|
|---|
| 25 |
|
|---|
| 26 |
|
|---|
| 27 |
|
|---|
| 28 |
|
|---|
| 29 |
|
|---|
| 30 |
require_once("../class/config.php"); |
|---|
| 31 |
|
|---|
| 32 |
if (!$admin->enabled) { |
|---|
| 33 |
__("This page is restricted to authorized staff"); |
|---|
| 34 |
exit(); |
|---|
| 35 |
} |
|---|
| 36 |
|
|---|
| 37 |
if (!$us=$admin->get($uid)) { |
|---|
| 38 |
$error=$err->errstr(); |
|---|
| 39 |
} |
|---|
| 40 |
|
|---|
| 41 |
$mem->su($uid); |
|---|
| 42 |
if (!$r=$quota->getquota()) { |
|---|
| 43 |
$error=$err->errstr(); |
|---|
| 44 |
} |
|---|
| 45 |
$mem->unsu(); |
|---|
| 46 |
include("head.php"); |
|---|
| 47 |
?> |
|---|
| 48 |
</head> |
|---|
| 49 |
<body> |
|---|
| 50 |
<h3><?php __("Editing the quotas of a member"); ?></h3> |
|---|
| 51 |
<?php |
|---|
| 52 |
if ($error) { |
|---|
| 53 |
echo "<p class=\"error\">$error</p>"; |
|---|
| 54 |
exit(); |
|---|
| 55 |
} |
|---|
| 56 |
?> |
|---|
| 57 |
<form method="post" action="adm_quotadoedit.php"> |
|---|
| 58 |
<table border="1" cellspacing="0" cellpadding="6"> |
|---|
| 59 |
<tr><th><input type="hidden" name="uid" value="<?php echo $uid ?>" /> |
|---|
| 60 |
<?php __("Username"); ?></th><td colspan="3"><code><big><?php echo $us["login"]; ?></big></code> </td></tr> |
|---|
| 61 |
<tr><th><?php __("Quota"); ?></th><th><?php __("Total"); ?></th><th><?php __("Used"); ?></th></tr> |
|---|
| 62 |
<?php |
|---|
| 63 |
$ql=$quota->qlist(); |
|---|
| 64 |
reset($ql); |
|---|
| 65 |
while (list($key,$val)=each($ql)) { |
|---|
| 66 |
echo "<tr>"; |
|---|
| 67 |
echo "<td>"; |
|---|
| 68 |
if ($r[$key]["t"]==$r[$key]["u"] && $r[$key]["u"]) echo "<font color=red>"; |
|---|
| 69 |
echo _("quota_".$key)."</td>"; |
|---|
| 70 |
if ($r[$key]["t"]==$r[$key]["u"] && $r[$key]["u"]) echo "</font>"; |
|---|
| 71 |
echo "<td align=\"center\"><input type=\"text\" class=\"int\" style=\"text-align: right\" size=\"10\" maxlength=\"10\" value=\"".$r[$key]["t"]."\" name=\"q_".$key."\" id=\"q_".$key."\" /></td>"; |
|---|
| 72 |
echo "<td align=\"right\"><code><label for=\"q_$key\">".$r[$key]["u"]."</label></code> </td>"; |
|---|
| 73 |
echo "</tr>"; |
|---|
| 74 |
} |
|---|
| 75 |
?> |
|---|
| 76 |
<tr><td colspan="4" align="center"><input class="inb" type="submit" name="submit" value="<?php __("Edit the quotas"); ?>" /> |
|---|
| 77 |
</td></tr> |
|---|
| 78 |
</table> |
|---|
| 79 |
</form> |
|---|
| 80 |
</body> |
|---|
| 81 |
</html> |
|---|
| 82 |
|
|---|