diff options
Diffstat (limited to 'tpl/image/index.php')
-rw-r--r-- | tpl/image/index.php | 26 |
1 files changed, 21 insertions, 5 deletions
diff --git a/tpl/image/index.php b/tpl/image/index.php index 4f9db8e..a89d024 100644 --- a/tpl/image/index.php +++ b/tpl/image/index.php @@ -11,13 +11,18 @@ if (count($images) == 0) { $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><br /><br />'; - echo '<strong>Miniature:</strong> <a href="' . $min . '">' . $min . '</a><br />'; - echo '<strong>Image:</strong> <a href="' . $imgf . '">' . $imgf . '</a><br />'; - echo '<strong>Markdown:</strong> <code>!['.$img['name'].']('.$imgf.')</code></td>'; + echo '<td><strong>' . $img['name'] . '</strong>'; + if ($img['folder_id'] != 0) { + echo ' (in folder: <a href="folder-image-' . $img['folder_id'] . '">' . $img['folder_name'] . '</a>)'; + } + echo '<br /><strong>MD:</strong> <code>!['.$img['name'].']('.$imgf.')</code>'; + 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_delete) echo '<br /><a href="delete-image-' . $img['id'] . '">delete</a>'; - if ($can_rename) echo '<br /><a href="rename-image-' . $img['id'] . '">rename</a>'; + if ($can_rename) echo '<br /><a href="editinfo-image-' . $img['id'] . '">edit info</a>'; echo '</td></tr>'; } echo '</table>'; @@ -33,6 +38,17 @@ A <?php echo $miniature_width; ?>px preview will be created.<br /><br /> Title : <input type="text" name="name" style="width: 200px;" ><br /> <input type="file" name="image" /><br /> <input type="submit" value="Upload" /></form> + +<br /><br /> +<h1>Your folders</h1> +<ul> +<?php +foreach ($folders as $f) { + echo '<li><a href="folder-image-' . $f['id'] . '">' . $f['name'] . '</a></li>'; +} +?> +<li><a class="tool_link" href="newfld-image">[+] New folder</a></li> +</ul> <?php } |