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/files.php | 36 +++++++++++++++++++++++++++--------- 1 file changed, 27 insertions(+), 9 deletions(-) (limited to 'forum/utils/files.php') 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