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

📄 edit.asp

📁 电子书下载系统 后台管理:admin/index.asp 超级用户:admin 密码:admin 请在db/usre.asp,admin/usres更新数据库地址,防止他人下载。 建议把.
💻 ASP
字号:
<%@ CODEPAGE = "936" %>
<!--#include file="users.asp" -->
<!--#include file="jl.asp" -->
<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<title>修 改 下 载 程 序</title>
<link rel="stylesheet" type="text/css" href="style.css">
</head>
<%
dim rs
dim sql
dim count
set rs=server.createobject("adodb.recordset")
sql = "select * from Nclass order by Nclassid asc"
rs.open sql,conn,1,1
%>
<SCRIPT language = "JavaScript">
var onecount;
onecount=0;
subcat = new Array();
        <%
        count = 0
        do while not rs.eof 
        %>
subcat[<%=count%>] = new Array("<%= trim(rs("Nclass"))%>","<%= trim(rs("classid"))%>","<%= trim(rs("Nclassid"))%>");
        <%
        count = count + 1
        rs.movenext
        loop
        rs.close
        %>
onecount=<%=count%>;

function changelocation(locationid)
    {
    document.myform.Nclassid.length = 0; 

    var locationid=locationid;
    var i;
    for (i=0;i < onecount; i++)
        {
            if (subcat[i][1] == locationid)
            { 
                document.myform.Nclassid.options[document.myform.Nclassid.length] = new Option(subcat[i][0], subcat[i][2]);
            }        
        }
        
    }    
</SCRIPT>
<body bgcolor=#0066FF>
<form method="POST"  name="myform"  action="df.asp?id=<%=request("id")%>&action=edit">
  <TABLE width="602" border="0" align="center" cellspacing="1">
    <TR align="center" bgcolor="#999999"> 
      <TD colspan="4" height="30" width="594"><b><FONT color="#FFFFFF">修 改 下 载 
        程 序</FONT></b></TD>
    </TR>
    <tr> 
      <td width="75" align="right" valign="top" height="30" bgcolor="#CCCCCC"><b><font color="#FF0000">软件类型:</font></b></td>
      <td width="225" bgcolor="#CCCCCC" height="30"> 
        <SELECT name="classid" onChange="changelocation(document.myform.classid.options[document.myform.classid.selectedIndex].value)" size="1">
          <%dim classid,Nclassid
	classid=request("classid")
	Nclassid=request("Nclassid")
  sql="select * from class"
 	rs.open sql,conn,1,1
	if rs.eof and rs.bof then
		response.write "Not record."
	else
	do while not rs.eof
        if classid=cstr(rs("classid")) then
               sel="selected"
        else
               sel=""
        end if	
	response.write "<option " & sel & " value='"+CStr(rs("classID"))+"' name=classid>"+rs("class")+"</option>"+chr(13)+chr(10)
	rs.movenext
    	loop
	end if
	rs.close
%>
        </SELECT>
      </td>
      <td width="75" bgcolor="#CCCCCC" align="right" height="30"> <B>选择分类:</B> 
      </td>
      <td width="225" bgcolor="#CCCCCC" height="30"> 
        <SELECT name="Nclassid" size="1">
          <%             
  	sql="select * from Nclass"             
 	rs.open sql,conn,1,1             
	if rs.eof and rs.bof then             
		response.write "Not record."             
	else             
        do while not rs.eof             
        if Nclassid=cstr(rs("Nclassid")) then             
               sel="selected"             
        else             
               sel=""             
        end if	             
        response.write "<option " & sel & " value='" +  Cstr(rs("Nclassid")) + "'>" + rs("Nclass") + "</option>"             
        rs.MoveNext             
        Loop             
	end if             
        rs.close             
%>
        </SELECT>
      </td>
    </tr>
    <%             
	sql="select * from download where id="&request("id")             
	rs.open sql,conn,1,1             
%>
    <tr> 
      <td width="75" align="right" height="39" bgcolor="#CCCCCC"><b><font color="#FF0000">软件</font></b><font color="#FF0000"><b>名称:</b></font></td>
      <td width="225" height="39" bgcolor="#CCCCCC"> <FONT color="#FF0000"> 
        <input type="text" name="name" size="33" maxlength="100" value="<%=rs("name")%>">
        </FONT></td>
      <td width="75" height="39" bgcolor="#CCCCCC" align="right"> <b>软件版本:</b></td>
      <td width="225" height="39" bgcolor="#CCCCCC"> 
        <input type="text" name="size" size="33"             
          class="smallinput" maxlength="100" value="<%if rs("size")<>"" then%><%=rs("size")%><%else%>K<%end if%>">
      </td>
    </tr>
  </table>             
                       
  <table width="602" border="0" align="center" cellspacing="1" bgcolor="#000000" cellpadding="1">
    <tbody> 
    <tr bgcolor="#CCCCCC"> 
      <td align="right" width="80" nowrap height="30">授权方式:</td>
      <td width="208" height="30"> 
        <select name="mode" size="1">
          <option value="共享软件">共享软件</option>
          <option value="免费软件" selected>免费软件</option>
          <option value="破解软件">破解软件</option>
        </select>
      </td>
      <td align="right" width="83" height="30">应用平台:</td>
      <td width="227" height="30"> 
        <select name="roof" size="1">
          <option value="Win9x/WinNT/Win2000/WinXP/WinME" selected>Win9x/WinNT/Win2000/WinXP/WinME</option>
          <option value="Win9x/WinNT/Win2000/WinME">Win9x/WinNT/Win2000/WinME</option>
          <option value="Win9x/WinNT/Win2000">Win9x/WinNT/Win2000</option>
          <option value="Win9x/WinNT">Win9x/WinNT</option>
          <option value="Win9x/WinME">Win9x/WinME</option>
          <option value="ASP环境">ASP环境</option>
          <option value="PHP环境">PHP环境</option>
          <option value="CGI环境">CGI环境</option>
          <option value="JSP环境">JSP环境</option>
          <option value="Linux环境">Linux环境</option>
        </select>
      </td>
    </tr>
    <tr bgcolor="#CCCCCC"> 
      <td align="right" width="80" nowrap height="30">推荐程度:</td>
      <td width="208" height="30"> 
        <select size=1 name=commend>
          <option value="0stars.gif">0 颗星</option>
          <option value="1stars.gif">1 颗星</option>
          <option value="2stars.gif">2 颗星</option>
          <option value="3stars.gif">3 颗星</option>
          <option value="4stars.gif">4 颗星</option>
          <option value="5stars.gif" selected>5 颗星</option>
        </select>
      </td>
      <td align="right" width="83" height="30">开发商主页:</td>
      <td width="227" height="30"> 
        <input type="text" name="homepage" value="http://www.gy16.com">
      </td>
    </tr>
    <tr bgcolor="#CCCCCC"> 
      <td align="right" width="80" nowrap height="30">推荐:</td>
      <td width="208" height="30"> 
        <input type="checkbox" name="tj" value="on">
      </td>
      <td align="right" width="83" height="30">精品:</td>
      <td width="227" height="30"> 
        <input type="checkbox" name="hot" value="on">
      </td>
    </tr>
    <tr bgcolor="#CCCCCC"> 
      <td align="right" width="80" nowrap height="29">图片地址:</td>
      <td colspan="3" height="29"> 
        <input type="text" name="pic" size="82" class="smallinput" maxlength="100" value="<%=rs("pic")%>">
      </td>
    </tr>
    <tr bgcolor="#CCCCCC"> 
      <td align="right" width="80" nowrap height="30">程序简介:</td>
      <td colspan="3" height="30"> <font color="#FF0000"> 
        <textarea rows="6"  name="show" cols="82" class="smallarea"><%
	content=replace(rs("show"),"<br>",chr(13))
	content=replace(content,"&nbsp;"," ")
	response.write content
%></textarea>
        </font> </td>
    </tr>
    <tr bgcolor="#00CCFF"> 
      <td align="right" width="80" nowrap height="30"> 
        <div align="center">下载地址1:</div>
      </td>
      <td colspan="3" height="30"> 
        <input type="text" name="down1" size="82" class="smallinput" maxlength="100" value="<%=rs("down1")%>">
      </td>
    </tr>
    <tr bgcolor="#00CCFF"> 
      <td align="right" width="80" nowrap height="30"> 
        <div align="center">下载1说明:</div>
      </td>
      <td colspan="3" height="30"> 
        <input type="text" name="txt1" size="82" class="smallinput" maxlength="100" value="<%=rs("txt1")%>">
      </td>
    </tr>
    <tr bgcolor="#00CC99"> 
      <td align="right" width="80" nowrap height="30"> 
        <div align="center">下载地址2:</div>
      </td>
      <td colspan="3" height="30"> 
        <input type="text" name="down2" size="82" class="smallinput" maxlength="100" value="<%=rs("down2")%>">
      </td>
    </tr>
    <tr bgcolor="#00CC99"> 
      <td align="right" width="80" nowrap height="30"> 
        <div align="center">下载2说明:</div>
      </td>
      <td colspan="3" height="30"> 
        <input type="text" name="txt2" size="82" class="smallinput" maxlength="100" value="<%=rs("txt2")%>">
      </td>
    </tr>
    <tr bgcolor="#CC9999"> 
      <td align="right" width="80" nowrap height="30"> 
        <div align="center">下载地址3:</div>
      </td>
      <td colspan="3" height="30"> 
        <input type="text" name="down3" size="82" class="smallinput" maxlength="100" value="<%=rs("down3")%>">
      </td>
    </tr>
    <tr bgcolor="#CC9999"> 
      <td align="right" width="80" nowrap height="30"> 
        <div align="center">下载3说明:</div>
      </td>
      <td colspan="3" height="30"> 
        <input type="text" name="txt3" size="82" class="smallinput" maxlength="100" value="<%=rs("txt3")%>">
      </td>
    </tr>
    <tr bgcolor="#FFCC00"> 
      <td align="right" width="80" nowrap height="30"> 
        <div align="center">下载地址4:</div>
      </td>
      <td colspan="3" height="30"> 
        <input type="text" name="down4" size="82" class="smallinput" maxlength="100" value="<%=rs("down4")%>">
      </td>
    </tr>
    <tr bgcolor="#FFCC00"> 
      <td align="right" width="80" nowrap height="30"> 
        <div align="center">下载4说明:</div>
      </td>
      <td colspan="3" height="30"> 
        <input type="text" name="txt4" size="82" class="smallinput" maxlength="100" value="<%=rs("txt4")%>">
      </td>
    </tr>
    <tr bgcolor="#009999"> 
      <td align="right" width="80" nowrap height="30"> 
        <div align="center">下载地址5:</div>
      </td>
      <td colspan="3" height="30"> 
        <input type="text" name="down5" size="82" class="smallinput" maxlength="100" value="<%=rs("down5")%>">
      </td>
    </tr>
    <tr bgcolor="#009999"> 
      <td align="right" width="80" nowrap height="30"> 
        <div align="center">下载5说明:</div>
      </td>
      <td colspan="3" height="30"> 
        <input type="text" name="txt5" size="82" class="smallinput" maxlength="100" value="<%=rs("txt5")%>">
      </td>
    </tr>
    </tbody> 
  </table>
  <div align="center"><center><p><input type="submit" value=" 添 加 "             
  name="cmdok" class="buttonface">&nbsp; <input type="reset" value=" 清 除 "             
  name="cmdcancel" class="buttonface"></p>             
  </center></div>             
</form>             
</body>             
</html>             
<%             
	set rs=nothing             
	conn.close             
	set conn=nothing             
%>

⌨️ 快捷键说明

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