public function __construct($name, $class, $id = null) { parent::__construct($name, $class, $id); $this->setXtype('Kwc.Basic.DownloadTag'); $this->fields->add(new Kwf_Form_Field_File('File', trlKwf('File')))->setDirectory('BasicDownloadTag')->setAllowOnlyImages(false)->setAllowBlank(false); $this->fields->add(new Kwf_Form_Field_TextField('filename', trlKwf('Filename')))->setVtype('alphanum')->setAutoFillWithFilename('filename')->setHelpText(hlpKwf('kwf_download_filename'))->setWidth(300)->setAllowBlank(false); }
public function __construct($name, $class) { parent::__construct($name, $class); $form = Kwc_Abstract_Form::createChildComponentForm($class, '-downloadTag'); $this->add($form); $this->add(new Kwf_Form_Field_TextField('infotext', trlKwf('Description')))->setWidth(300)->setAutoFillWithFilename('filenameWithExt')->setHelpText(hlpKwf('kwc_download_linktext'))->setAllowBlank(false); }
public function __construct($name, $class, $id = null) { parent::__construct($name, $class, $id); $this->add(new Kwf_Form_Field_UrlField('target', trlKwf('Url')))->setWidth(450)->setHelpText(hlpKwf('kwc_basic_linktag_extern_target'))->setAllowBlank(false)->setVtype('urltel'); if (Kwc_Abstract::getSetting($class, 'hasPopup')) { // cards container erstellen und zu form hinzufügen $cards = $this->add(new Kwf_Form_Container_Cards('open_type', trlKwf('Open in'))); $cards->getCombobox()->setAllowBlank(false); $card = $cards->add(); $card->setTitle(trlKwf('Same window')); $card->setName('self'); $card = $cards->add(); $card->setTitle(trlKwf('New window')); $card->setName('blank'); $card = $cards->add(); $card->setTitle(trlKwf('Popup')); $card->setName('popup'); $card->add(new Kwf_Form_Field_TextField('width', 'Width'))->setDefaultValue(400)->setAllowBlank(false)->setVtype('alphanum'); $card->add(new Kwf_Form_Field_TextField('height', 'Height'))->setDefaultValue(400)->setAllowBlank(false)->setVtype('alphanum'); $card->add(new Kwf_Form_Field_Checkbox('menubar', 'Menubar')); $card->add(new Kwf_Form_Field_Checkbox('toolbar', 'Toolbar')); $card->add(new Kwf_Form_Field_Checkbox('locationbar', 'Locationbar')); $card->add(new Kwf_Form_Field_Checkbox('statusbar', 'Statusbar')); $card->add(new Kwf_Form_Field_Checkbox('scrollbars', 'Scrollbars')); $card->add(new Kwf_Form_Field_Checkbox('resizable', 'Resizable')); } }
public function __construct($name, $class) { parent::__construct($name, $class); $form = Kwc_Abstract_Form::createChildComponentForm($class, '-downloadTag'); $this->add($form); $this->add(new Kwf_Form_Field_TextField('infotext', trlKwf('Descriptiontext')))->setWidth(300)->setHelpText(hlpKwf('kwc_download_linktext')); $this->add(new Kwf_Form_Field_ShowField('original_infotext', trlKwf('Original')))->setData(new Kwf_Data_Trl_OriginalComponent('infotext')); }