<!--#include file="conn.asp"-->
<!--#include file="adminset.asp"-->
<%if session("admin")="" then
response.Write "<script language='javascript'>alert('网络超时或您还没有登陆！');window.location.href='login.asp';</script>"
response.End
end if

%>
<%if request.QueryString("action")="save" then
if session("flag")>1 then
response.Write "<div align=center><font size=80 color=red><b>您没有此项目管理权限！</b></font></div>"
response.End
end if
if qx14<>1 then
response.Write "<div align=center><font size=80 color=red><b>您没有此项目管理权限！</b></font></div>"
response.End
end if
id=request.QueryString("id")
if id="" then
response.Write "<div align=center><font size=80 color=red><b>您没有此项目管理权限！</b></font></div>"
response.End
end if
set rs=server.CreateObject("adodb.recordset")
rs.open "select * from shop_gg where ggid="&id,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("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("dldy")=trim(request("dldy"))
rs("dlz")=trim(request("dlz"))
rs("dlzw")=trim(request("dlzw"))
rs("dlzh")=trim(request("dlzh"))
rs("dlzurl")=trim(request("dlzurl"))
rs("dly")=trim(request("dly"))
rs("dlyw")=trim(request("dlyw"))
rs("dlyh")=trim(request("dlyh"))
rs("dlyurl")=trim(request("dlyurl"))
rs.update
rs.close
set rs=nothing
response.write "<script language=javascript>alert('修改成功！');history.go(-1);</script>"
response.End
end if
%>
<html>
<head>
<title>网软志成在线购物系统</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link href="../css.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
}
.style2 {
	color: #000000;
	font-weight: bold;
}
.STYLE1 {color: #FF0000}
-->
</style>
</head>
<body>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td width="1%" height="28">&nbsp;</td>
    <td width="99%"><table width="100%" border="0" cellspacing="0" cellpadding="5">
      <tr>
        <td width="77%" height="27" style="font-size:14px;color:#ffffff">&nbsp;<strong><font color="#000000">网软志成购物后台管理系统 &gt;&gt; 系统管理 &gt;&gt; 广告配置 </font></strong></td>
        <td width="23%" style="font-size:14px;color:#ffffff"><span class="STYLE1">* 为必添项目</span></td>
      </tr>
      <tr>
        <td height="27" style="font-size:14px;color:#ffffff"><span style="font-size:12px;color:#ff0000">&nbsp;注：本页的操作权限需要具备“系统管理”的操作权限，才可进行！</span></td>
        <td style="font-size:14px;color:#ffffff">&nbsp;</td>
      </tr>
      <tr>
        <td height="27" colspan="2" style="font-size:12px;color:#000000"> <span style="font-size:12px;color:#ff0000">&nbsp;</span>新闻和专题页广告位置前四在首页后三在新闻或专题的详细页。<br>
            <span style="font-size:12px;color:#ff0000">&nbsp;</span>供求页广告位置前四在首页后三在供求详细页。</td>
        </tr>
    </table></td>
  </tr>
</table>
<%
if request.QueryString("id")="" then
id=1
else
id=request.QueryString("id")
end if
set rs=server.CreateObject("adodb.recordset")
rs.open "select * from shop_gg where ggid="&id,conn,1,1
		if rs.recordcount=0 then 
		%>
<span class="STYLE1">暂无广告</span>
<%
		else
%>
<form name="guanggao" method="post" action="web_guanggao.asp?action=save&id=<%=id%>">
  <table width="95%" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#999999">
    <tr bgcolor="#cccccc"> 
      <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="#F3F3F3">
      <td colspan="6" style="PADDING-LEFT: 6px"><span style="font-size:12px;color:#000000">网站首页广告设置：位置在首页下部帮助信息区域右侧上下两个图片，建议图片大小均为 164（宽） X 74（宽）像素 </span></td>
    </tr>
    <tr bgcolor="#F3F3F3"> 
      <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"))%>" onKeyPress="return event.keyCode>=46&&event.keyCode<=57" >
      </div></td>
      <td > <div align="center"> 
          <input name="d1h" type="text"  class="wenbenkuang" id="d1h" size="6" value="<%=trim(rs("d1h"))%>" onKeyPress="return event.keyCode>=46&&event.keyCode<=57" >
      </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.asp?formname=guanggao&editname=d1&uppath=shoppic&filelx=jpg','','status=no,scrollbars=no,top=20,left=110,width=420,height=165')">上传图片</a></div></td>
    </tr>
    <tr bgcolor="#F3F3F3"> 
      <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"))%>" onKeyPress="return event.keyCode>=46&&event.keyCode<=57" >
      </div></td>
      <td ><div align="center"> 
          <input name="d2h" type="text"  class="wenbenkuang" id="d2h" size="6" value="<%=trim(rs("d2h"))%>"onkeypress="return event.keyCode>=46&&event.keyCode<=57" >
      </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.asp?formname=guanggao&editname=d2&uppath=shoppic&filelx=jpg','','status=no,scrollbars=no,top=20,left=110,width=420,height=165')">上传图片</a></div></td>
    </tr>
	
	
    <tr bgcolor="#F3F3F3"> 
      <td colspan="6" style="PADDING-LEFT: 6px">商品信息以及其它页面广告设置：新闻小类广告，位置二上二下：供求小类广告，位置二上二下：</td>
    </tr>
    <tr bgcolor="#F3F3F3"> 
      <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 > <div align="center"> 
          <input name="x1w" type="text"  class="wenbenkuang"id="x1w" size="6" value="<%=trim(rs("x1w"))%>" onKeyPress="return event.keyCode>=46&&event.keyCode<=57" >
      </div></td>
      <td > <div align="center"> 
          <input name="x1h" type="text"  class="wenbenkuang"id="x1h" size="6" value="<%=trim(rs("x1h"))%>" onKeyPress="return event.keyCode>=46&&event.keyCode<=57" >
      </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.asp?formname=guanggao&editname=x1&uppath=shoppic&filelx=jpg','','status=no,scrollbars=no,top=20,left=110,width=420,height=165')">上传图片</a></div></td>
    </tr>
    <tr bgcolor="#F3F3F3"> 
      <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 > <div align="center"> 
          <input name="x2w" type="text"  class="wenbenkuang" id="x2w" size="6" value="<%=trim(rs("x2w"))%>" onKeyPress="return event.keyCode>=46&&event.keyCode<=57" >
      </div></td>
      <td > <div align="center"> 
          <input name="x2h" type="text"  class="wenbenkuang" id="x2h" size="6" value="<%=trim(rs("x2h"))%>" onKeyPress="return event.keyCode>=46&&event.keyCode<=57" >
      </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.asp?formname=guanggao&editname=x2&uppath=shoppic&filelx=jpg','','status=no,scrollbars=no,top=20,left=110,width=420,height=165')">上传图片</a></div></td>
    </tr>
    <tr bgcolor="#F3F3F3"> 
      <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 > <div align="center"> 
          <input name="x3w" type="text"  class="wenbenkuang" id="x3w" size="6" value="<%=trim(rs("x3w"))%>" onKeyPress="return event.keyCode>=46&&event.keyCode<=57" >
      </div></td>
      <td > <div align="center"> 
          <input name="x3h" type="text"  class="wenbenkuang" id="x3h" size="6" value="<%=trim(rs("x3h"))%>" onKeyPress="return event.keyCode>=46&&event.keyCode<=57" >
      </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.asp?formname=guanggao&editname=x3&uppath=shoppic&filelx=jpg','','status=no,scrollbars=no,top=20,left=110,width=420,height=165')">上传图片</a></div></td>
    </tr>
    <tr bgcolor="#F3F3F3"> 
      <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 > <div align="center"> 
          <input name="x4w" type="text"  class="wenbenkuang" id="x4w" size="6" value="<%=trim(rs("x4w"))%>" onKeyPress="return event.keyCode>=46&&event.keyCode<=57" >
      </div></td>
      <td > <div align="center"> 
          <input name="x4h" type="text"  class="wenbenkuang" id="x4h" size="6" value="<%=trim(rs("x4h"))%>" onKeyPress="return event.keyCode>=46&&event.keyCode<=57" >
      </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.asp?formname=guanggao&editname=x4&uppath=shoppic&filelx=jpg','','status=no,scrollbars=no,top=20,left=110,width=420,height=165')">上传图片</a></div></td>
    </tr>
    <tr bgcolor="#F3F3F3"> 
      <td height="30" colspan="6" style="PADDING-LEFT: 6px"><font color="#FF0000">&nbsp;</font></td>
    </tr>
    <tr bgcolor="#cccccc"> 
      <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="#F3F3F3"> 
      <td style="PADDING-LEFT: 6px">飘动小广告： </td>
      <td ><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 ><div align="center"> 
          <input name="pf" type="text"  class="wenbenkuang" id="pf" value="<%=trim(rs("pf"))%>" size="28" >
      </div></td>
      <td > <div align="center"> 
          <input name="pfw" type="text"  class="wenbenkuang" id="pfw" value="<%=trim(rs("pfw"))%>" size="6" onKeyPress="return event.keyCode>=46&&event.keyCode<=57" >
      </div></td>
      <td > <div align="center"> 
          <input name="pfh" type="text"  class="wenbenkuang" id="pfh" value="<%=trim(rs("pfh"))%>" size="6" onKeyPress="return event.keyCode>=46&&event.keyCode<=57" >
      </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.asp?formname=guanggao&editname=pf&uppath=shoppic&filelx=jpg','','status=no,scrollbars=no,top=20,left=110,width=420,height=165')">上传图片</a></div></td>
    </tr>
    <tr bgcolor="#F3F3F3"> 
      <td style="PADDING-LEFT: 6px">弹出广告：</td>
      <td ><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 ><div align="center"> 
          <input name="tc" type="text"  class="wenbenkuang" id="tc3" value="<%=trim(rs("tc"))%>" size="28" >
      </div></td>
      <td > <div align="center"> 
          <input name="tcw" type="text"  class="wenbenkuang" id="tcw" value="<%=trim(rs("tcw"))%>" size="6" onKeyPress="return event.keyCode>=46&&event.keyCode<=57" >
      </div></td>
      <td > <div align="center"> 
          <input name="tch" type="text"  class="wenbenkuang" id="tch" value="<%=trim(rs("tch"))%>" size="6" onKeyPress="return event.keyCode>=46&&event.keyCode<=57" >
      </div></td>
      <td > <div align="center"> 
          <input name="tcurl" type="text"  class="wenbenkuang" id="tcurl" value="<%=trim(rs("tcurl"))%>" size="30">
          <a href=# onClick="window.open('../upload.asp?formname=guanggao&editname=tc&uppath=shoppic&filelx=jpg','','status=no,scrollbars=no,top=20,left=110,width=420,height=165')">上传图片</a> 
          <a href=# onClick="window.open('../upload.asp?formname=guanggao&editname=tc&uppath=shoppic&filelx=swf','','status=no,scrollbars=no,top=20,left=110,width=420,height=165')">Flash</a> 
      </div></td>
    </tr>
    <tr bgcolor="#cccccc">
      <td height="15" style="PADDING-LEFT: 6px">对联广告:</td>
      <td height="15" bgcolor="#cccccc" style="PADDING-LEFT: 6px">
      <div align="center">是否调用</div></td>
      <td bgcolor="#cccccc" style="PADDING-LEFT: 6px">
      <div align="center">图片地址</div></td>
      <td height="15" bgcolor="#cccccc" style="PADDING-LEFT: 6px">
      <div align="center">宽度(W)</div></td>
      <td height="15" bgcolor="#cccccc" style="PADDING-LEFT: 6px">
      <div align="center">高度(H)</div></td>
      <td height="15" bgcolor="#cccccc" style="PADDING-LEFT: 6px">
      <div align="center">图片链接</div></td>
    </tr>
    <tr bgcolor="#F3F3F3">
      <td style="PADDING-LEFT: 6px">右广告： </td>
      <td ><div align="center">
          <select name="dldy" size="1" id="select" style="font-family: 宋体; font-size: 9pt">
            <option value="1" <%if rs("dldy")="1" then%>selected<%end if%>>调用</option>
            <option value="0" <%if rs("dldy")="0" then%>selected<%end if%>>不调用</option>
          </select>
      </div></td>
      <td ><div align="center">
          <input name="dlz" type="text"  class="wenbenkuang" id="dlz" value="<%=trim(rs("dlz"))%>" size="28" >
      </div></td>
      <td >
        <div align="center">
          <input name="dlzw" type="text"  class="wenbenkuang" id="dlzw" value="<%=trim(rs("dlzw"))%>" size="6" onKeyPress="return event.keyCode>=46&&event.keyCode<=57" >
      </div></td>
      <td >
        <div align="center">
          <input name="dlzh" type="text"  class="wenbenkuang" id="dlzh" value="<%=trim(rs("dlzh"))%>" size="6" onKeyPress="return event.keyCode>=46&&event.keyCode<=57" >
      </div></td>
      <td ><div align="center">
          <input name="dlzurl" type="text"  class="wenbenkuang" id="pfurl" value="<%=trim(rs("dlzurl"))%>" size="30">
      <a href=# onClick="window.open('../upload.asp?formname=guanggao&editname=dlz&uppath=shoppic&filelx=jpg','','status=no,scrollbars=no,top=20,left=110,width=420,height=165')">上传图片</a> <a href=# onClick="window.open('../upload.asp?formname=guanggao&editname=dlz&uppath=shoppic&filelx=swf','','status=no,scrollbars=no,top=20,left=110,width=420,height=165')">Flash</a></div></td>
    </tr>
    <tr bgcolor="#F3F3F3">
      <td style="PADDING-LEFT: 6px">左广告：</td>
      <td ><div align="center">      </div></td>
      <td ><div align="center">
          <input name="dly" type="text"  class="wenbenkuang" id="tc3" value="<%=trim(rs("dly"))%>" size="28" >
      </div></td>
      <td >
        <div align="center">
          <input name="dlyw" type="text"  class="wenbenkuang" id="dlyw" value="<%=trim(rs("dlyw"))%>" size="6" onKeyPress="return event.keyCode>=46&&event.keyCode<=57" >
      </div></td>
      <td >
        <div align="center">
          <input name="dlyh" type="text"  class="wenbenkuang" id="dlyh" value="<%=trim(rs("dlyh"))%>" size="6" onKeyPress="return event.keyCode>=46&&event.keyCode<=57" >
      </div></td>
      <td >        <div align="center">
          <input name="dlyurl" type="text"  class="wenbenkuang" id="dlyurl" value="<%=trim(rs("dlyurl"))%>" size="30">
      <a href=# onClick="window.open('../upload.asp?formname=guanggao&editname=dly&uppath=shoppic&filelx=jpg','','status=no,scrollbars=no,top=20,left=110,width=420,height=165')">上传图片</a> <a href=# onClick="window.open('../upload.asp?formname=guanggao&editname=dly&uppath=shoppic&filelx=swf','','status=no,scrollbars=no,top=20,left=110,width=420,height=165')">Flash</a> </div></td>
    </tr>
    <tr bgcolor="#F3F3F3"> 
      <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>
<%end if%>
<!--#include file="copyright.asp"-->
<p>&nbsp;</p>
<p>&nbsp;</p>
</body>
</html>
