<!--#include file="conn.asp"-->
<%if session("admin")="" then
response.Write "<script language='javascript'>alert('网络超时或您还没有登陆！');window.location.href='login.asp';</script>"
response.End
else
if session("flag")>1 then
response.Write "<div align=center><font size=80 color=red><b>您没有此项目管理权限！</b></font></div>"
response.End
end if
end if%>
<%if request.QueryString("action")="save" then
set rs=server.CreateObject("adodb.recordset")
rs.open "select * from shop_gg",conn,1,3
rs("d1")=trim(request("d1"))
rs("d1w")=trim(request("d1w"))
rs("d1h")=trim(request("d1h"))
rs("d1url")=trim(request("d1url"))
rs("d2")=trim(request("d2"))
rs("d2w")=trim(request("d2w"))
rs("d2h")=trim(request("d2h"))
rs("d2url")=trim(request("d2url"))
rs("d3")=trim(request("d3"))
rs("d3w")=trim(request("d3w"))
rs("d3h")=trim(request("d3h"))
rs("d3url")=trim(request("d3url"))
rs("d4")=trim(request("d4"))
rs("d4w")=trim(request("d4w"))
rs("d4h")=trim(request("d4h"))
rs("d4url")=trim(request("d4url"))
rs("d5")=trim(request("d5"))
rs("d5w")=trim(request("d5w"))
rs("d5h")=trim(request("d5h"))
rs("d5url")=trim(request("d5url"))
rs("d6")=trim(request("d6"))
rs("d6w")=trim(request("d6w"))
rs("d6h")=trim(request("d6h"))
rs("d6url")=trim(request("d6url"))
rs("d7")=trim(request("d7"))
rs("d7w")=trim(request("d7w"))
rs("d7h")=trim(request("d7h"))
rs("d7url")=trim(request("d7url"))
rs("x1")=trim(request("x1"))
rs("x1w")=trim(request("x1w"))
rs("x1h")=trim(request("x1h"))
rs("x1url")=trim(request("x1url"))
rs("x2")=trim(request("x2"))
rs("x2w")=trim(request("x2w"))
rs("x2h")=trim(request("x2h"))
rs("x2url")=trim(request("x2url"))
rs("x3")=trim(request("x3"))
rs("x3w")=trim(request("x3w"))
rs("x3h")=trim(request("x3h"))
rs("x3url")=trim(request("x3url"))
rs("x4")=trim(request("x4"))
rs("x4w")=trim(request("x4w"))
rs("x4h")=trim(request("x4h"))
rs("x4url")=trim(request("x4url"))
rs("pfdy")=trim(request("pfdy"))
rs("pf")=trim(request("pf"))
rs("pfw")=trim(request("pfw"))
rs("pfh")=trim(request("pfh"))
rs("pfurl")=trim(request("pfurl"))
rs("tcdy")=trim(request("tcdy"))
rs("tc")=trim(request("tc"))
rs("tcw")=trim(request("tcw"))
rs("tch")=trim(request("tch"))
rs("tcurl")=trim(request("tcurl"))
rs.update
rs.close
set rs=nothing
response.write "<script language=javascript>alert('修改成功！');history.go(-1);</script>"
response.End
end if
%>
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="../css.css" rel="stylesheet" type="text/css">
</head>
<body>
<%set rs=server.CreateObject("adodb.recordset")
rs.open "select * from shop_gg",conn,1,1%>
<form name="guanggao" method="post" action="guanggao.asp?action=save">
  <br>
  <table width="95%" border="0" align="center" cellpadding="1" cellspacing="1" bgcolor="#CCCCCC">
    <tr bgcolor="#f1f1f1"> 
      <td height="22" style="PADDING-LEFT: 6px">图片说明</td>
      <td height="22" colspan="2" > <div align="center">图片地址</div></td>
      <td width="8%" height="22" ><div align="center">宽度(W)</div></td>
      <td width="8%" height="22" ><div align="center">高度(H)</div></td>
      <td height="22" > <div align="center">图片链接</div></td>
    </tr>
    <tr bgcolor="#FFFFFF"> 
      <td colspan="6" style="PADDING-LEFT: 6px" height="22">网站首页广告设置：如不投放广告时请留空。</td>
    </tr>
    <tr bgcolor="#FFFFFF"> 
      <td width="13%" style="PADDING-LEFT: 6px">首页广告一：</td>
      <td colspan="2" > <div align="center"> 
          <input name="d1" type="text"  class="wenbenkuang" id="d1" size="28" value=<%=trim(rs("d1"))%>>
        </div></td>
      <td > <div align="center"> 
          <input name="d1w" type="text"  class="wenbenkuang" id="d1w" size="6" value=<%=trim(rs("d1w"))%>>
        </div></td>
      <td > <div align="center"> 
          <input name="d1h" type="text"  class="wenbenkuang" id="d1h" size="6" value=<%=trim(rs("d1h"))%>>
        </div></td>
      <td width="43%" > <div align="center"> 
          <input name="d1url" type="text"  class="wenbenkuang" id="d1url" size="28" value=<%=trim(rs("d1url"))%>>
          <a href=# onclick="window.open('upload_c.asp?a=uploadfile&b=1&c=guanggao&d=d1','','status=no,scrollbars=no,top=20,left=110,width=420,height=165')">上传图片</a></div></td>
    </tr>
    <tr bgcolor="#FFFFFF"> 
      <td style="PADDING-LEFT: 6px">首页广告二：</td>
      <td colspan="2" > <div align="center"> 
          <input name="d2" type="text"  class="wenbenkuang" id="2541" size="28" value=<%=trim(rs("d2"))%>>
        </div></td>
      <td ><div align="center"> 
          <input name="d2w" type="text"  class="wenbenkuang" id="d2w" size="6" value=<%=trim(rs("d2w"))%>>
        </div></td>
      <td ><div align="center"> 
          <input name="d2h" type="text"  class="wenbenkuang" id="d2h" size="6" value=<%=trim(rs("d2h"))%>>
        </div></td>
      <td > <div align="center"> 
          <input name="d2url" type="text"  class="wenbenkuang" id="d2url" size="28" value=<%=trim(rs("d2url"))%>>
          <a href=# onclick="window.open('upload_c.asp?a=uploadfile&b=1&c=guanggao&d=d2','','status=no,scrollbars=no,top=20,left=110,width=420,height=165')">上传图片</a></div></td>
    </tr>
    <tr bgcolor="#FFFFFF"> 
      <td style="PADDING-LEFT: 6px">首页广告三：</td>
      <td colspan="2" > <div align="center"> 
          <input name="d3" type="text"  class="wenbenkuang" id="d3" size="28" value=<%=trim(rs("d3"))%>>
        </div></td>
      <td ><div align="center"> 
          <input name="d3w" type="text"  class="wenbenkuang" id="d3w" size="6" value=<%=trim(rs("d3w"))%>>
        </div></td>
      <td ><div align="center"> 
          <input name="d3h" type="text"  class="wenbenkuang" id="d3h" size="6" value=<%=trim(rs("d3h"))%>>
        </div></td>
      <td > <div align="center"> 
          <input name="d3url" type="text"  class="wenbenkuang" id="d3url" size="28" value=<%=trim(rs("d3url"))%>>
          <a href=# onclick="window.open('upload_c.asp?a=uploadfile&b=1&c=guanggao&d=d3','','status=no,scrollbars=no,top=20,left=110,width=420,height=165')">上传图片</a></div></td>
    </tr>
    <tr bgcolor="#FFFFFF"> 
      <td style="PADDING-LEFT: 6px">首页广告四：</td>
      <td colspan="2" > <div align="center"> 
          <input name="d4" type="text"  class="wenbenkuang" id="d4" size="28" value=<%=trim(rs("d4"))%>>
        </div></td>
      <td ><div align="center"> 
          <input name="d4w" type="text"  class="wenbenkuang" id="d4w" size="6" value=<%=trim(rs("d4w"))%>>
        </div></td>
      <td ><div align="center"> 
          <input name="d4h" type="text"  class="wenbenkuang" id="d4h" size="6" value=<%=trim(rs("d4h"))%>>
        </div></td>
      <td > <div align="center"> 
          <input name="d4url" type="text"  class="wenbenkuang" id="d4url" size="28" value=<%=trim(rs("d4url"))%>>
          <a href=# onclick="window.open('upload_c.asp?a=uploadfile&b=1&c=guanggao&d=d4','','status=no,scrollbars=no,top=20,left=110,width=420,height=165')">上传图片</a></div></td>
    </tr>
    <tr bgcolor="#FFFFFF"> 
      <td style="PADDING-LEFT: 6px">首页广告五：</td>
      <td colspan="2" > <div align="center"> 
          <input name="d5" type="text"  class="wenbenkuang" id="d5" size="28" value=<%=trim(rs("d5"))%>>
        </div></td>
      <td ><div align="center"> 
          <input name="d5w" type="text"  class="wenbenkuang" id="d5w" size="6" value=<%=trim(rs("d5w"))%>>
        </div></td>
      <td ><div align="center"> 
          <input name="d5h" type="text"  class="wenbenkuang" id="d5h" size="6" value=<%=trim(rs("d5h"))%>>
        </div></td>
      <td > <div align="center"> 
          <input name="d5url" type="text"  class="wenbenkuang" id="d5url" size="28" value=<%=trim(rs("d5url"))%>>
          <a href=# onclick="window.open('upload_c.asp?a=uploadfile&b=1&c=guanggao&d=d5','','status=no,scrollbars=no,top=20,left=110,width=420,height=165')">上传图片</a></div></td>
    </tr>
    <tr bgcolor="#FFFFFF"> 
      <td style="PADDING-LEFT: 6px">首页广告六：</td>
      <td colspan="2" > <div align="center"> 
          <input name="d6" type="text"  class="wenbenkuang" id="d6" size="28" value=<%=trim(rs("d6"))%>>
        </div></td>
      <td ><div align="center"> 
          <input name="d6w" type="text"  class="wenbenkuang" id="d6w" size="6" value=<%=trim(rs("d6w"))%>>
        </div></td>
      <td ><div align="center"> 
          <input name="d6h" type="text"  class="wenbenkuang" id="d6h" size="6" value=<%=trim(rs("d6h"))%>>
        </div></td>
      <td > <div align="center"> 
          <input name="d6url" type="text"  class="wenbenkuang" id="d6url" size="28" value=<%=trim(rs("d6url"))%>>
          <a href=# onclick="window.open('upload_c.asp?a=uploadfile&b=1&c=guanggao&d=d6','','status=no,scrollbars=no,top=20,left=110,width=420,height=165')">上传图片</a></div></td>
    </tr>
    <tr bgcolor="#FFFFFF"> 
      <td style="PADDING-LEFT: 6px">首页广告七：</td>
      <td colspan="2" > <div align="center"> 
          <input name="d7" type="text"  class="wenbenkuang" id="d7" size="28" value=<%=trim(rs("d7"))%>>
        </div></td>
      <td ><div align="center"> 
          <input name="d7w" type="text"  class="wenbenkuang" id="d7w" size="6" value=<%=trim(rs("d7w"))%>>
        </div></td>
      <td ><div align="center"> 
          <input name="d7h" type="text"  class="wenbenkuang" id="d7h" size="6" value=<%=trim(rs("d7h"))%>>
        </div></td>
      <td > <div align="center"> 
          <input name="d7url" type="text"  class="wenbenkuang" id="d7url" size="28" value=<%=trim(rs("d7url"))%>>
          <a href=# onclick="window.open('upload_c.asp?a=uploadfile&b=1&c=guanggao&d=d7','','status=no,scrollbars=no,top=20,left=110,width=420,height=165')">上传图片</a></div></td>
    </tr>
    <tr bgcolor="#FFFFFF"> 
      <td colspan="6" style="PADDING-LEFT: 6px">商品信息以及其它页面广告设置：</td>
    </tr>
    <tr bgcolor="#FFFFFF"> 
      <td style="PADDING-LEFT: 6px">首页广告一：</td>
      <td colspan="2" > <div align="center"> 
          <input name="x1" type="text"  class="wenbenkuang"id="x1" size="28" value=<%=trim(rs("x1"))%>>
        </div></td>
      <td bgcolor="#FFFFFF" > <div align="center"> 
          <input name="x1w" type="text"  class="wenbenkuang"id="x1w" size="6" value=<%=trim(rs("x1w"))%>>
        </div></td>
      <td bgcolor="#FFFFFF" > <div align="center"> 
          <input name="x1h" type="text"  class="wenbenkuang"id="x1h" size="6" value=<%=trim(rs("x1h"))%>>
        </div></td>
      <td > <div align="center"> 
          <input name="x1url" type="text"  class="wenbenkuang" id="x1url" size="28" value=<%=trim(rs("x1url"))%>>
          <a href=# onclick="window.open('upload_c.asp?a=uploadfile&b=1&c=guanggao&d=x1','','status=no,scrollbars=no,top=20,left=110,width=420,height=165')">上传图片</a></div></td>
    </tr>
    <tr bgcolor="#FFFFFF"> 
      <td style="PADDING-LEFT: 6px">首页广告二：</td>
      <td colspan="2" > <div align="center"> 
          <input name="x2" type="text"  class="wenbenkuang" id="x2" size="28" value=<%=trim(rs("x2"))%>>
        </div></td>
      <td bgcolor="#FFFFFF" > <div align="center"> 
          <input name="x2w" type="text"  class="wenbenkuang" id="x2w" size="6" value=<%=trim(rs("x2w"))%>>
        </div></td>
      <td bgcolor="#FFFFFF" > <div align="center"> 
          <input name="x2h" type="text"  class="wenbenkuang" id="x2h" size="6" value=<%=trim(rs("x2h"))%>>
        </div></td>
      <td > <div align="center"> 
          <input name="x2url" type="text"  class="wenbenkuang" id="x2url" size="28" value=<%=trim(rs("x2url"))%>>
          <a href=# onclick="window.open('upload_c.asp?a=uploadfile&b=1&c=guanggao&d=x2','','status=no,scrollbars=no,top=20,left=110,width=420,height=165')">上传图片</a></div></td>
    </tr>
    <tr bgcolor="#FFFFFF"> 
      <td style="PADDING-LEFT: 6px">首页广告三：</td>
      <td colspan="2" > <div align="center"> 
          <input name="x3" type="text"  class="wenbenkuang" id="x3" size="28" value=<%=trim(rs("x3"))%>>
        </div></td>
      <td bgcolor="#FFFFFF" > <div align="center"> 
          <input name="x3w" type="text"  class="wenbenkuang" id="x3w" size="6" value=<%=trim(rs("x3w"))%>>
        </div></td>
      <td bgcolor="#FFFFFF" > <div align="center"> 
          <input name="x3h" type="text"  class="wenbenkuang" id="x3h" size="6" value=<%=trim(rs("x3h"))%>>
        </div></td>
      <td > <div align="center"> 
          <input name="x3url" type="text"  class="wenbenkuang" id="x3url" size="28" value=<%=trim(rs("x3url"))%>>
          <a href=# onclick="window.open('upload_c.asp?a=uploadfile&b=1&c=guanggao&d=x3','','status=no,scrollbars=no,top=20,left=110,width=420,height=165')">上传图片</a></div></td>
    </tr>
    <tr bgcolor="#FFFFFF"> 
      <td style="PADDING-LEFT: 6px">首页广告四：</td>
      <td colspan="2" > <div align="center"> 
          <input name="x4" type="text"  class="wenbenkuang" id="x42" size="28" value=<%=trim(rs("x4"))%>>
        </div></td>
      <td bgcolor="#FFFFFF" > <div align="center"> 
          <input name="x4w" type="text"  class="wenbenkuang" id="x4w" size="6" value=<%=trim(rs("x4w"))%>>
        </div></td>
      <td bgcolor="#FFFFFF" > <div align="center"> 
          <input name="x4h" type="text"  class="wenbenkuang" id="x4h" size="6" value=<%=trim(rs("x4h"))%>>
        </div></td>
      <td > <div align="center"> 
          <input name="x4url" type="text"  class="wenbenkuang" id="x4url" size="28" value=<%=trim(rs("x4url"))%>>
          <a href=# onclick="window.open('upload_c.asp?a=uploadfile&b=1&c=guanggao&d=x4','','status=no,scrollbars=no,top=20,left=110,width=420,height=165')">上传图片</a></div></td>
    </tr>
    <tr bgcolor="#FFFFFF"> 
      <td height="30" colspan="6" style="PADDING-LEFT: 6px"><font color="#FF0000"><strong>以下广告图片位置在adminn文件夹内，如修改adminn文件夹请修改相关路径。</strong></font></td>
    </tr>
    <tr bgcolor="f1f1f1"> 
      <td height="15" style="PADDING-LEFT: 6px">图片说明:</td>
      <td width="8%" height="15" style="PADDING-LEFT: 6px"> 
        <div align="center">是否调用</div></td>
      <td width="20%" style="PADDING-LEFT: 6px"> 
        <div align="center">图片地址</div></td>
      <td height="15" style="PADDING-LEFT: 6px"> 
        <div align="center">宽度(W)</div></td>
      <td height="15" style="PADDING-LEFT: 6px"> 
        <div align="center">高度(H)</div></td>
      <td height="15" style="PADDING-LEFT: 6px"> 
        <div align="center">图片链接</div></td>
    </tr>
    <tr bgcolor="#FFFFFF"> 
      <td style="PADDING-LEFT: 6px">主页飘动小广告： </td>
      <td bgcolor="#FFFFFF" ><div align="center"> 
          <select name="pfdy" size="1" id="select" style="font-family: 宋体; font-size: 9pt">
            <option value="1" <%if rs("pfdy")="1" then%>selected<%end if%>>调用</option>
            <option value="0" <%if rs("pfdy")="0" then%>selected<%end if%>>不调用</option>
          </select>
        </div></td>
      <td bgcolor="#FFFFFF" ><div align="center"> 
          <input name="pf" type="text"  class="wenbenkuang" id="pf" value="<%=trim(rs("pf"))%>" size="28" >
        </div></td>
      <td bgcolor="#FFFFFF" > <div align="center"> 
          <input name="pfw" type="text"  class="wenbenkuang" id="pfw" value="<%=trim(rs("pfw"))%>" size="6">
        </div></td>
      <td bgcolor="#FFFFFF" > <div align="center"> 
          <input name="pfh" type="text"  class="wenbenkuang" id="pfh" value="<%=trim(rs("pfh"))%>" size="6">
        </div></td>
      <td ><div align="center"> 
          <input name="pfurl" type="text"  class="wenbenkuang" id="pfurl" value="<%=trim(rs("pfurl"))%>" size="30">
          <a href=# onclick="window.open('upload_c.asp?a=uploadfile&b=1&c=guanggao&d=pf','','status=no,scrollbars=no,top=20,left=110,width=420,height=165')">上传图片</a></div></td>
    </tr>
    <tr bgcolor="#FFFFFF"> 
      <td style="PADDING-LEFT: 6px">主页弹出广告：</td>
      <td bgcolor="#FFFFFF" ><div align="center"> 
          <select name="tcdy" size="1" id="select2" style="font-family: 宋体; font-size: 9pt">
            <option value="1" <%if rs("tcdy")="1" then%>selected<%end if%>>调用</option>
            <option value="0" <%if rs("tcdy")="0" then%>selected<%end if%>>不调用</option>
          </select>
        </div></td>
      <td bgcolor="#FFFFFF" ><div align="center"> 
          <input name="tc" type="text"  class="wenbenkuang" id="tc3" value="<%=trim(rs("tc"))%>" size="28" >
        </div></td>
      <td bgcolor="#FFFFFF" > <div align="center"> 
          <input name="tcw" type="text"  class="wenbenkuang" id="tcw" value="<%=trim(rs("tcw"))%>" size="6">
        </div></td>
      <td bgcolor="#FFFFFF" > <div align="center"> 
          <input name="tch" type="text"  class="wenbenkuang" id="tch" value="<%=trim(rs("tch"))%>" size="6">
        </div></td>
      <td bgcolor="#FFFFFF" > <div align="center"> 
          <input name="tcurl" type="text"  class="wenbenkuang" id="tcurl" value="<%=trim(rs("tcurl"))%>" size="30">
          <a href=# onclick="window.open('upload_c.asp?a=uploadfile&b=1&c=guanggao&d=tc','','status=no,scrollbars=no,top=20,left=110,width=420,height=165')">上传图片</a> 
          <a href=# onClick="window.open('upload_c.asp?a=uploadfile&b=3&c=guanggao&d=tc','','status=no,scrollbars=no,top=20,left=110,width=420,height=165')">链接文件</a> 
          <a href=# onClick="window.open('upload_c.asp?a=uploadfile&b=2&c=guanggao&d=tc','','status=no,scrollbars=no,top=20,left=110,width=420,height=165')">Flash</a> 
        </div></td>
    </tr>
    <tr bgcolor="#FFFFFF"> 
      <td height="32" colspan="6" style="PADDING-LEFT: 6px"> <div align="center"> 
          <input type="submit" name="Submit"  class="go-wenbenkuang" value="提交更改">
        </div></td>
    </tr>
  </table>
</form>
<!--#include file="copyright.asp"-->
</body>
</html>
