当前位置: 首页>>代码示例>>PHP>>正文


PHP Varien_Data_Form::setEnctype方法代码示例

本文整理汇总了PHP中Varien_Data_Form::setEnctype方法的典型用法代码示例。如果您正苦于以下问题:PHP Varien_Data_Form::setEnctype方法的具体用法?PHP Varien_Data_Form::setEnctype怎么用?PHP Varien_Data_Form::setEnctype使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Varien_Data_Form的用法示例。


在下文中一共展示了Varien_Data_Form::setEnctype方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: _prepareForm

 protected function _prepareForm()
 {
     $form = new Varien_Data_Form();
     $fieldset = $form->addFieldset('base_fieldset', array('legend' => Mage::helper('giftcards')->__('Import Gift Card')));
     $fieldset->addField('file', 'file', array('name' => 'file', 'label' => Mage::helper('giftcards')->__('Path to file for Gift Cards'), 'title' => Mage::helper('giftcards')->__('Path to file for Gift Cards'), 'required' => true));
     $fieldset->addField('delimiter', 'text', array('name' => 'delimiter', 'label' => Mage::helper('giftcards')->__('Value delimiter'), 'title' => Mage::helper('giftcards')->__('Value delimiter'), 'required' => true));
     $fieldset->addField('enclosure', 'text', array('name' => 'enclosure', 'label' => Mage::helper('giftcards')->__('Enclose Values In'), 'title' => Mage::helper('giftcards')->__('Enclose Values In'), 'required' => true));
     $form->setAction($this->getUrl('*/*/saveImport'));
     $form->setMethod('post');
     $form->setId('load_form');
     $form->setEnctype('multipart/form-data');
     $this->setForm($form);
     return parent::_prepareForm();
 }
开发者ID:AleksNesh,项目名称:pandora,代码行数:14,代码来源:Form.php

示例2: _prepareForm

 protected function _prepareForm()
 {
     $form = new Varien_Data_Form();
     /* Create Fieldset*/
     $fieldset = $form->addFieldset("import", array("legend" => Mage::helper("hoosh_marketo")->__(self::LEGEND)));
     /* prepare fields */
     $fieldset->addField("csv", "file", array("name" => "csv_data", "label" => Mage::helper("hoosh_marketo")->__(self::FORM_LABEL), "title" => Mage::helper("hoosh_marketo")->__(self::FORM_LABEL), "required" => true));
     $fieldset->addField("attribute_type", "select", array("name" => "entity_type_code", "label" => Mage::helper("hoosh_marketo")->__("Attribute Type"), "title" => Mage::helper("hoosh_marketo")->__("Attribute Type"), "values" => array(HooshMarketing_Marketo_Model_Lead::ENTITY => "Lead", HooshMarketing_Marketo_Model_Opportunity::ENTITY => "Opportunity"), "required" => true));
     /* prepare form */
     $form->setUseContainer(true);
     $form->setEnctype("multipart/form-data");
     $form->setMethod("post");
     $form->setId('edit_form');
     $form->setAction($this->getUrl('*/*/importPost'));
     $this->setForm($form);
 }
开发者ID:sereban,项目名称:magento-marketo-integration,代码行数:16,代码来源:Form.php

示例3: _prepareForm

 protected function _prepareForm()
 {
     $form = new Varien_Data_Form();
     $fieldset = $form->addFieldset('base_fieldset', array('legend' => Mage::helper('customerprices')->__('Import Settings')));
     $fieldset->addField('file', 'file', array('name' => 'file', 'label' => Mage::helper('customerprices')->__('Path to file'), 'title' => Mage::helper('customerprices')->__('Path to file'), 'required' => true));
     $fieldset->addField('delimiter', 'text', array('name' => 'delimiter', 'label' => Mage::helper('customerprices')->__('Value delimiter'), 'title' => Mage::helper('customerprices')->__('Value delimiter'), 'required' => true));
     $fieldset->addField('enclosure', 'text', array('name' => 'enclosure', 'label' => Mage::helper('customerprices')->__('Enclose Values In'), 'title' => Mage::helper('customerprices')->__('Enclose Values In'), 'required' => true));
     $importConfig = array('file' => '/var/customerprices/customerprices.csv', 'delimiter' => ';', 'enclosure' => '"');
     $form->setValues($importConfig);
     $form->setAction($this->getUrl('*/convert/saveImport'));
     $form->setMethod('post');
     $form->setUseContainer(true);
     $form->setId('edit_form');
     $form->setEnctype('multipart/form-data');
     $this->setForm($form);
     return parent::_prepareForm();
 }
开发者ID:technomagegithub,项目名称:inmed-magento,代码行数:17,代码来源:Form.php

示例4: _prepareForm

 protected function _prepareForm()
 {
     $form = new Varien_Data_Form();
     $fieldset = $form->addFieldset('base_fieldset', array('legend' => Mage::helper('giftcards')->__('Import Gift Cards')));
     $fieldset->addField('file', 'file', array('name' => 'file', 'label' => Mage::helper('giftcards')->__('Select file to import'), 'title' => Mage::helper('giftcards')->__('Select file to import'), 'required' => true));
     $fieldset->addField('import_action', 'select', array('label' => Mage::helper('giftcards')->__('Import Action'), 'name' => 'import_action', 'required' => true, 'values' => array('update' => 'Update on duplicate', 'skip' => 'Skip on duplicate'), 'value' => 'update', 'note' => 'What should be the action to be taken when a duplicated is found?'));
     $fieldset = $form->addFieldset('advanced_fieldset', array('legend' => Mage::helper('giftcards')->__('Advanced Options')));
     $fieldset->addField('delimiter', 'text', array('name' => 'delimiter', 'label' => Mage::helper('giftcards')->__('Value delimiter'), 'title' => Mage::helper('giftcards')->__('Value delimiter'), 'value' => ',', 'required' => true));
     $fieldset->addField('enclosure', 'text', array('name' => 'enclosure', 'label' => Mage::helper('giftcards')->__('Enclose Values In'), 'title' => Mage::helper('giftcards')->__('Enclose Values In'), 'value' => '""', 'required' => true));
     $form->setAction($this->getUrl('*/adminhtml_cardsload/save'));
     $form->setMethod('post');
     $form->setId('edit_form');
     $form->setEnctype('multipart/form-data');
     $form->setUseContainer(true);
     $this->setForm($form);
     return parent::_prepareForm();
 }
开发者ID:AleksNesh,项目名称:pandora,代码行数:17,代码来源:Form.php


注:本文中的Varien_Data_Form::setEnctype方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。