📄 fwzz.asp
字号:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include file="conn.asp"-->
<script language="JavaScript">
<!--
function chk() {
if(form1.gg.value=="" ) {
alert("内容必须填写!!")
return false;
}
}
// -->
</script>
<%
if session("admin")<>"mfkiqpl" then
response.write("<script>top.location='error.asp?errormsg=<li>您不是管理员,或您没有登录!</li><br><li>您的登录信息已经过期,请重新登录!</li>';</script>")
end if
action=request("action")
if action="ok" then
call savegg()
response.end()
end if
set rs=server.createobject("adodb.recordset")
sql="select * from gg2 where 编号="&request("id")
rs.open sql,conn,1,3
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title></title>
</head>
<body>
<table width="600" border="0" cellspacing="0" cellpadding="0">
<form name="form1" method="post" action="?action=ok">
<tr>
<td height="226">
<div align="center">
<textarea name="gg" cols="42" rows="15"><%=rs("content")%></textarea>
</div>
</td>
</tr>
<tr>
<td><div align="center">
<input type="submit" name="Submit" value="提交" onClick="javascript:return chk();">
<input type="reset" name="Submit2" value="重置">
<input name="sid" type="hidden" id="sid" value="<%=request("id")%>">
</div></td>
</tr>
</form>
</table>
</body>
</html>
<%
rs.close
sub savegg()
id=request("sid")
content=request("gg")
set rs=server.CreateObject("adodb.recordset")
sql="select * from gg2 where 编号="&id
rs.open sql,conn,1,2
rs("content")=content
rs.update
rs.close
if id=3 then
response.write("<script>alert('特价信息修改成功!按确定返回!');location='fwzz.asp?id=3';</script>")
end if
if id=4 then
response.write("<script>alert('特价信息修改成功!按确定返回!');location='fwzz.asp?id=4';</script>")
end if
end sub
conn.close
set conn=nothing
%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -