summaryrefslogtreecommitdiffstats
path: root/application/views/file/fragments/uploads_table.php
blob: 142d19e91b9d585038f46326190e1c94bf11a8ee (plain)
1
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
<?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>