312 lines
13 KiB
PHP
Executable File
312 lines
13 KiB
PHP
Executable File
<?php
|
|
function vertiefungsbereich(){
|
|
|
|
$stellenart1 = $_POST[stellenart1]; // Vom Formular gesendetes Objekt in Variable schreiben
|
|
$bezeichnung1 = $_POST[bezeichnung1];
|
|
$str1 = $_POST[str1];
|
|
$postfach1 = $_POST[postfach1];
|
|
$plz1 = $_POST[plz1];
|
|
$ort1 = $_POST[ort1];
|
|
$bundesland1 = $_POST[bundesland1];
|
|
$staat1 = $_POST[staat1];
|
|
$beginndatum1 = $_POST[beg_jahr1].'-'.$_POST[beg_mon1].'-'.$_POST[beg_tag1];
|
|
$enddatum1 = $_POST[ende_jahr1].'-'.$_POST[ende_mon1].'-'.$_POST[ende_tag1];
|
|
$abteilung1 = $_POST[abteilung1];
|
|
$telabteilung1 = $_POST[telabteilung1];
|
|
|
|
$stellenart2 = $_POST[stellenart2]; // Vom Formular gesendetes Objekt in Variable schreiben
|
|
$bezeichnung2 = $_POST[bezeichnung2];
|
|
$str2 = $_POST[str2];
|
|
$postfach2 = $_POST[postfach2];
|
|
$plz2 = $_POST[plz2];
|
|
$ort2 = $_POST[ort2];
|
|
$bundesland2 = $_POST[bundesland2];
|
|
$staat2 = $_POST[staat2];
|
|
$beginndatum2 = $_POST[beg_jahr2].'-'.$_POST[beg_mon2].'-'.$_POST[beg_tag2];
|
|
$enddatum2 = $_POST[ende_jahr2].'-'.$_POST[ende_mon2].'-'.$_POST[ende_tag2];
|
|
$abteilung2 = $_POST[abteilung2];
|
|
$telabteilung2 = $_POST[telabteilung2];
|
|
|
|
$stellenart3 = $_POST[stellenart3]; // Vom Formular gesendetes Objekt in Variable schreiben
|
|
$bezeichnung3 = $_POST[bezeichnung3];
|
|
$str3 = $_POST[str3];
|
|
$postfach3 = $_POST[postfach3];
|
|
$plz3 = $_POST[plz3];
|
|
$ort3 = $_POST[ort3];
|
|
$bundesland3 = $_POST[bundesland3];
|
|
$staat3 = $_POST[staat3];
|
|
$beginndatum3 = $_POST[beg_jahr3].'-'.$_POST[beg_mon3].'-'.$_POST[beg_tag3];
|
|
$enddatum3 = $_POST[ende_jahr3].'-'.$_POST[ende_mon3].'-'.$_POST[ende_tag3];
|
|
$abteilung3 = $_POST[abteilung3];
|
|
$telabteilung3 = $_POST[telabteilung3];
|
|
|
|
$stellenart4 = $_POST[stellenart4]; // Vom Formular gesendetes Objekt in Variable schreiben
|
|
$bezeichnung4 = $_POST[bezeichnung4];
|
|
$str4 = $_POST[str4];
|
|
$postfach4 = $_POST[postfach4];
|
|
$plz4 = $_POST[plz4];
|
|
$ort4 = $_POST[ort4];
|
|
$bundesland4 = $_POST[bundesland4];
|
|
$staat4 = $_POST[staat4];
|
|
$beginndatum4 = $_POST[beg_jahr4].'-'.$_POST[beg_mon4].'-'.$_POST[beg_tag4];
|
|
$enddatum4 = $_POST[ende_jahr4].'-'.$_POST[ende_mon4].'-'.$_POST[ende_tag4];
|
|
$abteilung4 = $_POST[abteilung4];
|
|
$telabteilung4 = $_POST[telabteilung4];
|
|
|
|
$stellenart5 = $_POST[stellenart5]; // Vom Formular gesendetes Objekt in Variable schreiben
|
|
$bezeichnung5 = $_POST[bezeichnung5];
|
|
$str5 = $_POST[str5];
|
|
$postfach5 = $_POST[postfach5];
|
|
$plz5 = $_POST[plz5];
|
|
$ort5 = $_POST[ort5];
|
|
$bundesland5 = $_POST[bundesland5];
|
|
$staat5 = $_POST[staat5];
|
|
$beginndatum5 = $_POST[beg_jahr5].'-'.$_POST[beg_mon5].'-'.$_POST[beg_tag5];
|
|
$enddatum5 = $_POST[ende_jahr5].'-'.$_POST[ende_mon5].'-'.$_POST[ende_tag5];
|
|
$abteilung5 = $_POST[abteilung5];
|
|
$telabteilung5 = $_POST[telabteilung5];
|
|
|
|
$stellenart6 = $_POST[stellenart6]; // Vom Formular gesendetes Objekt in Variable schreiben
|
|
$bezeichnung6 = $_POST[bezeichnung6];
|
|
$str6 = $_POST[str6];
|
|
$postfach6 = $_POST[postfach6];
|
|
$plz6 = $_POST[plz6];
|
|
$ort6 = $_POST[ort6];
|
|
$bundesland6 = $_POST[bundesland6];
|
|
$staat6 = $_POST[staat6];
|
|
$beginndatum6 = $_POST[beg_jahr6].'-'.$_POST[beg_mon6].'-'.$_POST[beg_tag6];
|
|
$enddatum6 = $_POST[ende_jahr6].'-'.$_POST[ende_mon6].'-'.$_POST[ende_tag6];
|
|
$abteilung6 = $_POST[abteilung6];
|
|
$telabteilung6 = $_POST[telabteilung6];
|
|
|
|
$stellenart7 = $_POST[stellenart7]; // Vom Formular gesendetes Objekt in Variable schreiben
|
|
$bezeichnung7 = $_POST[bezeichnung7];
|
|
$str7 = $_POST[str7];
|
|
$postfach7 = $_POST[postfach7];
|
|
$plz7 = $_POST[plz7];
|
|
$ort7 = $_POST[ort7];
|
|
$bundesland7 = $_POST[bundesland7];
|
|
$staat7 = $_POST[staat7];
|
|
$beginndatum7 = $_POST[beg_jahr7].'-'.$_POST[beg_mon7].'-'.$_POST[beg_tag7];
|
|
$enddatum7 = $_POST[ende_jahr7].'-'.$_POST[ende_mon7].'-'.$_POST[ende_tag7];
|
|
$abteilung7 = $_POST[abteilung7];
|
|
$telabteilung7 = $_POST[telabteilung7];
|
|
|
|
$stellenart8 = $_POST[stellenart8]; // Vom Formular gesendetes Objekt in Variable schreiben
|
|
$bezeichnung8 = $_POST[bezeichnung8];
|
|
$str8 = $_POST[str8];
|
|
$postfach8 = $_POST[postfach8];
|
|
$plz8 = $_POST[plz8];
|
|
$ort8 = $_POST[ort8];
|
|
$bundesland8 = $_POST[bundesland8];
|
|
$staat8 = $_POST[staat8];
|
|
$beginndatum8 = $_POST[beg_jahr8].'-'.$_POST[beg_mon8].'-'.$_POST[beg_tag8];
|
|
$enddatum8 = $_POST[ende_jahr8].'-'.$_POST[ende_mon8].'-'.$_POST[ende_tag8];
|
|
$abteilung8 = $_POST[abteilung8];
|
|
$telabteilung8 = $_POST[telabteilung8];
|
|
|
|
$stellenart9 = $_POST[stellenart9]; // Vom Formular gesendetes Objekt in Variable schreiben
|
|
$bezeichnung9 = $_POST[bezeichnung9];
|
|
$str9 = $_POST[str9];
|
|
$postfach9 = $_POST[postfach9];
|
|
$plz9 = $_POST[plz9];
|
|
$ort9 = $_POST[ort9];
|
|
$bundesland9 = $_POST[bundesland9];
|
|
$staat9 = $_POST[staat9];
|
|
$beginndatum9 = $_POST[beg_jahr9].'-'.$_POST[beg_mon9].'-'.$_POST[beg_tag9];
|
|
$enddatum9 = $_POST[ende_jahr9].'-'.$_POST[ende_mon9].'-'.$_POST[ende_tag9];
|
|
$abteilung9 = $_POST[abteilung9];
|
|
$telabteilung9 = $_POST[telabteilung9];
|
|
|
|
$stellenart10 = $_POST[stellenart10]; // Vom Formular gesendetes Objekt in Variable schreiben
|
|
$bezeichnung10 = $_POST[bezeichnung10];
|
|
$str10 = $_POST[str10];
|
|
$postfach10 = $_POST[postfach10];
|
|
$plz10 = $_POST[plz10];
|
|
$ort10 = $_POST[ort10];
|
|
$bundesland10 = $_POST[bundesland10];
|
|
$staat10 = $_POST[staat10];
|
|
$beginndatum10 = $_POST[beg_jahr10].'-'.$_POST[beg_mon10].'-'.$_POST[beg_tag10];
|
|
$enddatum10 = $_POST[ende_jahr10].'-'.$_POST[ende_mon10].'-'.$_POST[ende_tag10];
|
|
$abteilung10 = $_POST[abteilung10];
|
|
$telabteilung10 = $_POST[telabteilung10];
|
|
|
|
$stellenart11 = $_POST[stellenart11]; // Vom Formular gesendetes Objekt in Variable schreiben
|
|
$bezeichnung11 = $_POST[bezeichnung11];
|
|
$str11 = $_POST[str11];
|
|
$postfach11 = $_POST[postfach11];
|
|
$plz11 = $_POST[plz11];
|
|
$ort11 = $_POST[ort11];
|
|
$bundesland11 = $_POST[bundesland11];
|
|
$staat11 = $_POST[staat11];
|
|
$beginndatum11 = $_POST[beg_jahr11].'-'.$_POST[beg_mon11].'-'.$_POST[beg_tag11];
|
|
$enddatum11 = $_POST[ende_jahr11].'-'.$_POST[ende_mon11].'-'.$_POST[ende_tag11];
|
|
$abteilung11 = $_POST[abteilung11];
|
|
$telabteilung11 = $_POST[telabteilung11];
|
|
|
|
|
|
$stellenart12 = $_POST[stellenart12]; // Vom Formular gesendetes Objekt in Variable schreiben
|
|
$bezeichnung12 = $_POST[bezeichnung12];
|
|
$str12 = $_POST[str12];
|
|
$postfach12 = $_POST[postfach12];
|
|
$plz12 = $_POST[plz12];
|
|
$ort12 = $_POST[ort12];
|
|
$bundesland12 = $_POST[bundesland12];
|
|
$staat12 = $_POST[staat12];
|
|
$beginndatum12 = $_POST[beg_jahr12].'-'.$_POST[beg_mon12].'-'.$_POST[beg_tag12];
|
|
$enddatum12 = $_POST[ende_jahr12].'-'.$_POST[ende_mon12].'-'.$_POST[ende_tag12];
|
|
$abteilung12 = $_POST[abteilung12];
|
|
$telabteilung12 = $_POST[telabteilung12];
|
|
|
|
|
|
|
|
## Beim 4-blockfeld gibt es nur die blöcke 1,4,7 und 10.
|
|
## Die Textfelder sind somit nicht gesetzt. daher werden diese in dem Fall
|
|
## mit einem Standardwert versehen, damit man nicht auf Fehler beim abpseichern läuft
|
|
|
|
if(!isset($stellenart2)){$stellenart2=1;}
|
|
if(!isset($stellenart3)){$stellenart3=1;}
|
|
if(!isset($stellenart5)){$stellenart5=1;}
|
|
if(!isset($stellenart6)){$stellenart6=1;}
|
|
if(!isset($stellenart8)){$stellenart8=1;}
|
|
if(!isset($stellenart9)){$stellenart9=1;}
|
|
if(!isset($stellenart11)){$stellenart11=1;}
|
|
if(!isset($stellenart12)){$stellenart12=1;}
|
|
|
|
|
|
if(($stellenart1 != '1' OR $stellenart2 != '1' OR $stellenart3 != '1') AND $_POST[vert1] == 'x'){
|
|
$vertiefungsbereich[] = '1';
|
|
$do_messg = 'X';
|
|
}
|
|
if(($stellenart4 != '1' OR $stellenart5 != '1' OR $stellenart6 != '1') AND $_POST[vert2] == 'x'){
|
|
$vertiefungsbereich[] = '2';
|
|
$do_messg = 'X';
|
|
}
|
|
if(($stellenart7 != '1' OR $stellenart8 != '1' OR $stellenart9 != '1') AND $_POST[vert3] == 'x'){
|
|
$vertiefungsbereich[] = "3";
|
|
$do_messg = 'X';
|
|
}
|
|
if(($stellenart10 != '1' OR $stellenart11 != '1' OR $stellenart12 != '1') AND $_POST[vert4] == 'x'){
|
|
$vertiefungsbereich[] = '4';
|
|
$do_messg = 'X';
|
|
}
|
|
|
|
|
|
|
|
if($do_messg == 'X'){
|
|
for ($i= 1;$i<= 12;$i++){
|
|
#Zurückbutton aufbereiten
|
|
|
|
$stellenart = $_POST[stellenart.$i]; // Vom Formular gesendetes Objekt in Variable schreiben
|
|
$dummy_dst = $_POST[dummy_dst.$i];
|
|
$bezeichnung = $_POST[bezeichnung.$i];
|
|
$str = $_POST[str.$i];
|
|
$postfach = $_POST[postfach.$i];
|
|
$plz = $_POST[plz.$i];
|
|
$ort = $_POST[ort.$i];
|
|
$bundesland = $_POST[bundesland.$i];
|
|
$staat = $_POST[staat.$i];
|
|
$beginndatum = $_POST[beg_jahr.$i].'-'.$_POST[beg_mon.$i].'-'.$_POST[beg_tag.$i];
|
|
$enddatum = $_POST[ende_jahr.$i].'-'.$_POST[ende_mon.$i].'-'.$_POST[ende_tag.$i];
|
|
$abteilung = $_POST[abteilung.$i];
|
|
$telabteilung = $_POST[telabteilung.$i];
|
|
$plz_postfach = $_POST[plz_postfach.$i];
|
|
$maildst = $_POST[maildst.$i];
|
|
$postfach = $_POST[postfach.$i];
|
|
setcookie('ck_abteilung'.$i, $abteilung);
|
|
setcookie('ck_beg_jahr'.$i, $_POST[beg_jahr.$i]);
|
|
setcookie('ck_beg_mon'.$i, $_POST[beg_mon.$i]);
|
|
setcookie('ck_beg_tag'.$i, $_POST[beg_tag.$i]);
|
|
setcookie('ck_bezeichnung'.$i, $bezeichnung);
|
|
setcookie('ck_bundesland'.$i, $bundesland);
|
|
setcookie('ck_ende_jahr'.$i, $_POST[ende_jahr.$i]);
|
|
setcookie('ck_ende_mon'.$i, $_POST[ende_mon.$i]);
|
|
setcookie('ck_ende_tag'.$i, $_POST[ende_tag.$i]);
|
|
setcookie('ck_maildst'.$i, $maildst);
|
|
setcookie('ck_ort'.$i, $ort);
|
|
setcookie('ck_plz'.$i, $plz);
|
|
setcookie('ck_postfach'.$i, $postfach);
|
|
setcookie('ck_stellenart'.$i, $stellenart);
|
|
setcookie('ck_staat'.$i, $staat);
|
|
if($i==1){
|
|
setcookie('ck_vert1', $_POST['vert1']);
|
|
}
|
|
if($i==4){
|
|
setcookie('ck_vert2', $_POST['vert2']);
|
|
}
|
|
if($i==7){
|
|
setcookie('ck_vert3', $_POST['vert3']);
|
|
}
|
|
if($i==10){
|
|
setcookie('ck_vert4', $_POST['vert4']);
|
|
}
|
|
setcookie('ck_dummy_dst'.$i, $dummy_dst);
|
|
setcookie('ck_str'.$i, $str);
|
|
setcookie('ck_telabteilung'.$i, $telabteilung);
|
|
setcookie('ck_plz_postfach'.$i, $plz_postfach);
|
|
}
|
|
echo"
|
|
<html>
|
|
<head>
|
|
<meta http-equiv=\"content-type\" content=\"text/html; charset=utf-8\">
|
|
<link rel=\"stylesheet\" href=\"../styles_pc.css\" type=\"text/css\">
|
|
<title>Anmeldung[]en noch nicht möglich!</title>
|
|
</head>
|
|
<body>
|
|
<table border=\"0\" style=\"border-collapse: collapse\" width=\"100%\" cellpadding=\"0\" height=\"100%\" id=\"table1\">
|
|
<tr>
|
|
<td>
|
|
<div align=\"center\">
|
|
<table cellspacing=\"0\" cellpadding=\"0\" width=\"80%\" border=\"0\">
|
|
<tr>
|
|
<td width=\"10\" background=\"../images/box_e1.gif\">
|
|
<img height=\"40\" src=\"../images/blank.gif\" width=\"22\"></td>
|
|
<td nowrap=\"nowrap\" align=\"left\" width=\"3%\" background=\"../images/box_top.gif\" valign=\"top\"></td>
|
|
<td width=\"95%\" background=\"../images/box_top.gif\">
|
|
<img height=\"10\" src=\"../images/blank.gif\" width=\"1\"><br>
|
|
<span class=\"sh\">Vertiefungsbereich!</span><br>
|
|
<img height=\"5\" src=\"../images/blank.gif\" width=\"1\"></td>
|
|
<td nowrap=\"nowrap\" align=\"right\" width=\"1%\" background=\"../images/box_e2.gif\">
|
|
<img height=\"40\" src=\"../images/blank.gif\" width=\"22\"></td>
|
|
</tr>
|
|
<tr>
|
|
<td width=\"1%\" background=\"../images/box_l.gif\">
|
|
<img height=\"1\" src=\"../images/blank.gif\" width=\"22\"></td>
|
|
<td colspan=\"2\"><br>";
|
|
for ($j=0;$j<sizeof($vertiefungsbereich);$j++) {
|
|
echo"Bitte wählen Sie im <b>Vertiefungsbereich $vertiefungsbereich[$j]</b> einen Bereich aus!<br>";
|
|
}
|
|
echo"
|
|
<p align=\"center\"><a href=\"".$_SERVER['PHP_SELF']."?back=1\">
|
|
<img border=\"0\" src=\"../images/zurueck.gif\" width=\"77\" height=\"22\"></a><br>
|
|
</p>
|
|
<p></p>
|
|
<p></p>
|
|
<p></p>
|
|
<p></p>
|
|
<p><br>
|
|
</p>
|
|
</td>
|
|
<td width=\"1%\" background=\"../images/box_r.gif\">
|
|
<img height=\"1\" src=\"../images/blank.gif\" width=\"22\"></td>
|
|
</tr>
|
|
<tr>
|
|
<td nowrap=\"nowrap\" align=\"left\" width=\"1%\" background=\"../images/box_e3.gif\">
|
|
<img height=\"16\" src=\"../images/blank.gif\" width=\"22\"></td>
|
|
<td nowrap=\"nowrap\" align=\"left\" width=\"98%\" background=\"../images/box_bottom.gif\" colspan=\"2\">
|
|
<img height=\"16\" src=\"../images/blank.gif\" width=\"8\"></td>
|
|
<td nowrap=\"nowrap\" align=\"right\" width=\"1%\" background=\"../images/box_e4.gif\">
|
|
<img height=\"16\" src=\"../images/blank.gif\" width=\"22\"> </td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</body>
|
|
</html>";
|
|
exit;
|
|
}
|
|
|
|
}
|
|
?>
|