kleine constant Fehler geändert
This commit is contained in:
parent
366b1d22de
commit
7de948b740
@ -679,7 +679,7 @@ echo"
|
||||
<option value='x' selected>Bitte wählen Sie einen Vertiefungsbereich </option>";
|
||||
while ($row1 = $result1->fetch_array()){
|
||||
|
||||
echo "<option value='$row1[vbid]'";if($row1[vbid] == $vert){echo " selected ";} echo">$row1[bezeichnung] </option>\n";
|
||||
echo "<option value='$row1[vbid]'";if($row1['vbid'] == $vert){echo " selected ";} echo">$row1[bezeichnung] </option>\n";
|
||||
}
|
||||
echo"</select>
|
||||
</td>
|
||||
@ -719,7 +719,7 @@ echo"
|
||||
or die ("Cannot execute query");
|
||||
echo "<select class='select_form' size=\"1\" name=\"stellenart1\" id='stellenart1'>";
|
||||
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] </option>\n";
|
||||
echo "<option value='$row1[artid]'";if($row1['artid'] == 1){echo "selected";}elseif($row1['artid'] == $art){echo " selected ";} echo">$row1[bezeichnung] </option>\n";
|
||||
}
|
||||
|
||||
echo"</select>
|
||||
@ -1367,7 +1367,7 @@ echo"
|
||||
<option value='x' selected>Bitte wählen Sie einen Vertiefungsbereich </option>";
|
||||
while ($row1 = $result1->fetch_array()){
|
||||
|
||||
echo "<option value='$row1[vbid]'";if($row1[vbid] == $vert){echo " selected ";} echo">$row1[bezeichnung] </option>\n";
|
||||
echo "<option value='$row1[vbid]'";if($row1['vbid'] == $vert){echo " selected ";} echo">$row1[bezeichnung] </option>\n";
|
||||
}
|
||||
echo"
|
||||
</td></select>
|
||||
@ -1409,7 +1409,7 @@ echo"
|
||||
or die ("Cannot execute query");
|
||||
echo "<select class='select_form' size=\"1\" name=\"stellenart4\" id='stellenart4'>";
|
||||
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] </option>\n";
|
||||
echo "<option value='$row1[artid]'";if($row1['artid'] == 1){echo "selected";}elseif($row1['artid'] == $art){echo " selected ";} echo">$row1[bezeichnung] </option>\n";
|
||||
}
|
||||
|
||||
echo"</select>
|
||||
@ -2055,7 +2055,7 @@ echo"
|
||||
<option value='x' selected>Bitte wählen Sie einen Vertiefungsbereich </option>";
|
||||
while ($row1 = $result1->fetch_array()){
|
||||
|
||||
echo "<option value='$row1[vbid]'";if($row1[vbid] == $vert){echo " selected ";} echo">$row1[bezeichnung] </option>\n";
|
||||
echo "<option value='$row1[vbid]'";if($row1['vbid'] == $vert){echo " selected ";} echo">$row1[bezeichnung] </option>\n";
|
||||
}
|
||||
echo"</select>
|
||||
</td>
|
||||
@ -2096,7 +2096,7 @@ echo"
|
||||
or die ("Cannot execute query");
|
||||
echo "<select class='select_form' size=\"1\" name=\"stellenart7\" id='stellenart7'>";
|
||||
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] </option>\n";
|
||||
echo "<option value='$row1[artid]'";if($row1['artid'] == 1){echo "selected";}elseif($row1['artid'] == $art){echo " selected ";} echo">$row1[bezeichnung] </option>\n";
|
||||
}
|
||||
|
||||
echo"</select>
|
||||
@ -2740,7 +2740,7 @@ echo"
|
||||
<option value='x' selected>Bitte wählen Sie einen Vertiefungsbereich </option>";
|
||||
while ($row1 = $result1->fetch_array()){
|
||||
|
||||
echo "<option value='$row1[vbid]'";if($row1[vbid] == $vert){echo " selected ";} echo">$row1[bezeichnung] </option>\n";
|
||||
echo "<option value='$row1[vbid]'";if($row1['vbid'] == $vert){echo " selected ";} echo">$row1[bezeichnung] </option>\n";
|
||||
}
|
||||
echo"</select>
|
||||
</td>
|
||||
@ -2781,7 +2781,7 @@ echo"
|
||||
or die ("Cannot execute query");
|
||||
echo "<select class='select_form' size=\"1\" name=\"stellenart10\" id='stellenart10'>";
|
||||
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] </option>\n";
|
||||
echo "<option value='$row1[artid]'";if($row1['artid'] == 1){echo "selected";}elseif($row1['artid'] == $art){echo " selected ";} echo">$row1[bezeichnung] </option>\n";
|
||||
}
|
||||
|
||||
echo"</select>
|
||||
@ -3786,4 +3786,4 @@ if(isset($telabteilung)){
|
||||
|
||||
} // Ende Action
|
||||
|
||||
?>
|
||||
?>
|
||||
|
@ -6,7 +6,7 @@ $db = dbconnect();
|
||||
$result = $db->query("SELECT stg FROM stud where uid=\"$uid1\"");
|
||||
$row = $result->fetch_array();
|
||||
|
||||
if ($row[stg] != "I" and $row[stg] != "V" and $row[stg] != "W"){
|
||||
if ($row['stg'] != "I" and $row['stg'] != "V" and $row['stg'] != "W"){
|
||||
echo"
|
||||
<html>
|
||||
<head>
|
||||
@ -65,4 +65,4 @@ echo"
|
||||
";
|
||||
exit;
|
||||
}
|
||||
?>
|
||||
?>
|
||||
|
@ -19,8 +19,8 @@ $anm_schluss = $db->query("SELECT DATE_Format(anmeldebeginn, '%Y%m%d%H%i%s')AS b
|
||||
$row_schluss = $anm_schluss->fetch_array(); // Herausfinden des Beginn- Schlussdatums
|
||||
|
||||
$a = strtotime ($heute_format); //Umrechnung des Fristgrenztages in eine Zahl
|
||||
$b = strtotime ($row_schluss[enddatum]); // Umrechnung des Enddatums in eine Zahl
|
||||
$c = strtotime ($row_schluss[beginndatum]); // Umrechnung des Beginndatums in eine Zahl
|
||||
$b = strtotime ($row_schluss['enddatum']); // Umrechnung des Enddatums in eine Zahl
|
||||
$c = strtotime ($row_schluss['beginndatum']); // Umrechnung des Beginndatums in eine Zahl
|
||||
|
||||
if ($a < $c){
|
||||
echo "
|
||||
@ -154,7 +154,7 @@ $res2 = $db->query("SELECT distinct status
|
||||
LIMIT 1");
|
||||
$stud_status = $res2->fetch_array();
|
||||
|
||||
if($stud_status[status] == '0'){
|
||||
if($stud_status['status'] == '0'){
|
||||
|
||||
echo "
|
||||
|
||||
@ -300,11 +300,11 @@ oPopupBody.style.border = \"solid blue 1px\";
|
||||
WHERE uid='$uid1'");
|
||||
$stud = $res->fetch_array();
|
||||
|
||||
if($stud[nachname] == '' or $stud[vorname] == '' or $stud[hs] == '' or $stud[poplz] == '' or $stud[poOrt] == '' or $stud[poStrasse] == '' or $stud[mail] == ''){
|
||||
if($stud['nachname'] == '' or $stud['vorname'] == '' or $stud['hs'] == '' or $stud['poplz'] == '' or $stud['poOrt'] == '' or $stud['poStrasse'] == '' or $stud['mail'] == ''){
|
||||
echo "<img border=\"0\" src=\"../images/cross.jpg\">";
|
||||
$fehler = 'X';
|
||||
}else{
|
||||
if($stud[hs] == 'L' or $stud[hs] == 'K'){
|
||||
if($stud[hs] == 'L' or $stud['hs'] == 'K'){
|
||||
echo "<img border=\"0\" src=\"../images/ok.gif\">";
|
||||
}else{
|
||||
echo "<img border=\"0\" src=\"../images/cross.jpg\">";
|
||||
@ -370,12 +370,12 @@ oPopupBody.style.border = \"solid blue 1px\";
|
||||
|
||||
$result = $db->query("SELECT max(saaid) max_id FROM stan_tmp_check_data WHERE uid='$uid1'");
|
||||
$row4 = $result->fetch_array();
|
||||
$saaid_neu = $row4[max_id] + 1; // Damit alle Einträge eine ID haben
|
||||
$saaid_neu = $row4['max_id'] + 1; // Damit alle Einträge eine ID haben
|
||||
$result_tmp1 = $db->query("INSERT INTO stan_tmp_check_data SELECT $saaid_neu, NULL, '$uid1', DATE_SUB(antrag_von, INTERVAL 1 DAY), DATE_SUB(antrag_von, INTERVAL 1 DAY), 'Antragszeitraum Beginn' FROM stan_frist WHERE jahrgang ='$row[Jahrgang]'");
|
||||
|
||||
$result = $db->query("SELECT max(saaid) max_id FROM stan_tmp_check_data WHERE uid='$uid1'");
|
||||
$row4 = $result->fetch_array();
|
||||
$saaid_neu = $row4[max_id] + 1; // Damit alle Einträge eine ID haben
|
||||
$saaid_neu = $row4['max_id'] + 1; // Damit alle Einträge eine ID haben
|
||||
$result_tmp1 = $db->query("INSERT INTO stan_tmp_check_data SELECT $saaid_neu, NULL, '$uid1', antrag_bis, antrag_bis, 'Antragszeitraum Ende' FROM stan_frist WHERE jahrgang ='$row[Jahrgang]'");
|
||||
|
||||
$query = "SELECT ma.saaid, ma.uid, DATE_FORMAT(beginn, '%d.%m.%Y') beginn, DATE_FORMAT(ende, '%d.%m.%Y') ende, bezeichnung, COALESCE( luecke, 'OK' ) AS Luecke
|
||||
@ -410,19 +410,19 @@ oPopupBody.style.border = \"solid blue 1px\";
|
||||
WHERE dst_id ='$row2[bezeichnung]'");
|
||||
$row6 = $result6->fetch_array();
|
||||
|
||||
if($row5[name] != '' and $row6[bez] == ''){
|
||||
$bezeichnung = $row5[name];
|
||||
if($row5['name'] != '' and $row6['bez'] == ''){
|
||||
$bezeichnung = $row5['name'];
|
||||
}
|
||||
|
||||
|
||||
if($row5[name] == '' and $row6[bez] != ''){
|
||||
$bezeichnung = $row6[bez];
|
||||
if($row5['name'] == '' and $row6['bez'] != ''){
|
||||
$bezeichnung = $row6['bez'];
|
||||
}
|
||||
|
||||
if($row5[name] == '' and $row6[bez] == ''){
|
||||
if($row5['name'] == '' and $row6['bez'] == ''){
|
||||
|
||||
if($row2[bezeichnung] == 'Antragszeitraum Beginn' or $row2[bezeichnung] == 'Antragszeitraum Ende'){
|
||||
$bezeichnung = $row2[bezeichnung];
|
||||
if($row2['bezeichnung'] == 'Antragszeitraum Beginn' or $row2['bezeichnung'] == 'Antragszeitraum Ende'){
|
||||
$bezeichnung = $row2['bezeichnung'];
|
||||
}else{
|
||||
$bezeichnung = '<i>Zeitraum vorgemerkt</i>';
|
||||
}
|
||||
@ -435,9 +435,9 @@ oPopupBody.style.border = \"solid blue 1px\";
|
||||
$bezeichnung
|
||||
</td>
|
||||
<td width='35%'>";
|
||||
if($row2[bezeichnung] == 'Antragszeitraum Beginn'){
|
||||
if($row2['bezeichnung'] == 'Antragszeitraum Beginn'){
|
||||
echo"$row3[antrag_von]";
|
||||
}elseif($row2[bezeichnung] == 'Antragszeitraum Ende'){
|
||||
}elseif($row2['bezeichnung'] == 'Antragszeitraum Ende'){
|
||||
echo"$row3[antrag_bis]";
|
||||
}else{
|
||||
echo"$row2[beginn] - $row2[ende]";
|
||||
@ -470,7 +470,7 @@ oPopupBody.style.border = \"solid blue 1px\";
|
||||
$sonderpflicht
|
||||
</td>
|
||||
<td width='30%' align='center'>";
|
||||
if($row2[Luecke] != 'OK'){
|
||||
if($row2['Luecke'] != 'OK'){
|
||||
# if($row2[bezeichnung] == 'Antragszeitraum Ende'){ # Dass nach Antragszeitraum Ende keine ungültiger zeitraum steht
|
||||
# echo "<img border=\"0\" src=\"../images/gueltig.png\">";
|
||||
# }else{
|
||||
@ -527,7 +527,7 @@ oPopupBody.style.border = \"solid blue 1px\";
|
||||
");
|
||||
$anzahl_bereich = $res_anz->fetch_array();
|
||||
|
||||
if($anzahl_bereich[Anzahl] != 4){
|
||||
if($anzahl_bereich['Anzahl'] != 4){
|
||||
echo "<img border=\"0\" src=\"../images/cross.jpg\"> ($anzahl_bereich[Anzahl] von 4 notwendigen Vertiefungsbereichen wurden abgedeckt)";
|
||||
echo "<p>";
|
||||
$fehler = 'X';
|
||||
@ -737,7 +737,7 @@ oPopupBody.style.border = \"solid blue 1px\";
|
||||
<td>";
|
||||
|
||||
// Abfrage, ob die Einzeltermine der Vertiefungsbereich zusammenhängend sind
|
||||
if($anzahl_bereich[Treffer] != 1){
|
||||
if($anzahl_bereich['Treffer'] != 1){
|
||||
// Wenn der Zeitraum im Vertiefungsbereich zusammenhängend ist,
|
||||
// dann kann man prüfen, ob beginndatum + 3 Monate >= Enddatum ist
|
||||
// und ob beginndatum+5Monate <= Enddatum ist.
|
||||
@ -754,7 +754,7 @@ oPopupBody.style.border = \"solid blue 1px\";
|
||||
|
||||
|
||||
|
||||
if($row_minmax[unter] == '1'){
|
||||
if($row_minmax['unter'] == '1'){
|
||||
echo "<font color=red><b>Mindestdauer unterschritten</b></font>";
|
||||
|
||||
$result6a = $db->query("SELECT distinct 1
|
||||
@ -765,9 +765,9 @@ oPopupBody.style.border = \"solid blue 1px\";
|
||||
$fehler = 'X';
|
||||
}
|
||||
|
||||
}elseif($row_minmax[unter] == '0'){
|
||||
}elseif($row_minmax['unter'] == '0'){
|
||||
echo "<font color=green><b>OK</b></font>";
|
||||
}elseif($row_minmax[ueber] == '1'){
|
||||
}elseif($row_minmax['ueber'] == '1'){
|
||||
echo "<font color=red><b>Mindestdauer überschritten</b></font>";
|
||||
|
||||
$result6a = $db->query("SELECT distinct 1
|
||||
@ -1230,18 +1230,18 @@ echo"
|
||||
WHERE dst_id ='$row3[dst_id]'");
|
||||
$row6 = $result6->fetch_array();
|
||||
|
||||
if($row5[name] != '' and $row6[bez] == ''){
|
||||
$bezeichnung = $row5[name];
|
||||
$ort = $row5[ort];
|
||||
if($row5['name'] != '' and $row6['bez'] == ''){
|
||||
$bezeichnung = $row5['name'];
|
||||
$ort = $row5['ort'];
|
||||
}
|
||||
|
||||
|
||||
if($row5[name] == '' and $row6[bez] != ''){
|
||||
$bezeichnung = $row6[bez];
|
||||
$ort = $row6[ort];
|
||||
if($row5['name'] == '' and $row6['bez'] != ''){
|
||||
$bezeichnung = $row6['bez'];
|
||||
$ort = $row6['ort'];
|
||||
}
|
||||
|
||||
if($row5[name] == '' and $row6[bez] == ''){
|
||||
if($row5['name'] == '' and $row6['bez'] == ''){
|
||||
$bezeichnung = '<i>[Daten bitte nachtragen]</i>';
|
||||
$ort = '';
|
||||
}
|
||||
@ -1797,4 +1797,4 @@ echo"
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
?>
|
||||
|
@ -125,7 +125,7 @@ echo"
|
||||
<a target='kurshaupt' href='pers_daten_ver.php'>Daten ändern</a><br>
|
||||
</span><strong><span style='font-size: 8pt'>·</span></strong><span style='font-size: 8pt'>
|
||||
<a target='_parent' href='logout.php'>Logout</a></span></font>";
|
||||
if($stud_jahr[jahrgang] < '10'){
|
||||
if($stud_jahr['jahrgang'] < '10'){
|
||||
echo "<br><br><br>
|
||||
<b>Kontakt</b><br>
|
||||
</span><strong><span style='font-size: 8pt'>·</span></strong><span style='font-size: 8pt'>
|
||||
|
@ -20,7 +20,7 @@ $anm_schluss = $db->query("SELECT DATE_Format(anmeldeschluss, '%d.%m.%Y um %H:%i
|
||||
$row_schluss = $anm_schluss->fetch_array(); // Herausfinden des Beginn- Schlussdatums
|
||||
|
||||
$a = strtotime ($heute_format); //Umrechnung des Fristgrenztages in eine Zahl
|
||||
$b = strtotime ($row_schluss[enddatum]); // Umrechnung des Enddatums in eine Zahl
|
||||
$b = strtotime ($row_schluss['enddatum']); // Umrechnung des Enddatums in eine Zahl
|
||||
|
||||
# Wenn Erstanträge abgesendet wurden, dürfen keine Stellen mehr vorgemerkt werden
|
||||
$res2 = $db->query("SELECT distinct status
|
||||
@ -29,7 +29,7 @@ $res2 = $db->query("SELECT distinct status
|
||||
LIMIT 1");
|
||||
$stud_status = $res2->fetch_array();
|
||||
|
||||
if($stud_status[status] != '0'){
|
||||
if($stud_status['status'] != '0'){
|
||||
|
||||
if ($a <= $b){
|
||||
echo "
|
||||
@ -285,4 +285,4 @@ echo "
|
||||
</body>
|
||||
</html>";
|
||||
$result_tmp1 = $db->query("DELETE FROM stan_tmp_check_data WHERE uid='$uid1'");
|
||||
?>
|
||||
?>
|
||||
|
Loading…
x
Reference in New Issue
Block a user