本文整理匯總了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