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

📄 admin_admana.asp

📁 庐江二中
💻 ASP
字号:
<%PageName="admin_AdMana"%>
<!--#include file="session.asp"-->
<%checkAdmin2%>
<!--#include file="conn.asp"-->
<!--#include file="const.asp"-->
<!--#include file="top.asp"--><br>
<table border="1" width="98%" cellspacing="0" cellpadding="1" bgcolor="<%=MainBgColor%>">
<tr>
<td align=center valign=top>
        <table border="1" width="100%" cellspacing="0" cellpadding="0" Class="TableLine" bordercolorlight="<%=MainBColor%>" bgcolor="<%=MainCColor%>">
          <form method="POST" action="admin_AdSave.asp?act=set">
            <tr> 
              <td width="100%" height="20" colspan=12 bgcolor="<%=MainTColor%>" align=center background="images/admin/b3.gif"><b>广 
                告 管 理</b></td>
            </tr>
            <tr> 
              <td width="5%" align="center">选择</td>
              <td width="3%" align="center">ID</td>
              <td width="10%" align="center">名称</td>
              <td align="center">图片/地址</td>
              <td width="5%" align="center">简介</td>
              <td width="10%" align="center">显示位置</td>
              <td width="6%" align="center">是否FLASH</td>
              <td width="4%" align="center">昨日</td>
              <td width="4%" align="center">今日</td>
              <td width="5%" align="center">总共</td>
              <td width="5%" align="center">修改</td>
              <td width="5%" align="center">删除</td>
            </tr>
            <%
sql="select * from Ad order by id desc"
rs.open sql,conn,1,1			
do while not rs.eof
%>
            <tr> 
              <td width="5%" align="center"> 
                <input type="checkbox" name="checked" value="<%=rs("ID")%>"<%if rs("checked")=true then%> checked<%end if%>>
              </td>
              <td width="3%" align="center"><%=rs("ID")%></td>
              <td width="10%" align="center"><%=rs("AdName")%></td>
              <td align=center>
			  <%if rs("isflash")=true then
			  Response.Write "<embed src="&rs("AdPic")&" pluginspage='http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash' type='application/x-shockwave-flash' width=200 height=25></embed>"
			  else%>			  
			  <a href="<%=rs("AdUrl")%>" target="_blank" title="<%=rs("AdUrl")%>"><img src="<%=rs("AdPic")%>" height=25 width=200 border=0></a>
			  <%end if%>
			  </td>
              <td width="5%" align=center><a style="cursor:hand" title="<%if rs("AdIntro")="" or isnull(rs("AdIntro")) then%>无<%else%><%=rs("AdIntro")%><%end if%>">网站简介</td>
              <td width="10%" align=center><%if rs("AdAdd")<>"" then%><%=rs("AdAdd")%><%else%>(默认)<%end if%></td>
              <td width="6%" align=center><%if rs("IsFlash")=true then%>是<%else%>否<%end if%></td>
              <td width="4%" align="center"><%=rs("yesterday")%></td>
              <td width="4%" align="center"><%=rs("today")%></td>
              <td width="5%" align="center"><%=rs("totalclick")%></td>
              <td width="5%" align="center"> 
                <input onclick="javascript:window.open('admin_AdModify.asp?id=<%=rs("ID")%>','_self','')" type="button" value="修改" name="button2">
              </td>
              <td width="5%" align="center"> 
                <input onclick="javascript:window.open('admin_AdSave.asp?act=del&id=<%=rs("ID")%>','_self','')" type="button" value="删除" name="button3">
              </td>
            </tr>
            <%
rs.movenext
loop
rs.close
%>
            <tr> 
              <td colspan=12 align=center> 
                <input type="submit" value="选定" name="submit">
                <input onclick="javascript:window.open('admin_AdAdd.asp','_self','')" type="button" value="添加新广告" name="button">
              </td>
            </tr>
          </form>
        </table>
              <table width="79%" border="0" cellspacing="5" cellpadding="0">
        <tr> 
          <td>提示:</td>
        </tr>
        <tr> 
          <td>默认的广告(即首页导航栏下)建议使用758X70的图片大小,以使满栏显示。</td>
        </tr>
		<tr> 
          <td>其它的广告:横幅1、2(大、小类)758X70,首页上(415X90),首页中(565X85),首页中一(412X..),右一、二(120X30)。</td>
        </tr>
        <tr> 
          <td>默认广告调用方法:&lt;script src=&quot;Ad.asp&quot;&gt;&lt;/script&gt;</td>
        </tr>
        <tr> 
          <td>有位置的调用方法:&lt;script src=&quot;Ad.asp?add=显示位置&quot;&gt;&lt;/script&gt;</td>
        </tr>
      </table>
             </td>
</tr>
</table>
<%set rs=nothing%>

⌨️ 快捷键说明

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