From d0060968b77c39bdf8abffb071c971c166b59edb Mon Sep 17 00:00:00 2001 From: Nicolas BERNSTEIN Date: Sat, 17 Sep 2011 16:48:29 +0200 Subject: First commit. --- tpl/image/index.php | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 tpl/image/index.php (limited to 'tpl/image/index.php') diff --git a/tpl/image/index.php b/tpl/image/index.php new file mode 100644 index 0000000..0f76abe --- /dev/null +++ b/tpl/image/index.php @@ -0,0 +1,34 @@ +Images you have uploaded'; + +if (count($images) == 0) { + echo '
You have uploaded no images yet.
'; +} else { +echo ''; + foreach ($images as $img) { + $min = $baseurl . $img['id'] . "-min." . $img['extension']; + $imgf = $baseurl . $img['id'] . "." . $img['extension']; + echo ''; + echo ''; + } + echo '
PreviewFiles
Miniature: ' . $min . '
'; + echo 'Image: ' . $imgf . ''; + if ($can_delete) echo '
Delete this image'; + echo '
'; +} + +if ($can_upload) { +?> + +
+

Upload an image

+
+A px preview will be created.

+
+
+