📄 wentihf.asp
字号:
<!--#include file="../conn.asp"-->
<!--#include file="../check.asp"-->
<%
dim sid,sql1,theACT,wid,huifu,rs,temp,hfriqi
wid=chkhtm(request("wid"))
theACT=request("theACT")
if theACT="SAVE" then
call LinkData()
huifu=chkhtm(request("huifu"))
hfriqi=Date()
If huifu="" Then
response.write "请<a href='javascript:history.go(-1);'>返回</a>按照提示填写完整,如果禁用了javascript,请启用"
response.End
End if
sql1="select * from wenti where wid="&wid
Set rs = Server.CreateObject("ADODB.RecordSet")
rs.open sql1,conn,1,3
rs("laoshi")=laoshi
rs("huifu")=huifu
rs("hfriqi")=hfriqi
rs.update
rs.close
temp="wenti.asp"
response.Redirect (temp)
end If
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>老师回复</title>
<link href="../teacher.css" rel="stylesheet" type="text/css">
<script language="javascript">
function validlen(fieldname,str,len)
{
if (str.value.length <len) {
alert(fieldname+"应大于等于"+len+"位!");
str.focus();
return false;
}
return true
}
function notNull(fieldname,string)
{
if (string.value == "") {
alert(fieldname+"不能为空");
string.focus();
return false;
}
return true;
}
function check(myform)
{
if (notNull(" 内容 ",myform.huifu)&&validlen(" 内容 ",myform.huifu,10))
return true;
return false;
}
</script>
</head>
<body>
<form method="post" action="wentihf.asp" name="form1" onsubmit="return check(this)">
<table border="0" width="760" cellspacing="2" cellpadding="2" align="center">
<tr>
<td colspan="3" align="center">老师回复</td>
</tr>
<tr>
<td>内容</td>
<td><textarea name="huifu" cols="80" rows="10" id="huifu"></textarea></td>
<td> </td>
</tr>
<tr>
<td colspan="3" align="center">
<input type="submit" value="提交">
<input type="reset" value="重写">
<input name="theACT" type="hidden" id="theACT" value="SAVE">
<input name="wid" type="hidden" id="wid" value="<%=wid%>">
</td>
</tr>
</table>
</form>
</body>
</html>
<%
call CloseData()
'call Timenum()
%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -