mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-19 07:52:16 +00:00
Remove old Scripts
This commit is contained in:
@@ -20,10 +20,20 @@
|
||||
* Rudolf Hangl < rudolf.hangl@technikum-wien.at >
|
||||
* Gerald Simane-Sequens < gerald.simane-sequens@technikum-wien.at >
|
||||
*/
|
||||
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.');
|
||||
require_once('../../../config/vilesci.config.inc.php');
|
||||
require_once('../../../include/basis_db.class.php');
|
||||
require_once('../../../include/functions.inc.php');
|
||||
require_once('../../../include/benutzerberechtigung.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.');
|
||||
|
||||
|
||||
//Stundenplandaten ermitteln welche mehrfach vorkommen
|
||||
@@ -37,7 +47,7 @@
|
||||
die($db->db_last_error().' <a href="javascript:history.back()">Zurück</a>');
|
||||
|
||||
|
||||
$cfgBorder=1;
|
||||
$cfgBorder=0;
|
||||
$cfgBgcolorOne='liste0';
|
||||
$cfgBgcolorTwo='liste1';
|
||||
?>
|
||||
@@ -66,8 +76,7 @@ if ($num_rows>0)
|
||||
$foo % 2 ? 0: $bgcolor = $cfgBgcolorTwo;
|
||||
echo "<tr class='liste".($j%2)."'>";
|
||||
for ($i=0; $i<$num_fields; $i++)
|
||||
echo "<td>$row[$i]</td>";
|
||||
echo "<td><a href=\"stdplan_check_det.php?datum=$row[1]&stunde_id=$row[2]&ort_id=$row[3]&studiengang_id=$row[4]&semester=$row[5]&verband=$row[6]&gruppe=$row[7]\">Details</a><td>";
|
||||
echo "<td>$row[$i]</td>";
|
||||
echo "</tr>\n";
|
||||
$foo++;
|
||||
}
|
||||
@@ -77,4 +86,4 @@ else
|
||||
?>
|
||||
</table>
|
||||
</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 < christian.paminger@technikum-wien.at >
|
||||
* Andreas Oesterreicher < andreas.oesterreicher@technikum-wien.at >
|
||||
* Rudolf Hangl < rudolf.hangl@technikum-wien.at >
|
||||
* Gerald Simane-Sequens < gerald.simane-sequens@technikum-wien.at >
|
||||
*/
|
||||
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 lehre.tbl_stundenplan WHERE 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>Stundenplan 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 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="stdplan_check.php"><br>
|
||||
<br>
|
||||
Zurück zu Übersicht</a>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,90 +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 < christian.paminger@technikum-wien.at >
|
||||
* Andreas Oesterreicher < andreas.oesterreicher@technikum-wien.at >
|
||||
* Rudolf Hangl < rudolf.hangl@technikum-wien.at >
|
||||
* Gerald Simane-Sequens < gerald.simane-sequens@technikum-wien.at >
|
||||
*/
|
||||
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_id']) ? $_REQUEST['ort_id'] :(isset($_REQUEST['ort_kurzbz']) ? $_REQUEST['ort_kurzbz'] :'' ));
|
||||
|
||||
$stunde=(isset($_REQUEST['stunde']) ? $_REQUEST['stunde'] :(isset($_REQUEST['stunde_id']) ? $_REQUEST['stunde_id'] :'' ) );
|
||||
|
||||
$studiengang_kz=(isset($_REQUEST['studiengang_kz']) ? $_REQUEST['studiengang_kz'] :(isset($_REQUEST['studiengang_id']) ? $_REQUEST['studiengang_id'] :'' ) );
|
||||
|
||||
$semester=(isset($_REQUEST['semester']) ? $_REQUEST['semester'] :1 );
|
||||
$verband=(isset($_REQUEST['verband']) ? $_REQUEST['verband'] :'' );
|
||||
$gruppe=(isset($_REQUEST['gruppe']) ? $_REQUEST['gruppe'] :'' );
|
||||
|
||||
|
||||
//Stundenplandaten ermitteln welche mehrfach vorkommen
|
||||
$sql_query="SELECT stundenplan_id, datum, stunde, semester, verband, gruppe, ort_kurzbz, stg_kurzbz,fachbereich_kurzbz, lehrfach, uid FROM lehre.vw_stundenplan WHERE datum='$datum' AND stunde=$stunde AND ort_kurzbz='$ort_kurzbz' AND studiengang_kz=$studiengang_kz AND semester='$semester' AND verband='$verband' AND gruppe='$gruppe'";
|
||||
$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>Stundenplan 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 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='liste".($j%2)."'>";
|
||||
for ($i=0; $i<$num_fields; $i++)
|
||||
echo "<td>$row[$i]</td>";
|
||||
echo "<td><a href=\"stdplan_check_delete.php?id=$row[0]\">Delete</a><td>";
|
||||
echo "</tr>\n";
|
||||
$foo++;
|
||||
}
|
||||
}
|
||||
else
|
||||
echo "Kein Eintrag gefunden!";
|
||||
?>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user