diff --git a/cis/private/tools/projektabgabe.php b/cis/private/tools/projektabgabe.php
index 3cc55bc3c..febe60eeb 100644
--- a/cis/private/tools/projektabgabe.php
+++ b/cis/private/tools/projektabgabe.php
@@ -39,7 +39,12 @@ require_once('../../../include/datum.class.php');
require_once('../../../include/mail.class.php');
if (!$db = new basis_db())
$db=false;
-
+$aktion='';
+if(isset($_REQUEST['aktion']))
+{
+ $aktion=$_REQUEST['aktion'];
+}
+$zipfile='';
$stg_kz=(isset($_REQUEST['stg_kz'])?$_REQUEST['stg_kz']:0);
$abgabetyp=(isset($_REQUEST['abgabetyp'])?$_REQUEST['abgabetyp']:'');
if(!is_numeric($stg_kz) && $stg_kz!='')
@@ -50,6 +55,7 @@ $user = get_uid();
$rechte = new benutzerberechtigung();
$rechte->getBerechtigungen($user);
$berechtigung_kurzbz = 'lehre/abgabetool:download';
+
if(isset($_GET['id']) && isset($_GET['uid']))
{
if($rechte->isBerechtigt($berechtigung_kurzbz))
@@ -67,39 +73,42 @@ if(isset($_GET['id']) && isset($_GET['uid']))
{
die("Sie haben hierzu keine Berechtigung!");
}
- exit;
+ exit();
}
-$s = new studiengang();
-$s->loadArray($rechte->getStgKz($berechtigung_kurzbz),'studiengang_kz');
-
-echo'
";
if($stg_kz!='')
{
$s=new studiengang();
@@ -159,8 +168,18 @@ if($stg_kz!='')
$htmlstr .= "".$row->nachname." | \n";
$htmlstr .= "".$row->projekttyp_kurzbz." | \n";
$htmlstr .= "".$row->titel." | \n";
+ if($aktion=='zip')
+ {
+ if($zipfile=='')
+ {
+ $zipfile = $row->paabgabe_id.'_'.$row->uid.'.pdf';
+ }
+ else
+ {
+ $zipfile .= " ".$row->paabgabe_id.'_'.$row->uid.'.pdf';
+ }
+ }
}
-
}
}
else
@@ -168,19 +187,41 @@ if($stg_kz!='')
die("Keine Zugriffsberechtigung!");
}
}
-?>
-
-
-Projektabgabe
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
+if($zipfile=='')
+{
+ ?>
+
+
+ Projektabgabe
+
+
+
+
+
+
+
+ ";
+}
+else
+{
+ //Zip File erstellen
+ chdir(PAABGABE_PATH);
+ $zipausgabe=tempnam("/tmp", "PAA").".zip";
+ exec("zip ".$zipausgabe." ".$zipfile);
+ //echo $zipausgabe;
+ //echo "
zip -r ".$zipausgabe." ".$zipfile;
+ if(file_exists($zipausgabe))
+ {
+ header('Content-Type: application/octet-stream');
+ header('Content-disposition: attachment; filename="Abgabe_'.$s->kuerzel.'.zip"');
+ echo file_get_contents($zipausgabe);
+ unlink($zipausgabe);
+ }
+ else
+ {
+ echo "
Fehler bei der Dateierstellung!";
+ }
+}
+?>
\ No newline at end of file
diff --git a/vilesci/lehre/abgabe_assistenz_details.php b/vilesci/lehre/abgabe_assistenz_details.php
index 8a29f7932..630514a6e 100644
--- a/vilesci/lehre/abgabe_assistenz_details.php
+++ b/vilesci/lehre/abgabe_assistenz_details.php
@@ -571,15 +571,34 @@ if(isset($_POST["enda"]))
abgabedatum = now(),
updatevon = '".$user."',
updateamum = now()
- WHERE paabgabe_id='".$paabgabe_id."' AND insertvon='$user'";
+ WHERE paabgabe_id='".$paabgabe_id."'";
//echo $qry;
if(!$result=$db->db_query($qry))
{
- echo "Terminänderung konnte nicht eingetragen werden!
";
+ echo "Terminbestätigung konnte nicht eingetragen werden!
";
}
else
{
- echo "Endabgabedatum wurde eingetragen.";
+ echo "Endabgabe-Bestätigungsdatum wurde eingetragen.";
+ }
+}
+//Bestätigen einer Benotung - erfolgt in Sekretariat
+if(isset($_POST["note"]))
+{
+ //Abgabetermin mit akt. Datum speichern
+ $qry="UPDATE campus.tbl_paabgabe SET
+ abgabedatum = now(),
+ updatevon = '".$user."',
+ updateamum = now()
+ WHERE paabgabe_id='".$paabgabe_id."'";
+ //echo $qry;
+ if(!$result=$db->db_query($qry))
+ {
+ echo "Terminbestätigung konnte nicht eingetragen werden!
";
+ }
+ else
+ {
+ echo "Benotung-Bestätigungsdatum wurde eingetragen.";
}
}
$studentenname='';
@@ -690,10 +709,14 @@ $htmlstr .= "| fix | Datum | Abgabetyp | Kurzbeschreibun
{
$htmlstr .= " | | | ";
}
- if($row->paabgabetyp_kurzbz=='enda')
+ if($row->paabgabetyp_kurzbz=='enda' && $row->abgabedatum==NULL)
{
$htmlstr .= " | ";
}
+ elseif($row->paabgabetyp_kurzbz=='note' && $row->abgabedatum==NULL)
+ {
+ $htmlstr .= " | ";
+ }
else
{
if(file_exists(PAABGABE_PATH.$row->paabgabe_id.'_'.$uid.'.pdf'))
@@ -777,20 +800,17 @@ function Test($arr=constLeer,$lfd=0,$displayShow=true,$onlyRoot=false )
$tmpAnzeigeStufe.="=>";
while (list( $tmp_key, $tmp_value ) = each($arr) )
-
{
if (!$onlyRoot && (is_array($tmp_value) || is_object($tmp_value)) && count($tmp_value) >0)
{
-
$tmpArrayString.="
$tmpAnzeigeStufe $tmp_key".Test($tmp_value,$lfdnr);
} else if ( (is_array($tmp_value) || is_object($tmp_value)) )
{
-
- $tmpArrayString.="
$tmpAnzeigeStufe $tmp_key -- 0 Records";
+ $tmpArrayString.="
$tmpAnzeigeStufe $tmp_key -- 0 Records";
} else if ($tmp_value!='')