summaryrefslogtreecommitdiff
path: root/tpl/image/folder.php
diff options
context:
space:
mode:
authorNicolas BERNSTEIN <alexis211@gmail.com>2012-03-18 14:08:31 +0100
committerNicolas BERNSTEIN <alexis211@gmail.com>2012-03-18 14:08:31 +0100
commitccff9ce8d8a2818699ce4e20a310986fc95ea022 (patch)
treec585ead91c894c621c73b63bc84012709e795151 /tpl/image/folder.php
parent24547ccec6526fcef3cccb34bc35fb81f31236b3 (diff)
downloadBits-ccff9ce8d8a2818699ce4e20a310986fc95ea022.tar.gz
Bits-ccff9ce8d8a2818699ce4e20a310986fc95ea022.zip
Added a way of classifying images in folders.
Diffstat (limited to 'tpl/image/folder.php')
-rw-r--r--tpl/image/folder.php52
1 files changed, 52 insertions, 0 deletions
diff --git a/tpl/image/folder.php b/tpl/image/folder.php
new file mode 100644
index 0000000..5d5e57b
--- /dev/null
+++ b/tpl/image/folder.php
@@ -0,0 +1,52 @@
+<?php
+require("tpl/general/top.php");
+
+if ($can_edit) {
+ echo '<div class="small_right"><a href="editfld-image-' . $fldid . '">edit folder info</a> | ';
+ echo '<a href="delfld-image-' . $fldid . '">delete folder</a></div>';
+}
+
+echo $fld['comment_html'];
+
+if (count($images) == 0) {
+ echo '<div class="message">This folder has no images.</div>';
+} else {
+ echo '<div class="ordering_links">' . filters_html_full() . '</div>';
+ echo '<table><tr><th width="' . ($miniature_width) . 'px">Preview</th><th>Info</th><th>Date</th></tr>';
+ foreach ($images as $img) {
+ $min = $baseurl . $img['id'] . "-min." . $img['extension'];
+ $imgf = $baseurl . $img['id'] . "." . $img['extension'];
+ echo '<tr><td><a href="' . $imgf . '"><img src="' . $min . '" /></a></td>';
+ echo '<td><strong>' . $img['name'] . '</strong>';
+ echo '<br />' . $img['comment_html'] . '<br />';
+ /*echo '<strong>Miniature:</strong> <a href="' . $min . '">' . $min . '</a><br />';
+ echo '<strong>Image:</strong> <a href="' . $imgf . '">' . $imgf . '</a><br />'; */
+ echo '</td>';
+ echo '<td>' . $img['upl_date'] . '<br />';
+ if ($can_edit) echo '<br /><a href="delete-image-' . $img['id'] . '">delete</a>';
+ if ($can_edit) echo '<br /><a href="editinfo-image-' . $img['id'] . '">edit info</a>';
+ echo '</td></tr>';
+ }
+ echo '</table>';
+}
+
+echo '</div><div class="contents-left">';
+if ($is_owner) {
+ echo '<h1>Your folders</h1>';
+} else {
+ echo '<h1>' . $fld["ownername"] . "'s folders</h1>";
+}
+echo '<ul>';
+foreach ($folders as $f) {
+ if ($f['id'] == $fldid) {
+ echo '<li>' . $f['name'] . '</li>';
+ } else {
+ echo '<li><a href="folder-image-' . $f['id'] . '">' . $f['name'] . '</a></li>';
+ }
+}
+if ($is_owner) {
+ echo '<li><a class="tool_link" href="newfld-image">[+] New folder</a></li>';
+}
+echo '</ul>';
+
+require("tpl/general/bottom.php");