Subversion Repositories general

Compare Revisions

Ignore whitespace Rev 1285 → Rev 1286

/FileXch/branches/php-impl/pages/removed_list.php
0,0 → 1,79
<?php checkDataCollected(); ?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
 
<head>
<title>FilExch Admin - Removed Sessions</title>
</head>
 
<body>
 
<h1>FilExch Admin - Removed Sessions</h1>
 
<?php if($ex) { ?>
<p><?= $ex->getMessage() ?></p>
<?php } ?>
 
<p><a href="admin.php">Back to admin</a></p>
 
<?php if(!$removedList) { ?>
<p>No removed sessions.</p>
<?php } else { ?>
<table border=1>
<tr>
<th>Session</th>
<th>Owner</th>
<th>Created</th>
<th>Expire</th>
<th>Size</th>
<th>Count</th>
<th colspan=4>Flags</th>
<th colspan=2>Comments</th>
<th>Active</th>
<th>&nbsp;</th>
</tr>
<?php foreach($removedList as $s) { ?>
<tr>
<td><a href="admin_show.php?s=<?= $f->htmlUrlPart($s->getName()) ?>"><?= $f->string($s->getName()) ?></a></td>
<td><?= $s->getOwner() ?></td>
<td><?= $f->date($s->getCreated(), "&nbsp;") ?></td>
<td><?= $f->date($s->getExpire(), "&nbsp;") ?></td>
<td><?= $f->size($s->getSizeCurrent(), "0 B") ?> / <?= $f->size($s->getSizeLimit(), "-") ?></td>
<td><?= $f->string($s->getCountCurrent(), "0") ?> / <?= $f->string($s->getCountLimit(), "-") ?></td>
<td title="<?= $f->boolean($s->getDownloadable(), "Guest may download files",
"Guest may NOT download files") ?>"><?= $f->boolean($s->getDownloadable(), "D", "&nbsp;") ?></td>
<td title="<?= $f->boolean($s->getUploadable(), "Guest may upload files",
"Guest may NOT upload files") ?>"><?= $f->boolean($s->getUploadable(), "U", "&nbsp;") ?></td>
<td title="<?= $f->boolean($s->getDeletable(), "Guest may delete files",
"Guest may NOT delete files") ?>"><?= $f->boolean($s->getDeletable(), "x", "&nbsp;") ?></td>
<td title="<?= $f->boolean($s->getBlocked(), "Session is blocked",
"Session is not blocked") ?>"><?= $f->boolean($s->getBlocked(), "B", "&nbsp;") ?></td>
<td title="<?= $f->string($s->getPublicComment()) ?>"><?=
$f->stringBegin($s->getPublicComment(), 10) ?></td>
<td title="<?= $f->string($s->getPrivateComment()) ?>"><?=
$f->stringBegin($s->getPrivateComment(), 10) ?></td>
<td><?= $f->boolean($s->isActive(), "x", "&nbsp;") ?></td>
<td nowrap>
<a href="removed.php?restore=<?= $f->htmlUrlPart($s->getId()) ?>">Restore</a>
</td>
</tr>
<?php } ?>
<tr>
<th>Total</th>
<td colspan="3">&nbsp;</td>
<td><?= $f->size($removedSummary['sizeCurrent'], "0 B") ?>
/ <?= $f->size($removedSummary['sizeLimit'], "-") ?></td>
<td><?= $f->string($removedSummary['countCurrent'], "0") ?>
/ <?= $f->string($removedSummary['countLimit'], "-") ?></td>
<td colspan="7">&nbsp;</td>
<td>
<a href="removed.php?purge">Purge All</a>
</td>
</tr>
</table>
<?php } ?>
 
</body>
 
</html>