📄 admininser1t.asp
字号:
<% response.Buffer=true %>
<!--#include file="a25175_top.asp"-->
<link href="../25175css_pro.css" rel="stylesheet" type="text/css">
<!--#include file="a25175_conn.asp"-->
<script language="JavaScript">
function checkdata() {
if (document.frm.title.value=='') {
window.alert ("请输入主题!")
return false}
if (document.frm.body.value=='') {
window.alert ("请输入您的内容!")
return false}
if (document.frm.password.value=='') {
window.alert ("请输入密码!")
return false}
return true
}
</script>
<HTML>
<HEAD>
<TITLE>教务处欢迎您!</TITLE>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=gb2312">
</HEAD>
<BODY BGCOLOR=#FFFFFF>
<table width="970" height="1334" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="163" height="667" rowspan="2" align="center" valign="top" background=""><!--#include file="Adminleft.asp"--></td>
<td width="623" height="20" align="left" valign="top" background=""><img src="images/righttop.jpg" width="598" height="20"></td>
</tr>
<tr>
<td align="left" valign="top" background=""><table width="95%" border="0" align="center" bgcolor="#FFFFFF">
<form name="frm" action="" method="post" onSubmit="return checkdata()">
<tr>
<td colspan="3" class="W12pt"></td>
</tr>
<tr>
<td width="47">主题:</td>
<td colspan="2"><input name="title" type="text" size=50 maxlength="100">
*限制输入字数50以内*</td>
</tr>
<tr>
<td colspan="3"><textarea name="body" cols="80" rows="30" wrap="PHYSICAL"></textarea></td>
</tr>
<tr>
<td>发布者</td>
<td colspan="2"><input type="text" name="person" value="数学与计算机学院" size=20></td>
</tr>
<tr>
<td> </td>
<td colspan="2"> </td>
</tr>
<tr>
<td align="right"> </td>
<td width="197" align="left">
<%
dim strsql,vartitle,varbody,varpassword,varperson
vartitle=trim(request.form("title"))
varbody=trim(request.form("body"))
varperson=trim(request.form("person"))
AREA=1
if vartitle<>"" and varbody<>""then
varbody=replace(varbody,chr(13),"<br>")
strsql="insert into news(title,body,person,submit_date,Area)"
strsql=strsql&"values('"&vartitle&"','"&varbody&"','"&varperson&"','"&date()&"',"&Area&")"
db.execute(strsql)
response.write"<script>alert('发表"&Str1&"成功!')</script>"
end if
%></td>
<td width="321" align="left"><input name="submit" type="submit" value="确定">
<input name="reset" type="reset" value="重置"></td>
</tr>
</form>
</table></td>
</tr>
</table>
</BODY>
</HTML>
<!--#include file="../foot.asp"-->
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -