break; } } // Eine beschreibende Spalte schätzen $desc = ''; foreach (array('med_description') as $col) { if ($files->hasValue($col) && $files->getValue($col) != '') { $desc = htmlspecialchars($files->getValue($col)); break; } } if ($desc != '') { $desc .= '<br />'; } // wenn datei fehlt if (!OOMedia::fileExists($file_name)) { $thumbnail = '<img src="media/mime-error.gif" width="44" height="38" alt="file does not exist" />'; } else { $file_ext = substr(strrchr($file_name, '.'), 1); $icon_src = 'media/mime-default.gif'; if (OOMedia::isDocType($file_ext)) { $icon_src = 'media/mime-' . $file_ext . '.gif'; } $thumbnail = '<img src="' . $icon_src . '" width="44" height="38" alt="' . $alt . '" title="' . $alt . '" />'; if (OOMedia::_isImage($file_name) && $thumbs) { $thumbnail = '<img src="' . $REX['HTDOCS_PATH'] . 'files/' . $file_name . '" width="80" alt="' . $alt . '" title="' . $alt . '" />'; if ($image_manager) { $thumbnail = '<img src="' . $REX['HTDOCS_PATH'] . $REX['FRONTEND_FILE'] . '?rex_img_type=rex_mediapool_preview&rex_img_file=' . $encoded_file_name . '" alt="' . $alt . '" title="' . $alt . '" />'; } else { if ($image_resize) { $thumbnail = '<img src="' . $REX['HTDOCS_PATH'] . $REX['FRONTEND_FILE'] . '?rex_resize=80a__' . $encoded_file_name . '" alt="' . $alt . '" title="' . $alt . '" />';