|
|
@@ -9,41 +9,43 @@ |
|
|
|
<body> |
|
|
|
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0"> |
|
|
|
<tr> |
|
|
|
<td align="center" valign="top"> |
|
|
|
<td align="center"> |
|
|
|
<script language="javascript"> |
|
|
|
var i=1; |
|
|
|
function make_upload() |
|
|
|
{ |
|
|
|
i++; |
|
|
|
myob = document.getElementById("upfield"); |
|
|
|
myob.innerHTML+="<p>文件"+i+":<input type='file' name='upfile"+i+"' style='width:260px'></p>"; |
|
|
|
myob.innerHTML+="<p>文件"+i+":<input type='file' name='upfile"+i+"' style='width:380px'></p>"; |
|
|
|
} |
|
|
|
function reset_upload() |
|
|
|
{ |
|
|
|
myob = document.getElementById("upfield"); |
|
|
|
myob.innerHTML="<p>文件1:<input type='file' name='upfile1' style='width:260px'></p>"; |
|
|
|
myob.innerHTML="<p>文件1:<input type='file' name='upfile1' style='width:380px'></p>"; |
|
|
|
} |
|
|
|
</script> |
|
|
|
<form method="POST" enctype="multipart/form-data" action="file_manage_control.php" name="form1"> |
|
|
|
<input type='hidden' name='activepath' value="{dede:global name='activepath'/}"> |
|
|
|
<input type='hidden' name='fmdo' value="upload"> |
|
|
|
<table border="0" cellpadding="0" cellspacing="0" width="600" class="mt-5" style="border-collapse:collapse"> |
|
|
|
</script> |
|
|
|
<form method="POST" enctype="multipart/form-data" action="file_manage_control.php" name="form1"> |
|
|
|
<input type='hidden' name='activepath' value="{dede:global name='activepath'/}"> |
|
|
|
<input type='hidden' name='fmdo' value="upload"> |
|
|
|
<table border="0" cellpadding="0" cellspacing="0" width="100%" class="mt-3" style="border-collapse:collapse"> |
|
|
|
<tr> |
|
|
|
<td width="10%" height="36" valign="top"></td> |
|
|
|
<td width="90%" style="padding-bottom:1rem"> |
|
|
|
<td width="160"></td> |
|
|
|
<td style="padding-bottom:1rem"> |
|
|
|
<input type="button" class="btn btn-success btn-sm" value="增加上传框" name="bbb" class="bt1" onClick="make_upload();"> |
|
|
|
<a class="btn btn-success btn-sm" href="file_manage_main.php?activepath={dede:global name='activepath'/}">返回目录{dede:global name='activepath'/}</a> |
|
|
|
</td> |
|
|
|
</tr> |
|
|
|
<tr> |
|
|
|
<td width="10%"></td> |
|
|
|
<td width="90%"> |
|
|
|
<div id="upfield"><p>文件1:<input type='file' name='upfile1' style='width:260px'></p></div> |
|
|
|
<td width="160"></td> |
|
|
|
<td> |
|
|
|
<div id="upfield"> |
|
|
|
<p>文件1:<input type='file' name='upfile1' style='width:380px'></p> |
|
|
|
</div> |
|
|
|
</td> |
|
|
|
</tr> |
|
|
|
<tr> |
|
|
|
<td width="10%"></td> |
|
|
|
<td width="90%" height="36"> |
|
|
|
<td width="160"></td> |
|
|
|
<td height="36"> |
|
|
|
<input type="submit" class="btn btn-success btn-sm" value="上传文件" name="B1"> |
|
|
|
<input type="button" class="btn btn-success btn-sm" value="重设表单" name="B12" onClick="reset_upload();"> |
|
|
|
</td> |
|
|
|