当前位置: 首页>>代码示例>>PHP>>正文


PHP Varien_Data_Form_Element_Abstract::getLabel方法代码示例

本文整理汇总了PHP中Varien_Data_Form_Element_Abstract::getLabel方法的典型用法代码示例。如果您正苦于以下问题:PHP Varien_Data_Form_Element_Abstract::getLabel方法的具体用法?PHP Varien_Data_Form_Element_Abstract::getLabel怎么用?PHP Varien_Data_Form_Element_Abstract::getLabel使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Varien_Data_Form_Element_Abstract的用法示例。


在下文中一共展示了Varien_Data_Form_Element_Abstract::getLabel方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: _getElementHtml

 /**
  * Override method to output our custom HTML with JavaScript
  *
  * @param Varien_Data_Form_Element_Abstract $element
  *
  * @return String
  */
 protected function _getElementHtml(Varien_Data_Form_Element_Abstract $element)
 {
     if (!extension_loaded('soap') || !extension_loaded('openssl')) {
         $element->setDisabled('disabled')->setValue(0);
     } else {
         // Get Config Link
         $configLink = Mage::helper('bronto_common')->getScopeUrl('/system_config/edit/section/bronto');
         if (!Mage::helper('bronto_verify/apitoken')->getStatus()) {
             if (trim($element->getLabel()) === 'Enable Module') {
                 $element->setDisabled('disabled')->setValue(0);
                 $link = '<a href="' . $configLink . '">Fix it Here</a>';
                 $element->setComment('<span style="color:red;font-weight: bold">A valid Bronto API key is required. ' . $link . '</span>');
             }
         } else {
             if (!Mage::helper('bronto_common')->isEnabled()) {
                 if (trim($element->getLabel()) === 'Enable Module') {
                     $element->setDisabled('disabled')->setValue(0);
                     $link = '<a href="' . $configLink . '">Enable It Here</a>';
                     $element->setComment('<span style="color:red;font-weight: bold">The Bronto Extension for Magento is not enabled. ' . $link . '</span>');
                 }
             } else {
                 if (!Mage::helper('bronto_common/support')->isRegistered()) {
                     if (trim($element->getLabel()) !== 'Enable Module' || !$element->getValue()) {
                         $link = '<a href="' . $configLink . '#bronto_support-head">Register Here</a>';
                         $element->setDisabled('disabled');
                         $element->setComment('<span style="color:red;font-weight:bold">Extension registration is required. ' . $link . '</span>');
                     }
                 }
             }
         }
     }
     return parent::_getElementHtml($element);
 }
开发者ID:bevello,项目名称:bevello,代码行数:40,代码来源:Field.php

示例2: render

 public function render(Varien_Data_Form_Element_Abstract $element)
 {
     $html = '<span class="field-row">' . "\n";
     if ($element->getLabel()) {
         $html .= '<label for="' . $element->getHtmlId() . '">' . $element->getLabel() . 'fdasdf</label>' . "\n";
     }
     $html .= '<iframe src="' . $element->getValue() . '" id="' . $element->getHtmlId() . '" frameborder="0" class="template-preview"/>';
     $html .= '</span>' . "\n";
     return $html;
 }
开发者ID:arslbbt,项目名称:mangentovies,代码行数:10,代码来源:Text.php

示例3: render

    public function render(Varien_Data_Form_Element_Abstract $element)
    {
        $html = '<tr><td class="label">' . "\n";
        if ($element->getLabel()) {
            $html .= '<label for="' . $element->getHtmlId() . '">' . $element->getLabel() . '</label>' . "\n";
        }
        $html .= '</td><td class="value">
<iframe src="' . $element->getValue() . '" id="' . $element->getHtmlId() . '" frameborder="0" class="template-preview"> </iframe>';
        $html .= '</td><td></td></tr>' . "\n";
        return $html;
    }
开发者ID:ronseigel,项目名称:agent-ohm,代码行数:11,代码来源:Newsletter_Renderer_Text.php

示例4: render

 /**
  * render config row
  * @param Varien_Data_Form_Element_Abstract $element
  * @return string
  */
 public function render(Varien_Data_Form_Element_Abstract $element)
 {
     $id = $element->getHtmlId();
     $html = "<tr id='row_" . $id . "'>";
     $html .= "<td colspan='3' style='line-height: 27px;'><div style='padding-left:5px;font-weight: bold; border-bottom: 1px solid #dfdfdf;'>";
     $html .= $element->getLabel();
     $html .= "</div></td>";
     $html .= "<td class='value' style='padding-left:50px !important;'><a style='text-decoration:none;' href='https://docs.google.com/viewer?url=https://www.magestore.com/media/productfile/w/e/web-pos-v2.0-user-guide.pdf' target='_bank'>" . $element->getLabel() . "</a>";
     $html .= "</td></tr>";
     return $html;
 }
开发者ID:cabrerabywaters,项目名称:magentoSunshine,代码行数:16,代码来源:Standard.php

示例5: render

 public function render(Varien_Data_Form_Element_Abstract $element)
 {
     $element->addClass('element-value-changer');
     $valueName = $element->getLabel();
     if ($valueName === '' || $valueName === null) {
         $valueName = '...';
     }
     if ($element->getShowAsText()) {
         $html = ' <input type="hidden" class="hidden" id="' . $element->getHtmlId() . '" name="' . $element->getName() . '" value="' . $element->getValue() . '"/> ' . htmlspecialchars($valueName) . '&nbsp;';
     } else {
         $html = '&nbsp;<span class="rule-param">';
         /** @var Mage_Core_Model_Translate_Inline $translate */
         $translate = Mage::getSingleton('core/translate_inline');
         if ($translate->isAllowed()) {
             $valueName = Mage::helper('core/string')->truncate($valueName, 33, '...');
         }
         $html .= '<a href="javascript:void(0)" class="label">';
         $html .= Mage::helper('core')->escapeHtml($valueName);
         $html .= '</a>';
         $html .= '<span class="element"> ';
         $html .= $element->getElementHtml();
         if ($element->getExplicitApply()) {
             /** @var Aoe_FraudManager_Helper_Data $helper */
             $helper = Mage::helper('Aoe_FraudManager/Data');
             $url = $helper->getConditionApplyImageUrl();
             $label = $helper->getConditionApplyLabel();
             $html .= ' <a href="javascript:void(0)" class="rule-param-apply">';
             $html .= '<img src="' . $url . '" class="v-middle" alt="' . $label . '" title="' . $label . '" />';
             $html .= '</a> ';
         }
         $html .= '</span>';
         $html .= '</span>&nbsp;';
     }
     return $html;
 }
开发者ID:aoepeople,项目名称:aoe_fraudmanager,代码行数:35,代码来源:Editable.php

示例6: render

 public function render(Varien_Data_Form_Element_Abstract $element)
 {
     $id = $element->getHtmlId();
     $html = '<tr><td class="label"><label for="' . $id . '">' . $element->getLabel() . '</label></td>';
     $html .= '<td class="value">' . $this->_getElementHtml($element) . $element->getAfterElementHtml() . '</td>';
     return $html;
 }
开发者ID:cabrerabywaters,项目名称:magentoSunshine,代码行数:7,代码来源:Tier.php

示例7: render

	public function render(Varien_Data_Form_Element_Abstract $element)
    {
        $useContainerId = $element->getData('use_container_id');
        return sprintf('<tr class="system-fieldset-sub-head" id="row_%s"><td colspan="5"><h4 id="%s">%s</h4></td></tr>',
            $element->getHtmlId(), $element->getHtmlId(), $element->getLabel()
        );
    }
开发者ID:amal-nibaya,项目名称:PB-BEERSHOP,代码行数:7,代码来源:Spacer.php

示例8: render

 public function render(Varien_Data_Form_Element_Abstract $element)
 {
     $html = '<tr>' . "\n";
     $countryId = false;
     if ($country = $element->getForm()->getElement('country_id')) {
         $countryId = $country->getValue();
     }
     $regionCollection = false;
     if ($countryId) {
         if (!isset(self::$_regionCollections[$countryId])) {
             self::$_regionCollections[$countryId] = Mage::getModel('directory/country')->setId($countryId)->getLoadedRegionCollection();
         }
         $regionCollection = self::$_regionCollections[$countryId];
     }
     $regionId = $element->getForm()->getElement('region_id')->getValue();
     if ($regionCollection && $regionCollection->getSize()) {
         $elementClass = $element->getClass();
         $element->setClass(str_replace('input-text', '', $elementClass));
         $html .= '<td class="label">' . $element->getLabelHtml() . '</td>';
         $html .= '<td class="value"><select id="' . $element->getHtmlId() . '" name="' . $element->getName() . '" ' . $element->serialize($element->getHtmlAttributes()) . '>' . "\n";
         foreach ($regionCollection as $region) {
             $selected = $regionId == $region->getId() ? ' selected' : '';
             $html .= '<option value="' . $region->getId() . '"' . $selected . '>' . $region->getName() . '</option>';
         }
         $html .= '</select></td>';
         $element->setClass($elementClass);
     } else {
         $element->setClass('input-text');
         $html .= '<td class="label"><label for="' . $element->getHtmlId() . '">' . $element->getLabel() . ' <span class="required" style="display:none">*</span></label></td>';
         $element->setRequired(false);
         $html .= '<td class="value"><input id="' . $element->getHtmlId() . '" name="' . $element->getName() . '" value="' . $element->getEscapedValue() . '"' . $element->serialize($element->getHtmlAttributes()) . '/></td>' . "\n";
     }
     $html .= '</tr>' . "\n";
     return $html;
 }
开发者ID:arslbbt,项目名称:mangentovies,代码行数:35,代码来源:Region.php

示例9: render

 /**
  * Render element html
  *
  * @param Varien_Data_Form_Element_Abstract $element
  * @return string
  */
 public function render(Varien_Data_Form_Element_Abstract $element)
 {
     return sprintf('<tr class="system-fieldset-sub-head" id="row_%s">
             <td class="label"><label for="%s">%s</label></td>
             <td class="value" colspan="4">%s</td>
         </tr>', $element->getHtmlId(), $element->getHtmlId(), $element->getLabel(), '<a href="mailto:hubspot@eyemaginetech.com">hubspot@eyemaginetech.com</a>');
 }
开发者ID:shopgo-magento1,项目名称:Magento-HubspotIntegration,代码行数:13,代码来源:Support.php

示例10: render

    public function render(Varien_Data_Form_Element_Abstract $element)
    {
        $useContainerId = $element->getData('use_container_id');
        return sprintf('<tr class="system-fieldset-sub-head" id="row_%s"><td colspan="5" class="ves-description">
					   <h3>	<a href="http://www.venustheme.com"><b>Magento - Venus Deals Block</b></a>  </h3>
								The most elegant way to show list products of your magento store inside the smooth ProductCarousel. 
								the module supports multiple themes for fitting your design, easy to make owner themes by yourself, 
								and many kind of selecting products sources. 
								When you used, sure you will get highest effects while introducing your customers great products, featured products .<br>
							<br>
							
							<h4><b>Guide</b></h4>
							<ul>
								<li><a href="http://www.venustheme.com"> 1) Forum Support</a></li>
								<li><a href="http://www.venustheme.com"> 2) Submit A Request</a></li>
								<li><a href="http://www.venustheme.com"> 3) Submit A Ticket</a></li>
							</ul>
							<div>
								<h4>How to implement</h4>
								<ul>
									<li>&lt block type="ves_deals/deal_productlist" name="deals.list" /&gt</li>
									<li>{{block type="ves_deals/deal_productlist" name="deals.list"}}</li>
								</ul>
								
							</div>
							<br>
							<div style="font-size:11px">@Copyright: <i><a href="http://www.venustheme.com" target="_blank">VenusTheme.Com</a></i></div>
					   </td></tr>', $element->getHtmlId(), $element->getHtmlId(), $element->getLabel());
    }
开发者ID:quanghuynt93,项目名称:VesSmartshop,代码行数:29,代码来源:Information.php

示例11: render

 /**
  * Render element html
  *
  * @param Varien_Data_Form_Element_Abstract $element
  * @return string
  */
 public function render(Varien_Data_Form_Element_Abstract $element)
 {
     $script = '$("row_payment_paymentnetwork_pnsofortueberweisung_display_settings_heading").toggle();
                $("row_payment_paymentnetwork_pnsofortueberweisung_checkout_presentation").toggle();
                $("row_payment_paymentnetwork_pnsofortueberweisung_customer_protection").toggle();
                $("row_payment_paymentnetwork_pnsofortueberweisung_allowspecific").toggle();
                $("row_payment_paymentnetwork_pnsofortueberweisung_specificcountry").toggle();
                $("row_payment_paymentnetwork_pnsofortueberweisung_sort_order").toggle();
                $("row_payment_paymentnetwork_pnsofortueberweisung_usage_settings_heading").toggle();
                $("row_payment_paymentnetwork_pnsofortueberweisung_usage_text_one").toggle();
                $("row_payment_paymentnetwork_pnsofortueberweisung_usage_text_two").toggle();
                $("row_payment_paymentnetwork_pnsofortueberweisung_status_settings_heading").toggle();
                $("row_payment_paymentnetwork_pnsofortueberweisung_order_status").toggle();
                $("row_payment_paymentnetwork_pnsofortueberweisung_order_status_pending_not_credited_yet").toggle();
                $("row_payment_paymentnetwork_pnsofortueberweisung_order_status_loss_not_credited").toggle();
                $("row_payment_paymentnetwork_pnsofortueberweisung_order_status_received_credited").toggle();
                $("row_payment_paymentnetwork_pnsofortueberweisung_create_invoice").toggle();
                $("row_payment_paymentnetwork_pnsofortueberweisung_status_config_text_one").toggle();
                $("row_payment_paymentnetwork_pnsofortueberweisung_status_config_text_two").toggle();
                $("row_payment_paymentnetwork_pnsofortueberweisung_create_creditmemo").toggle();
                $("row_payment_paymentnetwork_pnsofortueberweisung_send_order_confirmation").toggle();
                $("row_payment_paymentnetwork_pnsofortueberweisung_send_mail").toggle();';
     $labelText = Mage::helper('sofort')->__("Adjust the SOFORT Banking module properties here. <a onclick='%s'>(Click to open)</a>");
     $label = sprintf($labelText, $script);
     return sprintf('<tr class="system-fieldset-sub-head" id="row_%s"><td colspan="5"><div id="%s">%s</div></td></tr>', $element->getHtmlId(), $element->getHtmlId(), $label . $element->getLabel());
 }
开发者ID:uibar,项目名称:peggysgift,代码行数:32,代码来源:Toggle.php

示例12: render

 /**
  * Render element html
  *
  * @param Varien_Data_Form_Element_Abstract $element
  * @return string
  */
 public function render(Varien_Data_Form_Element_Abstract $element)
 {
     return sprintf('<tr class="system-fieldset-sub-head" id="row_%s">
             <td class="label"><label for="%s">%s</label></td>
             <td class="value" colspan="4">%s</td>
         </tr>', $element->getHtmlId(), $element->getHtmlId(), $element->getLabel(), Mage::helper('eyehubspot')->getVersion());
 }
开发者ID:shopgo-magento1,项目名称:Magento-HubspotIntegration,代码行数:13,代码来源:Version.php

示例13: render

    /**
     * Render element html
     *
     * @param Varien_Data_Form_Element_Abstract $element
     * @return string
     */
    public function render(Varien_Data_Form_Element_Abstract $element)
    {
        $imageDirectoryBaseUrl = Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_MEDIA) . 'infortis/system/css/images';
        $elementData = $element->getOriginalData();
        $url1 = $this->getUrl('dataporter/adminhtml_cfgporter/index/action_type/import/package/Infortis_Ultimo');
        $url2 = $this->getUrl('dataporter/adminhtml_cfgporter/index/action_type/export/package/Infortis_Ultimo');
        //Start base HTML
        $html = '';
        $html .= sprintf('<tr class="system-fieldset-sub-head" id="row_%s"><td colspan="5"><h4 id="%s">%s</h4></td></tr>', $element->getHtmlId(), $element->getHtmlId(), $element->getLabel());
        //Open row
        $html .= sprintf('<tr class="" id="row_%s_content">', $element->getHtmlId());
        //Add label cell
        $html .= sprintf('<td class="label"><label>%s</label></td>', $elementData['sublabel']);
        //Open main cell
        $html .= '<td class="value">';
        //Buttons
        $html .= $this->getLayout()->createBlock('adminhtml/widget_button')->setType('button')->setClass('go-to-page')->setLabel('Import')->setOnClick("setLocation('{$url1}')")->toHtml();
        $html .= '&nbsp;';
        $html .= $this->getLayout()->createBlock('adminhtml/widget_button')->setType('button')->setClass('go-to-page')->setLabel('Export')->setOnClick("setLocation('{$url2}')")->toHtml();
        //Close all wrappers: cell and row
        $html .= '</td>';
        $html .= '</tr>';
        //Add CSS
        $html .= '<style>
button.go-to-page span {
	background-repeat: no-repeat;
	background-position: 100% 50%;
	background-image: url(' . $imageDirectoryBaseUrl . '/btn-go-to-page-icon.png);
	padding-right: 26px;
}
</style>';
        return $html;
    }
开发者ID:platonicsolution,项目名称:local-server,代码行数:39,代码来源:Configimpex.php

示例14: render

    public function render(Varien_Data_Form_Element_Abstract $element)
    {
        $useContainerId = $element->getData('use_container_id');
        return sprintf('<tr class="system-fieldset-sub-head" id="row_%s"><td colspan="5" class="ves-description">
					   <h3>	<a href="http://www.venustheme.com"><b>Magento - Venus Product Categories Block</b></a>  </h3>
								Show List Categories.<br>
							<br>
							
							<h4><b>Guide</b></h4>
							<ul>
								<li><a href="http://www.venustheme.com"> 1) Forum Support</a></li>
								<li><a href="http://www.venustheme.com"> 2) Submit A Request</a></li>
								<li><a href="http://www.venustheme.com"> 3) Submit A Ticket</a></li>
							</ul>
							<div>
								<h4>How to implement</h4>
								<ul>
									<li>&ltblock type="ves_productcategories/list" name="ves.list" /&gt</li>
									<li>{{block type="ves_productcategories/list" name="ves.list"}}</li>
								</ul>
								
							</div>
							<br>
							<div style="font-size:11px">@Copyright: <i><a href="http://www.venustheme.com" target="_blank">VenusTheme.Com</a></i></div>
					   </td></tr>', $element->getHtmlId(), $element->getHtmlId(), $element->getLabel());
    }
开发者ID:quanghuynt93,项目名称:VesSmartshop,代码行数:26,代码来源:Information.php

示例15: render

 /**
  * render config row
  * @param Varien_Data_Form_Element_Abstract $element
  * @return string
  */
 public function render(Varien_Data_Form_Element_Abstract $element)
 {
     $id = $element->getHtmlId();
     $html = '<tr id="row_' . $id . '">' . '<td class="label" colspan="3"></td>';
     $html .= '<td class="value"><a href="https://docs.google.com/viewer?url=https://www.magestore.com/media/productfile/a/f/affiliate-report-userguide.pdf" target="_bank">' . $element->getLabel() . '</a>';
     $html .= '</td></tr>';
     return $html;
 }
开发者ID:billadams,项目名称:forever-frame,代码行数:13,代码来源:Affiliateplusstatistic.php


注:本文中的Varien_Data_Form_Element_Abstract::getLabel方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。