No need to specify border
authorJoey Schulze <joey@infodrom.org>
Mon, 17 Dec 2012 11:34:05 +0000 (12:34 +0100)
committerJoey Schulze <joey@infodrom.org>
Mon, 17 Dec 2012 11:34:05 +0000 (12:34 +0100)
masks/documents/files.php

index 16c9574..ee18e94 100644 (file)
@@ -4,26 +4,25 @@ $href = "new Rico.TableColumn.link('ajax/ajax.php?id={0}&source=documents__files
 
 $sql_download = "
 CASE
-WHEN substring(lower(path),length(path)-3+1) = 'png' THEN '<img src=\"images/icons/png.png\" title=\"Download PNG\" border=\"0\">'
-WHEN substring(lower(path),length(path)-3+1) = 'pdf' THEN '<img src=\"images/icons/pdf.gif\" title=\"Download PDF\" border=\"0\">'
-WHEN substring(lower(path),length(path)-3+1) = 'zip' THEN '<img src=\"images/icons/zip.gif\" title=\"Download Zip\" border=\"0\">'
-WHEN substring(lower(path),length(path)-3+1) = 'odt' THEN '<img src=\"images/icons/odt.png\" title=\"Download Odt\" border=\"0\">'
-WHEN substring(lower(path),length(path)-3+1) = 'doc' THEN '<img src=\"images/icons/doc.gif\" title=\"Download Doc\" border=\"0\">'
-WHEN substring(lower(path),length(path)-3+1) = 'xls' THEN '<img src=\"images/icons/xls.png\" title=\"Download spreadsheet\" border=\"0\">'
-WHEN substring(lower(path),length(path)-4+1) = 'xlsx' THEN '<img src=\"images/icons/xls.png\" title=\"Download spreadsheet\" border=\"0\">'
-WHEN substring(lower(path),length(path)-3+1) = 'ods' THEN '<img src=\"images/icons/table.png\" title=\"Download spreadsheet\" border=\"0\">'
-WHEN substring(lower(path),length(path)-6+1) = 'tar.gz' THEN '<img src=\"images/icons/zip.gif\" title=\"Download Tar\" border=\"0\">'
-WHEN substring(lower(path),length(path)-7+1) = 'tar.bz2' THEN '<img src=\"images/icons/zip.gif\" title=\"Download Tar\" border=\"0\">'
-WHEN substring(lower(path),length(path)-3+1) = 'gif' THEN '<img src=\"images/icons/image.gif\" title=\"Download image\" border=\"0\">'
-WHEN substring(lower(path),length(path)-3+1) = 'jpg' THEN '<img src=\"images/icons/image.gif\" title=\"Download image\" border=\"0\">'
-ELSE '<img src=\"images/icons/download.gif\" title=\"download\" border=\"0\">'
+WHEN substring(lower(path),length(path)-3+1) = 'png' THEN '<img src=\"images/icons/png.png\" title=\"Download PNG\">'
+WHEN substring(lower(path),length(path)-3+1) = 'pdf' THEN '<img src=\"images/icons/pdf.gif\" title=\"Download PDF\">'
+WHEN substring(lower(path),length(path)-3+1) = 'zip' THEN '<img src=\"images/icons/zip.gif\" title=\"Download Zip\">'
+WHEN substring(lower(path),length(path)-3+1) = 'odt' THEN '<img src=\"images/icons/odt.png\" title=\"Download Odt\">'
+WHEN substring(lower(path),length(path)-3+1) = 'doc' THEN '<img src=\"images/icons/doc.gif\" title=\"Download Doc\">'
+WHEN substring(lower(path),length(path)-3+1) = 'xls' THEN '<img src=\"images/icons/xls.png\" title=\"Download spreadsheet\">'
+WHEN substring(lower(path),length(path)-4+1) = 'xlsx' THEN '<img src=\"images/icons/xls.png\" title=\"Download spreadsheet\">'
+WHEN substring(lower(path),length(path)-3+1) = 'ods' THEN '<img src=\"images/icons/table.png\" title=\"Download spreadsheet\">'
+WHEN substring(lower(path),length(path)-6+1) = 'tar.gz' THEN '<img src=\"images/icons/zip.gif\" title=\"Download Tar\">'
+WHEN substring(lower(path),length(path)-7+1) = 'tar.bz2' THEN '<img src=\"images/icons/zip.gif\" title=\"Download Tar\">'
+WHEN substring(lower(path),length(path)-3+1) = 'gif' THEN '<img src=\"images/icons/image.gif\" title=\"Download image\">'
+WHEN substring(lower(path),length(path)-3+1) = 'jpg' THEN '<img src=\"images/icons/image.gif\" title=\"Download image\">'
+ELSE '<img src=\"images/icons/download.gif\" title=\"download\">'
 END
 ";
 
 $mask = array(
              'table' => 'doc_files',
              'title' => 'Dokumente',
-#            'rows' => 30,
              'list' => array(
                              'id' => array(
                                            'name' => 'ID',