From f0ccc9059ed9a7733e8fca9a40d62aaff37c7e0d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20=C3=96sterreicher?= Date: Tue, 10 Mar 2009 09:21:13 +0000 Subject: [PATCH] =?UTF-8?q?lvinfo=20kopieren=20f=C3=BCr=20assistenz?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vilesci/lehre/lehrveranstaltung.php | 25 ++++++++++--------------- 1 file changed, 10 insertions(+), 15 deletions(-) diff --git a/vilesci/lehre/lehrveranstaltung.php b/vilesci/lehre/lehrveranstaltung.php index eeb55f97c..c5d05cb35 100644 --- a/vilesci/lehre/lehrveranstaltung.php +++ b/vilesci/lehre/lehrveranstaltung.php @@ -100,17 +100,17 @@ if(isset($_GET['lvid']) && is_numeric($_GET['lvid'])) else echo "Erfolgreich gespeichert"; } - - if(isset($_POST['source_id'])) - { - $lvinfo = new lvinfo($conn); - if(!$lvinfo->copy($_POST['source_id'], $_GET['lvid'])) - echo 'Fehler beim Kopieren'; - else - echo 'Erfolgreich gespeichert'; - } } + //LVInfo kopieren + if(isset($_POST['source_id'])) + { + $lvinfo = new lvinfo($conn); + if(!$lvinfo->copy($_POST['source_id'], $_GET['lvid'])) + echo 'Fehler beim Kopieren'; + else + echo 'Erfolgreich gespeichert'; + } //Lehre Feld setzen if(isset($_GET['lehre'])) @@ -469,16 +469,11 @@ if ($result_lv!=0) $lvinfo = new lvinfo($conn); if(!$lvinfo->exists($row->lehrveranstaltung_id)) { - if($rechte->isBerechtigt('admin')) - { - echo ' + echo '
kopieren von id:
'; - } - else - echo 'fehlt'; } else echo 'vorhanden';