<!--#include file="../inc/config.asp"-->
<!--#include file="../inc/conn.asp"-->
<!-- #include file="inc/Session.asp" -->
<!-- #include file="inc/checkrole.asp" -->
<!-- #include file="inc/function.asp" -->
<%
'''''''''''''''''''''''''''''''''''''''''''''''
call checkPrevilege(Session("Name"),"p14")
'''''''''''''''''''''''''''''''''''''''''''''''
dim id,effectid
id=cint(request.QueryString("id"))
set rs=server.createobject("adodb.recordset")
rs.open "select effectId from ad where id="&id,conn,3,1
if not rs.eof then
	effectid=rs(0)
end if
rs.close
set rs=nothing
%>
<HTML>
<HEAD>
<TITLE>获得广告代码</TITLE>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<style>
body,td,input,textarea {font-size:9pt}
form{margin:0px;}
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
}
.style1 {
	color: #FFFFFF;
	font-weight: bold;
}
.c {
	color: #FFF;
}
</style>
<script type="text/javascript">
function SelectOption(obj,id){
	for(var i=0;i<obj.length;i++){
		if(obj.options[i].value==id)
			obj.options[i].selected=true;
			
	}
}
</script>
</HEAD>
<BODY>
<table width="100%"  border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td><iframe src="right_top.htm" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" height="30" width="100%"></iframe></td>
  </tr>
</table>
<form name="form1" method="get" action="ad_getjs.asp"><table width="100%" border="0" cellspacing="1" cellpadding="0" bordercolor="#CCCCCC">
  <tr>
    <td height="32" align="center" bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="1" cellpadding="0" bgcolor="#CCCCCC">
      <tr>
        <td height="24" align="center" bgcolor="#FF9900" class="c">获取广告代码</td>
      </tr>
      <tr>
        <td height="43" align="center" bgcolor="#FFFFFF">选择广告效果=&gt;
          <select name="adtype" id="adtype">
            <option value="0">无</option>
            <option value="1">对联广告</option>
            <option value="2">漂浮广告</option>
            <option value="3">右下角弹出广告</option>
          </select>
         <script type="text/javascript">
				 SelectOption(document.form1.adtype,<%=effectid%>);
				 </script>
         </td>
      </tr>
      <tr>
        <td height="32" align="center" bgcolor="#FFFFFF">
        <input type="hidden" name="id" value="<%=id%>">
        <input type="submit" name="button" id="button" value="确 定"></td>
      </tr>
    </table></td>
  </tr>
</table>
</form>
<%
call connclose()
%>
</body>
</html>