C标签判断使用

         <tbody>
<c:if test="${empty plist}">
<tr><td colspan="7">暂时没有等待审核的用户</td></tr>
</c:if>
<c:forEach items="${plist}" var="p" varStatus="x">
<tr id="tr_${p.id}">
<td>${x.index+1}</td>
<td>${p.customer.name}</td>
<td>${p.title}</td>
<td>
<fmt:formatDate value="${p.pubTime}" pattern="yyyy年MM月dd日"/>
</td>
<td>
 <c:if test="${p.state eq 1}">未开始</c:if>
 <c:if test="${p.state eq 2}">调查开始</c:if>
 <c:if test="${p.state eq 3}">调查结束</c:if>
 <c:if test="${p.state eq 4}">完成报告</c:if>
</td>
<td>
  <c:if test="${p.state eq 1}">计划未开始</c:if>

  <c:if test="${p.state eq 2}">
  <fmt:formatDate value="${p.startDate}" pattern="yyyy年MM月dd日"/>
   -
  <fmt:formatDate value="${p.endDate}" pattern="yyyy年MM月dd日"/>
  </c:if>
  <c:if test="${p.state eq 3}">调查结束</c:if>
 <c:if test="${p.state eq 4}">完成报告</c:if>
</td>
<td align="center" id="td_${p.id}">
    <c:if test="${p.state eq 1}">
       <button class="show" οnclick="window.location='<%=path %>/paper.do?method=ShowPaper&pid=${p.id}'">预览</button>
       <button class="plan" οnclick="makeplan('${p.id}')">制定调查计划</button>
       <button class="show" οnclick="window.location='<%=path %>/customerMgr.do?method=BackPaper&pid=${p.id}'">返回</button>
    </c:if>   
    <c:if test="${p.state eq 2}">
       <button class="show" οnclick="window.location='<%=path %>/paper.do?method=ShowPaper&pid=${p.id}'">预览</button>
       <button class="result" οnclick="window.location='<%=path %>/paper.do?method=voteResult&pid=${p.id}'">调查数据</button>
       <button class="stop" οnclick="stopVote('${p.id}','${p.title}')">停止调查</button>
       <button class="address" οnclick="getURL('${p.id}')">获取调查地址</button>
    </c:if>   
    <c:if test="${p.state eq 3}">
       <button class="show" οnclick="window.location='<%=path %>/paper.do?method=ShowPaper&pid=${p.id}'">预览</button>
       <button class="result" οnclick="window.location='<%=path %>/paper.do?method=voteResult&pid=${p.id}'">调查数据</button>
       <button class="wirte" οnclick="window.location='<%=path %>/front/paper/writeResult.jsp?pid=${p.id}'">撰写调查 报告</button>
    </c:if>   
      <c:if test="${p.state eq 4}">
       <button class="show" οnclick="window.location='<%=path %>/paper.do?method=ShowPaper&pid=${p.id}'">预览</button>
       <button class="showwirte">查看报告</button>
    </c:if>   
</td>
</tr>
</c:forEach>
</tbody>
  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值