下拉列表框 select 动态赋值
2024-08-22 15:48:55
<tr>
<td class="label">所属群组:</td>
<td>
<select name="group" dataType="Require" msg="请选择群组">
{foreach from=$arrgroups item=group}
<option value="{$group.car_group_id}" {if $group.car_group_id eq $car.group}selected{/if} >{$group.car_group_name}</option>
{/foreach}
</select>
</td>
</tr>
Smarty赋值 <tr>
<td height="55">用户群组:</td>
<td>
<select name="group_id" >
<option value ="17">请选择</option>
{foreach from=$group_user item=group}
<option value="{$group.user_group_id}" {if $group.user_group_id eq $brand.user_group_id}selected{/if} >{$group.title} </option>
{/foreach} </select>
</td> </tr>
最新文章
- Intellij IDEA 快捷键整理
- Canvas入门(3):图像处理和绘制文字
- http://blog.csdn.net/itplus/article/details/10088625
- java异常类的使用
- ssl相关
- hdu3829(最大独立集)
- NSIS:使用PassDialog插件实现密码安装(卸载)功能
- Java. Warning – Build path specifies execution environment J2SE-1.5
- Windows API 之 ReadProcessMemory
- python基础(二)-------数据类型
- apache2.4 虚拟主机配置
- 【API知识】一种你可能没见过的Controller形式
- 图解Redis之数据结构篇——字典
- ApplicationContext中Bean的生命周期
- CentOS 6.5环境实现corosync+pacemaker实现DRBD高可用
- url传输编码
- delphi 实现两个exe文件共享内存映像的代码
- Context Switching on the Cortex-M3
- Jmeter通过BeanShell Sampler获取Jmeter的Bin路径,并存入变量供后面的脚本调用
- Nastya Studies Informatics CodeForces - 992B(增长姿势)
热门文章
- [Locked] Best Meeting Point
- POJ 3187 穷举
- poj1016
- Hive 创建和生成Rcfile 和SequenceFile格式的表
- Druid数据库连接池使用
- 如何下载coursera视频
- 【转】 Android Studio SVN 使用方法
- ScheduledExecutorService定时周期运行指定的任务
- Android系统默认Home应用程序(Launcher)的启动过程源码分析
- spring mvc使用ClassPathXmlApplicationContext或FileSystemXmlApplicationContext和XmlWebApplicationContext类的操作其中 XmlWebApplicationContext是专为Web工程定制的。