Indentation de fichiers sur les quotas
This commit is contained in:
parent
01e220f6ce
commit
b496a01f04
|
@ -31,7 +31,7 @@ reset($qlist);
|
||||||
$col=1;
|
$col=1;
|
||||||
|
|
||||||
|
|
||||||
if (!is_array($q)) {
|
if (!is_array($q) || empty($q) ) {
|
||||||
// "No quotas for this account, or quotas currently unavailable
|
// "No quotas for this account, or quotas currently unavailable
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
@ -36,10 +36,14 @@ include_once("head.php");
|
||||||
<br />
|
<br />
|
||||||
<?php
|
<?php
|
||||||
$q=$quota->getquota();
|
$q=$quota->getquota();
|
||||||
if (!is_array($q)) {
|
if (!is_array($q) || empty($q) ) {
|
||||||
echo "<p class=\"error\">"._("No quotas for this account, or quotas currently unavailable!")."</p>";
|
echo "<p class=\"error\">"._("No quotas for this account, or quotas currently unavailable!")."</p>";
|
||||||
} else {
|
include_once("foot.php");
|
||||||
echo "<table cellspacing=\"0\" cellpadding=\"4\"><tr><th>"._("Quota")."</th><th>"._("Used")."</th><th>"._("Total")."</th></tr>";
|
die();
|
||||||
|
}
|
||||||
|
|
||||||
|
echo "<table cellspacing=\"0\" cellpadding=\"4\" class='tlist'>";
|
||||||
|
echo "<tr><th>"._("Quota")."</th><th>"._("Used")."</th><th>"._("Total")."</th></tr>";
|
||||||
$qlist=$quota->qlist();
|
$qlist=$quota->qlist();
|
||||||
reset($qlist);
|
reset($qlist);
|
||||||
$col=1;
|
$col=1;
|
||||||
|
@ -53,16 +57,17 @@ if (!is_array($q)) {
|
||||||
if ($q[$key]["u"] >= $q[$key]["t"]) echo "</font>";
|
if ($q[$key]["u"] >= $q[$key]["t"]) echo "</font>";
|
||||||
|
|
||||||
if ($key == 'bw_web') {
|
if ($key == 'bw_web') {
|
||||||
echo " </td><td align=\"center\">". format_size($q[$key]["u"]) ." </td><td align=\"center\">". format_size($q[$key]["t"]) ." </td>";
|
echo " </td><td>". format_size($q[$key]["u"]) ." </td><td>". format_size($q[$key]["t"]) ." </td>";
|
||||||
} elseif ($key == 'web') {
|
} elseif ($key == 'web') {
|
||||||
echo " </td><td align=\"center\">". format_size($q[$key]["u"] * 1024) . " </td><td align=\"center\">". format_size($q[$key]["t"] * 1024) ." </td>";
|
echo " </td><td>". format_size($q[$key]["u"] * 1024) . " </td><td>". format_size($q[$key]["t"] * 1024) ." </td>";
|
||||||
} else {
|
} else {
|
||||||
echo " </td><td align=\"center\">".$q[$key]["u"]." </td><td align=\"center\">".$q[$key]["t"]." </td>";
|
echo " </td><td>".$q[$key]["u"]." </td><td>".$q[$key]["t"]." </td>";
|
||||||
}
|
}
|
||||||
|
|
||||||
echo "</tr>";
|
echo "</tr>";
|
||||||
}
|
}
|
||||||
echo "</table>";
|
echo "</table>";
|
||||||
}
|
|
||||||
|
include_once("foot.php");
|
||||||
|
|
||||||
?>
|
?>
|
||||||
<?php include_once("foot.php"); ?>
|
|
||||||
|
|
Loading…
Reference in New Issue