kleine constant Fehler geändert

This commit is contained in:
aschwarz
2023-02-17 12:41:01 +01:00
parent 9cc981d610
commit 366b1d22de
8 changed files with 112 additions and 112 deletions

View File

@ -173,8 +173,8 @@ select{
or die ("Cannot execute query");
echo "<select size=\"5\" name=\"user2\">";
while ($row = $result->fetch_array()){
echo "<option value=\"".$row[uid]."\">$row[nachname], $row[vorname]";
if ($row[durchgefallen] == "Y"){
echo "<option value=\"".$row['uid']."\">$row[nachname], $row[vorname]";
if ($row['durchgefallen'] == "Y"){
echo " *";
}
echo "
@ -245,8 +245,8 @@ select{
break;
case "ubersicht":
if($_POST[stud]!=''){
$stud = $_POST[stud];
if($_POST['stud']!=''){
$stud = $_POST['stud'];
$pos1 = strpos ($stud, '(')+1;
$pos2 = strpos ($stud, ')')-$pos1;
@ -260,7 +260,7 @@ if($_POST[stud]!=''){
if($_POST[stud] == ''){
if($_POST['stud'] == ''){
echo "
<html>
<head>
@ -323,14 +323,14 @@ if($_POST[stud]!=''){
}
}
if($_POST[user2] != ''){ // Wenn Stud über dropdown gewählt wurde
if($_POST['user2'] != ''){ // Wenn Stud über dropdown gewählt wurde
$db = dbconnect();
$result = $db->query("SELECT uid, stg, vorname, nachname
FROM stud
WHERE uid ='$_POST[user2]'");
$row_uid = $result->fetch_array();
$mtknr=$row_uid[mtknr];
$uid1=$row_uid[uid];
$mtknr=$row_uid['mtknr'];
$uid1=$row_uid['uid'];
}
if(isset($_GET["uid"])){
@ -358,8 +358,8 @@ $result = $db->query("SELECT uid, stg, vorname, nachname
FROM stud
WHERE uid='$uid1'");
$row_uid = $result->fetch_array();
$uid1 = $row_uid[uid];
$stg = $row_uid[stg];
$uid1 = $row_uid['uid'];
$stg = $row_uid['stg'];
$result = $db->query("SELECT nachname, vorname, postrasse, poplz, poort, stgtext, AG, Jahrgang, mail, mail2, mtknr, stg, date_format(Geburtstag, '%d.%m.%Y') gebtag, durchgefallen FROM stud where uid=\"$uid1\"");
@ -545,18 +545,18 @@ oPopupBody.style.border = \"solid blue 1px\";
WHERE dst_id ='$row2[bezeichnung]'");
$row6 = $result6->fetch_array();
if($row5[name] != '' and $row6[bez] == ''){
$bezeichnung = $row5[name];
$ort = $row5[ort];
if($row5['name'] != '' and $row6['bez'] == ''){
$bezeichnung = $row5['name'];
$ort = $row5['ort'];
}
if($row5[name] == '' and $row6[bez] != ''){
$bezeichnung = $row6[bez];
$ort = $row6[ort];
if($row5['name'] == '' and $row6['bez'] != ''){
$bezeichnung = $row6['bez'];
$ort = $row6['ort'];
}
if($row5[name] == '' and $row6[bez] == ''){
if($row5['name'] == '' and $row6['bez'] == ''){
$bezeichnung = '<i>Zeitraum vorgemerkt</i>';
$ort = '';
}
@ -603,7 +603,7 @@ oPopupBody.style.border = \"solid blue 1px\";
</td>
<td align='left' width=\"10%\" style=\"border-left-style: none; border-left-width: medium; border-right-style: none; border-right-width: medium; border-top-style: none; border-top-width: medium; border-bottom-style: solid; border-bottom-width: 1px\">";
$block = get_block($row2[saaid], $jahrgang);
$block = get_block($row2['saaid'], $jahrgang);
$result_zuw0 = $db->query("SELECT 1,wagsid
FROM stan_ag_standort_wunsch
@ -709,7 +709,7 @@ oPopupBody.style.border = \"solid blue 1px\";
$zuw_vorh = $result1->fetch_array(); // Prüfen ob schon zugewiesen
if ($zuw_vorh[zuweisung] == 'Z'){
if ($zuw_vorh['zuweisung'] == 'Z'){
$result1 = $db->query("SELECT 1
FROM stan_antrag
@ -727,17 +727,17 @@ oPopupBody.style.border = \"solid blue 1px\";
# Wenn nicht unterschiedlich, dann Button anzeigen.
#1
$block_cur= get_block($row2[saaid], $jahrgang);
$block_cur= get_block($row2['saaid'], $jahrgang);
$result1 = $db->query("SELECT prio0, prio1
FROM stan_ag_wunsch_vw
WHERE uid= '$row2[uid]'
AND block='$block_cur'");
$row_standort = $result1->fetch_array();
if($row_standort[prio0] == NULL OR $row_standort[prio0] == ''){
$stelle_ag_standort = $row_standort[prio1];
if($row_standort['prio0'] == NULL OR $row_standort['prio0'] == ''){
$stelle_ag_standort = $row_standort['prio1'];
}else{
$stelle_ag_standort = $row_standort[prio0];
$stelle_ag_standort = $row_standort['prio0'];
}
#2
@ -756,7 +756,7 @@ oPopupBody.style.border = \"solid blue 1px\";
$row4 = $result4->fetch_array();
if($row4[vert_bereich] != $row3[vbid] AND $stelle_ag_standort != '' AND $stelle_ag_standort != '8888' AND $stelle_ag_standort != '9999'){
if($row4['vert_bereich'] != $row3['vbid'] AND $stelle_ag_standort != '' AND $stelle_ag_standort != '8888' AND $stelle_ag_standort != '9999'){
# Vertiefungsbereich wurde geändert
#$zuw_alle_sperre ='X';
@ -793,17 +793,17 @@ oPopupBody.style.border = \"solid blue 1px\";
# Wenn nicht unterschiedlich, dann Button anzeigen.
#1
$block_cur= get_block($row2[saaid], $jahrgang);
$block_cur= get_block($row2['saaid'], $jahrgang);
$result1 = $db->query("SELECT prio0, prio1
FROM stan_ag_wunsch_vw
WHERE uid= '$row2[uid]'
AND block='$block_cur'");
$row_standort = $result1->fetch_array();
if($row_standort[prio0] == NULL OR $row_standort[prio0] == ''){
$stelle_ag_standort = $row_standort[prio1];
if($row_standort['prio0'] == NULL OR $row_standort['prio0'] == ''){
$stelle_ag_standort = $row_standort['prio1'];
}else{
$stelle_ag_standort = $row_standort[prio0];
$stelle_ag_standort = $row_standort['prio0'];
}
#2
@ -822,7 +822,7 @@ oPopupBody.style.border = \"solid blue 1px\";
$row4 = $result4->fetch_array();
if($row4[vert_bereich] != $row3[vbid] AND $stelle_ag_standort != '' AND $stelle_ag_standort != '8888' AND $stelle_ag_standort != '9999'){
if($row4['vert_bereich'] != $row3['vbid'] AND $stelle_ag_standort != '' AND $stelle_ag_standort != '8888' AND $stelle_ag_standort != '9999'){
# Vertiefungsbereich wurde geändert
#$zuw_alle_sperre ='X';
@ -905,7 +905,7 @@ oPopupBody.style.border = \"solid blue 1px\";
$row_zuw = $result_zuw->fetch_array(); // Prüfen ob schon Änderungsanträge vorhanden
## Wenn mindest eine Stelle nicht bereits zugewiesen, dann muss der "Alle zuweisen" button aktiv sein
if($row_zuw[zuweisung] != 'Z'){
if($row_zuw['zuweisung'] != 'Z'){
$alle_zuw_aktiv = '1';
}
@ -1609,13 +1609,13 @@ if($row_akt[status] == '1' AND $row_akt[zuweisung] == NULL AND $row_akt[saaid] =
AND b.uid='$row_akt[uid]'
AND druckstatus ='N'");
$row_cur_uid_anz = $queryb->fetch_array();
if($row_cur_uid_anz[Anz] > 0){
if($row_cur_uid_anz['Anz'] > 0){
$queryc = $db->query ("SELECT hs
FROM stud
WHERE uid='$row_akt[uid]'");
$row_cur_hs = $queryc->fetch_array();
if($row_cur_hs[hs] == 'K' or $row_cur_hs[hs] == 'k'){
if($row_cur_hs['hs'] == 'K' or $row_cur_hs['hs'] == 'k'){
echo "Dokument: <a href='pdf_gen_kehl.php?uid=$row_akt[uid]' target='_blank'>drucken</a><br>
Mail: <a class='aformlink box' href='pdf_gen_mail.php?uid=$row_akt[uid]'>PDF per Mail versenden</a>
<br><br>";
@ -2717,4 +2717,4 @@ $row_stud = $result->fetch_array();
echo "<meta http-equiv=\"refresh\" content=\"0; URL=".$_SERVER['PHP_SELF'] ."?action=ubersicht&uid=$row_stud[uid]\">";
} // Ende Action script
?>
?>