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 ++++++++++++++++++++++++++++++++++ tpl/image/upload-ok.php | 12 ++++++++++++ tpl/image/upload.php | 15 +++++++++++++++ 3 files changed, 61 insertions(+) create mode 100644 tpl/image/index.php create mode 100644 tpl/image/upload-ok.php create mode 100644 tpl/image/upload.php (limited to 'tpl/image') 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.

+
+
+ + Preview :
+ Image :
+ "Image file : ", "type" => "file", "name" => "image") + ); +$validate = "Upload"; + +require("tpl/general/form.php"); + + -- cgit v1.2.3