This commit is contained in:
Rudolf Hangl
2008-06-17 07:39:00 +00:00
parent e2213cab29
commit 39cceedc4a
+36 -1
View File
@@ -87,7 +87,16 @@ if(isset($_GET['lvid']) && is_numeric($_GET['lvid']))
echo "Erfolgreich gespeichert";
}
}
//Organisationsform Speichern
if(isset($_POST['orgform']))
{
$qry = "UPDATE lehre.tbl_lehrveranstaltung SET orgform_kurzbz=".($_POST['orgform']==''?'null':"'".addslashes($_POST['orgform'])."'")." WHERE lehrveranstaltung_id='".$_GET['lvid']."'";
if(!pg_query($conn, $qry))
echo "Fehler beim Speichern!";
else
echo "Erfolgreich gespeichert";
}
//Lehre Feld setzen
if(isset($_GET['lehre']))
{
@@ -297,6 +306,7 @@ if ($result_lv!=0)
<th class='table-sortable:default'>Bezeichnung</th>
<th class='table-sortable:default'>Lehrform</th>
<th class='table-sortable:default'>Stg</th>
<th class='table-sortable:default'>Organisationsform</th>
<th class='table-sortable:default'>SS</th>
<th class='table-sortable:default'>ECTS</th>
<th class='table-sortable:default'>Lehre</th>
@@ -332,6 +342,31 @@ if ($result_lv!=0)
echo "</td>";
echo "<td>".$row->lehrform_kurzbz."</td>";
echo "<td>".$s[$row->studiengang_kz]->kurzbz."</td>";
//Organisationsform
echo "<td style='white-space:nowrap;'>";
echo "<form action='".$_SERVER['PHP_SELF']."?lvid=$row->lehrveranstaltung_id&stg_kz=$stg_kz&semester=$semester&fachbereich_kurzbz=$fachbereich_kurzbz' method='POST'>";
echo "<SELECT name='orgform'>";
echo "<option value=''>-- Keine Auswahl --</option>";
if($row->orgform_kurzbz=='BB')
{
echo "<option value='BB' selected='selected'>Berufsbegleitend</option>";
}
else
{
echo "<option value='BB'>Berufsbegleitend</option>";
}
if($row->orgform_kurzbz=='VZ')
{
echo "<option value='VZ' selected='selected'>Vollzeit</option>";
}
else
{
echo "<option value='VZ'>Vollzeit</option>";
}
echo "</SELECT><input type='submit' value='ok' name='submitorg'></form>";
echo "</td>";
//Semesterstunden
echo "<td>$row->semesterstunden</td>";
//ECTS