本文整理汇总了PHP中Tools::htmlentitiesUTF8方法的典型用法代码示例。如果您正苦于以下问题:PHP Tools::htmlentitiesUTF8方法的具体用法?PHP Tools::htmlentitiesUTF8怎么用?PHP Tools::htmlentitiesUTF8使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Tools
的用法示例。
在下文中一共展示了Tools::htmlentitiesUTF8方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: save
/**
* Update the Main Configuration vars, executed by the main module object once its uninstallation
*
* @return bool success or false
*/
public function save()
{
if (!$this->web_site_id || !$this->store_code_id || !$this->default_profile_id) {
return false;
}
return Configuration::updateValue('PREDIGGO_WEB_SITE_ID', Tools::htmlentitiesUTF8($this->web_site_id, ENT_QUOTES)) && Configuration::updateValue('PREDIGGO_STORE_CODE_ID', Tools::htmlentitiesUTF8($this->store_code_id, ENT_QUOTES)) && Configuration::updateValue('PREDIGGO_DEFAULT_PROFILE_ID', (int) $this->default_profile_id);
}
示例2: displayHelp
public static function displayHelp($label, $iso_lang, $country, $ps_version)
{
$infos = HelpAccess::retrieveInfos($label, $iso_lang, $country, $ps_version);
if (array_key_exists('image', $infos) && $infos['image'] != 'none') {
echo '
<a class="help-button" href="#" onclick="showHelp(\'' . HelpAccess::URL . '\',\'' . $label . '\',\'' . $iso_lang . '\',\'' . $ps_version . '\',\'' . $infos['version'] . '\',\'' . $country . '\');" title="' . Tools::htmlentitiesUTF8($infos['tooltip']) . '">
<img id="help-' . $label . '" src="../img/admin/' . Tools::htmlentitiesUTF8($infos['image']) . '" alt="" class="middle" style="margin-top: -5px"/> ' . Tools::displayError('HELP') . '
</a>
';
if (!empty($infos['tooltip'])) {
echo ' <script type="text/javascript">
$(document).ready(function() {
$("a.help-button").cluetip({
splitTitle: "|",
cluetipClass: "help-button",
showTitle: false,
arrows: true,
dropShadow: false,
positionBy: "auto"
});
});
</script>';
}
}
}
示例3: hookHeader
public function hookHeader($params)
{
global $smarty, $protocol_link, $rewrited_url;
$canonicalUrl = Configuration::get('CANONICAL_URL');
$ps_request = str_replace(__PS_BASE_URI__, '', $_SERVER['REQUEST_URI']);
if (strlen(Configuration::get('CANONICAL_URL')) > 0) {
$smarty->assign('canonical_url', $protocol_link . $canonicalUrl . Tools::htmlentitiesUTF8(rawurldecode($_SERVER['REQUEST_URI'])));
}
return $this->display(__FILE__, 'canonicalurl.tpl');
}
示例4: smartyTruncate
function smartyTruncate($params, &$smarty)
{
$text = isset($params['strip']) ? strip_tags($params['text']) : $params['text'];
$length = $params['length'];
$sep = isset($params['sep']) ? $params['sep'] : '...';
if (Tools::strlen($text) > $length + Tools::strlen($sep)) {
$text = substr($text, 0, $length) . $sep;
}
return isset($params['encode']) ? Tools::htmlentitiesUTF8($text, ENT_NOQUOTES) : $text;
}
示例5: _displayForm
private function _displayForm()
{
$this->_html .= '<form action="' . Tools::htmlentitiesUTF8($_SERVER['REQUEST_URI']) . '" method="post">
<fieldset>
<table border="0" width="500" cellpadding="0" cellspacing="0" id="form">
<tr><td colspan="2">' . $this->l('Saisir votre identifiant') . '.<br /><br /></td></tr>
<tr><td width="130" style="height: 35px;">' . $this->l('Seller id') . '</td><td><input type="text" name="seller_id" value="' . Tools::htmlentitiesUTF8(Tools::getValue('seller_id', $this->_seller_id)) . '" style="width: 300px;" /></td></tr>
<tr><td colspan="2" align="center"><br /><input class="button" name="btnSubmit" value="' . $this->l('Update settings') . '" type="submit" /></td></tr>
</table>
</fieldset>
</form>';
}
示例6: process
public function process()
{
$payu = new PayU();
$response = $payu->interpretIPN($_POST);
if (isset($response['date'], $response['hash'])) {
echo '<EPAYMENT>' . $response['date'] . '|' . $response['hash'] . '</EPAYMENT>';
} elseif (isset($response['error'])) {
echo '<EPAYMENT_ERROR>' . Tools::htmlentitiesUTF8($response['error']) . '</EPAYMENT_ERROR>';
} else {
echo '<EPAYMENT_ERROR>Unknown error</EPAYMENT_ERROR>';
}
exit;
}
示例7: pagination
public function pagination($total_products = null)
{
if (!self::$initialized) {
$this->init();
} elseif (!$this->context) {
$this->context = Context::getContext();
}
// Retrieve the default number of products per page and the other available selections
$default_products_per_page = max(1, (int) Configuration::get('PS_PRODUCTS_PER_PAGE'));
$nArray = array($default_products_per_page, $default_products_per_page * 2, $default_products_per_page * 3, $default_products_per_page * 5, $default_products_per_page * 8, $default_products_per_page * 16);
if ((int) Tools::getValue('n') && (int) $total_products > 0) {
$nArray[] = $total_products;
}
// Retrieve the current number of products per page (either the default, the GET parameter or the one in the cookie)
$this->n = $default_products_per_page;
if (isset($this->context->cookie->nb_item_per_page) && in_array($this->context->cookie->nb_item_per_page, $nArray)) {
$this->n = (int) $this->context->cookie->nb_item_per_page;
}
if ((int) Tools::getValue('n') && in_array((int) Tools::getValue('n'), $nArray)) {
$this->n = (int) Tools::getValue('n');
}
// Retrieve the page number (either the GET parameter or the first page)
$this->p = (int) Tools::getValue('p', 1);
// If the parameter is not correct then redirect (do not merge with the previous line, the redirect is required in order to avoid duplicate content)
if (!is_numeric($this->p) || $this->p < 1) {
Tools::redirect(self::$link->getPaginationLink(false, false, $this->n, false, 1, false));
}
// Remove the page parameter in order to get a clean URL for the pagination template
$current_url = preg_replace('/(\\?)?(&)?p=\\d+/', '$1', Tools::htmlentitiesUTF8($_SERVER['REQUEST_URI']));
if ($this->n != $default_products_per_page || isset($this->context->cookie->nb_item_per_page)) {
$this->context->cookie->nb_item_per_page = $this->n;
}
$pages_nb = ceil($total_products / (int) $this->n);
if ($this->p > $pages_nb && $total_products != 0) {
Tools::redirect(self::$link->getPaginationLink(false, false, $this->n, false, $pages_nb, false));
}
$range = 2;
/* how many pages around page selected */
$start = (int) ($this->p - $range);
if ($start < 1) {
$start = 1;
}
$stop = (int) ($this->p + $range);
if ($stop > $pages_nb) {
$stop = (int) $pages_nb;
}
$this->context->smarty->assign(array('nb_products' => $total_products, 'products_per_page' => $this->n, 'pages_nb' => $pages_nb, 'p' => $this->p, 'n' => $this->n, 'nArray' => $nArray, 'range' => $range, 'start' => $start, 'stop' => $stop, 'current_url' => $current_url));
}
示例8: getContent
public function getContent()
{
if (Tools::isSubmit('submit')) {
// Запись логина ключа и № формы в конфиг из формы в админке
Configuration::updateValue('ONPAY_LOGIN', Tools::getValue('ONPAY_LOGIN'));
Configuration::updateValue('ONPAY_API_IN_KEY', Tools::getValue('ONPAY_API_IN_KEY'));
Configuration::updateValue('ONPAY_FORM', Tools::getValue('ONPAY_FORM'));
}
//код отображения в админке
return '
<form action="' . Tools::htmlentitiesUTF8($_SERVER['REQUEST_URI']) . '" method="post">
<fieldset style="width: 300px;float:right;margin-left:15px;">
<legend><img src="../img/admin/manufacturers.gif" /> ' . $this->l('Информация') . '</legend>
<div id="dev_div">
<span><b>' . $this->l('Версия') . ':</b> ' . $this->version . '</span><br>
<span><b>' . $this->l('Лицензия') . ':</b> <a class="link" href="http://www.opensource.org/licenses/osl-3.0.php" target="_blank">OSL 3.0</a></span><br>
<span><b>' . $this->l('Разработчик') . ':</b> <a class="link" href="mailto:mbpresta@rambler.ru" target="_blank">psstore.org</a><br>
<span><b>' . $this->l('Обсудить') . ':</b> <a class="link" href="http://prestashop-planet.org/" target="_blank">prestashop-planet.org</a><br>
</div>
</fieldset>
<fieldset><legend><img src="../modules/' . $this->name . '/logo.gif" /> ' . $this->l('Settings') . '</legend>
<label for="wmr">' . $this->l('LOGIN:') . '</label>
<div class="margin-form">
<input type="text" size="25" maxlength="13" name="ONPAY_LOGIN" value="' . Tools::getValue('ONPAY_LOGIN', Configuration::get('ONPAY_LOGIN')) . '" />
</div>
<div class="clear"> </div>
<label for="wmz">' . $this->l('API IN KEY:') . '</label>
<div class="margin-form">
<input type="text" size="25" maxlength="13" name="ONPAY_API_IN_KEY" value="' . Tools::getValue('ONPAY_API_IN_KEY', Configuration::get('ONPAY_API_IN_KEY')) . '" />
</div>
<div class="clear"> </div>
<label for="key">' . $this->l('ONPAY FORM:') . '</label>
<div class="margin-form">
<input type="text" size="2" name="ONPAY_FORM" value="' . Tools::getValue('ONPAY_FORM', Configuration::get('ONPAY_FORM')) . '" />
</div>
<div class="clear"> </div>
<label for="key">' . $this->l('URL API(не изменяется)') . '</label>
<div class="margin-form">
<input type="text" size="75" name="ap" value="http://' . $_SERVER['HTTP_HOST'] . $this->_path . 'validation.php" />
</div>
<div class="clear"> </div>
<center><input type="submit" name="submit" value="' . $this->l('Update settings') . '" class="button" /></center>
</fieldset>
</form>
<div class="clear"> </div>';
}
示例9: assignVars
public static function assignVars()
{
$technical_settings = array();
$technical_settings['SYSPAY_LIVE_MID'] = Configuration::get('SYSPAY_LIVE_MID');
$technical_settings['SYSPAY_LIVE_SHA1_PRIVATE'] = Configuration::get('SYSPAY_LIVE_SHA1_PRIVATE');
$technical_settings['SYSPAY_TEST_MID'] = Configuration::get('SYSPAY_TEST_MID');
$technical_settings['SYSPAY_TEST_SHA1_PRIVATE'] = Configuration::get('SYSPAY_TEST_SHA1_PRIVATE');
$technical_settings['SYSPAY_MODE'] = Configuration::get('SYSPAY_MODE');
$technical_settings['SYSPAY_ERRORS'] = Configuration::get('SYSPAY_ERRORS');
$technical_settings['SYSPAY_CAPTURE_OS'] = Configuration::get('SYSPAY_CAPTURE_OS');
$technical_settings['SYSPAY_AUTHORIZED_PAYMENT'] = Configuration::get('SYSPAY_AUTHORIZED_PAYMENT');
$technical_settings['SYSPAY_REBILL'] = Configuration::get('SYSPAY_REBILL');
$technical_settings['SYSPAY_WEBSITE_ID'] = Configuration::get('SYSPAY_WEBSITE_ID');
$technical_settings['formTarget'] = Tools::htmlentitiesUTF8($_SERVER['REQUEST_URI']);
$context = Context::getContext();
$context->smarty->assign('settings', $technical_settings);
}
示例10: process
public function process()
{
parent::process();
$hasProduct = false;
$product_list = Tools::getValue('compare_product_list');
$postProducts = isset($product_list) ? rtrim($product_list, '|') : '';
if (!Configuration::get('PS_COMPARATOR_MAX_ITEM')) {
return Tools::redirect('404.php');
}
if ($postProducts) {
$ids = array_unique(explode('|', $postProducts));
if (sizeof($ids) > 0) {
if (sizeof($ids) > Configuration::get('PS_COMPARATOR_MAX_ITEM')) {
$ids = array_slice($ids, 0, Configuration::get('PS_COMPARATOR_MAX_ITEM'));
}
$listProducts = array();
$listFeatures = array();
foreach ($ids as $id) {
$curProduct = new Product((int) $id, true, (int) self::$cookie->id_lang);
if (!Validate::isLoadedObject($curProduct)) {
continue;
}
if (!$curProduct->active) {
unset($ids[$k]);
continue;
}
foreach ($curProduct->getFrontFeatures(self::$cookie->id_lang) as $feature) {
$listFeatures[$curProduct->id][$feature['id_feature']] = $feature['value'];
}
$cover = Product::getCover((int) $id);
$curProduct->id_image = Tools::htmlentitiesUTF8(Product::defineProductImage(array('id_image' => $cover['id_image'], 'id_product' => $id), self::$cookie->id_lang));
$curProduct->allow_oosp = Product::isAvailableWhenOutOfStock($curProduct->out_of_stock);
$listProducts[] = $curProduct;
}
if (sizeof($listProducts) > 0) {
$width = 80 / sizeof($listProducts);
$hasProduct = true;
$ordered_features = Feature::getFeaturesForComparison($ids, self::$cookie->id_lang);
self::$smarty->assign(array('ordered_features' => $ordered_features, 'product_features' => $listFeatures, 'products' => $listProducts, 'link' => new Link(), 'width' => $width, 'homeSize' => Image::getSize('home')));
self::$smarty->assign('HOOK_EXTRA_PRODUCT_COMPARISON', Module::hookExec('extraProductComparison', array('list_ids_product' => $ids)));
}
}
}
self::$smarty->assign('hasProduct', $hasProduct);
}
示例11: includeDatepicker
function includeDatepicker($id, $time = false)
{
global $cookie;
echo '<script type="text/javascript" src="' . __PS_BASE_URI__ . 'js/jquery/jquery-ui-1.8.10.custom.min.js"></script>';
$iso = Db::getInstance()->getValue('SELECT iso_code FROM ' . _DB_PREFIX_ . 'lang WHERE `id_lang` = ' . (int) $cookie->id_lang);
if ($iso != 'en') {
echo '<script type="text/javascript" src="' . __PS_BASE_URI__ . 'js/jquery/datepicker/ui/i18n/ui.datepicker-' . Tools::htmlentitiesUTF8($iso) . '.js"></script>';
}
echo '<script type="text/javascript">';
if (is_array($id)) {
foreach ($id as $id2) {
bindDatepicker($id2, $time);
}
} else {
bindDatepicker($id, $time);
}
echo '</script>';
}
示例12: getContent
public function getContent()
{
if (Tools::isSubmit('submitLiveZilla')) {
Configuration::updateValue('LIVEZILLA_URL', Tools::getValue('LIVEZILLA_URL_TYPE') . Tools::getValue('LIVEZILLA_URL'));
Configuration::updateValue('LIVEZILLA_SCRIPT', Tools::getValue('LIVEZILLA_SCRIPT'), true);
echo $this->displayConfirmation($this->l('Settings updated'));
}
$html = '<h2>' . $this->displayName . '</h2>
<fieldset><legend><img src="../modules/' . $this->name . '/logo.gif" /> ' . $this->l('How-to') . '</legend>
<img src="../modules/' . $this->name . '/lz_package.gif" style="float:right;margin-left:10px" />
' . $this->l('LiveZilla is not a hosted solution, which means that LiveZilla needs to be installed on your local computer (step 1) and on your webserver (step 2) as well.') . '
' . $this->l('The LiveZilla installation on your webserver is called the LiveZilla Server.') . '
<br /><br />
' . $this->l('Once you have finished step 1 & 2, you must fill in the URL of your LiveZilla installation below or directly copy / paste the script in the text area. This will integrate LiveZilla with your website (step 3).') . '
<br /><br />
' . $this->l('The full installation guide is available on') . ' <a href="http://www.livezilla.net/installation/" style="text-decoration:underline">' . $this->l('the official LiveZilla website') . '</a>.
<br /><br />
<a href="https://www.livezilla.net/downloads/" style="font-weight:700"><img src="../modules/' . $this->name . '/lz_download.gif" style="vertical-align:middle" /> ' . $this->l('Download LiveZilla now!') . '</a>
</fieldset>
<div class="clear"> </div>
<form action="' . Tools::htmlentitiesUTF8($_SERVER['REQUEST_URI']) . '" method="post">
<fieldset><legend><img src="../modules/' . $this->name . '/logo.gif" /> ' . $this->l('Configuration') . '</legend>
<label>' . $this->l('Enter the URL to your LiveZilla installation') . '</label>
<div class="margin-form">
<select name="LIVEZILLA_URL_TYPE">
<option ' . (Tools::getValue('LIVEZILLA_URL_TYPE') == 'http://' ? ' selected="selected" ' : '') . ' value="http://">http://</option>
<option ' . (Tools::getValue('LIVEZILLA_URL_TYPE') == 'https://' ? ' selected="selected" ' : '') . ' value="https://">https://</option>
</select>
<input type="text" name="LIVEZILLA_URL" style="width:300px" value="' . Tools::htmlentitiesUTF8(Tools::getValue('LIVEZILLA_URL', Configuration::get('LIVEZILLA_URL'))) . '" />
<p>' . $this->l('Absolute URL with the trailing slash, e.g.,') . ' ' . Tools::getProtocol() . Tools::htmlentitiesUTF8($_SERVER['HTTP_HOST']) . '/LiveZilla/</p>
</div>
<div class="clear"> </div>
<div style="font-size:1.2em;font-weight:700;text-align:center">' . $this->l('-- OR --') . '</div>
<div class="clear"> </div>
<label>' . $this->l('Copy / paste the script given by LiveZilla') . '</label>
<div class="margin-form">
<textarea name="LIVEZILLA_SCRIPT" style="width:600px;height:200px" />' . Tools::htmlentitiesUTF8(Tools::getValue('LIVEZILLA_SCRIPT', Configuration::get('LIVEZILLA_SCRIPT'))) . '</textarea>
</div>
<div class="clear"> </div>
<input type="submit" name="submitLiveZilla" value="' . $this->l('Update settings') . '" class="button" />
</fieldset>
</form>';
return $html;
}
示例13: smartyTranslate
function smartyTranslate($params, &$smarty)
{
global $_LANG;
if (!isset($params['js'])) {
$params['js'] = 0;
}
if (!isset($params['pdf'])) {
$params['pdf'] = false;
}
if (!isset($params['mod'])) {
$params['mod'] = false;
}
if (!isset($params['sprintf'])) {
$params['sprintf'] = null;
}
$string = str_replace('\'', '\\\'', $params['s']);
$filename = !isset($smarty->compiler_object) || !is_object($smarty->compiler_object->template) ? $smarty->template_resource : $smarty->compiler_object->template->getTemplateFilepath();
$basename = basename($filename, '.tpl');
$key = $basename . '_' . md5($string);
if (isset($smarty->source) && strpos($smarty->source->filepath, DIRECTORY_SEPARATOR . 'override' . DIRECTORY_SEPARATOR) !== false) {
$key = 'override_' . $key;
}
if ($params['mod']) {
return Translate::getModuleTranslation($params['mod'], $params['s'], $basename, $params['sprintf']);
} else {
if ($params['pdf']) {
return Translate::getPdfTranslation($params['s']);
}
}
if ($_LANG != null && isset($_LANG[$key])) {
$msg = $_LANG[$key];
} elseif ($_LANG != null && isset($_LANG[Tools::strtolower($key)])) {
$msg = $_LANG[Tools::strtolower($key)];
} else {
$msg = $params['s'];
}
if ($msg != $params['s']) {
$msg = $params['js'] ? addslashes($msg) : stripslashes($msg);
}
if ($params['sprintf'] !== null) {
$msg = Translate::checkAndReplaceArgs($msg, $params['sprintf']);
}
return $params['js'] ? $msg : Tools::htmlentitiesUTF8($msg);
}
示例14: validOrder
function validOrder()
{
global $cookie, $cart, $ppPayment;
if (!$cookie->isLogged()) {
die('Not logged');
} elseif (!$cart->getOrderTotalLC(true, 3)) {
die('Empty cart');
}
if (!($token = Tools::htmlentitiesUTF8(strval(Tools::getValue('token'))))) {
die('Invalid token');
}
if ($token != strval($cookie->paypal_token)) {
die('Invalid cookie token');
}
if (!($payerID = Tools::htmlentitiesUTF8(strval(Tools::getValue('PayerID'))))) {
die('Invalid payerID');
}
$ppPayment->validOrder($cookie, $cart, $cookie->id_currency, $payerID, 'payment');
}
示例15: getContent
public function getContent()
{
$html = '';
if (Tools::isSubmit('submitStatsData')) {
Configuration::updateValue('PS_STATSDATA_CUSTOMER_PAGESVIEWS', (int) Tools::getValue('PS_STATSDATA_CUSTOMER_PAGESVIEWS'));
Configuration::updateValue('PS_STATSDATA_PAGESVIEWS', (int) Tools::getValue('PS_STATSDATA_PAGESVIEWS'));
Configuration::updateValue('PS_STATSDATA_PLUGINS', (int) Tools::getValue('PS_STATSDATA_PLUGINS'));
$html .= '<div class="conf">' . $this->l('Configuration updated') . '</div>';
}
$html .= '<form action="' . Tools::htmlentitiesUTF8($_SERVER['REQUEST_URI']) . '" method="post">
<fieldset><legend><img src="../modules/' . $this->name . '/logo.gif" /> ' . $this->l('Settings') . '</legend>
<label>' . $this->l('Save page views for each customer') . '</label>
<div class="margin-form">
<input type="radio" name="PS_STATSDATA_CUSTOMER_PAGESVIEWS" id="PS_STATSDATA_CUSTOMER_PAGESVIEWS_on" value="1" ' . (Tools::getValue('PS_STATSDATA_CUSTOMER_PAGESVIEWS', Configuration::get('PS_STATSDATA_CUSTOMER_PAGESVIEWS')) ? 'checked="checked"' : '') . ' />
<label class="t" for="PS_STATSDATA_CUSTOMER_PAGESVIEWS_on"> <img src="../img/admin/enabled.gif" alt="' . $this->l('Yes') . '" title="' . $this->l('Yes') . '" /></label>
<input type="radio" name="PS_STATSDATA_CUSTOMER_PAGESVIEWS" id="PS_STATSDATA_CUSTOMER_PAGESVIEWS_off" value="0" ' . (Tools::getValue('PS_STATSDATA_CUSTOMER_PAGESVIEWS', Configuration::get('PS_STATSDATA_CUSTOMER_PAGESVIEWS')) ? '' : 'checked="checked"') . ' />
<label class="t" for="PS_STATSDATA_CUSTOMER_PAGESVIEWS_off"> <img src="../img/admin/disabled.gif" alt="' . $this->l('No') . '" title="' . $this->l('No') . '" /></label>
<p>' . $this->l('Stored customer page views uses a lot of CPU resources and database space.') . '</p>
</div>
<div class="clear"> </div>
<label>' . $this->l('Save global page views.') . '</label>
<div class="margin-form">
<input type="radio" name="PS_STATSDATA_PAGESVIEWS" id="PS_STATSDATA_PAGESVIEWS_on" value="1" ' . (Tools::getValue('PS_STATSDATA_PAGESVIEWS', Configuration::get('PS_STATSDATA_PAGESVIEWS')) ? 'checked="checked"' : '') . ' />
<label class="t" for="PS_STATSDATA_PAGESVIEWS_on"> <img src="../img/admin/enabled.gif" alt="' . $this->l('Yes') . '" title="' . $this->l('Yes') . '" /></label>
<input type="radio" name="PS_STATSDATA_PAGESVIEWS" id="PS_STATSDATA_PAGESVIEWS_off" value="0" ' . (Tools::getValue('PS_STATSDATA_PAGESVIEWS', Configuration::get('PS_STATSDATA_PAGESVIEWS')) ? '' : 'checked="checked"') . ' />
<label class="t" for="PS_STATSDATA_PAGESVIEWS_off"> <img src="../img/admin/disabled.gif" alt="' . $this->l('No') . '" title="' . $this->l('No') . '" /></label>
<p>' . $this->l('Global page views uses fewer resources than customer\'s, but it uses resources nonetheless.') . '</p>
</div>
<div class="clear"> </div>
<label>' . $this->l('Plugins detection') . '</label>
<div class="margin-form">
<input type="radio" name="PS_STATSDATA_PLUGINS" id="PS_STATSDATA_PLUGINS_on" value="1" ' . (Tools::getValue('PS_STATSDATA_PLUGINS', Configuration::get('PS_STATSDATA_PLUGINS')) ? 'checked="checked"' : '') . ' />
<label class="t" for="PS_STATSDATA_PLUGINS_on"> <img src="../img/admin/enabled.gif" alt="' . $this->l('Yes') . '" title="' . $this->l('Yes') . '" /></label>
<input type="radio" name="PS_STATSDATA_PLUGINS" id="PS_STATSDATA_PLUGINS_off" value="0" ' . (Tools::getValue('PS_STATSDATA_PLUGINS', Configuration::get('PS_STATSDATA_PLUGINS')) ? '' : 'checked="checked"') . ' />
<label class="t" for="PS_STATSDATA_PLUGINS_off"> <img src="../img/admin/disabled.gif" alt="' . $this->l('No') . '" title="' . $this->l('No') . '" /></label>
<p>' . $this->l('Plugins detection loads an extra 20kb javascript file for new visitors.') . '</p>
</div>
<div class="clear"> </div>
<input type="submit" class="button" name="submitStatsData" value="' . $this->l('Update') . '" />
</fieldset>';
return $html;
}