⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 newnotice.asp

📁 很好的OA办公系统
💻 ASP
字号:
<%response.expires=0%>
<!--#include file="asp/sqlstr.asp"-->
<!--#include file="asp/opendb.asp"-->
<!--#include file="asp/bgsub.asp"-->
<%
oabusyname=request.cookies("oabusyname")
oabusyusername=request.cookies("oabusyusername")
oabusyuserdept=request.cookies("oabusyuserdept")
oabusyuserlevel=request.cookies("oabusyuserlevel")
if oabusyusername="" then 
	response.write("<script language=""javascript"">")
	response.write("window.top.location.href='default.asp';")
	response.write("</script>")
	response.end
end if
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="css/css.css">
<meta http-equiv="pragma" content="no-cache">
<title>红孩儿Office办公系统</title>
</head>
<body bgcolor="#ffffff" topmargin="5" leftmargin="5">

<center><b>发布通告</b>&nbsp;&nbsp;&nbsp;&nbsp;"<font color=red>*</font>"号的表示必须填写</center>

<center>  
<%
if request.form("submit")="发布" then
	title=request.form("title")
	content=request.form("content")
	set conn=opendb("oabusy","conn","accessdsn")
	sql = "Insert Into newnotice (sendusername,title,content) Values( "
	sql=sql & SqlStr(oabusyusername) & ","
	sql = sql & SqlStr(title) & ", "
	sql = sql & SqlStr(content) & ")"
	conn.Execute sql
	'把是否看过通告改为"no"
	set conn=opendb("oabusy","conn","accessdsn")
	sql = "update userinf set seenotice='no'"
	conn.Execute sql
%>
<br><br>
<font color="red" size="+1">新通告发布成功!</font>
<br><br>
<%
else
%>
<script Language="JavaScript">  
function maxlength(str,minl,maxl)
{
	if(str.length <= maxl && str.length >= minl)
	{
		return true;
	}
	else
	{
		return false;
	}
}

function form_check()
{
	var l1=maxlength(document.form2.title.value,1,50);
	if(!l1)
	{
		window.alert("标题的长度大于1位小于50位");
		document.form2.title.focus();
		return (false);
	}
}
</script>
<br>
<form method=post name=form2 action="newnotice.asp" onsubmit="return form_check();">
<table border="1" cellspacing="0" cellpadding="5" bordercolorlight="#808080" bordercolordark="#D4D0C8" width="80%">
<tr>
<td width="365" align="right">
通告标题:
</td>
<td width="365">
<input type=text name="title" size=50><font color=red>*</font>
</td>
</tr>
</center>
<tr>
<td width="365" align="right">
<p align="right">通告内容:</p>
</td>

<center>
<td width="365">
<textarea rows="9" name="content" cols="50"></textarea>
</td>
</tr>
</table>
<br>
<input type="submit" name="submit" value="发布">
</form>
<%
end if
%>
</center>

<div align="center">
  <center>

<table>
    <tr>
      <td height=19>
        <table border="0" cellpadding="0" cellspacing="0" width="610" height="19">
		  <tr>
          <td width="100%" height=20>
            <p align="center"><font color="#808080">IE37 &copy; <a href="http://www.ie37.com" target="_blank">IE37.com</a></font></td> 
		  </tr>
        </table>
      </td>
    </tr>
  </table>
  </center>
</div>
</body>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -