<!--#include file="conn.asp"-->
<%
if session("admin")="" then
conn.close
set conn = nothing
response.Write "<script language='javascript'>alert('请先登录！');location.href='index.asp' ;</script>"
response.End
else
if request.cookies("sundxshop")("admin")="" then
conn.close
set conn = nothing
response.Write "<script language='javascript'>alert('请先登录！');location.href='index.asp' ;</script>"
response.End
end if
end if
%>
<%

dim action
action=FormatSQL(SafeRequest("action",0))
select case action
case "savegongao" 
if session("rank")>2 then
conn.close
set conn = nothing
response.Write "<script language='javascript'>alert('你无权添加公告！');history.go(-1);</script>"
response.End
end if
set rs=server.CreateObject("adodb.recordset")
rs.open "select notify1 from config",conn,1,3
rs("notify1")=trim(request.form("notify1"))
rs.update
set rs=nothing
response.Write "<script language=javascript>alert('公告修改成功！');history.go(-1);</script>"
response.End
end select
%>
<title>更改首 页公告</title>
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="1" BGCOLOR="#39867B" id="Table1">
  <tr> 
    <td height="16" BGCOLOR="#39867B"> <div align="center"><font color="#ffffff">更改首 页公告</font></div></td>
  </tr>
  <tr> 
    <td height="200" bgcolor="#FFFFFF"> <form name="form1" method="post" action="notify1.asp?action=savegongao" id="Form1">
        <div align="center"></div>
        <table width="80%" border="0" align="center" cellpadding="3" cellspacing="0" id="Table2">
          <tr> 
            <td> <div align="center"> 
			<%
				Dim strNotify1
				set rs=server.CreateObject("adodb.recordset")
                rs.Open "select notify1 from config",conn,1,1
                strNotify1 = rs("notify1")
                rs.Close
                set rs=nothing
                %>
                <textarea name="notify1" cols="60" rows="10"><%= strNotify1 %>
				</textarea>
              </div></td>
          </tr>
          <tr> 
            <td height="20"> <div align="center"> 
                <input type="submit" name="Submit" value="提 交" id="Submit1">
                &nbsp;&nbsp; 
                <input type="reset" name="Submit2" value="恢 复" id="Reset1">
              </div></td>
          </tr>
        </table>
      </form></td>
  </tr>
</table>
<!--#include file="footer.asp"-->
</body>
</html>

