correction du commit precedent
This commit is contained in:
parent
e4057ebcc0
commit
7ee023d7db
|
@ -37,8 +37,8 @@ include("head.php");
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
$quota_utilise = 0;
|
$quota_utilise = array();
|
||||||
$tot = 0;
|
$tot = array();
|
||||||
|
|
||||||
if ($mem->user['uid'] == "2000")
|
if ($mem->user['uid'] == "2000")
|
||||||
$user_list = $admin->get_list(1);
|
$user_list = $admin->get_list(1);
|
||||||
|
@ -77,16 +77,22 @@ foreach($sequence as $key) {
|
||||||
} else {
|
} else {
|
||||||
$style = '';
|
$style = '';
|
||||||
}
|
}
|
||||||
$quota_utilise = $quota_utilise + $q['u'];
|
$quota_utilise[$key] += $q['u'];
|
||||||
$tot = $tot + $q['t'];
|
$tot[$key]+= $q['t'];
|
||||||
print "<td $style>".str_replace(" ", " ", m_quota::display_val($key, $q['u']).'/'.m_quota::display_val($key, $q['t'])).'</td>';
|
print "<td $style>".str_replace(" ", " ", m_quota::display_val($key, $q['u']).'/'.m_quota::display_val($key, $q['t'])).'</td>';
|
||||||
}
|
}
|
||||||
print "</tr>";
|
print "</tr>";
|
||||||
$mem->unsu();
|
$mem->unsu();
|
||||||
}
|
}
|
||||||
|
|
||||||
echo "<br><tr height=\"15\"></tr><tr><td>"._("Total")."</td><td $style>";
|
echo "<tr>";
|
||||||
echo format_size($quota_utilise)." / ".format_size($tot)."</td></tr>";
|
echo "<td $style><b>"._("Total")."</b></td>";
|
||||||
|
foreach($sequence as $key) {
|
||||||
|
echo "<td $style><b>";
|
||||||
|
echo $quota_utilise[$key]."/".$tot[$key];
|
||||||
|
echo "</b></td>";
|
||||||
|
}
|
||||||
|
echo "</tr>";
|
||||||
|
|
||||||
print "</table>";
|
print "</table>";
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue