Advertisement
Guest User

Untitled

a guest
Sep 22nd, 2011
487
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.60 KB | None | 0 0
  1. <?php
  2. $bu = $this->getView()->baseUrl();
  3.  
  4. $form = new Zend_Form(array(
  5.     'methos'  => 'post',
  6.     'name'    => 'statusform',
  7.     'enctype' => 'multipart/form-data',
  8.     'elementPrefixPath' => array(
  9.         'App_Form_Element'    =>    'App/Form/Element' // ну или как-то так, в заисимости от проекта
  10.     ),
  11.     'elements' => array(
  12.         'prodstatus_name' => array('text', array(
  13.             'required' => true,
  14.             'label'    => 'Status Name',
  15.             'filters'  => array('StringTrim')
  16.         )),
  17.         'prodstatus_icon' => array('radioImage', array(
  18.             'label'        => 'Select Icon',
  19.             'width'        => '48',
  20.             'multioptions' => array(
  21.                 "black_new.png"         => $bu.'/icons/black_new.png',
  22.                 "black_sale.png"        => $bu.'/icons/black_sale.png',
  23.                 "blue_new.png"          => $bu.'/icons/blue_new.png',
  24.                 "label_sale.png"        => $bu.'/icons/label_sale.png',
  25.                 "new_blue.png"          => $bu.'/icons/new_blue.png',
  26.                 "new_red.png"           => $bu.'/icons/new_red.png',
  27.                 "sale_blue.png"         => $bu.'/icons/sale_blue.png',
  28.                 "sale_green.png"        => $bu.'/icons/sale_green.png',
  29.                 "sale_yellow.png"       => $bu.'/icons/sale_yellow.png',
  30.                 "sticker_blue_sale.png" => $bu.'/icons/sticker_blue_sale.png'
  31.             )
  32.         )),
  33.         'submit' => array('submit', array(
  34.             'ignore' =>    true,
  35.             'label'  =>    'Save'
  36.         )),
  37.     )
  38. ));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement