📄 upload.jsp
字号:
<Script Language="JavaScript">
function mycheck(){
if(document.form1.title.value == ""){
alert("请给出文件名称!");
return;
}
else if(document.form1.keyword.value==""){
alert("请给出文件关键字!");
return;
}
else if(document.form1.receipt.value==""){
alert("请给出接收人!");
return;
}
else if(document.form1.sender.value==""){
alert("请给出发送人!");
return;
}
else if(document.form1.origin.value==""){
alert("请给出发文来源!");
return;
}
else if(document.form1.urlfile.value==""){
alert("请选择文件!");
return;
}
document.form1.submit();
}
</script>
<%@ page contentType="text/html; charset=gb2312" language="java" import="java.sql.*" errorPage="" %>
<%request.setCharacterEncoding("gb2312");%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>文件上传</title>
<style type="text/css">
<!--
.style1 {font-size: larger}
.style3 {color: #FF0000}
.style4 {color: #0000FF}
.style8 {font-size: 12px}
body {
background-color: #FFFFCC;
}
-->
</style>
</head>
<body>
<table width="848" height="575" border="0">
<tr bgcolor="#6699CC">
<td height="69" colspan="2"><img src="image/105948-10.gif" width="350" height="65"></td>
</tr>
<tr>
<td width="7" rowspan="2" bgcolor="#FFFFFF"><p align="center"> </p>
<div align="center"></div></td>
<td width="988" height="106" align="center"><div align="left">
<div align="center">
<div align="right">
<div align="justify">
<div align="center">
<pre class="style1">当前-><span class="style4">上传文件</span> <span class="style3"><a href="query.jsp">查询文件</a></span> <span class="style3"><a href="modify.jsp">修改路径</a>
</span></pre>
</div>
</div>
</div>
</div>
</div></td>
</tr>
<tr>
<td width="988" align="left" valign="top"><form name="form1" method="post" enctype="multipart/form-data" action="result_of_upload.jsp">
<table width="781" height="283" border="0">
<tr>
<th width="139" height="29" scope="col">文件名称:</th>
<th width="632" scope="col"><div align="left">
<input name="title" type="text" id="title6" size="50">
</div></th>
</tr>
<tr>
<th height="29">文件关键字:</th>
<td><input name="keyword" type="text" id="keyword4" value="无" size="50"></td>
</tr>
<tr>
<th height="27">接收人:</th>
<td><input name="receipt" type="text" id="receipt4" value="科委" size="30">
</td>
</tr>
<tr>
<th height="24">发送人:</th>
<td><input name="sender" type="text" id="sender4" value="周路" size="30">
</td>
</tr>
<tr>
<th height="26">发文来源:</th>
<td><input name="origin" type="text" size="50">
例:政府办</td>
</tr>
<tr>
<th height="32">文件类别:</th>
<td><select name="kind" id="select3">
<option value="通知">通知</option>
<option value="通报">通报</option>
<option value="函">函</option>
<option value="请示">请示</option>
<option value="报告">报告</option>
<option value="批复">批复</option>
<option value="意见">意见</option>
<option value="会议纪要">会议纪要</option>
<option value="决定">决定</option>
</select></td>
</tr>
<tr>
<th height="35">文件位置:</th>
<th><div align="left">
<input name="urlfile" type="file" size="50">
</div></th>
</tr>
<tr>
<td height="27" colspan="2"><div align="center"><span class="style8">注:以上信息都是必须填写的</span> </div></td>
</tr>
<tr>
<td height="34" colspan="2">
<div align="center">
<input type="button" name="Submit" value="提交" onClick="mycheck()">
<input name="reset" type="reset" id="reset" value="重置">
</div></td>
</tr>
</table>
<p align="right">退出系统<a href="logoff.jsp"><img src="image/smile.jpg" width="34" height="24" border="0"></a></p>
</form></td>
</tr>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -