<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="/back/header.jsp"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>添加简历模板</title>
<META http-equiv=Content-Type content="text/html; charset=UTF-8">
<LINK href="../css/admin.css" type="text/css" rel="stylesheet">
</head>
<script type="text/javascript">
function addfile(){
var files = document.getElementById("files");
var input = document.createElement("input");
input.type='file';
input.name='file';
var btn = document.createElement("input");
btn.type = 'button';
btn.value = '删除';
btn.onclick = function del(){
this.parentNode.parentNode.removeChild(this.parentNode);
}
var div = document.createElement("div");
div.appendChild(input);
div.appendChild(btn);
files.appendChild(div);
}
</script>
<body>
<div id="menu">
<%@ include file="/back/menu.jsp"%>
</div>
<div id="main">
<br/>
<div class="right1">现在的位置>>添加简历模板</div>
<br/>
<center>
<form action="${pageContext.request.contextPath}/servlet/FileServlet?method=upload"
method="post" enctype="multipart/form-data">
<table>
<tr>
<td align="center">请添加 .doc 或 .docx 格式的文件。</td>
</tr>
<tr>
<td>上传文件: <input type="button" value="添加上传文件" onclick="addfile()">
</td>
</tr>
<tr>
<td></td>
<td>
<div id="files"></div></td>
</tr>
<tr>
<td></td>
<td><input type="submit" value="上传"></td>
</tr>
</table>
</form>
</center>
</div>
</body>
</html>
文件上传
最新推荐文章于 2025-04-13 14:57:16 发布