kleine constant Fehler geändert

This commit is contained in:
aschwarz 2023-03-01 16:54:11 +01:00
parent 8ee69a4677
commit 042f36cefb
2 changed files with 9 additions and 9 deletions

View File

@ -134,7 +134,7 @@ case "bearbeiten":
$db = dbconnect();
$sel_pros = $db->query("SELECT * FROM skik_kurs where id='$_POST[aus_bearb]'");
$pros = $sel_pros->fetch_array();
setcookie("ck_prosbearbeiten", $_POST[aus_bearb]);
setcookie("ck_prosbearbeiten", $_POST['aus_bearb']);
echo "
@ -272,8 +272,8 @@ echo "
<b>Art*:</b>
</td>
<td width=\"60%\" align=\"left\">
<label for=\"r1\"><input type=\"radio\" id='r1' name=\"art\"";if($pros[art] == 'SK'){echo " checked ";} echo" value='SK' size=\"55\"> Sprachkurs</label><br>
<label for=\"r2\"><input type=\"radio\" id='r2' name=\"art\"";if($pros[art] == 'IK'){echo " checked ";} echo" value='IK' size=\"55\"> Interkulturelle Kompetenzen</label><br>
<label for=\"r1\"><input type=\"radio\" id='r1' name=\"art\"";if($pros['art'] == 'SK'){echo " checked ";} echo" value='SK' size=\"55\"> Sprachkurs</label><br>
<label for=\"r2\"><input type=\"radio\" id='r2' name=\"art\"";if($pros['art'] == 'IK'){echo " checked ";} echo" value='IK' size=\"55\"> Interkulturelle Kompetenzen</label><br>
</td>
</tr>
<tr>
@ -422,7 +422,7 @@ echo "
break;
case "bearbeiten1":
if ($_POST[I] == "" and $_POST[R] == "" and $_POST[F] == "" and $_POST[S] == ""){ // mind. 1 Zweig muss angegeben werden. Getrennt durch and
if ($_POST['I'] == "" and $_POST['R'] == "" and $_POST['F'] == "" and $_POST['S'] == ""){ // mind. 1 Zweig muss angegeben werden. Getrennt durch and
echo "
<html>
<head>
@ -485,7 +485,7 @@ exit;
}
if ($_POST[FPR_Nr] == ""or $_POST[Bezeichnung] == "" or $_POST[art] == "" or $_POST[max_t] == "" or $_POST[Dozent] == "" or $_POST[jahr] == ""){
if ($_POST['FPR_Nr'] == ""or $_POST['Bezeichnung'] == "" or $_POST['art'] == "" or $_POST['max_t'] == "" or $_POST['Dozent'] == "" or $_POST['jahr'] == ""){
echo"
<html>
<head>
@ -548,7 +548,7 @@ exit;
} // Ende wenn Pflichtfelder nicht ausgef&uuml;llt wurden
if ($_POST[art] == "SK" AND $_POST[niveau] == ""){
if ($_POST['art'] == "SK" AND $_POST['niveau'] == ""){
echo"
<html>
<head>
@ -654,7 +654,7 @@ $sql_id = $db->query("select id from skik_kurs where FPRNr='$_POST[FPR_Nr]' and
$id = $sql_id->fetch_array();
$Dozent = $_POST[Dozent]; // Vom Formular gesendetes Objekt in Variable schreiben
$Dozent = $_POST['Dozent']; // Vom Formular gesendetes Objekt in Variable schreiben
for ($i=0;$i<sizeof($Dozent);$i++) { // Schleife, der die Dozenten aufaddiert bis alle ausgew&auml;hlen abgearbeitet sind.
$sql = "INSERT INTO skik_doz ( id , doz_nr )VALUES ( '$id[id]', '$Dozent[$i]' )";

View File

@ -149,7 +149,7 @@ select{
echo "<select id='dozent' name='dozent'>
<option value='%'>(alle)</option>";
while ($row = $result->fetch_array()){
echo "<option value=\"".$row[doz_nr]."\">$row[doz_name], $row[doz_vorname]&nbsp;&nbsp;&nbsp;$row[doz_titel]&nbsp;&nbsp;&nbsp;</option>\n";
echo "<option value=\"".$row['doz_nr']."\">$row[doz_name], $row[doz_vorname]&nbsp;&nbsp;&nbsp;$row[doz_titel]&nbsp;&nbsp;&nbsp;</option>\n";
}
echo"
@ -478,4 +478,4 @@ body,td,div,.p,a{font-family:arial,sans-serif}
} // If Anweisung Action-Abfrage
?>
?>