本文整理汇总了PHP中smarty_function_hidden函数的典型用法代码示例。如果您正苦于以下问题:PHP smarty_function_hidden函数的具体用法?PHP smarty_function_hidden怎么用?PHP smarty_function_hidden使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了smarty_function_hidden函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: ob_start
<?php
ob_start();
echo $this->_tpl_vars['tabid'];
$this->_smarty_vars['capture']['default'] = ob_get_contents();
$this->assign('blockAsParamValue', ob_get_contents());
ob_end_clean();
echo smarty_function_hidden(array('name' => 'file', 'id' => "file_" . $this->_tpl_vars['blockAsParamValue']), $this);
?>
<?php
if ($this->_tpl_vars['new']) {
?>
<?php
echo smarty_function_hidden(array('name' => 'new', 'value' => 'true'), $this);
?>
<?php
}
?>
<fieldset class="controls" <?php
$this->_tag_stack[] = array('denied', array('role' => "template.save"));
$_block_repeat = true;
smarty_block_denied($this->_tag_stack[count($this->_tag_stack) - 1][1], null, $this, $_block_repeat);
while ($_block_repeat) {
ob_start();
?>
style="display: none;"<?php
$_block_content = ob_get_contents();
示例2: smarty_function_renderBlock
<?php
echo smarty_function_renderBlock(array('block' => "PRODUCT-VARIATIONS"), $this);
?>
<tr id="productToCart" class="cartLinks">
<td class="param"><?php
echo smarty_function_translate(array('text' => '_quantity'), $this);
?>
:</td>
<td class="value">
<?php
$_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "custom:product/block/quantity.tpl", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
?>
<input type="submit" class="submit" value="<?php
echo is_array($_tmp = smarty_function_translate(array('text' => '_add_to_cart', 'disableLiveTranslation' => 'true'), $this)) ? $this->_run_mod_handler('escape', true, $_tmp, 'html') : smarty_modifier_escape($_tmp, 'html');
?>
" />
<?php
echo smarty_function_hidden(array('name' => 'return', 'value' => $this->_tpl_vars['catRoute']), $this);
?>
</td>
</tr>
<?php
}
示例3: smarty_function_hidden
?>
<?php
echo smarty_function_hidden(array('name' => 'mode', 'value' => $this->_tpl_vars['system']['mode']), $this);
?>
<?php
echo smarty_function_hidden(array('name' => 'item', 'value' => $this->_tpl_vars['system']['item']), $this);
?>
<?php
echo smarty_function_hidden(array('name' => 'authcode', 'value' => $this->_tpl_vars['system']['authcode']), $this);
?>
<?php
echo smarty_function_hidden(array('name' => 'action', 'value' => 'additem'), $this);
?>
<div align="right" style="margin-top:10px">
<p style="float:left">
<label><input type="checkbox" name="active" checked> Активно</label>
<label><input type="checkbox" name="favorite"> Спецпредложение</label>
<label><input type="checkbox" name="new"> Новинка</label>
</p>
<?php
echo smarty_function_submit(array('caption' => 'OK'), $this);
?>
<?php
echo smarty_function_button(array('caption' => "Отмена", 'onclick' => "Windows.closeAll()"), $this);
?>
示例4: smarty_function_hidden
?>
<?php
echo smarty_function_hidden(array('name' => 'authcode', 'value' => $this->_tpl_vars['system']['authcode']), $this);
?>
<?php
echo smarty_function_hidden(array('name' => 'mode', 'value' => $this->_tpl_vars['system']['mode']), $this);
?>
<?php
echo smarty_function_hidden(array('name' => 'item', 'value' => $this->_tpl_vars['system']['item']), $this);
?>
<?php
echo smarty_function_hidden(array('name' => 'tab', 'value' => 'orders'), $this);
?>
</form>
</td>
<?php
}
?>
<td width="80%" align="right"> </td>
</tr>
</table>
<?php
$_block_content = ob_get_contents();
ob_end_clean();
$_block_repeat = false;
echo smarty_block_tabpage($this->_tag_stack[count($this->_tag_stack) - 1][1], $_block_content, $this, $_block_repeat);
示例5: smarty_function_textfield
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);
?>
<?php
$this->_tag_stack[] = array('error', array('for' => "upload_" . $this->_tpl_vars['fieldName']));
$_block_repeat = true;
smarty_block_error($this->_tag_stack[count($this->_tag_stack) - 1][1], null, $this, $_block_repeat);
while ($_block_repeat) {
ob_start();
?>
<div class="errorText"><?php
echo $this->_tpl_vars['msg'];
?>
</div><?php
$_block_content = ob_get_contents();
ob_end_clean();
示例6: unset
</a>
<?php
if (!($this->_foreach['catPath']['iteration'] == $this->_foreach['catPath']['total'])) {
?>
>
<?php
}
?>
<?php
}
}
unset($_from);
?>
</label>
<?php
echo smarty_function_hidden(array('id' => 'categoryID', 'name' => 'category'), $this);
?>
</p>
<div class="options">
<p>
<label><?php
echo smarty_function_translate(array('text' => '_import_action'), $this);
?>
</label>
<select name="options[action]">
<option value="both"><?php
echo smarty_function_translate(array('text' => '_add_and_update'), $this);
?>
</option>
示例7: smarty_core_load_plugins
<?php
/* Smarty version 2.6.26, created on 2015-12-02 13:11:48
compiled from backend/user/address_edit.tpl */
require_once SMARTY_CORE_DIR . 'core.load_plugins.php';
smarty_core_load_plugins(array('plugins' => array(array('function', 'hidden', 'backend/user/address_edit.tpl', 1, false), array('function', 'translate', 'backend/user/address_edit.tpl', 5, false), array('function', 'textfield', 'backend/user/address_edit.tpl', 6, false), array('function', 'selectfield', 'backend/user/address_edit.tpl', 25, false), array('function', 'link', 'backend/user/address_edit.tpl', 71, false))), $this);
echo smarty_function_hidden(array('name' => $this->_tpl_vars['namePrefix'] . "ID"), $this);
?>
<?php
if (!$this->_tpl_vars['hideName']) {
?>
<fieldset class="error">
<label for="<?php
echo $this->_tpl_vars['idPrefix'];
?>
_firstName"><?php
echo smarty_function_translate(array('text' => '_first_name'), $this);
?>
</label>
<?php
echo smarty_function_textfield(array('name' => $this->_tpl_vars['namePrefix'] . "firstName", 'id' => $this->_tpl_vars['idPrefix'] . "_firstName", 'class' => 'text'), $this);
?>
<div class="errorText" style="display: none" ></div>
</fieldset>
<fieldset class="error">
<label for="<?php
echo $this->_tpl_vars['idPrefix'];
示例8: smarty_core_load_plugins
<?php
/* Smarty version 2.6.26, created on 2015-12-01 12:15:49
compiled from /home/illumin/public_html/application/view///backend/newsletter/edit.tpl */
require_once SMARTY_CORE_DIR . 'core.load_plugins.php';
smarty_core_load_plugins(array('plugins' => array(array('block', 'form', '/home/illumin/public_html/application/view///backend/newsletter/edit.tpl', 1, false), array('function', 'hidden', '/home/illumin/public_html/application/view///backend/newsletter/edit.tpl', 4, false), array('function', 'translate', '/home/illumin/public_html/application/view///backend/newsletter/edit.tpl', 7, false), array('function', 'checkbox', '/home/illumin/public_html/application/view///backend/newsletter/edit.tpl', 40, false), array('modifier', 'capitalize', '/home/illumin/public_html/application/view///backend/newsletter/edit.tpl', 7, false), array('modifier', 'escape', '/home/illumin/public_html/application/view///backend/newsletter/edit.tpl', 41, false))), $this);
$this->_tag_stack[] = array('form', array('handle' => $this->_tpl_vars['form'], 'action' => "controller=backend.newsletter action=save", 'method' => 'POST', 'onsubmit' => "Backend.Newsletter.saveForm(this); return false;", 'onreset' => "Backend.Newsletter.resetAddForm(this);"));
$_block_repeat = true;
smarty_block_form($this->_tag_stack[count($this->_tag_stack) - 1][1], null, $this, $_block_repeat);
while ($_block_repeat) {
ob_start();
?>
<div class="newsletterForm">
<?php
echo smarty_function_hidden(array('name' => 'id', 'value' => $this->_tpl_vars['newsletter']['ID']), $this);
?>
<fieldset>
<legend><?php
ob_start();
echo smarty_function_translate(array('text' => '_edit_message'), $this);
$this->_smarty_vars['capture']['default'] = ob_get_contents();
$this->assign('translation__edit_message', ob_get_contents());
ob_end_clean();
echo is_array($_tmp = $this->_tpl_vars['translation__edit_message']) ? $this->_run_mod_handler('capitalize', true, $_tmp) : smarty_modifier_capitalize($_tmp);
?>
</legend>
<?php
$_smarty_tpl_vars = $this->_tpl_vars;
示例9: smarty_core_load_plugins
<?php
/* Smarty version 2.6.26, created on 2015-12-13 17:33:59
compiled from block_search_edit.tpl */
require_once SMARTY_CORE_DIR . 'core.load_plugins.php';
smarty_core_load_plugins(array('plugins' => array(array('function', 'hidden', 'block_search_edit.tpl', 1, false), array('function', 'editbox', 'block_search_edit.tpl', 4, false))), $this);
echo smarty_function_hidden(array('name' => 'b_idsec', 'value' => $this->_tpl_vars['form']['idsec']), $this);
?>
<?php
if ($this->_tpl_vars['auth']->isExpert()) {
?>
<p>Шаблон:</p>
<p><?php
echo smarty_function_editbox(array('name' => 'b_template', 'text' => $this->_tpl_vars['form']['template'], 'max' => 50, 'width' => "20%"), $this);
?>
</p>
<?php
} else {
echo smarty_function_hidden(array('name' => 'b_template', 'value' => $this->_tpl_vars['form']['template']), $this);
?>
<?php
}
示例10: smarty_function_hidden
?>
<?php
echo smarty_function_hidden(array('name' => 'mode', 'value' => $this->_tpl_vars['system']['mode']), $this);
?>
<?php
echo smarty_function_hidden(array('name' => 'item', 'value' => $this->_tpl_vars['system']['item']), $this);
?>
<?php
echo smarty_function_hidden(array('name' => 'authcode', 'value' => $this->_tpl_vars['system']['authcode']), $this);
?>
<?php
echo smarty_function_hidden(array('name' => 'action', 'value' => 'fld_edit'), $this);
?>
<div align="right" style="margin-top:10px">
<p style="float:left"><label><input type="checkbox" name="fill"<?php
if ($this->_tpl_vars['form']['fill'] == 'Y') {
?>
checked<?php
}
?>
> Обязательно для заполнения.</label></p>
<?php
echo smarty_function_submit(array('caption' => 'OK'), $this);
?>
<?php
示例11: array_pop
}
array_pop($this->_tag_stack);
?>
</div>
</fieldset>
</p>
<?php
} else {
?>
<?php
ob_start();
echo smarty_function_uniqid(array('assign' => 'id_country'), $this);
$this->_smarty_vars['capture']['default'] = ob_get_contents();
$this->assign('blockAsParamValue', ob_get_contents());
ob_end_clean();
echo smarty_function_hidden(array('name' => $this->_tpl_vars['prefix'] . "country", 'id' => $this->_tpl_vars['blockAsParamValue']), $this);
?>
<?php
}
?>
<?php
if ($this->_tpl_vars['fields']['STATE']) {
$_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "custom:user/addressFormState.tpl", 'smarty_include_vars' => array('prefix' => $this->_tpl_vars['prefix'])));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
}
?>
示例12: smarty_function_hidden
echo $this->_tpl_vars['form']['links'][$this->_sections['i']['index']]['section'];
?>
"></td>
</td>
<td width="20"><a href="javascript:links_insert(<?php
echo $this->_sections['i']['index'];
?>
)" title="Вставить"><img src="/templates/admin/images/add.gif" width="16" height="16"></a></td>
<td width="20"><a href="javascript:links_del(<?php
echo $this->_sections['i']['index'];
?>
)" title="Удалить"><img src="/templates/admin/images/del.gif" width="16" height="16"></a></td>
</tr>
</table>
</div>
<?php
}
}
?>
</div>
<table width="100%">
<tr>
<td>Импорт (xls): <input type="file" name="xlsfile"></td>
<td width="20"><a href="javascript:links_addlink()" title="Добавить"><img src="/templates/admin/images/add.gif" width="16" height="16" alt="Добавить"></a></td>
<td width="20"> </td>
</tr>
</table>
</div>
<?php
echo smarty_function_hidden(array('name' => 'b_count', 'value' => $this->_tpl_vars['form']['count']), $this);
示例13: array
?>
<ul class="menu">
<li>
<?php
$this->_tag_stack[] = array('form', array('handle' => $this->_tpl_vars['form'], 'class' => 'orderStatus', 'action' => "controller=backend.customerOrder action=update", 'id' => "orderInfo_" . $this->_tpl_vars['order']['ID'] . "_form", 'onsubmit' => "Backend.CustomerOrder.Editor.prototype.getInstance(" . $this->_tpl_vars['order']['ID'] . ", false).submitForm(); return false;", 'method' => 'post', 'role' => "order.update"));
$_block_repeat = true;
smarty_block_form($this->_tag_stack[count($this->_tag_stack) - 1][1], null, $this, $_block_repeat);
while ($_block_repeat) {
ob_start();
?>
<?php
echo smarty_function_hidden(array('name' => 'ID'), $this);
?>
<?php
echo smarty_function_hidden(array('name' => 'isCancelled'), $this);
?>
<label for="order_<?php
echo $this->_tpl_vars['order']['ID'];
?>
_status" style="width: auto; float: none;"><?php
echo smarty_function_translate(array('text' => '_status'), $this);
?>
: </label>
<?php
echo smarty_function_selectfield(array('options' => $this->_tpl_vars['statuses'], 'id' => "order_" . $this->_tpl_vars['order']['ID'] . "_status", 'name' => 'status', 'class' => 'status'), $this);
?>
<div class="errorText hidden"></div>
<?php
示例14: smarty_function_button
<?php
echo smarty_function_button(array('caption' => "Отмена", 'onclick' => "Windows.closeAll()"), $this);
?>
</div>
<?php
echo smarty_function_hidden(array('name' => 'id', 'value' => $this->_tpl_vars['form']['id']), $this);
?>
<?php
echo smarty_function_hidden(array('name' => 'mode', 'value' => $this->_tpl_vars['system']['mode']), $this);
?>
<?php
echo smarty_function_hidden(array('name' => 'item', 'value' => $this->_tpl_vars['system']['item']), $this);
?>
<?php
echo smarty_function_hidden(array('name' => 'page', 'value' => $this->_tpl_vars['system']['page']), $this);
?>
<?php
echo smarty_function_hidden(array('name' => 'authcode', 'value' => $this->_tpl_vars['system']['authcode']), $this);
?>
<?php
echo smarty_function_hidden(array('name' => 'action', 'value' => 'editpage'), $this);
?>
</form>
示例15: array
<div id="importProfiles">
<?php
$_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "custom:backend/csvImport/profiles.tpl", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
?>
</div>
<div id="fieldsContainer"></div>
<div class="clear"></div>
<fieldset class="error">
<?php
echo smarty_function_hidden(array('name' => 'err'), $this);
?>
<div class="errorText" style="display: none; margin-top: 0.5em;"></div>
</fieldset>
</fieldset>
<div class="clear"></div>
<fieldset class="controls" id="importControls">
<p class="saveProfile" style="display: none;">
<input type="checkbox" class="checkbox" name="saveProfile" id="saveProfile" />
<label for="saveProfile" class="checkbox" style="margin-right: 1em;"><?php
echo smarty_function_translate(array('text' => '_save_profile'), $this);
?>
:</label>