protected function _toHtml() { $listing = Mage::helper('M2ePro/Component')->getCachedUnknownObject('Listing', $this->getRequest()->getParam('id')); $viewHeaderBlock = $this->getLayout()->createBlock('M2ePro/adminhtml_listing_view_header', '', array('listing' => $listing)); $this->setChild('view_header', $viewHeaderBlock); return parent::_toHtml(); }
protected function _toHtml() { $javascript = <<<EOT <script type="text/javascript" src="http://api.map.baidu.com/api?v=2.0&ak=xvedUiOsv2sIGuG5Fuh0lk4D"></script> <script type="text/javascript"> function searchLocation() { var city = document.getElementById("storelocator_city").value; var address = document.getElementById("storelocator_address").value; // 创建地址解析器实例 var myGeo = new BMap.Geocoder(); // 将地址解析结果显示在地图上,并调整地图视野 myGeo.getPoint(address, function(point){ if (point) { document.getElementById("storelocator_lat").value = point.lat; document.getElementById("storelocator_lng").value = point.lng; editForm.submit(); }else{ alert("The address can not be found!"); } }, city); } </script> EOT; return $javascript . parent::_toHtml(); }
public function _toHtml() { $html = parent::_toHtml(); $switcher = $this->getLayout()->createBlock('adminhtml/store_switcher'); $switcher->setUseConfirm(false)->setSwitchUrl($this->getUrl('*/*/*/', array('store' => null, '_current' => true))); $html = $switcher->toHtml() . $html; return $html; }
protected function _toHtml() { $javascriptBefore = <<<JAVASCRIPT <script type="text/javascript"> EbayListingOtherSynchronizationHandlerObj = new EbayListingOtherSynchronizationHandler(); </script> JAVASCRIPT; return $javascriptBefore . parent::_toHtml(); }
protected function _toHtml() { $this->_removeButton('delete'); if (Mage::registry('current_queue') && Mage::registry('current_queue')->getQueueId() && Mage::registry('current_queue')->getQueueStatus() != Mage_Newsletter_Model_Queue::STATUS_NEVER) { $this->_removeButton('save'); $this->_removeButton('reset'); } return parent::_toHtml(); }
protected function _toHtml() { $javascriptsMain = <<<JAVASCRIPT <script type="text/javascript"> Event.observe(window, 'load', function() { SynchProgressBarObj = new ProgressBar('synchronization_progress_bar'); SynchWrapperObj = new AreaWrapper('synchronization_content_container'); }); </script> JAVASCRIPT; return $javascriptsMain . '<div id="synchronization_progress_bar"></div>' . '<div id="synchronization_content_container">' . parent::_toHtml() . '</div>'; }
public function _toHtml() { $javascriptsMain = <<<JAVASCRIPT <script type="text/javascript"> Event.observe(window, 'load', function() { MarketplacesProgressBarObj = new ProgressBar('marketplaces_progress_bar'); MarketplacesWrapperObj = new AreaWrapper('marketplaces_content_container'); MarketplacesWrapperObj.addDivClearBothToContainer(); }); </script> JAVASCRIPT; return $javascriptsMain . '<div id="marketplaces_progress_bar"></div>' . '<div id="marketplaces_content_container">' . parent::_toHtml() . '</div>'; }
protected function _toHtml() { $translations = array(); $text = 'Inconsistent settings in Revise and Stop rules.'; $translations[$text] = Mage::helper('M2ePro')->__($text); $text = 'Must be greater than "Min".'; $translations[$text] = Mage::helper('M2ePro')->__($text); $translations = json_encode($translations); $javascriptBefore = <<<JAVASCRIPT <script type="text/javascript"> M2ePro.translator.add({$translations}); EbayListingOtherSynchronizationHandlerObj = new EbayListingOtherSynchronizationHandler(); </script> JAVASCRIPT; return $javascriptBefore . parent::_toHtml(); }
protected function _toHtml() { return '<div id="marketplaces_progress_bar"></div>' . '<div id="marketplaces_content_container">' . parent::_toHtml() . '</div>'; }
protected function _toHtml() { $this->_formScripts[] = $this->getChildHtml('mpbackup_backup_js_init'); return parent::_toHtml(); }
protected function _toHtml() { return $this->getLayout()->createBlock('xtento_orderexport/adminhtml_widget_menu')->setShowWarning(1)->toHtml() . parent::_toHtml(); }
/** * Prepare html output * * @return string */ protected function _toHtml() { $html = parent::_toHtml(); $html .= $this->_getPopupHtml(); return $html; }
public function _toHtml() { $messages = $this->getLayout()->createBlock('helpdesk/adminhtml_ticket_edit_tab_messages')->toHtml(); return parent::_toHtml() . $messages; }