⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 documentmain.jsp

📁 OA自动化办公系统,Eclipse+Oracle开发。
💻 JSP
字号:
<%@ page contentType="text/html; charset=GBK" language="java"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=GBK" />
		<title>新建文件</title>
		<link href="../css/Style.css" rel="stylesheet" type="text/css" />
		<script language="javascript" src="../js/docManage.js"> </script>
		<script language="javascript" src="../js/changeState.js"></script>
		<script type="text/javascript" charset="gbk"> 
   function checkAddressNotNull(){
   
     var filePath = document.getElementById("filePath");
	
	if (filePath.value.length == 0) {
		alert('Please Choose Folder Path! ');
		return;
	}
   }
 function changevisible(element){
		var path=document.getElementById("filePath");
		var p=element.parentNode;		
		var ary=new Array();
 while(true){
			ary.push(p.value);
			if(p.value=='文档管理'){
				break;
			}
			p=p.parentNode;			
		}	
		var text="";
		for(var j=ary.length-1;j>=0;j--){
			text+="/"+ary[j];
		}
		path.value=text;
        var children = element.parentNode.childNodes;
        for(var i= 0; i<children.length;i++){
            if(children[i].nodeName == "DIV"){
                var className = children[i].className;                    
                if(className == "show"){
                    element.className="fold";
                    children[i].className="hidden";
                }
                else{
                    element.className="expend";
                    children[i].className="show";
                }
            }
        }
    }
</script>

		<style type="text/css">
.openTree {
	background-image: url(../images/file/fmfolderShow1.gif)
}

.closeTree {
	background-image: url(../images/file/closeTree.gif)
}

.fileCss {
	font-family: "Tahoma", "";
	font-size: 9pt;
	color: #003399;
	border: 1px #003399 solid;
	color: #006699;
	BORDER-BOTTOM: #93bee2 1px solid;
	BORDER-LEFT: #93bee2 1px solid;
	BORDER-RIGHT: #93bee2 1px solid;
	BORDER-TOP: #93bee2 1px solid;
	background-image: url(images/bluebuttonbg.gif);
	background-color: #e8f4ff;
	CURSOR: hand;
	font-style: normal;
}

div.show {
	display: block;
	width: 100%;
}

div.hidden {
	display: none;
}

span.fold {
	width: 20px;
	height: 20px;
	padding: 0px 10px 0px 10px;
	background-image: url("../images/CloseTree.gif");
	background-repeat: no-repeat;
}

span.expend {
	width: 20px;
	height: 20px;
	padding: 0px 10px 0px 10px;
	background-image: url("../images/CloseTree.gif");
	background-repeat: no-repeat;
}

span.2blank {
	width: 20px;
}

span.3blank {
	width: 40px;
}

span.def {
	width: 20px;
	height: 20px;
	padding: 0px 10px 0px 10px;
	background-image: url("../images/showtoc.gif");
	background-repeat: no-repeat;
}
</style>
	</head>
	<body class="bodyfont">
		<tr>
			<td height="30" colspan="3">
		</tr>
		<tr>
			<td height="30" colspan="2" valign="top">
			</td>
			<p>
				当前位置:文件管理
			</p>
			<br />
			<br />
			<hr />
		</tr>
		<table width="100%">
			<!--DWLayoutTable-->
			<tr>
				<td width="10%" rowspan="3" valign="top">
					<br />
					<br />
					<hr />
					<div id="tree" style="cursor:help">
						<div class="show" value="文档管理" style="cursor:auto">
							<span class="fold" onclick="changevisible(this)">&nbsp;</span>
							公共文档
							<div class="hidden" value="最新文档" style="cursor: auto">
								<span class="2blank">&nbsp;</span>
								<span class="def" onclick="changevisible(this)">&nbsp;</span>
								最新文档
							</div>
							<div class="hidden" value="管理制度">
								<span class="2blank">&nbsp;</span>
								<span class="def" onclick="changevisible(this)">&nbsp;</span>
								管理制度
							</div>
						</div>
						<div class="show" onmousemove="" value="文档管理" style="cursor: auto">
							<span class="fold" onclick="changevisible(this)">&nbsp;</span>
							部门文档
							<div class="hidden" value="市场部" style="cursor: auto">
								<span class="2blank">&nbsp;</span>
								<span class="def" onclick="changevisible(this)">&nbsp;</span>
								市场部
							</div>
							<div class="hidden" value="研发部">
								<span class="2blank">&nbsp;</span>
								<span class="def" onclick="changevisible(this)">&nbsp;</span>
								研发部
							</div>
						</div>
						<div class="show" onmousemove="" value="文档管理" style="cursor: auto">
							<span class="fold" onclick="changevisible(this)">&nbsp;</span>
							个人文档
							<div class="hidden" value="个人资料" style="cursor: auto">
								<span class="2blank">&nbsp;</span>
								<span class="def" onclick="changevisible(this)">&nbsp;</span>
								个人资料
							</div>
						</div>
				</td>
				<td width="626" height="32" valign="top">
					<table width="34%" height="23" border="0">
						<tr>
							<td width="23">
								<a href="javascript:window.history.go(-1)"><img
										src="../images/back.gif" width="22" height="22" border="none" />
								</a>
							</td>
							<td width="26">
								<a href="documentAdd.jsp" title="上传文件"><img
										src="../images/file/upload.gif" style="border: none"
										width="40" height="24" /> </a>
							</td>
							<td width="70">
								<div>
									<img class="openTree" width="70" height="24"
										onclick="changeState(this)" title="显示文件结构"
										style="cursor: hand" />
								</div>
							</td>
							<td width="22">
								<a href="documentRemark.jsp"><img
										src="../images/newFolder.gif" title="添加文件夹"
										style="border: none" width="22" height="22" /> </a>
							</td>
							<td width="22">
								<a href="documentSearch.jsp"><img src="../images/find.gif"
										style="border: none" width="22" height="22" title="搜索" /> </a>
							</td>
							<td width="51">
								<div style="cursor: hand;" onmouseover="showLayer()"
									onmouseout="hiddenLayer()">
									<a href="trashManage.jsp" title="我的回收站"><img
											src="../images/file/recycle.gif" style="border: none"
											width="22" height="22" /> </a>
								</div>
							</td>
						</tr>
					</table>
				</td>
			</tr>
			<tr>
				<td height="41" valign="top">
					<form action="displayfilesinfolder.do" method="POST"
						onsubmit="checkAddressNotNull()">
						<p align="justify">
							地址:
							<input type="text" class="inputCss" id="filePath" size="60"
								readonly  name="filePath" />
							<input type="submit" class="buttonCss" value="确定" />
							<input type="reset" class="buttonCss" value="取消" />
						</p>
					</form>
				</td>
			</tr>
			<tr>
				<td height="39" valign="top">
					<table width="80%" border="0">
						<!--DWLayoutTable-->
						<tr>
							<td>
								<center>
									名称
								</center>
							</td>
							<td>
								<center>
									大小
								</center>
							</td>
							<td>
								<center>
									类型
								</center>
							</td>
							<td>
								<center>
									上传日期
								</center>
							</td>
						</tr>
						<c:forEach var="items" items="${sessionScope.FilesInForlder}">
							<tr>
								<td>
									<center>
										${items.fileName}
									</center>
								</td>
								<td>
									<center>
										${items.fileLength/1000.0 } kb
									</center>
								</td>
								<td>
									<center>
										${items.fileTypeName}
									</center>
								</td>
								<td>
									<center>
										${items.createDate}
									</center>
								</td>
								<td width="79">
									<center>
										<a href="downloadfile.do?fileId=${items.fileId}"><img
												src="../images/newFile.gif" border="none" /> </a>
									</center>
								</td>
							</tr>
						</c:forEach>
					</table>
				</td>
			</tr>
		</table>
	</body>
	</htm>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -