📄 writenews.asp
字号:
<html>
<head>
<title>writenews</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<LINK href="../../css/style2.css" type=text/css rel=stylesheet>
<SCRIPT language=JavaScript>
function check(form){
if(document.form1.title.value=="") {alert("请填写正确的标题!\n (标题不能为空)"); document.form1.title.select();return false;}
else if(document.form1.cont.value=="") {alert("留言内容不能为空!");document.form1.cont.select();return false;}
return true;
}
</SCRIPT>
</head>
<body bgcolor="#ddeeff" text="#000000">
<%
If Session("admin_id")<>"" Then
%>
<form name="form1" method="post" action="deal_writenews.asp" onSubmit="return check(this.form);">
<div align="center">
<table width="98%" border="0" cellspacing="1" cellpadding="1" bgcolor="#999999" align="center">
<tr>
<td bgcolor="#fFfFfF" height="30">
<div align="center"><font color="#FF0000"><b>【发布通知】</b></font></div>
</td>
</tr>
<tr>
<td bgcolor="#fFfFfF"><font color="#000000"><br>
<b>使用标题: </b>
<input type="text" name="title" size="50">
<font color="#FF0000" face="Arial, Helvetica, sans-serif">(Required)</font><br>
<br>
<textarea name="cont" cols="75" rows="15" wrap=virtual></textarea>
<br>
</font></td>
</tr>
<tr>
<td bgcolor="#fFfFfF">
<div align="center"><font color="#CCCCCC">
<input type="submit" name="Submit" value="发表" onclick="return check(this.form);this.value='文章提交中,请稍候...';this.disabled=true;">
<input type="reset" name="Reset" value="清除">
</font></div>
</td>
</tr>
</table>
</div>
</form>
<%
else
Response.Write "<br><br><p align=center><b>Session超时!请重新以教师身份登录!</b> <a href='teacherlogin.htm'>现在登陆</a></p>"
End If
%>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -