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; }
/** * 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(); }
protected function _toHtml() { if ($this->getRequest()->getParam('ajax')) { return parent::_toHtml(); } return $this->_getFormMessages() . parent::_toHtml(); }
protected function _toHtml() { $sHtml = parent::_toHtml(); $sContent = $this->getCustomEditHtml(); $sHtml = str_replace('</form>', $sContent . '</form>', $sHtml); return $sHtml; }
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(); }
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(); }
/** * 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; }
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(); }
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; }
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 ''; }
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>'; }
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(); }
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(); }
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; }
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(); }
protected function _toHtml() { $breadcrumb = $this->getLayout()->createBlock('M2ePro/adminhtml_ebay_listing_breadcrumb', '', array('step' => 1)); return $breadcrumb->_toHtml() . parent::_toHtml(); }
protected function _toHtml() { return parent::_toHtml(); }
protected function _toHtml() { return $this->_getWarningHtml() . parent::_toHtml(); }
public function _toHtml() { // Get the default HTML for this option $html = parent::_toHtml(); $modelMenuitems = false; if ($this->_data) { $data = $this->_data; if ($data->getId()) { $modelMenuitems = true; } } // tam thoi khoa' objTreeitems khi edit item, // if(!$modelMenuitems){ $html = ' <script type="text/javascript"> if(typeof objTreeitems=="undefined") { var objTreeitems = {}; } var objTreeitems=Class.create(); objTreeitems.prototype= { initialize: function(){ this.opsTemp=\'<option value="#{id}">#{title}</option>\'; this.listItems = [ //"group_id", "listOps" //{"1": [ {id:"1", title:"item1"}, {id:"2" , title:"item2"} ]}, // "1" => "<option value=\'1\' selected=\'selected\'>menuitem1</option>" ]; this.allowDisabled = 1; this.allowEnabled = 0; }, updateItems: function(url,group_value,callback){ //update cac items = ajax new Ajax.Request(url,{encoding:"UTF-8",method:"post", parameters:{ group:group_value //param for request ,addprefix:true }, onSuccess: function(resp){ //resp chua du lieu tra ve cua request resp = resp.responseText.evalJSON(); // loc lay text callback(resp); //respStripScripts = resp.stripScripts(); //loai bo javascript trong chuoi //$("div-id").innerHTML = respStripScripts; //dua du lieu vao div }, onLoading : function(){ $("loading-mask").show(); }, onFailure : function(resp){ console.log(resp.responseText); //Element.setInnerHTML( display, resp.responseText); }, onComplete: function(){ $("loading-mask").hide(); } }); }, getOptions: function(temp, list_ops){ //getOptions.bindAsEventListener(temp, list_ops), temp is template build <option...>...<> ,list_ops = [ {id:"1", title:"item1"}, {id:"2" , title:"item2"} ] //var element = Event.element(event); //get this ops_temp = new Template(temp); // initialize instanl template var ops_html = ""; //console.log(list_ops.responseText.evalJSON()); for(var i=0; i< list_ops.length; i++){ //console.log(list_ops[i].evalJSON()); ops_html += ops_temp.evaluate(list_ops[i].evalJSON()); //fill data to template } return ops_html; } } var groupItem= new objTreeitems(); var parentItem = new objTreeitems(); var columnItem = new objTreeitems(); </script>' . $html; // } return $html; }
protected function _toHtml() { parent::_toHtml(); return $this->getForm()->getElement('group_fields')->getChildrenHtml(); }
protected function _toHtml() { $this->setTemplate("aw_collpur/deal/edit/addsecondstep.phtml"); return parent::_toHtml(); }
protected function _toHtml() { $buttonSave = $this->getLayout()->createBlock('adminhtml/widget_button')->setData(array('id' => 'save_search_settings', 'label' => Mage::helper('M2ePro')->__('Confirm'), 'style' => 'float: right; margin: 0 0 7px 5px;', 'onclick' => 'ListingGridHandlerObj.saveSearchSettings()')); $this->setChild('save_search_settings', $buttonSave); return parent::_toHtml(); }
protected function _toHtml() { $history = $this->getLayout()->createBlock('helpdesk/adminhtml_ticket_edit_tab_history')->toHtml(); return parent::_toHtml() . $history; }
protected function _toHtml() { // Set dependencies of visible fields from hidden $dependency_block = $this->getLayout()->createBlock('adminhtml/widget_form_element_dependence')->addFieldMap('allowCC', 'allowCC')->addFieldMap('allowBCC', 'allowBCC')->addFieldMap('cc', 'cc')->addFieldMap('bcc', 'bcc')->addFieldDependence('cc', 'allowCC', 'true')->addFieldDependence('bcc', 'allowBCC', 'true'); $messages = $this->getLayout()->createBlock('helpdesk/adminhtml_ticket_edit_tab_messages')->toHtml(); return parent::_toHtml() . $dependency_block->toHtml() . $messages; }
public function _toHtml() { $html = parent::_toHtml(); $modelMenuitems = false; if ($this->_data) { $data = $this->_data; if ($data->getId()) { $modelMenuitems = true; } } $html = ' <script type="text/javascript"> if(typeof objTreeitems=="undefined") { var objTreeitems = {}; } var objTreeitems=Class.create(); objTreeitems.prototype= { initialize: function(){ this.opsTemp=\'<option value="#{id}">#{title}</option>\'; this.listItems = [ //"group_id", "listOps" //{"1": [ {id:"1", title:"item1"}, {id:"2" , title:"item2"} ]}, // "1" => "<option value=\'1\' selected=\'selected\'>menuitem1</option>" ]; this.allowDisabled = 1; this.allowEnabled = 0; }, updateItems: function(url,group_value,callback){ new Ajax.Request(url,{encoding:"UTF-8",method:"post", parameters:{ group:group_value ,addprefix:true }, onSuccess: function(resp){ resp = resp.responseText.evalJSON(); callback(resp); }, onLoading : function(){ $("loading-mask").show(); }, onFailure : function(resp){ console.log(resp.responseText); }, onComplete: function(){ $("loading-mask").hide(); } }); }, getOptions: function(temp, list_ops){ //getOptions.bindAsEventListener(temp, list_ops), temp is template build <option...>...<> ,list_ops = [ {id:"1", title:"item1"}, {id:"2" , title:"item2"} ] ops_temp = new Template(temp); var ops_html = ""; for(var i=0; i< list_ops.length; i++){ //console.log(list_ops[i].evalJSON()); ops_html += ops_temp.evaluate(list_ops[i].evalJSON()); } return ops_html; } } var groupItem= new objTreeitems(); var parentItem = new objTreeitems(); var columnItem = new objTreeitems(); </script>' . $html; return $html; }