From 437fd51dcbae38067c5e5aa6b8f25b91ba37bd5c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20=C3=96sterreicher?= Date: Fri, 10 Aug 2007 08:00:57 +0000 Subject: [PATCH] --- vilesci/stundenplan/lehrveranstaltung.php | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/vilesci/stundenplan/lehrveranstaltung.php b/vilesci/stundenplan/lehrveranstaltung.php index 49e8c0dab..1952e996b 100644 --- a/vilesci/stundenplan/lehrveranstaltung.php +++ b/vilesci/stundenplan/lehrveranstaltung.php @@ -38,6 +38,16 @@ if(isset($_GET['lvid']) && is_numeric($_GET['lvid'])) else echo "Erfolgreich gespeichert"; } + + //Aktiv Feld setzen + if(isset($_GET['aktiv'])) + { + $qry = "UPDATE lehre.tbl_lehrveranstaltung SET aktiv=".($_GET['aktiv']=='t'?'false':'true')." WHERE lehrveranstaltung_id='".$_GET['lvid']."'"; + if(!pg_query($conn, $qry)) + echo "Fehler beim Speichen!"; + else + echo "Erfolgreich gespeichert"; + } //Lehrevz Speichern if(isset($_POST['lehrevz'])) @@ -97,7 +107,7 @@ if ($result_lv!=0) echo "$row->lehrveranstaltung_id$row->kurzbz$row->bezeichnung$row->ects"; echo "lehrveranstaltung_id&stg_kz=$stg_kz&semester=$semester&lehre=$row->lehre'>"; echo "
"; - echo "".($row->aktiv=='t'?'Ja':'Nein').""; + echo "lehrveranstaltung_id&stg_kz=$stg_kz&semester=$semester&aktiv=$row->aktiv'>"; echo "\n"; }