📄 upload_script.jsp
字号:
<%@ page contentType="text/html;charset=GB2312" %>
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
<%
response.setHeader("Pragma", "No-cache");
response.setHeader("Cache-Control", "no-cache");
response.setDateHeader("Expires", 0);
%>
<%
String ctx = request.getContextPath();
%>
<HTML><HEAD><TITLE>上传文档</TITLE>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="<%=ctx%>/include/style.css">
<style type="text/css">
<!--
.style1 {font-size: 16px}
.style3 {font-size: 14px}
.style4 {color: #FF0000}
-->
</style>
<BODY text=#000000 leftMargin=0 background=<%=ctx%>/images/grid.gif topMargin=10>
<form name="form1" method="post" enctype="multipart/form-data">
<input type="hidden" name="projectno" value='<c:out value="${param.projectno}"/>' >
<br>
<TABLE cellSpacing=1 borderColorDark="#dfdfff" cellPadding=2
width="90%" align=center bgColor=#b3c4db borderColorLight="#003366" border=0>
<TBODY>
<tr bgcolor="#a6d0f2">
<TD height=27 colspan="4" align=left>
<div align="center" class="unnamed2 style3"><span class="style1">上 传 底 稿</span></div></td>
<TR style="display:block">
<TD width="20%" height=21 align=right bgColor=#eef4ff class="unnamed1">选择xml数据文件:</TD>
<TD width="32%" height=30 align="left" bgColor=#eef4ff >
<input name="script" type="file" size="16" >
</TD>
</TR>
<TR>
<TD height=30 align="right" bgColor=#eef4ff class="unnamed1" colspan="2"><div align="center">
<img src="<%=request.getContextPath()%>/images/confirm.gif" style="cursor:hand" align="absmiddle" onClick="save()">
<img src="<%=request.getContextPath()%>/images/return.gif" style="cursor:hand" align="absmiddle" onClick="_return()"></div></TD>
</TR>
</TABLE>
</form>
<script language="javascript">
function save()
{
if(form1.script.value=="")
{
alert("请选择xml数据文件");
}
else
{
form1.action = "<%=ctx%>/servlet/ScriptImportServlet";
form1.submit();
}
}
function _return()
{
var projno = '<c:out value="${param.projectno}"/>';
window.location = "<%=ctx%>/servlet/ShowScriptListServlet?type=manage&projNo=" + projno;
}
</script>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -