Dropdown Form sampel needed |
[eluser]Kyle Johnson[/eluser]
I think I had something similar to this, just not in a model. How would this work with the Form_validation library?
[eluser]reneschaub[/eluser]
Hmm habs imme rnich nicht ganz kappiert. auf www.pcs-basel.ch/rechnungen.zip kannst du dir mal meinen angepassten bambooInvoice script ziehen. Ziel ist es in der Datei rechnungen\bamboo_system_files\application\views\invoices\newinvoice.php per Dropdown Menü einen Support auszuwählen und dieser dann der Rechnung eingefügt wird. sql : Tabelle / supporter - id - SupporterName Tabelle / invoices - sid Habe in invoice_modell.php $this->db->join('supporter', 'supporter.ID = invoices.sid'); Habe halt einfach das problem ein Dropdown Feld zu erstellen Dann habe ich noch ein ander Problem villeicht kannst du mir bei dem Problem helfen? Auch in der Datei newinvoice.php habe ich 4 Text Felder die in die DB rechnugen / invocies / h1,h2,h3,h4 abgespeichert werden. Code: if (isset($_POST['h1'])): Der wert ergebnis2 soll auch in die DB invoices abgelegt werden. Aber ich weich nicht wo und wie ich die Zeitberechnung oben ablege. Ist das ein Modell? Ich bin noch ein ziemlicher Codeigniter noop. Wie heist so schön aller Anfang ist schwer! Und bin dir für jede hilfe Stellung sehr sehr dankbar!!!! Gutes lerne im Japanisch... Gruss Rene
[eluser]The Wizard[/eluser]
[quote author="Kyle Johnson" date="1238808136"]I think I had something similar to this, just not in a model. How would this work with the Form_validation library?[/quote] it actually is designed to work with the lib repopulate the form by creating the dropdown INITIALIZED with the value ( select_id ) so when you populate the form, the chosen city is selected i will return in 10 hours and try to explain
[eluser]Kyle Johnson[/eluser]
[quote author="herrkaleun" date="1238837655"][quote author="Kyle Johnson" date="1238808136"]I think I had something similar to this, just not in a model. How would this work with the Form_validation library?[/quote] it actually is designed to work with the lib repopulate the form by creating the dropdown INITIALIZED with the value ( select_id ) so when you populate the form, the chosen city is selected i will return in 10 hours and try to explain[/quote] No worries. I just completely missed the section in the function that was explicitly for the selected_id. Ooops.
|
Welcome Guest, Not a member yet? Register Sign In |