mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-06-05 14:19:27 +00:00
This commit is contained in:
@@ -221,7 +221,10 @@
|
||||
echo "Upload</a>";
|
||||
|
||||
echo ' <a class="Item" href="semdownhlp.php" >';
|
||||
echo 'Vorlage';
|
||||
echo 'Vorlage [hml]';
|
||||
echo '</a>';
|
||||
echo ' <a class="Item" href="semdownhlp.php?format=doc" >';
|
||||
echo '[doc]';
|
||||
echo '</a>';
|
||||
}
|
||||
|
||||
|
||||
@@ -1,12 +1,20 @@
|
||||
<?php
|
||||
// Dieses Script verhindert, dass das Dokument inline geoeffnet wird.
|
||||
// Es erschein automatisch das Download/Speichern Fenster
|
||||
$filename = "../../cisdocs/muster_semesterplan_index.html";
|
||||
// Es erschein automatisch das Download/Speichern Fenster
|
||||
if (isset($_GET["format"]) && $_GET["format"] == "doc"){
|
||||
$filename= "../../cisdocs/muster_semesterplan.doc";
|
||||
$format = "doc";
|
||||
}
|
||||
else{
|
||||
$filename = "../../cisdocs/muster_semesterplan_index.html";
|
||||
$format = "html";
|
||||
}
|
||||
$fp = fopen($filename, "rb");
|
||||
if ($fp)
|
||||
{
|
||||
header("Content-Type: application/html");
|
||||
header("Content-Disposition: attachment; filename=\"Semesterplan.html\"");
|
||||
|
||||
header("Content-Disposition: attachment; filename=\"Semesterplan.".$format."\"");
|
||||
$buffer = fread ($fp, filesize ($filename));
|
||||
echo $buffer;
|
||||
fclose($fp);
|
||||
|
||||
@@ -85,8 +85,14 @@
|
||||
foreach ($files as $f)
|
||||
{
|
||||
if (is_dir($dir.$f) && $f != "." && $f != "..")
|
||||
{
|
||||
if (!key_exists($f, $lv_arr[$row->studiengang_kz][$i]))
|
||||
{
|
||||
if ($row->studiengang_kz == 999)
|
||||
$text .= $f."<br>";
|
||||
else if (!key_exists($f, $lv_arr[$row->studiengang_kz][$i]))
|
||||
{
|
||||
//echo $row->studiengang_kz."/".$i."<br>";
|
||||
$text .= $f."<br>";
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user