smarty之section用法 隔行换色,鼠标over高亮
2012-11-22 10:21
267 查看
<table border="0" width="100%" align="center" class="table_common" cellpadding="0" cellspacing="0"> <tr class="tr_common_title"> <th>ID</th><th>Remark</th><th>申核人</th><th>时间</th> </tr> {{section name="val" loop="$auditInfo"}} <tr class="{{if $smarty.section.val.index % 2 >0}}tr_common_row_odd{{else}}tr_common_row_even{{/if}}" onmouseover="this.className='tr_common_row_hover';" onmouseout="this.className='{{if $smarty.section.val.index % 2 >0}}tr_common_row_odd{{else}}tr_common_row_even{{/if}}';"> <td>{{$smarty.section.val.index}}{{$auditInfo[val].audit_id}}</td><td>{{$auditInfo[val].idc_remark}}</td><td>{{$auditInfo[val].user_name}}</td><td>{{$auditInfo[val].create_time|date_format:"%Y-%m-%d"}}</td> </tr> {{sectionelse}} <tr class="tr_common_row"> <td colspan="4">{{lang t='ui_c_nodata'}}</td> </tr> {{/section}} </table>
相关文章推荐
- jQuery插件实现表格隔行换色且感应鼠标高亮行变色
- 表格隔行换色,鼠标经过时高亮显示
- jQuery插件实现表格隔行换色且感应鼠标高亮行变色
- javascript学习笔记(十)表格隔行换色,鼠标经过时高亮显示
- smarty中section的嵌套用法
- 隔行换色table以及鼠标滑过换色
- smarty的section嵌套循环用法示例
- ASP.NET2.0下为GridView添加鼠标滑过(onmouseover、onmouseout)的行颜色高亮效果!
- JQuery 表格 隔行换色 和鼠标滑过的样式
- smarty section用法
- ASP.NET2.0下为GridView添加鼠标滑过(onmouseover、onmouseout)的行颜色高亮效果!
- 隔行换色,鼠标移动到的行换色
- JS实现表格隔行换色,鼠标经过换色,单击换色,再单击还原等功能
- smarty 多维数组 section 循环的用法
- ASP.NET2.0下为GridView添加鼠标滑过(onmouseover、onmouseout)的行颜色高亮效果!
- smarty section用法
- ASP.NET2.0下为GridView添加鼠标滑过(onmouseover、onmouseout)的行颜色高亮效果!
- JQuery实现表格隔行换色,鼠标移动变色,点击选择变色
- 纯JS代码实现隔行变色鼠标移入高亮
- smarty中foreach和section的用法