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

📄 documentadd.jsp

📁 OA自动化办公系统,Eclipse+Oracle开发。
💻 JSP
字号:
<%@ page contentType="text/html; charset=GBK" language="java"
	import="java.sql.*" errorPage=""%>
<%@ 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/calendar.js" charset="GBK"></script>
		<script language="javascript" charset="GBK">
   
    function changevisible(element){
		var path=document.getElementById("path");	
		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">
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">
		<table>
			<tr>
				<td>
					<table width="100%" border="0" cellpadding="0" cellspacing="0">
						<tr>
							<td height="30" valign="top"><!--DWLayoutEmptyCell-->&nbsp;
							</td>
						</tr>
						<tr>
							<td height="19" valign="top">
								<hr />
							</td>
						</tr>
						<tr>
							<td height="254" valign="top">
								<table width="100%" height="251" border="0">
									<!--DWLayoutTable-->


									<tr>
										<td height="23" valign="top">
											<img src="../images/file/filepro.gif" width="78" height="23" />
										</td>
										<td></td>
									</tr>
									<tr>
										<td height="2"></td>
										<td></td>
									</tr>



									<tr>
										<td height="19" valign="top">
											<hr />
											<center>
												请选择路径
											</center>
											<hr />
										</td>
										<td colspan="2" rowspan="2" valign="top">

											<form action="uploadfile.do" method="POST"
												enctype="multipart/form-data" name="fileAttributeForm">
												<table width="100%" height="385" border="0">
													<!--DWLayoutTable-->
													<tr>
														<td height="39" colspan="4" valign="top">
															文件名
															<input type="text" class="inputCss" name="fileName"
																width="200" />
														</td>
													</tr>
													<tr>
														<td height="19" colspan="5" valign="top">
															位置:
															<input id="path" type="text" class="inputCss"
																name="filePath" width="300" readonly="" />
														</td>
													</tr>
													<tr>
														<td height="57" colspan="9">
															备注:
															<textarea name="fileRemark" class="textArea"></textarea>
														</td>
													</tr>
													<tr>
														<td height="19" colspan="9"></td>
													</tr>
													<tr>
														<td height="30" colspan="4" valign="top">
															时间:
															<input type="text" class="inputCss" readonly
																onclick="calendar()" />
															所有者:
															<input type="text" class="inputCss" readonly
																value="${sessionScope.UserInfoList["realName"]}" />
													</tr>
													<tr>

														<td height="60" colspan="9" valign="top">
															<table width="443" border="0">
																<!--DWLayoutTable-->
																<tr>
																	<td width="93" rowspan="2" valign="top">
																		文件图标&gt;&gt;&gt;
																	</td>
																	<td width="54" height="26" valign="top">
																		<label>
																			<input type="radio" name="radiobutton" value="1"
																				checked="checked" />
																			<img src="../images/file/bmp.gif" width="16"
																				height="16" />
																		</label>
																	</td>
																	<td width="50" valign="top">
																		<input type="radio" name="radiobutton" value="2"
																			id="icon2" />
																		<img src="../images/file/htm.gif" width="16"
																			height="16" />
																	</td>
																	<td width="54">
																		<input type="radio" name="radiobutton" value="3"
																			id="icon3" />
																		<img src="../images/file/note1.gif" width="16"
																			height="16" />
																	</td>
																	<td width="49">
																		<input type="radio" name="radiobutton" value="4"
																			id="icon4" />
																		<img src="../images/file/other.gif" width="16"
																			height="16" />
																	</td>
																	<td width="52">
																		<input type="radio" name="radiobutton" value="5"
																			id="icon5" />
																		<img src="../images/file/ppt.gif" width="16"
																			height="16" />
																	</td>
																	<td width="61">
																		<input type="radio" name="radiobutton" value="6"
																			id="icon6" />
																		<img src="../images/file/zip.gif" width="16"
																			height="16" />
																	</td>
																</tr>
																<tr>
																	<td height="26" valign="top">
																		<input type="radio" name="radiobutton" value="7"
																			id="icon7" />
																		<img src="../images/file/excel.gif" width="16"
																			height="16" />
																	</td>
																	<td valign="top">
																		<input type="radio" name="radiobutton" value="8"
																			id="icon8" />
																		<img src="../images/file/media.gif" width="16"
																			height="16" />
																	</td>
																	<td>
																		<input type="radio" name="radiobutton" value="9"
																			id="icon9" />
																		<img src="../images/file/pdf.gif" width="16"
																			height="16" />
																	</td>
																	<td>
																		<input type="radio" name="radiobutton" value="10"
																			id="icon10" />
																		<img src="../images/file/access.gif" width="16"
																			height="16" />
																	</td>
																	<td>
																		<input type="radio" name="radiobutton" value="11"
																			id="icon11" />
																		<img src="../images/file/word.gif" width="16"
																			height="16" />
																	</td>
																	<td>
																		<input type="radio" name="radiobutton" value="12"
																			id="icon12" />
																		<img src="../images/file/wri.gif" width="16"
																			height="16" />
																	</td>
																</tr>
															</table>
														</td>
													</tr>
													<tr>

														<td height="19" colspan="7">
															<hr />
														</td>
													</tr>
													<tr>
														<td>
															<table width="100%" border="0">
																<!--DWLayoutTable-->
																<tr>
																	<td height="62">
																		<center>
																			名称
																		</center>
																	</td>
																	<td>
																		<center>
																			大小
																		</center>
																	</td>
																	<td>
																		<center>
																			类型
																		</center>
																	</td>
																	<td>
																		<center>
																			创建日期
																		</center>
																	</td>
																</tr>
																<c:forEach var="items"
																	items="${sessionScope.UploadFileList}">
																	<c:if test="${items.fileState!=0}">
																		<tr>
																			<td height="17">
																				<center>
																					${items.fileName}
																				</center>
																			</td>
																			<td>
																				<center>
																					${items.fileLength/1000.0 } kb
																				</center>
																			</td>
																			<td>
																				<center>
																					${items.fileTypeId}
																				</center>
																			</td>
																			<td>
																				<center>
																					${items.createDate}
																				</center>
																			</td>
																			<td width="13">
																				<center>
																					<a
																						href="logicdeletefiles.do?fileId=${items.fileId}&fileState=${items.fileState}">
																						<img src="../images/file/delete.gif" width="13"
																							height="15" border="none" align="middle"
																							title="将文件放入回收站" /> </a>
																				</center>
																			</td>
																		</tr>
																	</c:if>
																</c:forEach>
															</table>
													</tr>

													<tr>
														<td height="38" colspan="7">

															<table width="100%" border="0" cellpadding="0"
																cellspacing="0">
																<!--DWLayoutTable-->
																<tr>
																	<td width="530" height="15">
																		文件名:
																		<input type="file" name="choosePath" size="35"
																			style="cursor: hand" onchange="" id="notNull" />

																		<input name="Submit" type="submit" class="buttonCss"
																			value="上传" />
																		<input name="Exit" type="reset" class="buttonCss"
																			value="退出" />
																	</td>
																</tr>
															</table>
														</td>
													</tr>
												</table>
											</form>
										</td>
									</tr>
									<tr>
										<td height="300" valign="top">
											<div id="sidenav" style="cursor: help">
												<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 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>
									</tr>
								</table>
							</td>
						</tr>
					</table>
				</td>
			</tr>
		</table>
	</body>
</html>

⌨️ 快捷键说明

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