<%@ include file="include.jsp" %>学习小结

<span style="font-size:18px;"><strong>1、列表页面如下</strong></span>
<%@ page language="java" pageEncoding="utf-8"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<%@ taglib uri="/tpl" prefix="t"%>
<%@ include file="include.jsp" %>
<t:fragment name="_title">申请列表</t:fragment>
<t:fragment name="_ctlbnt">
</t:fragment>
<t:tpl menuId="__serviceApplicationMessage"  name="simple"  >
	<div style="width:900px;text-align:center;    margin: auto;">
	<div style="float:left;padding-top:20px"><a οnclick="f('add.action')" class="button-main button-icon-add"><s:text name="button.add"/></a></div>
	<t:dataTable theme="media" limit="${limit }" offset="${offset }" tableName="申请列表"   multiSelect="true" showNo="false" bundle="#request.list" checkboxName="id" checkboxValue="%{id}"
	 headerNames="服务类别|服务需求|审核结果|操作"
	 defaultColumns="服务类别|服务需求|审核结果|操作"
	 fields="%{serviceClasses}|
	 <input  class='input' type='text' value='%{serviceNeeds}'  readonly='readonly' style='width:350px;text-overflow:ellipsis;border:0px;background-color:transparent !important;color:black;'/>
	 |%{#accept_result[acceptResult]}|
	 <a href='${pageContext.request.contextPath}/serviceApplicationMessage/%{#href_action[acceptResult]}.action?id=%{id}&acceptResult=%{acceptResult}'>
	 <span style="color:#ff0000;">%{#a_result[acceptResult]}</span></a>|"
	 widths="200|350|150|150"/>
	 </div>
</t:tpl>

<pre name="code" class="html"><span style="font-size:18px;"><strong>[<span style="color: rgb(255, 0, 0); font-family: Arial, Helvetica, sans-serif;">acceptResult</span>]为字段名称</strong></span>
 

2、include.jsp页面如下

<%@ page language="java" pageEncoding="utf-8"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<%@ taglib uri="/tpl" prefix="t"%>
<s:set name="accept_result" value="#{0:'未审核',1:'审核通过',2:'已驳回',3:'已反馈'}"/>
<s:set name="a_result" value="#{0:'编辑',1:'填写反馈',2:'编辑',3:'查看'}"/>
<s:set name="sh_result" value="#{0:'shouli',1:'view',2:'view',3:'view'}"/>
<s:set name="href_action" value="#{0:'edit',1:'tofeedBack',2:'edit',3:'view'}"/>
<t:fragment name="_nav"><a href="list.action">申请列表</a></t:fragment>

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值