From c00fb6812ec32ff32014efb0e984f9dce8ee2053 Mon Sep 17 00:00:00 2001 From: aschwarz Date: Tue, 14 Mar 2023 08:08:06 +0100 Subject: [PATCH] =?UTF-8?q?kleine=20constant=20Fehler=20ge=C3=A4ndert?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- abschluss.php | 22 ++++++------- ansicht_entschieden.php | 32 +++++++++---------- ausschuss_status.php | 22 ++++++------- bearbeiten.php | 4 +-- beteiligte_erledigt.php | 10 +++--- beteiligtenbenennung.php | 26 +++++++-------- bewertungsvorschlag.php | 14 ++++---- edit.php | 18 +++++------ erfassen_eingabe.php | 4 +-- func_beteiligter_angehoert.php | 6 ++-- func_beteiligter_status.php | 12 +++---- func_gutachter_angehoert.php | 6 ++-- gutachterbenennung.php | 14 ++++---- index.php | 4 +-- info_entscheid.php | 16 +++++----- menu_admin.php | 22 ++++++------- menu_ausschuss.php | 20 ++++++------ prints/ideen.php | 6 ++-- status.php | 58 +++++++++++++++++----------------- titel.php | 10 +++--- 20 files changed, 163 insertions(+), 163 deletions(-) diff --git a/abschluss.php b/abschluss.php index e2d4bd3..776c3e2 100755 --- a/abschluss.php +++ b/abschluss.php @@ -55,11 +55,11 @@ if($action == ''){ while ($row = $result->fetch_array()){ array_push($table_data1, array( - 'vid' => $row[vid], - 'betreff' => $row[betreff], - 'datum' => $row[datum], - 'vorname' => $row[vorname], - 'nachname' => $row[nachname] + 'vid' => $row['vid'], + 'betreff' => $row['betreff'], + 'datum' => $row['datum'], + 'vorname' => $row['vorname'], + 'nachname' => $row['nachname'] ) ); } @@ -165,7 +165,7 @@ if($action == 'step3a'){ if(isset($_SESSION["abschluss_chk1"])){ $smarty->assign('abschluss_chk1', $_SESSION["abschluss_chk1"]); }else{ - if(preg_match("/1/",$row[ziel])){ + if(preg_match("/1/",$row['ziel'])){ $smarty->assign('abschluss_chk1', 1); }else{ $smarty->assign('abschluss_chk1', 0); @@ -175,7 +175,7 @@ if($action == 'step3a'){ if(isset($_SESSION["abschluss_chk2"])){ $smarty->assign('abschluss_chk2', $_SESSION["abschluss_chk2"]); }else{ - if(preg_match("/2/",$row[ziel])){ + if(preg_match("/2/",$row['ziel'])){ $smarty->assign('abschluss_chk2', 2); }else{ $smarty->assign('abschluss_chk2', 0); @@ -185,7 +185,7 @@ if($action == 'step3a'){ if(isset($_SESSION["abschluss_chk3"])){ $smarty->assign('abschluss_chk3', $_SESSION["abschluss_chk3"]); }else{ - if(preg_match("/3/",$row[ziel])){ + if(preg_match("/3/",$row['ziel'])){ $smarty->assign('abschluss_chk3', 3); }else{ $smarty->assign('abschluss_chk3', 0); @@ -195,7 +195,7 @@ if($action == 'step3a'){ if(isset($_SESSION["abschluss_chk4"])){ $smarty->assign('abschluss_chk4', $_SESSION["abschluss_chk4"]); }else{ - if(preg_match("/4/",$row[ziel])){ + if(preg_match("/4/",$row['ziel'])){ $smarty->assign('abschluss_chk4', 4); }else{ $smarty->assign('abschluss_chk4', 0); @@ -205,7 +205,7 @@ if($action == 'step3a'){ if(isset($_SESSION["abschluss_chk5"])){ $smarty->assign('abschluss_chk5', $_SESSION["abschluss_chk5"]); }else{ - if(preg_match("/5/",$row[ziel])){ + if(preg_match("/5/",$row['ziel'])){ $smarty->assign('abschluss_chk5', 5); }else{ $smarty->assign('abschluss_chk5', 0); @@ -948,4 +948,4 @@ echo " $smarty->assign('action', "$action"); $smarty->display("$template/$templatename"); -?> \ No newline at end of file +?> diff --git a/ansicht_entschieden.php b/ansicht_entschieden.php index ac7c09e..c94b96c 100755 --- a/ansicht_entschieden.php +++ b/ansicht_entschieden.php @@ -56,7 +56,7 @@ if($action == ''){ ORDER BY erfass_dat ASC"); $row_status = $result_status->fetch_array(); - switch ($row[beziehung]) + switch ($row['beziehung']) { case "P": $beziehung = "ProfessorIn"; @@ -144,11 +144,11 @@ if($action == ''){ while ($row2a = $result2a->fetch_array()){ array_push($table_data2a, array( - 'vorname' => $row2a[vorname], - 'nachname' => $row2a[nachname], - 'bid' => $row2a[bid], - 'stellung_dat' => $row2a[stellung_dat], - 'stellung_dat_form' => $row2a[stellung_dat_form] + 'vorname' => $row2a['vorname'], + 'nachname' => $row2a['nachname'], + 'bid' => $row2a['bid'], + 'stellung_dat' => $row2a['stellung_dat'], + 'stellung_dat_form' => $row2a['stellung_dat_form'] ) ); } @@ -164,38 +164,38 @@ if($action == ''){ WHERE vid = $id"); $row4 = $result4->fetch_array(); - if($row4[annahme] == 'J'){ + if($row4['annahme'] == 'J'){ $annahme = 'Ja'; }else{ $annahme = 'Nein'; } - if(preg_match("/1/",$row4[ziel])){ + if(preg_match("/1/",$row4['ziel'])){ $smarty->assign('ansicht_entschieden_chk1', 1); }else{ $smarty->assign('ansicht_entschieden_chk1', 0); } - if(preg_match("/2/",$row4[ziel])){ + if(preg_match("/2/",$row4['ziel'])){ $smarty->assign('ansicht_entschieden_chk2', 2); }else{ $smarty->assign('ansicht_entschieden_chk2', 0); } - if(preg_match("/3/",$row4[ziel])){ + if(preg_match("/3/",$row4['ziel'])){ $smarty->assign('ansicht_entschieden_chk3', 3); }else{ $smarty->assign('ansicht_entschieden_chk3', 0); } - if(preg_match("/4/",$row4[ziel])){ + if(preg_match("/4/",$row4['ziel'])){ $smarty->assign('ansicht_entschieden_chk4', 4); }else{ $smarty->assign('ansicht_entschieden_chk4', 0); } - if(preg_match("/5/",$row4[ziel])){ + if(preg_match("/5/",$row4['ziel'])){ $smarty->assign('ansicht_entschieden_chk5', 5); }else{ $smarty->assign('ansicht_entschieden_chk5', 0); @@ -205,7 +205,7 @@ if($action == ''){ $smarty->assign('ansicht_entschieden_annahme', "$annahme"); $smarty->assign('ansicht_entschieden_annahme_bemerkung', "$row4[annahme_bemerkung]"); - if($row4[praemie] == 'J'){ + if($row4['praemie'] == 'J'){ $praemie = 'Ja'; }else{ $praemie = 'Nein'; @@ -264,7 +264,7 @@ if($action == ''){ $table_data3 = array(); $verlauf_dup = array(""); while ($row3 = $result3->fetch_array()){ - $status = $row3[status]; + $status = $row3['status']; if($row3['sid'] == '103'){ # Da jedes Ausschussmitglied informiert wird, reicht es aus, wenn bei den Statusdetails nur ein Hinweis pro Gutachter genannt wird, nicht 5x pro Person @@ -293,7 +293,7 @@ if($action == ''){ } array_push($table_data3, array( - 'datum1' => $row3[datum1], + 'datum1' => $row3['datum1'], 'info' => $info, 'status' => $status ) @@ -321,4 +321,4 @@ if($action == 'save'){ $smarty->assign('action', "$action"); $smarty->display("$template/$templatename"); -?> \ No newline at end of file +?> diff --git a/ausschuss_status.php b/ausschuss_status.php index 787d0fe..3785452 100755 --- a/ausschuss_status.php +++ b/ausschuss_status.php @@ -56,12 +56,12 @@ if($action == ''){ ORDER BY datum DESC, status DESC LIMIT 1"); $row2 = $result2->fetch_array(); - if($row2[status] == '7'){ + if($row2['status'] == '7'){ array_push($table_data1, array( - 'vid' => $row[vid], - 'betreff' => $row[betreff], - 'erfass_dat_form' => $row[erfass_dat_form], - 'sitzungsdat' => $row1[datum_form], + 'vid' => $row['vid'], + 'betreff' => $row['betreff'], + 'erfass_dat_form' => $row['erfass_dat_form'], + 'sitzungsdat' => $row1['datum_form'], 'dateiname' => 'ausschuss_ansicht_entschieden.php' ) ); @@ -76,12 +76,12 @@ if($action == ''){ ORDER BY datum DESC, status DESC LIMIT 1"); $row2 = $result2->fetch_array(); - if($row2[status] == '8'){ + if($row2['status'] == '8'){ array_push($table_data1, array( - 'vid' => $row[vid], - 'betreff' => $row[betreff], - 'erfass_dat_form' => $row[erfass_dat_form], - 'sitzungsdat' => $row1[datum_form], + 'vid' => $row['vid'], + 'betreff' => $row['betreff'], + 'erfass_dat_form' => $row['erfass_dat_form'], + 'sitzungsdat' => $row1['datum_form'], 'dateiname' => 'ausschuss_ansicht_entschieden.php' ) ); @@ -104,4 +104,4 @@ if($action == ''){ $smarty->assign('action', "$action"); $smarty->display("$template/$templatename"); -?> \ No newline at end of file +?> diff --git a/bearbeiten.php b/bearbeiten.php index 64b2142..c19c47b 100755 --- a/bearbeiten.php +++ b/bearbeiten.php @@ -30,7 +30,7 @@ $result_vorh = $db->query("SELECT count(*) Anz WHERE vid=$id"); $row_vorh = $result_vorh->fetch_array(); -if($row_vorh[Anz] == 0){ +if($row_vorh['Anz'] == 0){ $smarty->assign('bearbeiten_err', "1"); }else{ $smarty->assign('bearbeiten_err', "0"); @@ -39,4 +39,4 @@ if($row_vorh[Anz] == 0){ $smarty->display("$template/$templatename"); -?> \ No newline at end of file +?> diff --git a/beteiligte_erledigt.php b/beteiligte_erledigt.php index 64822ea..8559e09 100755 --- a/beteiligte_erledigt.php +++ b/beteiligte_erledigt.php @@ -43,10 +43,10 @@ if($action == ''){ while ($row = $result->fetch_array()){ array_push($table_data1, array( - 'vid' => $row[vid], - 'betreff' => $row[betreff], - 'erfass_dat_form' => $row[erfass_dat_form], - 'frist_dat_form' => $row[frist_dat_form] + 'vid' => $row['vid'], + 'betreff' => $row['betreff'], + 'erfass_dat_form' => $row['erfass_dat_form'], + 'frist_dat_form' => $row['frist_dat_form'] ) ); } @@ -63,4 +63,4 @@ if($action == ''){ $smarty->assign('action', "$action"); $smarty->display("$template/$templatename"); -?> \ No newline at end of file +?> diff --git a/beteiligtenbenennung.php b/beteiligtenbenennung.php index 1b2f782..427f3eb 100755 --- a/beteiligtenbenennung.php +++ b/beteiligtenbenennung.php @@ -55,17 +55,17 @@ if($action == ''){ while ($row1 = $result1->fetch_array()){ - $status = $beteiligter -> beteiligter_status($row1[bid]); - $status_klartext = $beteiligter -> beteiligter_status_klartext($row1[bid], $status); + $status = $beteiligter -> beteiligter_status($row1['bid']); + $status_klartext = $beteiligter -> beteiligter_status_klartext($row1['bid'], $status); array_push($table_data1, array( - 'bid' => $row1[bid], - 'vorname' => $row1[vorname], - 'nachname' => $row1[nachname], + 'bid' => $row1['bid'], + 'vorname' => $row1['vorname'], + 'nachname' => $row1['nachname'], 'status' => $status, 'status_klartext' => $status_klartext, 'frist' => $frist, - 'frist_tag' => $row1[frist_tag] + 'frist_tag' => $row1['frist_tag'] ) ); } @@ -90,7 +90,7 @@ if($action == ''){ WHERE vid='$id' AND imtuid='$row2[imtuid]'") or die(mysql_error()); // Change users to the database where you keep your usernames, and likewise with username $row_dis_gut = $query_dis_gut->fetch_array(); - if($row_dis_gut[Anz] > 0){ + if($row_dis_gut['Anz'] > 0){ $disable_gut = 1; }else{ $disable_gut = 0; @@ -102,22 +102,22 @@ if($action == ''){ WHERE vid='$id' AND imtuid='$row2[imtuid]'") or die(mysql_error()); // Change users to the database where you keep your usernames, and likewise with username $row_dis_bet = $query_dis_bet->fetch_array(); - if($row_dis_bet[Anz] > 0){ + if($row_dis_bet['Anz'] > 0){ $disable_bet = 1; }else{ $disable_bet = 0; } - if($row2[imtuid] == $_GET[userid]){ + if($row2['imtuid'] == $_GET['userid']){ $selected = 1; }else{ $selected = 0; } array_push($table_data2, array( - 'imtuid' => $row2[imtuid], - 'vorname' => $row2[vorname], - 'nachname' => $row2[nachname], + 'imtuid' => $row2['imtuid'], + 'vorname' => $row2['vorname'], + 'nachname' => $row2['nachname'], 'disable_gut' => $disable_gut, 'disable_bet' => $disable_bet, 'selected' => $selected @@ -1069,4 +1069,4 @@ if($action == 'anschreiben1'){ $smarty->assign('action', "$action"); $smarty->display("$template/$templatename"); -?> \ No newline at end of file +?> diff --git a/bewertungsvorschlag.php b/bewertungsvorschlag.php index 6fc0579..3a7acb5 100755 --- a/bewertungsvorschlag.php +++ b/bewertungsvorschlag.php @@ -37,38 +37,38 @@ if($action == ''){ WHERE vid = '$id'"); $row = $result->fetch_array(); - if(preg_match("/1/",$row[ziel])){ + if(preg_match("/1/",$row['ziel'])){ $smarty->assign('bewertungsvorschlag_chk1', "Y"); }else{ $smarty->assign('bewertungsvorschlag_chk1', "N"); } - if(preg_match("/2/",$row[ziel])){ + if(preg_match("/2/",$row['ziel'])){ $smarty->assign('bewertungsvorschlag_chk2', "Y"); }else{ $smarty->assign('bewertungsvorschlag_chk2', "N"); } - if(preg_match("/3/",$row[ziel])){ + if(preg_match("/3/",$row['ziel'])){ $smarty->assign('bewertungsvorschlag_chk3', "Y"); }else{ $smarty->assign('bewertungsvorschlag_chk3', "N"); } - if(preg_match("/4/",$row[ziel])){ + if(preg_match("/4/",$row['ziel'])){ $smarty->assign('bewertungsvorschlag_chk4', "Y"); }else{ $smarty->assign('bewertungsvorschlag_chk4', "N"); } - if(preg_match("/5/",$row[ziel])){ + if(preg_match("/5/",$row['ziel'])){ $smarty->assign('bewertungsvorschlag_chk5', "Y"); }else{ $smarty->assign('bewertungsvorschlag_chk5', "N"); } - if($row[annahme] == ''){ + if($row['annahme'] == ''){ $smarty->assign('bewertungsvorschlag_annahme', "J"); }else{ $smarty->assign('bewertungsvorschlag_annahme', "$row[annahme]"); @@ -143,4 +143,4 @@ if($action == 'save'){ $smarty->assign('action', "$action"); $smarty->display("$template/$templatename"); -?> \ No newline at end of file +?> diff --git a/edit.php b/edit.php index c2493e0..cabc9cc 100755 --- a/edit.php +++ b/edit.php @@ -61,7 +61,7 @@ if($action == ''){ ORDER BY erfass_dat ASC"); $row_status = $result_status->fetch_array(); - switch ($row[beziehung]) + switch ($row['beziehung']) { case "P": $beziehung = "ProfessorIn"; @@ -115,16 +115,16 @@ if($action == ''){ while ($row2 = $result2->fetch_array()){ - if($row2[kid] == $row[kategorie]){ + if($row2['kid'] == $row['kategorie']){ $selected = "1"; }else{ $selected = "0"; } array_push($table_data2, array( - 'kid' => $row2[kid], + 'kid' => $row2['kid'], 'selected' => $selected, - 'kategorie' => $row2[kategorie] + 'kategorie' => $row2['kategorie'] ) ); } @@ -139,7 +139,7 @@ if($action == ''){ ORDER BY datum DESC LIMIT 1"); $row2a = $result2a->fetch_array(); - if($row2a[status] == 1){ + if($row2a['status'] == 1){ $smarty->assign('edit_ablehnen_bttn', "1"); $smarty->assign('edit_ablehnen_vid', "$id"); } @@ -180,7 +180,7 @@ if($action == ''){ $table_data3 = array(); $verlauf_dup = array(""); while ($row3 = $result3->fetch_array()){ - $status = $row3[status]; + $status = $row3['status']; if($row3['sid'] == '103'){ # Da jedes Ausschussmitglied informiert wird, reicht es aus, wenn bei den Statusdetails nur ein Hinweis pro Gutachter genannt wird, nicht 5x pro Person @@ -194,7 +194,7 @@ if($action == ''){ if (!in_array($status, $verlauf_dup)) { $verlauf_dup[] = "$status"; - $status = $row3[status]; + $status = $row3['status']; }else{ $status = ""; } @@ -209,7 +209,7 @@ if($action == ''){ } array_push($table_data3, array( - 'datum1' => $row3[datum1], + 'datum1' => $row3['datum1'], 'info' => $info, 'status' => $status ) @@ -465,4 +465,4 @@ if($action == 'ablehnung2'){ $smarty->assign('action', "$action"); $smarty->display("$template/$templatename"); -?> \ No newline at end of file +?> diff --git a/erfassen_eingabe.php b/erfassen_eingabe.php index 5b385d0..dc98946 100755 --- a/erfassen_eingabe.php +++ b/erfassen_eingabe.php @@ -45,7 +45,7 @@ if($action == ''){ $smarty->assign('erfassen_eingabe_nachname', $row['nachname']); $smarty->assign('erfassen_eingabe_mail', "$row[mail]"); - switch ($row[beziehung]) + switch ($row['beziehung']) { case "P": $beziehung = "ProfessorIn"; @@ -251,4 +251,4 @@ if($action == 'save1'){ $smarty->assign('action', "$action"); $smarty->display("$template/$templatename"); -?> \ No newline at end of file +?> diff --git a/func_beteiligter_angehoert.php b/func_beteiligter_angehoert.php index 80dab0d..789280a 100755 --- a/func_beteiligter_angehoert.php +++ b/func_beteiligter_angehoert.php @@ -72,13 +72,13 @@ require_once("func_verlauf.php"); $row_betang3 = $query_betang3->fetch_array(); #4 - if($row_betang3[Anz] == 0){ + if($row_betang3['Anz'] == 0){ #5 - if($row_betang2[Anz] == $row_betang1[Anz] AND $row_betang1[Anz] > 0){ + if($row_betang2['Anz'] == $row_betang1[Anz] AND $row_betang1[Anz] > 0){ verlauf($uid, $vid, "Alle Beteiligte angehört", 4, ''); } } } -?> \ No newline at end of file +?> diff --git a/func_beteiligter_status.php b/func_beteiligter_status.php index 3d9f654..1081ccf 100755 --- a/func_beteiligter_status.php +++ b/func_beteiligter_status.php @@ -16,26 +16,26 @@ class beteiligter { # Erfassung noch möglich, Stellungnahme vom # Erfassung noch möglich, noch keine Stellungnahme - if($row_bet_data[stellung_dat] != '0000-00-00 00:00:00'){ + if($row_bet_data['stellung_dat'] != '0000-00-00 00:00:00'){ $status = ": Stellungnahme vom $row_bet_data[stellung_dat_form]"; }else{ $status = ""; } $aend_dat = date("Y-m-d"); - if($row_bet_data[frist_datum] >= $aend_dat AND $row_bet_data[stellung_dat] != '0000-00-00 00:00:00'){ + if($row_bet_data['frist_datum'] >= $aend_dat AND $row_bet_data['stellung_dat'] != '0000-00-00 00:00:00'){ return 1; } - if($row_bet_data[frist_datum] >= $aend_dat AND $row_bet_data[stellung_dat] == '0000-00-00 00:00:00'){ + if($row_bet_data['frist_datum'] >= $aend_dat AND $row_bet_data['stellung_dat'] == '0000-00-00 00:00:00'){ return 2; } - if($row_bet_data[frist_datum] < $aend_dat AND $row_bet_data[stellung_dat] != '0000-00-00 00:00:00'){ + if($row_bet_data['frist_datum'] < $aend_dat AND $row_bet_data['stellung_dat'] != '0000-00-00 00:00:00'){ return 3; } - if($row_bet_data[frist_datum] < $aend_dat AND $row_bet_data[stellung_dat] == '0000-00-00 00:00:00'){ + if($row_bet_data['frist_datum'] < $aend_dat AND $row_bet_data['stellung_dat'] == '0000-00-00 00:00:00'){ return 4; } @@ -77,4 +77,4 @@ class beteiligter { } } -?> \ No newline at end of file +?> diff --git a/func_gutachter_angehoert.php b/func_gutachter_angehoert.php index 80a7fca..c62c8f3 100755 --- a/func_gutachter_angehoert.php +++ b/func_gutachter_angehoert.php @@ -64,13 +64,13 @@ require_once("func_verlauf.php"); $row_gutang3 = $query_gutang3->fetch_array(); #4 - if($row_gutang3[Anz] == 0){ + if($row_gutang3['Anz'] == 0){ #5 - if($row_gutang2[Anz] == $row_gutang1[Anz] AND $row_gutang1[Anz] >0){ + if($row_gutang2['Anz'] == $row_gutang1['Anz'] AND $row_gutang1['Anz'] >0){ verlauf($uid, $vid, "Alle Gutachter angehört", 5, ''); } } } -?> \ No newline at end of file +?> diff --git a/gutachterbenennung.php b/gutachterbenennung.php index 6c49441..e8d2fcb 100755 --- a/gutachterbenennung.php +++ b/gutachterbenennung.php @@ -111,7 +111,7 @@ if($action == ''){ WHERE vid='$id' AND imtuid='$row2[imtuid]'") or die(mysql_error()); // Change users to the database where you keep your usernames, and likewise with username $row_dis_gut = $query_dis_gut->fetch_array(); - if($row_dis_gut[Anz] > 0){ + if($row_dis_gut['Anz'] > 0){ $disable_gut = 1; }else{ $disable_gut = 0; @@ -123,22 +123,22 @@ if($action == ''){ WHERE vid='$id' AND imtuid='$row2[imtuid]'") or die(mysql_error()); // Change users to the database where you keep your usernames, and likewise with username $row_dis_bet = $query_dis_bet->fetch_array(); - if($row_dis_bet[Anz] > 0){ + if($row_dis_bet['Anz'] > 0){ $disable_bet = 1; }else{ $disable_bet = 0; } - if($row2[imtuid] == $_GET[userid]){ + if($row2['imtuid'] == $_GET['userid']){ $selected = 1; }else{ $selected = 0; } array_push($table_data2, array( - 'imtuid' => $row2[imtuid], - 'vorname' => $row2[vorname], - 'nachname' => $row2[nachname], + 'imtuid' => $row2['imtuid'], + 'vorname' => $row2['vorname'], + 'nachname' => $row2['nachname'], 'disable_bet' => $disable_bet, 'disable_gut' => $disable_gut, 'selected' => $selected @@ -888,4 +888,4 @@ if($action == 'anschreiben1'){ $smarty->assign('action', "$action"); $smarty->display("$template/$templatename"); -?> \ No newline at end of file +?> diff --git a/index.php b/index.php index 37f57b0..96ff1a0 100755 --- a/index.php +++ b/index.php @@ -15,9 +15,9 @@ require_once "language/german.inc.php"; $action = $_GET['action']; if($action == ''){ - if(isset($_GET[error])){ + if(isset($_GET['error'])){ - $errorno = $_GET[error]; + $errorno = $_GET['error']; $smarty->assign('index_error', 1); diff --git a/info_entscheid.php b/info_entscheid.php index 70a9bcb..bfed849 100755 --- a/info_entscheid.php +++ b/info_entscheid.php @@ -19,28 +19,28 @@ if($action == ''){ WHERE vid='$vid'") or die(mysql_error()); // Change users to the database where you keep your usernames, and likewise with username $row = $query->fetch_array(); - if($row[annahme] == 'J'){ + if($row['annahme'] == 'J'){ $annahme = "Ja"; }else{ $annahme = "Nein"; } - if($row[praemie] == 'J'){ + if($row['praemie'] == 'J'){ $praemie = "Ja"; }else{ $praemie = "Nein"; } $smarty->assign('info_entscheid_annahme', $annahme); - $smarty->assign('info_entscheid_annahme_bemerkung', $row[annahme_bemerkung]); + $smarty->assign('info_entscheid_annahme_bemerkung', $row['annahme_bemerkung']); $smarty->assign('info_entscheid_praemie', $praemie); - $smarty->assign('info_entscheid_punkte_gesamt', $row[punkte_gesamt]); - $smarty->assign('info_entscheid_praemie_gutschein', $row[praemie_gutschein]); - $smarty->assign('info_entscheid_dienstbefreiung', $row[dienstbefreiung]); - $smarty->assign('info_entscheid_massnahme', $row[massnahme]); + $smarty->assign('info_entscheid_punkte_gesamt', $row['punkte_gesamt']); + $smarty->assign('info_entscheid_praemie_gutschein', $row['praemie_gutschein']); + $smarty->assign('info_entscheid_dienstbefreiung', $row['dienstbefreiung']); + $smarty->assign('info_entscheid_massnahme', $row['massnahme']); } $smarty->assign('action', "$action"); $smarty->display("$template/$templatename"); -?> \ No newline at end of file +?> diff --git a/menu_admin.php b/menu_admin.php index ad515f4..5f24c81 100755 --- a/menu_admin.php +++ b/menu_admin.php @@ -20,7 +20,7 @@ if($action == ''){ AND d.bereich='ADB'"); $row_bearb = $result_bearb->fetch_array(); - if($row_bearb[Anz] > 0){ + if($row_bearb['Anz'] > 0){ $smarty->assign('menu_admin_bearb', "1"); } @@ -44,9 +44,9 @@ if($action == ''){ while ($row = $result->fetch_array()){ array_push($table_data1, array( - 'beschreibung' => $row[beschreibung], - 'dateiname' => $row[dateiname], - 'target' => $row[target] + 'beschreibung' => $row['beschreibung'], + 'dateiname' => $row['dateiname'], + 'target' => $row['target'] ) ); } @@ -71,9 +71,9 @@ if($action == ''){ while ($row2 = $result2->fetch_array()){ array_push($table_data2, array( - 'beschreibung' => $row2[beschreibung], - 'dateiname' => $row2[dateiname], - 'target' => $row2[target] + 'beschreibung' => $row2['beschreibung'], + 'dateiname' => $row2['dateiname'], + 'target' => $row2['target'] ) ); } @@ -98,9 +98,9 @@ if($action == ''){ while ($row3 = $result3->fetch_array()){ array_push($table_data3, array( - 'beschreibung' => $row3[beschreibung], - 'dateiname' => $row3[dateiname], - 'target' => $row3[target] + 'beschreibung' => $row3['beschreibung'], + 'dateiname' => $row3['dateiname'], + 'target' => $row3['target'] ) ); } @@ -133,4 +133,4 @@ if($action == 'suche'){ $smarty->assign('action', "$action"); $smarty->display("$template/$templatename"); -?> \ No newline at end of file +?> diff --git a/menu_ausschuss.php b/menu_ausschuss.php index 064a129..091399c 100755 --- a/menu_ausschuss.php +++ b/menu_ausschuss.php @@ -19,7 +19,7 @@ if($action == ''){ AND d.bereich='AS'"); $row_bearb = $result_bearb->fetch_array(); - if($row_bearb[Anz] > 0){ + if($row_bearb['Anz'] > 0){ $smarty->assign('menu_ausschuss_bearb', "1"); } @@ -62,7 +62,7 @@ if($action == ''){ AND d.bereich='ASE'"); $row_bearb2 = $result_bearb2->fetch_array(); - if($row_bearb2[Anz] > 0){ + if($row_bearb2['Anz'] > 0){ $smarty->assign('menu_ausschuss_bearb2', "1"); } @@ -83,9 +83,9 @@ if($action == ''){ while ($row2 = $result2->fetch_array()){ array_push($table_data2, array( - 'beschreibung' => $row2[beschreibung], - 'dateiname' => $row2[dateiname], - 'target' => $row2[target] + 'beschreibung' => $row2['beschreibung'], + 'dateiname' => $row2['dateiname'], + 'target' => $row2['target'] ) ); } @@ -104,7 +104,7 @@ if($action == ''){ AND d.bereich='ASS'"); $row_bearb3 = $result_bearb3->fetch_array(); - if($row_bearb3[Anz] > 0){ + if($row_bearb3['Anz'] > 0){ $smarty->assign('menu_ausschuss_bearb3', "1"); } @@ -125,9 +125,9 @@ if($action == ''){ while ($row3 = $result3->fetch_array()){ array_push($table_data3, array( - 'beschreibung' => $row3[beschreibung], - 'dateiname' => $row3[dateiname], - 'target' => $row3[target] + 'beschreibung' => $row3['beschreibung'], + 'dateiname' => $row3['dateiname'], + 'target' => $row3['target'] ) ); } @@ -161,4 +161,4 @@ if($action == 'suche'){ $smarty->assign('action', "$action"); $smarty->display("$template/$templatename"); -?> \ No newline at end of file +?> diff --git a/prints/ideen.php b/prints/ideen.php index 6d201fb..c31136f 100755 --- a/prints/ideen.php +++ b/prints/ideen.php @@ -139,8 +139,8 @@ $columns = 4; //five columns $pdf->SetY(80.8); } #$pos=$pdf->GetY()+10; - $betreff = html_entity_decode($row[betreff]); - $massnahme = html_entity_decode($row[massnahme]); + $betreff = html_entity_decode($row['betreff']); + $massnahme = html_entity_decode($row['massnahme']); $data[0]['TEXT'] = "$row[vid]"; $data[0]['T_ALIGN'] = "L"; //C=CENTER, L=LEFT, R=RIGHT, J=JUSTIFY @@ -189,4 +189,4 @@ $columns = 4; //five columns $pdf->Output("veroeffentlichung_ideen.pdf","$output"); $pdf->closeParsers(); -?> \ No newline at end of file +?> diff --git a/status.php b/status.php index bc0e43e..bda5690 100755 --- a/status.php +++ b/status.php @@ -55,15 +55,15 @@ if($action == ''){ ORDER BY datum DESC, status DESC LIMIT 1"); $row2 = $result2->fetch_array(); - if($row2[status] == '1'){ + if($row2['status'] == '1'){ array_push($table_data1, array( - 'vid' => $row[vid], - 'betreff' => $row[betreff], - 'erfass_dat_form' => $row[erfass_dat_form], - 'sitzungsdat' => $row1[datum_form], - 'vorname' => $row[vorname], + 'vid' => $row['vid'], + 'betreff' => $row['betreff'], + 'erfass_dat_form' => $row['erfass_dat_form'], + 'sitzungsdat' => $row1['datum_form'], + 'vorname' => $row['vorname'], 'dateiname' => 'bearbeiten.php', - 'nachname' => $row[nachname] + 'nachname' => $row['nachname'] ) ); } @@ -77,15 +77,15 @@ if($action == ''){ ORDER BY datum DESC, status DESC LIMIT 1"); $row2 = $result2->fetch_array(); - if($row2[status] == '7'){ + if($row2['status'] == '7'){ array_push($table_data1, array( - 'vid' => $row[vid], - 'betreff' => $row[betreff], - 'erfass_dat_form' => $row[erfass_dat_form], - 'sitzungsdat' => $row1[datum_form], - 'vorname' => $row[vorname], + 'vid' => $row['vid'], + 'betreff' => $row['betreff'], + 'erfass_dat_form' => $row['erfass_dat_form'], + 'sitzungsdat' => $row1['datum_form'], + 'vorname' => $row['vorname'], 'dateiname' => 'ansicht_entschieden.php', - 'nachname' => $row[nachname] + 'nachname' => $row['nachname'] ) ); } @@ -99,15 +99,15 @@ if($action == ''){ ORDER BY datum DESC, status DESC LIMIT 1"); $row2 = $result2->fetch_array(); - if($row2[status] == '8'){ + if($row2['status'] == '8'){ array_push($table_data1, array( - 'vid' => $row[vid], - 'betreff' => $row[betreff], - 'erfass_dat_form' => $row[erfass_dat_form], - 'sitzungsdat' => $row1[datum_form], - 'vorname' => $row[vorname], + 'vid' => $row['vid'], + 'betreff' => $row['betreff'], + 'erfass_dat_form' => $row['erfass_dat_form'], + 'sitzungsdat' => $row1['datum_form'], + 'vorname' => $row['vorname'], 'dateiname' => 'ansicht_entschieden.php', - 'nachname' => $row[nachname] + 'nachname' => $row['nachname'] ) ); } @@ -122,15 +122,15 @@ if($action == ''){ LIMIT 1"); $row2 = $result2->fetch_array(); - if($row2[status] != '1' AND $row2[status] != '7' AND $row2[status] != '8'){ + if($row2['status'] != '1' AND $row2['status'] != '7' AND $row2['status'] != '8'){ array_push($table_data1, array( - 'vid' => $row[vid], - 'betreff' => $row[betreff], - 'erfass_dat_form' => $row[erfass_dat_form], - 'sitzungsdat' => $row1[datum_form], - 'vorname' => $row[vorname], + 'vid' => $row['vid'], + 'betreff' => $row['betreff'], + 'erfass_dat_form' => $row['erfass_dat_form'], + 'sitzungsdat' => $row1['datum_form'], + 'vorname' => $row['vorname'], 'dateiname' => 'bearbeiten.php', - 'nachname' => $row[nachname] + 'nachname' => $row['nachname'] ) ); } @@ -150,4 +150,4 @@ if($action == ''){ $smarty->assign('action', "$action"); $smarty->display("$template/$templatename"); -?> \ No newline at end of file +?> diff --git a/titel.php b/titel.php index 77011d7..1121d05 100755 --- a/titel.php +++ b/titel.php @@ -14,7 +14,7 @@ $result_admin = $db->query("SELECT count(*) Anz FROM imt_rollen_user_zuord WHERE #echo "SELECT count(*) Anz FROM imt_rollen_user_zuord WHERE imtuid = '$uid' AND roid='1'
"; $row_admin = $result_admin->fetch_array(); -if($row_admin[Anz] > 0){ +if($row_admin['Anz'] > 0){ $smarty->assign('titel_admin', "1"); } @@ -22,7 +22,7 @@ if($row_admin[Anz] > 0){ $result_ausschuss = $db->query("SELECT count(*) Anz FROM imt_rollen_user_zuord WHERE imtuid = '$uid' AND roid in (4,5)"); $row_ausschuss = $result_ausschuss->fetch_array(); -if($row_ausschuss[Anz] > 0){ +if($row_ausschuss['Anz'] > 0){ $smarty->assign('titel_ausschuss', "1"); } @@ -30,7 +30,7 @@ if($row_ausschuss[Anz] > 0){ $result_beteiligte = $db->query("SELECT count(*) Anz FROM imt_rollen_user_zuord WHERE imtuid = '$uid' AND roid='3'"); $row_beteiligte = $result_beteiligte->fetch_array(); -if($row_beteiligte[Anz] > 0){ +if($row_beteiligte['Anz'] > 0){ $smarty->assign('titel_beteiligte', "1"); } @@ -38,10 +38,10 @@ if($row_beteiligte[Anz] > 0){ $result_gutachter = $db->query("SELECT count(*) Anz FROM imt_rollen_user_zuord WHERE imtuid = '$uid' AND roid='2'"); $row_gutachter = $result_gutachter->fetch_array(); -if($row_gutachter[Anz] > 0){ +if($row_gutachter['Anz'] > 0){ $smarty->assign('titel_gutachter', "1"); } $smarty->display("$template/$templatename"); -?> \ No newline at end of file +?>