mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-25 08:34:29 +00:00
Removed old Scripts
This commit is contained in:
@@ -20,12 +20,23 @@
|
|||||||
* Rudolf Hangl < [email protected] >
|
* Rudolf Hangl < [email protected] >
|
||||||
* Gerald Simane-Sequens < [email protected] >
|
* Gerald Simane-Sequens < [email protected] >
|
||||||
*/
|
*/
|
||||||
require_once('../../../config/vilesci.config.inc.php');
|
require_once('../../../config/vilesci.config.inc.php');
|
||||||
require_once('../../../include/basis_db.class.php');
|
require_once('../../../include/functions.inc.php');
|
||||||
if (!$db = new basis_db())
|
require_once('../../../include/benutzerberechtigung.class.php');
|
||||||
die('Es konnte keine Verbindung zum Server aufgebaut werden.');
|
require_once('../../../include/basis_db.class.php');
|
||||||
|
|
||||||
|
$uid = get_uid();
|
||||||
|
|
||||||
|
$rechte = new benutzerberechtigung();
|
||||||
|
$rechte->getBerechtigungen($uid);
|
||||||
|
|
||||||
|
if(!$rechte->isBerechtigt('lehre/lvplan',null,'suid'))
|
||||||
|
die('Sie haben keine Berechtigung für diese Seite');
|
||||||
|
|
||||||
|
if (!$db = new basis_db())
|
||||||
|
die('Es konnte keine Verbindung zum Server aufgebaut werden.');
|
||||||
|
|
||||||
$cfgBorder=1;
|
$cfgBorder=0;
|
||||||
$cfgBgcolorOne='liste0';
|
$cfgBgcolorOne='liste0';
|
||||||
$cfgBgcolorTwo='liste1';
|
$cfgBgcolorTwo='liste1';
|
||||||
?>
|
?>
|
||||||
@@ -63,7 +74,7 @@ $cfgBgcolorTwo='liste1';
|
|||||||
echo "<tr class='liste".($j%2)."'>";
|
echo "<tr class='liste".($j%2)."'>";
|
||||||
for ($i=0; $i<$num_fields; $i++)
|
for ($i=0; $i<$num_fields; $i++)
|
||||||
echo "<td>$row[$i]</td>";
|
echo "<td>$row[$i]</td>";
|
||||||
echo "<td><a href=\"res_check_det.php?datum=$row[1]&stunde=$row[2]&ort_kurzbz=$row[3]\">Details</a></td>";
|
//echo "<td><a href=\"res_check_det.php?datum=$row[1]&stunde=$row[2]&ort_kurzbz=$row[3]\">Details</a></td>";
|
||||||
echo "</tr>\n";
|
echo "</tr>\n";
|
||||||
$foo++;
|
$foo++;
|
||||||
}
|
}
|
||||||
@@ -87,7 +98,7 @@ $cfgBgcolorTwo='liste1';
|
|||||||
for ($r=0;$r<$num_rows_res;$r++)
|
for ($r=0;$r<$num_rows_res;$r++)
|
||||||
{
|
{
|
||||||
$row_res=$db->db_fetch_object($result_res,$r);
|
$row_res=$db->db_fetch_object($result_res,$r);
|
||||||
$sql_query="SELECT * FROM lehre.vw_stundenplan WHERE datum='$row_res->datum' AND stunde=$row_res->stunde AND ort_kurzbz='$row_res->ort_kurzbz'";
|
$sql_query="SELECT * FROM lehre.vw_stundenplan WHERE datum=".$db->db_add_param($row_res->datum)." AND stunde=".$db->db_add_param($row_res->stunde)." AND ort_kurzbz=".$db->db_add_param($row_res->ort_kurzbz);
|
||||||
//echo $sql_query."<br>";
|
//echo $sql_query."<br>";
|
||||||
$result=$db->db_query($sql_query);
|
$result=$db->db_query($sql_query);
|
||||||
$num_rows=$db->db_num_rows($result);
|
$num_rows=$db->db_num_rows($result);
|
||||||
@@ -105,7 +116,7 @@ $cfgBgcolorTwo='liste1';
|
|||||||
$row=$db->db_fetch_row($result,$j);
|
$row=$db->db_fetch_row($result,$j);
|
||||||
$rowo=$db->db_fetch_object($result,$j);
|
$rowo=$db->db_fetch_object($result,$j);
|
||||||
echo "<tr class='liste".($j%2)."'>";
|
echo "<tr class='liste".($j%2)."'>";
|
||||||
echo "<td><a href=\"res_check_det.php?datum=$rowo->datum&stunde=$rowo->stunde&ort_kurzbz=$rowo->ort_kurzbz\">Reservierung</a></td>";
|
//echo "<td><a href=\"res_check_det.php?datum=$rowo->datum&stunde=$rowo->stunde&ort_kurzbz=$rowo->ort_kurzbz\">Reservierung</a></td>";
|
||||||
for ($i=0; $i<$num_fields; $i++)
|
for ($i=0; $i<$num_fields; $i++)
|
||||||
echo "<td>$row[$i]</td>";
|
echo "<td>$row[$i]</td>";
|
||||||
echo "</tr>\n";
|
echo "</tr>\n";
|
||||||
@@ -128,4 +139,4 @@ $cfgBgcolorTwo='liste1';
|
|||||||
?>
|
?>
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
@@ -1,59 +0,0 @@
|
|||||||
<?php
|
|
||||||
/* Copyright (C) 2006 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 < [email protected] >
|
|
||||||
* Andreas Oesterreicher < [email protected] >
|
|
||||||
* Rudolf Hangl < [email protected] >
|
|
||||||
* Gerald Simane-Sequens < [email protected] >
|
|
||||||
*/
|
|
||||||
require_once('../../../config/vilesci.config.inc.php');
|
|
||||||
require_once('../../../include/basis_db.class.php');
|
|
||||||
if (!$db = new basis_db())
|
|
||||||
die('Es konnte keine Verbindung zum Server aufgebaut werden.');
|
|
||||||
|
|
||||||
|
|
||||||
$id=(isset($_REQUEST['id']) ? $_REQUEST['id'] :0 );
|
|
||||||
|
|
||||||
//Stundenplandaten ermitteln welche mehrfach vorkommen
|
|
||||||
$sql_query="DELETE FROM campus.tbl_reservierung WHERE reservierung_id=$id";
|
|
||||||
//echo $sql_query."<br>";
|
|
||||||
$num_rows=0;
|
|
||||||
if ($result=$db->db_query($sql_query))
|
|
||||||
$num_rows=$db->db_affected_rows($result);
|
|
||||||
else
|
|
||||||
die($db->db_last_error().' <a href="javascript:history.back()">Zurück</a>');
|
|
||||||
?>
|
|
||||||
|
|
||||||
<html>
|
|
||||||
<head>
|
|
||||||
<title>Reservierung Check Delete</title>
|
|
||||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
|
||||||
<LINK rel="stylesheet" href="../../../skin/vilesci.css" type="text/css">
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<H1>Mehrfachbelegungen in Reservierung löschen</H1>
|
|
||||||
<?php
|
|
||||||
if ($num_rows)
|
|
||||||
echo "Datensatz wurde erfolgreich gelöscht!";
|
|
||||||
else
|
|
||||||
echo "Es ist ein Fehler aufgetreten! ".$db->db_last_error();
|
|
||||||
?><br>
|
|
||||||
<a href="res_check.php"><br>
|
|
||||||
<br>
|
|
||||||
Zurück zu Übersicht</a>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
@@ -1,84 +0,0 @@
|
|||||||
<?php
|
|
||||||
/* Copyright (C) 2006 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 < [email protected] >
|
|
||||||
* Andreas Oesterreicher < [email protected] >
|
|
||||||
* Rudolf Hangl < [email protected] >
|
|
||||||
* Gerald Simane-Sequens < [email protected] >
|
|
||||||
*/
|
|
||||||
require_once('../../../config/vilesci.config.inc.php');
|
|
||||||
require_once('../../../include/basis_db.class.php');
|
|
||||||
if (!$db = new basis_db())
|
|
||||||
die('Es konnte keine Verbindung zum Server aufgebaut werden.');
|
|
||||||
|
|
||||||
|
|
||||||
$datum=(isset($_REQUEST['datum']) ? $_REQUEST['datum'] :'' );
|
|
||||||
$stunde=(isset($_REQUEST['stunde']) ? $_REQUEST['stunde'] :0 );
|
|
||||||
$ort_kurzbz=(isset($_REQUEST['ort_kurzbz']) ? $_REQUEST['ort_kurzbz'] :'' );
|
|
||||||
|
|
||||||
//Stundenplandaten ermitteln welche mehrfach vorkommen
|
|
||||||
$sql_query="SELECT * FROM lehre.vw_reservierung WHERE datum='$datum' AND stunde=$stunde AND ort_kurzbz='$ort_kurzbz'";
|
|
||||||
//echo $sql_query."<br>";
|
|
||||||
$num_rows=0;
|
|
||||||
if ($result=$db->db_query($sql_query))
|
|
||||||
$num_rows=$db->db_num_rows($result);
|
|
||||||
else
|
|
||||||
die($db->db_last_error().' <a href="javascript:history.back()">Zurück</a>');
|
|
||||||
|
|
||||||
$cfgBorder=1;
|
|
||||||
$cfgBgcolorOne='liste0';
|
|
||||||
$cfgBgcolorTwo='liste1';
|
|
||||||
?>
|
|
||||||
|
|
||||||
<html>
|
|
||||||
<head>
|
|
||||||
<title>Reservierung Check Details</title>
|
|
||||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
|
||||||
<LINK rel="stylesheet" href="../../../skin/vilesci.css" type="text/css">
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<H1>Mehrfachbelegungen in Reservierungen Detailansicht</H1>
|
|
||||||
<table border="<?php echo $cfgBorder;?>">
|
|
||||||
<tr>
|
|
||||||
<?php
|
|
||||||
if ($num_rows>0)
|
|
||||||
{
|
|
||||||
$num_fields=$db->db_num_fields($result);
|
|
||||||
$foo = 0;
|
|
||||||
for ($i=0;$i<$num_fields; $i++)
|
|
||||||
echo "<th>".$db->db_field_name($result,$i)."</th>";
|
|
||||||
for ($j=0; $j<$num_rows;$j++)
|
|
||||||
{
|
|
||||||
$row=$db->db_fetch_row($result,$j);
|
|
||||||
$bgcolor = $cfgBgcolorOne;
|
|
||||||
$foo % 2 ? 0: $bgcolor = $cfgBgcolorTwo;
|
|
||||||
echo '<tr class="'.$bgcolor.'">';
|
|
||||||
for ($i=0; $i<$num_fields; $i++)
|
|
||||||
echo "<td>$row[$i] </td>";
|
|
||||||
echo "<td><a href=\"res_check_delete.php?id=$row[0]\">Delete</a></td>";
|
|
||||||
echo "<td><a href=\"res_check_mail.php?id=$row[0]\">Mail&Delete</a></td>";
|
|
||||||
|
|
||||||
echo "</tr>\n";
|
|
||||||
$foo++;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else
|
|
||||||
echo "Kein Eintrag gefunden!";
|
|
||||||
?>
|
|
||||||
</table>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
@@ -1,87 +0,0 @@
|
|||||||
<?php
|
|
||||||
/* Copyright (C) 2006 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 < [email protected] >
|
|
||||||
* Andreas Oesterreicher < [email protected] >
|
|
||||||
* Rudolf Hangl < [email protected] >
|
|
||||||
* Gerald Simane-Sequens < [email protected] >
|
|
||||||
*/
|
|
||||||
require_once('../../../config/vilesci.config.inc.php');
|
|
||||||
require_once('../../../include/basis_db.class.php');
|
|
||||||
if (!$db = new basis_db())
|
|
||||||
die('Es konnte keine Verbindung zum Server aufgebaut werden.');
|
|
||||||
|
|
||||||
|
|
||||||
$id=(isset($_REQUEST['id']) ? $_REQUEST['id'] :0 );
|
|
||||||
|
|
||||||
|
|
||||||
$sql_query="SELECT tbl_reservierung.reservierung_id, tbl_reservierung.datum, tbl_reservierung.stunde, tbl_reservierung.ort_kurzbz AS ortkurzbz, tbl_mitarbeiter.kurzbz AS lektorkurzbz, tbl_reservierung.titel, tbl_reservierung.beschreibung, campus.tbl_reservierung.uid FROM campus.tbl_reservierung, public.tbl_ort, public.tbl_mitarbeiter WHERE campus.tbl_reservierung.reservierung_id=$id AND public.tbl_ort.ort_kurzbz=campus.tbl_reservierung.ort_kurzbz AND public.tbl_mitarbeiter.mitarbeiter_uid=campus.tbl_reservierung.uid";
|
|
||||||
//echo $sql_query."<br>";
|
|
||||||
$num_rows=0;
|
|
||||||
if ($result=$db->db_query($sql_query))
|
|
||||||
$num_rows=$db->db_num_rows($result);
|
|
||||||
else
|
|
||||||
die($db->db_last_error().' <a href="javascript:history.back()">Zurück</a>');
|
|
||||||
if ($num_rows==1)
|
|
||||||
{
|
|
||||||
$row=$db->db_fetch_object($result,0);
|
|
||||||
$text="Dies ist eine automatische eMail!\r\rAufgrund einer Stundenplankollision wurde folgende Reservierung gelöscht:\r\r";
|
|
||||||
$text.="Datum:\t$row->datum\rStunde:\t$row->stunde\rOrt:\t$row->ortkurzbz\rTitel:\t$row->titel\r\r";
|
|
||||||
$text.="Wir bitten um Verständnis.";
|
|
||||||
$adress=$row->uid.'@technikum-wien.at';
|
|
||||||
|
|
||||||
if (mail($adress,"Stundenplankollision",$text,"From: [email protected]"))
|
|
||||||
$sendmail=true;
|
|
||||||
else
|
|
||||||
$sendmail=false;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
$sendmail=false;
|
|
||||||
//Stundenplandaten ermitteln welche mehrfach vorkommen
|
|
||||||
$sql_query="DELETE FROM campus.tbl_reservierung WHERE id=$id";
|
|
||||||
$num_rows=0;
|
|
||||||
if ($result=$db->db_query($sql_query))
|
|
||||||
$num_rows=$db->db_affected_rows($result);
|
|
||||||
else
|
|
||||||
die($db->db_last_error().' <a href="javascript:history.back()">Zurück</a>');
|
|
||||||
|
|
||||||
?>
|
|
||||||
|
|
||||||
<html>
|
|
||||||
<head>
|
|
||||||
<title>Reservierung Check Delete</title>
|
|
||||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
|
||||||
<LINK rel="stylesheet" href="../../../skin/vilesci.css" type="text/css">
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<H1>Mehrfachbelegungen in Reservierung löschen</H1>
|
|
||||||
<?php
|
|
||||||
if ($sendmail)
|
|
||||||
echo 'Mail wurde verschickt an '.$adress.'!<br>';
|
|
||||||
else
|
|
||||||
echo "Mail konnte nicht verschickt werden!<br>";
|
|
||||||
|
|
||||||
if ($num_rows)
|
|
||||||
echo "Datensatz wurde erfolgreich gelöscht!";
|
|
||||||
else
|
|
||||||
echo "Es ist ein Fehler aufgetreten! ".$db->db_last_error();;
|
|
||||||
?><br>
|
|
||||||
<a href="res_check.php"><br>
|
|
||||||
<br>
|
|
||||||
Zurück zu Übersicht</a>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
Reference in New Issue
Block a user