Merge branch 'feature-11869/testtool_sprache_und_sprachwahl'

This commit is contained in:
Andreas Österreicher
2021-02-19 17:15:00 +01:00
3 changed files with 20 additions and 10 deletions
+2 -3
View File
@@ -76,7 +76,7 @@ echo '<?xml version="1.0" encoding="ISO-8859-1" ?>';
</noscript>
<div class="row well">
<div class="col-sm-12">
<h2>Fomeln</h2>
<h2>Formeln</h2>
<p>Die Formeln auf der linken Seite sollten möglichst gleich dargestellt werden, wie in dem Bild auf der rechten Seite.<br>
Abweichungen in Schriftgröße und -art können vorkommen.</p>
<p>The formula on the left side should be equal to the picture on the right side.<br>
@@ -166,5 +166,4 @@ echo '<?xml version="1.0" encoding="ISO-8859-1" ?>';
</div>
</body>
</html>
</html>
+2 -4
View File
@@ -220,6 +220,7 @@ if (isset($_GET['action']) && $_GET['action'] == 'edit')
$studiengang = new studiengang($stg_kz);
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>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>
@@ -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'] != '')
{
$ablauf = new ablauf();
$ablauf->getAblaufId($stg_kz, $_POST['gebiet_id']);
$ablauf_id = $ablauf->result[0];
$ablauf = new ablauf($ablauf_id);
$ablauf = new ablauf($_POST['ablauf_id']);
$ablauf = $ablauf->result[0];
$ablauf->reihung = $_POST['reihung'];
$ablauf->gewicht = $_POST['gewicht'];
+16 -3
View File
@@ -219,6 +219,11 @@ if (isset($_REQUEST['prestudent']))
$ablauf->getAblaufGebiete($firstPrio_studiengang_kz, $firstPrio_studienplan_id);
$rt_sprache = '';
if (empty($ablauf->result[0]))
{
$ablauf->getAblaufGebiete($firstPrio_studiengang_kz);
}
if (!empty($ablauf->result[0]))
{
$rt_sprache = $ablauf->result[0]->sprache;
@@ -441,6 +446,7 @@ if (isset($prestudent_id))
if (isset($row_prio->studiengang_kz))
{
$firstPrio_studiengang_kz = $row_prio->studiengang_kz;
$firstPrio_studienplan_id = $row_prio->studienplan_id;
break;
}
}
@@ -449,9 +455,16 @@ if (isset($prestudent_id))
// Sprachwahl zu STG mit höchster Prio ermitteln
$ablauf = new Ablauf();
$sprachwahl = false;
if (isset($ablauf->result[0])
&& $ablauf->getAblaufVorgabeStudiengang($firstPrio_studiengang_kz)
&& is_bool($ablauf->result[0]->sprachwahl))
$ablauf->getAblaufGebiete($firstPrio_studiengang_kz, $firstPrio_studienplan_id);
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;
}