kleine constant Fehler geändert

This commit is contained in:
aschwarz 2023-03-01 16:55:01 +01:00
parent b41c65471a
commit 7ff1e141ed
4 changed files with 17 additions and 17 deletions

View File

@ -182,7 +182,7 @@ echo "
exit; exit;
} }
if ($_POST['user'] != $row[user]) { if ($_POST['user'] != $row['user']) {
echo" echo"
<html> <html>
<head> <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 " echo "
<html> <html>
<head> <head>
@ -314,7 +314,7 @@ exit;
} }
setcookie("user_admin",""); setcookie("user_admin","");
setcookie("user_admin",$row[user]); setcookie("user_admin",$row['user']);
echo " echo "
<meta http-equiv=\"refresh\" content=\"0; URL=hauptframe.htm\"> <meta http-equiv=\"refresh\" content=\"0; URL=hauptframe.htm\">

View File

@ -45,7 +45,7 @@ echo"
or die ("Cannot execute query"); or die ("Cannot execute query");
echo "<p align=\"center\"><select size=\"5\" name=\"jahr\">"; echo "<p align=\"center\"><select size=\"5\" name=\"jahr\">";
while ($row = $result->fetch_array()){ 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 "</select>";
echo " echo "

View File

@ -145,7 +145,7 @@ $abfrage = "SELECT stud.uid, Vorname, Nachname, AG, Jahrgang
AND stud.durchgefallen!='Y' AND stud.durchgefallen!='Y'
"; ";
setcookie ("ck_ProsID", $_POST[ausw_ausg]); setcookie ("ck_ProsID", $_POST['ausw_ausg']);
echo " echo "
<html> <html>

View File

@ -43,20 +43,20 @@ $tplidx = $pdf->ImportPage(1);
while ($row = $result->fetch_array()){ while ($row = $result->fetch_array()){
// Definitionen // 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){ if ($Jahr2 < 10){
$Jahr2='0'.$Jahr2; // wenn Jahr2 unter 10 ist eine Prefix 0 anf&uuml;gen, damit es zb. 20'05' gibt $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,0" AND $row['Note'] <="1,5"){$ergebnis="sehr gut";}
if($row[Note] >= "1,6" AND $row[Note] <="2,5"){$ergebnis="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'] >= "2,6" AND $row['Note'] <="3,5"){$ergebnis="befriedigend";}
if($row[Note] >= "3,6" AND $row[Note] <="4,0"){$ergebnis="ausreichend";} 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'] >= "4,1" AND $row['Note'] <="5,0"){$ergebnis="nicht ausreichend";}
@ -76,7 +76,7 @@ while ($row = $result->fetch_array()){
$pdf->SetFont('ARIAL', 'B', 14); $pdf->SetFont('ARIAL', 'B', 14);
$pdf->SetY(97); $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); $pdf->SetFont('ARIAL', '', 12);
@ -102,7 +102,7 @@ while ($row = $result->fetch_array()){
$pos = $pdf->GetY()+6; $pos = $pdf->GetY()+6;
$pdf->SetY($pos); $pdf->SetY($pos);
$pdf->SetX(10); $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; $pos = $pdf->GetY()+12;
@ -164,7 +164,7 @@ while ($row = $result->fetch_array()){
//$pdf->Image('fusszeile.jpg', 20, 267, 5.1, 12.7); //$pdf->Image('fusszeile.jpg', 20, 267, 5.1, 12.7);
$PDF_Name = "Proseminar_" . $row[FPRNr] . '_' . $row[Jahrgang] . ".pdf"; $PDF_Name = "Proseminar_" . $row['FPRNr'] . '_' . $row['Jahrgang'] . ".pdf";
} }