本文整理汇总了PHP中Ess_M2ePro_Block_Adminhtml_Widget_Container类的典型用法代码示例。如果您正苦于以下问题:PHP Ess_M2ePro_Block_Adminhtml_Widget_Container类的具体用法?PHP Ess_M2ePro_Block_Adminhtml_Widget_Container怎么用?PHP Ess_M2ePro_Block_Adminhtml_Widget_Container使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了Ess_M2ePro_Block_Adminhtml_Widget_Container类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: _beforeToHtml
protected function _beforeToHtml()
{
parent::_beforeToHtml();
// ---------------------------------------
$listing = Mage::helper('M2ePro/Component_Ebay')->getCachedObject('Listing', $this->getRequest()->getParam('listing_id'));
$viewHeaderBlock = $this->getLayout()->createBlock('M2ePro/adminhtml_listing_view_header', '', array('listing' => $listing));
$this->setChild('view_header', $viewHeaderBlock);
// ---------------------------------------
// ---------------------------------------
$url = $this->getUrl('*/adminhtml_ebay_listing/view', array('id' => $this->getRequest()->getParam('listing_id')));
$buttonBlock = $this->getLayout()->createBlock('adminhtml/widget_button')->setData(array('label' => Mage::helper('M2ePro')->__('Go To The Listing'), 'onclick' => 'setLocation(\'' . $url . '\');'));
$this->setChild('review', $buttonBlock);
// ---------------------------------------
// ---------------------------------------
$addedProductsIds = Mage::helper('M2ePro/Data_Session')->getValue('added_products_ids');
$url = $this->getUrl('*/adminhtml_ebay_listing/previewItems', array('currentProductId' => $addedProductsIds[0], 'productIds' => implode(',', $addedProductsIds)));
$buttonBlock = $this->getLayout()->createBlock('adminhtml/widget_button')->setData(array('label' => Mage::helper('M2ePro')->__('Preview Added Products Now'), 'onclick' => 'window.open(\'' . $url . '\').focus();', 'class' => 'go'));
$this->setChild('preview', $buttonBlock);
// ---------------------------------------
// ---------------------------------------
$url = $this->getUrl('*/adminhtml_ebay_listing/view', array('id' => $this->getRequest()->getParam('listing_id'), 'do_list' => true));
$buttonBlock = $this->getLayout()->createBlock('adminhtml/widget_button')->setData(array('label' => Mage::helper('M2ePro')->__('List Added Products Now'), 'onclick' => 'setLocation(\'' . $url . '\');', 'class' => 'save'));
$this->getRequest()->getParam('disable_list', false) && $buttonBlock->setData('style', 'display: none');
$this->setChild('save_and_list', $buttonBlock);
// ---------------------------------------
}
示例2: _beforeToHtml
protected function _beforeToHtml()
{
parent::_beforeToHtml();
// ---------------------------------------
$listing = Mage::helper('M2ePro/Component_Ebay')->getCachedObject('Listing', $this->getRequest()->getParam('listing_id'));
$viewHeaderBlock = $this->getLayout()->createBlock('M2ePro/adminhtml_listing_view_header', '', array('listing' => $listing));
$this->setChild('view_header', $viewHeaderBlock);
// ---------------------------------------
// ---------------------------------------
$listingData = Mage::helper('M2ePro/Data_Global')->getValue('temp_data');
$categoryMode = $this->getData('category_mode');
$categoryValue = $this->getData('category_value');
$internalData = $this->getData('internal_data');
$specifics = $this->getData('specifics');
$specificBlock = $this->getLayout()->createBlock('M2ePro/adminhtml_ebay_listing_category_specific');
$specificBlock->setMarketplaceId($listingData['marketplace_id']);
$specificBlock->setCategoryMode($categoryMode);
$specificBlock->setCategoryValue($categoryValue);
if (!empty($internalData)) {
$specificBlock->setInternalData($internalData);
}
if (!empty($specifics)) {
$specificBlock->setSelectedSpecifics($specifics);
}
$this->setChild('category_specific', $specificBlock);
// ---------------------------------------
// ---------------------------------------
if ($categoryMode == Ess_M2ePro_Model_Ebay_Template_Category::CATEGORY_MODE_EBAY) {
$this->_selectedCategoryPath = Mage::helper('M2ePro/Component_Ebay_Category_Ebay')->getPath($categoryValue, $listingData['marketplace_id']);
} else {
$attributeLabel = Mage::helper('M2ePro/Magento_Attribute')->getAttributeLabel($categoryValue);
$this->_selectedCategoryPath = Mage::helper('M2ePro')->__('Magento Attribute') . ' > ' . $attributeLabel;
}
// ---------------------------------------
}
示例3: _beforeToHtml
protected function _beforeToHtml()
{
//------------------------------
$this->setChild('product_mapping_grid', $this->getLayout()->createBlock('M2ePro/adminhtml_order_item_product_mapping_grid'));
//------------------------------
parent::_beforeToHtml();
}
示例4: _beforeToHtml
protected function _beforeToHtml()
{
// Magento order data
// ---------------
$this->realMagentoOrderId = NULL;
$magentoOrder = $this->order->getMagentoOrder();
if (!is_null($magentoOrder)) {
$this->realMagentoOrderId = $magentoOrder->getRealOrderId();
}
// ---------------
// ---------------
if (!is_null($magentoOrder) && $magentoOrder->hasShipments()) {
$url = $this->getUrl('*/adminhtml_order/resubmitShippingInfo', array('id' => $this->order->getId()));
$data = array('class' => '', 'label' => Mage::helper('M2ePro')->__('Resend Shipping Information'), 'onclick' => 'setLocation(\'' . $url . '\');');
$buttonBlock = $this->getLayout()->createBlock('adminhtml/widget_button')->setData($data);
$this->setChild('resubmit_shipping_info', $buttonBlock);
}
// ---------------
// Shipping data
// ---------------
/** @var $shippingAddress Ess_M2ePro_Model_Amazon_Order_ShippingAddress */
$shippingAddress = $this->order->getShippingAddress();
$this->shippingAddress = $shippingAddress->getData();
$this->shippingAddress['country_name'] = $shippingAddress->getCountryName();
// ---------------
$this->setChild('item', $this->getLayout()->createBlock('M2ePro/adminhtml_common_amazon_order_view_item'));
$this->setChild('item_edit', $this->getLayout()->createBlock('M2ePro/adminhtml_order_item_edit'));
$this->setChild('log', $this->getLayout()->createBlock('M2ePro/adminhtml_order_view_log_grid'));
return parent::_beforeToHtml();
}
示例5: _beforeToHtml
protected function _beforeToHtml()
{
if (is_null($this->motorsType)) {
throw new Ess_M2ePro_Model_Exception_Logic('Compatibility type was not set.');
}
//------------------------------
/** @var Ess_M2ePro_Block_Adminhtml_Ebay_Motor_Add_Tabs $tabsBlock */
$tabsBlock = $this->getLayout()->createBlock('M2ePro/adminhtml_ebay_motor_add_tabs');
$tabsBlock->setMotorsType($this->getMotorsType());
$this->setChild('motor_add_tabs', $tabsBlock);
//------------------------------
//------------------------------
$data = array('style' => 'float: right;', 'label' => Mage::helper('M2ePro')->__('Confirm'), 'onclick' => 'EbayMotorsHandlerObj.closeInstruction();');
$confirmBtn = $this->getLayout()->createBlock('adminhtml/widget_button')->setData($data);
$this->setChild('motor_confirm_btn', $confirmBtn);
//------------------------------
//------------------------------
$data = array('style' => 'margin-right: 5px', 'label' => Mage::helper('M2ePro')->__('Add'), 'onclick' => 'EbayMotorsHandlerObj.updateMotorsData(0);');
$closeBtn = $this->getLayout()->createBlock('adminhtml/widget_button')->setData($data);
$this->setChild('motor_add_btn', $closeBtn);
//------------------------------
//------------------------------
$data = array('label' => Mage::helper('M2ePro')->__('Override'), 'onclick' => 'EbayMotorsHandlerObj.updateMotorsData(1);');
$closeBtn = $this->getLayout()->createBlock('adminhtml/widget_button')->setData($data);
$this->setChild('motor_override_btn', $closeBtn);
//------------------------------
//------------------------------
$data = array('style' => 'float: right;', 'label' => Mage::helper('M2ePro')->__('Close'), 'onclick' => 'Windows.getFocusedWindow().close();');
$closeBtn = $this->getLayout()->createBlock('adminhtml/widget_button')->setData($data);
$this->setChild('motor_close_btn', $closeBtn);
//------------------------------
return parent::_beforeToHtml();
}
示例6: _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;
}
示例7: _beforeToHtml
protected function _beforeToHtml()
{
if (is_null($this->compatibilityType)) {
throw new LogicException('Compatibility type was not set.');
}
return parent::_beforeToHtml();
}
示例8: __construct
public function __construct()
{
parent::__construct();
// Initialization block
//------------------------------
$this->setId('ebayListingHelp');
//------------------------------
$this->setTemplate('M2ePro/ebay/listing/help.phtml');
}
示例9: _beforeToHtml
protected function _beforeToHtml()
{
// ---------------------------------------
$data = array('id' => 'productSearchMenu_cancel_button', 'label' => Mage::helper('M2ePro')->__('Close'), 'class' => 'productSearchMenu_cancel_button');
$buttonCancelBlock = $this->getLayout()->createBlock('adminhtml/widget_button')->setData($data);
$this->setChild('productSearchMenu_cancel_button', $buttonCancelBlock);
// ---------------------------------------
parent::_beforeToHtml();
}
示例10: _beforeToHtml
protected function _beforeToHtml()
{
parent::_beforeToHtml();
$listing = Mage::helper('M2ePro/Component_Ebay')->getCachedObject('Listing', $this->getRequest()->getParam('listing_id'));
$viewHeaderBlock = $this->getLayout()->createBlock('M2ePro/adminhtml_listing_view_header', '', array('listing' => $listing));
$this->setChild('view_header', $viewHeaderBlock);
// ------------------------------------------------
$buttonBlock = $this->getLayout()->createBlock('adminhtml/widget_button')->setData(array('label' => Mage::helper('M2ePro')->__('Continue'), 'onclick' => ''));
$this->setChild('mode_same_remember_pop_up_confirm_button', $buttonBlock);
}
示例11: _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>';
}
示例12: _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();
}
示例13: _beforeToHtml
protected function _beforeToHtml()
{
//------------------------------
$data = array('id' => 'mapping_submit_button', 'label' => Mage::helper('M2ePro')->__('Confirm'), 'class' => 'mapping_submit_button submit');
$buttonBlock = $this->getLayout()->createBlock('adminhtml/widget_button')->setData($data);
$this->setChild('mapping_submit_button', $buttonBlock);
//------------------------------
//------------------------------
$this->setChild('mapping_grid', $this->getLayout()->createBlock('M2ePro/adminhtml_listing_other_mapping_grid'));
//------------------------------
parent::_beforeToHtml();
}
示例14: __construct
public function __construct()
{
parent::__construct();
// Initialization block
// ---------------------------------------
$this->setId('configurationLinker');
// ---------------------------------------
// Set header text
// ---------------------------------------
$this->_headerText = Mage::helper('M2ePro')->__('Global Settings');
// ---------------------------------------
$this->setTemplate('M2ePro/configuration/linker.phtml');
}
示例15: _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>';
}