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
0
    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
0
 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>';
 }
 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>';
 }
 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());
     $script = '';
     if (Mage::helper('M2ePro/View_Common')->is3rdPartyShouldBeShown(Ess_M2ePro_Helper_Component_Amazon::NICK) || Mage::helper('M2ePro/View_Common')->is3rdPartyShouldBeShown(Ess_M2ePro_Helper_Component_Buy::NICK)) {
         $tabsContainer->addTab(self::TAB_ID_LISTING_OTHER, $this->prepareListingOtherTab());
         $script = $this->getScriptFor3rdPartyControlVisibility($tabsContainer);
     }
     $tabsContainer->addTab(self::TAB_ID_SEARCH, $this->prepareSearchTab());
     $tabsContainer->setActiveTab($this->getActiveTab());
     return parent::_toHtml() . $tabsContainer->toHtml() . '<div id="tabs_container"></div>' . $script;
 }
예제 #6
0
    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;
    }
예제 #7
0
    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>';
    }
예제 #8
0
    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>';
    }
예제 #9
0
    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;
    }
예제 #10
0
    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;
    }
예제 #11
0
    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;
    }
예제 #12
0
 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>';
 }
예제 #13
0
    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;
    }
예제 #14
0
 protected function _toHtml()
 {
     return parent::_toHtml() . $this->getChildHtml('help') . $this->getChildHtml('grid');
 }
예제 #15
0
 protected function _toHtml()
 {
     $html = Mage::getModel('M2ePro/Registry')->load('/wizard/migrationToV6_notes_html/', 'key')->getData('value');
     return parent::_toHtml() . $html;
 }
예제 #16
0
    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>';
    }
예제 #17
0
 protected function _toHtml()
 {
     return parent::_toHtml() . $this->getInitializationBlockHtml();
 }
예제 #18
0
 protected function _toHtml()
 {
     $vocabularyAttributesBlock = $this->getLayout()->createBlock('M2ePro/adminhtml_common_amazon_listing_variation_product_vocabularyAttributesPopup');
     $vocabularyOptionsBlock = $this->getLayout()->createBlock('M2ePro/adminhtml_common_amazon_listing_variation_product_vocabularyOptionsPopup');
     return $vocabularyAttributesBlock->toHtml() . $vocabularyOptionsBlock->toHtml() . parent::_toHtml();
 }
예제 #19
0
 protected function _toHtml()
 {
     $initializationBlock = $this->getLayout()->createBlock('M2ePro/adminhtml_wizard_initialization', '', array('nick' => $this->getNick()));
     return parent::_toHtml() . $initializationBlock->toHtml();
 }
예제 #20
0
 protected function _toHtml()
 {
     return parent::_toHtml() . $this->_componentsToHtml();
 }