📄 upload.jsp
字号:
<%@ page contentType = "text/html;charset=GBK"%>
<%@ taglib uri="/WEB-INF/tag.tld" prefix="tag" %>
<script type='text/javascript' language='JavaScript' src='<%=request.getContextPath()%>/js/uploadjpg.js'></script>
<link href="<%=request.getContextPath()%>/css/commonPage.css" rel="stylesheet" type="text/css">
<html>
<center>
<%
String info = (String)request.getAttribute("info");
if(info!=null){
%>
<script>
alert("<%=info%>");
window.parent.location.reload();
</script>
<%
return;
}
%>
</center>
<div>
<form class="list_condition_td_input" id="img_form" method="post" action="../uploadcontract.do" enctype="multipart/form-data">
<table class="list_condition_td_input">
<tr>
<td >
<input type="hidden" name="actionType" value="upload">
<input type="hidden" id="ryid" name="id" value="<%= request.getParameter("rid") %>">
<input size=50 type="file" id="xppath" name="xp" value="" onchange="">
<input size=50 type="file" id="xppath2" name="xp2" value="" onchange="">
<input size=50 type="file" id="xppath3" name="xp3" value="" onchange="">
<input size=50 type="file" id="xppath4" name="xp4" value="" onchange="">
<input size=50 type="file" id="xppath5" name="xp5" value="" onchange="">
<input size=50 type="file" id="xppath6" name="xp6" value="" onchange="">
<input size=50 type="button" value="上传" id="UploadButton" onclick="post_img()"/>
<script>
function post_img(){
rid=document.getElementById("ryid").value;
if(rid==null||rid==''){
alert("请先将合同信息录入后,再上传合同");
return;
}else{
xppath=document.getElementById("xppath").value;
if(xppath==null||xppath==''){
alert("请指定合同上传路径");
return;
}else{
xpheight=document.getElementById("xppath").height;
}
document.getElementById("img_form").submit();
}
}
</script>
</tr>
<table>
</form>
</div>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -