本文整理汇总了PHP中Mage_Adminhtml_Block_Widget_Container::_toHtml方法的典型用法代码示例。如果您正苦于以下问题:PHP Mage_Adminhtml_Block_Widget_Container::_toHtml方法的具体用法?PHP Mage_Adminhtml_Block_Widget_Container::_toHtml怎么用?PHP Mage_Adminhtml_Block_Widget_Container::_toHtml使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Mage_Adminhtml_Block_Widget_Container
的用法示例。
在下文中一共展示了Mage_Adminhtml_Block_Widget_Container::_toHtml方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: _toHtml
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();
}
示例2: _toHtml
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;
}
示例3: _toHtml
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>';
}
示例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()) {
$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()
{
$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();
}
示例6: _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: 86%; top: 90%;">
<a href="javascript:void(0)" class="specifics_cancel_button">{$cancelWord}</a>
{$doneButton->toHtml()}
</div>
HTML;
return parent::_toHtml() . $buttonsContainer;
}
示例7: _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_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>';
}
示例8: _toHtml
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;
}
示例9: _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>';
}
示例10: _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;
}
示例11: _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;
}
示例12: _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_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>
{$doneButton->toHtml()}
<script type="text/javascript">ebayListingCategoryChooserTabsJsTabs.moveTabContentInDest();</script>
</div>
HTML;
return parent::_toHtml() . $tabsContainer->toHtml() . '<div id="chooser_tabs_container"></div>' . $buttonsContainer;
}
示例13: _toHtml
protected function _toHtml()
{
return parent::_toHtml() . $this->getChildHtml('content');
}
示例14: _toHtml
protected function _toHtml()
{
$this->{"assign"}($this->���);
return parent::_toHtml();
}
示例15: _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);
//------------------------------
//------------------------------
// ->__('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;
}