<%
if request.cookies("buyok")("admin")="" then response.write "<meta http-equiv='refresh' content='0;URL=../admin.asp'>"
%>
<!--#include file="../include/config.asp"-->

<script language=javascript src=../include/mouse.js></script>
<%
sub checkmanage(str)
Set mrs = conn.Execute("select * from manage where username='"&request.cookies("buyok")("admin")&"'")
if not (mrs.bof and mrs.eof) then
manage=mrs("manage")
if instr(manage,str)<=0 then
response.write "<script language='javascript'>"
response.write "alert('警告：您没有此项操作的权限！');"
response.write "location.href='quit.asp';"
response.write "</script>"
response.end
else
session("buyok_admin_login")=0
end if
else 
response.write "<script language='javascript'>"
response.write "alert('没有登陆，不能执行此操作！');"
response.write "location.href='quit.asp';"
response.write "</script>"
response.end
end if
set mrs=nothing
end sub
%>
<%call checkmanage("02")%>

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<LINK href="../images/css.css" type=text/css rel=stylesheet>
<LINK href="../list/newhead.css" type=text/css rel=stylesheet>
</head>
<BODY bgcolor="#D9EAFC">
<%
action=request("ok")
if action="" then
Set rs = conn.Execute("select * from adv2") 
%>
<table height="5"><tr><td></td></tr></table>
<TABLE cellSpacing=0 cellPadding=0 width=95% border=0 style="BORDER-RIGHT: #b1bfee 1px solid; BORDER-TOP: #b1bfee 1px solid; BORDER-LEFT: #b1bfee 1px solid; BORDER-BOTTOM: #b1bfee 1px solid" 
>
  <TBODY>
    <TR>
      <TD width="90%" bgColor=#f4f5fd><font color="#000000">　<B><font color="#FF0000">&nbsp;首页左上角广告设置（大小：202×56）</font></B></font></TD>
      <TD bgColor=#f4f5fd height=30>&nbsp;</TD>
    </TR>
  </TBODY>
</TABLE>
		  <table height="5"><tr><td></td></tr></table>


  <table width="95%"  border="0" cellpadding="0" cellspacing="1" bgcolor="#b1bfee">
  	<form action=adv_remen.asp method=post name=adv>

    <tr bgcolor="#FFFFFF"> 
      <td width=30%>第一张图片</td>
      <td></td>
    </tr>
    <tr bgcolor="#FFFFFF"> 
      <td width=20% height="18" align=right>JPG/GIF图片</td>
      <td> <input name=hf230pic type=text id="hf230pic" value="<%=rs("hf230pic")%>" size=40 maxlength=100> 
        <INPUT TYPE="button" value="浏览"  onClick="window.open('upload.asp?fuptype=adv&fupname=remen1&frmname=hf230pic','blank_','scrollbars=yes,resizable=no,width=650,height=450')"></td>
    </tr>
    <tr bgcolor="#FFFFFF"> 
      <td width=20% height="18" align=right>链接</td>
      <td> <input name=hf230url type=text id="hf230url" value="<%=rs("hf230url")%>" size=40 maxlength=100></td>
    </tr>
    <tr bgcolor="#FFFFFF"> 
      <td width=20% height="18" align=right>说明</td>
      <td> <input name=hf230tit type=text id="hf230tit" value="<%=rs("hf230tit")%>" size=40 maxlength=100></td>
    </tr>
    <tr bgcolor="#FFFFFF"> 
      <td width=20%>第二张图片</td>
      <td></td>
    </tr>
    <tr bgcolor="#FFFFFF"> 
      <td width=20% height="18" align=right>JPG/GIF图片</td>
      <td> <input type=text value="<%=rs("hf231pic")%>" name=hf231pic size=40 maxlength=100> 
        <INPUT TYPE="button" value="浏览"  onClick="window.open('upload.asp?fuptype=adv&fupname=remen2&frmname=hf231pic','blank_','scrollbars=yes,resizable=no,width=650,height=450')"></td>
    </tr>
    <tr bgcolor="#FFFFFF"> 
      <td width=20% height="18" align=right>链接</td>
      <td> <input type=text value="<%=rs("hf231url")%>" name=hf231url size=40 maxlength=100></td>
    </tr>
    <tr bgcolor="#FFFFFF"> 
      <td width=20% height="19" align=right>说明</td>
      <td> <input type=text value="<%=rs("hf231tit")%>" name=hf231tit size=40 maxlength=100></td>
    </tr>
    <tr bgcolor="#FFFFFF"> 
      <td width=20%>第三张图片</td>
      <td></td>
    </tr>
    <tr bgcolor="#FFFFFF"> 
      <td width=20% height="18" align=right>JPG/GIF图片</td>
      <td> <input type=text value="<%=rs("hf232pic")%>" name=hf232pic size=40 maxlength=100> 
        <INPUT TYPE="button" value="浏览"  onClick="window.open('upload.asp?fuptype=adv&fupname=remen3&frmname=hf232pic','blank_','scrollbars=yes,resizable=no,width=650,height=450')"></td>
    </tr>
    <tr bgcolor="#FFFFFF"> 
      <td width=20% height="18" align=right>链接</td>
      <td> <input type=text value="<%=rs("hf232url")%>" name=hf232url size=40 maxlength=100></td>
    </tr>
    <tr bgcolor="#FFFFFF"> 
      <td width=20% height="18" align=right>说明</td>
      <td> <input type=text value="<%=rs("hf232tit")%>" name=hf232tit size=40 maxlength=100></td>
    </tr>
	    <tr bgcolor="#FFFFFF"> 
      <td width=20%>第四张图片</td>
      <td></td>
    </tr>
    <tr bgcolor="#FFFFFF"> 
      <td width=20% height="18" align=right>JPG/GIF图片</td>
      <td> <input type=text value="<%=rs("hf236pic")%>" name=hf236pic size=40 maxlength=100> 
        <INPUT TYPE="button" value="浏览"  onClick="window.open('upload.asp?fuptype=adv&fupname=remen4&frmname=hf236pic','blank_','scrollbars=yes,resizable=no,width=650,height=450')"></td>
    </tr>
    <tr bgcolor="#FFFFFF"> 
      <td width=20% height="18" align=right>链接</td>
      <td> <input type=text value="<%=rs("hf236url")%>" name=hf236url size=40 maxlength=100></td>
    </tr>
    <tr bgcolor="#FFFFFF"> 
      <td width=20% height="18" align=right>说明</td>
      <td> <input type=text value="<%=rs("hf236tit")%>" name=hf236tit size=40 maxlength=100></td>
    </tr>
    <tr bgcolor="#FFFFFF"> 
      <td width=20%>第五张图片</td>
      <td></td>
    </tr>
    <tr bgcolor="#FFFFFF"> 
      <td width=20% height="18" align=right>JPG/GIF图片</td>
      <td> <input type=text value="<%=rs("hf237pic")%>" name=hf237pic size=40 maxlength=100> 
        <INPUT TYPE="button" value="浏览"  onClick="window.open('upload.asp?fuptype=adv&fupname=remen5&frmname=hf237pic','blank_','scrollbars=yes,resizable=no,width=650,height=450')"></td>
    </tr>
    <tr bgcolor="#FFFFFF"> 
      <td width=20% height="18" align=right>链接</td>
      <td> <input type=text value="<%=rs("hf237url")%>" name=hf237url size=40 maxlength=100></td>
    </tr>
    <tr bgcolor="#FFFFFF"> 
      <td width=20% height="18" align=right>说明</td>
      <td> <input type=text value="<%=rs("hf237tit")%>" name=hf237tit size=40 maxlength=100></td>
    </tr>
    <tr bgcolor="#FFFFFF"> 
      <td width=20%>第六张图片</td>
      <td></td>
    </tr>
    <tr bgcolor="#FFFFFF"> 
      <td width=20% height="18" align=right>JPG/GIF图片</td>
      <td> <input type=text value="<%=rs("hf238pic")%>" name=hf238pic size=40 maxlength=100> 
        <INPUT TYPE="button" value="浏览"  onClick="window.open('upload.asp?fuptype=adv&fupname=remen6&frmname=hf238pic','blank_','scrollbars=yes,resizable=no,width=650,height=450')"></td>
    </tr>
    <tr bgcolor="#FFFFFF"> 
      <td width=20% height="18" align=right>链接</td>
      <td> <input type=text value="<%=rs("hf238url")%>" name=hf238url size=40 maxlength=100></td>
    </tr>
    <tr bgcolor="#FFFFFF"> 
      <td width=20% height="18" align=right>说明</td>
      <td> <input type=text value="<%=rs("hf238tit")%>" name=hf238tit size=40 maxlength=100></td>
    </tr>
    <tr bgcolor="#FFFFFF"> 
      <td width=20%>第七张图片</td>
      <td></td>
    </tr>
    <tr bgcolor="#FFFFFF"> 
      <td width=20% height="18" align=right>JPG/GIF图片</td>
      <td> <input type=text value="<%=rs("hf239pic")%>" name=hf239pic size=40 maxlength=100> 
        <INPUT TYPE="button" value="浏览"  onClick="window.open('upload.asp?fuptype=adv&fupname=remen7&frmname=hf239pic','blank_','scrollbars=yes,resizable=no,width=650,height=450')"></td>
    </tr>
    <tr bgcolor="#FFFFFF"> 
      <td width=20% height="18" align=right>链接</td>
      <td> <input type=text value="<%=rs("hf239url")%>" name=hf239url size=40 maxlength=100></td>
    </tr>
    <tr bgcolor="#FFFFFF"> 
      <td width=20% height="18" align=right>说明</td>
      <td> <input type=text value="<%=rs("hf239tit")%>" name=hf239tit size=40 maxlength=100></td>
    </tr>

    <tr bgcolor="#FFFFFF"> 
      <td colspan=2> <INPUT name="ok" TYPE="hidden" value="ok"> 
        <INPUT name=action TYPE="submit" value="保存设置"></td>
    </tr>
	</form>

  </table>

	
<%
	rs.close
	set rs=nothing
end if%>
<%              
if action="ok" then


     Set rs=Server.CreateObject("ADODB.Recordset")
	 sql="select * from adv2"
	 rs.open sql,conn,1,3

	 rs("hf230pic")=trim(request.form("hf230pic"))
 	 rs("hf230url")=trim(request.form("hf230url"))
 	 rs("hf230tit")=trim(request.form("hf230tit"))

	 rs("hf231pic")=trim(request.form("hf231pic"))
 	 rs("hf231url")=trim(request.form("hf231url"))
 	 rs("hf231tit")=trim(request.form("hf231tit"))

	 rs("hf232pic")=trim(request.form("hf232pic"))
 	 rs("hf232url")=trim(request.form("hf232url"))
 	 rs("hf232tit")=trim(request.form("hf232tit"))
	 
	 rs("hf236pic")=trim(request.form("hf236pic"))
 	 rs("hf236url")=trim(request.form("hf236url"))
 	 rs("hf236tit")=trim(request.form("hf236tit"))

	 rs("hf237pic")=trim(request.form("hf237pic"))
 	 rs("hf237url")=trim(request.form("hf237url"))
 	 rs("hf237tit")=trim(request.form("hf237tit"))

	 rs("hf238pic")=trim(request.form("hf238pic"))
 	 rs("hf238url")=trim(request.form("hf238url"))
 	 rs("hf238tit")=trim(request.form("hf238tit"))

	 rs("hf239pic")=trim(request.form("hf239pic"))
 	 rs("hf239url")=trim(request.form("hf239url"))
 	 rs("hf239tit")=trim(request.form("hf239tit"))

	rs.update
	rs.close
	set rs=nothing

	response.write "<script language='javascript'>"
	response.write "alert('热点促销图片设置成功！');"
	response.write "location.href='adv_remen.asp';"
	response.write "</script>"
	response.end
end if%>

</body>
</html>

