This commit is contained in:
Gerald Raab
2008-02-07 10:25:29 +00:00
parent 3f4a47d299
commit 4344117935
3 changed files with 23 additions and 6 deletions
+4 -1
View File
@@ -221,7 +221,10 @@
echo "Upload</a>";
echo '&nbsp;&nbsp;&nbsp;<a class="Item" href="semdownhlp.php" >';
echo 'Vorlage';
echo 'Vorlage [hml]';
echo '</a>';
echo '&nbsp;<a class="Item" href="semdownhlp.php?format=doc" >';
echo '[doc]';
echo '</a>';
}
+11 -3
View File
@@ -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);
+8 -2
View File
@@ -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>";
}
}
}