Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * create new Form
- */
- $form = FormWidget::create(
- /*
- * options (you can add more after)
- */
- array(
- 'direction' => HTML_RIGHT_TO_LEFT,
- 'id' => 'myform',
- 'HTTP-method' => HTTP_POST),
- /*
- * content (you can add more after)
- */
- array(
- /*
- * add new list box
- */
- listBoxWidget::create(array(
- /*
- * list box options
- */
- 'widject-id' => 'drink',
- 'rows' => 4,
- 'label' => 'choose your favorite drink',
- 'align' => 'center'),
- array(
- /*
- * list box content
- */
- /*
- * new listoption
- */
- Listoption::create(
- /*
- * options
- */
- array(
- 'value' => 'water'),
- /*
- * content
- */
- 'water',
- /*
- * style
- */
- array(
- 'font-weight' => 'bold',
- 'color' => 'blue')
- )
- /*
- * more list option
- */
- Listoption::create(
- /*
- * options
- */
- array(
- 'value' => 'milk'),
- /*
- * content
- */
- 'milk',
- /*
- * style
- */
- array(
- 'font-weight' => 'bold',
- 'color' => 'blue'
- ))
- )
- )
- ),
- FormToken::create(md5('dsadsadsartrrrr'.md5(time().'fwe;lk')))
- ));
- echo $form->toString();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement