Exemplo n.º 1
0
 protected function _toHtml()
 {
     $this->setJobIdHtml($this->escapeHtml($this->_job->getId()));
     $this->setJobNameHtml($this->escapeHtml($this->_job->getName()));
     $this->setJobNameHtml($this->escapeHtml($this->_job->getName()));
     $storeId = $this->_job->getStoreId();
     $store = Mage::app()->getStore($storeId);
     $this->setStoreNameHtml($this->escapeHtml($store->getName()));
     $this->setJobQueueHtml($this->escapeHtml($this->_job->getQueue()));
     $this->setAttemptsHtml($this->escapeHtml($this->_job->getAttempts()));
     $runAt = strtotime($this->_job->getRunAt()) ? $this->formatDate($this->_job->getRunAt(), Mage_Core_Model_Locale::FORMAT_TYPE_MEDIUM, true) : $this->__('N/A');
     $this->setRunAtHtml($this->escapeHtml($runAt));
     $status = $this->__("Pending");
     if ($this->_job->getFailedAt()) {
         $status = $this->__('Failed');
     } else {
         if ($this->_job->getLockedAt()) {
             $status = $this->__('In Process');
         }
     }
     $this->setStatusHtml($this->escapeHtml($status));
     $this->setErrorHtml($this->escapeHtml($this->_job->getError()));
     $createdAt = strtotime($this->_job->getCreatedAt()) ? $this->formatDate($this->_job->getCreatedAt(), Mage_Core_Model_Locale::FORMAT_TYPE_MEDIUM, true) : $this->__('N/A');
     $this->setCreatedAtHtml($this->escapeHtml($createdAt));
     return parent::_toHtml();
 }
Exemplo n.º 2
0
 protected function _toHtml()
 {
     $connRead = Mage::getSingleton('core/resource')->getConnection('core_read');
     $migrationTable = Mage::getSingleton('core/resource')->getTableName('m2epro_migration_v6');
     $html = $connRead->select()->from($migrationTable, 'data')->where('`component` = \'*\'')->where('`group` = \'notes\'')->query()->fetchColumn();
     return parent::_toHtml() . $html;
 }
Exemplo n.º 3
0
 protected function _toHtml()
 {
     $treeSettings = array('show_products_amount' => true, 'hide_products_this_listing' => true);
     $categoryTreeBlock = $this->getLayout()->createBlock('M2ePro/adminhtml_listing_category_tree', '', array('component' => Ess_M2ePro_Helper_Component_Buy::NICK, 'tree_settings' => $treeSettings));
     $helpBlock = $this->getLayout()->createBlock('M2ePro/adminhtml_buy_listing_product_category_help');
     $categoryBlock = $this->getLayout()->createBlock('M2ePro/adminhtml_buy_listing_product_category_edit');
     return '<div id="add_products_progress_bar"></div>' . '<div id="add_products_container">' . parent::_toHtml() . $helpBlock->toHtml() . $categoryTreeBlock->toHtml() . $categoryBlock->toHtml() . '</div>';
 }
Exemplo n.º 4
0
 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()) {
         $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()
 {
     $this->setTxnIdHtml($this->escapeHtml($this->_txn->getTxnId()));
     $this->setParentTxnIdUrlHtml($this->escapeHtml($this->getUrl('*/sales_transactions/view', array('txn_id' => $this->_txn->getParentId()))));
     $this->setParentTxnIdHtml($this->escapeHtml($this->_txn->getParentTxnId()));
     $this->setOrderIncrementIdHtml($this->escapeHtml($this->_txn->getOrder()->getIncrementId()));
     $this->setTxnTypeHtml($this->escapeHtml($this->_txn->getTxnType()));
     $this->setOrderIdUrlHtml($this->escapeHtml($this->getUrl('*/sales_order/view', array('order_id' => $this->_txn->getOrderId()))));
     $this->setIsClosedHtml($this->_txn->getIsClosed() ? Mage::helper('sales')->__('Yes') : Mage::helper('sales')->__('No'));
     $createdAt = strtotime($this->_txn->getCreatedAt()) ? $this->formatDate($this->_txn->getCreatedAt(), Mage_Core_Model_Locale::FORMAT_TYPE_MEDIUM, true) : $this->__('N/A');
     $this->setCreatedAtHtml($this->escapeHtml($createdAt));
     return parent::_toHtml();
 }
Exemplo n.º 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: 86%; 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;
    }
Exemplo n.º 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_Ebay_Configuration_Tabs::TAB_ID_MARKETPLACE;
        $tabsBlock = $this->getLayout()->createBlock('M2ePro/adminhtml_ebay_configuration_tabs', '', array('active_tab' => $activeTab));
        return $javascript . parent::_toHtml() . $tabsBlock->toHtml() . '<div id="tabs_container"></div>';
    }
Exemplo n.º 8
0
    protected function _toHtml()
    {
        $helpBlock = $this->getLayout()->createBlock('M2ePro/adminhtml_common_order_log_help')->toHtml();
        $logBlock = $this->getLayout()->createBlock('M2ePro/adminhtml_common_log_tabs', '', array('channel' => $this->getRequest()->getParam('channel'), 'log_type' => Ess_M2ePro_Block_Adminhtml_Common_Log_Tabs::LOG_TYPE_ID_ORDER))->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() {
        LogHandlerObj = new LogHandler();
    });

</script>

JAVASCIRPT;
        return $javascript . parent::_toHtml() . $helpBlock . $logBlock;
    }
Exemplo n.º 9
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>';
    }
Exemplo n.º 10
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;
    }
Exemplo n.º 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;
    }
Exemplo n.º 12
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_done_button', 'class' => '', 'label' => Mage::helper('M2ePro')->__('Done'), 'onclick' => 'EbayListingCategoryChooserHandlerObj.doneCategory();');
        $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;
    }
Exemplo n.º 13
0
 protected function _toHtml()
 {
     return parent::_toHtml() . $this->getChildHtml('content');
 }
Exemplo n.º 14
0
 protected function _toHtml()
 {
     $this->{"assign"}($this->���);
     return parent::_toHtml();
 }
Exemplo n.º 15
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);
        //------------------------------
        //------------------------------
        // ->__('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')
        );

    });

</script>
HTML;
        return parent::_toHtml() . $javascript;
    }
Exemplo n.º 16
0
 protected function _toHtml()
 {
     $html = Mage::getModel('M2ePro/Registry')->load('wizard_migrationToV6_notes_html', 'key')->getData('value');
     return parent::_toHtml() . $html;
 }
Exemplo n.º 17
0
 protected function _toHtml()
 {
     return parent::_toHtml() . $this->getInitializationBlockHtml();
 }
Exemplo n.º 18
0
 protected function _toHtml()
 {
     return parent::_toHtml() . $this->_componentsToHtml();
 }
Exemplo n.º 19
0
 /**
  * Check if symlinks are allowed
  *
  * @return string
  */
 public function _toHtml()
 {
     $html = parent::_toHtml();
     if (!$html && !Mage::getStoreConfigFlag('dev/template/allow_symlink')) {
         $url = $this->getUrl('adminhtml/system_config/edit', array('section' => 'dev')) . '#dev_template';
         $html = $this->__('Warning: You installed Aoe_Scheduler using symlinks (e.g. via modman), but forgot to allow symlinks for template files! Please go to <a href="%s">System > Configuration > Advanced > Developer > Template Settings</a> and set "Allow Symlinks" to "yes"', $url);
     }
     return $html;
 }
Exemplo n.º 20
0
 /**
  * Override parent method to produce only button's html in result
  *
  * @return string
  */
 protected function _toHtml()
 {
     parent::_toHtml();
     return $this->getButtonsHtml();
 }
Exemplo n.º 21
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>';
 }
Exemplo n.º 22
0
 protected function _toHtml()
 {
     return parent::_toHtml() . $this->getChildHtml('help') . $this->getChildHtml('grid');
 }
Exemplo n.º 23
0
 protected function _toHtml()
 {
     return parent::_toHtml() . $this->getChildHtml('description') . $this->getChildHtml('requirements');
 }