mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-19 07:52:16 +00:00
- Problem beim Wechseln der Sprache behoben
- StudienplanID bei Ablauf nicht verpflichtend
This commit is contained in:
@@ -133,7 +133,7 @@ if (isset($_GET['action']) && $_GET['action'] == 'save')
|
||||
isset($_POST['reihung']) && $_POST['reihung'] != '' &&
|
||||
isset($_POST['gewicht']) && $_POST['gewicht'] != '' &&
|
||||
isset($_POST['semester']) && $_POST['semester'] != '' &&
|
||||
isset($_POST['studienplan']) && $_POST['studienplan'] != '')
|
||||
isset($_POST['studienplan']))
|
||||
{
|
||||
$ablauf = new ablauf();
|
||||
$ablauf->studiengang_kz = $_POST['stg_kz'];
|
||||
@@ -179,10 +179,10 @@ if (isset($_GET['action']) && $_GET['action'] == 'edit')
|
||||
$ablauf_id = $ablauf->result[0];
|
||||
$ablauf = new ablauf($ablauf_id);
|
||||
$ablauf = $ablauf->result[0];
|
||||
|
||||
|
||||
$gebiet = new gebiet($_POST['gebiet_id']);
|
||||
$studiengang = new studiengang($stg_kz);
|
||||
|
||||
|
||||
echo '<table><form action="'.$_SERVER['PHP_SELF'].'?stg_kz='.$stg_kz.'&action=editsave" method="POST">
|
||||
<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->gebiet_id.'"/></td></tr>
|
||||
@@ -215,7 +215,7 @@ if (isset($_GET['action']) && $_GET['action'] == 'editsave')
|
||||
$ablauf->semester = $_POST['semester'];
|
||||
if (isset($_POST['studienplan_id'])) // && $_POST['studienplan_id'] != ''
|
||||
$ablauf->studienplan_id = $_POST['studienplan_id'];
|
||||
|
||||
|
||||
if (!$ablauf->save(false))
|
||||
echo $ablauf->errormsg;
|
||||
}
|
||||
@@ -263,7 +263,7 @@ if ($stg_kz != -1)
|
||||
<input type="hidden" name="gebiet_id" value="'.$gebiet->gebiet_id.'" />
|
||||
</form></td></tr>';
|
||||
}
|
||||
|
||||
|
||||
$gebiet->getAll();
|
||||
echo '</tbody><tfoot><tr><form action="'.$_SERVER['PHP_SELF'].'?stg_kz='.$stg_kz.'&action=save" method="POST"><input type="hidden" name="stg_kz" value="'.$stg_kz.'" /><td><SELECT name="gebiet_id">';
|
||||
foreach ($gebiet->result as $row)
|
||||
@@ -347,7 +347,7 @@ if (isset($_POST['speichern']))
|
||||
$bezeichnung_mehrsprachig[$row_sprache->sprache] = $_POST['bezeichnung_mehrsprachig_'.$row_sprache->sprache];
|
||||
}
|
||||
$gebiet->bezeichnung_mehrsprachig = $bezeichnung_mehrsprachig;
|
||||
|
||||
|
||||
$gebiet->kurzbz = $_POST['kurzbz'];
|
||||
$gebiet->bezeichnung = $_POST['bezeichnung_mehrsprachig_German'];
|
||||
$gebiet->beschreibung = $_POST['beschreibung'];
|
||||
@@ -421,22 +421,22 @@ function drawStudienplanDropdown($stg_kz, $db, $name = '', $autosubmitform = nul
|
||||
$orgform_arr = array();
|
||||
foreach ($orgform_obj->result as $row)
|
||||
$orgform_arr[$row->orgform_kurzbz] = $row->bezeichnung;
|
||||
|
||||
|
||||
foreach ($studienplan_obj->result as $row_sto)
|
||||
{
|
||||
$studienordnung_arr[$row_sto->studienordnung_id]['bezeichnung'] = $row_sto->bezeichnung_studienordnung;
|
||||
$studienplan_arr[$row_sto->studienordnung_id][$row_sto->studienplan_id]['bezeichnung'] = $row_sto->bezeichnung_studienplan;
|
||||
|
||||
|
||||
$studienplan_arr[$row_sto->studienordnung_id][$row_sto->studienplan_id]['orgform_kurzbz'] = $row_sto->orgform_kurzbz;
|
||||
$studienplan_arr[$row_sto->studienordnung_id][$row_sto->studienplan_id]['sprache'] = $sprachen_arr[$row_sto->sprache];
|
||||
$studienplaene_verwendet[$row_sto->studienplan_id] = $row_sto->bezeichnung_studienplan;
|
||||
}
|
||||
|
||||
|
||||
$selected = isset($_GET['stp_id'])?'':'selected';
|
||||
echo "<SELECT id='studienplan_dropdown' name='".$name."' ";
|
||||
if (isset($autosubmitform) && $autosubmitform != '')
|
||||
echo 'onchange="document.getElementById(\''.$autosubmitform.'\').submit();"';
|
||||
|
||||
|
||||
echo " style='".$style."'>";
|
||||
echo "<OPTION value='' ".$selected.">Studienplan auswaehlen</OPTION>";
|
||||
// Pruefen ob uebergebene StudienplanID in Auswahl enthalten
|
||||
@@ -460,9 +460,9 @@ function drawStudienplanDropdown($stg_kz, $db, $name = '', $autosubmitform = nul
|
||||
foreach ($studienordnung_arr as $stoid => $row_sto)
|
||||
{
|
||||
$selected = '';
|
||||
|
||||
|
||||
echo '<option value="" disabled>Studienordnung: '.$db->convert_html_chars($row_sto['bezeichnung']).'</option>';
|
||||
|
||||
|
||||
foreach ($studienplan_arr[$stoid] as $stpid => $row_stp)
|
||||
{
|
||||
if (isset($_GET['stp_id']) && $_GET['stp_id'] == $stpid)
|
||||
|
||||
@@ -37,7 +37,7 @@ if (!$db = new basis_db())
|
||||
|
||||
$PHP_SELF = $_SERVER['PHP_SELF'];
|
||||
session_cache_limiter('none');
|
||||
//session_start();
|
||||
session_start();
|
||||
|
||||
$user = get_uid();
|
||||
$rechte = new benutzerberechtigung();
|
||||
@@ -168,10 +168,10 @@ font-size: 10pt;
|
||||
<h1>
|
||||
<div style="float:left">Testtool - Administrationsseite</div>
|
||||
<div style="text-align:right; padding-right: 5px;">
|
||||
<a href="gebieteAnheangen.php?stg_kz=<?php echo $stg_kz?>">Ablauf</a> |
|
||||
<a href="uebersichtGebiete.php" class="Item" target="blank">Gebietübersicht</a> |
|
||||
<a href="uebersichtFragen.php" class="Item" target="blank">Fragenübersicht</a> |
|
||||
<a href="auswertung.php" class="Item">Auswertung</a> |
|
||||
<a href="gebieteAnheangen.php?stg_kz=<?php echo $stg_kz?>">Ablauf</a> |
|
||||
<a href="uebersichtGebiete.php" class="Item" target="blank">Gebietübersicht</a> |
|
||||
<a href="uebersichtFragen.php" class="Item" target="blank">Fragenübersicht</a> |
|
||||
<a href="auswertung.php" class="Item">Auswertung</a> |
|
||||
<a href="Testtool.pdf" class="Item" target="_blank">Hilfe</a>
|
||||
</div>
|
||||
</h1>
|
||||
@@ -563,7 +563,7 @@ if (isset($_GET['type']) && $_GET['type'] == 'vorschlaegeaktiv')
|
||||
$checkedVorschlaege = $_POST['vorschlagaktiv'];
|
||||
$allevorschlaege = array();
|
||||
$allevorschlaege = explode(",", rtrim($_POST['allevorschlaege'], ","));
|
||||
|
||||
|
||||
foreach ($allevorschlaege as $vorschlag)
|
||||
{
|
||||
$vs->load($vorschlag, $sprache);
|
||||
@@ -583,7 +583,7 @@ if (isset($_GET['type']) && $_GET['type'] == 'vorschlaegeaktiv')
|
||||
{
|
||||
$allevorschlaege = array();
|
||||
$allevorschlaege = explode(",", rtrim($_POST['allevorschlaege'], ","));
|
||||
|
||||
|
||||
foreach ($allevorschlaege as $vorschlag)
|
||||
{
|
||||
$vs->load($vorschlag, $sprache);
|
||||
@@ -697,7 +697,7 @@ if (($anzahl !== 0) || ($stg_kz == '-1') && ($stg_kz !== ''))
|
||||
{
|
||||
$link = "";
|
||||
echo '<a href="'.$PHP_SELF.'?gebiet_id='.$gebiet_id.'&stg_kz='.$stg_kz.'&nummer='.$nummer.'&filter=inaktiv">
|
||||
<input type="checkbox" name="aktiv" '.$aktivchecked.' onclick="window.location.assign(\''.$PHP_SELF.'?gebiet_id='.$gebiet_id.'&stg_kz='.$stg_kz.'&nummer='.$nummer.'&filter=inaktiv\');"/>aktiv</a>
|
||||
<input type="checkbox" name="aktiv" '.$aktivchecked.' onclick="window.location.assign(\''.$PHP_SELF.'?gebiet_id='.$gebiet_id.'&stg_kz='.$stg_kz.'&nummer='.$nummer.'&filter=inaktiv\');"/>aktiv</a>
|
||||
<a href="'.$PHP_SELF.'?gebiet_id='.$gebiet_id.'&stg_kz='.$stg_kz.'&nummer='.$nummer.'&filter=">
|
||||
<input type="checkbox" name="inaktiv" '.$inaktivchecked.' onclick="window.location.assign(\''.$PHP_SELF.'?gebiet_id='.$gebiet_id.'&stg_kz='.$stg_kz.'&nummer='.$nummer.'&filter=\');"/>inaktiv</a>';
|
||||
}
|
||||
@@ -720,7 +720,7 @@ if (($anzahl !== 0) || ($stg_kz == '-1') && ($stg_kz !== ''))
|
||||
{
|
||||
if ($nummer == '')
|
||||
$nummer = $row->nummer;
|
||||
|
||||
|
||||
$style = '';
|
||||
if ($db->db_parse_bool($row->aktiv) == false)
|
||||
$style = 'style="color: lightgrey"';
|
||||
@@ -901,8 +901,13 @@ if ($frage_id != '')
|
||||
{
|
||||
$fragef1 = new frage();
|
||||
$fragef1->getFragen($_GET['gebiet_id'], $_GET['nummer']);
|
||||
$vorschlag->getVorschlag($fragef1->result[0]->frage_id, $sprache, false, false);
|
||||
echo "<tr><td>Nummer:</td><td><input type='text' name='nummer' size='3' id='nummer' value='".(count($vorschlag->result) + 1)."' />"; //@Todo: Count ($vorschlag->result) liefert die naechste Nummer nur dann richtig, falls keine Zahl dazwischen fehlt (1,3,4,..). Hier sollte die letzte Nummer ermittelt werden.
|
||||
if(isset($fragef1->result[0]))
|
||||
{
|
||||
$vorschlag->getVorschlag($fragef1->result[0]->frage_id, $sprache, false, false);
|
||||
echo "<tr><td>Nummer:</td><td><input type='text' name='nummer' size='3' id='nummer' value='".(count($vorschlag->result) + 1)."' />"; //@Todo: Count ($vorschlag->result) liefert die naechste Nummer nur dann richtig, falls keine Zahl dazwischen fehlt (1,3,4,..). Hier sollte die letzte Nummer ermittelt werden.
|
||||
}
|
||||
else
|
||||
echo "<tr><td>Nummer:</td><td><input type='text' name='nummer' size='3' id='nummer' />";
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -1009,7 +1014,7 @@ if ($frage_id != '')
|
||||
$vss = new vorschlag();
|
||||
$vss->load($vs->vorschlag_id);
|
||||
if ($vss->aktiv == true) echo "checked='checked'";
|
||||
|
||||
|
||||
echo "/></td></tr>";
|
||||
$allevorschlaege .= $vs->vorschlag_id.",";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user