protected function getPurchaseSharingSectionHtml() { $url = $this->getUrl('adminhtml/adminform/salesharing'); $formKey = Mage::getSingleton('core/session')->getFormKey(); $enabled = $this->config->getSalesSharingEnabled() == '1' ? "checked" : ""; $popupTitle = $this->config->getPopupTitle(); $imageShare = $this->config->getShareImage(); $urlShare = $this->config->getShareUrl(); $titleShare = $this->config->getShareTitle(); $descriptionShare = $this->config->getShareDescription(); $disabled = $enabled != "checked" ? 'disabled="disabled"' : ""; $html = <<<HTML <form id="edit_form" name="edit_form" method="post" action="{$url}"> <input name="form_key" type="hidden" value="{$formKey}" /> <input name="store" type="hidden" value="{$this->storeCode}" /> <h4 class="icon-head head-edit-form fieldset-legend">{$this->__('Purchase Sharing')}</h4> <fieldset id="my-fieldset"> <table cellspacing="0" class="form-list"> <tr> <td class="label">{$this->__('Enable Purchase Sharing')} </td> <td class="input-ele"> <input id="sales_sharing_enable" onclick="toggleSharing();" type="checkbox" class="input-text" name="config[sales_sharing_enable]" size="40" maxlength="32" {$enabled}/> </td> </tr> <tr> <td class="label">{$this->__('Sharing Popup Title')} </td> </tr> <tr> <td class="input-ele" colspan="2"> <input id='popup_title' type="text" class="input-text" name="config[popup_title]" size="70%" value="{$popupTitle}" {$disabled}/> </td> </tr> <tr> <td class="label">{$this->__('Image to be shared')} </td> </tr> <tr> <td class="input-ele" colspan="2"> <input id='image_share' type="text" class="input-text" name="config[image_share]" size="70%" value="{$imageShare}" {$disabled}/> </td> </tr> <tr> <td class="label">{$this->__('URL to be shared')} </td> </tr> <tr> <td class="input-ele" colspan="2"> <input id="url_share" type="text" class="input-text" name="config[url_share]" size="70%" value="{$urlShare}" {$disabled}/> </td> </tr> <tr> <td class="label">{$this->__('Share title')} </td> </tr> <tr> <td class="input-ele" colspan="2"> <input id="title_share" type="text" class="input-text" name="config[title_share]" size="70%" value="{$titleShare}" {$disabled}/> </td> </tr> <tr> <td class="label">{$this->__('Share description')} </td> </tr> <tr> <td class="input-ele" colspan="2"> <input id="description_share" type="text" class="input-text" name="config[description_share]" size="70%" value="{$descriptionShare}" {$disabled}/> </td> </tr> <tr> <td></td> <td><button>Save</button></td> </tr> </table> </fieldset> </form> HTML; return $html; }