<%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%>
<!--#include file="Include/conn.asp"-->
<!--#include file="Include/ConnDatabase.asp"-->
<!--#include file="Include/NoHackSql.Asp"-->
<%
'=====================================
'天天企业网站管理系统  TianTianCMS
'天天网络科技工作室版权所有
'官方客服中心 http://www.ip126.com
'QQ:530051328 mail:bbfhq@163.com
'=====================================
%>

<title>广告设置</title>
<link rel="stylesheet" href="admin/Images/Admin.css">
<BODY background="../images/back.gif">
<script language=javascript src=../inc/mouse_on_title.js></script>
<table width="100%" border="0" align="center" cellpadding="1" cellspacing="1" bgcolor="#6699cc">
  <tr class=backs><td align="center" class=td height=18><font color="#FFFFFF">默认广告临时开关（广告过期也会自动关闭） 点击左侧▲关闭左侧菜单更直观</font></td>
  </tr>
  <tr> 
    <td height="200" valign="top" bgcolor="#FFFFFF"> 	
        <table width="100%" border="0" align="center" cellpadding="1" cellspacing="1" bgcolor="#CCCCCC">
          <tr bgcolor="#FFFFFF"> 
            <td WIDTH="120">(可点击修改)<br>图片规格宽*高</td>
			<td WIDTH="100" > 位置</td>
            <td WIDTH="400" > 效果显示</td>
            <td WIDTH="50"> 是否显示</td>
          </tr>
          <tr> 
            <td colspan="7" ><strong>网站首页广告设置</strong>：</td>
          </tr>
		  <%Call OpenConn
		  Dim urlpa,url
		  set rs=server.CreateObject("adodb.recordset")
		  rs.open "select * from TianTianCMS_ad",conn,1,1
		  do while not rs.eof%> 
           <tr bgcolor="#FFFFFF"> 
            <td >(<font color="#0000FF">id：<%=rs("ADID")%></font>) <%=rs("ADWidth")%>*<%=rs("ADHeight")%><br><a href="ads/edit.asp?id=<%=rs("id")%>&page=<%=urlpa%>">修改</a>  </td>
			<td><%=rs("ADNote")%></td>
              <td> <script src="ads/JS/<%=rs("ADID")%>.js"></script></td>
             <td ><%if rs("adkg")=1 then%>√<%else%><font color="#FF0000">ⅹ</font><%end if%>&nbsp;&nbsp;&nbsp;&nbsp;<%if rs("adkg")=1 then%><a href="ads/createjs.asp?ad=zt&ADID=<%=rs("ADID")%>&url=../ad.asp">暂停</a><%else%><a href="/<%=strInstallDir%>ads/createjs.asp?ad=hd&ADID=<%=rs("ADID")%>&url=../ad.asp"><font color="#FF0000">活动</font></a><%end if%></td> 
          </tr>
<%rs.movenext
Loop
rs.Close
set rs=nothing%>

          	 <tr bgcolor="#FFFFFF"> 
            <td WIDTH="150">(id：hd)280*230可设<br><a href="admin/SlideAdvertising.Asp?page=<%=url%>">修改</a></td>
			<td WIDTH="50">首页幻灯图片</td>
            <td WIDTH="300"><script src="UploadFiles/hd/hdCh.js"></script>
</td>
          <td width="12%">&nbsp;</td>
          </tr>                                             

        </table>
    </td>
  </tr>
</table>

