|
|
OldSchoolFormsIntroOldSchoolForms need a config.xml and a simple start script per table. <?php include ("../../conf/config.inc.php"); new bx_editors_dbform_main(); ?> You can generate a skeleton config.xml out of the DB definitions with the help of MDB2 and a little xslt. Field Typestext<bxco:field name="titel" type="text" descr="titel"></bxco:field> fixed (uneditable)<bxco:field name="id" type="fixed" descr="ID"></bxco:field> There's also the subtype named datetime for nicer formatting of date fields select <bxco:field name="cat" type="select" descr="Geschäftsbereich"> the | at the end in bxco:options is important... foreign fields <bxco:field name="personenforeignid" descr="Kontaktperson" type="foreign"> n2m(better example needed) <bxco:field name="Document2Object" type="n2m" alternativeDescr="Document" descr="Parent::Document"> objectfieldvalue is optional date/time<bxco:field name="dc_date" type="datetime" descr="Datum"/> date and time are also allowed as type image upload <bxco:field name="bild" type="file" subtype="image" descr="BILD"> bxco:imagefields is optional. the fields in width, format, height have to exists in the db. the attribute downloaddir in in ''bxco:fields" has also to be set and writable. file upload <bxco:field name="pdf" type="file" descr="PDF" info="fileinfo"> bxco:fileinfofields plus the attribute info are optional. The fields in size and mimetype have to exists in the db. And they are optional, too. the attribute downloaddir in in ''bxco:fields" has also to be set and writable. Chooser<bxco:chooser field="title" orderby="title" /> as child of bxco:chonfig |
Add Comment