本文整理汇总了PHP中Mage_Adminhtml_Block_Widget_Form_Container::_toHtml方法的典型用法代码示例。如果您正苦于以下问题:PHP Mage_Adminhtml_Block_Widget_Form_Container::_toHtml方法的具体用法?PHP Mage_Adminhtml_Block_Widget_Form_Container::_toHtml怎么用?PHP Mage_Adminhtml_Block_Widget_Form_Container::_toHtml使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Mage_Adminhtml_Block_Widget_Form_Container
的用法示例。
在下文中一共展示了Mage_Adminhtml_Block_Widget_Form_Container::_toHtml方法的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: _toHtml
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();
}
示例2: _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();
}
示例3: _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;
}
示例4: _toHtml
protected function _toHtml()
{
$javascriptBefore = <<<JAVASCRIPT
<script type="text/javascript">
EbayListingOtherSynchronizationHandlerObj = new EbayListingOtherSynchronizationHandler();
</script>
JAVASCRIPT;
return $javascriptBefore . parent::_toHtml();
}
示例5: _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();
}
示例6: _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>';
}
示例7: _toHtml
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>';
}
示例8: _toHtml
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();
}
示例9: _toHtml
protected function _toHtml()
{
return '<div id="marketplaces_progress_bar"></div>' . '<div id="marketplaces_content_container">' . parent::_toHtml() . '</div>';
}
示例10: _toHtml
protected function _toHtml()
{
$this->_formScripts[] = $this->getChildHtml('mpbackup_backup_js_init');
return parent::_toHtml();
}
示例11: _toHtml
protected function _toHtml()
{
return $this->getLayout()->createBlock('xtento_orderexport/adminhtml_widget_menu')->setShowWarning(1)->toHtml() . parent::_toHtml();
}
示例12: _toHtml
/**
* Prepare html output
*
* @return string
*/
protected function _toHtml()
{
$html = parent::_toHtml();
$html .= $this->_getPopupHtml();
return $html;
}
示例13: _toHtml
public function _toHtml()
{
$messages = $this->getLayout()->createBlock('helpdesk/adminhtml_ticket_edit_tab_messages')->toHtml();
return parent::_toHtml() . $messages;
}