kleine constant Fehler geändert
This commit is contained in:
@ -2574,20 +2574,20 @@ echo"
|
||||
break;
|
||||
case "bearb2":
|
||||
$saaid=$_COOKIE["ck_saaid"];
|
||||
$vertiefungsbereich = $_POST[vert];
|
||||
$stellenart = $_POST[stellenart1];
|
||||
$bezeichnung = $_POST[bezeichnung1];
|
||||
$str = $_POST[str1];
|
||||
$postfach = $_POST[postfach1];
|
||||
$plz_postfach = $_POST[plz_postfach1];
|
||||
$plz = $_POST[plz1];
|
||||
$ort = $_POST[ort1];
|
||||
$bundesland = $_POST[bundesland1];
|
||||
$staat = $_POST[staat1];
|
||||
$beginndatum = $_POST[beg_jahr1].'-'.$_POST[beg_mon1].'-'.$_POST[beg_tag1];
|
||||
$enddatum = $_POST[ende_jahr1].'-'.$_POST[ende_mon1].'-'.$_POST[ende_tag1];
|
||||
$abteilung = $_POST[abteilung1];
|
||||
$telabteilung = $_POST[telabteilung1];
|
||||
$vertiefungsbereich = $_POST['vert'];
|
||||
$stellenart = $_POST['stellenart1'];
|
||||
$bezeichnung = $_POST['bezeichnung1'];
|
||||
$str = $_POST['str1'];
|
||||
$postfach = $_POST['postfach1'];
|
||||
$plz_postfach = $_POST['plz_postfach1'];
|
||||
$plz = $_POST['plz1'];
|
||||
$ort = $_POST['ort1'];
|
||||
$bundesland = $_POST['bundesland1'];
|
||||
$staat = $_POST['staat1'];
|
||||
$beginndatum = $_POST['beg_jahr1'].'-'.$_POST['beg_mon1'].'-'.$_POST['beg_tag1'];
|
||||
$enddatum = $_POST['ende_jahr1'].'-'.$_POST['ende_mon1'].'-'.$_POST['ende_tag1'];
|
||||
$abteilung = $_POST['abteilung1'];
|
||||
$telabteilung = $_POST['telabteilung1'];
|
||||
|
||||
if(isset($pos)){
|
||||
$pos = str_replace (array("'"), array("\'"), $pos);
|
||||
@ -2651,12 +2651,12 @@ if(isset($telabteilung)){
|
||||
|
||||
|
||||
## Entweder es gibt zur DSTS einen Schlüssel, oder es wird einer angelegt und DS in tmp Tabelle gespeichert, bis Admin sie umträgt
|
||||
if($row_key[dst_id] == ''){
|
||||
if($row_key['dst_id'] == ''){
|
||||
|
||||
$res2 = $db->query("SELECT dst_id FROM stan_dienststellen_tmp WHERE bez='$bezeichnung' AND str='$str' AND plz='$plz' AND ort='$ort' AND postfach='$postfach' AND plz_postfach='$plz_postfach'");
|
||||
$row_key2 = $res2->fetch_array();
|
||||
|
||||
if($row_key2[dst_id] == ''){
|
||||
if($row_key2['dst_id'] == ''){
|
||||
## Herausfinden, welches die max Dienststellen ID ist. Simulation einer Sequence
|
||||
$res1 = $db->query("SELECT max(dst_id)+1 next FROM stan_dienststellen");
|
||||
$row_next1 = $res1->fetch_array();
|
||||
@ -2664,10 +2664,10 @@ if(isset($telabteilung)){
|
||||
$res2 = $db->query("SELECT max(dst_id)+1 next FROM stan_dienststellen_tmp");
|
||||
$row_next2 = $res2->fetch_array();
|
||||
|
||||
if($row_next1[next] >= $row_next2[next]){
|
||||
$dst_id = $row_next1[next];
|
||||
if($row_next1['next'] >= $row_next2['next']){
|
||||
$dst_id = $row_next1['next'];
|
||||
}else{
|
||||
$dst_id = $row_next2[next];
|
||||
$dst_id = $row_next2['next'];
|
||||
}
|
||||
|
||||
$db = dbconnect();
|
||||
@ -2677,7 +2677,7 @@ if(isset($telabteilung)){
|
||||
");
|
||||
$row_art = $res_stellanrt->fetch_array();
|
||||
|
||||
if($row_art[Merkmal] == 'A' AND $bezeichnung == ''){ //wenn Textfelder bei Auslandspraktikum leer gelassen werden, dann wird 0 als dst_id eingetragen. Dies geht nur mit bei Ausland (StellenartID=6)
|
||||
if($row_art['Merkmal'] == 'A' AND $bezeichnung == ''){ //wenn Textfelder bei Auslandspraktikum leer gelassen werden, dann wird 0 als dst_id eingetragen. Dies geht nur mit bei Ausland (StellenartID=6)
|
||||
$dst_id = 0;
|
||||
}
|
||||
|
||||
@ -2686,14 +2686,14 @@ if(isset($telabteilung)){
|
||||
VALUES ($dst_id, '$bezeichnung', '$str', '$plz_postfach', '$postfach', '$plz', '$ort', '$bundesland', '$staat')");
|
||||
|
||||
## geht nicht, das Feld schon AS in der DB heißt. Jetzt wird halt eine neue Zeile in tmp Tabelle mit keinem Eintrag angelegt.
|
||||
if($row_art[Merkmal] == 'A' AND $bezeichnung == ''){ //Wenn Auslandspraktikum leer gelassen wird, soll nicht ein leerer Ort in die tmp Tabelle eingetragen werden.
|
||||
if($row_art['Merkmal'] == 'A' AND $bezeichnung == ''){ //Wenn Auslandspraktikum leer gelassen wird, soll nicht ein leerer Ort in die tmp Tabelle eingetragen werden.
|
||||
$result_tmp1 = $db->query("DELETE FROM stan_dienststellen_tmp WHERE dst_id='$dst_id'");
|
||||
}
|
||||
}else{
|
||||
$dst_id = $row_key2[dst_id]; // wenn adresse in tmp Tabelle vorhanden ist.
|
||||
$dst_id = $row_key2['dst_id']; // wenn adresse in tmp Tabelle vorhanden ist.
|
||||
}
|
||||
}else{
|
||||
$dst_id = $row_key[dst_id]; // wenn adresse in dst Tabelle vorhanden ist.
|
||||
$dst_id = $row_key['dst_id']; // wenn adresse in dst Tabelle vorhanden ist.
|
||||
}
|
||||
|
||||
$sql = $db->query ("UPDATE stan_antrag
|
||||
|
Reference in New Issue
Block a user