kleine constant Fehler geändert

This commit is contained in:
aschwarz 2023-03-14 08:08:16 +01:00
parent 2158fc84ce
commit d075d2b9a0
2 changed files with 23 additions and 23 deletions

View File

@ -264,11 +264,11 @@ if ( $row1EW=$resEW->fetch_array() ) {
$result_istEW=$row1EW[0]; $result_istEW=$row1EW[0];
} else $result_istEW=0; } else $result_istEW=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 "<br>"; echo "<br>";
if ($result_istEW >= $rowEW[TN_max]) if ($result_istEW >= $rowEW['TN_max'])
{ {
echo "<img border=\"0\" src=\"cross.jpg\">"; echo "<img border=\"0\" src=\"cross.jpg\">";
} else { } else {
@ -290,11 +290,11 @@ if ( $row1ZW=$resZW->fetch_array() ) {
$result_istZW=$row1ZW[0]; $result_istZW=$row1ZW[0];
} else $result_istZW=0; } else $result_istZW=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 "<br>"; echo "<br>";
if ($result_istZW >= $rowZW[TN_max]) if ($result_istZW >= $rowZW['TN_max'])
{ {
echo "<img border=\"0\" src=\"cross.jpg\">"; echo "<img border=\"0\" src=\"cross.jpg\">";
} else { } else {
@ -316,11 +316,11 @@ if ( $row1DW=$resDW->fetch_array() ) {
$result_istDW=$row1DW[0]; $result_istDW=$row1DW[0];
} else $result_istDW=0; } else $result_istDW=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 "<br>"; echo "<br>";
if ($result_istDW >= $rowDW[TN_max]) if ($result_istDW >= $rowDW['TN_max'])
{ {
echo "<img border=\"0\" src=\"cross.jpg\">"; echo "<img border=\"0\" src=\"cross.jpg\">";
} else { } else {
@ -343,11 +343,11 @@ if ( $row1VW=$resVW->fetch_array() ) {
$result_istVW=$row1VW[0]; $result_istVW=$row1VW[0];
} else $result_istVW=0; } else $result_istVW=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 "<br>"; echo "<br>";
if ($result_istVW >= $rowVW[TN_max]) if ($result_istVW >= $rowVW['TN_max'])
{ {
echo "<img border=\"0\" src=\"cross.jpg\">"; echo "<img border=\"0\" src=\"cross.jpg\">";
} else { } else {
@ -457,4 +457,4 @@ echo "
"; ";
} //Ende Action Abfrage } //Ende Action Abfrage
?> ?>

View File

@ -147,7 +147,7 @@ select{
<option value=\"".$row[0]."\"> <option value=\"".$row[0]."\">
".$row['nachname'].",&nbsp;" ".$row['nachname'].",&nbsp;"
.$row['vorname'].""; .$row['vorname']."";
IF ($row[durchgefallen] == "Y") IF ($row['durchgefallen'] == "Y")
echo " *"; echo " *";
echo " echo "
@ -234,8 +234,8 @@ case "beleg1":
if($_POST[stud]!=''){ if($_POST['stud']!=''){
$stud = $_POST[stud]; $stud = $_POST['stud'];
$pos1 = strpos ($stud, '(')+1; $pos1 = strpos ($stud, '(')+1;
$pos2 = strpos ($stud, ')')-$pos1; $pos2 = strpos ($stud, ')')-$pos1;
@ -248,7 +248,7 @@ if($_POST[stud]!=''){
if($_POST[stud] == ''){ if($_POST['stud'] == ''){
echo " echo "
<html> <html>
<head> <head>
@ -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(); $db = dbconnect();
$result = $db->query("SELECT uid, stg, vorname, nachname $result = $db->query("SELECT uid, stg, vorname, nachname
FROM stud FROM stud
@ -422,10 +422,10 @@ echo "
</td> </td>
<td width=\"60%\" align=\"left\"> <td width=\"60%\" align=\"left\">
<select size=\"5\" name=\"zweig\"> <select size=\"5\" name=\"zweig\">
<option value=\"F\""; if ($stud[stg] == 'F'){echo " selected";} echo ">Finanzverwaltung &nbsp;&nbsp;&nbsp;</option> <option value=\"F\""; if ($stud['stg'] == 'F'){echo " selected";} echo ">Finanzverwaltung &nbsp;&nbsp;&nbsp;</option>
<option value=\"R\""; if ($stud[stg] == 'R'){echo " selected";} echo ">Rentenversicherung &nbsp;&nbsp;&nbsp;</option> <option value=\"R\""; if ($stud['stg'] == 'R'){echo " selected";} echo ">Rentenversicherung &nbsp;&nbsp;&nbsp;</option>
<option value=\"I\""; if ($stud[stg] == 'I'){echo " selected";} echo ">Innenverwaltung &nbsp;&nbsp;&nbsp;</option> <option value=\"I\""; if ($stud['stg'] == 'I'){echo " selected";} echo ">Innenverwaltung &nbsp;&nbsp;&nbsp;</option>
<option value=\"S\""; if ($stud[stg] == 'S'){echo " selected";} echo ">Steuerverwaltung &nbsp;&nbsp;&nbsp;</option> <option value=\"S\""; if ($stud['stg'] == 'S'){echo " selected";} echo ">Steuerverwaltung &nbsp;&nbsp;&nbsp;</option>
</select> </select>
</td> </td>
</tr> </tr>
@ -499,7 +499,7 @@ echo "
break; break;
case "beleg2": 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" echo"
<html> <html>
<head> <head>
@ -572,8 +572,8 @@ $db = dbconnect();
$uid = $_COOKIE["ck_studbe"]; //Cookie in Variable schreiben $uid = $_COOKIE["ck_studbe"]; //Cookie in Variable schreiben
$jahr_neu = $_POST[jahr]; $jahr_neu = $_POST['jahr'];
$stg = $_POST[zweig]; $stg = $_POST['zweig'];
$sql = $db->query ("UPDATE stud SET $sql = $db->query ("UPDATE stud SET
stg='$stg' stg='$stg'
@ -767,7 +767,7 @@ echo "
break; break;
case "beleg3": case "beleg3":
$Prio0 = $_POST[FPRNr_Prio0]; $Prio0 = $_POST['FPRNr_Prio0'];
if($Prio0 == "") if($Prio0 == "")
{ {
@ -992,4 +992,4 @@ echo "
} // Ende Action script } // Ende Action script
?> ?>