kleine constant Fehler geändert
This commit is contained in:
parent
e713868110
commit
55ee2af22e
@ -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
|
||||
|
@ -232,7 +232,7 @@ if($_POST['user1'] != ''){ // Wenn Matrikelnummer eingegeben, dann prüfen, ob
|
||||
FROM stud
|
||||
WHERE mtknr ='$user1'");
|
||||
$row = $result->fetch_array();
|
||||
$bewerber = $row[bid];
|
||||
$bewerber = $row['bid'];
|
||||
|
||||
if($row[0] == ''){
|
||||
echo "
|
||||
|
@ -282,8 +282,8 @@ select{
|
||||
or die ("Cannot execute query");
|
||||
echo "<select size=\"5\" name=\"user2\">";
|
||||
while ($row = $result->fetch_array()){
|
||||
echo "<option value=\"".$row[uid]."\">$row[nachname], $row[vorname]";
|
||||
if ($row[durchgefallen] == "Y"){
|
||||
echo "<option value=\"".$row['uid']."\">$row[nachname], $row[vorname]";
|
||||
if ($row['durchgefallen'] == "Y"){
|
||||
echo " *";
|
||||
}
|
||||
echo "
|
||||
@ -355,8 +355,8 @@ break;
|
||||
case "ubersicht1":
|
||||
$sql = $db->query("DELETE FROM stan_printqueue_hist WHERE admin= '$user_admin'");
|
||||
|
||||
if($_POST[stud]!=''){
|
||||
$stud = $_POST[stud];
|
||||
if($_POST['stud']!=''){
|
||||
$stud = $_POST['stud'];
|
||||
$pos1 = strpos ($stud, '(')+1;
|
||||
$pos2 = strpos ($stud, ')')-$pos1;
|
||||
|
||||
@ -433,14 +433,14 @@ if($_POST[stud]!=''){
|
||||
}
|
||||
}
|
||||
|
||||
if($_POST[user2] != ''){ // Wenn Stud über dropdown gewählt wurde
|
||||
if($_POST['user2'] != ''){ // Wenn Stud über dropdown gewählt wurde
|
||||
$db = dbconnect();
|
||||
$result = $db->query("SELECT uid, stg, vorname, nachname
|
||||
FROM stud
|
||||
WHERE uid ='$_POST[user2]'");
|
||||
$row_uid = $result->fetch_array();
|
||||
$mtknr=$row_uid[mtknr];
|
||||
$uid1=$row_uid[uid];
|
||||
$mtknr=$row_uid['mtknr'];
|
||||
$uid1=$row_uid['uid'];
|
||||
}
|
||||
|
||||
if(isset($_GET["uid"])){
|
||||
@ -905,4 +905,4 @@ for ($i=0;$i<$anzahl;$i++) {
|
||||
</body>
|
||||
</html>";
|
||||
} // Ende Action script
|
||||
?>
|
||||
?>
|
||||
|
@ -204,17 +204,17 @@ break;
|
||||
case "ubersicht":
|
||||
|
||||
|
||||
$user = $_POST[user2];
|
||||
$user = $_POST['user2'];
|
||||
|
||||
if($_POST[user1] != ''){ // Wenn Matrikelnummer eingegeben, dann prüfen, ob es diese im System gibt
|
||||
if($_POST['user1'] != ''){ // Wenn Matrikelnummer eingegeben, dann prüfen, ob es diese im System gibt
|
||||
|
||||
$user = $_POST[user1]; // vorrangig die Matrikelnr bei Eingabe behandeln
|
||||
$user = $_POST['user1']; // vorrangig die Matrikelnr bei Eingabe behandeln
|
||||
|
||||
$result = $db->query("SELECT 1
|
||||
FROM stud
|
||||
WHERE mtknr ='$user1'");
|
||||
$row = $result->fetch_array();
|
||||
$bewerber = $row[bid];
|
||||
$bewerber = $row['bid'];
|
||||
|
||||
if($row[0] == ''){
|
||||
echo "
|
||||
@ -284,7 +284,7 @@ $result = $db->query("SELECT uid
|
||||
WHERE mtknr ='$user'");
|
||||
$row = $result->fetch_array();
|
||||
|
||||
$uid1 = $row[uid];
|
||||
$uid1 = $row['uid'];
|
||||
|
||||
|
||||
|
||||
@ -338,7 +338,7 @@ $pdf->Line(5.3, 211, 9, 211);
|
||||
$pdf->SetFont('Arial', '', 11);
|
||||
$pdf->SetY(61.3);
|
||||
$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');
|
||||
}else{
|
||||
$pdf->MultiCell(0, 4.5, "Hochschule Ludwigsburg\nZulassungsamt\nReuteallee 36\n71634 Ludwigsburg", 0, 'L');
|
||||
@ -442,18 +442,18 @@ $pdf->SetY(120);
|
||||
|
||||
$res4 = $db->query("SELECT bez, ort, str, plz FROM stan_dienststellen WHERE dst_id='$row[dst_id]'");
|
||||
$row4 = $res4->fetch_array();
|
||||
if($row4[bez] != ''){
|
||||
$dst_bez = $row4[bez]." ".$row4[name];
|
||||
$ort = $row4[ort];
|
||||
$str = $row4[str];
|
||||
$plz = $row4[plz];
|
||||
if($row4['bez'] != ''){
|
||||
$dst_bez = $row4['bez']." ".$row4['name'];
|
||||
$ort = $row4['ort'];
|
||||
$str = $row4['str'];
|
||||
$plz = $row4['plz'];
|
||||
}else{
|
||||
$res5 = $db->query("SELECT bez, ort, str, plz FROM stan_dienststellen_tmp WHERE dst_id='$row[dst_id]'");
|
||||
$row5 = $res5->fetch_array();
|
||||
$dst_bez = $row5[bez]." ".$row5[name];
|
||||
$ort = $row5[ort];
|
||||
$str = $row5[str];
|
||||
$plz = $row5[plz];
|
||||
$dst_bez = $row5['bez']." ".$row5['name'];
|
||||
$ort = $row5['ort'];
|
||||
$str = $row5['str'];
|
||||
$plz = $row5['plz'];
|
||||
}
|
||||
|
||||
$j = $j+1;
|
||||
|
@ -825,7 +825,7 @@ echo"
|
||||
or die ("Cannot execute query");
|
||||
echo "<select class='select_form' size=\"1\" name=\"stellenart2\" id='stellenart2'>";
|
||||
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>
|
||||
@ -1041,7 +1041,7 @@ echo"
|
||||
or die ("Cannot execute query");
|
||||
echo "<select class='select_form' size=\"1\" name=\"stellenart3\" id='stellenart3'>";
|
||||
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>
|
||||
@ -1511,7 +1511,7 @@ echo"
|
||||
or die ("Cannot execute query");
|
||||
echo "<select class='select_form' size=\"1\" name=\"stellenart5\" id='stellenart5'>";
|
||||
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>
|
||||
@ -1725,7 +1725,7 @@ echo"
|
||||
or die ("Cannot execute query");
|
||||
echo "<select class='select_form' size=\"1\" name=\"stellenart6\" id='stellenart6'>";
|
||||
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>
|
||||
@ -2192,7 +2192,7 @@ echo"
|
||||
or die ("Cannot execute query");
|
||||
echo "<select class='select_form' size=\"1\" name=\"stellenart8\" id='stellenart8'>";
|
||||
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>
|
||||
@ -2407,7 +2407,7 @@ echo"
|
||||
or die ("Cannot execute query");
|
||||
echo "<select class='select_form' size=\"1\" name=\"stellenart9\" id='stellenart9'>";
|
||||
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[i'artid'] == $art){echo " selected ";} echo">$row1[bezeichnung] </option>\n";
|
||||
}
|
||||
|
||||
echo"</select>
|
||||
@ -2877,7 +2877,7 @@ echo"
|
||||
or die ("Cannot execute query");
|
||||
echo "<select class='select_form' size=\"1\" name=\"stellenart11\" id='stellenart11'>";
|
||||
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>
|
||||
@ -3572,7 +3572,7 @@ if(trim($db_vertiefungsbereich) == trim($vertiefungsbereich) AND
|
||||
");
|
||||
$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;
|
||||
}
|
||||
|
||||
@ -3582,7 +3582,7 @@ if(trim($db_vertiefungsbereich) == trim($vertiefungsbereich) AND
|
||||
VALUES ($dst_id, '$bezeichnung', '$str', '$plz_postfach', '$postfach', '$plz', '$ort', '$bundesland', '$staat', '$maildst')");
|
||||
}
|
||||
|
||||
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{
|
||||
|
Loading…
x
Reference in New Issue
Block a user