';
-
-$strfolder = get_string('folder');
-$strfile = get_string('file');
-$strdownload = get_string('download');
-$strdelete = get_string('delete');
-
-if ($parent) {
- echo '
';
-}
-
-foreach ($files as $file) {
- $filename = $file->get_filename();
- $filenameurl = rawurlencode($filename);
- $filepath = $file->get_filepath();
- $filesize = $file->get_filesize();
- $filesize = $filesize ? display_size($filesize) : '';
-
- $mimetype = $file->get_mimetype();
-
- if ($file->is_directory()) {
- if ($subdirs) {
- $dirname = explode('/', trim($filepath, '/'));
- $dirname = array_pop($dirname);
- echo '
';
- }
-
- } else {
- $viewurl = file_encode_url("$CFG->wwwroot/draftfile.php", "/$contextid/user_draft/$itemid".$filepath.$filename, false, false);
- echo '
';
- }
-}
-
-echo '
';
-
-if ($maxbytes == 0 or $maxbytes > $totalbytes) {
- echo '