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


PHP Ess_M2ePro_Block_Adminhtml_Widget_Container::_toHtml方法代码示例

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


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

示例1: _toHtml

    protected function _toHtml()
    {
        $javascript = <<<JAVASCIRPT

<script type="text/javascript">

    Event.observe(window, 'load', function() {
        CommonHandlerObj = new CommonHandler();
    });

</script>

JAVASCIRPT;
        $tabsBlock = $this->getLayout()->createBlock('M2ePro/adminhtml_common_template_tabs');
        $hideChannels = '';
        $tabsIds = $tabsBlock->getTabsIds();
        if (count($tabsIds) <= 1) {
            $hideChannels = ' style="visibility: hidden"';
        }
        return $javascript . $this->getAddButtonJavascript() . parent::_toHtml() . <<<HTML
<div class="content-header">
    <table cellspacing="0">
        <tr>
            <td{$hideChannels}>{$tabsBlock->toHtml()}</td>
            <td class="form-buttons">{$this->getButtonsHtml()}</td>
        </tr>
    </table>
</div>
<div id="template_tabs_container"></div>
HTML;
    }
开发者ID:giuseppemorelli,项目名称:magento-extension,代码行数:31,代码来源:Template.php

示例2: _toHtml

    protected function _toHtml()
    {
        $data = array('style' => 'float: right; margin-top: 7px; ', 'label' => Mage::helper('M2ePro')->__('Close'), 'onclick' => 'EbayListingEbayGridHandlerObj.variationProductManageHandler.closeManageVariationsPopup()');
        $closeBtn = $this->getLayout()->createBlock('adminhtml/widget_button')->setData($data);
        $additionalJavascript = <<<HTML
<script type="text/javascript">
    EbayListingEbayGridHandlerObj.variationProductManageHandler.loadVariationsGrid(true);
</script>
HTML;
        return parent::_toHtml() . $additionalJavascript . $closeBtn->toHtml();
    }
开发者ID:ReeceCrossland,项目名称:essua-m2epro,代码行数:11,代码来源:View.php

示例3: _toHtml

 protected function _toHtml()
 {
     /* @var $tabsContainer Ess_M2ePro_Block_Adminhtml_Common_ManageListings_Tabs */
     $tabsContainer = $this->getLayout()->createBlock('M2ePro/adminhtml_common_manageListings_tabs');
     $tabsContainer->setDestElementId('tabs_container');
     $tabsContainer->addTab(self::TAB_ID_LISTING, $this->prepareListingTab());
     $tabsContainer->addTab(self::TAB_ID_LISTING_OTHER, $this->prepareListingOtherTab());
     $tabsContainer->addTab(self::TAB_ID_SEARCH, $this->prepareSearchTab());
     $tabsContainer->setActiveTab($this->getActiveTab());
     return parent::_toHtml() . $tabsContainer->toHtml() . '<div id="tabs_container"></div>';
 }
开发者ID:newedge-media,项目名称:iwantmymeds,代码行数:11,代码来源:ManageListings.php

示例4: _toHtml

 protected function _toHtml()
 {
     /* @var $tabsContainer Ess_M2ePro_Block_Adminhtml_Ebay_ManageListings_Tabs */
     $tabsContainer = $this->getLayout()->createBlock('M2ePro/adminhtml_ebay_manageListings_tabs');
     $tabsContainer->setDestElementId('tabs_container');
     $tabsContainer->addTab(self::TAB_ID_LISTING, $this->prepareListingTab());
     if (Mage::helper('M2ePro/View_Ebay')->isAdvancedMode() && Mage::helper('M2ePro/View_Ebay')->is3rdPartyShouldBeShown()) {
         $tabsContainer->addTab(self::TAB_ID_LISTING_OTHER, $this->prepareListingOtherTab());
     }
     $tabsContainer->addTab(self::TAB_ID_SEARCH, $this->prepareSearchTab());
     $tabsContainer->setActiveTab($this->getActiveTab());
     return parent::_toHtml() . $tabsContainer->toHtml() . '<div id="tabs_container"></div>';
 }
开发者ID:ReeceCrossland,项目名称:essua-m2epro,代码行数:13,代码来源:ManageListings.php

示例5: _toHtml

    protected function _toHtml()
    {
        // ---------------------------------------
        $data = array('class' => 'specifics_done_button', 'label' => Mage::helper('M2ePro')->__('Confirm'));
        $doneButton = $this->getLayout()->createBlock('adminhtml/widget_button')->setData($data);
        // ---------------------------------------
        $cancelWord = Mage::helper('M2ePro')->__('Cancel');
        $buttonsContainer = <<<HTML
<div style="margin-top: 17px; text-align: right; position: absolute; left: 83.5%; top: 90%;">
    <a href="javascript:void(0)" class="specifics_cancel_button">{$cancelWord}</a>
    &nbsp;&nbsp;&nbsp;&nbsp;
    {$doneButton->toHtml()}
</div>
HTML;
        return parent::_toHtml() . $buttonsContainer;
    }
开发者ID:ReeceCrossland,项目名称:essua-m2epro,代码行数:16,代码来源:Add.php

示例6: _toHtml

    protected function _toHtml()
    {
        $javascript = <<<JAVASCIRPT

<script type="text/javascript">

    Event.observe(window, 'load', function() {
        CommonHandlerObj = new CommonHandler();
    });

</script>

JAVASCIRPT;
        $activeTab = !is_null($this->getData('active_tab')) ? $this->getData('active_tab') : Ess_M2ePro_Block_Adminhtml_Common_Configuration_Tabs::TAB_ID_MARKETPLACE;
        $tabsBlock = $this->getLayout()->createBlock('M2ePro/adminhtml_common_configuration_tabs', '', array('active_tab' => $activeTab));
        return $javascript . parent::_toHtml() . $tabsBlock->toHtml() . '<div id="tabs_container"></div>';
    }
开发者ID:newedge-media,项目名称:iwantmymeds,代码行数:17,代码来源:Configuration.php

示例7: _toHtml

    protected function _toHtml()
    {
        $translations = json_encode(array('Description' => Mage::helper('M2ePro')->__('Description')));
        $javascript = <<<JAVASCIRPT

<script type="text/javascript">

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

    Event.observe(window, 'load', function() {
        CommonHandlerObj = new CommonHandler();
        LogHandlerObj = new LogHandler();
    });

</script>

JAVASCIRPT;
        $activeTab = !is_null($this->getData('active_tab')) ? $this->getData('active_tab') : Ess_M2ePro_Block_Adminhtml_Ebay_Log_Tabs::TAB_ID_LISTING;
        $tabsBlock = $this->getLayout()->createBlock('M2ePro/adminhtml_ebay_log_tabs', '', array('active_tab' => $activeTab));
        return $javascript . parent::_toHtml() . $tabsBlock->toHtml() . '<div id="tabs_container"></div>';
    }
开发者ID:newedge-media,项目名称:iwantmymeds,代码行数:21,代码来源:Log.php

示例8: _toHtml

    protected function _toHtml()
    {
        // ---------------------------------------
        $data = array('id' => 'category_edit_confirm_button', 'class' => '', 'label' => Mage::helper('M2ePro')->__('Confirm'), 'onclick' => 'AmazonTemplateDescriptionCategoryChooserHandlerObj.confirmCategory();');
        $doneButton = $this->getLayout()->createBlock('adminhtml/widget_button')->setData($data);
        // ---------------------------------------
        $cancelWord = Mage::helper('M2ePro')->__('Cancel');
        $buttonsContainer = <<<HTML
<div id="chooser_buttons_container">
    <a href="javascript:void(0)"
       onclick="AmazonTemplateDescriptionCategoryChooserHandlerObj.cancelPopUp()">{$cancelWord}</a>
    &nbsp;&nbsp;&nbsp;&nbsp;
    {$doneButton->toHtml()}
    <script type="text/javascript">amazonTemplateDescriptionCategoryChooserTabsJsTabs.moveTabContentInDest();</script>
</div>
HTML;
        /** @var Ess_M2ePro_Block_Adminhtml_Common_Amazon_Template_Description_Category_Chooser_Tabs $tabsBlock */
        $blockName = 'M2ePro/adminhtml_common_amazon_template_description_category_chooser_tabs';
        $tabsBlock = $this->getLayout()->createBlock($blockName);
        return parent::_toHtml() . $tabsBlock->toHtml() . '<div id="chooser_tabs_container"></div>' . $buttonsContainer;
    }
开发者ID:ReeceCrossland,项目名称:essua-m2epro,代码行数:21,代码来源:Edit.php

示例9: _toHtml

    protected function _toHtml()
    {
        //------------------------------
        $tabsContainer = $this->getLayout()->createBlock('M2ePro/adminhtml_ebay_listing_category_chooser_tabs');
        $tabsContainer->setDestElementId('chooser_tabs_container');
        //------------------------------
        //------------------------------
        $data = array('id' => 'category_edit_confirm_button', 'class' => '', 'label' => Mage::helper('M2ePro')->__('Confirm'), 'onclick' => 'EbayListingCategoryChooserHandlerObj.confirmCategory();');
        $doneButton = $this->getLayout()->createBlock('adminhtml/widget_button')->setData($data);
        //------------------------------
        $cancelWord = Mage::helper('M2ePro')->__('Cancel');
        $buttonsContainer = <<<HTML

<div id="chooser_buttons_container">
    <a href="javascript:void(0)" onclick="EbayListingCategoryChooserHandlerObj.cancelPopUp()">{$cancelWord}</a>
    &nbsp;&nbsp;&nbsp;&nbsp;
    {$doneButton->toHtml()}
    <script type="text/javascript">ebayListingCategoryChooserTabsJsTabs.moveTabContentInDest();</script>
</div>

HTML;
        return parent::_toHtml() . $tabsContainer->toHtml() . '<div id="chooser_tabs_container"></div>' . $buttonsContainer;
    }
开发者ID:newedge-media,项目名称:iwantmymeds,代码行数:23,代码来源:Edit.php

示例10: _toHtml

    protected function _toHtml()
    {
        $parentHtml = parent::_toHtml();
        // ---------------------------------------
        $urls = Mage::helper('M2ePro')->getControllerActions('adminhtml_ebay_listing_categorySettings', array('_current' => true));
        $path = 'adminhtml_ebay_listing_categorySettings';
        $urls[$path] = $this->getUrl('*/' . $path, array('step' => 3, '_current' => true));
        $path = 'adminhtml_ebay_listing/review';
        $urls[$path] = $this->getUrl('*/' . $path, array('_current' => true));
        $urls = json_encode($urls);
        // ---------------------------------------
        $js = <<<HTML

<script type="text/javascript">
    M2ePro.url.add({$urls});
</script>
HTML;
        // ---------------------------------------
        return <<<HTML
{$parentHtml}
{$js}
HTML;
    }
开发者ID:ReeceCrossland,项目名称:essua-m2epro,代码行数:23,代码来源:Chooser.php

示例11: _toHtml

 protected function _toHtml()
 {
     $tabsBlock = $this->getLayout()->createBlock('M2ePro/adminhtml_ebay_configuration_category_edit_primary_tabs');
     $helpBlock = $this->getLayout()->createBlock('M2ePro/adminhtml_ebay_configuration_category_edit_primary_help');
     return parent::_toHtml() . $helpBlock->toHtml() . $tabsBlock->toHtml() . '<div id="tabs_container"></div>';
 }
开发者ID:ReeceCrossland,项目名称:essua-m2epro,代码行数:6,代码来源:Primary.php

示例12: _toHtml

    protected function _toHtml()
    {
        // ---------------------------------------
        $urls = array();
        $path = 'adminhtml_ebay_listing_categorySettings/stepThreeSaveCategorySpecificsToSession';
        $urls[$path] = $this->getUrl('*/' . $path, array('_current' => true));
        $path = 'adminhtml_ebay_listing_categorySettings/stepThreeGetCategorySpecifics';
        $urls[$path] = $this->getUrl('*/' . $path, array('_current' => true));
        $path = 'adminhtml_ebay_listing_categorySettings/save';
        $urls[$path] = $this->getUrl('*/' . $path, array('_current' => true));
        $path = 'adminhtml_ebay_listing_categorySettings';
        $urls[$path] = $this->getUrl('*/' . $path, array('step' => 2, '_current' => true, 'skip_get_suggested' => true));
        $path = 'adminhtml_ebay_listing/review';
        $urls[$path] = $this->getUrl('*/' . $path, array('_current' => true));
        $urls = json_encode($urls);
        // ---------------------------------------
        // M2ePro_TRANSLATIONS
        // Loading. Please wait
        $text = 'Loading. Please wait';
        $translations[$text] = Mage::helper('M2ePro')->__($text);
        $translations = json_encode($translations);
        // ---------------------------------------
        $javascript = <<<HTML
<script type="text/javascript">

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

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

    Event.observe(window, 'load', function() {

        EbayListingCategorySpecificWrapperHandlerObj = new EbayListingCategorySpecificWrapperHandler(
            '{$this->getData('current_category')}',
            new AreaWrapper('specifics_main_container_wrapper')
        );

    });

</script>
HTML;
        return parent::_toHtml() . $javascript;
    }
开发者ID:giuseppemorelli,项目名称:magento-extension,代码行数:42,代码来源:Wrapper.php

示例13: _toHtml

 protected function _toHtml()
 {
     return parent::_toHtml() . $this->getChildHtml('help') . $this->getChildHtml('grid');
 }
开发者ID:newedge-media,项目名称:iwantmymeds,代码行数:4,代码来源:Search.php

示例14: _toHtml

 protected function _toHtml()
 {
     $html = Mage::getModel('M2ePro/Registry')->load('/wizard/migrationToV6_notes_html/', 'key')->getData('value');
     return parent::_toHtml() . $html;
 }
开发者ID:giuseppemorelli,项目名称:magento-extension,代码行数:5,代码来源:Notes.php

示例15: _toHtml

    protected function _toHtml()
    {
        $css = <<<HTML

<style type="text/css">
    #listing_switcher_add_new_drop_down ul li {
        padding: 2px 5px 2px 10px !important;
    }
    #listing-profile-title_drop_down ul li {
        font-size: 12px !important;
    }
</style>

HTML;
        $javascript = <<<JAVASCIRPT

<script type="text/javascript">

    Event.observe(window, 'load', function() {
        CommonHandlerObj = new CommonHandler();
        LogHandlerObj = new LogHandler();
    });

</script>

JAVASCIRPT;
        $activeTab = !is_null($this->getData('active_tab')) ? $this->getData('active_tab') : Ess_M2ePro_Block_Adminhtml_Common_Log_Tabs::TAB_ID_LISTING;
        $tabsBlock = $this->getLayout()->createBlock('M2ePro/adminhtml_common_log_tabs', '', array('active_tab' => $activeTab));
        return $css . $javascript . parent::_toHtml() . $tabsBlock->toHtml() . '<div id="tabs_container"></div>';
    }
开发者ID:ReeceCrossland,项目名称:essua-m2epro,代码行数:30,代码来源:Log.php


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