kleine constant Fehler geändert

This commit is contained in:
aschwarz 2023-03-01 16:54:22 +01:00
parent f03a2f1ec4
commit 7c25e6c4d2
5 changed files with 30 additions and 30 deletions

View File

@ -141,7 +141,7 @@ $abfrage = "SELECT stud.uid, Vorname, Nachname, AG, Jahrgang
AND stud.durchgefallen!='Y'
";
setcookie ("ck_ProsID", $_POST[ausw_ausg]);
setcookie ("ck_ProsID", $_POST['ausw_ausg']);
echo "
<html>
@ -201,18 +201,18 @@ echo "
</td>
<td width=\"10%\" align=\"center\" style=\"padding-left:4; padding-right:4; padding-top:1; padding-bottom:1; border-left-style:solid; border-left-width:1\" height=\"21\">
<p style=\"margin-top: 4; margin-bottom: 4\" align=\"left\">";
if ($daten[Note] != 'NULL'){
if ($daten['Note'] != 'NULL'){
echo "$daten[Note]";}
echo"
</td>
<td width=\"15%\" align=\"center\" style=\"padding-left:4; padding-right:4; padding-top:1; padding-bottom:1; border-left-style:solid; border-left-width:1\" height=\"21\">
<p style=\"margin-top: 4; margin-bottom: 4\" align=\"left\">";
if($daten[Note] >= "1,0" AND $daten[Note] <="1,5"){$notenwort="sehr gut";}
if($daten[Note] >= "1,6" AND $daten[Note] <="2,5"){$notenwort="gut";}
if($daten[Note] >= "2,6" AND $daten[Note] <="3,5"){$notenwort="befriedigend";}
if($daten[Note] >= "3,6" AND $daten[Note] <="4,0"){$notenwort="ausreichend";}
if($daten[Note] >= "4,1" AND $daten[Note] <="5,0"){$notenwort="nicht ausreichend";}
if($daten['Note'] >= "1,0" AND $daten['Note'] <="1,5"){$notenwort="sehr gut";}
if($daten['Note'] >= "1,6" AND $daten['Note'] <="2,5"){$notenwort="gut";}
if($daten['Note'] >= "2,6" AND $daten['Note'] <="3,5"){$notenwort="befriedigend";}
if($daten['Note'] >= "3,6" AND $daten['Note'] <="4,0"){$notenwort="ausreichend";}
if($daten['Note'] >= "4,1" AND $daten['Note'] <="5,0"){$notenwort="nicht ausreichend";}
echo"
$notenwort
@ -226,4 +226,4 @@ echo "
</html>";
} //Ende Action Abfrage
?>
?>

View File

@ -44,20 +44,20 @@ $tplidx = $pdf->ImportPage(1);
while ($row = $result->fetch_array()){
// Definitionen
$Jahr = $row[Jahrgang];
$Jahr = $row['Jahrgang'];
$Jahr2 = $row[Jahrgang] + 1; //wandelt '04' in '5' umd
$Jahr2 = $row['Jahrgang'] + 1; //wandelt '04' in '5' umd
if ($Jahr2 < 10){
$Jahr2='0'.$Jahr2; // wenn Jahr2 unter 10 ist eine Prefix 0 anf&uuml;gen, damit es zb. 20'05' gibt
}
if($row[Note] >= "1,0" AND $row[Note] <="1,5"){$ergebnis="sehr gut";}
if($row[Note] >= "1,6" AND $row[Note] <="2,5"){$ergebnis="gut";}
if($row[Note] >= "2,6" AND $row[Note] <="3,5"){$ergebnis="befriedigend";}
if($row[Note] >= "3,6" AND $row[Note] <="4,0"){$ergebnis="ausreichend";}
if($row[Note] >= "4,1" AND $row[Note] <="5,0"){$ergebnis="nicht ausreichend";}
if($row['Note'] >= "1,0" AND $row['Note'] <="1,5"){$ergebnis="sehr gut";}
if($row['Note'] >= "1,6" AND $row['Note'] <="2,5"){$ergebnis="gut";}
if($row['Note'] >= "2,6" AND $row['Note'] <="3,5"){$ergebnis="befriedigend";}
if($row['Note'] >= "3,6" AND $row['Note'] <="4,0"){$ergebnis="ausreichend";}
if($row['Note'] >= "4,1" AND $row['Note'] <="5,0"){$ergebnis="nicht ausreichend";}
@ -77,7 +77,7 @@ while ($row = $result->fetch_array()){
$pdf->SetFont('ARIAL', 'B', 14);
$pdf->SetY(97);
$pdf->Cell(0, 0, $row[vorname] . ' ' . $row[nachname], 0, 0, 'C');
$pdf->Cell(0, 0, $row['vorname'] . ' ' . $row['nachname'], 0, 0, 'C');
$pdf->SetFont('ARIAL', '', 12);
@ -102,7 +102,7 @@ while ($row = $result->fetch_array()){
$pos = $pdf->GetY()+6;
$pdf->SetY($pos);
$pdf->SetX(10);
$pdf->Cell(0, 0, $row[ansprechpart], 0, 0, 'C');
$pdf->Cell(0, 0, $row['ansprechpart'], 0, 0, 'C');
$pos = $pdf->GetY()+12;
@ -153,7 +153,7 @@ while ($row = $result->fetch_array()){
//$pdf->Image('fusszeile.jpg', 20, 267, 5.1, 12.7);
$PDF_Name = "Fachprojekt_" . $row[FPRNr] . '_' . $row[Jahrgang] . ".pdf";
$PDF_Name = "Fachprojekt_" . $row['FPRNr'] . '_' . $row['Jahrgang'] . ".pdf";
}

View File

@ -182,7 +182,7 @@ echo "
exit;
}
if ($_POST['user'] != $row[user]) {
if ($_POST['user'] != $row['user']) {
echo"
<html>
<head>
@ -248,7 +248,7 @@ exit;
}
if (md5($_POST['passwort']) != $row[passwort]){ //verschl&uuml;sseltes Passwort &uuml;berpr&uuml;fen
if (md5($_POST['passwort']) != $row['passwort']){ //verschl&uuml;sseltes Passwort &uuml;berpr&uuml;fen
echo "
<html>
<head>
@ -314,7 +314,7 @@ exit;
}
setcookie("user_admin","");
setcookie("user_admin",$row[user]);
setcookie("user_admin",$row['user']);
echo "
<meta http-equiv=\"refresh\" content=\"0; URL=hauptframe.htm\">

View File

@ -45,7 +45,7 @@ echo"
or die ("Cannot execute query");
echo "<p align=\"center\"><select size=\"5\" name=\"jahr\">";
while ($row = $result->fetch_array()){
echo "<option value='$row[Jahrgang]'";if ($row[Jahrgang] == $jahrgang){echo " selected";} echo ">".$row['Jahrgang']."&nbsp;&nbsp;</option>\n";
echo "<option value='$row[Jahrgang]'";if ($row['Jahrgang'] == $jahrgang){echo " selected";} echo ">".$row['Jahrgang']."&nbsp;&nbsp;</option>\n";
}
echo "</select>";
echo "
@ -91,4 +91,4 @@ setcookie("jahrgang",$_POST['jahr']);
";
} // Ende Action script
?>
?>

View File

@ -223,27 +223,27 @@ $lv_plz = 'false';
$lv_ort = 'false';
$lv_ag = 'false';
if ($row2[vorname] != $_POST[Vorname]){
if ($row2['vorname'] != $_POST['Vorname']){
$lv_vorname = 'true';
}
if ($row2[nachname] != $_POST[Nachname]){
if ($row2['nachname'] != $_POST['Nachname']){
$lv_nachname = 'true';
}
if ($row2[postrasse] != $_POST[strasse]){
if ($row2['postrasse'] != $_POST['strasse']){
$lv_strasse = 'true';
}
if ($row2[poplz] != $_POST[plz]){
if ($row2['poplz'] != $_POST['plz']){
$lv_plz = 'true';
}
if ($row2[poort] != $_POST[ort]){
if ($row2['poort'] != $_POST['ort']){
$lv_ort = 'true';
}
if ($row2[ag] != $_POST[AG]){
if ($row2['ag'] != $_POST['AG']){
$lv_ag = 'true';
}
@ -476,4 +476,4 @@ echo "
</body>
</html>";
} // Ende Action
?>
?>