summaryrefslogtreecommitdiffstats
path: root/application/views/file/fragments/uploads_table.php
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2014-08-29 17:45:48 +0200
committerFlorian Pritz <bluewind@xinu.at>2014-08-29 17:45:48 +0200
commit6065c00e637872804d057bfe6fc6b719f4652019 (patch)
treeb4523c79395ab0cae3c8bd3386283476332cdd61 /application/views/file/fragments/uploads_table.php
parentcc72236f71c60396b69631656f8e0ad00a6301c8 (diff)
parentf8674b37bd7db4e47103391b28dfa5b34d58f29f (diff)
Merge branch 'multipaste' into working
Diffstat (limited to 'application/views/file/fragments/uploads_table.php')
-rw-r--r--application/views/file/fragments/uploads_table.php26
1 files changed, 26 insertions, 0 deletions
diff --git a/application/views/file/fragments/uploads_table.php b/application/views/file/fragments/uploads_table.php
new file mode 100644
index 000000000..142d19e91
--- /dev/null
+++ b/application/views/file/fragments/uploads_table.php
@@ -0,0 +1,26 @@
+<?php register_js_include("/data/js/jquery.tablesorter.min.js"); ?>
+<div class="table-responsive container-wide">
+ <p>Non-previewable file(s):</p>
+ <table class="table table-striped tablesorter">
+ <thead>
+ <tr>
+ <th>ID</th>
+ <th>Filename</th>
+ <th>Mimetype</th>
+ <th>Date</th>
+ <th>Size</th>
+ </tr>
+ </thead>
+ <tbody>
+ <?php foreach($items as $item): ?>
+ <tr>
+ <td><a href="<?php echo site_url("/".$item["id"]) ?>/"><?php echo $item["id"] ?></a></td>
+ <td class="wrap"><?php echo htmlspecialchars($item["filename"]); ?></td>
+ <td><?php echo $item["mimetype"] ?></td>
+ <td class="nowrap" data-sort-value="<?=$item["date"]; ?>"><?php echo date("r", $item["date"]); ?></td>
+ <td><?php echo format_bytes($item["filesize"]) ?></td>
+ </tr>
+ <?php endforeach; ?>
+ </tbody>
+ </table>
+</div>