示例#1
0
 $el->options(array('opt1', 'opt2'));
 $el->html();
 $el = new Elements($form, 'myradio', 'radio');
 $el->label(array('en' => 'label en', 'fr' => 'label fr'));
 $el->options(array('opt1', 'opt2'));
 $el->html();
 $el = new Elements($form, 'mytextarea', 'textarea');
 $el->label(array('en' => 'label en', 'fr' => 'label fr'));
 $el->html();
 $el = new Elements($form, 'myrange', 'range');
 $el->settings(array('min' => 0, 'max' => 100));
 $el->label(array('en' => 'label en', 'fr' => 'label fr'));
 $el->html();
 $el = new Elements($form, 'mydoublerange', 'doublerange');
 $el->label(array('en' => 'label en', 'fr' => 'label fr'));
 $el->settings(array('min' => 0, 'max' => 100));
 $el->html();
 $el = new Elements($form, 'mytext', 'text');
 $el->label(array('en' => 'label en', 'fr' => 'label fr'));
 $el->html();
 $el = new Elements($form, 'mydate', 'date');
 $el->label(array('en' => 'label en', 'fr' => 'label fr'));
 $el->html();
 $el = new Elements($form, 'mytime', 'time');
 $el->label(array('en' => 'label en', 'fr' => 'label fr'));
 $el->html();
 $el = new Elements($form, 'myfloat', 'float');
 $el->label(array('en' => 'label en', 'fr' => 'label fr'));
 $el->html();
 $el = new Elements($form, 'myprice', 'price');
 $el->label(array('en' => 'label en', 'fr' => 'label fr'));