From 67c4e9598fbe7375460138f3c85ad0a88642de34 Mon Sep 17 00:00:00 2001 From: be10b025 Date: Wed, 4 Sep 2013 08:06:48 +0000 Subject: [PATCH] wawi: autocomplete-Felder mit neuer Version von jQuery --- wawi/bestellung.php | 188 ++++++++++++++++++++++++++++++------- wawi/rechnung.php | 29 +++++- wawi/wawi_autocomplete.php | 46 +++++++-- 3 files changed, 218 insertions(+), 45 deletions(-) diff --git a/wawi/bestellung.php b/wawi/bestellung.php index fc4f888ea..5f9bb3c0d 100644 --- a/wawi/bestellung.php +++ b/wawi/bestellung.php @@ -351,7 +351,10 @@ if(isset($_POST['deleteBtnStorno']) && isset($_POST['id'])) - + + + + @@ -577,16 +637,35 @@ if($aktion == 'suche') echo "\n"; echo ""; + response:function(event,ui) + { + for(i in ui.content) + { + ui.content[i].value=ui.content[i].tag; + ui.content[i].label=ui.content[i].tag; + } + }, + select: function(event, ui) + { + ui.item.value=ui.item.tag; + } + }); + "; + +/* echo ""; */ echo "\n"; @@ -1407,22 +1486,22 @@ if($_GET['method']=='update') echo " Erstellt am:\n"; echo " ".$date->formatDatum($bestellung->insertamum, 'd.m.Y')."\n"; echo " Liefertermin: \n"; - echo "\n"; - echo "\n"; + echo "\n"; + echo "\n"; echo " Firma: \n"; echo " \n"; echo " \n"; echo " Kontaktperson: \n"; echo " "; // wenn user projekt zugeordnet ist -> Projekt Drop Down anzeigen - $ProjektUser = new projekt(); + $ProjektUser = new projekt(); $ProjektUser->getProjektFromBestellung($bestellung->bestellung_id); $Bestellung_Projekt = false; // Projekt DropDown aus allen Projekten von eingeloggten User und dem der Bestellung -> true wenn Projekt aus Bestellung in User Projekten enthalten ist if($projektZugeordnet == true) { echo " Projekt:"; - echo " \n"; + echo " "; // Projekte vom User foreach ($projekt->result as $userProjekts) { @@ -1430,7 +1509,7 @@ if($_GET['method']=='update') if($ProjektUser->projekt_kurzbz == $userProjekts->projekt_kurzbz) { $selected = 'selected'; - $Bestellung_Projekt = true; + $Bestellung_Projekt = true; } echo " "; } @@ -1440,10 +1519,10 @@ if($_GET['method']=='update') echo ""; } - echo " \n"; + echo " \n"; echo ""; - echo "\n"; - echo "\n"; + echo "\n"; + echo "\n"; $disabled = ''; if($status->isStatiVorhanden($bestellung->bestellung_id, 'Bestellung') || $status->isStatiVorhanden($bestellung->bestellung_id, 'Storno') || $status->isStatiVorhanden($bestellung->bestellung_id, 'Abgeschickt')) $disabled = 'disabled'; @@ -1461,7 +1540,7 @@ if($_GET['method']=='update') $kst_vorhanden = true; } echo "\n"; - } + } // wenn user nicht auf kst berechtigt ist, trotzdem anzeigen zum freigeben if(!$kst_vorhanden) echo "\n"; @@ -1477,11 +1556,11 @@ if($_GET['method']=='update') $standort_lieferadresse->load($standorte->adresse_id); if($standort_lieferadresse->adresse_id == $bestellung->lieferadresse) - { + { $selected ='selected'; } echo "\n"; - } + } echo "\n"; echo "\n"; echo " Konto: \n"; @@ -1587,7 +1666,26 @@ if($_GET['method']=='update') $tag_help = $bestell_tag->GetStringTags(); echo "\n"; - echo ' "; + +/* echo ' '; + '; */ echo "\n"; echo "Freigabe:\n"; echo ""; @@ -2394,7 +2492,30 @@ function getDetailRow($i, $bestelldetail_id='', $sort='', $menge='', $ve='', $be $detail_tag = new tags(); $detail_tag->GetTagsByBestelldetail($bestelldetail_id); $help = $detail_tag->GetStringTags(); - echo " "; + +/* echo " "; + "; */ + echo ""; echo ""; echo "\n"; diff --git a/wawi/rechnung.php b/wawi/rechnung.php index f5803cc7a..d0b5c9351 100644 --- a/wawi/rechnung.php +++ b/wawi/rechnung.php @@ -63,7 +63,9 @@ if(isset($_POST['getBetragRow']) && isset($_POST['id'])) - + + +