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


PHP smarty_modifier_htmlentitiesUTF8函数代码示例

本文整理汇总了PHP中smarty_modifier_htmlentitiesUTF8函数的典型用法代码示例。如果您正苦于以下问题:PHP smarty_modifier_htmlentitiesUTF8函数的具体用法?PHP smarty_modifier_htmlentitiesUTF8怎么用?PHP smarty_modifier_htmlentitiesUTF8使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


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

示例1: content_560ec4878bae26_01331015

    function content_560ec4878bae26_01331015($_smarty_tpl)
    {
        ?>

<div class="translatable">
<?php 
        $_smarty_tpl->tpl_vars['language'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['language']->_loop = false;
        $_from = $_smarty_tpl->tpl_vars['languages']->value;
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        foreach ($_from as $_smarty_tpl->tpl_vars['language']->key => $_smarty_tpl->tpl_vars['language']->value) {
            $_smarty_tpl->tpl_vars['language']->_loop = true;
            ?>
<div class="lang_<?php 
            echo $_smarty_tpl->tpl_vars['language']->value['id_lang'];
            ?>
" style="<?php 
            if (!$_smarty_tpl->tpl_vars['language']->value['is_default']) {
                ?>
display:none;<?php 
            }
            ?>
float: left;">
	<input size="30" type="text" id="<?php 
            echo $_smarty_tpl->tpl_vars['input_name']->value;
            ?>
_<?php 
            echo $_smarty_tpl->tpl_vars['language']->value['id_lang'];
            ?>
" 
	name="<?php 
            echo $_smarty_tpl->tpl_vars['input_name']->value;
            ?>
_<?php 
            echo $_smarty_tpl->tpl_vars['language']->value['id_lang'];
            ?>
"
		value="<?php 
            echo ($tmp = @smarty_modifier_htmlentitiesUTF8($_smarty_tpl->tpl_vars['input_value']->value[$_smarty_tpl->tpl_vars['language']->value['id_lang']])) === null || $tmp === '' ? '' : $tmp;
            ?>
"
		onkeyup="if (isArrowKey(event)) return ;updateFriendlyURL();" onblur="updateLinkRewrite();"/>
</div>
<?php 
        }
        ?>
</div>
<?php 
    }
开发者ID:jep004,项目名称:prestashop,代码行数:51,代码来源:a83bc8766064ec8cbab1dce14c13630707a95817.file.input_text_lang.tpl.php

示例2: content_56617d8cbfba17_13235252


//.........这里部分代码省略.........
			<?php 
        ob_start();
        if (!$_smarty_tpl->tpl_vars['product']->value->id || Configuration::get('PS_FORCE_FRIENDLY_PRODUCT')) {
            echo "copy2friendlyUrl";
        }
        $_tmp1 = ob_get_clean();
        echo $_smarty_tpl->getSubTemplate("controllers/products/input_text_lang.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array('languages' => $_smarty_tpl->tpl_vars['languages']->value, 'input_class' => (string) $_smarty_tpl->tpl_vars['class_input_ajax']->value . $_tmp1 . " updateCurrentText", 'input_value' => $_smarty_tpl->tpl_vars['product']->value->name, 'input_name' => "name", 'required' => true), 0);
        ?>

		</div>
	</div>

	<div class="form-group">
		<label class="control-label col-lg-3" for="reference">
			<span class="label-tooltip" data-toggle="tooltip"
			title="<?php 
        echo smartyTranslate(array('s' => 'Your internal reference code for this product.'), $_smarty_tpl);
        ?>
 <?php 
        echo smartyTranslate(array('s' => 'Allowed special characters:'), $_smarty_tpl);
        ?>
 .-_#\">
				<?php 
        echo $_smarty_tpl->tpl_vars['bullet_common_field']->value;
        ?>
 <?php 
        echo smartyTranslate(array('s' => 'Reference code'), $_smarty_tpl);
        ?>

			</span>
		</label>
		<div class="col-lg-5">
			<input type="text" id="reference" name="reference" value="<?php 
        echo smarty_modifier_htmlentitiesUTF8($_smarty_tpl->tpl_vars['product']->value->reference);
        ?>
" />
		</div>
	</div>

	<div class="form-group">
		<label class="control-label col-lg-3" for="ean13">
			<span class="label-tooltip" data-toggle="tooltip"
				title="<?php 
        echo smartyTranslate(array('s' => 'This type of product code is specific to Europe and Japan, but is widely used internationally. It is a superset of the UPC code: all products marked with an EAN will be accepted in North America.'), $_smarty_tpl);
        ?>
">
				<?php 
        echo $_smarty_tpl->tpl_vars['bullet_common_field']->value;
        ?>
 <?php 
        echo smartyTranslate(array('s' => 'EAN-13 or JAN barcode'), $_smarty_tpl);
        ?>

			</span>
		</label>
		<div class="col-lg-3">
			<input maxlength="13" type="text" id="ean13" name="ean13" value="<?php 
        echo smarty_modifier_htmlentitiesUTF8($_smarty_tpl->tpl_vars['product']->value->ean13);
        ?>
" />
		</div>
	</div>

	<div class="form-group">
		<label class="control-label col-lg-3" for="upc">
			<span class="label-tooltip" data-toggle="tooltip"
开发者ID:carloslastresDev,项目名称:HealthyTaiwan_UsingPrestaShop,代码行数:67,代码来源:217b64c3411f8cbf7b1352f6f8c81d0506f20b0c.file.informations.tpl.php

示例3: content_563b134fe91645_63568887


//.........这里部分代码省略.........
				<div class="col-lg-6">
					<select onchange="javascript:calcPrice(); unitPriceWithTax('unit');" name="id_tax_rules_group" id="id_tax_rules_group" <?php 
        if ($_smarty_tpl->tpl_vars['tax_exclude_taxe_option']->value) {
            ?>
disabled="disabled"<?php 
        }
        ?>
 >
						<option value="0"><?php 
        echo smartyTranslate(array('s' => 'No Tax'), $_smarty_tpl);
        ?>
</option>
					<?php 
        $_smarty_tpl->tpl_vars['tax_rules_group'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['tax_rules_group']->_loop = false;
        $_from = $_smarty_tpl->tpl_vars['tax_rules_groups']->value;
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        foreach ($_from as $_smarty_tpl->tpl_vars['tax_rules_group']->key => $_smarty_tpl->tpl_vars['tax_rules_group']->value) {
            $_smarty_tpl->tpl_vars['tax_rules_group']->_loop = true;
            ?>
						<option value="<?php 
            echo $_smarty_tpl->tpl_vars['tax_rules_group']->value['id_tax_rules_group'];
            ?>
" <?php 
            if ($_smarty_tpl->tpl_vars['product']->value->getIdTaxRulesGroup() == $_smarty_tpl->tpl_vars['tax_rules_group']->value['id_tax_rules_group']) {
                ?>
selected="selected"<?php 
            }
            ?>
 >
					<?php 
            echo smarty_modifier_htmlentitiesUTF8($_smarty_tpl->tpl_vars['tax_rules_group']->value['name']);
            ?>

						</option>
					<?php 
        }
        ?>
					</select>
				</div>
				<div class="col-lg-2">
					<a class="btn btn-link confirm_leave" href="<?php 
        echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getAdminLink('AdminTaxRulesGroup'), ENT_QUOTES, 'UTF-8', true);
        ?>
&amp;addtax_rules_group&amp;id_product=<?php 
        echo $_smarty_tpl->tpl_vars['product']->value->id;
        ?>
"<?php 
        if ($_smarty_tpl->tpl_vars['tax_exclude_taxe_option']->value) {
            ?>
 disabled="disabled"<?php 
        }
        ?>
>
						<i class="icon-plus-sign"></i> <?php 
        echo smartyTranslate(array('s' => 'Create new tax'), $_smarty_tpl);
        ?>
 <i class="icon-external-link-sign"></i>
					</a>
				</div>
			</div>
		</div>
	</div>
	<?php 
开发者ID:Rohit-jn,项目名称:hotelcommerce,代码行数:67,代码来源:a696f9c1bf55a57cd1332730545083e6aa9a4627.file.prices.tpl.php

示例4: content_55783dac526d02_20531306

    function content_55783dac526d02_20531306($_smarty_tpl)
    {
        ?>

<?php 
        $_smarty_tpl->tpl_vars['language'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['language']->_loop = false;
        $_from = $_smarty_tpl->tpl_vars['languages']->value;
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        foreach ($_from as $_smarty_tpl->tpl_vars['language']->key => $_smarty_tpl->tpl_vars['language']->value) {
            $_smarty_tpl->tpl_vars['language']->_loop = true;
            if (count($_smarty_tpl->tpl_vars['languages']->value) > 1) {
                ?>
<div class="translatable-field row lang-<?php 
                echo $_smarty_tpl->tpl_vars['language']->value['id_lang'];
                ?>
">
	<div class="col-lg-9">
<?php 
            }
            ?>
		<textarea id="<?php 
            echo $_smarty_tpl->tpl_vars['input_name']->value;
            ?>
_<?php 
            echo $_smarty_tpl->tpl_vars['language']->value['id_lang'];
            ?>
" name="<?php 
            echo $_smarty_tpl->tpl_vars['input_name']->value;
            ?>
_<?php 
            echo $_smarty_tpl->tpl_vars['language']->value['id_lang'];
            ?>
" class="<?php 
            if (isset($_smarty_tpl->tpl_vars['class']->value)) {
                echo $_smarty_tpl->tpl_vars['class']->value;
            } else {
                ?>
textarea-autosize<?php 
            }
            ?>
"><?php 
            if (isset($_smarty_tpl->tpl_vars['input_value']->value[$_smarty_tpl->tpl_vars['language']->value['id_lang']])) {
                echo smarty_modifier_htmlentitiesUTF8($_smarty_tpl->tpl_vars['input_value']->value[$_smarty_tpl->tpl_vars['language']->value['id_lang']]);
            }
            ?>
</textarea>
    <span class="counter" data-max="<?php 
            if (isset($_smarty_tpl->tpl_vars['max']->value)) {
                echo $_smarty_tpl->tpl_vars['max']->value;
            } else {
                ?>
none<?php 
            }
            ?>
"></span>
<?php 
            if (count($_smarty_tpl->tpl_vars['languages']->value) > 1) {
                ?>
	</div>
	<div class="col-lg-2">
		<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">
			<?php 
                echo $_smarty_tpl->tpl_vars['language']->value['iso_code'];
                ?>

			<span class="caret"></span>
		</button>
		<ul class="dropdown-menu">
			<?php 
                $_smarty_tpl->tpl_vars['language'] = new Smarty_Variable();
                $_smarty_tpl->tpl_vars['language']->_loop = false;
                $_from = $_smarty_tpl->tpl_vars['languages']->value;
                if (!is_array($_from) && !is_object($_from)) {
                    settype($_from, 'array');
                }
                foreach ($_from as $_smarty_tpl->tpl_vars['language']->key => $_smarty_tpl->tpl_vars['language']->value) {
                    $_smarty_tpl->tpl_vars['language']->_loop = true;
                    ?>
			<li><a href="javascript:tabs_manager.allow_hide_other_languages = false;hideOtherLanguage(<?php 
                    echo $_smarty_tpl->tpl_vars['language']->value['id_lang'];
                    ?>
);"><?php 
                    echo $_smarty_tpl->tpl_vars['language']->value['name'];
                    ?>
</a></li>
			<?php 
                }
                ?>
		</ul>
	</div>
</div>
<?php 
            }
        }
        ?>

<script type="text/javascript">
//.........这里部分代码省略.........
开发者ID:jock91,项目名称:presta-manon,代码行数:101,代码来源:80ad6baf343ae71d6a967832d04f90b80f083fe4.file.textarea_lang.tpl.php

示例5: content_530ff8fa677fe3_24615047


//.........这里部分代码省略.........
				<div class="col-lg-6">
					<select onChange="javascript:calcPrice(); unitPriceWithTax('unit');" name="id_tax_rules_group" id="id_tax_rules_group" <?php 
        if ($_smarty_tpl->tpl_vars['tax_exclude_taxe_option']->value) {
            ?>
disabled="disabled"<?php 
        }
        ?>
 >
						<option value="0"><?php 
        echo smartyTranslate(array('s' => 'No Tax'), $_smarty_tpl);
        ?>
</option>
					<?php 
        $_smarty_tpl->tpl_vars['tax_rules_group'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['tax_rules_group']->_loop = false;
        $_from = $_smarty_tpl->tpl_vars['tax_rules_groups']->value;
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        foreach ($_from as $_smarty_tpl->tpl_vars['tax_rules_group']->key => $_smarty_tpl->tpl_vars['tax_rules_group']->value) {
            $_smarty_tpl->tpl_vars['tax_rules_group']->_loop = true;
            ?>
						<option value="<?php 
            echo $_smarty_tpl->tpl_vars['tax_rules_group']->value['id_tax_rules_group'];
            ?>
" <?php 
            if ($_smarty_tpl->tpl_vars['product']->value->getIdTaxRulesGroup() == $_smarty_tpl->tpl_vars['tax_rules_group']->value['id_tax_rules_group']) {
                ?>
selected="selected"<?php 
            }
            ?>
 >
					<?php 
            echo smarty_modifier_htmlentitiesUTF8($_smarty_tpl->tpl_vars['tax_rules_group']->value['name']);
            ?>

						</option>
					<?php 
        }
        ?>
					</select>
				</div>
				<div class="col-lg-2">
					<a class="btn btn-link confirm_leave" href="<?php 
        echo smarty_modifier_escape($_smarty_tpl->tpl_vars['link']->value->getAdminLink('AdminTaxRulesGroup'), 'html', 'UTF-8');
        ?>
&addtax_rules_group&id_product=<?php 
        echo $_smarty_tpl->tpl_vars['product']->value->id;
        ?>
" <?php 
        if ($_smarty_tpl->tpl_vars['tax_exclude_taxe_option']->value) {
            ?>
disabled="disabled"<?php 
        }
        ?>
>
						<i class="icon-plus-sign"></i>  <?php 
        echo smartyTranslate(array('s' => 'Create new tax'), $_smarty_tpl);
        ?>
 <i class="icon-external-link-sign"></i>
					</a>
				</div>
			</div>
		</div>
	</div>
开发者ID:dev-lav,项目名称:htdocs,代码行数:66,代码来源:ca49593fc35ac3eda7ad1554098208ad503d2e43.file.prices.tpl.php

示例6: content_56556f8bdc7414_15352542

    function content_56556f8bdc7414_15352542($_smarty_tpl)
    {
        ?>

<?php 
        $_smarty_tpl->tpl_vars['language'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['language']->_loop = false;
        $_from = $_smarty_tpl->tpl_vars['languages']->value;
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        foreach ($_from as $_smarty_tpl->tpl_vars['language']->key => $_smarty_tpl->tpl_vars['language']->value) {
            $_smarty_tpl->tpl_vars['language']->_loop = true;
            ?>
	<?php 
            if (count($_smarty_tpl->tpl_vars['languages']->value) > 1) {
                ?>
		<div class="translatable-field row lang-<?php 
                echo $_smarty_tpl->tpl_vars['language']->value['id_lang'];
                ?>
">
			<div class="col-lg-9">
	<?php 
            }
            ?>
	<?php 
            if (isset($_smarty_tpl->tpl_vars['maxchar']->value) && $_smarty_tpl->tpl_vars['maxchar']->value) {
                ?>
				<div class="input-group">
					<span id="<?php 
                if (isset($_smarty_tpl->tpl_vars['input_id']->value)) {
                    echo $_smarty_tpl->tpl_vars['input_id']->value;
                    ?>
_<?php 
                    echo $_smarty_tpl->tpl_vars['language']->value['id_lang'];
                } else {
                    echo $_smarty_tpl->tpl_vars['input_name']->value;
                    ?>
_<?php 
                    echo $_smarty_tpl->tpl_vars['language']->value['id_lang'];
                }
                ?>
_counter" class="input-group-addon">
						<span class="text-count-down"><?php 
                echo intval($_smarty_tpl->tpl_vars['maxchar']->value);
                ?>
</span>
					</span>
	<?php 
            }
            ?>
					<textarea id="<?php 
            echo $_smarty_tpl->tpl_vars['input_name']->value;
            ?>
_<?php 
            echo $_smarty_tpl->tpl_vars['language']->value['id_lang'];
            ?>
" name="<?php 
            echo $_smarty_tpl->tpl_vars['input_name']->value;
            ?>
_<?php 
            echo $_smarty_tpl->tpl_vars['language']->value['id_lang'];
            ?>
" class="<?php 
            if (isset($_smarty_tpl->tpl_vars['class']->value)) {
                echo $_smarty_tpl->tpl_vars['class']->value;
            } else {
                ?>
textarea-autosize<?php 
            }
            ?>
"<?php 
            if (isset($_smarty_tpl->tpl_vars['maxlength']->value) && $_smarty_tpl->tpl_vars['maxlength']->value) {
                ?>
 maxlength="<?php 
                echo intval($_smarty_tpl->tpl_vars['maxlength']->value);
                ?>
"<?php 
            }
            if (isset($_smarty_tpl->tpl_vars['maxchar']->value) && $_smarty_tpl->tpl_vars['maxchar']->value) {
                ?>
 data-maxchar="<?php 
                echo intval($_smarty_tpl->tpl_vars['maxchar']->value);
                ?>
"<?php 
            }
            ?>
><?php 
            if (isset($_smarty_tpl->tpl_vars['input_value']->value[$_smarty_tpl->tpl_vars['language']->value['id_lang']])) {
                echo smarty_modifier_htmlentitiesUTF8($_smarty_tpl->tpl_vars['input_value']->value[$_smarty_tpl->tpl_vars['language']->value['id_lang']]);
            }
            ?>
</textarea>
					<span class="counter" data-max="<?php 
            if (isset($_smarty_tpl->tpl_vars['max']->value)) {
                echo intval($_smarty_tpl->tpl_vars['max']->value);
            }
            if (isset($_smarty_tpl->tpl_vars['maxlength']->value)) {
                echo intval($_smarty_tpl->tpl_vars['maxlength']->value);
            }
//.........这里部分代码省略.........
开发者ID:ekachandrasetiawan,项目名称:SupraShop,代码行数:101,代码来源:b69134d6ad71fdde49d1e6d6b725f3d4f1c25f3a.file.textarea_lang.tpl.php

示例7: content_560ec488176005_97394311

    function content_560ec488176005_97394311($_smarty_tpl)
    {
        if (!is_callable('smarty_modifier_replace')) {
            include '/Applications/XAMPP/xamppfiles/htdocs/prestashop/tools/smarty/plugins/modifier.replace.php';
        }
        ?>

<div class="translatable">
<?php 
        $_smarty_tpl->tpl_vars['language'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['language']->_loop = false;
        $_from = $_smarty_tpl->tpl_vars['languages']->value;
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        foreach ($_from as $_smarty_tpl->tpl_vars['language']->key => $_smarty_tpl->tpl_vars['language']->value) {
            $_smarty_tpl->tpl_vars['language']->_loop = true;
            ?>
<div class="lang_<?php 
            echo $_smarty_tpl->tpl_vars['language']->value['id_lang'];
            ?>
" style="<?php 
            if (!$_smarty_tpl->tpl_vars['language']->value['is_default']) {
                ?>
display:none;<?php 
            }
            ?>
float: left;">
	<textarea cols="100" rows="10" id="<?php 
            echo $_smarty_tpl->tpl_vars['input_name']->value;
            ?>
_<?php 
            echo $_smarty_tpl->tpl_vars['language']->value['id_lang'];
            ?>
" 
		name="<?php 
            echo $_smarty_tpl->tpl_vars['input_name']->value;
            ?>
_<?php 
            echo $_smarty_tpl->tpl_vars['language']->value['id_lang'];
            ?>
" 
		class="autoload_rte" ><?php 
            if (isset($_smarty_tpl->tpl_vars['input_value']->value[$_smarty_tpl->tpl_vars['language']->value['id_lang']])) {
                echo smarty_modifier_replace(smarty_modifier_replace(smarty_modifier_htmlentitiesUTF8($_smarty_tpl->tpl_vars['input_value']->value[$_smarty_tpl->tpl_vars['language']->value['id_lang']]), '\\r\\n', ''), '\\&quot;', '&quot;');
            }
            ?>
</textarea>
	<span class="counter" max="<?php 
            if (isset($_smarty_tpl->tpl_vars['max']->value)) {
                echo $_smarty_tpl->tpl_vars['max']->value;
            } else {
                ?>
none<?php 
            }
            ?>
"></span>
	<span class="hint"><?php 
            echo ($tmp = @$_smarty_tpl->tpl_vars['hint']->value) === null || $tmp === '' ? '' : $tmp;
            ?>
<span class="hint-pointer">&nbsp;</span></span>
</div>
<?php 
        }
        ?>
</div>
<script type="text/javascript">
	var iso = '<?php 
        echo $_smarty_tpl->tpl_vars['iso_tiny_mce']->value;
        ?>
';
	var pathCSS = '<?php 
        echo @constant('_THEME_CSS_DIR_');
        ?>
';
	var ad = '<?php 
        echo $_smarty_tpl->tpl_vars['ad']->value;
        ?>
';
</script>
<?php 
    }
开发者ID:jep004,项目名称:prestashop,代码行数:82,代码来源:01dde2b01e7305cae9228c3dcba23af85e0d426a.file.textarea_lang.tpl.php

示例8: content_565952b06b80d9_07417104

    function content_565952b06b80d9_07417104($_smarty_tpl)
    {
        ?>

<?php 
        $_smarty_tpl->tpl_vars['language'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['language']->_loop = false;
        $_from = $_smarty_tpl->tpl_vars['languages']->value;
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        foreach ($_from as $_smarty_tpl->tpl_vars['language']->key => $_smarty_tpl->tpl_vars['language']->value) {
            $_smarty_tpl->tpl_vars['language']->_loop = true;
            ?>
	<?php 
            if (count($_smarty_tpl->tpl_vars['languages']->value) > 1) {
                ?>
	<div class="translatable-field row lang-<?php 
                echo $_smarty_tpl->tpl_vars['language']->value['id_lang'];
                ?>
">
		<div class="col-lg-9">
	<?php 
            }
            ?>
		<?php 
            if (isset($_smarty_tpl->tpl_vars['maxchar']->value)) {
                ?>
		<div class="input-group">
			<span id="<?php 
                echo $_smarty_tpl->tpl_vars['input_name']->value;
                ?>
_<?php 
                echo $_smarty_tpl->tpl_vars['language']->value['id_lang'];
                ?>
_counter" class="input-group-addon">
				<span class="text-count-down"><?php 
                echo $_smarty_tpl->tpl_vars['maxchar']->value;
                ?>
</span>
			</span>
			<?php 
            }
            ?>
			<input type="text"
			id="<?php 
            echo $_smarty_tpl->tpl_vars['input_name']->value;
            ?>
_<?php 
            echo $_smarty_tpl->tpl_vars['language']->value['id_lang'];
            ?>
"
			class="form-control <?php 
            if (isset($_smarty_tpl->tpl_vars['input_class']->value)) {
                echo $_smarty_tpl->tpl_vars['input_class']->value;
                ?>
 <?php 
            }
            ?>
"
			name="<?php 
            echo $_smarty_tpl->tpl_vars['input_name']->value;
            ?>
_<?php 
            echo $_smarty_tpl->tpl_vars['language']->value['id_lang'];
            ?>
"
			value="<?php 
            echo ($tmp = @smarty_modifier_htmlentitiesUTF8($_smarty_tpl->tpl_vars['input_value']->value[$_smarty_tpl->tpl_vars['language']->value['id_lang']])) === null || $tmp === '' ? '' : $tmp;
            ?>
"
			onkeyup="if (isArrowKey(event)) return ;updateFriendlyURL();"
			onblur="updateLinkRewrite();"
			<?php 
            if (isset($_smarty_tpl->tpl_vars['required']->value)) {
                ?>
 required="required"<?php 
            }
            ?>
			<?php 
            if (isset($_smarty_tpl->tpl_vars['maxchar']->value)) {
                ?>
 data-maxchar="<?php 
                echo $_smarty_tpl->tpl_vars['maxchar']->value;
                ?>
"<?php 
            }
            ?>
			<?php 
            if (isset($_smarty_tpl->tpl_vars['maxlength']->value)) {
                ?>
 maxlength="<?php 
                echo $_smarty_tpl->tpl_vars['maxlength']->value;
                ?>
"<?php 
            }
            ?>
 />
			<?php 
            if (isset($_smarty_tpl->tpl_vars['maxchar']->value)) {
//.........这里部分代码省略.........
开发者ID:vuduykhuong1412,项目名称:GitHub,代码行数:101,代码来源:5ca65469bfb8eec5d32d6f7ef4dca33bb9f12830.file.input_text_lang.tpl.php

示例9: content_5355649bb275a0_78062842

    function content_5355649bb275a0_78062842($_smarty_tpl)
    {
        ?>

<?php 
        $_smarty_tpl->tpl_vars['language'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['language']->_loop = false;
        $_from = $_smarty_tpl->tpl_vars['languages']->value;
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        foreach ($_from as $_smarty_tpl->tpl_vars['language']->key => $_smarty_tpl->tpl_vars['language']->value) {
            $_smarty_tpl->tpl_vars['language']->_loop = true;
            ?>
	<?php 
            if (count($_smarty_tpl->tpl_vars['languages']->value) > 1) {
                ?>
	<div class="translatable-field row lang-<?php 
                echo $_smarty_tpl->tpl_vars['language']->value['id_lang'];
                ?>
">
		<div class="col-lg-9">
	<?php 
            }
            ?>
		<?php 
            if (isset($_smarty_tpl->tpl_vars['maxchar']->value)) {
                ?>
		<div class="input-group">
			<span id="<?php 
                echo $_smarty_tpl->tpl_vars['input_name']->value;
                ?>
_<?php 
                echo $_smarty_tpl->tpl_vars['language']->value['id_lang'];
                ?>
_counter" class="input-group-addon">
				<span class="text-count-down"><?php 
                echo $_smarty_tpl->tpl_vars['maxchar']->value;
                ?>
</span>
			</span>
			<?php 
            }
            ?>
			<input type="text"
			id="<?php 
            echo $_smarty_tpl->tpl_vars['input_name']->value;
            ?>
_<?php 
            echo $_smarty_tpl->tpl_vars['language']->value['id_lang'];
            ?>
"
			<?php 
            if (isset($_smarty_tpl->tpl_vars['input_class']->value)) {
                ?>
class="<?php 
                echo $_smarty_tpl->tpl_vars['input_class']->value;
                ?>
"<?php 
            }
            ?>
			name="<?php 
            echo $_smarty_tpl->tpl_vars['input_name']->value;
            ?>
_<?php 
            echo $_smarty_tpl->tpl_vars['language']->value['id_lang'];
            ?>
"
			value="<?php 
            echo ($tmp = @smarty_modifier_htmlentitiesUTF8($_smarty_tpl->tpl_vars['input_value']->value[$_smarty_tpl->tpl_vars['language']->value['id_lang']])) === null || $tmp === '' ? '' : $tmp;
            ?>
"
			onkeyup="if (isArrowKey(event)) return ;updateFriendlyURL();"
			onblur="updateLinkRewrite();"
			<?php 
            if (isset($_smarty_tpl->tpl_vars['maxchar']->value)) {
                ?>
 data-maxchar="<?php 
                echo $_smarty_tpl->tpl_vars['maxchar']->value;
                ?>
"<?php 
            }
            ?>
			<?php 
            if (isset($_smarty_tpl->tpl_vars['maxlength']->value)) {
                ?>
 maxlength="<?php 
                echo $_smarty_tpl->tpl_vars['maxlength']->value;
                ?>
"<?php 
            }
            ?>
 />
			<?php 
            if (isset($_smarty_tpl->tpl_vars['maxchar']->value)) {
                ?>
		</div>
		<?php 
            }
            ?>
//.........这里部分代码省略.........
开发者ID:dev-lav,项目名称:htdocs,代码行数:101,代码来源:fcb8f9402918a063fcf9f422763c373b7f730783.file.input_text_lang.tpl.php

示例10: content_55bb02f0e46041_35229835


//.........这里部分代码省略.........
      <script type="text/javascript">
        $().ready(function () {
        var input_id = 'tags_<?php 
            echo $_smarty_tpl->tpl_vars['language']->value['id_lang'];
            ?>
';
        $('#'+input_id).tagify({delimiters: [13,44], addTagPrompt: '<?php 
            echo smartyTranslate(array('s' => 'Add tag', 'mod' => 'agilemultipleseller', 'js' => 1), $_smarty_tpl);
            ?>
'});
        $('#product_form').submit( function() {
        $(this).find('#'+input_id).val($('#'+input_id).tagify('serialize'));
        });
        });
      </script>
      
      <?php 
            if (count($_smarty_tpl->tpl_vars['languages']->value) > 1) {
                ?>
      <div class="translatable-field lang-<?php 
                echo $_smarty_tpl->tpl_vars['language']->value['id_lang'];
                ?>
">
        <div class="col-lg-9">
          <?php 
            }
            ?>
          <input type="text" id="tags_<?php 
            echo $_smarty_tpl->tpl_vars['language']->value['id_lang'];
            ?>
" class="tagify updateCurrentText" name="tags_<?php 
            echo $_smarty_tpl->tpl_vars['language']->value['id_lang'];
            ?>
" value="<?php 
            echo smarty_modifier_htmlentitiesUTF8($_smarty_tpl->tpl_vars['product']->value->getTags($_smarty_tpl->tpl_vars['language']->value['id_lang'], true));
            ?>
" />
          <?php 
            if (count($_smarty_tpl->tpl_vars['languages']->value) > 1) {
                ?>
        </div>
        
      </div>
      <?php 
            }
            ?>
      <?php 
        }
        ?>
      <?php 
        if (count($_smarty_tpl->tpl_vars['languages']->value) > 1) {
            ?>
    </div>
    <?php 
        }
        ?>
  </div>
</div>

<script type="text/javascript">
$(document).ready(function() {

  $('#saveInfo').click(function() {
    alert("<?php 
        echo smartyTranslate(array('s' => 'Please upload your image after saving information.', 'mod' => 'agilemultipleseller'), $_smarty_tpl);
        ?>
");
  });

});

</script>

  


<div class="form-group agile-align-center">
    <button id="saveInfo" type="submit" class="agile-btn agile-btn-default" name="submitProduct" value="<?php 
        echo smartyTranslate(array('s' => 'Save', 'mod' => 'agilemultipleseller'), $_smarty_tpl);
        ?>
">
    <i class="icon-save "></i>&nbsp;<span><?php 
        echo smartyTranslate(array('s' => 'Save', 'mod' => 'agilemultipleseller'), $_smarty_tpl);
        ?>
</span></button >

   
   </div>
   
    <script type="text/javascript">
      hideOtherLanguage(<?php 
        echo $_smarty_tpl->tpl_vars['id_language']->value;
        ?>
);
    </script>

</div> <!-- product-informations -->

<?php 
    }
开发者ID:ecssjapan,项目名称:guiding-you-afteropen,代码行数:101,代码来源:231143f645c523092a877f32d7570767bc4ebca7.file.informations.tpl.php

示例11: content_530ff8fac4f9b6_99983086

    function content_530ff8fac4f9b6_99983086($_smarty_tpl)
    {
        ?>

<?php 
        $_smarty_tpl->tpl_vars['language'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['language']->_loop = false;
        $_from = $_smarty_tpl->tpl_vars['languages']->value;
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        foreach ($_from as $_smarty_tpl->tpl_vars['language']->key => $_smarty_tpl->tpl_vars['language']->value) {
            $_smarty_tpl->tpl_vars['language']->_loop = true;
            if (count($_smarty_tpl->tpl_vars['languages']->value) > 1) {
                ?>
<div class="translatable-field lang-<?php 
                echo $_smarty_tpl->tpl_vars['language']->value['id_lang'];
                ?>
">
	<div class="col-lg-9">
<?php 
            }
            ?>
		<textarea
			id="<?php 
            echo $_smarty_tpl->tpl_vars['input_name']->value;
            ?>
_<?php 
            echo $_smarty_tpl->tpl_vars['language']->value['id_lang'];
            ?>
"
			name="<?php 
            echo $_smarty_tpl->tpl_vars['input_name']->value;
            ?>
_<?php 
            echo $_smarty_tpl->tpl_vars['language']->value['id_lang'];
            ?>
"
			class="<?php 
            if (isset($_smarty_tpl->tpl_vars['class']->value)) {
                echo $_smarty_tpl->tpl_vars['class']->value;
            } else {
                ?>
textarea-autosize<?php 
            }
            ?>
"><?php 
            if (isset($_smarty_tpl->tpl_vars['input_value']->value[$_smarty_tpl->tpl_vars['language']->value['id_lang']])) {
                echo smarty_modifier_htmlentitiesUTF8($_smarty_tpl->tpl_vars['input_value']->value[$_smarty_tpl->tpl_vars['language']->value['id_lang']]);
            }
            ?>
</textarea>
<?php 
            if (count($_smarty_tpl->tpl_vars['languages']->value) > 1) {
                ?>
	</div>
	<div class="col-lg-2">
		<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">
			<?php 
                echo $_smarty_tpl->tpl_vars['language']->value['iso_code'];
                ?>

			<span class="caret"></span>
		</button>
		<ul class="dropdown-menu">
			<?php 
                $_smarty_tpl->tpl_vars['language'] = new Smarty_Variable();
                $_smarty_tpl->tpl_vars['language']->_loop = false;
                $_from = $_smarty_tpl->tpl_vars['languages']->value;
                if (!is_array($_from) && !is_object($_from)) {
                    settype($_from, 'array');
                }
                foreach ($_from as $_smarty_tpl->tpl_vars['language']->key => $_smarty_tpl->tpl_vars['language']->value) {
                    $_smarty_tpl->tpl_vars['language']->_loop = true;
                    ?>
			<li><a href="javascript:hideOtherLanguage(<?php 
                    echo $_smarty_tpl->tpl_vars['language']->value['id_lang'];
                    ?>
);"><?php 
                    echo $_smarty_tpl->tpl_vars['language']->value['name'];
                    ?>
</a></li>
			<?php 
                }
                ?>
		</ul>
	</div>
</div>
<?php 
            }
            ?>
<span class="counter" max="<?php 
            if (isset($_smarty_tpl->tpl_vars['max']->value)) {
                echo $_smarty_tpl->tpl_vars['max']->value;
            } else {
                ?>
none<?php 
            }
            ?>
"></span>
//.........这里部分代码省略.........
开发者ID:dev-lav,项目名称:htdocs,代码行数:101,代码来源:80ad6baf343ae71d6a967832d04f90b80f083fe4.file.textarea_lang.tpl.php

示例12: content_56671959af96f7_49930693


//.........这里部分代码省略.........
            $_smarty_tpl->tpl_vars['language']->_loop = true;
            ?>
				<div class="lang_<?php 
            echo $_smarty_tpl->tpl_vars['language']->value['id_lang'];
            ?>
" style="<?php 
            if (!$_smarty_tpl->tpl_vars['language']->value['is_default']) {
                ?>
display: none;<?php 
            }
            ?>
 float: left;">
						<input class="<?php 
            echo $_smarty_tpl->tpl_vars['class_input_ajax']->value;
            if (!$_smarty_tpl->tpl_vars['product']->value->id) {
                ?>
copy2friendlyUrl<?php 
            }
            ?>
 updateCurrentText" size="43" type="text" <?php 
            if (!$_smarty_tpl->tpl_vars['product']->value->id) {
                ?>
disabled="disabled"<?php 
            }
            ?>
						id="name_<?php 
            echo $_smarty_tpl->tpl_vars['language']->value['id_lang'];
            ?>
" name="name_<?php 
            echo $_smarty_tpl->tpl_vars['language']->value['id_lang'];
            ?>
"
						value="<?php 
            echo ($tmp = @smarty_modifier_htmlentitiesUTF8($_smarty_tpl->tpl_vars['product']->value->name[$_smarty_tpl->tpl_vars['language']->value['id_lang']])) === null || $tmp === '' ? '' : $tmp;
            ?>
"/><sup> *</sup>
					<span class="hint" name="help_box"><?php 
            echo smartyTranslate(array('s' => 'Invalid characters:'), $_smarty_tpl);
            ?>
 <>;=#{}<span class="hint-pointer">&nbsp;</span>
					</span>
				</div>
			<?php 
        }
        ?>
			</td>
		</tr>
		<tr>
			<td class="col-left"><label><?php 
        echo $_smarty_tpl->tpl_vars['bullet_common_field']->value;
        ?>
 <?php 
        echo smartyTranslate(array('s' => 'Reference:'), $_smarty_tpl);
        ?>
</label></td>
			<td style="padding-bottom:5px;">
				<input size="55" type="text" name="reference" value="<?php 
        echo smarty_modifier_htmlentitiesUTF8($_smarty_tpl->tpl_vars['product']->value->reference);
        ?>
" style="width: 130px; margin-right: 44px;" />
				<span class="hint" name="help_box"><?php 
        echo smartyTranslate(array('s' => 'Special characters allowed:'), $_smarty_tpl);
        ?>
.-_#\<span class="hint-pointer">&nbsp;</span></span>
			</td>
		</tr>
开发者ID:h0n24,项目名称:leodig,代码行数:67,代码来源:029a4b0275a939036aa5f993554451662a86ce8e.file.informations.tpl.php

示例13: content_55bb02e518d4d2_40876009

    function content_55bb02e518d4d2_40876009($_smarty_tpl)
    {
        ?>

<?php 
        $_smarty_tpl->tpl_vars['language'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['language']->_loop = false;
        $_from = $_smarty_tpl->tpl_vars['languages']->value;
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        foreach ($_from as $_smarty_tpl->tpl_vars['language']->key => $_smarty_tpl->tpl_vars['language']->value) {
            $_smarty_tpl->tpl_vars['language']->_loop = true;
            ?>
	<div class="translatable-field row lang-<?php 
            echo $_smarty_tpl->tpl_vars['language']->value['id_lang'];
            ?>
">
		<div class="agile-col-sm-9 agile-col-md-9 agile-col-lg-9 agile-col-xl-9">
			<?php 
            if (isset($_smarty_tpl->tpl_vars['maxchar']->value)) {
                ?>
			<div class="input-group">
				<span id="<?php 
                echo $_smarty_tpl->tpl_vars['input_name']->value;
                ?>
_<?php 
                echo $_smarty_tpl->tpl_vars['language']->value['id_lang'];
                ?>
_counter" class="input-group-addon">
					<span class="text-count-down"><?php 
                echo $_smarty_tpl->tpl_vars['maxchar']->value;
                ?>
</span>
				</span>
				<?php 
            }
            ?>
				<input type="text"
				id="<?php 
            echo $_smarty_tpl->tpl_vars['input_name']->value;
            ?>
_<?php 
            echo $_smarty_tpl->tpl_vars['language']->value['id_lang'];
            ?>
"
				<?php 
            if (isset($_smarty_tpl->tpl_vars['input_class']->value)) {
                ?>
class="<?php 
                echo $_smarty_tpl->tpl_vars['input_class']->value;
                ?>
"<?php 
            }
            ?>
				name="<?php 
            echo $_smarty_tpl->tpl_vars['input_name']->value;
            ?>
_<?php 
            echo $_smarty_tpl->tpl_vars['language']->value['id_lang'];
            ?>
"
				value="<?php 
            echo ($tmp = @smarty_modifier_htmlentitiesUTF8($_smarty_tpl->tpl_vars['input_value']->value[$_smarty_tpl->tpl_vars['language']->value['id_lang']])) === null || $tmp === '' ? '' : $tmp;
            ?>
"
				onkeyup="if (isArrowKey(event)) return ;updateFriendlyURL();"
				onblur="updateLinkRewrite();"
				<?php 
            if (isset($_smarty_tpl->tpl_vars['maxchar']->value)) {
                ?>
 data-maxchar="<?php 
                echo $_smarty_tpl->tpl_vars['maxchar']->value;
                ?>
"<?php 
            }
            ?>
				<?php 
            if (isset($_smarty_tpl->tpl_vars['maxlength']->value)) {
                ?>
 maxlength="<?php 
                echo $_smarty_tpl->tpl_vars['maxlength']->value;
                ?>
"<?php 
            }
            ?>
 />
				<?php 
            if (isset($_smarty_tpl->tpl_vars['maxchar']->value)) {
                ?>
			</div>
			<?php 
            }
            ?>
		</div>
	
	</div>
<?php 
        }
        if (isset($_smarty_tpl->tpl_vars['maxchar']->value)) {
//.........这里部分代码省略.........
开发者ID:ecssjapan,项目名称:guiding-you-afteropen,代码行数:101,代码来源:7d751e074e64554684db565e241dcc6ee561b9a1.file.input_text_lang.tpl.php

示例14: content_55bb02f101dfa6_46735548

    function content_55bb02f101dfa6_46735548($_smarty_tpl)
    {
        ?>

<?php 
        $_smarty_tpl->tpl_vars['language'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['language']->_loop = false;
        $_from = $_smarty_tpl->tpl_vars['languages']->value;
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        foreach ($_from as $_smarty_tpl->tpl_vars['language']->key => $_smarty_tpl->tpl_vars['language']->value) {
            $_smarty_tpl->tpl_vars['language']->_loop = true;
            ?>
<div class="translatable-field lang-<?php 
            echo $_smarty_tpl->tpl_vars['language']->value['id_lang'];
            ?>
">
	<div class="agile-col-sm-9 agile-col-md-9 agile-col-lg-9 agile-col-xl-9">
		<textarea
			id="<?php 
            echo $_smarty_tpl->tpl_vars['input_name']->value;
            ?>
_<?php 
            echo $_smarty_tpl->tpl_vars['language']->value['id_lang'];
            ?>
"
			name="<?php 
            echo $_smarty_tpl->tpl_vars['input_name']->value;
            ?>
_<?php 
            echo $_smarty_tpl->tpl_vars['language']->value['id_lang'];
            ?>
"
			<?php 
            if (isset($_smarty_tpl->tpl_vars['default_row']->value) && $_smarty_tpl->tpl_vars['default_row']->value > 0) {
                ?>
 row="<?php 
                echo $_smarty_tpl->tpl_vars['default_row']->value;
                ?>
" <?php 
            }
            ?>
			class="<?php 
            if (isset($_smarty_tpl->tpl_vars['autosize_js']->value)) {
                ?>
textarea-autosize<?php 
            } else {
                echo $_smarty_tpl->tpl_vars['class']->value;
            }
            ?>
"><?php 
            if (isset($_smarty_tpl->tpl_vars['input_value']->value[$_smarty_tpl->tpl_vars['language']->value['id_lang']])) {
                echo smarty_modifier_htmlentitiesUTF8($_smarty_tpl->tpl_vars['input_value']->value[$_smarty_tpl->tpl_vars['language']->value['id_lang']]);
            }
            ?>
</textarea>
	</div>

</div>
<span class="counter" max="<?php 
            if (isset($_smarty_tpl->tpl_vars['max']->value)) {
                echo $_smarty_tpl->tpl_vars['max']->value;
            } else {
                ?>
none<?php 
            }
            ?>
"></span>
<?php 
        }
    }
开发者ID:ecssjapan,项目名称:guiding-you-afteropen,代码行数:72,代码来源:0cfcf594a3081d9db4270bfed5aba4661e62c78c.file.textarea_lang.tpl.php

示例15: content_529f84f1946298_05637167

    function content_529f84f1946298_05637167($_smarty_tpl)
    {
        ?>

<div class="translatable">
<?php 
        $_smarty_tpl->tpl_vars['language'] = new Smarty_Variable();
        $_smarty_tpl->tpl_vars['language']->_loop = false;
        $_from = $_smarty_tpl->tpl_vars['languages']->value;
        if (!is_array($_from) && !is_object($_from)) {
            settype($_from, 'array');
        }
        foreach ($_from as $_smarty_tpl->tpl_vars['language']->key => $_smarty_tpl->tpl_vars['language']->value) {
            $_smarty_tpl->tpl_vars['language']->_loop = true;
            ?>
<div class="lang_<?php 
            echo $_smarty_tpl->tpl_vars['language']->value['id_lang'];
            ?>
" style="<?php 
            if (!$_smarty_tpl->tpl_vars['language']->value['is_default']) {
                ?>
display:none;<?php 
            }
            ?>
float: left;">
	<textarea cols="100" rows="10" id="<?php 
            echo $_smarty_tpl->tpl_vars['input_name']->value;
            ?>
_<?php 
            echo $_smarty_tpl->tpl_vars['language']->value['id_lang'];
            ?>
" 
		name="<?php 
            echo $_smarty_tpl->tpl_vars['input_name']->value;
            ?>
_<?php 
            echo $_smarty_tpl->tpl_vars['language']->value['id_lang'];
            ?>
" 
		class="autoload_rte" ><?php 
            if (isset($_smarty_tpl->tpl_vars['input_value']->value[$_smarty_tpl->tpl_vars['language']->value['id_lang']])) {
                echo smarty_modifier_htmlentitiesUTF8($_smarty_tpl->tpl_vars['input_value']->value[$_smarty_tpl->tpl_vars['language']->value['id_lang']]);
            }
            ?>
</textarea>
	<span class="counter" max="<?php 
            if (isset($_smarty_tpl->tpl_vars['max']->value)) {
                echo $_smarty_tpl->tpl_vars['max']->value;
            } else {
                ?>
none<?php 
            }
            ?>
"></span>
	<span class="hint"><?php 
            echo ($tmp = @$_smarty_tpl->tpl_vars['hint']->value) === null || $tmp === '' ? '' : $tmp;
            ?>
<span class="hint-pointer">&nbsp;</span></span>
</div>
<?php 
        }
        ?>
</div>
<script type="text/javascript">
	var iso = '<?php 
        echo $_smarty_tpl->tpl_vars['iso_tiny_mce']->value;
        ?>
';
	var pathCSS = '<?php 
        echo @constant('_THEME_CSS_DIR_');
        ?>
';
	var ad = '<?php 
        echo $_smarty_tpl->tpl_vars['ad']->value;
        ?>
';
</script>
<?php 
    }
开发者ID:FAVHYAN,项目名称:a3workout,代码行数:79,代码来源:f65b40ae2556a2eaafd38b9a3cd0dcdb2e8db881.file.textarea_lang.tpl.php


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