myforder.jsp
资源名称:(J2EE)oa.rar [点击查看]
上传用户:lm2018
上传日期:2015-12-12
资源大小:30449k
文件大小:3k
源码类别:
Jsp/Servlet
开发平台:
Java
- <%@ page language="java" pageEncoding="GBK"%>
- <%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
- <%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
- <%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%>
- <%@ taglib uri="http://struts.apache.org/tags-tiles" prefix="tiles"%>
- <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
- <title>无标题文档</title>
- <script>
- function newForder(){
- var url="${pageContext.request.contextPath}/Jsp_file/folder/newforder.html";
- var dialogArguments = window;
- var features="dialogWidth=400px;dialogHeight=400px;help=no;status=yes";
- var ff=showModalDialog(url,dialogArguments,features);
- }
- function buildnewForder(){
- var forder = document.getElementById("newforder").value;
- location.href="${pageContext.request.contextPath}/folder.do?method=newforder&fordername="+forder;
- }
- function xiugai(id){
- var val = window.prompt("请输入新的文件夹名", "文件名");
- if(val.length<=0){
- alert("修改失败");
- return false;
- }
- location.href="${pageContext.request.contextPath}/folder.do?method=xiugaiforder&fordername="+val+"&forderid="+id;
- }
- function xx(){
- alert("还没有实现");
- }
- </script>
- </head>
- <body>
- <html:form action="/folder" method="post">
- <input type="hidden" id="newforder"/>
- <html:hidden property="method" />
- <table width="100%" border="1">
- <tr>
- <td align="center">文件夹名称</td>
- <td align="center">创建时间</td>
- <td align="center">操作</td>
- </tr>
- <logic:notPresent name="myFolderList">
- <tr>
- <td colspan="3">暂时没有数据</td>
- </tr>
- </logic:notPresent>
- <logic:present name="myFolderList">
- <logic:empty name="myFolderList">
- <tr>
- <td colspan="3">暂时没有数据</td>
- </tr>
- </logic:empty>
- <logic:notEmpty name="myFolderList">
- <logic:iterate id="myforder" name="myFolderList">
- <tr>
- <td align="center">
- <html:link action="/userFile.do?method=enterForder&forderid=${myforder.forder}">
- <bean:write name="myforder" property="virtualfordername"/>
- </html:link>
- </td>
- <td align="center">
- <bean:write name="myforder" property="createtime"/>
- </td>
- <td align="center">
- <a href="${myforder.forder}" onclick="xx();">[共享]</a>
- <INPUT type="button" value="改名" onclick="return xiugai('${myforder.forder}');"/>
- <html:link action="/folder.do?method=deleteFolder&forderid=${myforder.forder}" onclick="return window.confirm('你确定删除吗?');">删除</html:link>
- </td>
- </tr>
- </logic:iterate>
- </logic:notEmpty>
- </logic:present>
- <tr>
- <td colspan="3" align="center">
- <input type="button" value="新建文件夹" onclick="newForder();" name="ddd" />
- </td>
- </tr>
- </table>
- </html:form>
- </body>
- </html>