From 80e0f88b56ca7e306d415604c608d8bc09496e21 Mon Sep 17 00:00:00 2001 From: Alex AUVOLAT Date: Thu, 21 Jun 2012 17:12:06 +0200 Subject: Changes. But minor. Mostly usability changes. --- tpl/file/folder.php | 22 +++++++++++++++++++--- tpl/file/index.php | 10 +++++----- tpl/file/upload-ok.php | 11 ++++++++--- 3 files changed, 32 insertions(+), 11 deletions(-) (limited to 'tpl/file') diff --git a/tpl/file/folder.php b/tpl/file/folder.php index d7ebd73..61b4ed3 100644 --- a/tpl/file/folder.php +++ b/tpl/file/folder.php @@ -12,7 +12,7 @@ if (count($files) == 0) { echo '
This folder has no files.
'; } else { echo ''; - echo ''; + echo '
InfoDate
'; foreach ($files as $fl) { $min = $baseurl . $fl['id'] . "-min." . $fl['extension']; $flf = $baseurl . $fl['id'] . "." . $fl['extension']; @@ -24,17 +24,32 @@ if (count($files) == 0) { } echo ''; echo ''; - echo ''; } echo '
InfoDate
' . $fl['name'] . ''; + echo '
MD: ' . (has_mini($fl['extension']) ? '!' : '') . '['.$fl['name'].']('.$flf.')'; echo '
' . $fl['comment_html'] . '
'; echo '
' . $fl['upl_date'] . '
'; + echo '
' . $fl['upl_date']; if ($can_edit) echo '
delete'; - if ($can_edit) echo '
edit info'; + if ($can_edit) echo ' | edit'; echo '
'; } echo '
'; + +if ($is_owner) { + ?> +

Upload a file

+
+If you upload an image, a px preview will be created.

+Title :
+
+ +
+

+ Your folders'; } else { @@ -49,6 +64,7 @@ foreach ($folders as $f) { } } if ($is_owner) { + echo '
  • [files in no folder]
  • '; echo '
  • [+] New folder
  • '; } echo ''; diff --git a/tpl/file/index.php b/tpl/file/index.php index dc8cb52..abc340a 100644 --- a/tpl/file/index.php +++ b/tpl/file/index.php @@ -2,11 +2,11 @@ require("tpl/general/top.php"); if (count($files) == 0) { - echo '
    You have uploaded no files yet.
    '; + echo '

    You have no files that are uploaded and not put in a folder.

    '; } else { - echo '

    You have uploaded ' . count($files) .' files.

    '; + echo '

    You have ' . count($files) .' files uploaded in no folder. Select a folder to view the files it contains.

    '; echo ''; - echo ''; + echo '
    InfoDate
    '; foreach ($files as $fl) { $min = $baseurl . $fl['id'] . "-min." . $fl['extension']; $flf = $baseurl . $fl['id'] . "." . $fl['extension']; @@ -26,9 +26,9 @@ if (count($files) == 0) { /*echo 'Miniature:' . $min . '
    '; echo 'Image:' . $flf . '
    '; */ echo ''; - echo ''; } echo '
    InfoDate
    ' . $fl['upl_date'] . '
    '; + echo '
    ' . $fl['upl_date'] . ''; if ($can_delete) echo '
    delete'; - if ($can_rename) echo '
    edit info'; + if ($can_rename) echo ' | edit'; echo '
    '; diff --git a/tpl/file/upload-ok.php b/tpl/file/upload-ok.php index a0edee1..1d6559f 100644 --- a/tpl/file/upload-ok.php +++ b/tpl/file/upload-ok.php @@ -10,10 +10,15 @@ $imgurl = $baseurl . $id . "." . $type; Markdown code : ]()

    - Back to upload form + back to upload form = $apps['file']['index']) - echo ' - back to list of uploaded files'; + if ($user['priv'] >= $apps['file']['index']) { + echo ' | back to list of uploaded files'; + if ($folder != 0) { + echo ' | go to folder'; + } + echo ' | edit file info'; + } ?>