📄 addnotice.asp
字号:
<!--#include file="check.asp"-->
<!--#include file="checkpower.asp"-->
<!--#INCLUDE FILE="connect.asp" -->
<!--#INCLUDE FILE="encode.asp" -->
<html>
<head>
<title>办公自动化(OA)</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<script language="JavaScript" src="apply.js"></script>
<link rel="stylesheet" href="apply.css" type="text/css">
</head>
<%
set rs=server.createobject("adodb.recordset")
if Request.ServerVariables("request_method")="POST" then
ipaddress=request.servervariables("remote_addr")
encodetext=encode(request("text"))
sql="select * from news where id=1"
rs.open sql,conn,1,3
rs.addnew
rs("news")=encodetext
rs("title")=request("title")
rs("senddate")=date()
rs("sendtime")=time()
rs("ipaddress")=ipaddress
rs("handleid")=session("uid")
rs.update
rs.close
response.write("<script language=javascript>alert('添加公告信息成功!')</script>")
end if
%>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" oncontextmenu="return false">
<div align="center">
<table width="100%" border="0" cellspacing="0" cellpadding="0" height="100%">
<tr>
<td valign="top">
<form name="form" method="post" action="">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr height="25">
<td width="133" valign="top" rowspan="5"> </td>
<td height="73" valign="middle" class="title" colspan="2"><img src="images/systemnotice.gif">
</td>
</tr>
<tr height="25">
<td height="30" colspan="2" > 标 题:
<input type="text" class="noinput" name="title" size="30" maxlength="48">
</td>
</tr>
<tr valign="top">
<td valign="middle" height="35" colspan="2" >内 容:</td>
</tr>
<tr valign="middle">
<td valign="top" height="200" colspan="2" >
<textarea name="text" class="body1" cols="75" rows="13"></textarea>
</td>
</tr>
<tr>
<td valign="bottom" height="30" width="519" align="center" >
<input type="image" value="添加公告" name="add" onClick="return checkaddnotice();" src="images/noticegif.gif" alt="添加公告" >
<input type="image" name="send2" value=" 返 回 " onClick="document.location='system.asp';return false;" src="images/fanhuigif.gif" alt="返回">
</td>
<td valign="top" height="30" width="367" > </td>
</tr>
</table>
</form>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td> </td>
</tr>
</table>
</td>
</tr>
</table>
</div>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -