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

📄 broadcast_notice.asp

📁 红金羚v1.5办公自动化软件是基于大型数据库系统开发的应用系统
💻 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">
<%
call bghead()
%>
<center><b>发布通告</b>&nbsp;&nbsp;&nbsp;&nbsp;"<font color=red>*</font>"号的表示必须填写</center>
<%
call bgmid()
%>
<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="broadcast_notice.asp" onsubmit="return form_check();">
<table border="1" cellspacing="0" cellpadding="0" bordercolorlight="#C0C0C0" bordercolordark="#FFFFFF">
<tr>
<td>
通告标题:<input type=text name="title" size=50><font color=red>*</font>
</td>
</tr>
<tr>
<td>
<center>通告内容</center><textarea rows="9" name="content" cols="60"></textarea>
</td>
</tr>
</table>
<br>
<input type="submit" name="submit" value="发布">
</form>
<%
end if
%>
</center>
<%
%>
         </td>
            
          <td background="<%=imgpath%>images/j5.gif" width=19 height=280></td>
          </tr>
        </table>
    </tr>
    <tr>
      <td height=19>
        <table border="0" cellpadding="0" cellspacing="0" width="610" height="19">
          <tr>
            
          <td width=18 height=20><img border="0" src="<%=imgpath%>images/j6.gif" width="18" height="19"></td>
            
          <td background="<%=imgpath%>images/j7.gif" width=100% height=20></td>
            
          <td width="19" height="20"><img border="0" src="<%=imgpath%>images/j8.gif"></td>
          </tr>
		  <tr>
          <td width="100%" height=20 colspan="3"><center>-----<a href="http://office.11k.net/" target=_blank><font color="red">Red office v1.5</font></a>-----</center></td>
		  </tr>
        </table>
      </td>
    </tr>
  </table>
<%
%>
</body>
</html>

⌨️ 快捷键说明

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