<!--#include file="Conn.asp"-->
<!--#include file ="Check_Manager.asp"-->
<%
If Request.QueryString("action")="update" Then
info = Trim(Request.Form("content"))
Sql = "Update [Sale] Set Content='"&info&"' Where ID=1"
Conn.Execute (Sql)
JaSys("管理员" & session("ManagerUser") & "<font color=red>更新千纸鹤在线</font>成功")
        Response.write "<script language='javascript'>" & chr(13)
		Response.write "alert('更新成功!');" & Chr(13)
		Response.write "window.document.location.href='Sale_In.asp';"&Chr(13)
		Response.write "</script>" & Chr(13)
        Response.End
End if
Set rs=server.createobject("adodb.recordset")
sqltext="Select * From [Sale] Where ID=1"
rs.open sqltext,conn,1,1
%>
<html>
<head>
<titel></titel>
<LINK href="admin/admin.css" type=text/css rel=stylesheet>
</head>
<body>
<script>
function change(obj,i) {
he=parseInt(obj.style.height);
if (he>=80&&he<=400)
   obj.style.height=he+i+'px';
else 
   obj.style.height='80px';
}
</script>
<script language="JavaScript">
<!--
function chk(theForm){
if (theForm.info.value == ""){
                alert("请输入您的栏目名称!");
                theForm.info.focus();
                return (false);
        } 
}
//-->
</script>
<html>
<head>
<titel></titel>
<LINK href="admin/admin.css" type=text/css rel=stylesheet>
</head>
<body>
<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
  <tr> 
    <td align="center" valign="top"> <br> <strong><br>
      </strong> <table width="550" border="0" cellspacing="0" cellpadding="0" class=tableBorder>
        <tr> 
          <td height="25" background="admin/admin_bg_1.gif"> 
            <div align="center"><strong><font color="#FFFFFF">设 计 团 队</font></strong> 
            </div></td>
        </tr>
        <tr> 
          <form method="POST" action="Sale_In.asp?action=update" name="form1">
            <td valign="top">
<table width="100%" border="0" cellspacing="2" cellpadding="0">
                <tr> 
                  <td width="19%" height="300"> <div align="center">内容：<br>
                      (支持UBB代码) </div></td>
                  <td width="81%"> <script src=../Inc/Eshopcode.js></script> 
                    <!--#include file=../Inc/Ubb.inc -->
                    <textarea name="content" cols="65" rows="15"><%=rs("Content")%></textarea> </td>
                </tr>
                <tr> 
                  <td colspan="2"><div align="center"> 
                      <input name="submit" type="submit" id="submit" value=" 修 改 ">
                      &nbsp; 
                      <input type="reset" value=" 重 写 " name="cmdcancel">
                    </div></td>
                </tr>
                <tr> 
                  <td colspan="2">图片上传</td>
                </tr>
                <tr> 
                  <td colspan="2"><div align="center"> 
                      <iframe name="ad" frameborder=0 width=100% height=50 scrolling=no src=../uploada.asp></iframe>
                    </div></td>
                </tr>
              </table></td>
          </form>
        </tr>
      </table>
      <strong> </strong></td>
  </tr>
</table>
<%
rs.Close
Set rs=Nothing
call CloseConn()
%>
</body>
</html>