diff --git a/admin/bearbeiten.php b/admin/bearbeiten.php index 5762b46..e83e490 100755 --- a/admin/bearbeiten.php +++ b/admin/bearbeiten.php @@ -264,11 +264,11 @@ if ( $row1EW=$resEW->fetch_array() ) { $result_istEW=$row1EW[0]; } else $result_istEW=0; } else $result_istEW=0; -echo $result_istEW; echo "/"; echo $rowEW[TN_max]; +echo $result_istEW; echo "/"; echo $rowEW['TN_max']; echo ""; -if ($result_istEW >= $rowEW[TN_max]) +if ($result_istEW >= $rowEW['TN_max']) { echo ""; } else { @@ -290,11 +290,11 @@ if ( $row1ZW=$resZW->fetch_array() ) { $result_istZW=$row1ZW[0]; } else $result_istZW=0; } else $result_istZW=0; -echo $result_istZW; echo "/"; echo $rowZW[TN_max]; +echo $result_istZW; echo "/"; echo $rowZW['TN_max']; echo ""; -if ($result_istZW >= $rowZW[TN_max]) +if ($result_istZW >= $rowZW['TN_max']) { echo ""; } else { @@ -316,11 +316,11 @@ if ( $row1DW=$resDW->fetch_array() ) { $result_istDW=$row1DW[0]; } else $result_istDW=0; } else $result_istDW=0; -echo $result_istDW; echo "/"; echo $rowDW[TN_max]; +echo $result_istDW; echo "/"; echo $rowDW['TN_max']; echo ""; -if ($result_istDW >= $rowDW[TN_max]) +if ($result_istDW >= $rowDW['TN_max']) { echo ""; } else { @@ -343,11 +343,11 @@ if ( $row1VW=$resVW->fetch_array() ) { $result_istVW=$row1VW[0]; } else $result_istVW=0; } else $result_istVW=0; -echo $result_istVW; echo "/"; echo $rowVW[TN_max]; +echo $result_istVW; echo "/"; echo $rowVW['TN_max']; echo ""; -if ($result_istVW >= $rowVW[TN_max]) +if ($result_istVW >= $rowVW['TN_max']) { echo ""; } else { @@ -457,4 +457,4 @@ echo " "; } //Ende Action Abfrage -?> \ No newline at end of file +?> diff --git a/admin/stud_neubelegen.php b/admin/stud_neubelegen.php index bc53978..a45c225 100755 --- a/admin/stud_neubelegen.php +++ b/admin/stud_neubelegen.php @@ -147,7 +147,7 @@ select{ ".$row['nachname'].", " .$row['vorname'].""; - IF ($row[durchgefallen] == "Y") + IF ($row['durchgefallen'] == "Y") echo " *"; echo " @@ -234,8 +234,8 @@ case "beleg1": -if($_POST[stud]!=''){ - $stud = $_POST[stud]; +if($_POST['stud']!=''){ + $stud = $_POST['stud']; $pos1 = strpos ($stud, '(')+1; $pos2 = strpos ($stud, ')')-$pos1; @@ -248,7 +248,7 @@ if($_POST[stud]!=''){ - if($_POST[stud] == ''){ + if($_POST['stud'] == ''){ echo " @@ -311,7 +311,7 @@ if($_POST[stud]!=''){ } } -if($_POST[studbe] != ''){ // Wenn Stud über dropdown gewählt wurde +if($_POST['studbe'] != ''){ // Wenn Stud über dropdown gewählt wurde $db = dbconnect(); $result = $db->query("SELECT uid, stg, vorname, nachname FROM stud @@ -422,10 +422,10 @@ echo " - Finanzverwaltung - Rentenversicherung - Innenverwaltung - Steuerverwaltung + Finanzverwaltung + Rentenversicherung + Innenverwaltung + Steuerverwaltung @@ -499,7 +499,7 @@ echo " break; case "beleg2": -if ($_POST[zweig] == "" or $_POST[ag] == "" or $_POST[jahr] == "" or $_POST[mail] == "" ){ +if ($_POST['zweig'] == "" or $_POST['ag'] == "" or $_POST['jahr'] == "" or $_POST['mail'] == "" ){ echo" @@ -572,8 +572,8 @@ $db = dbconnect(); $uid = $_COOKIE["ck_studbe"]; //Cookie in Variable schreiben -$jahr_neu = $_POST[jahr]; -$stg = $_POST[zweig]; +$jahr_neu = $_POST['jahr']; +$stg = $_POST['zweig']; $sql = $db->query ("UPDATE stud SET stg='$stg' @@ -767,7 +767,7 @@ echo " break; case "beleg3": -$Prio0 = $_POST[FPRNr_Prio0]; +$Prio0 = $_POST['FPRNr_Prio0']; if($Prio0 == "") { @@ -992,4 +992,4 @@ echo " } // Ende Action script -?> \ No newline at end of file +?>