kleine constant Fehler geändert

This commit is contained in:
aschwarz 2023-02-27 19:42:05 +01:00
parent bf2455f56d
commit 6f29ae3b4d
5 changed files with 34 additions and 34 deletions

View File

@ -273,7 +273,7 @@ select{
break; break;
case "bearb2": case "bearb2":
$stud = $_POST[stud]; $stud = $_POST['stud'];
$pos1 = strpos ($stud, '(')+1; $pos1 = strpos ($stud, '(')+1;
$pos2 = strpos ($stud, ')')-$pos1; $pos2 = strpos ($stud, ')')-$pos1;
@ -285,7 +285,7 @@ $mtknr=trim($str[0]);
$uid=trim($str[1]); $uid=trim($str[1]);
$vert = $_POST[vert]; $vert = $_POST['vert'];
$adresse = stripslashes( $_POST['Raum'] ); $adresse = stripslashes( $_POST['Raum'] );
$hinweis = stripslashes( $_POST['hinweis'] ); $hinweis = stripslashes( $_POST['hinweis'] );
$beg_std = $_POST['beg_std']; $beg_std = $_POST['beg_std'];
@ -295,7 +295,7 @@ $beg_sek = '00';
#setcookie("ck_beg_std",""); #setcookie("ck_beg_std","");
if($_POST[stud] == ''){ if($_POST['stud'] == ''){
echo " echo "
<html> <html>
<head> <head>
@ -368,7 +368,7 @@ $result = $db->query ("SELECT uid
$row_stud = $result->fetch_array(); $row_stud = $result->fetch_array();
if($row_stud[uid] == ''){ if($row_stud['uid'] == ''){
echo " echo "
<html> <html>
<head> <head>
@ -439,7 +439,7 @@ $result = $db->query ("SELECT uid
$row_stud2 = $result->fetch_array(); $row_stud2 = $result->fetch_array();
if($row_stud2[uid] != ''){ if($row_stud2['uid'] != ''){
echo " echo "
<html> <html>
<head> <head>

View File

@ -2072,44 +2072,44 @@ function get_data($pos, $uid1){
$rowdata3 = $result_data3->fetch_array(); $rowdata3 = $result_data3->fetch_array();
} }
$stellenart = $rowdata1[art]; $stellenart = $rowdata1['art'];
$abteilung = $rowdata1[abteilung]; $abteilung = $rowdata1['abteilung'];
$tel_abteilung = $rowdata1[tel_abteilung]; $tel_abteilung = $rowdata1['tel_abteilung'];
$bezeichnung = $rowdata3[bez]; $bezeichnung = $rowdata3['bez'];
$str = $rowdata3[str]; $str = $rowdata3['str'];
$plz = $rowdata3[plz]; $plz = $rowdata3['plz'];
$postfach = $rowdata3[postfach]; $postfach = $rowdata3['postfach'];
$plz_postfach = $rowdata3[plz_postfach]; $plz_postfach = $rowdata3['plz_postfach'];
$ort = $rowdata3[ort]; $ort = $rowdata3['ort'];
$bundesland = $rowdata3[bundesland]; $bundesland = $rowdata3['bundesland'];
$staat = $rowdata3[staat]; $staat = $rowdata3['staat'];
$result_data4 = $db->query("SELECT distinct saaid, vert_bereich FROM stan_antrag WHERE pos IN ('1', '2', '3') AND uid ='$uid1' ORDER BY saaid DESC LIMIT 1"); $result_data4 = $db->query("SELECT distinct saaid, vert_bereich FROM stan_antrag WHERE pos IN ('1', '2', '3') AND uid ='$uid1' ORDER BY saaid DESC LIMIT 1");
$rowdata4 = $result_data4->fetch_array(); $rowdata4 = $result_data4->fetch_array();
$vert1=$rowdata4[vert_bereich]; $vert1=$rowdata4['vert_bereich'];
$result_data4 = $db->query("SELECT distinct saaid, vert_bereich FROM stan_antrag WHERE pos IN ('4', '5', '6') AND uid ='$uid1' ORDER BY saaid DESC LIMIT 1"); $result_data4 = $db->query("SELECT distinct saaid, vert_bereich FROM stan_antrag WHERE pos IN ('4', '5', '6') AND uid ='$uid1' ORDER BY saaid DESC LIMIT 1");
$rowdata4 = $result_data4->fetch_array(); $rowdata4 = $result_data4->fetch_array();
$vert2=$rowdata4[vert_bereich]; $vert2=$rowdata4['vert_bereich'];
$result_data4 = $db->query("SELECT distinct saaid, vert_bereich FROM stan_antrag WHERE pos IN ('7', '8', '9') AND uid ='$uid1' ORDER BY saaid DESC LIMIT 1"); $result_data4 = $db->query("SELECT distinct saaid, vert_bereich FROM stan_antrag WHERE pos IN ('7', '8', '9') AND uid ='$uid1' ORDER BY saaid DESC LIMIT 1");
$rowdata4 = $result_data4->fetch_array(); $rowdata4 = $result_data4->fetch_array();
$vert3=$rowdata4[vert_bereich]; $vert3=$rowdata4['vert_bereich'];
$result_data4 = $db->query("SELECT distinct saaid, vert_bereich FROM stan_antrag WHERE pos IN ('10', '11', '12') AND uid ='$uid1' ORDER BY saaid DESC LIMIT 1"); $result_data4 = $db->query("SELECT distinct saaid, vert_bereich FROM stan_antrag WHERE pos IN ('10', '11', '12') AND uid ='$uid1' ORDER BY saaid DESC LIMIT 1");
$rowdata4 = $result_data4->fetch_array(); $rowdata4 = $result_data4->fetch_array();
$vert4=$rowdata4[vert_bereich]; $vert4=$rowdata4['vert_bereich'];
$beg_tag = $rowdata1[beg_tag]; $beg_tag = $rowdata1['beg_tag'];
$beg_mon = $rowdata1[beg_mon]; $beg_mon = $rowdata1['beg_mon'];
$beg_jahr = $rowdata1[beg_jahr]; $beg_jahr = $rowdata1['beg_jahr'];
$end_tag = $rowdata1[end_tag]; $end_tag = $rowdata1['end_tag'];
$end_mon = $rowdata1[end_mon]; $end_mon = $rowdata1['end_mon'];
$end_jahr = $rowdata1[end_jahr]; $end_jahr = $rowdata1['end_jahr'];
return array( $stellenart return array( $stellenart
, $abteilung , $abteilung
@ -2293,7 +2293,7 @@ oPopupBody.style.border = \"solid blue 1px\";
<form action="; echo $_SERVER['PHP_SELF'] . "?action=bearb2"; echo" method=\"POST\" name='searchform'>"; <form action="; echo $_SERVER['PHP_SELF'] . "?action=bearb2"; echo" method=\"POST\" name='searchform'>";
//Daten an entsprechender Position auslesen über Funktion //Daten an entsprechender Position auslesen über Funktion
$data = get_data($row_stud[pos], $row_stud[uid]); $data = get_data($row_stud['pos'], $row_stud['uid']);
$art = $data[0]; $art = $data[0];
$abteilung = $data[1]; $abteilung = $data[1];
$tel_abteilung = $data[2]; $tel_abteilung = $data[2];
@ -2316,7 +2316,7 @@ $end_tag = $data[18];
$end_mon = $data[19]; $end_mon = $data[19];
$end_jahr = $data[20]; $end_jahr = $data[20];
switch($row_stud[pos]){ switch($row_stud['pos']){
case 1: case 1:
$vert = $vert1; $vert = $vert1;
break; break;
@ -2385,7 +2385,7 @@ echo"
<option value='x' selected>Bitte wählen Sie einen Vertiefungsbereich&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</option>"; <option value='x' selected>Bitte wählen Sie einen Vertiefungsbereich&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</option>";
while ($row1 = $result1->fetch_array()){ while ($row1 = $result1->fetch_array()){
echo "<option value='$row1[vbid]'";if($row1[vbid] == $vert){echo " selected ";} echo">$row1[bezeichnung]&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</option>\n"; echo "<option value='$row1[vbid]'";if($row1['vbid'] == $vert){echo " selected ";} echo">$row1[bezeichnung]&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</option>\n";
} }
echo"</select> echo"</select>
</td> </td>
@ -2415,7 +2415,7 @@ echo"
or die ("Cannot execute query"); or die ("Cannot execute query");
echo "<select class='select_form' size=\"5\" name=\"stellenart1\" id='stellenart1'>"; echo "<select class='select_form' size=\"5\" name=\"stellenart1\" id='stellenart1'>";
while ($row1 = $result1->fetch_array()){ while ($row1 = $result1->fetch_array()){
echo "<option value='$row1[artid]'";if($row1[artid] == 1){echo "selected";}elseif($row1[artid] == $art){echo " selected ";} echo">$row1[bezeichnung]&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</option>\n"; echo "<option value='$row1[artid]'";if($row1['artid'] == 1){echo "selected";}elseif($row1[artid] == $art){echo " selected ";} echo">$row1[bezeichnung]&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</option>\n";
} }
echo"</select> echo"</select>

View File

@ -514,7 +514,7 @@ oPopupBody.style.border = \"solid blue 1px\";
echo "<tr> echo "<tr>
<td>$stell_bez[bezeichnung]</td> <td>$stell_bez[bezeichnung]</td>
<td>"; <td>";
if($anzahl_bereich[Treffer] != 1){ if($anzahl_bereich['Treffer'] != 1){
echo "<font color=green><b>OK</b></font>"; echo "<font color=green><b>OK</b></font>";
}else{ }else{
$fehler = 'X'; $fehler = 'X';

View File

@ -795,7 +795,7 @@ oPopupBody.style.border = \"solid blue 1px\";
$days = 0; $days = 0;
$gestage = 0; $gestage = 0;
while ($rowdat = $resultdat->fetch_array()){ while ($rowdat = $resultdat->fetch_array()){
$days = floor((strtotime($rowdat[ende]) - strtotime($rowdat[beginn]))/86400); $days = floor((strtotime($rowdat['ende']) - strtotime($rowdat['beginn']))/86400);
$gestage = $gestage + $days; $gestage = $gestage + $days;
} }

View File

@ -54,7 +54,7 @@ $pdf->Line(5.3, 211, 9, 211);
$pdf->SetFont('Arial', '', 11); $pdf->SetFont('Arial', '', 11);
$pdf->SetY(61.3); $pdf->SetY(61.3);
$pdf->SetX(24); $pdf->SetX(24);
if($row_hs['hs'] == 'K' or $row_hs[hs] == 'k'){ if($row_hs['hs'] == 'K' or $row_hs['hs'] == 'k'){
$pdf->MultiCell(0, 4.5, "Hochschule Kehl\nPostfach 1549\n77675 Kehl", 0, 'L'); $pdf->MultiCell(0, 4.5, "Hochschule Kehl\nPostfach 1549\n77675 Kehl", 0, 'L');
}else{ }else{
$pdf->MultiCell(0, 4.5, "Hochschule Ludwigsburg\nZulassungsamt\nReuteallee 36\n71634 Ludwigsburg", 0, 'L'); $pdf->MultiCell(0, 4.5, "Hochschule Ludwigsburg\nZulassungsamt\nReuteallee 36\n71634 Ludwigsburg", 0, 'L');
@ -249,7 +249,7 @@ $pdf->MultiCell(7, 5, "1.", 0, 'L');
$pdf->SetFont('Arial', 'B', 12); $pdf->SetFont('Arial', 'B', 12);
$pdf->SetY($pos); $pdf->SetY($pos);
$pdf->SetX(31); $pdf->SetX(31);
if($row_hs['hs'] == 'K' or $row_hs[hs] == 'k'){ if($row_hs['hs'] == 'K' or $row_hs['hs'] == 'k'){
$pdf->MultiCell(160, 5, "Die Hinweise der Hochschule Kehl zur praktischen Ausbildung gem. § 23 AprOVw gD (Praxisjahr) habe ich zur Kenntnis genommen.", 0, 'L'); $pdf->MultiCell(160, 5, "Die Hinweise der Hochschule Kehl zur praktischen Ausbildung gem. § 23 AprOVw gD (Praxisjahr) habe ich zur Kenntnis genommen.", 0, 'L');
}else{ }else{
$pdf->MultiCell(160, 5, "Die Hinweise der Hochschule Ludwigsburg zur praktischen Ausbildung gem. § 23 AprOVw gD (Praxisjahr) habe ich zur Kenntnis genommen.", 0, 'L'); $pdf->MultiCell(160, 5, "Die Hinweise der Hochschule Ludwigsburg zur praktischen Ausbildung gem. § 23 AprOVw gD (Praxisjahr) habe ich zur Kenntnis genommen.", 0, 'L');