<!--#include file="sd_mdb.asp"-->
<%
if session("User")="" then
	response.write"<SCRIPT language=JavaScript>alert('您尚未登录！');"
	response.write"location.href=""sd_admin_login.asp"";</SCRIPT>"
end if
%>
<%
dim id,modify,sd_name,sd_topid,sd_content
id=request("id")
if id="" then
response.write "参数丢失!"
Response.End
end if
modify=request("modify")
sd_name=request("sd_name")
sd_topid=request("sd_topid")
sd_content=request("sd_content")
if modify="yes" then
if sd_name="" or sd_topid="" then
response.write "<font color='red'>页面名称、排序必须填写!</font><br>"
else
set r=server.createobject("adodb.recordset")
r.open "select * from sd_about where id="&id,conn,1,3
if not r.eof then
r("id")=id
r("sd_name")=sd_name
r("sd_topid")=sd_topid
r("sd_content")=sd_content
r.update
Response.Write "<script language=javascript>alert('修改成功！');this.location.href='sd_about.asp';</script>"
end if
r.close
set r=nothing
end if
end if
%>
<HTML>
<HEAD>
<TITLE>雨过天晴工作室 www.zzcodes.net</TITLE>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312"> 
<LINK href="images/Admin_css.css" type=text/css rel=stylesheet>
</HEAD>
<BODY>
<form action="sd_about_02.asp" method="post" onSubmit="return load_content();">
<%
set r=server.createobject("adodb.recordset")
r.open "select * from sd_about where id="&request("id"),conn,1,3
if not r.eof then
%>
<table height="1" border="0" cellpadding="3"  cellspacing="1" bgcolor="#F2F9E8" class="admintable1">
  <tr>
    <td colspan="2" class="admintitle">修改单页内容</td>
  </tr>
  <tr>
    <td width="20%" height="30" align="right" bgcolor="#FFFFFF">页面名称：</td>
    <td width="80%" bgcolor="#FFFFFF"><input name="sd_name" size="35" value="<%=r("sd_name")%>"></td>
  </tr>
  <tr>
    <td height="30" align="right" bgcolor="#FFFFFF">推荐级别：</td>
    <td bgcolor="#FFFFFF"><input name="sd_topid" size="10" onKeyUp="value=value.replace(/[^\d.]/g,'')" onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d.]/g,''))" value="<%=r("sd_topid")%>"> 0-99,数字越大，排名越靠前</td>
  </tr>
  <tr>
    <td height="30" align="right" bgcolor="#FFFFFF">内容：</td>
    <td bgcolor="#FFFFFF"><SCRIPT language="javascript">
var Sm="";//----编辑器的网址
var Se="SDEdit/";//----编辑器的文件夹
var sy="919B9C";//----边框深一点的颜色
var qy="ECE9D8";//----背景浅一点的颜色
var by="FCFCFC";//----背景白色的底纹
var an="sd_content";//----所要编辑的文本框名称
</script>
<SCRIPT language="JavaScript" src="SDEdit/sdEdit.js" charset="gb2312"></SCRIPT>  
<textarea name="sd_content" id="sd_content" cols="88" rows="8" style="display:none;"><%=r("sd_content")%></textarea></td>
  </tr>
  <tr>
    <td height="30" align="right" bgcolor="#FFFFFF"></td>
    <td bgcolor="#FFFFFF"><input name="id" value='<%=r("id")%>' type='hidden'><input name="modify" value="yes" type="hidden"><input type="submit" value="确认修改"></td>
  </tr>
</table>
<%
end if
r.close
set r=nothing
%>
</form>
<!--#include file="sd_copy.asp"-->
</BODY>
</HTML>