本文整理汇总了PHP中smarty_function_checked函数的典型用法代码示例。如果您正苦于以下问题:PHP smarty_function_checked函数的具体用法?PHP smarty_function_checked怎么用?PHP smarty_function_checked使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了smarty_function_checked函数的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: smarty_function_checked
<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'];
?>
" onkeyup="set_mobile(this)" />
<span <?php
if ($_smarty_tpl->getVariable('nB')->value['type'] != 'mobile') {
?>
style="display:none"<?php
}
?>
><input name="is_default" <?php
echo smarty_function_checked(array('val' => $_smarty_tpl->getVariable('nB')->value['is_default'], 'str' => 'Y'), $_smarty_tpl->smarty, $_smarty_tpl);
?>
type="radio" value="<?php
echo $_smarty_tpl->getVariable('nB')->value['content'];
?>
" style="width:auto" /> 接收 手机短信 号码</span>
<a href="javascript:;" onclick="Del_NAB('NAB' , this)">删除</a>
</li>
<?php
}
}
?>
</ul>
</td>
</tr>
<tr><th colspan="2" align="center"><input type="submit" value=" 提 交 " /> <input type="reset" value=" 重 填 " /></th></tr>
开发者ID:Capitalwang,项目名称:shehuahk,代码行数:31,代码来源:fe5df42e14e67fc69afb5b0fe998d281813a352c.file.proxy_nab.html.php
示例2: smarty_function_checked
<td>
<input name="sex" type="radio" value="privacy" <?php
if ($_smarty_tpl->getVariable('get')->value['action'] == 'add') {
?>
checked="checked"<?php
} else {
echo smarty_function_checked(array('val' => $_smarty_tpl->getVariable('edit')->value['sex'], 'str' => 'privacy'), $_smarty_tpl->smarty, $_smarty_tpl);
}
?>
/> 保密
<input name="sex" type="radio" value="man" <?php
echo smarty_function_checked(array('val' => $_smarty_tpl->getVariable('edit')->value['sex'], 'str' => 'man'), $_smarty_tpl->smarty, $_smarty_tpl);
?>
/> 男
<input name="sex" type="radio" value="woman" <?php
echo smarty_function_checked(array('val' => $_smarty_tpl->getVariable('edit')->value['sex'], 'str' => 'woman'), $_smarty_tpl->smarty, $_smarty_tpl);
?>
/> 女
</td>
</tr>
<tr>
<td align="right">备注</td>
<td><textarea name="remark" style="width:80%; height:120px"><?php
echo smarty_function_br_to_null(array('str' => $_smarty_tpl->getVariable('edit')->value['remark']), $_smarty_tpl->smarty, $_smarty_tpl);
?>
</textarea></td>
</tr>
<tr><th colspan="2" align="center"><input type="submit" value=" 提 交 " /> <input type="reset" value=" 重 填 " /></th></tr>
</table>
</form>
</div>
开发者ID:Capitalwang,项目名称:shehuahk,代码行数:31,代码来源:68332a3c4c792c3e145e46280be795adb9ec9dfb.file.service_append.html.php
示例3: smarty_modifier_default
echo smarty_modifier_default($_smarty_tpl->getVariable('edit')->value['rebate'], 0);
?>
" maxlength="5" onfocus="sprintf('%.2f' , this , true)" /> %</td>
</tr>
<tr>
<td align="right">促销价</td>
<td>
<input name="is_offer" type="radio" value="Y" <?php
if ($_smarty_tpl->getVariable('get')->value['action'] == 'add' || $_smarty_tpl->getVariable('edit')->value['is_offer'] == 'Y') {
?>
checked="checked"<?php
}
?>
/> 支持
<input name="is_offer" type="radio" value="N" <?php
echo smarty_function_checked(array('val' => $_smarty_tpl->getVariable('edit')->value['is_offer'], 'str' => 'N'), $_smarty_tpl->smarty, $_smarty_tpl);
?>
/> 不支持
</td>
</tr>
<tr>
<td align="right" class="Need">短信 / 每条</td>
<td><input type="text" name="sms_price" class="taxis" value="<?php
echo smarty_modifier_default($_smarty_tpl->getVariable('edit')->value['sms_price'], 0.1);
?>
" maxlength="4" onfocus="sprintf('%.2f' , this)" /> 元</td>
</tr>
<tr>
<td align="right">排序</td>
<td>
<input name="taxis" type="text" class="taxis" value="<?php
开发者ID:Capitalwang,项目名称:shehuahk,代码行数:31,代码来源:9ae77fb2c5d61a05bdbd6da2726be30c62986367.file.proxy_group_append.html.php
示例4: foreach
foreach ($_from as $_smarty_tpl->tpl_vars['aon']->key => $_smarty_tpl->tpl_vars['aon']->value) {
?>
<label for="<?php
echo $_smarty_tpl->getVariable('aon')->value['id'];
?>
"><input name="purview[]" type="checkbox" value="<?php
echo $_smarty_tpl->getVariable('aon')->value['id'];
?>
" id="<?php
echo $_smarty_tpl->getVariable('aon')->value['id'];
?>
" title="<?php
echo $_smarty_tpl->getVariable('aon')->value['action'];
?>
" onclick="select_ck(this)" <?php
echo smarty_function_checked(array('val' => $_smarty_tpl->getVariable('aon')->value['id'], 'str' => $_smarty_tpl->getVariable('edit')->value['purview']), $_smarty_tpl->smarty, $_smarty_tpl);
?>
/> <?php
echo $_smarty_tpl->getVariable('aon')->value['action_show'];
?>
</label>
<?php
}
}
?>
</li>
<?php
}
}
?>
</ul>
开发者ID:Capitalwang,项目名称:shehuahk,代码行数:31,代码来源:e3c952d72acd60ddea05363ed657d4b14a5044c1.file.role_purview.html.php
示例5: smarty_function_checked
<?php
}
}
?>
</select>
</td>
</tr>
<tr>
<td align="right" class="Need">快递类型</td>
<td>
<label for="ems"><input type="radio" name="express_type" value="EMS" id="ems" <?php
echo smarty_function_checked(array('val' => $_smarty_tpl->getVariable('orders')->value['express_type'], 'str' => 'EMS'), $_smarty_tpl->smarty, $_smarty_tpl);
?>
/> EMS</label>
<label for="shunfeng"><input type="radio" name="express_type" value="顺丰" id="shunfeng" <?php
echo smarty_function_checked(array('val' => $_smarty_tpl->getVariable('orders')->value['express_type'], 'str' => '顺丰'), $_smarty_tpl->smarty, $_smarty_tpl);
?>
/> 顺丰</label>
</td>
<td align="right" class="Need">快递单号</td>
<td><input name="express_ID" type="text" style="width:120px" value="<?php
echo $_smarty_tpl->getVariable('orders')->value['express_ID'];
?>
" /></td>
</tr>
<tr><th colspan="4" align="center"><input type="submit" value=" 确 认 " /></th></tr>
<tr>
<td colspan="4">
<table width="100%" border="0" cellspacing="1" cellpadding="0" id="tab_show" style="margin:0.5em 0 0 0">
<tr>
<th>产品编号</th>
开发者ID:Capitalwang,项目名称:shehuahk,代码行数:31,代码来源:ec78adb8cdb07304f2d876fffeb39c84e6566192.file.orders_dispatch.html.php
示例6: foreach
}
if (count($_from) > 0) {
foreach ($_from as $_smarty_tpl->tpl_vars['ts']->key => $_smarty_tpl->tpl_vars['ts']->value) {
$_smarty_tpl->tpl_vars['sy']->value = $_smarty_tpl->tpl_vars['ts']->key;
?>
<label for="proSource_<?php
echo $_smarty_tpl->getVariable('sy')->value;
?>
"><input name="proSource[]" type="checkbox" id="proSource_<?php
echo $_smarty_tpl->getVariable('sy')->value;
?>
" value="<?php
echo $_smarty_tpl->getVariable('sy')->value;
?>
" <?php
echo smarty_function_checked(array('val' => $_smarty_tpl->getVariable('sy')->value, 'str' => $_smarty_tpl->getVariable('get')->value['proSource']), $_smarty_tpl->smarty, $_smarty_tpl);
?>
/> <?php
echo $_smarty_tpl->getVariable('ts')->value;
?>
</label>
<?php
}
}
?>
</td>
</tr>
<tr>
<td colspan="4" align="right">促销</td>
<td colspan="6" class="promotion">
<ul style="display:block">
开发者ID:Capitalwang,项目名称:shehuahk,代码行数:31,代码来源:15d2e5e9712dc2bbe3ae51ecb1768517dcb8cb92.file.product_advanced.html.php
示例7: smarty_modifier_default
?>
]" type="hidden" value="<?php
echo smarty_modifier_default($_smarty_tpl->getVariable('pso')->value['is_arrival'], 'N');
?>
" />
<label for="de_<?php
echo $_smarty_tpl->getVariable('pso')->value['id'];
?>
"><input name="is_arrival[<?php
echo $_smarty_tpl->getVariable('pso')->value['id'];
?>
]" id="de_<?php
echo $_smarty_tpl->getVariable('pso')->value['id'];
?>
" <?php
echo smarty_function_checked(array('val' => $_smarty_tpl->getVariable('pso')->value['is_arrival'], 'str' => 'Y'), $_smarty_tpl->smarty, $_smarty_tpl);
?>
type="checkbox" value="Y" /> 到货</label>
</td>
<?php
} else {
?>
<td></td>
<td></td>
<td>取消</td>
<td></td>
<?php
}
?>
<td class="action"><a href="javascript:;" onclick="show_detail(this , '<?php
echo $_smarty_tpl->getVariable('pso')->value['id'];
开发者ID:Capitalwang,项目名称:shehuahk,代码行数:31,代码来源:d0620877a4e9b60dd0d9094ba984b5f5d53acf59.file.orders_deploy.html.php