summaryrefslogtreecommitdiffstats
path: root/application/views
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2011-09-11 16:00:22 +0200
committerFlorian Pritz <bluewind@xinu.at>2011-09-11 18:12:36 +0200
commit3e99f93830d61be76205474bacc749e97d9e3ca5 (patch)
treed065b3e7e42f74e9038570a1d921ba3e883f9250 /application/views
parent599cf82ff710d01de97231e3fa73fff2b514708e (diff)
add upload_history page
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'application/views')
-rw-r--r--application/views/file/upload_history.php26
-rw-r--r--application/views/file_plaintext/upload_history.php17
2 files changed, 43 insertions, 0 deletions
diff --git a/application/views/file/upload_history.php b/application/views/file/upload_history.php
new file mode 100644
index 000000000..5d61c7331
--- /dev/null
+++ b/application/views/file/upload_history.php
@@ -0,0 +1,26 @@
+<?php echo form_open('file/upload_history'); ?>
+ <p>
+ Password:<input type="password" name="password" size="10" />
+ <input type="submit" value="Display" />
+ </p>
+</form>
+
+<table class="results">
+<tr>
+ <th>ID</th>
+ <th>Filename</th>
+ <th>Mimetype
+ <th>Date</th>
+ <th>Hash</th>
+</tr>
+
+<?php foreach($query as $key => $item): ?>
+<tr class="<?php echo even_odd(); ?>">
+ <td><a href="<?php echo site_url("/".$item["id"]); ?>/"><?php echo $item["id"]; ?></a></td>
+ <td><?php echo $item["filename"]; ?></td>
+ <td><?php echo $item["mimetype"]; ?></td>
+ <td><?php echo $item["date"]; ?></td>
+ <td><?php echo $item["hash"]; ?></td>
+</tr>
+<?php endforeach; ?>
+</table>
diff --git a/application/views/file_plaintext/upload_history.php b/application/views/file_plaintext/upload_history.php
new file mode 100644
index 000000000..e03311464
--- /dev/null
+++ b/application/views/file_plaintext/upload_history.php
@@ -0,0 +1,17 @@
+<?php
+echo
+ mb_str_pad("ID", $lengths["id"])." | "
+ .mb_str_pad("Filename", $lengths["filename"])." | "
+ .mb_str_pad("Mimetype", $lengths["mimetype"])." | "
+ .mb_str_pad("Date", $lengths["date"])." | "
+ .mb_str_pad("Hash", $lengths["hash"])."\n";
+
+foreach($query as $key => $item) {
+ echo
+ mb_str_pad($item["id"], $lengths["id"])." | "
+ .mb_str_pad($item["filename"], $lengths["filename"])." | "
+ .mb_str_pad($item["mimetype"], $lengths["mimetype"])." | "
+ .$item["date"]." | "
+ .$item["hash"]."\n";
+}
+