<table class="table table-hover table-striped">
<if condition="$order_list eq null">
<tr><td>----暂无数据!----</td></tr>
<else/>
<thead>
<tr id="childNodes_num">
<th width="20"><input type="checkbox" id="check_all"/></th>
<th>order_id</th>
<th>custom_id</th>
<th>custom_name</th>
<th>fa_id</th>
<th>fa_name</th>
<th>product_id</th>
<th>create_time</th>
<th>pre_amount</th>
<th colspan="2">操作</th>
</tr>
</thead>
<tfoot>
<tr>
<td id="td_colspan">{$page}</td>
</tr>
</tfoot>
<tbody>
<volist name="order_list" id="vo">
<tr>
<td>
<input name="order_ids[]" class="check_list" type="checkbox" value="{$vo.order_id}"/>
</td>

<td><a class="role_info" href="javascript:void(0)">{$vo.order_id}</a></td>
<td><a class="role_info" href="javascript:void(0)">{$vo.custom_id}</a></td>
<td><a class="role_info" href="javascript:void(0)">{$vo.custom_name}</a></td>
<td><a class="role_info" href="javascript:void(0)">{$vo.fa_id}</a></td>
<td><a class="role_info" href="javascript:void(0)">{$vo.fa_name}</a></td>
<td><a class="role_info" href="javascript:void(0)">{$vo.product_id}</a></td>
<td><a class="role_info" href="javascript:void(0)">{$vo.create_time|date='Y-m-d',###}</a></td>
<td><a class="role_info" href="javascript:void(0)">{$vo.pre_amount}</a></td>

<td><a class="view_btn" rel="{$vo.order_id}" href="javascript:void(0)">View</a>&nbsp;&nbsp;
<a class="viewNewTab_btn" rel="{$vo.order_id}" href="{:U('Order/viewNewTab','order_id='.$vo['order_id'])}">ViewNewTab</a>&nbsp;&nbsp;
<a class="edit_btn" rel="{$vo.order_id}" href="javascript:void(0)">Edit</a>&nbsp;&nbsp;
<a class="editNewTab_btn" rel="{$vo.order_id}" href="{:U('Order/editNewTab','order_id='.$vo['order_id'])}">EditNewTab</a>&nbsp;&nbsp;
<if condition="($by_deleted eq 1)"><a class="recover_btn" rel="{$vo.order_id}" href="javascript:void(0)">Recover</a><else/><a class="delete_btn" rel="{$vo.order_id}" href="javascript:void(0)">Del</a></if>
</td>
</tr>
</volist>
</tbody>
</if>
</table>

if condition volist的更多相关文章

  1. THinkPHP在模板中的volist循环使用外部变量注意事项

    循环中.自己定义的id=volist就可以使用$volist.id 或者$volist['id'] 而外面定义的变量就不能使用$vo.id 必须使用$vo['id']<volist name=& ...

  2. 关于在TP的各类标签中的注意事项

    name的位置上的变量是不用加$的 value位置上的变量是要加$的 <eq name="volist.id" value="$Think.post.id" ...

  3. ThinkPHP 3.2.2 在 volist 多重循环嵌套中使用 if 判断标签

    今天在 ThinkPHP 3.2.2 的试图模板中使用多重循环,用来把相应类别下对应的文章都依次循环出来,但是无论如何只能循环出类别,类别下的文章无法循环出,( 错误 ) 代码如下: <voli ...

  4. ThinkPHP学习 volist标签高级应用之多重嵌套循环、隔行变色(转)

    Action代码: public function index(){ $prod = I("get.prod_en"); $id = I("get.id", 0 ...

  5. thinkphp <eq> <if>标签 condition中可以写PHP的判断逻辑

    <ul> <volist name="monthArray" id="monthItem"> <if condition=&quo ...

  6. thinkphp <volist>标签中 <if> 判断的写法

    thinkphp <volist>标签中 <if> 判断的写法 <volist name="data" id="vo"> & ...

  7. java 线程 Lock 锁使用Condition实现线程的等待(await)与通知(signal)

    一.Condition 类 在前面我们学习与synchronized锁配合的线程等待(Object.wait)与线程通知(Object.notify),那么对于JDK1.5 的 java.util.c ...

  8. MySQL 优化之 ICP (index condition pushdown:索引条件下推)

    ICP技术是在MySQL5.6中引入的一种索引优化技术.它能减少在使用 二级索引 过滤where条件时的回表次数 和 减少MySQL server层和引擎层的交互次数.在索引组织表中,使用二级索引进行 ...

  9. 0038 Java学习笔记-多线程-传统线程间通信、Condition、阻塞队列、《疯狂Java讲义 第三版》进程间通信示例代码存在的一个问题

    调用同步锁的wait().notify().notifyAll()进行线程通信 看这个经典的存取款问题,要求两个线程存款,两个线程取款,账户里有余额的时候只能取款,没余额的时候只能存款,存取款金额相同 ...

随机推荐

  1. laravel5 centos6.4下的配置体验

    1. 安装lmnp环境: nginx version: nginx/1.6.0. php 5.5.7 . centos6.42. laravel-v5.1.4 一键安装包,在使用composer 安装 ...

  2. ACCESS中的窗体、报表、宏模块等(ACCESS 2000)

    窗体: 分为数据操作窗体,它包括单页.多页.连续.子窗口 控制窗体 信息交互窗体 窗体三种视图:“设计”视图.“窗体”视图.“数据表”视图 窗体建立的五种方式: 一:自动创建窗体 二:窗体向导(一对多 ...

  3. background-size background-positon合并的写法

    background:url('../../image/banner/banner1.jpg') #fff no-repeat 5px center/50px 50px; "/"前 ...

  4. Karel运行环境配置

    1.下载 见http://wenku.baidu.com/view/24762ced998fcc22bcd10d5e.html 2.界面空白问题 问题:运行Karel后,发现整个界面空白一片,没有任何 ...

  5. suse linux环境变量设置

    以在suse上安装jdk1.5为例说明: 安装jdk1.5完毕后,就可以配置环境变量了. su  root XXXXXX // 键入管理员密码 对于suse来说,只需在/etc/profile 文件后 ...

  6. javascript对象之 selectionStart selectionEnd

    <script> function inserttag(){ var text=document.getElementById('con'); text.focus(); var star ...

  7. css overflow:hidden无效解决办法

    解决方案:只需要在设定overflow:hidden层加入定位即可 position:relative;left:0px;top:0px

  8. hdu 4643(计算几何)

    题意:容易理解 分析:切换的地点为两个基站所在直线的中垂线与两座城市所在直线的交点. 代码实现: #include <cstdio> #include <cmath> #inc ...

  9. poj 2923(状态压缩dp)

    题意:就是给了你一些货物的重量,然后给了两辆车一次的载重,让你求出最少的运输次数. 分析:首先要从一辆车入手,搜出所有的一次能够运的所有状态,然后把两辆车的状态进行合并,最后就是解决了,有两种方法: ...

  10. pdm 中怎么修改表的Name值时使Code值不变

    修改方法:PowerDesign中的选项菜单里修改,在[Tool]-->[General Options]->[Dialog]->[Operating modes]->[Nam ...