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

📄 download_add.asp

📁 狼道公司源码下载
💻 ASP
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<!--#include file="../Inc/Conn.asp" -->
<!--#include file="Check.asp" -->

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<LINK href="style.css" type=text/css rel=stylesheet>
<style type="text/css">
<!--
.STYLE1 {color: #FF0000}
-->
</style>
</head>
<body leftmargin=0 bottommargin=0 rightmargin=0 topmargin=0>
<script src="images/admin.js" type="text/javascript"></script>
<div class=menuskin id=popmenu 
      onmouseover="clearhidemenu();highlightmenu(event,'on')" 
      onmouseout="highlightmenu(event,'off');dynamichide(event)" style="Z-index:100"></div>
<div align=center>
  <!--#include file="Top.asp" -->
  <form name="AddForm" method="post" action="DownLoad_OK.asp">
  <table cellpadding="2" cellspacing="1" border="0" width="96%" class="tableBorder" align=center>
<tr>
  <th colspan=2 height=25>添加下载资料</th>
</tr>
<tr><td class=BodyTitle colspan=2 height=23 style="FONT-SIZE: 9pt; FILTER: dropshadow(color=#FFFFFF,offx=1,offy=1); COLOR: #000000;">&nbsp;</td>
</tr>
<tr>
  <td width="20%" height=24 align="right" class="forumRowHighlight">资料类别:</td>
  <td class="forumRow"><select name="ClassID" id="ClassID">
    <option value="">选择资料类别</option>
    <%
		Set rs=server.CreateObject("adodb.recordset")
		sql="select * from DownClass Order by OrderID"
		rs.open sql,conn,1,1
		do while not rs.eof
%>
    <option value="<%=rs("ID")%>" <%=Sel%>><%=rs("Title")%>(<%=rs("EnTitle")%>)</option>
    <%
		rs.movenext
		loop
		rs.close
		
%>
  </select></td>
  </tr>
<tr>
  <td height=24 align="right" class="forumRowHighlight">资料名称(中文):</td>
  <td class="forumRow"><input name="Title" type="text" id="Title" size="40">
    <span class="forumRowHighlight">
    <input name="act" type="hidden" id="act" value="add">
    <input name="DownAddress" type="hidden" id="DownAddress" value="0">
    </span></td>
  </tr>
<tr>
  <td height=24 align="right" class="forumRowHighlight">资料名称(英文):</td>
  <td class="forumRow"><input name="EnTitle" type="text" id="EnTitle" size="40"></td>
  </tr>
<tr>
  <td height=24 align="right" class="forumRowHighlight">资料大小:</td>
  <td class="forumRow"><input name="Size1" type="text" id="Size1">
    KB</td>
</tr>
<tr>
  <td height=24 align="right" class="forumRowHighlight">资料上传:</td>
  <td class="forumRow"><span class="STYLE2">
    <input  name=DownAddress1 id=DownAddress1 size="40">
    <input type="button" name="Submit3" value=" 上 传 " onClick="openWindow('2');">
  </span></td>
  </tr>
<tr id="ShowLogo">
  <td height=24 align="right" valign="middle" class="forumRowHighlight">详细说明(中文):</td>
  <td valign="bottom" class="forumRow"><textarea name="Content" cols="80" rows="12" id="Content"></textarea></td>
  </tr>
<tr id="ShowLogo">
  <td height=24 align="right" class="forumRowHighlight">详细说明(英文):</td>
  <td height=24 align="left" class="forumRowHighlight"><span class="forumRow">
    <textarea name="EnContent" cols="80" rows="12" id="EnContent"></textarea>
  </span></td>
</tr>
<tr>
  <td height=31 colspan="2" align="center" class="forumRowHighlight"><input type="submit" onClick="return CheckForm();" name="Submit" value=" 提 交 ">
    &nbsp;&nbsp;&nbsp;&nbsp; <input type="reset" name="Submit2" value=" 重 置 "></td>
</tr>
</table>
  </form>
  <BR>
<BR>
</div>
</body></html>
<SCRIPT language=javascript>
      function openWindow(ID) { 
       var stly="toolbar=no,top=200,left=300,location=no,status=no,menubar=no,scrollbars=no,resizable=no,width=420,height=180";
       url="xgsoft.asp?ID="+ID
       window.open(url,"new",stly);
      }
	  
function CheckForm()
{
	if (document.AddForm.ClassID.value == "")
     {
	   alert("请选择资料类别!");
	   document.AddForm.ClassID.focus();
	   return false;
     }		 

	if (document.AddForm.Title.value == "")
     {
	   alert("您添加的资料名称不能为空!");
	   document.AddForm.Title.focus();
	   return false;
     }	
} 	  
</SCRIPT>

⌨️ 快捷键说明

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