Browse files

Plain form

  • Loading branch information...
1 parent b9e3e07 commit 1e34669a7ed56344ae0bf74e9eccc00c418b16f4 @jancha jancha committed Jun 28, 2011
Showing with 16 additions and 0 deletions.
  1. +16 −0 lib/Form/Plain.php
View
16 lib/Form/Plain.php
@@ -0,0 +1,16 @@
+<?php
+/* Implementation of plain HTML-only form. Does not support submission or anything */
+class Form_Plain extends HtmlElement {
+ function init(){
+ parent::init();
+ $this->setElement('form');
+ }
+ function addInput($type,$name,$value,$tag='Content'){
+ $f=$this->add('HtmlElement',$name,$tag);
+ $f->setElement('input');
+ $f->setAttr('type',$type);
+ $f->setAttr('value',$value);
+ $f->set('');
+ return $f;
+ }
+}

0 comments on commit 1e34669

Please sign in to comment.