87,903
社区成员
发帖
与我相关
我的任务
分享
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Upload information</title>
</head>
<body>
<div id="dcontent">
<form method="post" enctype="multipart/form-data">
<div id="dinfo">
<table id="tMemberInput">
<tr>
<td>
<button onclick="myFunction3()">byhand</button>
<button onclick="myFunction4()">excel</button>
<div id="byhand" style="display:block">//对于 type为text的表单所在div
<form method="post" enctype="multipart/form-data" >
<table id="paper">
<tr>
<td>Title</td>
<td><input type="text" name="session"></td>
</tr>
<tr>
<td>Author</td>
<td><input type="text" name="author"></td>
</tr>
<tr>
<td>E-Mail</td>
<td><input type="text" name="email"></td>
</tr>
</table>
</form>
</div>
<div id="excel" style="display:none">//对于 type为excel的表单所在div
<form method="post" enctype="multipart/form-data">
<input type="file" name="excel">
</form>
</div>
</td>
</tr>
<tr>
<td>
<table id="tMemberExcel">
</table>
</td>
</tr>
</table>
</div>
<div id="dSubmit">
<input type="submit" name="submit" value="SUMBIT">
</div>
</form>
</div>
<script>
function myFunction3()
{
var byhand =document.getElementById("byhand");
byhand.style.display="block";
var excel =document.getElementById("excel");
excel.style.display="none";
}
</script>
<script>
function myFunction4()
{
var byhand =document.getElementById("byhand");
byhand.style.display="none";
var excel =document.getElementById("excel");
excel.style.display="block";
}
</script>
</body>
</html>