de
Inspiriert von Borlands VCL für Delphi habe in angefangen etwas ähnliches für PHP zu entwickeln.
Inzwischen habe ich alle Elemente der HTML-Formulare sowie einige eigene eingefügt. Kenner der VCL werden sich unter den Namen zu Hause fühlen.
HTML-Basis Elemente
- Edit
- Password
- Radiobutton
- Checkbox
- Submit-/Reset-/Imagebutton
- Memo (Textarea)
- Selectbox
Eigene Elemente
- Groupbox
- Radiogroup
- Treeview
- Progressbar
Nutzung:
Einfach eine Klasse erzeugen und die Elemente hinzufügen.
$action = "index.php";
$name = "form";
$form = new form ($action, $name);
$editname = "edit";
$form->add( new edit($editname) );
echo $form->output();
Eine genauere Beschreibung der einzelnen Elemente (sofern nötig) kommt noch.
Damit die Progressbar grafisch gezeichnet werden kann wird die image-Klasse benötigt.
Download:
form.zip (16.9 KiB, 618 Zugriffe)
image.zip (4.8 KiB, 640 Zugriffe)
gb
Since I started programming in Object Pascal (“Delphi”) I really like the comfort of Borland’s VCL. While I was working on my DBObjects, I thought how cool a thing like the VCL but for PHP would be.
Some days later I finished the first version of this classes. Those who know the VCL will recognize most of the names.
Basic Elements (directly taken from HTML)
- Edit
- Password
- Radiobutton
- Checkbox
- Submit-/Reset-/Imagebutton
- Memo (Textarea)
- Selectbox
Own Elements
- Groupbox
- Radiogroup
- Treeview
- Progressbar
Usage:
Simply create an instance of the form-class and add the elements you need.
$action = "index.php";
$name = "form";
$form = new form ($action, $name);
$editname = "edit";
$form->add( new edit($editname) );
echo $form->output();
For the graphical version of the progressbar you’ll need my image class. Therefore you can download it here, too
Download:
form.zip (16.9 KiB, 618 Zugriffe)
image.zip (4.8 KiB, 640 Zugriffe)