本文整理汇总了PHP中smarty_function_selected函数的典型用法代码示例。如果您正苦于以下问题:PHP smarty_function_selected函数的具体用法?PHP smarty_function_selected怎么用?PHP smarty_function_selected使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了smarty_function_selected函数的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: smarty_function_write_url
<select onchange="page_Local(this,0 , '<?php
echo smarty_function_write_url(array('url' => $_smarty_tpl->getVariable('thisurl')->value, 'DEL' => 'ORDER'), $_smarty_tpl->smarty, $_smarty_tpl);
?>
')">
<option value="ORDER=time_UP" <?php
echo smarty_function_selected(array('val' => $_smarty_tpl->getVariable('get')->value['ORDER'], 'str' => 'time_UP'), $_smarty_tpl->smarty, $_smarty_tpl);
?>
>按 时间 (↑) 排序</option>
<option value="ORDER=time_Dn" <?php
echo smarty_function_selected(array('val' => $_smarty_tpl->getVariable('get')->value['ORDER'], 'str' => 'time_Dn'), $_smarty_tpl->smarty, $_smarty_tpl);
?>
>按 时间 (↓) 排序</option>
<option value="ORDER=open_UP" <?php
echo smarty_function_selected(array('val' => $_smarty_tpl->getVariable('get')->value['ORDER'], 'str' => 'open_UP'), $_smarty_tpl->smarty, $_smarty_tpl);
?>
>按 Open (↑) 排序</option>
<option value="ORDER=open_Dn" <?php
echo smarty_function_selected(array('val' => $_smarty_tpl->getVariable('get')->value['ORDER'], 'str' => 'open_Dn'), $_smarty_tpl->smarty, $_smarty_tpl);
?>
>按 Open (↓) 排序</option>
</select>
</div>
<?php
}
?>
</div>
</div>
<b class="clear"></b>
</div>
</body>
</html>
开发者ID:Capitalwang,项目名称:shehuahk,代码行数:31,代码来源:a2b5d2b5103ae5b1013d6fe2f13959adea3c76e5.file.proxy_purview.html.php
示例2: Smarty_Variable
<?php
$_smarty_tpl->tpl_vars['aon'] = new Smarty_Variable();
$_smarty_tpl->tpl_vars['nabKey'] = new Smarty_Variable();
$_from = $_smarty_tpl->getVariable('NAB')->value;
if (!is_array($_from) && !is_object($_from)) {
settype($_from, 'array');
}
if (count($_from) > 0) {
foreach ($_from as $_smarty_tpl->tpl_vars['aon']->key => $_smarty_tpl->tpl_vars['aon']->value) {
$_smarty_tpl->tpl_vars['nabKey']->value = $_smarty_tpl->tpl_vars['aon']->key;
?>
<option value="<?php
echo $_smarty_tpl->getVariable('nabKey')->value;
?>
" <?php
echo smarty_function_selected(array('val' => $_smarty_tpl->getVariable('nB')->value['type'], 'str' => $_smarty_tpl->getVariable('nabKey')->value), $_smarty_tpl->smarty, $_smarty_tpl);
?>
><?php
echo $_smarty_tpl->getVariable('aon')->value;
?>
</option><?php
}
}
?>
</select>
<input name="type_name[]" type="hidden" value="<?php
echo $_smarty_tpl->getVariable('nB')->value['type_name'];
?>
" />
<input name="content[]" type="text" value="<?php
echo $_smarty_tpl->getVariable('nB')->value['content'];
开发者ID:Capitalwang,项目名称:shehuahk,代码行数:31,代码来源:fe5df42e14e67fc69afb5b0fe998d281813a352c.file.proxy_nab.html.php
示例3: Smarty_Variable
<select name="proxy_group">
<option value="0">请选择</option>
<?php
$_smarty_tpl->tpl_vars['bch'] = new Smarty_Variable();
$_from = $_smarty_tpl->getVariable('group')->value;
if (!is_array($_from) && !is_object($_from)) {
settype($_from, 'array');
}
if (count($_from) > 0) {
foreach ($_from as $_smarty_tpl->tpl_vars['bch']->key => $_smarty_tpl->tpl_vars['bch']->value) {
?>
<option value="<?php
echo $_smarty_tpl->getVariable('bch')->value['id'];
?>
" <?php
echo smarty_function_selected(array('val' => $_smarty_tpl->getVariable('edit')->value['proxy_group'], 'str' => $_smarty_tpl->getVariable('bch')->value['id']), $_smarty_tpl->smarty, $_smarty_tpl);
?>
><?php
echo $_smarty_tpl->getVariable('bch')->value['name'];
?>
</option><?php
}
}
?>
</select>
</td>
</tr>
<tr>
<td align="right">性别</td>
<td>
<input name="sex" type="radio" value="privacy" <?php
开发者ID:Capitalwang,项目名称:shehuahk,代码行数:31,代码来源:04b51085b53a5e5bf10d655b023df6b244a4bce3.file.proxy_append.html.php
示例4: Smarty_Variable
">
<option value="0">请选择库存地点</option>
<?php
$_smarty_tpl->tpl_vars['ts'] = new Smarty_Variable();
$_from = $_smarty_tpl->getVariable('stockAddress')->value;
if (!is_array($_from) && !is_object($_from)) {
settype($_from, 'array');
}
if (count($_from) > 0) {
foreach ($_from as $_smarty_tpl->tpl_vars['ts']->key => $_smarty_tpl->tpl_vars['ts']->value) {
?>
<option value="<?php
echo $_smarty_tpl->getVariable('ts')->value['address'];
?>
" <?php
echo smarty_function_selected(array('val' => $_smarty_tpl->getVariable('edit')->value['stockAddress'], 'str' => $_smarty_tpl->getVariable('ts')->value['address']), $_smarty_tpl->smarty, $_smarty_tpl);
?>
><?php
echo $_smarty_tpl->getVariable('ts')->value['address'];
?>
</option><?php
}
}
?>
</select>
</td>
</tr>
<tr>
<td align="right">测量值</td>
<td><input type="text" name="scalar_value" value="<?php
echo $_smarty_tpl->getVariable('edit')->value['scalar_value'];
开发者ID:Capitalwang,项目名称:shehuahk,代码行数:31,代码来源:67f6bc274e716fd958bb54aaef9eec2c247bd910.file.product_append.html.php
示例5: Smarty_Variable
<select name="logistics_inner_id">
<option value="0">请选择内部物流状态</option>
<?php
$_smarty_tpl->tpl_vars['pso'] = new Smarty_Variable();
$_from = $_smarty_tpl->getVariable('logistics')->value['inner'];
if (!is_array($_from) && !is_object($_from)) {
settype($_from, 'array');
}
if (count($_from) > 0) {
foreach ($_from as $_smarty_tpl->tpl_vars['pso']->key => $_smarty_tpl->tpl_vars['pso']->value) {
?>
<option value="<?php
echo $_smarty_tpl->getVariable('pso')->value['id'];
?>
" <?php
echo smarty_function_selected(array('val' => $_smarty_tpl->getVariable('pso')->value['id'], 'str' => $_smarty_tpl->getVariable('orders')->value['logistics_inner_id']), $_smarty_tpl->smarty, $_smarty_tpl);
?>
><?php
echo $_smarty_tpl->getVariable('pso')->value['name'];
?>
</option>
<?php
}
}
?>
</select>
</td>
</tr>
<tr>
<td align="right" class="Need">快递类型</td>
<td>
开发者ID:Capitalwang,项目名称:shehuahk,代码行数:31,代码来源:ec78adb8cdb07304f2d876fffeb39c84e6566192.file.orders_dispatch.html.php
示例6: Smarty_Variable
<?php
$_smarty_tpl->tpl_vars['us'] = new Smarty_Variable();
$_smarty_tpl->tpl_vars['uy'] = new Smarty_Variable();
$_from = $_smarty_tpl->getVariable('status')->value;
if (!is_array($_from) && !is_object($_from)) {
settype($_from, 'array');
}
if (count($_from) > 0) {
foreach ($_from as $_smarty_tpl->tpl_vars['us']->key => $_smarty_tpl->tpl_vars['us']->value) {
$_smarty_tpl->tpl_vars['uy']->value = $_smarty_tpl->tpl_vars['us']->key;
?>
<option value="status=<?php
echo $_smarty_tpl->getVariable('uy')->value;
?>
" <?php
echo smarty_function_selected(array('val' => $_smarty_tpl->getVariable('get')->value['status'], 'str' => $_smarty_tpl->getVariable('uy')->value), $_smarty_tpl->smarty, $_smarty_tpl);
?>
><?php
echo $_smarty_tpl->getVariable('us')->value;
?>
</option>
<?php
}
}
?>
</select>
订单查询
<form method="get">
<input name="open" type="hidden" value="<?php
echo $_smarty_tpl->getVariable('get')->value['open'];
?>
开发者ID:Capitalwang,项目名称:shehuahk,代码行数:31,代码来源:868f87e921c6c35f07612a35d0d06d6418a3f94e.file.orders.html.php