?? manage_file_add.asp
字號:
<%
'功能:增加文件信息
'參數(shù):request("typeid")=int #當(dāng)前文件夾ID; request("page")=int #當(dāng)前頁碼
%>
<!--#include file="../inc/Secure.asp"-->
<!--#include file="../inc/conn.asp"-->
<!--#include file="../inc/Const.asp"-->
<%
'response.buffer=false
'------------------------------------------------設(shè)置參數(shù)
LoginID=trim(session("LoginID")) : if LoginID="" then LoginID=0 '當(dāng)前用戶ID
typeid=request("typeid") : if typeid="" then typeid=1 '當(dāng)前文件夾ID
currentpage=request("page") : if currentpage="" then currentpage=1 '當(dāng)前頁碼
'------------------------------------------------
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="../css/main.css" type=text/css>
<title>main</title>
<base target="FrmMain">
<script src="../js/front_chec.js"></script>
<script language="JavaScript">
<!--
function require(form){
return checnull(form.name,"請?zhí)顚懳募?quot;)&&
checnull(form.url,"請確定要上傳的文件!")
}
-->
</script>
</head>
<body topmargin="10" leftmargin="10">
<!--#include file="manage_menu.html"-->
<hr width="100%" size=1 color="#000000">
<!--#include file="file_head.html"-->
<table width="100" border=0 cellspacing="0" cellpadding="0">
<tr>
<td width=100><img border=0 src=../images/icon_show.gif align=left width=16 height=16><a href="manage_file_index.asp?typeid=<%=typeid%>&page=<%=currentpage%>">返回文件夾</a></td>
</tr>
</table>
<hr width="100%" size=1 color="#000000">
<br>
<div align="center">
<table width="350" cellspacing="1" cellpadding="2" class="tab">
<tr>
<td width="100%" class="tdTop">
<table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr>
<td class="tdTop">
<p align="left"><img border="0" src="../images/icon_title.gif" align="left">添加文件</p>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td width="25%" class="td1">
<form name="eventfrm" method="POST" enctype="multipart/form-data" action="manage_file_save.asp" onSubmit="return require(this)">
<input type=hidden name="addedit_subed" value="true">
<input type=hidden name="typeid" value="<%=typeid%>">
<input type=hidden name="page" value="<%=currentpage%>">
<table width="100%" cellspacing="3" cellpadding="2">
<tr>
<td width="70" class="td1" align="right"><font COLOR="RED">*</font> 文件名:</td>
<td class="td1"><input type="text" name="name" size="30" maxlength="50" class="input"></td>
</tr>
<tr>
<td width="70" class="td1" align="right">文件:</td>
<td class="td1"><input type=file name="url" size=20 class="input"></td>
</tr>
<tr>
<td width="70" class="td1" align="right">介紹:</td>
<td class="td1"><textarea rows=5 name="body" cols=30 class=fstyle></textarea></td>
</tr>
<tr>
<td class="tdBottom" colspan="2"></td>
</tr>
<tr>
<td class="td1" width="100%" colspan="4">
<input type="submit" value="確定" name="B1" class="button0" onmouseout=className="button0" onmouseover=className="button1"> <input type="reset" value="全部重寫" name="B2" class="button0" onmouseout=className="button0" onmouseover=className="button1">
</td>
</tr>
</table>
</form>
</td>
</tr>
<tr>
<td width="25%" class="tdBottom">
</td>
</tr>
</table>
</div>
</body>
</html>
<%'釋放對象變量
oConn.close
%>
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -