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

📄 editsoft2.asp

📁 8款下载系统源代码 2003-3-11 21:37:45 433 949k · 都很常见: 猛虎山庄、燕衔泥(飞扬的软件第二版用的就是他
💻 ASP
字号:
<%
  if session("admin")="" then
  response.redirect "admin.asp"
  else
	if session("flag")>2 then
		response.write "<br><p align=center>您没有操作的权限</p>"
		response.end
	end if
  end if
%>
<!--#include file="conn.asp"-->
<!--#include file="../inc/const.asp"-->
<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="GENERATOR" content="Microsoft FrontPage 3.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 logo order by id 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("logoname"))%>","<%= trim(rs("id"))%>");
        <%
        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.id.options[document.myform.id.length] = news Option(subcat[i][0], subcat[i][2]);
            }        
        }
        
    }    
</SCRIPT>
<body bgcolor=#468ea3>
<form method="POST"  name="myform"  action="adminsave2.asp?id=<%=request("id")%>&action=edit">
  <TABLE width="80%" border="0" align="center" cellspacing="1">
    <TR align="center"> 
      <TD colspan="4" height="25" bgcolor="#145f74"><b><FONT color="#FFFFFF">修 
        改 下 载 程 序</FONT></b></TD>
    </TR>
    <%
	sql="select * from logo where id="&request("id")
	rs.open sql,conn,1,1
%>
    <tr bgcolor="#a5d0dc"> 
      <td width="13%" align="right" valign="top"><b>网站名称:</b></td>
      <td> 
        <input type="text" name="logoname" size="60" class="smallarea" value="
<%=rs("logoname")%>">
        <FONT color="#FF0000">**</FONT></td>
    </tr>
    <tr bgcolor="#a5d0dc"> 
      <td width="13%" align="right" valign="top">LOGO:</td>
      <td>
        <input type="text" name="logoimg" size="60" class="smallarea" value="
<%=rs("logoimg")%>">
      </td>
    </tr>
    <tr bgcolor="#a5d0dc"> 
      <td width="13%" align="right" valign="top">网站地址:</td>
      <td>
        <input type="text" name="logourl" size="60" class="smallarea" value="
<%=rs("logourl")%>">
      </td>
    </tr>
  </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 + -