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


PHP Mage_Adminhtml_Block_Widget_Form_Container::getFormHtml方法代码示例

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


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

示例1: getFormHtml

 public function getFormHtml()
 {
     if ($this->getChild('form')) {
         return parent::getFormHtml();
     }
     return '';
 }
开发者ID:xiaoguizhidao,项目名称:blingjewelry-prod,代码行数:7,代码来源:Container.php

示例2: getFormHtml

    public function getFormHtml()
    {
        $html = '';
        $tabs = $this->getChild('tabs');
        // ---------------------------------------
        $html .= $this->getLayout()->createBlock('M2ePro/adminhtml_ebay_listing_template_switcher_initialization')->toHtml();
        // ---------------------------------------
        // initiate template switcher url
        // ---------------------------------------
        $html .= Ess_M2ePro_Block_Adminhtml_Ebay_Listing_Template_Switcher::getSwitcherUrlHtml();
        // ---------------------------------------
        // ---------------------------------------
        $html .= <<<HTML
<script type="text/javascript">
    EbayListingTemplateSwitcherHandlerObj.checkAttributesAvailability = true;
</script>
HTML;
        // ---------------------------------------
        // hide tabs selector if only one tab is allowed for displaying
        // ---------------------------------------
        if (count($this->getAllowedTabs()) == 1) {
            $html .= <<<HTML
<script type="text/javascript">
    \$('{$tabs->getId()}').hide();
</script>
HTML;
        }
        // ---------------------------------------
        return $html . $tabs->toHtml() . parent::getFormHtml();
    }
开发者ID:ReeceCrossland,项目名称:essua-m2epro,代码行数:30,代码来源:Edit.php

示例3: getFormHtml

 public function getFormHtml()
 {
     $html = parent::getFormHtml();
     // add store switcher
     if (!Mage::app()->isSingleStoreMode() && $this->getRequest()->getParam('id')) {
         $store_switcher = $this->getLayout()->createBlock('adminhtml/store_switcher', 'store_switcher');
         $store_switcher->setDefaultStoreName($this->__('Default Values'));
         $html = $store_switcher->toHtml() . $html;
     }
     return $html;
 }
开发者ID:smitmanglam,项目名称:staging,代码行数:11,代码来源:Edit.php

示例4: getFormHtml

 public function getFormHtml()
 {
     //$html = "<div id=\"messages\">";
     //$html .= $this->getMessagesBlock()->getGroupedHtml();
     //$html .= "</div>";
     $html = $this->getChildHtml('gallery_edit_tabs');
     $js = "<script type=\"javascript\">";
     $js .= "if(day_tabsJsTabs) day_tabsJsTabs.showTabContent(day_tabsJsTabs.tabs[0]);";
     $js .= "editForm = new varienForm('edit_form', '');";
     $js .= "</script>";
     return $html . parent::getFormHtml() . $js;
 }
开发者ID:sagmahajan,项目名称:aswan_release,代码行数:12,代码来源:Edit.php

示例5: getFormHtml

 /**
  * Prepare form html. Add block for configurable product modification interface
  *
  * @return string
  */
 public function getFormHtml()
 {
     $html = parent::getFormHtml();
     $html .= $this->getLayout()->createBlock('adminhtml/catalog_product_composite_configure')->toHtml();
     return $html;
 }
开发者ID:hazaeluz,项目名称:magento_connect,代码行数:11,代码来源:Create.php

示例6: getFormHtml

    public function getFormHtml()
    {
        $listing = Mage::helper('M2ePro/Component_Amazon')->getCachedObject('Listing', $this->getRequest()->getParam('id'));
        $viewHeaderBlock = $this->getLayout()->createBlock('M2ePro/adminhtml_listing_view_header', '', array('listing' => $listing));
        $tabs = $this->getChild('tabs');
        $urls = Mage::helper('M2ePro')->getControllerActions('adminhtml_common_listing_autoAction', array('listing_id' => $this->getRequest()->getParam('id'), 'component' => Ess_M2ePro_Helper_Component_Amazon::NICK));
        $urls = json_encode($urls);
        /** @var $helper Ess_M2ePro_Helper_Data */
        $helper = Mage::helper('M2ePro');
        $translations = json_encode(array('Auto Add/Remove Rules' => $helper->__('Auto Add/Remove Rules'), 'Based on Magento Categories' => $helper->__('Based on Magento Categories'), 'You must select at least 1 Category.' => $helper->__('You must select at least 1 Category.'), 'Rule with the same Title already exists.' => $helper->__('Rule with the same Title already exists.')));
        $js = <<<HTML
<script type="text/javascript">

    M2ePro.url.add({$urls});
    M2ePro.translator.add({$translations});

    ListingAutoActionHandlerObj = new ListingAutoActionHandler();

</script>
HTML;
        return $viewHeaderBlock->toHtml() . $tabs->toHtml() . parent::getFormHtml() . $js;
    }
开发者ID:ReeceCrossland,项目名称:essua-m2epro,代码行数:22,代码来源:Edit.php

示例7: getFormHtml

 /**
  * Adds to html of form html of accordion block
  *
  * @return string
  */
 public function getFormHtml()
 {
     $html = parent::getFormHtml();
     return $html . $this->getChildHtml('accordion');
 }
开发者ID:jpbender,项目名称:mage_virtual,代码行数:10,代码来源:Edit.php

示例8: getFormHtml

 public function getFormHtml()
 {
     $html = parent::getFormHtml();
     return $html;
 }
开发者ID:xiaoguizhidao,项目名称:BumblebeeSite,代码行数:5,代码来源:Edit.php

示例9: getFormHtml

 public function getFormHtml()
 {
     return $this->getChildHtml('general') . parent::getFormHtml();
 }
开发者ID:xiaoguizhidao,项目名称:devfashion,代码行数:4,代码来源:Edit.php

示例10: getFormHtml

    public function getFormHtml()
    {
        $html = '';
        $tabs = $this->getChild('tabs');
        //------------------------------
        $html .= $this->getLayout()->createBlock('M2ePro/adminhtml_ebay_listing_template_switcher_initialization')->toHtml();
        //------------------------------
        // initiate template switcher url
        //------------------------------
        $html .= Ess_M2ePro_Block_Adminhtml_Ebay_Listing_Template_Switcher::getSwitcherUrlHtml();
        //------------------------------
        //------------------------------
        $data = array('display_tab_buttons' => false);
        $block = $this->getLayout()->createBlock('M2ePro/adminhtml_widget_floatingToolbarFixer');
        $block->addData($data);
        $html .= $block->toHtml();
        //------------------------------
        //------------------------------
        $listing = Mage::helper('M2ePro/Data_Global')->getValue('ebay_listing');
        $headerHtml = '';
        if ($listing) {
            $headerHtml = $this->getLayout()->createBlock('M2ePro/adminhtml_listing_view_header', '', array('listing' => $listing))->toHtml();
        }
        //------------------------------
        // hide tabs selector if only one tab is allowed for displaying
        //------------------------------
        if (count($this->getAllowedTabs()) == 1) {
            $html .= <<<HTML
<script type="text/javascript">
    Event.observe(window, 'load', function() {
        \$('{$tabs->getId()}').hide();
    });
</script>
HTML;
        }
        //------------------------------
        return $html . $headerHtml . $tabs->toHtml() . parent::getFormHtml();
    }
开发者ID:newedge-media,项目名称:iwantmymeds,代码行数:38,代码来源:Edit.php

示例11: getFormHtml

 /**
  * Prepare form html. Add block for configurable product modification interface
  *
  * @return string
  */
 public function getFormHtml()
 {
     $html = parent::getFormHtml();
     //@nelkaake removed for dependency fixes        $html .= $this->getLayout()->createBlock('adminhtml/catalog_product_composite_configure')->toHtml();
     return $html;
 }
开发者ID:Airmal,项目名称:Magento-Em,代码行数:11,代码来源:Edit.php


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