本文整理汇总了PHP中smarty_function_textfield函数的典型用法代码示例。如果您正苦于以下问题:PHP smarty_function_textfield函数的具体用法?PHP smarty_function_textfield怎么用?PHP smarty_function_textfield使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了smarty_function_textfield函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: smarty_function_toolTip
</label>
</p>
<div class="stockCount">
<p <?php
if (is_array($_tmp = $this->_tpl_vars['form']) ? $this->_run_mod_handler('isRequired', true, $_tmp, 'stockCount') : smarty_modifier_isRequired($_tmp, 'stockCount')) {
?>
class="required"<?php
}
?>
>
<label for="product_stockCount_<?php
echo $this->_tpl_vars['cat'];
?>
_<?php
echo $this->_tpl_vars['product']['ID'];
?>
"><?php
echo smarty_function_toolTip(array('label' => '_items_in_stock'), $this);
?>
:</label>
<fieldset class="error">
<?php
echo smarty_function_textfield(array('name' => 'stockCount', 'class' => 'number', 'id' => "product_stockCount_" . $this->_tpl_vars['cat'] . "_" . $this->_tpl_vars['product']['ID']), $this);
?>
<div class="errorText hidden"></div>
</fieldset>
</p>
</div>
</fieldset>
示例2: smarty_function_textfield
?>
<?php
echo smarty_function_textfield(array('id' => "massForm_shippingWeight_" . $this->_tpl_vars['categoryID'], 'class' => 'text number', 'name' => 'set_shippingWeight'), $this);
?>
<?php
echo smarty_function_textfield(array('id' => "set_manufacturer_" . $this->_tpl_vars['categoryID'], 'name' => 'manufacturer', 'class' => 'text', 'autocomplete' => "controller=backend.manufacturer field=manufacturer"), $this);
?>
<?php
echo smarty_function_textfield(array('id' => "set_keywords_" . $this->_tpl_vars['categoryID'], 'name' => 'set_keywords', 'class' => 'text', 'autocomplete' => "controller=backend.product field=keywords"), $this);
?>
<?php
echo smarty_function_textfield(array('id' => "set_url_" . $this->_tpl_vars['categoryID'], 'name' => 'set_URL', 'class' => 'text', 'autocomplete' => "controller=backend.product field=URL"), $this);
?>
<?php
echo smarty_function_selectfield(array('id' => "massForm_theme_" . $this->_tpl_vars['categoryID'], 'name' => 'theme', 'options' => $this->_tpl_vars['themes']), $this);
?>
<?php
echo smarty_function_selectfield(array('id' => "massForm_shippingClass_" . $this->_tpl_vars['categoryID'], 'name' => 'shippingClass', 'options' => $this->_tpl_vars['shippingClasses']), $this);
?>
<?php
echo smarty_function_selectfield(array('id' => "massForm_taxClass_" . $this->_tpl_vars['categoryID'], 'name' => 'taxClass', 'options' => $this->_tpl_vars['taxClasses']), $this);
?>
</span>
示例3: smarty_function_translate
<p>
<label></label>
- <?php
echo smarty_function_translate(array('text' => '_or'), $this);
?>
-
</p>
<p class="required">
<label for="atServer"><span class="label"><?php
echo smarty_function_translate(array('text' => '_select_at_server'), $this);
?>
</span></label>
<fieldset class="error"><?php
echo smarty_function_textfield(array('name' => 'atServer', 'id' => 'atServer', 'class' => 'file'), $this);
?>
<input type="button" class="button browse" id="selectAtServer" value="<?php
echo is_array($_tmp = smarty_function_translate(array('text' => '_browse', 'disableLiveTranslation' => 'true'), $this)) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html');
?>
" />
<div class="errorText hidden<?php
$this->_tag_stack[] = array('error', array('for' => 'atServer'));
$_block_repeat = true;
smarty_block_error($this->_tag_stack[count($this->_tag_stack) - 1][1], null, $this, $_block_repeat);
while ($_block_repeat) {
ob_start();
?>
visible<?php
$_block_content = ob_get_contents();
示例4: array
</p>
<?php
$this->_tag_stack[] = array('language', array());
$_block_repeat = true;
smarty_block_language($this->_tag_stack[count($this->_tag_stack) - 1][1], null, $this, $_block_repeat);
while ($_block_repeat) {
ob_start();
?>
<p>
<label><?php
echo smarty_function_translate(array('text' => '_image_title'), $this);
?>
:</label>
<?php
echo smarty_function_textfield(array('name' => "title_" . $this->_tpl_vars['lang']['ID']), $this);
?>
</p>
<?php
$_block_content = ob_get_contents();
ob_end_clean();
$_block_repeat = false;
echo smarty_block_language($this->_tag_stack[count($this->_tag_stack) - 1][1], $_block_content, $this, $_block_repeat);
}
array_pop($this->_tag_stack);
?>
<fieldset class="controls">
<span class="progressIndicator" style="display: none;"></span>
示例5: smarty_function_translate
echo smarty_function_translate(array('text' => $this->_tpl_vars['field']['label']), $this);
?>
</label>
<span>
<?php
if ($this->_tpl_vars['field']['type'] == 'number') {
?>
<?php
echo smarty_function_textfield(array('class' => "text number actionField " . $this->_tpl_vars['field']['name'], 'name' => $this->_tpl_vars['field']['name']), $this);
?>
<?php
} elseif ($this->_tpl_vars['field']['type'] == 'text') {
?>
<?php
echo smarty_function_textfield(array('class' => "text wide actionField " . $this->_tpl_vars['field']['name'], 'name' => $this->_tpl_vars['field']['name']), $this);
?>
<?php
} elseif ($this->_tpl_vars['field']['type'] == 'select') {
?>
<?php
echo smarty_function_selectfield(array('class' => "actionField " . $this->_tpl_vars['field']['name'], 'name' => $this->_tpl_vars['field']['name'], 'options' => $this->_tpl_vars['field']['options']), $this);
?>
<?php
}
?>
<span class="progressIndicator" style="display: none;"></span>
</span>
</p>
示例6: smarty_function_translate
</p>
<p <?php
if ($this->_tpl_vars['required']) {
?>
class="required"<?php
}
?>
>
<label for="confpassword"><span class="label"><?php
echo smarty_function_translate(array('text' => '_conf_password'), $this);
?>
:</span></label>
<fieldset class="error"><?php
echo smarty_function_textfield(array('name' => 'confpassword', 'type' => 'password', 'class' => 'text'), $this);
?>
<div class="errorText hidden<?php
$this->_tag_stack[] = array('error', array('for' => 'confpassword'));
$_block_repeat = true;
smarty_block_error($this->_tag_stack[count($this->_tag_stack) - 1][1], null, $this, $_block_repeat);
while ($_block_repeat) {
ob_start();
?>
visible<?php
$_block_content = ob_get_contents();
ob_end_clean();
$_block_repeat = false;
echo smarty_block_error($this->_tag_stack[count($this->_tag_stack) - 1][1], $_block_content, $this, $_block_repeat);
示例7: unset
</p>
<?php
}
}
unset($_from);
?>
<div class="clear"></div>
</div>
<?php
}
?>
<?php
} elseif (2 == $this->_tpl_vars['option']['type']) {
?>
<fieldset class="error"><?php
echo smarty_function_textfield(array('name' => $this->_tpl_vars['fieldName'], 'class' => 'text'), $this);
?>
<?php
} elseif (3 == $this->_tpl_vars['option']['type']) {
?>
<?php
echo smarty_function_uniqid(array('assign' => 'uniq', 'noecho' => true), $this);
?>
<?php
echo smarty_function_filefield(array('name' => "upload_" . $this->_tpl_vars['fieldName'], 'id' => $this->_tpl_vars['uniq']), $this);
?>
<?php
echo smarty_function_hidden(array('name' => $this->_tpl_vars['fieldName']), $this);
示例8: smarty_function_textfield
echo $this->_tpl_vars['item']['formattedDisplaySubTotal'];
?>
<div class="subTotalCalc">
<?php
echo $this->_tpl_vars['item']['count'];
?>
x <span class="basePrice"><?php
echo $this->_tpl_vars['item']['formattedBasePrice'];
?>
</span><span class="actualPrice"><?php
echo $this->_tpl_vars['item']['formattedPrice'];
?>
</span>
</div>
<?php
}
?>
</td>
<td class="cartQuant">
<?php
echo smarty_function_textfield(array('name' => "item_" . $this->_tpl_vars['item']['ID'], 'class' => 'text'), $this);
?>
</td>
</tr>
<?php
}
}
unset($_from);
示例9: smarty_function_translate
?>
<?php
if ($this->_tpl_vars['fields']['POSTALCODE']) {
?>
<p class="required">
<label for="<?php
echo $this->_tpl_vars['prefix'];
?>
postalCode"><span class="label"><?php
echo smarty_function_translate(array('text' => '_postal_code'), $this);
?>
:</span></label>
<fieldset class="error"><?php
echo smarty_function_textfield(array('name' => $this->_tpl_vars['prefix'] . "postalCode", 'class' => 'text'), $this);
?>
<div class="errorText hidden<?php
$this->_tag_stack[] = array('error', array('for' => $this->_tpl_vars['prefix'] . "postalCode"));
$_block_repeat = true;
smarty_block_error($this->_tag_stack[count($this->_tag_stack) - 1][1], null, $this, $_block_repeat);
while ($_block_repeat) {
ob_start();
?>
visible<?php
$_block_content = ob_get_contents();
ob_end_clean();
$_block_repeat = false;
echo smarty_block_error($this->_tag_stack[count($this->_tag_stack) - 1][1], $_block_content, $this, $_block_repeat);
示例10: smarty_modifier_or
<?php
$this->assign('autocompleteController', smarty_modifier_or($this->_tpl_vars['autocompleteController'], 'backend.product'));
?>
<?php
$this->assign('autocomplete', "controller=" . $this->_tpl_vars['autocompleteController'] . " field=" . $this->_tpl_vars['fieldName']);
?>
<?php
}
?>
<?php
ob_start();
echo $this->_tpl_vars['textFieldClass'];
$this->_smarty_vars['capture']['default'] = ob_get_contents();
$this->assign('blockAsParamValue', ob_get_contents());
ob_end_clean();
echo smarty_function_textfield(array('id' => "product_" . $this->_tpl_vars['cat'] . "_" . $this->_tpl_vars['item']['ID'] . "_" . $this->_tpl_vars['fieldName'], 'name' => $this->_tpl_vars['prefix'] . $this->_tpl_vars['fieldName'], 'class' => "text " . $this->_tpl_vars['blockAsParamValue'], 'autocomplete' => $this->_tpl_vars['autocomplete']), $this);
?>
<?php
} elseif ($this->_tpl_vars['field']['type'] == 4) {
?>
<div class="textarea" style="margin-left: 0;">
<?php
echo smarty_function_textarea(array('id' => "product_" . $this->_tpl_vars['cat'] . "_" . $this->_tpl_vars['item']['ID'] . "_" . $this->_tpl_vars['fieldName'], 'name' => $this->_tpl_vars['prefix'] . $this->_tpl_vars['fieldName'], 'class' => 'tinyMCE'), $this);
?>
<div class="errorText hidden"></div>
</div>
<?php
示例11: smarty_function_translate
<label><?php
echo smarty_function_translate(array('text' => '_keywords'), $this);
?>
:</label>
<?php
echo smarty_function_textarea(array('name' => "keywords_" . $this->_tpl_vars['lang']['ID'], 'class' => 'categoryKeywords'), $this);
?>
</p>
<p>
<label><?php
echo smarty_function_translate(array('text' => '_pageTitle'), $this);
?>
:</label>
<?php
echo smarty_function_textfield(array('name' => "pageTitle_" . $this->_tpl_vars['lang']['ID'], 'class' => 'wide'), $this);
?>
</p>
<?php
$_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "custom:backend/eav/language.tpl", 'smarty_include_vars' => array('item' => $this->_tpl_vars['category'], 'language' => $this->_tpl_vars['lang']['ID'])));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
?>
<?php
$_block_content = ob_get_contents();
ob_end_clean();
$_block_repeat = false;
示例12: ob_start
<fieldset class="error"><?php
ob_start();
echo smarty_function_uniqid(array('assign' => 'id_state_select'), $this);
$this->_smarty_vars['capture']['default'] = ob_get_contents();
$this->assign('blockAsParamValue', ob_get_contents());
ob_end_clean();
echo smarty_function_selectfield(array('name' => $this->_tpl_vars['prefix'] . "state_select", 'style' => "display: none;", 'options' => $this->_tpl_vars['states'], 'id' => $this->_tpl_vars['blockAsParamValue']), $this);
?>
<?php
ob_start();
echo smarty_function_uniqid(array('assign' => 'id_state_text'), $this);
$this->_smarty_vars['capture']['default'] = ob_get_contents();
$this->assign('blockAsParamValue', ob_get_contents());
ob_end_clean();
echo smarty_function_textfield(array('name' => $this->_tpl_vars['prefix'] . "state_text", 'class' => 'text', 'id' => $this->_tpl_vars['blockAsParamValue']), $this);
?>
<div class="errorText hidden<?php
$this->_tag_stack[] = array('error', array('for' => $this->_tpl_vars['prefix'] . "state_select"));
$_block_repeat = true;
smarty_block_error($this->_tag_stack[count($this->_tag_stack) - 1][1], null, $this, $_block_repeat);
while ($_block_repeat) {
ob_start();
?>
visible<?php
$_block_content = ob_get_contents();
ob_end_clean();
$_block_repeat = false;
echo smarty_block_error($this->_tag_stack[count($this->_tag_stack) - 1][1], $_block_content, $this, $_block_repeat);
示例13: smarty_function_translate
echo smarty_function_translate(array('text' => '_capture'), $this);
?>
</legend>
<span class="confirmation" style="display: none"><?php
echo smarty_function_translate(array('text' => '_capture_conf'), $this);
?>
</span>
<p>
<?php
echo smarty_function_translate(array('text' => '_capture_amount'), $this);
?>
:<Br />
<?php
echo smarty_function_textfield(array('name' => 'amount', 'class' => 'text number', 'value' => $this->_tpl_vars['transaction']['amount']), $this);
?>
<?php
echo $this->_tpl_vars['transaction']['Currency']['ID'];
?>
</p>
<p class="captureComment">
<?php
echo smarty_function_translate(array('text' => '_comment'), $this);
?>
:
<textarea name="comment"></textarea>
</p>
示例14: smarty_function_textfield
:</label>
<fieldset class="error">
<?php
echo smarty_function_textfield(array('name' => "price_" . $this->_tpl_vars['currency'], 'class' => 'money price', 'id' => "product_price_" . $this->_tpl_vars['cat'] . "_" . $this->_tpl_vars['product']['ID'] . "_" . $this->_tpl_vars['currency']), $this);
?>
<?php
echo $this->_tpl_vars['currency'];
?>
<span class="listPrice">
<?php
echo smarty_function_toolTip(array('label' => '_list_price'), $this);
?>
:
<?php
echo smarty_function_textfield(array('name' => "listPrice_" . $this->_tpl_vars['currency'], 'class' => 'money', 'id' => "product_listPrice_" . $this->_tpl_vars['cat'] . "_" . $this->_tpl_vars['product']['ID'] . "_" . $this->_tpl_vars['currency']), $this);
?>
</span>
<a href="" class="menu setQuantPrice" style="display: none;"><?php
echo smarty_function_translate(array('text' => '_set_quant'), $this);
?>
</a>
<div class="errorText hidden"></div>
<?php
$_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "custom:backend/product/form/quantityPricing.tpl", 'smarty_include_vars' => array('currency' => $this->_tpl_vars['currency'])));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
?>
</fieldset>
示例15: smarty_function_textfield
?>
:</label>
<fieldset class="error">
<?php
echo smarty_function_textfield(array('name' => 'minimumQuantity', 'id' => "product_minimumQuantity_" . $this->_tpl_vars['cat'] . "_" . $this->_tpl_vars['product']['ID'], 'class' => 'number'), $this);
?>
<div class="errorText hidden"></div>
</fieldset>
</p>
<p>
<label for="product_<?php
echo $this->_tpl_vars['cat'];
?>
_<?php
echo $this->_tpl_vars['product']['ID'];
?>
_fractionalStep"><?php
echo smarty_function_toolTip(array('label' => '_fractionalStep', 'hint' => '_hint_fractionalStep'), $this);
?>
:</label>
<fieldset class="error">
<?php
echo smarty_function_textfield(array('name' => 'fractionalStep', 'class' => 'number', 'id' => "product_" . $this->_tpl_vars['cat'] . "_" . $this->_tpl_vars['product']['ID'] . "_fractionalStep"), $this);
?>
<div class="errorText hidden"></div>
</fieldset>
</p>
</fieldset>