From 42032d4bd8dd0c9772afd6ef7c1b09104cb22e8b Mon Sep 17 00:00:00 2001 From: deva Date: Sun, 12 Oct 2008 19:24:52 +0000 Subject: Some layout (css) stuff on the filehandler. --- forum/utils/filehandler.php | 2 +- forum/utils/files.php | 36 +++++++++++++++++++++++++++--------- 2 files changed, 28 insertions(+), 10 deletions(-) diff --git a/forum/utils/filehandler.php b/forum/utils/filehandler.php index dfe0c80..af1c305 100644 --- a/forum/utils/filehandler.php +++ b/forum/utils/filehandler.php @@ -22,7 +22,7 @@ $files->show(); ?> -
+

File:

diff --git a/forum/utils/files.php b/forum/utils/files.php index 57dc42d..62b2b52 100644 --- a/forum/utils/files.php +++ b/forum/utils/files.php @@ -18,17 +18,18 @@ class File { public function show() { global $PERMSTORE, $current_user, $users; - echo "
\n"; + echo "
\n"; if($current_user->uid == 0) { - echo " fid . "\">Delete\n"; + echo " fid . "\">X\n"; } - echo "
fid . "\"
\n"; - echo "
Filename: link() . "\">" . $this->name . " (" . $this->mimetype. ")
\n"; - echo "
Uploaded by: " . $users->getUser($this->uid)->name . "
\n"; - echo "
" . date("c", $this->date) . "
\n"; - echo "
Size: " . ceil(filesize($PERMSTORE . "/" . $this->fid) / 1024) . "kb
\n"; - echo "
Use this command to insert the file: {{" . $this->fid . "}}
\n"; - echo "
\n"; + echo " \n"; + echo "
{{" . $this->fid . "}}
\n"; + echo " \n"; + echo "
" . $this->mimetype. "
\n"; + echo "
" . $users->getUser($this->uid)->name . "
\n"; + echo "
" . ceil(filesize($PERMSTORE . "/" . $this->fid) / 1024) . "kb
\n"; + echo "
" . date("M jS Y - G:i", $this->date) . "
\n"; + echo "
\n"; } public function File($fid, $uid, $name, $date, $mimetype) @@ -81,9 +82,26 @@ class Files { public function show() { + global $current_user; + echo "
\n"; + echo "
\n"; + echo "
\n"; + if($current_user->uid == 0) { + echo "
\n"; + } + echo "
Preview
\n"; + echo "
Command
\n"; + echo "
Filename
\n"; + echo "
Mimetype
\n"; + echo "
User
\n"; + echo "
Size
\n"; + echo "
Date
\n"; + echo "
\n"; + echo "
\n"; foreach($this->files as $file) { $file->show(); } + echo "
\n"; } public function getFile($fid) -- cgit v1.2.3