Exemplo n.º 1
0
 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(trlKwf('Text, shown after the file icon (automatically generated) and used as link for downloading the file.'))->setAllowBlank(false);
 }
Exemplo n.º 2
0
 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(trlKwf('Enter the Internetaddress including "http://". For example if you want to link to Google.com, type "http://www.google.com" into the textfield.'))->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'));
     }
 }
Exemplo n.º 3
0
 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);
 }
Exemplo n.º 4
0
 public function __construct($name, $class)
 {
     parent::__construct($name, $class);
     $this->setLabelWidth(200);
     $this->fields->add(new Kwf_Form_Field_TextField('disclaimer_name', trlKwf('Disclaimer name')))->setWidth(300);
     $this->fields->add(new Kwf_Form_Field_Select('disclaimer_type', trlKwf('Disclaimer type')))->setValues($this->_getDisclaimerText())->setWidth(300);
 }
Exemplo n.º 5
0
 public function __construct($name, $class)
 {
     parent::__construct($name, $class);
     $this->setLabelWidth(200);
     $this->fields->add(new Kwf_Form_Field_TextField('company', trlKwf('Company')))->setWidth(300);
     $this->fields->add(new Kwf_Form_Field_TextField('name', trlKwf('Name')))->setWidth(300);
     $this->fields->add(new Kwf_Form_Field_TextField('address', trlKwf('Address')))->setWidth(300);
     $this->fields->add(new Kwf_Form_Field_TextField('zipcode', trlKwf('Zipcode')))->setWidth(300);
     $this->fields->add(new Kwf_Form_Field_TextField('city', trlKwf('City')))->setWidth(300);
     $this->fields->add(new Kwf_Form_Field_TextField('fon', trlKwf('Fon')))->setWidth(300);
     $this->fields->add(new Kwf_Form_Field_TextField('fax', trlKwf('Fax')))->setWidth(300);
     $this->fields->add(new Kwf_Form_Field_TextField('mobile', trlKwf('Mobile')))->setWidth(300);
     $this->fields->add(new Kwf_Form_Field_TextField('email', trlKwf('EMail')))->setWidth(300)->setVtype('email');
     $this->fields->add(new Kwf_Form_Field_TextField('website', trlKwf('Website')))->setWidth(300)->setVtype('url');
     $this->fields->add(new Kwf_Form_Field_TextField('crn', trlKwf('Commercial register number')))->setWidth(300);
     $this->fields->add(new Kwf_Form_Field_TextField('register_court', trlKwf('Register court')))->setWidth(300);
     $this->fields->add(new Kwf_Form_Field_TextField('court', trlKwf('Court')))->setWidth(300);
     $this->fields->add(new Kwf_Form_Field_TextField('uid_number', trlKwf('VAT identification number')))->setWidth(300);
     $this->fields->add(new Kwf_Form_Field_TextField('bank_data', trlKwf('Bank data')))->setWidth(300);
     $this->fields->add(new Kwf_Form_Field_TextField('bank_code', trlKwf('Bank code')))->setWidth(300);
     $this->fields->add(new Kwf_Form_Field_TextField('account_number', trlKwf('Account number')))->setWidth(300);
     $this->fields->add(new Kwf_Form_Field_TextField('iban', trlKwf('IBAN')))->setWidth(300);
     $this->fields->add(new Kwf_Form_Field_TextField('bic_swift', trlKwf('BIC / SWIFT')))->setWidth(300);
     $this->fields->add(new Kwf_Form_Field_TextField('dvr_number', trlKwf('Data handling register number')))->setWidth(300);
     $this->fields->add(new Kwf_Form_Field_TextField('club_number_zvr', trlKwf('Clubnumber ZVR')))->setWidth(300);
     $this->fields->add(new Kwf_Form_Field_TextArea('job_title', trlKwf('Job title')))->setWidth(300);
     $this->fields->add(new Kwf_Form_Field_TextField('agency', trlKwf('Agency')))->setWidth(300);
     $this->fields->add(new Kwf_Form_Field_TextField('employment_specification', trlKwf('Employment specification')))->setWidth(300);
     $this->fields->add(new Kwf_Form_Field_TextField('link_company_az', trlKwf('Entry at WK Austria')))->setWidth(300)->setVtype('url');
 }
Exemplo n.º 6
0
 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);
 }
Exemplo n.º 7
0
 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(trlKwf('Enter the name (without file extension), the file should get when downloading it.'))->setWidth(300)->setAllowBlank(false);
 }
Exemplo n.º 8
0
 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'));
 }
Exemplo n.º 9
0
 public function __construct($name, $class)
 {
     parent::__construct($name, $class);
     if (!$this->getModel()) {
         $this->setModel(new Kwf_Model_FnF());
         $this->setCreateMissingRow(true);
     }
 }
Exemplo n.º 10
0
 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(trlKwf('Text, shown after the file icon (automatically generated) and used as link for downloading the file.'));
     $this->add(new Kwf_Form_Field_ShowField('original_infotext', trlKwf('Original')))->setData(new Kwf_Data_Trl_OriginalComponent('infotext'));
 }
Exemplo n.º 11
0
 public function __construct($name, $class, $id = null)
 {
     parent::__construct($name, $class, $id);
     $this->fields->add(new Kwf_Form_Field_File('FileMedia', trlKwf('Element')))->setDirectory('BasicFlashMediaPlayer');
     $this->fields->add(new Kwf_Form_Field_NumberField('width', trlKwf('Width')))->setMinValue(1)->setMaxValue(9999);
     $this->fields->add(new Kwf_Form_Field_NumberField('height', trlKwf('Height')))->setMinValue(1)->setMaxValue(9999);
     $this->fields->add(new Kwf_Form_Field_Checkbox('autostart', trlKwf('Start automatically')));
     $this->fields->add(new Kwf_Form_Field_Checkbox('loop', trlKwf('Loop')));
 }
Exemplo n.º 12
0
 public function __construct($name, $class)
 {
     parent::__construct($name, $class);
     $sections = array();
     $vars = new Zend_Config_Ini('assetVariables.ini');
     foreach ($vars as $i => $j) {
         $sections[$i] = $i == 'web' ? trlKwf('Standard') : $i;
     }
     $this->fields->add(new Kwf_Form_Field_Select('section', trlKwf('Section')))->setAllowBlank(false)->setValues($sections)->setDefaultValue('web')->setWidth(120);
 }
Exemplo n.º 13
0
 public function __construct($name, $class)
 {
     parent::__construct($name, $class);
     $this->setLabelWidth(120);
     $this->fields->add(new Kwf_Form_Field_GoogleMapsField('coordinates', trlKwf('Coordinates')));
     $this->fields->add(new Kwf_Form_Field_Select('zoom', trlKwf('Zoomlevel')))->setAllowBlank(false)->setValues($this->_getZoomLevels())->setWidth(120);
     $this->fields->add(new Kwf_Form_Field_NumberField('width', trlKwf('Width')))->setAllowNegative(false)->setAllowDecimals(false)->setAllowBlank(true)->setWidth(120)->setComment(trlKwfStatic('optional, if empty full width'));
     $this->fields->add(new Kwf_Form_Field_NumberField('height', trlKwf('Height')))->setAllowNegative(false)->setAllowDecimals(false)->setAllowBlank(false)->setWidth(120);
     $this->fields->add(new Kwf_Form_Field_Select('zoom_properties', trlKwf('Zoom properties')))->setValues(array('0' => trlKwfStatic('Move + Zoom'), '1' => trlKwfStatic('Move + Zoom (without zoombar)'), '2' => trlKwfStatic('None')))->setWidth(300)->setAllowBlank(false);
     $this->fields->add(new Kwf_Form_Field_Checkbox('scale', trlKwf('Scale')));
     $this->fields->add(new Kwf_Form_Field_Checkbox('satelite', trlKwf('Satelitemap')));
     $this->fields->add(new Kwf_Form_Field_Checkbox('overview', trlKwf('Overviewmap')));
     $this->fields->add(new Kwf_Form_Field_Checkbox('routing', trlKwf('Routing')));
     $this->fields->add(new Kwf_Form_Field_Checkbox('scrollwheel', trlKwf('Enable Scrollwheel to zoom')));
     $form = Kwc_Abstract_Form::createChildComponentForm($class, '-text');
     $form->fields->getByName('content')->setHeight(170);
     $this->fields->add($form);
 }
Exemplo n.º 14
0
 public function __construct($name, $class, $id = null)
 {
     $this->setModel(Kwc_Basic_Text_Component::createOwnModel($class));
     parent::__construct($name, $class, $id);
     $field = new Kwf_Form_Field_HtmlEditor('content', trlKwf('Text'));
     $field->setData(new Kwf_Data_Kwc_ComponentIds('content'));
     $field->setHideLabel(true);
     $ignoreSettings = array('tablename', 'componentName', 'default', 'assets', 'assetsAdmin', 'placeholder', 'plugins');
     $c = strpos($class, '.') ? substr($class, 0, strpos($class, '.')) : $class;
     foreach (call_user_func(array($c, 'getSettings')) as $key => $val) {
         if (!in_array($key, $ignoreSettings)) {
             $method = 'set' . ucfirst($key);
             $field->{$method}($val);
         }
     }
     $generators = Kwc_Abstract::getSetting($this->getClass(), 'generators');
     $classes = $generators['child']['component'];
     if ($classes['link']) {
         $cfg = new Kwf_Component_Abstract_ExtConfig_Form($classes['link']);
         $c = $cfg->getConfig(Kwf_Component_Abstract_ExtConfig_Abstract::TYPE_DEFAULT);
         $field->setLinkComponentConfig($c['form']);
     }
     if ($classes['image']) {
         $c = Kwc_Admin::getInstance($classes['image'])->getExtConfig();
         $field->setImageComponentConfig($c['form']);
     }
     if ($classes['download']) {
         $c = Kwc_Admin::getInstance($classes['download'])->getExtConfig();
         $field->setDownloadComponentConfig($c['form']);
     }
     if (Kwc_Abstract::getSetting($this->getClass(), 'enableStylesEditor')) {
         $admin = Kwc_Admin::getInstance($class);
         $field->setStylesEditorConfig(array('xtype' => 'kwc.basic.text.styleseditor', 'blockStyleUrl' => $admin->getControllerUrl('BlockStyle'), 'inlineStyleUrl' => $admin->getControllerUrl('InlineStyle'), 'masterStyleUrl' => $admin->getControllerUrl('MasterStyle')));
     }
     $t = Kwf_Model_Abstract::getInstance(Kwc_Abstract::getSetting($class, 'stylesModel'));
     $field->setStyles($t->getStyles());
     $field->setComponentClass($class);
     $field->setControllerUrl(Kwc_Admin::getInstance($class)->getControllerUrl());
     $this->fields->add($field);
     $this->setAssetsPackage(Kwf_Assets_Package_Default::getInstance('Frontend'));
 }
Exemplo n.º 15
0
 public function __construct($name, $class, $id = null)
 {
     parent::__construct($name, $class, $id);
     $this->fields->add(new Kwf_Form_Field_Static(trlKwfStatic('Please insert the web address to your YouTube or Vimeo video.')))->setWidth(400);
     $this->fields->add(new Kwf_Form_Field_TextField('url', trlKwfStatic('URL')))->setWidth(400)->setVtype('url');
     $cards = new Kwf_Form_Container_Cards('size', trlKwfStatic('Size'));
     $cards->setDefaultValue('fullWidth');
     $cards->setAllowBlank(false);
     $card = $cards->add();
     $card->setTitle(trlKwfStatic('full width'));
     $card->setName('fullWidth');
     $card = $cards->add();
     $card->setTitle(trlKwfStatic('user-defined'));
     $card->setName('custom');
     $card->add(new Kwf_Form_Field_TextField('width', trlKwfStatic('Width')))->setAllowBlank(false);
     $card->add(new Kwf_Form_Field_TextField('height', trlKwfStatic('Height')))->setAllowBlank(false);
     $this->add($cards);
     $this->add(new Kwf_Form_Field_Select('ratio', trlKwfStatic('Ratio')))->setValues(array('16x9' => trlKwfStatic('16:9'), '4x3' => trlKwfStatic('4:3')))->setAllowBlank(false);
     $this->fields->add(new Kwf_Form_Field_Checkbox('show_similar_videos', trlKwfStatic('Show similar videos (YouTube only)')));
     $this->fields->add(new Kwf_Form_Field_Checkbox('autoplay', trlKwfStatic('Autoplay Video')));
 }
Exemplo n.º 16
0
 public function __construct($name, $class, $id = null)
 {
     parent::__construct($name, $class, $id);
     $this->add(new Kwf_Form_Field_PageSelect('target', trlKwf('Target')))->setControllerUrl(Kwc_Admin::getInstance($class)->getControllerUrl('Pages'))->setWidth(233)->setAllowBlank(false);
     $this->add(new Kwf_Form_Field_NumberField('levels', trlKwf('Levels')))->setAllowBlank(false)->setMinValue(1)->setAllowDecimals(false)->setMaxValue(5)->setWidth(50);
 }
Exemplo n.º 17
0
 public function __construct($name, $class, $id = null)
 {
     parent::__construct($name, $class, $id);
     $this->add(new Kwf_Form_Field_Select('news_id', trlKwf('News')))->setDisplayField('title')->setPageSize(20)->setStoreUrl(Kwc_Admin::getInstance($class)->getControllerUrl('News') . '/json-data')->setWidth(300)->setListWidth(317)->setAllowBlank(false);
 }
Exemplo n.º 18
0
 public function __construct($name, $class, $id = null)
 {
     parent::__construct($name, $class, $id);
     $this->add(new Kwf_Form_Field_Select('target_component_id', trlKwf('Page')))->setDisplayField('title')->setPageSize(20)->setStoreUrl(Kwc_Admin::getInstance($class)->getControllerUrl('Components') . '/json-data')->setWidth(300)->setListWidth(410);
 }
Exemplo n.º 19
0
 public function __construct($name, $class, $id = null)
 {
     parent::__construct($name, $class, $id);
     $this->add(new Kwf_Form_Field_PageSelect('target', trlKwf('Target')))->setControllerUrl(Kwc_Admin::getInstance($class)->getControllerUrl('Pages'))->setWidth(233)->setAllowBlank(false);
     $this->add(new Kwf_Form_Field_Select('anchor', trlKwf('Anchor')))->setValues(Kwc_Admin::getInstance($class)->getControllerUrl('Anchors') . '/json-data')->setShowNoSelection(true)->setXtype('kwc.linktag.intern.anchor');
 }
Exemplo n.º 20
0
 public function __construct($name, $class, $id = null)
 {
     parent::__construct($name, $class, $id);
     $this->add(new Kwf_Form_Field_Select('anchor', trlKwf('Anchor')))->setValues(Kwc_Admin::getInstance($class)->getControllerUrl('Anchors') . '/json-data')->setShowNoSelection(true);
 }
Exemplo n.º 21
0
 public function __construct($name, $class, $id = null)
 {
     parent::__construct($name, $class, $id);
     $this->fields->add(new Kwf_Form_Field_NumberField('height'))->setFieldLabel(trlKwf('Height'))->setWidth(80)->setAllowNegative(false)->setAllowDecimals(false);
 }
Exemplo n.º 22
0
 public function __construct($name, $class, $id = null)
 {
     parent::__construct($name, $class, $id);
     $this->add(new Kwf_Form_Field_PageSelect('target', trlKwf('Target')))->setControllerUrl(Kwc_Admin::getInstance($class)->getControllerUrl('Pages'))->setWidth(233)->setAllowBlank(false);
 }
Exemplo n.º 23
0
 public function __construct($name, $class)
 {
     parent::__construct($name, $class);
     $this->setProperty('class', $class);
     $this->add($this->_getMultiFields());
 }
Exemplo n.º 24
0
 public function __construct($name, $class)
 {
     parent::__construct($name, $class);
     $this->fields->add(new Kwf_Form_Field_Select('directory_component_id', trlKwf('Show'), 300))->setDisplayField('title')->setStoreUrl(Kwc_Admin::getInstance($class)->getControllerUrl('Directories') . '/json-data');
 }