本文整理汇总了PHP中Mage_Adminhtml_Block_Widget_Form::_toHtml方法的典型用法代码示例。如果您正苦于以下问题:PHP Mage_Adminhtml_Block_Widget_Form::_toHtml方法的具体用法?PHP Mage_Adminhtml_Block_Widget_Form::_toHtml怎么用?PHP Mage_Adminhtml_Block_Widget_Form::_toHtml使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Mage_Adminhtml_Block_Widget_Form
的用法示例。
在下文中一共展示了Mage_Adminhtml_Block_Widget_Form::_toHtml方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: _toHtml
protected function _toHtml()
{
$html = $this->getLayout()->createBlock('adminhtml/template')->setTemplate('affiliateplusprogram/descriptions.phtml')->toHtml();
$html .= $this->getLayout()->createBlock('affiliateplusprogram/adminhtml_program_edit_tab_categories')->toHtml();
$html .= parent::_toHtml();
return $html;
}
示例2: _toHtml
/**
* Prepare html output
*
* @return string
*/
protected function _toHtml()
{
if (!Mage::getStoreConfigFlag('widefocus_widget_previews/general/enabled') || !Mage::getStoreConfigFlag('widefocus_widget_previews/general/enabled_in_wysiwig')) {
return '';
}
return parent::_toHtml();
}
示例3: _toHtml
protected function _toHtml()
{
if ($this->getRequest()->getParam('ajax')) {
return parent::_toHtml();
}
return $this->_getFormMessages() . parent::_toHtml();
}
示例4: _toHtml
protected function _toHtml()
{
$sHtml = parent::_toHtml();
$sContent = $this->getCustomEditHtml();
$sHtml = str_replace('</form>', $sContent . '</form>', $sHtml);
return $sHtml;
}
示例5: _toHtml
protected function _toHtml()
{
if ($this->getRequest()->getParam('step')) {
$breadcrumb = $this->getLayout()->createBlock('M2ePro/adminhtml_ebay_listing_breadcrumb', '', array('step' => $this->getRequest()->getParam('step', 2)));
return $breadcrumb->_toHtml() . parent::_toHtml();
}
return parent::_toHtml();
}
示例6: _toHtml
public function _toHtml()
{
$this->setTemplate('em_slideshow2/slider_video_upload.phtml');
$video = $this->getVideo();
$this->assign('count', count($video));
$this->assign('video', $video);
return parent::_toHtml();
}
示例7: _toHtml
/**
* Prepare html output
*
* @return string
*/
protected function _toHtml()
{
$html = '<form ' . $this->getForm()->serialize($this->getForm()->getHtmlAttributes()) . '>';
$html .= '<input name="form_key" type="hidden" value="' . Mage::getSingleton('core/session')->getFormKey() . '" />';
$html .= parent::_toHtml();
$html .= $this->getLayout()->createBlock('mep/adminhtml_attribute_view_edit_options')->toHtml();
$html .= '</form>';
return $html;
}
示例8: _toHtml
protected function _toHtml()
{
if (!Mage::registry('slideritems_data')) {
$this->assign('sliderlinks', false);
return parent::_toHtml();
}
$collection = Mage::getModel('slider/slider_links')->getResourceCollection()->addSliderLinkFilter(Mage::registry('slideritems_data')->getSlideritem_id())->load();
$this->assign('sliderlinks', $collection);
return parent::_toHtml();
}
示例9: _toHtml
protected function _toHtml()
{
$html = parent::_toHtml();
if (isset($this->_datapin['id'])) {
if ($this->_datapin['filetype'] != HN_Pin_Model_Pin::TEXT_TYPE) {
$html_plus = "<a href='" . Mage::getUrl('pin/adminhtml_pin/viewfilepin', array('id' => $this->_datapin['id'])) . "' >" . "View File" . "</a>";
$html = $html . $html_plus;
}
}
return $html;
}
示例10: _toHtml
protected function _toHtml()
{
if ($this->_canDisplay) {
$html = parent::_toHtml();
if ($this->getEditedInGrid()) {
$html .= '<input name="form_key" type="hidden" value="' . Mage::getSingleton('core/session')->getFormKey() . '" />';
}
return $html;
}
return '';
}
示例11: _toHtml
protected function _toHtml()
{
return parent::_toHtml() . '
<script type="text/javascript">
var templateSyntax = /(^|.|\\r|\\n)({{(\\w+)}})/;
function setSettings(urlTemplate, typeElement) {
var template = new Template(urlTemplate, templateSyntax);
setLocation(template.evaluate({type:$F(typeElement)}));
}
</script>';
}
示例12: _toHtml
public function _toHtml()
{
$this->setTemplate('em_slideshow2/slider_img.phtml');
$data = unserialize(base64_decode(Mage::registry('slideshow2_data')->getImages()));
if ($data) {
$count = count($data);
} else {
$count = 0;
}
$this->assign('count', $count);
$this->assign('data', $data);
return parent::_toHtml();
}
示例13: _toHtml
public function _toHtml()
{
$this->setTemplate('em_slideshow2/slider_img.phtml');
$helper = Mage::helper("slideshow2");
$data = $helper->emslider_decode(Mage::registry('slideshow2_data')->getImages());
if ($data) {
$count = count($data);
} else {
$count = 0;
}
$this->assign('count', $count);
$this->assign('data', $data);
return parent::_toHtml();
}
示例14: _toHtml
public function _toHtml()
{
$sHtml = parent::_toHtml();
$sHtml .= '
<script type="text/javascript">
var productTemplateSyntax = /(^|.|\\r|\\n)({{(\\w+)}})/;
function setSettings(urlTemplate, eventName) {
var template = new Template(urlTemplate, productTemplateSyntax);
setLocation(template.evaluate({event_name:$F(eventName)}));
}
</script>
';
return $sHtml;
}
示例15: _toHtml
protected function _toHtml()
{
if (!Mage::registry('slideritems_data')) {
$this->assign('sliderimage', false);
return parent::_toHtml();
}
$collection = Mage::getModel('slider/slider_items')->getCollection()->addFieldToSelect(array('slider_image_path'))->addFieldToFilter('slideritem_id', Mage::registry('slideritems_data')->getSlideritem_id());
$imagedata = $collection->getData();
if (isset($imagedata[0])) {
if ($imagedata[0] != NULL) {
$this->assign('sliderimage', $imagedata[0]);
}
}
return parent::_toHtml();
}