Advertisement
Guest User

Untitled

a guest
Feb 8th, 2012
211
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.08 KB | None | 0 0
  1. $this->addElements(array(
  2.     array ('textarea', 'preview', array(
  3.         'label'     =>  'Описание к фото',
  4.         'filters'   =>  array(
  5.             'StringTrim'
  6.         ),
  7.         'id'        =>  'preview_editor'
  8.     )),
  9.     array ('file', 'photo', array(
  10.         'label'     =>  'Фото',
  11.         'filters'   =>  array(
  12.             new Turist_Filter_File_SetUniqueName(array( 'nameLength' => 10 )),
  13.             new Turist_Filter_File_ImageResize(array(
  14.                 array(
  15.                     'targetDir' => PUBLIC_PATH . '/userfiles/images/full',
  16.                     'newSize' => "800*533",
  17.                     'type'    => 'proportional'
  18.                 ),
  19.                 array(
  20.                     'targetDir' => PUBLIC_PATH . '/userfiles/images/thumb',
  21.                     'newSize' => "80*80",
  22.                     'type'    => 'thumb'
  23.                 )
  24.             ))
  25.         ),
  26.     )),
  27.     array ('text', 'pos', array(
  28.         'label'     =>  'Порядок сортировки',
  29.         'filters'   =>  array(
  30.             'StringTrim',
  31.             'StripTags'
  32.         ),
  33.         'value'     =>  '0'
  34.     )),
  35.     array ('checkbox', 'slideshow', array(
  36.         'label'     =>  'В слайдшоу на главной',
  37.         'checkedValue'  =>  'on',
  38.         'uncheckedValue'=>  '',
  39.     )),
  40.     array ('submit', 'submit', array(
  41.         'label'     =>  'Отправить',
  42.     )),
  43. ));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement