📄 addfile.asp
字号:
<!--#include virtual="/include/check.asp"-->
<% CheckAdminIsLogin("上传文件") %>
<!--#include virtual="/include/conn.asp"-->
<!--#include virtual="/include/UpLoadClass1.asp"-->
<%
if request.QueryString("action")="add" then
if Request2.Form("FileName")="" then
response.write "<script>alert('请选择您要上传的文件!');history.go(-1);</script>"
response.end
end if
conn.execute ("Insert into UpFile (FileName,FileClass,ChangeDate) values ('"&Request2.Form("FileName")&"','"&request2.form("FileClass")&"','"&date()&"') ")
response.write "<script>alert('提交成功!');history.go(-1);</script>"
end if
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<script language="javascript" src="/js/Manage.js" type="text/javascript"></script>
<link href="../css/style.css" rel="stylesheet" type="text/css">
</head>
<body style="margin-bottom: 20px">
<form name="myform" method="post" enctype="multipart/form-data" action="?action=add" onsubmit="return CheckAddFile();">
<INPUT type="hidden" name="ProContent" value="">
<table width="100%" border="0" align="center" cellpadding="2" cellspacing="1" class="tableBorder">
<tr><th colspan="2">== 添加文件 ==</th></tr>
<tr>
<td height="22" align="right" class="forumRowHighlight" style="width: 12%">
文件类型:</td>
<td width="60%" class="forumRow">
<select name="FileClass">
<option value="1">图片</option>
<option value="2">word</option>
<option value="3">Excel</option>
</select><input name="VideoClassID" type="hidden" value='<%=Request.QueryString("id")%>'></td>
</tr>
<tr>
<td height="22" align="right" class="forumRowHighlight" style="width: 12%">
上传文件:</td>
<td width="60%" class="forumRow">
<input name="FileName" type="file" id="SmallPic" size="40" value=""></td>
</tr>
<tr>
<td height="22" align="center" class="forumRowHighlight" colspan="2">
<input type=Submit class=button value="提 交" name=Submit>
<input type=reset name=Submit2 class=button value="清 除"> </td>
</tr>
</table>
</form>
</body>
</html>
<% ConnClose() %>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -