diff --git a/cis/private/profile/dokumente.php b/cis/private/profile/dokumente.php index 68b4d5356..b1f6f9442 100644 --- a/cis/private/profile/dokumente.php +++ b/cis/private/profile/dokumente.php @@ -81,7 +81,7 @@ if(isset($_GET['action']) && $_GET['action']=='download') { if($akte->inhalt!='') { - //Header fuer Bild schicken + //Header fuer Datei schicken header("Content-type: $akte->mimetype"); header('Content-Disposition: attachment; filename="'.$akte->titel.'"'); echo base64_decode($akte->inhalt); @@ -117,9 +117,8 @@ echo ' { $("#t1").tablesorter( { - sortList: [[0,0]], - widgets: ["zebra"], - headers: {1:{sorter: false}} + sortList: [[0,1]], + widgets: ["zebra"] }); }); @@ -230,7 +229,6 @@ if($akte->getArchiv($student_studiengang->person_id, true, true) && count($akte- Erstelldatum Dokument - @@ -243,8 +241,7 @@ if($akte->getArchiv($student_studiengang->person_id, true, true) && count($akte- $pfad = 'dokumente.php?action=download&id='.$row->akte_id.'&uid='.$uid; echo ''; echo ''.$datum_obj->formatDatum($row->erstelltam,'d.m.Y').''; - echo ''.$row->bezeichnung.''; - + echo ' '.$row->bezeichnung.''; echo ''; } diff --git a/content/pdfExport.php b/content/pdfExport.php index 060b11cc9..44e30c7a0 100644 --- a/content/pdfExport.php +++ b/content/pdfExport.php @@ -427,7 +427,7 @@ else else $akte->dokument_kurzbz = 'Zeugnis'; $akte->inhalt = $hex; - $akte->mimetype = 'application/octet-stream'; + $akte->mimetype = 'application/pdf'; $akte->erstelltam = $heute; $akte->gedruckt = true; $akte->titel = $titel.'.pdf';