555808 Simple PHP Script
N/A
Betalt ved levering
The script read a html template from database (mysql).
In this template you found vars, for example: {text1:name}
User start with a dropdown field: Select Template
After User select one template, script reads choosen html template and create for each var a form field.
There 4 var types in each template: Textfield, Uploadfield, Unorderd list, Textarea
1 Template can have many vars from one type for example: {text1:name1} {text2:name2} {ul1:name3:4} {upload1:name4} {text3:name5}
From this example, script has to create a form:
Name 1 : TEXTFIELD
Name 2 : TEXTFIELD
Name 3 : TEXTFIELD TEXTFIELD TEXTFIELD TEXTFIELD (li elements for unorderd list. 4 is 4 in var. make a <br> after 7 fields
Name 3 : UPLOADFIELD
Below the gnerated area i need a fixed one:
Name: TEXTFIELD
Hersteller: DROPDOWN TEXTFIELD
Lieferant: DROPDOWN TEXTFIELD
Typ: DROPDOWN TEXTFIELD
Button Button Button Buton
<-prev Save New next->
all 3 dropdowns same function but a own table. In Dropdown u can select an exist label. If you dont found it, u can write it int textfield.
After save it wil show in dopdown.
Now on save button, script takes data fom filled form fields and replace it with the vars and write all informations
in a new table (products).
prev load last entry for edit from table products
next load next entry for edit from table products
New ask new template select or refil?
select returns to dropdown template select and remove the form fields.
refil only clear form fields for a new entry with same template.
Feel free to ask any question
Projekt ID: #2301761