您的位置:首页 > Web前端 > JavaScript

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

2016-10-26 15:52 337 查看
<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 onclick="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>
                                            
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  WEB
相关文章推荐