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

📄 sponsormodify.asp

📁 中文bux点击站源码。配合其他站点用
💻 ASP
字号:
<%@ LANGUAGE = VBScript %>
<!--#include file="conn.asp"-->

<!--#include file="checklogin.asp"-->

<%
  rs.Open "Select * From sponsor order by ID",Conn
%>

<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link REL="StyleSheet" HREF="../tjscripts.css" TYPE="text/css" MEDIA="screen">
<title><%= SiteTitle %>后台管理系统</title>
</head>

<body topmargin="0" leftmargin="0">

<div align="center">
  <table border="1" cellspacing="1" width="760" bordercolor="#0033CC">
    <tr>
      <td width="100%" height="31" bgcolor="#FFCC00"><b>修改首页广告</b></td>
    </tr>
    <tr>
      <td width="100%">
        <div align="center">
          <table border="1" cellspacing="1" width="99%" bordercolor="#A50F18">
            <tr>  
              <td width="10%" height="30" align="center">广告编号</td>  
              <td width="10%" height="30" align="center">广告名称</td>  
              <td width="10%" height="30" align="center">广告类型</td>  
              <td width="10%" height="30" align="center">广告连接</td>  
              <td width="10%" height="30" align="center">广告图片连接</td>  
              <td width="10%" height="30" align="center">广告文字</td>  
              <td width="10%" height="30" align="center">广告开始日期</td>  
              <td width="10%" height="30" align="center">广告结束日期</td>
              <td width="10%" height="30" align="center">广告所有者</td>
              <td width="10%" height="30" align="center">广告有效性</td>
              <td width="10%" height="30" align="center">修改</td>
            </tr>
            <%
              While Not rs.EOF
              SponsorID = rs ("ID")
              SponsorName = rs ("SponsorName")
              SponsorType = rs ("SponsorType")
              SponsorLink = rs ("SponsorLink")
              SponsorImg = rs ("SponsorImg")
              SponsorText = rs ("SponsorText")
              SponsorBeginDate = rs ("SponsorBeginDate")
              SponsorEndDate = rs ("SponsorEndDate")
              SponsorOwner = rs ("SponsorOwner")
              SponsorValid = rs ("SponsorValid")
            %>
            <form method="POST" action="sponsormodify_do.asp">
            <tr><td width="100%" colspan="11"><input type="hidden" name="SponsorName" value="<%= SponsorName %>"></td></tr>
            <tr>  
              <td width="10%" height="30" align="center"><%= SponsorID %></td>  
              <td width="10%" height="30" align="center"><input type="text" name="SponsorName2" size="5" value="<%= Right (SponsorName, Len (SponsorName) - 8) %>"></td>  
              <% If SponsorType = "Logo" Then %>
              <td width="10%" height="30" align="center">
                <select size="1" name="SponsorType">
                  <option selected>Logo</option>
                  <option>Text</option>
                </select>
              </td>
              <% Else %>
              <td width="10%" height="30" align="center">
                <select size="1" name="SponsorType">
                  <option>Logo</option>
                  <option selected>Text</option>
                </select>
              </td>
              <% End If %>
              <td width="10%" height="30" align="center"><input type="text" name="SponsorLink" size="15" value="<%= SponsorLink %>"></td>  
              <td width="10%" height="30" align="center"><input type="text" name="SponsorImg" size="15" value="<%= SponsorImg %>"></td>  
              <td width="10%" height="30" align="center"><textarea rows="2" name="SponsorText" cols="10"><%= SponsorText %></textarea></td>  
              <td width="10%" height="30" align="center"><input type="text" name="SponsorBeginDate" size="5" value="<%= SponsorBeginDate %>"></td>  
              <td width="10%" height="30" align="center"><input type="text" name="SponsorEndDate" size="5" value="<%= SponsorEndDate %>"></td>
              <td width="10%" height="30" align="center"><input type="text" name="SponsorOwner" size="5" value="<%= SponsorOwner %>"></td>
              <% If SponsorValid = True Then %>  
              <td width="10%" height="30" align="center"><input type="checkbox" name="SponsorValid" value="ON" checked></td>
              <% Else %>
              <td width="10%" height="30" align="center"><input type="checkbox" name="SponsorValid" value="ON"></td>
              <% End If %>
              <td width="10%" height="30" align="center"><input type="submit" value="修改" name="Button"></td>  
            </tr>
            </form>
            <%
              rs.MoveNext
              Wend
              rs.Close
              Set rs = nothing
              Conn.Close
              Set Conn = nothing
            %>
          </table>  
        </div>  
      </td>  
    </tr>
    <tr>
      <td width="100%" align="center"><a href="javascript:history.back();"><b>返回</b></a></td>
    </tr> 
  </table>  
</div>

</body>

</html>

⌨️ 快捷键说明

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