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


PHP Mage_Adminhtml_Block_Widget_Grid_Container::_toHtml方法代码示例

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


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

示例1: _toHtml

 public function _toHtml()
 {
     $listingData = Mage::registry('M2ePro_data');
     $helpBlock = $this->getLayout()->createBlock('M2ePro/adminhtml_listings_products_help');
     $startHtmlDivGrid = '<div id="listingsProductsGrid' . (isset($listingData['id']) ? $listingData['id'] : '') . '">';
     return str_replace($startHtmlDivGrid, $helpBlock->toHtml() . $startHtmlDivGrid, parent::_toHtml());
 }
开发者ID:par-orillonsoft,项目名称:app,代码行数:7,代码来源:AddStepThree.php

示例2: _toHtml

 /**
  * Don't show if no website is selected
  * @return string
  */
 protected function _toHtml()
 {
     if (!Mage::app()->getRequest()->getParam('website')) {
         return '';
     } else {
         return parent::_toHtml();
     }
 }
开发者ID:blackangrykangaroo,项目名称:Shipping-rates-grid-in-Magento,代码行数:12,代码来源:Tablerate.php

示例3: _toHtml

 public function _toHtml()
 {
     $html = parent::_toHtml();
     $switcher = $this->getLayout()->createBlock('adminhtml/store_switcher');
     $switcher->setDefaultStoreName(Mage::helper('searchindex')->__('Select store'));
     $switcher->setUseConfirm(false)->setSwitchUrl($this->getUrl('*/*/*/', array('store' => null, '_current' => true)));
     $html = $switcher->toHtml() . $html;
     return $html;
 }
开发者ID:vishalpatel14,项目名称:indiankalaniketan,代码行数:9,代码来源:Report.php

示例4: _toHtml

 public function _toHtml()
 {
     $helpBlock = $this->getLayout()->createBlock('M2ePro/adminhtml_feedbacks_help');
     $filtersBlock = $this->getLayout()->createBlock('M2ePro/adminhtml_accounts_switcher');
     $filtersBlock->setUseConfirm(false);
     $formBlock = $this->getLayout()->createBlock('M2ePro/adminhtml_feedbacks_form');
     $startHtmlDivGrid = '<div id="' . $this->getId() . 'Grid">';
     return str_replace($startHtmlDivGrid, $helpBlock->toHtml() . $filtersBlock->toHtml() . $formBlock->toHtml() . $startHtmlDivGrid, parent::_toHtml());
 }
开发者ID:par-orillonsoft,项目名称:app,代码行数:9,代码来源:Feedbacks.php

示例5: _toHtml

    protected function _toHtml()
    {
        $parentHtml = parent::_toHtml();
        $popupsHtml = $this->getPopupsHtml();
        return <<<HTML
<div id="products_progress_bar"></div>
<div id="products_container">{$parentHtml}</div>
<div style="display: none">{$popupsHtml}</div>
HTML;
    }
开发者ID:technomagegithub,项目名称:magento,代码行数:10,代码来源:Product.php

示例6: _toHtml

    public function _toHtml()
    {
        $helpBlock = $this->getLayout()->createBlock('M2ePro/adminhtml_listings_items_help');
        $tempDropDownHtml = Mage::helper('M2ePro')->escapeJs($this->getGotoTemplatesDropDownHtml());
        $javascriptsMain = <<<JAVASCRIPT
<script type="text/javascript">

    Event.observe(window, 'load', function() {
        \$\$('.goto_templates_drop_down')[0].innerHTML += '{$tempDropDownHtml}';
        DropDownObj = new DropDown();
        DropDownObj.prepare(\$\$('.goto_templates_drop_down')[0]);
    });

</script>
JAVASCRIPT;
        $startHtmlDivGrid = '<div id="' . $this->getId() . 'Grid">';
        return $javascriptsMain . str_replace($startHtmlDivGrid, $helpBlock->toHtml() . $startHtmlDivGrid, parent::_toHtml());
    }
开发者ID:par-orillonsoft,项目名称:app,代码行数:18,代码来源:Items.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() {
        LogHandlerObj = new LogHandler();
    });

</script>

JAVASCIRPT;
        return $javascript . parent::_toHtml();
    }
开发者ID:technomagegithub,项目名称:magento,代码行数:18,代码来源:Log.php

示例8: _toHtml

    public function _toHtml()
    {
        $orderLogConstants = Mage::helper('M2ePro')->getClassConstantAsJson('Model_Orders_OrderLog');
        $orderViewUrl = $this->getUrl('*/adminhtml_orders/view', array('back' => Mage::helper('M2ePro')->makeBackUrlParam('*/adminhtml_orders/index')));
        $viewAllOrderLogsMessage = Mage::helper('M2ePro')->__('View All Order Logs.');
        $successWord = Mage::helper('M2ePro')->escapeJs(Mage::helper('M2ePro')->__('Success'));
        $warningWord = Mage::helper('M2ePro')->escapeJs(Mage::helper('M2ePro')->__('Warning'));
        $errorWord = Mage::helper('M2ePro')->escapeJs(Mage::helper('M2ePro')->__('Error'));
        $closeWord = Mage::helper('M2ePro')->escapeJs(Mage::helper('M2ePro')->__('Close'));
        $javascriptsMain = <<<JAVASCRIPT
<script type="text/javascript">

    if (typeof M2ePro == 'undefined') {
\t\tM2ePro = {};
\t\tM2ePro.url = {};
\t\tM2ePro.formData = {};
\t\tM2ePro.customData = {};
\t\tM2ePro.text = {};
\t}

\tM2ePro.url.orderViewUrl = '{$orderViewUrl}';

\tM2ePro.text.view_all_order_logs_message = '{$viewAllOrderLogsMessage}';

\tM2ePro.text.success_word = '{$successWord}';
\tM2ePro.text.warning_word = '{$warningWord}';
\tM2ePro.text.error_word = '{$errorWord}';
\tM2ePro.text.close_word = '{$closeWord}';

    Event.observe(window, 'load', function() {
        OrdersHandlersObj = new OrdersHandlers('{$this->getId()}Grid');
        OrdersHandlersObj.setConstants('{$orderLogConstants}');
    });

</script>
JAVASCRIPT;
        $filtersBlock = $this->getLayout()->createBlock('M2ePro/adminhtml_accounts_switcher');
        $filtersBlock->setUseConfirm(false);
        $helpBlock = $this->getLayout()->createBlock('M2ePro/adminhtml_orders_help');
        $helpHtml = $helpBlock->toHtml() . $filtersBlock->toHtml();
        $startHtmlDivGrid = '<div id="' . $this->getId() . 'Grid">';
        return str_replace($startHtmlDivGrid, $javascriptsMain . $helpHtml . $startHtmlDivGrid, parent::_toHtml());
    }
开发者ID:naz-ahmed,项目名称:ndap-magento-mirror,代码行数:43,代码来源:Orders.php

示例9: _toHtml

    protected function _toHtml()
    {
        $gridJsObj = 'developmentTable' . Mage::helper('M2ePro/Data_Global')->getValue('data_model') . 'GridJsObject';
        $javascript = <<<JAVASCRIPT
<script type="text/javascript">

    //-----------------------------

    function deleteTableRow(url)
    {
        if (!confirm('Are you sure?')) {
            return;
        }

        new Ajax.Request(url ,
        {
            method:'get',
            onSuccess: function(transport)
            {
                {$gridJsObj}.reload();
            }
        });
    }

    //-----------------------------

    function mouseOverCell(cell_id)
    {
        if (\$(cell_id + '_save_link').getStyle('display') != 'none') {
            return;
        }

        \$(cell_id + '_edit_link').show();
        \$(cell_id + '_view_link').hide();
        \$(cell_id + '_save_link').hide();
    }

    function mouseOutCell(cell_id)
    {
        if (\$(cell_id + '_save_link').getStyle('display') != 'none') {
            return;
        }

        \$(cell_id + '_edit_link').hide();
        \$(cell_id + '_view_link').hide();
        \$(cell_id + '_save_link').hide();
    }

    //-----------------------------

    function saveCell(cell_id,url)
    {
        new Ajax.Request( url ,
        {
            method: 'post',
            asynchronous : false,
            parameters : {
                value : \$(cell_id + '_edit_input').value
            },
            onSuccess: function(transport)
            {
            console.log({$gridJsObj});
                switchCellToView(cell_id);
                {$gridJsObj}.reload();
            }
        });
    }

    function switchCellToView(cell_id)
    {
        \$(cell_id + '_edit_link').show();
        \$(cell_id + '_view_link').hide();
        \$(cell_id + '_save_link').hide();

        \$(cell_id + '_edit_container').hide();
        \$(cell_id + '_view_container').show();
    }

    function switchCellToEdit(cell_id)
    {
        \$(cell_id + '_edit_link').hide();
        \$(cell_id + '_view_link').show();
        \$(cell_id + '_save_link').show();

        \$(cell_id + '_edit_container').show();
        \$(cell_id + '_view_container').hide();
    }

    //-----------------------------

</script>
JAVASCRIPT;
        return $javascript . parent::_toHtml();
    }
开发者ID:xiaoguizhidao,项目名称:bb,代码行数:94,代码来源:Table.php

示例10: _toHtml

 /**
  * Prepare output HTML
  *
  * @return string
  */
 protected function _toHtml()
 {
     Mage::dispatchEvent('api_user_html_before', array('block' => $this));
     return parent::_toHtml();
 }
开发者ID:hazaeluz,项目名称:magento_connect,代码行数:10,代码来源:User.php

示例11: _toHtml

 /**
  * {@inheritdoc}
  */
 protected function _toHtml()
 {
     $this->_headerText = __('Schedule');
     return parent::_toHtml();
 }
开发者ID:pierre-pizzetta,项目名称:orderflow-magento-module,代码行数:8,代码来源:Schedule.php

示例12: _toHtml

    public function _toHtml()
    {
        if (!empty($_SESSION['products_ids_for_list'])) {
            $productsIdsForList = $_SESSION['products_ids_for_list'];
            $_SESSION['products_ids_for_list'] = '';
        } else {
            $productsIdsForList = '';
        }
        $listingData = Mage::registry('M2ePro_data');
        $logViewUrl = $this->getUrl('*/adminhtml_logs/listings', array('id' => $listingData['id'], 'back' => Mage::helper('M2ePro')->makeBackUrlParam('*/adminhtml_listings/view', array('id' => $listingData['id']))));
        $checkLockListing = $this->getUrl('*/adminhtml_listings/checkLockListing');
        $lockListingNow = $this->getUrl('*/adminhtml_listings/lockListingNow');
        $unlockListingNow = $this->getUrl('*/adminhtml_listings/unlockListingNow');
        $getErrorsSummary = $this->getUrl('*/adminhtml_listings/getErrorsSummary');
        $runListProducts = $this->getUrl('*/adminhtml_listings/runListProducts');
        $runReviseProducts = $this->getUrl('*/adminhtml_listings/runReviseProducts');
        $runRelistProducts = $this->getUrl('*/adminhtml_listings/runRelistProducts');
        $runStopProducts = $this->getUrl('*/adminhtml_listings/runStopProducts');
        $runStopAndRemoveProducts = $this->getUrl('*/adminhtml_listings/runStopAndRemoveProducts');
        $helpBlock = $this->getLayout()->createBlock('M2ePro/adminhtml_listings_view_help');
        $tempDropDownHtml = Mage::helper('M2ePro')->escapeJs($this->getEditTemplateDropDownHtml());
        $taskCompletedMessage = Mage::helper('M2ePro')->escapeJs(Mage::helper('M2ePro')->__('Task completed. Please wait ...'));
        $taskCompletedSuccessMessage = Mage::helper('M2ePro')->escapeJs(Mage::helper('M2ePro')->__('"%title%" task has successfully completed.'));
        $taskCompletedWarningMessage = Mage::helper('M2ePro')->escapeJs(Mage::helper('M2ePro')->__('"%title%" task has completed with warnings. <a href="%url%">View log</a> for details.'));
        $taskCompletedErrorMessage = Mage::helper('M2ePro')->escapeJs(Mage::helper('M2ePro')->__('"%title%" task has completed with errors. <a href="%url%">View log</a> for details.'));
        $sendingDataToEbayMessage = Mage::helper('M2ePro')->escapeJs(Mage::helper('M2ePro')->__('Sending %execute% product(s) data on eBay.'));
        $viewAllProductLogMessage = Mage::helper('M2ePro')->escapeJs(Mage::helper('M2ePro')->__('View All Product Log.'));
        $listingLockedMessage = Mage::helper('M2ePro')->escapeJs(Mage::helper('M2ePro')->__('The listing was locked by another process. Please try again later.'));
        $listingEmptyMessage = Mage::helper('M2ePro')->escapeJs(Mage::helper('M2ePro')->__('Listing is empty.'));
        $listingAllItemsMessage = Mage::helper('M2ePro')->escapeJs(Mage::helper('M2ePro')->__('Listing All Items On eBay'));
        $listingSelectedItemsMessage = Mage::helper('M2ePro')->escapeJs(Mage::helper('M2ePro')->__('Listing Selected Items On eBay'));
        $revisingSelectedItemsMessage = Mage::helper('M2ePro')->escapeJs(Mage::helper('M2ePro')->__('Revising Selected Items On eBay'));
        $relistingSelectedItemsMessage = Mage::helper('M2ePro')->escapeJs(Mage::helper('M2ePro')->__('Relisting Selected Items On eBay'));
        $stoppingSelectedItemsMessage = Mage::helper('M2ePro')->escapeJs(Mage::helper('M2ePro')->__('Stopping Selected Items On eBay'));
        $stoppingAndRemovingSelectedItemsMessage = Mage::helper('M2ePro')->escapeJs(Mage::helper('M2ePro')->__('Stopping And Removing Selected Items On eBay'));
        $selectItemsMessage = Mage::helper('M2ePro')->escapeJs(Mage::helper('M2ePro')->__('Please select items.'));
        $selectActionMessage = Mage::helper('M2ePro')->escapeJs(Mage::helper('M2ePro')->__('Please select action.'));
        $successWord = Mage::helper('M2ePro')->escapeJs(Mage::helper('M2ePro')->__('Success'));
        $noticeWord = Mage::helper('M2ePro')->escapeJs(Mage::helper('M2ePro')->__('Notice'));
        $warningWord = Mage::helper('M2ePro')->escapeJs(Mage::helper('M2ePro')->__('Warning'));
        $errorWord = Mage::helper('M2ePro')->escapeJs(Mage::helper('M2ePro')->__('Error'));
        $closeWord = Mage::helper('M2ePro')->escapeJs(Mage::helper('M2ePro')->__('Close'));
        $javascriptsMain = <<<JAVASCRIPT
<script type="text/javascript">

    if (typeof M2ePro == 'undefined') {
\t\tM2ePro = {};
\t\tM2ePro.url = {};
\t\tM2ePro.formData = {};
\t\tM2ePro.customData = {};
\t\tM2ePro.text = {};
\t}

    M2ePro.productsIdsForList = '{$productsIdsForList}';

\tM2ePro.url.logViewUrl = '{$logViewUrl}';
\tM2ePro.url.checkLockListing = '{$checkLockListing}';
\tM2ePro.url.lockListingNow = '{$lockListingNow}';
\tM2ePro.url.unlockListingNow = '{$unlockListingNow}';
\tM2ePro.url.getErrorsSummary = '{$getErrorsSummary}';

\tM2ePro.url.runListProducts = '{$runListProducts}';
\tM2ePro.url.runReviseProducts = '{$runReviseProducts}';
\tM2ePro.url.runRelistProducts = '{$runRelistProducts}';
\tM2ePro.url.runStopProducts = '{$runStopProducts}';
\tM2ePro.url.runStopAndRemoveProducts = '{$runStopAndRemoveProducts}';

    M2ePro.text.task_completed_message = '{$taskCompletedMessage}';
\tM2ePro.text.task_completed_success_message = '{$taskCompletedSuccessMessage}';
\tM2ePro.text.task_completed_warning_message = '{$taskCompletedWarningMessage}';
\tM2ePro.text.task_completed_error_message = '{$taskCompletedErrorMessage}';

\tM2ePro.text.sending_data_message = '{$sendingDataToEbayMessage}';
\tM2ePro.text.view_all_product_log_message = '{$viewAllProductLogMessage}';

\tM2ePro.text.listing_locked_message = '{$listingLockedMessage}';
\tM2ePro.text.listing_empty_message = '{$listingEmptyMessage}';

\tM2ePro.text.listing_all_items_message = '{$listingAllItemsMessage}';
\tM2ePro.text.listing_selected_items_message = '{$listingSelectedItemsMessage}';
\tM2ePro.text.revising_selected_items_message = '{$revisingSelectedItemsMessage}';
\tM2ePro.text.relisting_selected_items_message = '{$relistingSelectedItemsMessage}';
\tM2ePro.text.stopping_selected_items_message = '{$stoppingSelectedItemsMessage}';
\tM2ePro.text.stopping_and_removing_selected_items_message = '{$stoppingAndRemovingSelectedItemsMessage}';

\tM2ePro.text.select_items_message = '{$selectItemsMessage}';
\tM2ePro.text.select_action_message = '{$selectActionMessage}';

\tM2ePro.text.success_word = '{$successWord}';
\tM2ePro.text.notice_word = '{$noticeWord}';
\tM2ePro.text.warning_word = '{$warningWord}';
\tM2ePro.text.error_word = '{$errorWord}';
\tM2ePro.text.close_word = '{$closeWord}';

    Event.observe(window, 'load', function() {
        EbayItemsGridHandlersObj = new EbayItemsGridHandlers('listingsViewGrid{$listingData['id']}',1,2);
        EbayActionsHandlersObj = new EbayActionsHandlers({$listingData['id']});
        ListingProgressBarObj = new ProgressBar('listing_view_progress_bar');
        GridWrapperObj = new AreaWrapper('listing_view_content_container');

//.........这里部分代码省略.........
开发者ID:naz-ahmed,项目名称:ndap-magento-mirror,代码行数:101,代码来源:View.php

示例13: _toHtml

 protected function _toHtml()
 {
     $helpBlock = $this->getLayout()->createBlock('M2ePro/adminhtml_ebay_listing_other_help');
     return $helpBlock->toHtml() . parent::_toHtml();
 }
开发者ID:giuseppemorelli,项目名称:magento-extension,代码行数:5,代码来源:Other.php

示例14: _toHtml

 protected function _toHtml()
 {
     return '<div id="add_products_progress_bar"></div>' . '<div id="add_products_container">' . parent::_toHtml() . '</div>' . $this->getVideoTutorialHtml() . $this->getAutoactionPopupHtml() . $this->getSettingsPopupHtml();
 }
开发者ID:newedge-media,项目名称:iwantmymeds,代码行数:4,代码来源:Product.php

示例15: _toHtml

 protected function _toHtml()
 {
     return '<div id="add_products_progress_bar"></div>' . '<div id="add_products_container">' . parent::_toHtml() . '</div>';
 }
开发者ID:technomagegithub,项目名称:magento,代码行数:4,代码来源:StepFive.php


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