mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-25 16:44:28 +00:00
Sprache und Sprachwahl fixed, wenn kein Studienplan verfügbar ist.
Ablauf_ID wird nun mitgeschickt
This commit is contained in:
@@ -220,6 +220,7 @@ if (isset($_GET['action']) && $_GET['action'] == 'edit')
|
|||||||
$studiengang = new studiengang($stg_kz);
|
$studiengang = new studiengang($stg_kz);
|
||||||
|
|
||||||
echo '<table><form action="'.$_SERVER['PHP_SELF'].'?stg_kz='.$stg_kz.'&action=editsave" method="POST">
|
echo '<table><form action="'.$_SERVER['PHP_SELF'].'?stg_kz='.$stg_kz.'&action=editsave" method="POST">
|
||||||
|
<input type="hidden" name="ablauf_id" value="'.$_POST['ablauf_id'].'" />
|
||||||
<tr><td>Studiengang_kz: </td><td><input type="text" name="stg_kz" value="'.strtoupper($studiengang->typ.$studiengang->kurzbz).' ('.$studiengang->bezeichnung.')'.'" style="width:98.5%" disabled /></td></tr>
|
<tr><td>Studiengang_kz: </td><td><input type="text" name="stg_kz" value="'.strtoupper($studiengang->typ.$studiengang->kurzbz).' ('.$studiengang->bezeichnung.')'.'" style="width:98.5%" disabled /></td></tr>
|
||||||
<tr><td>Gebiet: </td><td><input type="text" value="'.$gebiet->kurzbz.' ('.$gebiet->bezeichnung.')" style="width:98.5%" disabled /><input type="hidden" name="gebiet_id" value="'.$ablauf->result[0]->gebiet_id.'"/></td></tr>
|
<tr><td>Gebiet: </td><td><input type="text" value="'.$gebiet->kurzbz.' ('.$gebiet->bezeichnung.')" style="width:98.5%" disabled /><input type="hidden" name="gebiet_id" value="'.$ablauf->result[0]->gebiet_id.'"/></td></tr>
|
||||||
<tr><td>Reihung: </td><td><input type="text" name="reihung" value="'.$ablauf->result[0]->reihung.'" style="width:98.5%" /></td></tr>
|
<tr><td>Reihung: </td><td><input type="text" name="reihung" value="'.$ablauf->result[0]->reihung.'" style="width:98.5%" /></td></tr>
|
||||||
@@ -254,10 +255,7 @@ if (isset($_GET['action']) && $_GET['action'] == 'editsave')
|
|||||||
{
|
{
|
||||||
if (isset($_POST['reihung']) && $_POST['reihung'] != '' && isset($_POST['gewicht']) && $_POST['gewicht'] != '' && isset($_POST['semester']) && $_POST['semester'] != '')
|
if (isset($_POST['reihung']) && $_POST['reihung'] != '' && isset($_POST['gewicht']) && $_POST['gewicht'] != '' && isset($_POST['semester']) && $_POST['semester'] != '')
|
||||||
{
|
{
|
||||||
$ablauf = new ablauf();
|
$ablauf = new ablauf($_POST['ablauf_id']);
|
||||||
$ablauf->getAblaufId($stg_kz, $_POST['gebiet_id']);
|
|
||||||
$ablauf_id = $ablauf->result[0];
|
|
||||||
$ablauf = new ablauf($ablauf_id);
|
|
||||||
$ablauf = $ablauf->result[0];
|
$ablauf = $ablauf->result[0];
|
||||||
$ablauf->reihung = $_POST['reihung'];
|
$ablauf->reihung = $_POST['reihung'];
|
||||||
$ablauf->gewicht = $_POST['gewicht'];
|
$ablauf->gewicht = $_POST['gewicht'];
|
||||||
|
|||||||
+16
-3
@@ -219,6 +219,11 @@ if (isset($_REQUEST['prestudent']))
|
|||||||
$ablauf->getAblaufGebiete($firstPrio_studiengang_kz, $firstPrio_studienplan_id);
|
$ablauf->getAblaufGebiete($firstPrio_studiengang_kz, $firstPrio_studienplan_id);
|
||||||
$rt_sprache = '';
|
$rt_sprache = '';
|
||||||
|
|
||||||
|
if (empty($ablauf->result[0]))
|
||||||
|
{
|
||||||
|
$ablauf->getAblaufGebiete($firstPrio_studiengang_kz);
|
||||||
|
}
|
||||||
|
|
||||||
if (!empty($ablauf->result[0]))
|
if (!empty($ablauf->result[0]))
|
||||||
{
|
{
|
||||||
$rt_sprache = $ablauf->result[0]->sprache;
|
$rt_sprache = $ablauf->result[0]->sprache;
|
||||||
@@ -441,6 +446,7 @@ if (isset($prestudent_id))
|
|||||||
if (isset($row_prio->studiengang_kz))
|
if (isset($row_prio->studiengang_kz))
|
||||||
{
|
{
|
||||||
$firstPrio_studiengang_kz = $row_prio->studiengang_kz;
|
$firstPrio_studiengang_kz = $row_prio->studiengang_kz;
|
||||||
|
$firstPrio_studienplan_id = $row_prio->studienplan_id;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -449,9 +455,16 @@ if (isset($prestudent_id))
|
|||||||
// Sprachwahl zu STG mit höchster Prio ermitteln
|
// Sprachwahl zu STG mit höchster Prio ermitteln
|
||||||
$ablauf = new Ablauf();
|
$ablauf = new Ablauf();
|
||||||
$sprachwahl = false;
|
$sprachwahl = false;
|
||||||
if (isset($ablauf->result[0])
|
|
||||||
&& $ablauf->getAblaufVorgabeStudiengang($firstPrio_studiengang_kz)
|
$ablauf->getAblaufGebiete($firstPrio_studiengang_kz, $firstPrio_studienplan_id);
|
||||||
&& is_bool($ablauf->result[0]->sprachwahl))
|
|
||||||
|
if (empty($ablauf->result[0]))
|
||||||
|
{
|
||||||
|
$ablauf->getAblaufGebiete($firstPrio_studiengang_kz);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (isset($ablauf->result[0])
|
||||||
|
&& is_bool($ablauf->result[0]->sprachwahl))
|
||||||
{
|
{
|
||||||
$sprachwahl = $ablauf->result[0]->sprachwahl;
|
$sprachwahl = $ablauf->result[0]->sprachwahl;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user