<!--#include file="../head.asp"-->
 <!--#include file="../checkrole.asp"-->
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<%
   call checkuser("xm")
  
if issession=0 then
id=Replace_Text(request.Cookies("Yxmemberid"))
else
id=session("id")
end if
%>
<html>
<head>

<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>添加广告</title>
<link href="COAD.css" rel="stylesheet" type="text/css">
<SCRIPT LANGUAGE="JavaScript" src="images/js.js"></SCRIPT>
</head>

<body>
<% 
aid=request.QueryString("ADID")
Set rs = Server.CreateObject("ADODB.Recordset")
dim adnote_a
adnote_a=request("adnote_a")
sql="SELECT * FROM [Websen_ad] where adid='"&aid&"'"
'response.write sql
'response.end
rs.open sql, conn, 1, 1
if rs.eof then
Response.Write "<script>alert('对不起该广告位不存在！');history.back();</script>"
end if 
		
		id=rs("id")
		ADID=rs("ADID")
		ADViews=rs("ADViews")
		ADHits=rs("ADHits")
		ADType=rs("ADType")
		ADMark=rs("ADMark")
		ADSrc=rs("ADSrc")
		ADLink=rs("ADLink")
		ADAlt=rs("ADAlt")
		ADSrc=rs("ADSrc")
		ADWidth=rs("ADWidth")
		ADHeight=rs("ADHeight")
		ADNote=rs("ADNote") 
		ADStopViews=rs("ADStopViews")
		ADStopHits=rs("ADStopHits")
		ADStopDate=rs("ADStopDate")
		whick_page=rs("which_page")
	
		 %>
		 	
<br>
<table width="760" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="DDDDDD">
  <tr>
    <td bgcolor="#F4FBFF">
     <br>
	  <table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#BADFFE">
      <form name=form action="save.asp"  method="post" onSubmit="return chkinput()">
        <tr align="center" bgcolor="c0c0c0">
          <td height="22" colspan="2" bgcolor="#83B1FE">广 告 兑 换</td>
        </tr>
      <tr >
          <td align="right" bgcolor="#F4FBFF">广告名称：</td>
          <td height="18" bgcolor="#F4FBFF"><%=ADID%></td>
        </tr>
        <tr>
          <td align="right" bgcolor="#F4FBFF">风格及所在页面：</td>
          <td bgcolor="#F4FBFF"><%
		  
		  
		  set rstemp=server.CreateObject("adodb.recordset")
		  YXsql="select yx_tempname,id from [Websen_worldec_Temp] where id="&rs("which_mod")
		  rstemp.open YXsql,conn,1,1
		  if not rstemp.eof then
		  
		  Response.write "<b>"&rstemp("yx_tempname")&"</b>-"&rs("which_page")
		  which_page=rs("which_page")
           set rstemp=nothing
		  end if%>
		 
           </td>
        </tr>
       
        <tr>
          <td align="right" bgcolor="#F4FBFF" id="adsrc_text">广告图片地址：</td>
          <td height="17" bgcolor="#F4FBFF">
		  	
        
        <INPUT name=ADSrc type="text" value="http://" size=30>                                               
	  图片或FLASH地址 <input type="checkbox" name="shang" value="1" onClick="shan()">
      <a href="javascript:;" onClick="shan()">我要上传</a>
	 
	 </td>   
  </tr>


<script language="vbscript">
sub shan()
if ss.style.display="" then
ss.style.display="none"
else
ss.style.display=""
end if
end sub
</script>
  <tr id=ss style="display:none">
    <td height="25" align="right" bgcolor="#F4FBFF">上传广告：</td>
    <td bgcolor="#F4FBFF">
	<!----------------------------------------------------文件上传----------------------------------------------->
  <iframe id="d_file" frameborder="0" src="../../inc/upload.asp?tMode=9&istwo=0&utype=ad" width="300" height="40" scrolling="no"></iframe>
  <!--------------------------------------------------------------------------->
	
	
	</td>
  </tr>
        
        <tr>
          <td align="right" bgcolor="#F4FBFF">链接地址：</td>
          <td height="17" bgcolor="#F4FBFF">
            <INPUT name=ADLink type="text" value="http://" size=50 maxlength=200></td>
        </tr>
        <tr>
          <td align="right" bgcolor="#F4FBFF">提示文字：</td>
          <td height="17" bgcolor="#F4FBFF">
            <INPUT name=ADAlt type="text" size=30 maxlength=50></td>
        </tr>
        <tr>
          <td align="right" bgcolor="#F4FBFF">简单注释：</td>
          <td height="17" bgcolor="#F4FBFF">
            <INPUT name=ADNote type="text" size=30 maxlength=100> 
            *备注不显示在广告中</td>
        </tr>
        <tr bgcolor="c0c0c0">
          <td height="25" colspan="2" align="center" bgcolor="#87DAFA">
            <INPUT name="AddAD" type="submit" value="确 定" onClick="ChkFields()">
            &nbsp;
            <INPUT name="AddAD2" type="button" value="返 回" onClick="history.back();"></td>
        </tr>
		<input type="hidden" value="<%=request("user")%>" name="user">
		<input type="hidden" value="<%=adid%>" name="adname">
		<input type="hidden" value="<%=which_page%>" name="which_page">
		<input type="hidden" value="<%=ADtype%>" name="ADtype">
		<input type="hidden" value="<%=ADheight%>" name="ADheight">
		<input type="hidden" value="<%=ADwidth%>" name="ADwidth">
      </form>
    </table>
    <br></td>
  </tr>
</table>
<br>
<table width="760" height="30" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="DDDDDD">
  <tr>
    <td align="center" bgcolor="f1f1f1">&nbsp;</td>
  </tr>
</table>

<%
rs.close
set rs=nothing	
		
conn.Close
set conn=nothing







%>
</body>
</html>
