<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>附件管理</title>
 
<script>
function add(id){
alert("调用了~~~");
location.href="<%=request.getContextPath()%>/law/law_addInit?lawDto.law.lawId="+id;
return false;
}

function del(id){
if(confirm("确定要删除吗?")==true){
location.href="<%=request.getContextPath()%>/law/law_delete?lawDto.law.lawId="+id;
}
return false;
}

function edit(id){
location.href="<%=request.getContextPath()%>/law/law_updateInit
return false;
}

</script>
  </head>
  
  <body onLoad="createCode()">
    <form action="">
     <table width="100%" border="1" cellspacing="0" cellpadding="2">
     <tr bgcolor="#ededed">
     <td>名称</td>
     <td>附件</td>
     <td>操作</td>
     </tr>
     <s:iterator value="list" var="law">
     <tr>
     <td><s:property value="#law.name"/><s:property value="#law.lawId" /></td>
<td><s:property value="#law.content"/>.doc<a href="#">下载</a></td>
     <td>
     <a href="#" onclick="return add('<s:property value="#law.lawId" />')" >添加</a>
     <a href="#" onclick="return edit('<s:property value="#law.lawId" />')" >修改</a>
     <a href="#" onclick="return del('<s:property value="#law.lawId" />')" >删除</a>
     </td>
     </tr>
     </s:iterator>
     </table>
     <DIV class=dvContent>
<div align="center">
<s:property value="lawDto.pageBean.javaScriptJumpCode"
escape="false" />

<s:property value="lawDto.pageBean.recordCount" escape="false" />
条记录
<s:property value="lawDto.pageBean.pageCountHtml" escape="false" />
每页显示
<s:property value="lawDto.pageBean.pageCount" escape="false" />

<s:property value="lawDto.pageBean.pageJumpLinkHtml"
escape="false" />
<s:property value="lawDto.pageBean.pageFormJumpHtml"
escape="false" />
</div>
</div>
    </form>
  </body>
</html>