本文整理汇总了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;
}
示例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();
}
示例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>';
}
示例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>';
}
示例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>
{$doneButton->toHtml()}
</div>
HTML;
return parent::_toHtml() . $buttonsContainer;
}
示例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>';
}
示例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>';
}
示例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>
{$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;
}
示例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>
{$doneButton->toHtml()}
<script type="text/javascript">ebayListingCategoryChooserTabsJsTabs.moveTabContentInDest();</script>
</div>
HTML;
return parent::_toHtml() . $tabsContainer->toHtml() . '<div id="chooser_tabs_container"></div>' . $buttonsContainer;
}
示例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;
}
示例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>';
}
示例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;
}
示例13: _toHtml
protected function _toHtml()
{
return parent::_toHtml() . $this->getChildHtml('help') . $this->getChildHtml('grid');
}
示例14: _toHtml
protected function _toHtml()
{
$html = Mage::getModel('M2ePro/Registry')->load('/wizard/migrationToV6_notes_html/', 'key')->getData('value');
return parent::_toHtml() . $html;
}
示例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>';
}