C标签判断使用
来源:互联网 发布:校园网络建设 编辑:程序博客网 时间:2024/05/16 06:46
<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" onclick="window.location='<%=path %>/paper.do?method=ShowPaper&pid=${p.id}'">预览</button>
<button class="plan" onclick="makeplan('${p.id}')">制定调查计划</button>
<button class="show" onclick="window.location='<%=path %>/customerMgr.do?method=BackPaper&pid=${p.id}'">返回</button>
</c:if>
<c:if test="${p.state eq 2}">
<button class="show" onclick="window.location='<%=path %>/paper.do?method=ShowPaper&pid=${p.id}'">预览</button>
<button class="result" onclick="window.location='<%=path %>/paper.do?method=voteResult&pid=${p.id}'">调查数据</button>
<button class="stop" onclick="stopVote('${p.id}','${p.title}')">停止调查</button>
<button class="address" onclick="getURL('${p.id}')">获取调查地址</button>
</c:if>
<c:if test="${p.state eq 3}">
<button class="show" onclick="window.location='<%=path %>/paper.do?method=ShowPaper&pid=${p.id}'">预览</button>
<button class="result" onclick="window.location='<%=path %>/paper.do?method=voteResult&pid=${p.id}'">调查数据</button>
<button class="wirte" onclick="window.location='<%=path %>/front/paper/writeResult.jsp?pid=${p.id}'">撰写调查 报告</button>
</c:if>
<c:if test="${p.state eq 4}">
<button class="show" onclick="window.location='<%=path %>/paper.do?method=ShowPaper&pid=${p.id}'">预览</button>
<button class="showwirte">查看报告</button>
</c:if>
</td>
</tr>
</c:forEach>
</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" onclick="window.location='<%=path %>/paper.do?method=ShowPaper&pid=${p.id}'">预览</button>
<button class="plan" onclick="makeplan('${p.id}')">制定调查计划</button>
<button class="show" onclick="window.location='<%=path %>/customerMgr.do?method=BackPaper&pid=${p.id}'">返回</button>
</c:if>
<c:if test="${p.state eq 2}">
<button class="show" onclick="window.location='<%=path %>/paper.do?method=ShowPaper&pid=${p.id}'">预览</button>
<button class="result" onclick="window.location='<%=path %>/paper.do?method=voteResult&pid=${p.id}'">调查数据</button>
<button class="stop" onclick="stopVote('${p.id}','${p.title}')">停止调查</button>
<button class="address" onclick="getURL('${p.id}')">获取调查地址</button>
</c:if>
<c:if test="${p.state eq 3}">
<button class="show" onclick="window.location='<%=path %>/paper.do?method=ShowPaper&pid=${p.id}'">预览</button>
<button class="result" onclick="window.location='<%=path %>/paper.do?method=voteResult&pid=${p.id}'">调查数据</button>
<button class="wirte" onclick="window.location='<%=path %>/front/paper/writeResult.jsp?pid=${p.id}'">撰写调查 报告</button>
</c:if>
<c:if test="${p.state eq 4}">
<button class="show" onclick="window.location='<%=path %>/paper.do?method=ShowPaper&pid=${p.id}'">预览</button>
<button class="showwirte">查看报告</button>
</c:if>
</td>
</tr>
</c:forEach>
</tbody>
- C标签判断使用
- C标签使用EL表达式判断例子 不定期更新
- jsp页面使用C标签对时间日期进行判断
- jsp 判断标签使用
- c:if标签的判断
- jsp 判断标签的使用
- 下拉框使用c:if标签进行判断然后使用selected属性实现选择状态
- C 标签使用
- C标签的使用
- 使用c:forEach标签
- c标签的使用
- <c:if>标签使用
- C 标签使用
- c标签库使用
- <c:forEach> 标签使用
- jsp tag file中使用c:when 标签无法正确判断的问题
- jstl c 标签实现判断功能
- java中c标签的条件判断
- android应用程序开发另解及Android SDK工具集的另类用法
- linux command2
- 如何使用boost.asio写一个简单的通信程序(一)
- 看看再过五百年
- QT设置窗口模态 进程调用外部程序和入参
- C标签判断使用
- 100个高质量Java开发者博客
- ruby on rails学习第4篇:rails框架下的文件夹及其作用 (转载)
- Solr之缓存篇
- gdbserver移植
- Extjs4中tree组件查找所有父节点和查找所有子节点的递归方法
- HTML5本地存储之LocalStorage
- linux command3
- 关于指针作为函数参数传递的理解,对比普通变量作为函数参数的需注意点,其实就是行参和实参的问题。