mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-24 10:22:18 +00:00
Abgabetool
- Studentenansicht - Ansicht für alte Arbeiten für Lektoren - Legende für Farbcodes
This commit is contained in:
@@ -42,6 +42,7 @@
|
||||
$getuid=get_uid();
|
||||
$htmlstr = "";
|
||||
|
||||
$showall=isset($_GET['showall']);
|
||||
|
||||
$sql_query = "SELECT * FROM (SELECT DISTINCT ON(tbl_projektarbeit.projektarbeit_id) * FROM lehre.tbl_projektarbeit LEFT JOIN lehre.tbl_projektbetreuer using(projektarbeit_id)
|
||||
LEFT JOIN public.tbl_benutzer on(uid=student_uid)
|
||||
@@ -54,8 +55,7 @@
|
||||
AND tbl_projektbetreuer.person_id IN (SELECT person_id FROM public.tbl_benutzer
|
||||
WHERE public.tbl_benutzer.person_id=lehre.tbl_projektbetreuer.person_id
|
||||
AND public.tbl_benutzer.uid='$getuid')
|
||||
AND public.tbl_benutzer.aktiv
|
||||
AND lehre.tbl_projektarbeit.note IS NULL
|
||||
AND public.tbl_benutzer.aktiv ".($showall?'':' AND lehre.tbl_projektarbeit.note IS NULL ')."
|
||||
AND (betreuerart_kurzbz='Betreuer' OR betreuerart_kurzbz='Begutachter' OR betreuerart_kurzbz='Erstbegutachter'
|
||||
OR betreuerart_kurzbz='Zweitbegutachter' OR betreuerart_kurzbz='Erstbetreuer')
|
||||
ORDER BY tbl_projektarbeit.projektarbeit_id, betreuerart_kurzbz desc) as xy
|
||||
@@ -69,7 +69,7 @@ else
|
||||
{
|
||||
//$htmlstr .= "<form name='formular'><input type='hidden' name='check' value=''></form>";
|
||||
$htmlstr .= "<form name='multitermin' action='abgabe_lektor_multitermin.php' title='Serientermin' target='al_detail' method='POST'>";
|
||||
$htmlstr .= "<table id='t1' class='liste table-autosort:2 table-stripeclass:alternate table-autostripe'>\n";
|
||||
$htmlstr .= "<table id='t1' class='liste table-autosort:4 table-stripeclass:alternate table-autostripe'>\n";
|
||||
$htmlstr .= "<thead><tr class='liste'>\n";
|
||||
$htmlstr .= "<th></th><th class='table-sortable:default'>UID / Personenkennz.</th>
|
||||
<th>Email</th>
|
||||
@@ -84,7 +84,7 @@ else
|
||||
$i = 0;
|
||||
while($row=$db->db_fetch_object($erg))
|
||||
{
|
||||
$htmlstr .= " <tr class='liste".($i%2)."'>\n";
|
||||
$htmlstr .= " <tr>\n"; //class='liste".($i%2)."'
|
||||
$htmlstr .= " <td><input type='checkbox' name='mc_".$row->projektarbeit_id."' ></td>";
|
||||
$htmlstr .= " <td><a href='abgabe_lektor_details.php?uid=".$row->uid."&projektarbeit_id=".$row->projektarbeit_id."&titel=".$row->titel."&betreuerart=".$row->betreuerart_kurzbz."' target='al_detail' title='Details anzeigen'>".$row->uid."</a> / ".$row->matrikelnr."</td>\n";
|
||||
$htmlstr .= " <td align= center><a href='mailto:$row->uid@".DOMAIN."?subject=".$row->projekttyp_kurzbz."arbeitsbetreuung'><img src='../../../skin/images/email.png' alt='email' title='Email an Studenten'></a></td>";
|
||||
@@ -123,11 +123,14 @@ function confdel()
|
||||
|
||||
<body class="background_main">
|
||||
<?php
|
||||
echo "<h2><a href='../../cisdocs/Projektarbeitsabgabe_FHTW_Anleitung_L.pdf' target='_blank'><img src='../../../skin/images/information.png' alt='Anleitung' title='Anleitung BaDa-Abgabe' border=0></a> Bachelor-/Diplomarbeitsbetreuungen ($getuid)</h2>";
|
||||
echo "<h2>Bachelor-/Diplomarbeitsbetreuungen ($getuid) <div style='float:right'><a href='../../private/info/handbuecher/Projektarbeitsabgabe_FHTW_Anleitung_L.pdf' target='_blank'><img src='../../../skin/images/information.png' alt='Anleitung' title='Anleitung BaDa-Abgabe' border=0> Handbuch</a></div></h2>";
|
||||
|
||||
|
||||
echo $htmlstr;
|
||||
echo $htmlstr;
|
||||
|
||||
echo '<a href="'.$_SERVER['PHP_SELF'].'?showall">alle betreuten Arbeiten anzeigen</a>';
|
||||
?>
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@@ -336,7 +336,7 @@ else
|
||||
{
|
||||
$htmlstr .= "<td> </td></tr>";
|
||||
}
|
||||
$htmlstr .= "<tr><td style='font-size:16px'>Titel: <b>".$titel."<b><br>";
|
||||
$htmlstr .= "<tr><td style='font-size:16px'>Titel: <b>".$titel."<b></td><td></td><td valign=\"right\"><a href='abgabe_student_frameset.php?uid=$uid' target='_blank'>Studentenansicht</a></td>";
|
||||
$htmlstr .= "</tr>\n";
|
||||
$htmlstr .= "</table>\n";
|
||||
$htmlstr .= "<br><b>Abgabetermine:</b>\n";
|
||||
|
||||
@@ -25,20 +25,17 @@
|
||||
* abgabe_lektor ist die Lektorenmaske des Abgabesystems
|
||||
* fuer Diplom- und Bachelorarbeiten
|
||||
*******************************************************************************************************/
|
||||
require_once('../../../config/cis.config.inc.php');
|
||||
require_once('../../../include/functions.inc.php');
|
||||
require_once('../../../include/studiengang.class.php');
|
||||
require_once('../../../include/student.class.php');
|
||||
require_once('../../../include/datum.class.php');
|
||||
require_once('../../../include/mail.class.php');
|
||||
require_once('../../../include/benutzerberechtigung.class.php');
|
||||
|
||||
if (!$db = new basis_db())
|
||||
die('Fehler beim Herstellen der Datenbankverbindung');
|
||||
|
||||
require_once('../../../config/cis.config.inc.php');
|
||||
// ------------------------------------------------------------------------------------------
|
||||
// Datenbankanbindung
|
||||
// ------------------------------------------------------------------------------------------
|
||||
require_once('../../../include/functions.inc.php');
|
||||
require_once('../../../include/studiengang.class.php');
|
||||
require_once('../../../include/datum.class.php');
|
||||
require_once('../../../include/mail.class.php');
|
||||
require_once('../../../include/benutzerberechtigung.class.php');
|
||||
if (!$db = new basis_db())
|
||||
die('Fehler beim Herstellen der Datenbankverbindung');
|
||||
|
||||
//require_once('../../../include/Excel/excel.php');
|
||||
if(!isset($_POST['uid']))
|
||||
{
|
||||
$uid = (isset($_GET['uid'])?$_GET['uid']:'-1');
|
||||
@@ -87,11 +84,65 @@ else
|
||||
//$user='if06b172';
|
||||
//$user='ti06m114';
|
||||
$user = get_uid();
|
||||
if($uid=='-1' || $uid!=$user)
|
||||
if($uid=='-1')
|
||||
{
|
||||
exit;
|
||||
}
|
||||
}
|
||||
|
||||
echo '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||||
<html>
|
||||
<head>
|
||||
<title>PA-Abgabe</title>
|
||||
<link rel="stylesheet" href="../../../skin/vilesci.css" type="text/css">
|
||||
<link rel="stylesheet" href="../../../include/js/tablesort/table.css" type="text/css">
|
||||
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
|
||||
<script src="../../../include/js/tablesort/table.js" type="text/javascript"></script>
|
||||
</head>
|
||||
<body class="Background_main" style="background-color:#eeeeee;">';
|
||||
if($uid!=$user)
|
||||
{
|
||||
$student = new student();
|
||||
if(!$student->load($uid))
|
||||
die('Student ist ungueltig');
|
||||
|
||||
$stg_obj = new studiengang();
|
||||
if(!$stg_obj->load($student->studiengang_kz))
|
||||
die('Studiengang des Studenten ist ungueltig');
|
||||
|
||||
//Studentenansicht
|
||||
//Rechte Pruefen
|
||||
$allowed=false;
|
||||
|
||||
//Berechtigung ueber das Berechtigungssystem
|
||||
$rechte = new benutzerberechtigung();
|
||||
$rechte->getBerechtigungen($user);
|
||||
|
||||
if($rechte->isBerechtigt('lehre/abgabetool',$stg_obj->oe_kurzbz, 's'))
|
||||
$allowed=true;
|
||||
|
||||
//oder Lektor mit Betreuung dieses Studenten
|
||||
$qry = "SELECT 1
|
||||
FROM
|
||||
lehre.tbl_projektarbeit
|
||||
JOIN lehre.tbl_projektbetreuer USING(projektarbeit_id)
|
||||
JOIN campus.vw_benutzer on(vw_benutzer.person_id=tbl_projektbetreuer.person_id)
|
||||
WHERE
|
||||
tbl_projektarbeit.student_uid='".addslashes($uid)."' AND
|
||||
vw_benutzer.uid='".addslashes($user)."';";
|
||||
|
||||
if($result = $db->db_query($qry))
|
||||
{
|
||||
if($db->db_num_rows($result)>0)
|
||||
{
|
||||
$allowed=true;
|
||||
}
|
||||
}
|
||||
|
||||
if(!$allowed)
|
||||
{
|
||||
die('Sie haben keine Berechtigung zum Anzeigen der Studentenansicht');
|
||||
}
|
||||
}
|
||||
$datum_obj = new datum();
|
||||
$error='';
|
||||
$neu = (isset($_GET['neu'])?true:false);
|
||||
@@ -124,7 +175,7 @@ if($command=='add')
|
||||
if(!$error)
|
||||
{
|
||||
$qry_upd="UPDATE lehre.tbl_projektarbeit SET
|
||||
seitenanzahl = '".$seitenanzahl."',
|
||||
seitenanzahl = '".addslashes($seitenanzahl)."',
|
||||
abgabedatum = now(),
|
||||
sprache = '".addslashes($sprache)."',
|
||||
kontrollschlagwoerter = '".addslashes($kontrollschlagwoerter)."',
|
||||
@@ -132,14 +183,14 @@ if($command=='add')
|
||||
schlagwoerter = '".addslashes($schlagwoerter)."',
|
||||
abstract = '".addslashes($abstract)."',
|
||||
abstract_en = '".addslashes($abstract_en)."'
|
||||
WHERE projektarbeit_id = '".$projektarbeit_id."'";
|
||||
WHERE projektarbeit_id = '".addslashes($projektarbeit_id)."'";
|
||||
if($result=$db->db_query($qry_upd))
|
||||
{
|
||||
$qry="UPDATE campus.tbl_paabgabe SET
|
||||
abgabedatum = now(),
|
||||
updatevon = '".$user."',
|
||||
updatevon = '".addslashes($user)."',
|
||||
updateamum = now()
|
||||
WHERE paabgabe_id='".$paabgabe_id."'";
|
||||
WHERE paabgabe_id='".addslashes($paabgabe_id)."'";
|
||||
$result=$db->db_query($qry);
|
||||
$command="update";
|
||||
}
|
||||
@@ -165,17 +216,18 @@ if($command=="update" && $error!=true)
|
||||
if($paabgabetyp_kurzbz!='end')
|
||||
{
|
||||
//"normaler" Upload
|
||||
move_uploaded_file($_FILES['datei']['tmp_name'], PAABGABE_PATH.$paabgabe_id.'_'.$user.'.pdf');
|
||||
if(file_exists(PAABGABE_PATH.$paabgabe_id.'_'.$user.'.pdf'))
|
||||
move_uploaded_file($_FILES['datei']['tmp_name'], PAABGABE_PATH.$paabgabe_id.'_'.$uid.'.pdf');
|
||||
if(file_exists(PAABGABE_PATH.$paabgabe_id.'_'.$uid.'.pdf'))
|
||||
{
|
||||
exec('chmod 640 "'.PAABGABE_PATH.$paabgabe_id.'_'.$user.'.pdf'.'"');
|
||||
exec('chmod 640 "'.PAABGABE_PATH.$paabgabe_id.'_'.$uid.'.pdf'.'"');
|
||||
|
||||
$qry="UPDATE campus.tbl_paabgabe SET
|
||||
abgabedatum = now(),
|
||||
updatevon = '".$user."',
|
||||
updatevon = '".addslashes($user)."',
|
||||
updateamum = now()
|
||||
WHERE paabgabe_id='".$paabgabe_id."'";
|
||||
WHERE paabgabe_id='".addslashes($paabgabe_id)."'";
|
||||
$result=$db->db_query($qry);
|
||||
echo 'Die Datei wurde erfolgreich hochgeladen';
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -188,9 +240,9 @@ if($command=="update" && $error!=true)
|
||||
$command='add';
|
||||
if(!$error)
|
||||
{
|
||||
move_uploaded_file($_FILES['datei']['tmp_name'], PAABGABE_PATH.$paabgabe_id.'_'.$user.'.pdf');
|
||||
move_uploaded_file($_FILES['datei']['tmp_name'], PAABGABE_PATH.$paabgabe_id.'_'.$uid.'.pdf');
|
||||
}
|
||||
if(file_exists(PAABGABE_PATH.$paabgabe_id.'_'.$user.'.pdf'))
|
||||
if(file_exists(PAABGABE_PATH.$paabgabe_id.'_'.$uid.'.pdf'))
|
||||
{
|
||||
/*$qry="UPDATE campus.tbl_paabgabe SET
|
||||
abgabedatum = now(),
|
||||
@@ -199,18 +251,7 @@ if($command=="update" && $error!=true)
|
||||
WHERE paabgabe_id='".$paabgabe_id."'";
|
||||
$result=$db->db_query($qry);*/
|
||||
|
||||
echo '
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||||
<html>
|
||||
<head>
|
||||
<title>PA-Abgabe</title>
|
||||
<link rel="stylesheet" href="../../../skin/vilesci.css" type="text/css">
|
||||
<link rel="stylesheet" href="../../../include/js/tablesort/table.css" type="text/css">
|
||||
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
|
||||
<script src="../../../include/js/tablesort/table.js" type="text/javascript"></script>
|
||||
</head>
|
||||
<body class="Background_main" style="background-color:#eeeeee;">
|
||||
<h3>Abgabe Studentenbereich - Zusätzliche Daten für die Abgabe</h3>';
|
||||
echo '<h3>Abgabe Studentenbereich - Zusätzliche Daten für die Abgabe</h3>';
|
||||
$qry_zd="SELECT * FROM lehre.tbl_projektarbeit WHERE projektarbeit_id='".$projektarbeit_id."'";
|
||||
$result_zd=@$db->db_query($qry_zd);
|
||||
$row_zd=@$db->db_fetch_object($result_zd);
|
||||
@@ -334,18 +375,7 @@ if($uid==-1||$projektarbeit_id==-1||$titel==-1)
|
||||
|
||||
if($command!="add")
|
||||
{
|
||||
echo '
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||||
<html>
|
||||
<head>
|
||||
<title>PA-Abgabe</title>
|
||||
<link rel="stylesheet" href="../../../skin/vilesci.css" type="text/css">
|
||||
<link rel="stylesheet" href="../../../include/js/tablesort/table.css" type="text/css">
|
||||
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
|
||||
<script src="../../../include/js/tablesort/table.js" type="text/javascript"></script>
|
||||
</head>
|
||||
<body class="Background_main" style="background-color:#eeeeee;">
|
||||
<h3>Abgabe Studentenbereich</h3>';
|
||||
echo '<h3>Abgabe Studentenbereich</h3>';
|
||||
|
||||
//Einlesen der Termine
|
||||
$qry="";
|
||||
|
||||
@@ -1,20 +0,0 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Frameset//EN">
|
||||
<html lang="de_AT">
|
||||
|
||||
<head>
|
||||
<title>Bachelor-/Diplomarbeitsabgabe - Student</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
</head>
|
||||
|
||||
<frameset rows="400,*">
|
||||
<frame src="abgabe_student.php" id="uebersicht" name="uebersicht" frameborder="0" />
|
||||
<frame src="abgabe_student_details.php" id="as_detail" name="as_detail" frameborder="0" />
|
||||
<noframes>
|
||||
<body bgcolor="#FFFFFF">
|
||||
This application works only with a frames-enabled browser.<br />
|
||||
<a href="main.php">Use without frames</a>
|
||||
</body>
|
||||
</noframes>
|
||||
</frameset>
|
||||
|
||||
</html>
|
||||
@@ -0,0 +1,48 @@
|
||||
<?php
|
||||
/* Copyright (C) 2010 FH Technikum Wien
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as
|
||||
* published by the Free Software Foundation; either version 2 of the
|
||||
* License, or (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
|
||||
*
|
||||
* Authors: Christian Paminger <christian.paminger@technikum-wien.at>,
|
||||
* Andreas Oesterreicher <andreas.oesterreicher@technikum-wien.at> and
|
||||
* Karl Burkhart <karl.burkhart@technikum-wien.at>.
|
||||
*/
|
||||
if(isset($_GET['uid']))
|
||||
$uid = $_GET['uid'];
|
||||
else
|
||||
$uid = '';
|
||||
?>
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Frameset//EN">
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<title>Bachelor-/Diplomarbeitsabgabe - Student</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
</head>
|
||||
|
||||
<frameset rows="200,*">
|
||||
<?php
|
||||
echo '<frame src="abgabe_student.php'.($uid!=''?'?uid='.$uid:'').'" id="uebersicht" name="uebersicht" frameborder="0" />';
|
||||
echo '<frame src="abgabe_student_details.php'.($uid!=''?'?uid='.$uid:'').'" id="as_detail" name="as_detail" frameborder="0" />';
|
||||
?>
|
||||
<noframes>
|
||||
<body bgcolor="#FFFFFF">
|
||||
This application works only with a frames-enabled browser.<br />
|
||||
<a href="main.php">Use without frames</a>
|
||||
</body>
|
||||
</noframes>
|
||||
</frameset>
|
||||
|
||||
</html>
|
||||
Reference in New Issue
Block a user