<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>

最新文章

  1. Intellij IDEA 快捷键整理
  2. Canvas入门(3):图像处理和绘制文字
  3. http://blog.csdn.net/itplus/article/details/10088625
  4. java异常类的使用
  5. ssl相关
  6. hdu3829(最大独立集)
  7. NSIS:使用PassDialog插件实现密码安装(卸载)功能
  8. Java. Warning – Build path specifies execution environment J2SE-1.5
  9. Windows API 之 ReadProcessMemory
  10. python基础(二)-------数据类型
  11. apache2.4 虚拟主机配置
  12. 【API知识】一种你可能没见过的Controller形式
  13. 图解Redis之数据结构篇——字典
  14. ApplicationContext中Bean的生命周期
  15. CentOS 6.5环境实现corosync+pacemaker实现DRBD高可用
  16. url传输编码
  17. delphi 实现两个exe文件共享内存映像的代码
  18. Context Switching on the Cortex-M3
  19. Jmeter通过BeanShell Sampler获取Jmeter的Bin路径,并存入变量供后面的脚本调用
  20. Nastya Studies Informatics CodeForces - 992B(增长姿势)

热门文章

  1. [Locked] Best Meeting Point
  2. POJ 3187 穷举
  3. poj1016
  4. Hive 创建和生成Rcfile 和SequenceFile格式的表
  5. Druid数据库连接池使用
  6. 如何下载coursera视频
  7. 【转】 Android Studio SVN 使用方法
  8. ScheduledExecutorService定时周期运行指定的任务
  9. Android系统默认Home应用程序(Launcher)的启动过程源码分析
  10. spring mvc使用ClassPathXmlApplicationContext或FileSystemXmlApplicationContext和XmlWebApplicationContext类的操作其中 XmlWebApplicationContext是专为Web工程定制的。