Archivierte Dokumente werden ab sofort mit dem Mimetype application/pdf

archiviert
This commit is contained in:
Andreas Österreicher
2018-03-20 10:54:27 +01:00
parent 89af37bc10
commit 10cb2129a8
2 changed files with 5 additions and 8 deletions
+4 -7
View File
@@ -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-
<tr>
<th>Erstelldatum</th>
<th>Dokument</th>
</tr>
</thead>
<tbody>
@@ -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 '<tr>';
echo '<td>'.$datum_obj->formatDatum($row->erstelltam,'d.m.Y').'</td>';
echo '<td><a href="'.$pfad.'">'.$row->bezeichnung.'</a></td>';
echo '<td><a href="'.$pfad.'"><img src="../../../skin/images/pdfpic.gif" /> '.$row->bezeichnung.'</a></td>';
echo '</tr>';
}
+1 -1
View File
@@ -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';