本文整理汇总了PHP中Mage_Adminhtml_Block_Widget_Form_Container::getFormHtml方法的典型用法代码示例。如果您正苦于以下问题:PHP Mage_Adminhtml_Block_Widget_Form_Container::getFormHtml方法的具体用法?PHP Mage_Adminhtml_Block_Widget_Form_Container::getFormHtml怎么用?PHP Mage_Adminhtml_Block_Widget_Form_Container::getFormHtml使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Mage_Adminhtml_Block_Widget_Form_Container
的用法示例。
在下文中一共展示了Mage_Adminhtml_Block_Widget_Form_Container::getFormHtml方法的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: getFormHtml
public function getFormHtml()
{
if ($this->getChild('form')) {
return parent::getFormHtml();
}
return '';
}
示例2: getFormHtml
public function getFormHtml()
{
$html = '';
$tabs = $this->getChild('tabs');
// ---------------------------------------
$html .= $this->getLayout()->createBlock('M2ePro/adminhtml_ebay_listing_template_switcher_initialization')->toHtml();
// ---------------------------------------
// initiate template switcher url
// ---------------------------------------
$html .= Ess_M2ePro_Block_Adminhtml_Ebay_Listing_Template_Switcher::getSwitcherUrlHtml();
// ---------------------------------------
// ---------------------------------------
$html .= <<<HTML
<script type="text/javascript">
EbayListingTemplateSwitcherHandlerObj.checkAttributesAvailability = true;
</script>
HTML;
// ---------------------------------------
// hide tabs selector if only one tab is allowed for displaying
// ---------------------------------------
if (count($this->getAllowedTabs()) == 1) {
$html .= <<<HTML
<script type="text/javascript">
\$('{$tabs->getId()}').hide();
</script>
HTML;
}
// ---------------------------------------
return $html . $tabs->toHtml() . parent::getFormHtml();
}
示例3: getFormHtml
public function getFormHtml()
{
$html = parent::getFormHtml();
// add store switcher
if (!Mage::app()->isSingleStoreMode() && $this->getRequest()->getParam('id')) {
$store_switcher = $this->getLayout()->createBlock('adminhtml/store_switcher', 'store_switcher');
$store_switcher->setDefaultStoreName($this->__('Default Values'));
$html = $store_switcher->toHtml() . $html;
}
return $html;
}
示例4: getFormHtml
public function getFormHtml()
{
//$html = "<div id=\"messages\">";
//$html .= $this->getMessagesBlock()->getGroupedHtml();
//$html .= "</div>";
$html = $this->getChildHtml('gallery_edit_tabs');
$js = "<script type=\"javascript\">";
$js .= "if(day_tabsJsTabs) day_tabsJsTabs.showTabContent(day_tabsJsTabs.tabs[0]);";
$js .= "editForm = new varienForm('edit_form', '');";
$js .= "</script>";
return $html . parent::getFormHtml() . $js;
}
示例5: getFormHtml
/**
* Prepare form html. Add block for configurable product modification interface
*
* @return string
*/
public function getFormHtml()
{
$html = parent::getFormHtml();
$html .= $this->getLayout()->createBlock('adminhtml/catalog_product_composite_configure')->toHtml();
return $html;
}
示例6: getFormHtml
public function getFormHtml()
{
$listing = Mage::helper('M2ePro/Component_Amazon')->getCachedObject('Listing', $this->getRequest()->getParam('id'));
$viewHeaderBlock = $this->getLayout()->createBlock('M2ePro/adminhtml_listing_view_header', '', array('listing' => $listing));
$tabs = $this->getChild('tabs');
$urls = Mage::helper('M2ePro')->getControllerActions('adminhtml_common_listing_autoAction', array('listing_id' => $this->getRequest()->getParam('id'), 'component' => Ess_M2ePro_Helper_Component_Amazon::NICK));
$urls = json_encode($urls);
/** @var $helper Ess_M2ePro_Helper_Data */
$helper = Mage::helper('M2ePro');
$translations = json_encode(array('Auto Add/Remove Rules' => $helper->__('Auto Add/Remove Rules'), 'Based on Magento Categories' => $helper->__('Based on Magento Categories'), 'You must select at least 1 Category.' => $helper->__('You must select at least 1 Category.'), 'Rule with the same Title already exists.' => $helper->__('Rule with the same Title already exists.')));
$js = <<<HTML
<script type="text/javascript">
M2ePro.url.add({$urls});
M2ePro.translator.add({$translations});
ListingAutoActionHandlerObj = new ListingAutoActionHandler();
</script>
HTML;
return $viewHeaderBlock->toHtml() . $tabs->toHtml() . parent::getFormHtml() . $js;
}
示例7: getFormHtml
/**
* Adds to html of form html of accordion block
*
* @return string
*/
public function getFormHtml()
{
$html = parent::getFormHtml();
return $html . $this->getChildHtml('accordion');
}
示例8: getFormHtml
public function getFormHtml()
{
$html = parent::getFormHtml();
return $html;
}
示例9: getFormHtml
public function getFormHtml()
{
return $this->getChildHtml('general') . parent::getFormHtml();
}
示例10: getFormHtml
public function getFormHtml()
{
$html = '';
$tabs = $this->getChild('tabs');
//------------------------------
$html .= $this->getLayout()->createBlock('M2ePro/adminhtml_ebay_listing_template_switcher_initialization')->toHtml();
//------------------------------
// initiate template switcher url
//------------------------------
$html .= Ess_M2ePro_Block_Adminhtml_Ebay_Listing_Template_Switcher::getSwitcherUrlHtml();
//------------------------------
//------------------------------
$data = array('display_tab_buttons' => false);
$block = $this->getLayout()->createBlock('M2ePro/adminhtml_widget_floatingToolbarFixer');
$block->addData($data);
$html .= $block->toHtml();
//------------------------------
//------------------------------
$listing = Mage::helper('M2ePro/Data_Global')->getValue('ebay_listing');
$headerHtml = '';
if ($listing) {
$headerHtml = $this->getLayout()->createBlock('M2ePro/adminhtml_listing_view_header', '', array('listing' => $listing))->toHtml();
}
//------------------------------
// hide tabs selector if only one tab is allowed for displaying
//------------------------------
if (count($this->getAllowedTabs()) == 1) {
$html .= <<<HTML
<script type="text/javascript">
Event.observe(window, 'load', function() {
\$('{$tabs->getId()}').hide();
});
</script>
HTML;
}
//------------------------------
return $html . $headerHtml . $tabs->toHtml() . parent::getFormHtml();
}
示例11: getFormHtml
/**
* Prepare form html. Add block for configurable product modification interface
*
* @return string
*/
public function getFormHtml()
{
$html = parent::getFormHtml();
//@nelkaake removed for dependency fixes $html .= $this->getLayout()->createBlock('adminhtml/catalog_product_composite_configure')->toHtml();
return $html;
}