⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 downloadmanageadd.asp

📁 这个也是一个功能强大的企业整站的ASP源代码
💻 ASP
字号:
<!--#include file="CheckAdminLogined.asp"-->
<!--#include file="../include/connstr.asp"-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="Images/AdminCss.css" rel="stylesheet" type="text/css">
<script language="JavaScript">
function check_data(){
 document.form1.Content.value = frames.message.document.body.innerHTML;
 if(document.form1.viewhtml.checked == true){
   alert("对不起,请取消“查看HTML源代码”后再添加!")
   document.form1.viewhtml.focus()
   return false
 }
 
 if(document.form1.T_Title.value==""){
   alert("下载资料标题为必填项,请填写!")
   document.form1.T_Title.focus();
   return(false)
 }

 if(document.form1.T_DownFile.value==""){
   alert("下载资料为必填项,请填写!")
   document.form1.T_Title.focus();
   return(false)
 }
 
 if(document.form1.Content.value==""){
   alert("资料介绍为必填项,请填写")
   document.form1.viewhtml.focus()
   return(false)
 }

 if(document.form1.T_AddTime.value==""){
   alert("添加时间为必填项,请填写")
   document.form1.T_AddTime.focus()
   return(false)
 }

}
</script>
</head>

<body leftmargin="0" topmargin="0" onLoad="javascript:frames.message.document.body.innerHTML = document.form1.Content.value;">
<table width="99%" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr> 
    <td height="8" colspan="2"></td>
  </tr>
  <tr> 
    <td width="76" height="20" rowspan="2"><img src="Images/TopBt.gif" width="67" height="36"></td>
    <td width="897" height="10"></td>
  </tr>
  <tr>
    <td>我的位置:后台管理系统._资料下载管理._发布下载资料</td>
  </tr>
  <tr> 
    <td height="4" colspan="2"></td>
  </tr>
  <tr> 
    <td colspan="2"><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="E7E7E7">
        <tr> 
          <td height="20"><table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr> 
                <td width="159" height="20" align="center" background="images/title1.gif" class="fontwintitle"><strong>发布下载资料</strong></td>
                <td align="right" background="images/title2.gif"><img src="Images/Topicon.gif" width="11" height="11" align="absmiddle"><a href="DownLoadManage.asp">&nbsp;<font color="#FF0000"><strong>资料下载管理</strong></font></a></td>
                <td width="10"><img src="images/title3.gif" width="10" height="20"></td>
              </tr>
            </table></td>
        </tr>
        <tr valign="top"> 
          <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr> 
                <td width="6" background="images/midder1.gif"><img src="images/midder1.gif" width="6" height="3"></td>
                <td height="100%" align="center" valign="top"><br>
                  <table width="98%" border="0" cellpadding="0" cellspacing="1" bgcolor="#000000">
                    <form action="DownLoadManageAddSave.asp" method="post" enctype="multipart/form-data" name="form1" onsubmit="return check_data()">
                      <tr bgcolor="#FFFFFF"> 
                        <td width="19%" height="22" align="right" bgcolor="ECF2D6">* 
                          下载资料标题:</td>
                        <td width="81%">&nbsp; <input name="T_Title" type="text" id="T_Title" size="50"> 
                        </td>
                      </tr>
                      <tr bgcolor="#FFFFFF"> 
                        <td height="22" align="right" bgcolor="ECF2D6">* 所属类别:</td>
                        <td>&nbsp; <select name="S_ClassID" id="S_ClassID">
                            <%set rs_ClassID=conn.execute("select * from tSystemSmallClass where BigClassID='Download' order by AddTime desc")
							do while not rs_ClassID.eof
							  if request("S_ClassID")=rs_ClassID("ID") then
							    response.write "<option value='"&rs_ClassID("ID")&"' selected>"&rs_ClassID("SClassName")&"</option>"
							  else
							    response.write "<option value='"&rs_ClassID("ID")&"'>"&rs_ClassID("SClassName")&"</option>"
							  end if
							  rs_ClassID.movenext
							loop
							rs_ClassID.close
							set rs_ClassID=nothing
						  %>
                          </select> </td>
                      </tr>
                      <tr bgcolor="#FFFFFF"> 
                        <td height="22" align="right" bgcolor="ECF2D6">* 下载资料:</td>
                        <td>&nbsp; <input name="T_DownFile" type="file" id="T_DownFile" size="50"></td>
                      </tr>
                      <tr bgcolor="#FFFFFF"> 
                        <td height="22" align="right" bgcolor="ECF2D6">* 资料介绍:</td>
                        <td align="center"> <table width="97%" border="0" cellpadding="0" cellspacing="0">
                            <tr> 
                              <td colspan="2" height="3"></td>
                            </tr>
                            <tr> 
                              <td> <%UploadFilePathTemp="/UploadFile/Donwload"%> <!--#include file="ArticleEditor/ArticleEdit.asp"--> <script language="javascript">
                                   document.write ('<iframe src="ArticleEditor/Textbox.asp?cur_action=add" id="message" width="100%" height="350"></iframe>')
                                   frames.message.document.designMode = "On";
                                </script> <input type="hidden" name="Content" value=""> 
                                <input name="UploadFile" type="hidden" id="UploadFile"> 
                              </td>
                            </tr>
                            <tr> 
                              <td colspan="2" height="3"></td>
                            </tr>
                          </table></td>
                      </tr>
                      <tr bgcolor="#FFFFFF"> 
                        <td height="22" align="right" bgcolor="ECF2D6">* 添加时间:</td>
                        <td>&nbsp; <input name="T_AddTime" type="text" id="T_AddTime" value="<%=now()%>"></td>
                      </tr>
                      <tr bgcolor="#FFFFFF"> 
                        <td height="40" colspan="2" align="center" bgcolor="#FFFFFF"> 
                          <input type="submit" name="Submit" value="确定发布"> <input type="reset" name="Submit2" value="重新填写"></td>
                      </tr>
                    </form>
                  </table>
				  <br> 
                  <br> </td>
                <td width="2" background="images/midder2.gif"><img src="images/midder2.gif" width="2" height="3"></td>
              </tr>
              <tr> 
                <td valign="top"><img src="images/bottom1.gif" width="6" height="14"></td>
                <td height="14" valign="top" background="images/bottom2.gif"><img src="images/bottom2.gif" width="2" height="14"></td>
                <td valign="top"><img src="images/bottom3.gif" width="2" height="14"></td>
              </tr>
            </table></td>
        </tr>
      </table></td>
  </tr>
</table>
</body>
</html>
<script src="ArticleEditor/Edit.js" type="text/javascript"></script>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -