write.asp
来自「绿叶oa系统办公自动化 2008.工作日志管理,文件管理」· ASP 代码 · 共 191 行
ASP
191 行
<%Response.Expires = -1
Response.ExpiresAbsolute = Now() - 1
Response.cachecontrol = "no-cache"%>
<%
' *** Restrict Access To Page: Grant or deny access to this page
MM_authorizedUsers=""
MM_authFailedURL="../../index.asp"
MM_grantAccess=false
If Session("userssdfgfhtrh") <> "" Then
If (true Or CStr(Session("MM_UserAuthorization"))="") Or _
(InStr(1,MM_authorizedUsers,Session("MM_UserAuthorization"))>=1) Then
MM_grantAccess = true
End If
End If
If Not MM_grantAccess Then
MM_qsChar = "?"
If (InStr(1,MM_authFailedURL,"?") >= 1) Then MM_qsChar = "&"
MM_referrer = Request.ServerVariables("URL")
if (Len(Request.QueryString()) > 0) Then MM_referrer = MM_referrer & "?" & Request.QueryString()
MM_authFailedURL = MM_authFailedURL & MM_qsChar & "accessdenied=" & Server.URLEncode(MM_referrer)
Response.Redirect(MM_authFailedURL)
End If
%><!--#include file="../../Connections/oavbsconn.asp" -->
<!--#include file="../../Connections/ifr/ifrasp.asp" -->
<!--#include file="../fengge/config.asp" -->
<%function DbCombox()
Dim Recordset1__MMColParam
Recordset1__MMColParam = "是"
If (Request("MM_EmptyValue") <> "") Then
Recordset1__MMColParam = Request("MM_EmptyValue")
End If
%>
<%
Dim Recordset1
Dim Recordset1_numRows
Set Recordset1 = Server.CreateObject("ADODB.Recordset")
Recordset1.ActiveConnection = MM_oavbsconn_STRING
Recordset1.Source = "SELECT 版块 FROM bbsbankuai WHERE 开关 = '" + Replace(Recordset1__MMColParam, "'", "''") + "' ORDER BY 排序 ASC"
Recordset1.CursorType = 0
Recordset1.CursorLocation = 2
Recordset1.LockType = 1
Recordset1.Open()
while not Recordset1.eof
msg = msg & "<option value=""" &Recordset1("版块") & """>" & Recordset1("版块") & "</option>"
Recordset1.movenext
wend
Recordset1.close
set Recordset1 = nothing
DbCombox = msg
End function
Recordset1_numRows = 0
%>
<%
Dim webtiles
Dim webtiles_numRows
Set webtiles = Server.CreateObject("ADODB.Recordset")
webtiles.ActiveConnection = MM_oavbsconn_STRING
webtiles.Source = "SELECT 页面名称 FROM webtitles WHERE 模块名称 = '论坛' and 描述='发表帖子'"
webtiles.CursorType = 0
webtiles.CursorLocation = 2
webtiles.LockType = 1
webtiles.Open()
webtiles_numRows = 0
%>
<html>
<head>
<script language="JavaScript">
<!--
function dis(){
document.form1.submit.value=' 发帖..'
document.form1.submit.disabled=true;
return true;
}
function check() {
if (document.form1.接收部门.value=="null") {
window.alert ("请选择版块 !")
document.form1.接收部门.focus()
return false
}
if (document.form1.标题.value=="") {
window.alert ("请您输入主题 !")
document.form1.标题.focus()
return false
}
if (document.form1.标题.value.length>40) {
window.alert ("标题需要40位以内字符 !")
document.form1.标题.focus()
return false
}
//if (document.form1.types.value="署名")
//{(document.form1.shuming.value="")
// {
//window.alert ("请输入署名!")
//document.form1.shuming.focus()
//return false
//}
//}
return true
}
//-->
</SCRIPT>
<style type="text/css">
<!--
.style6 {font-size: 12px}
-->
</style>
<link href="../../css/input.css" rel="stylesheet" type="text/css">
<link href="../../css/link.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
.style8 {font-weight: bold; color: #FFFFFF;}
.style9 {color: #CCCCCC}
-->
</style>
<body>
<div align="center">
<div align="center">
<div class="RoundedCorner">
<b class="rtop"><b class="r1"></b><b class="r2"></b><b class="r3"></b><b class="r4"></b></b> <span class="style1"><%=(webtiles.Fields.Item("页面名称").Value)%></span>
</div>
<table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="<%=secaiid%>">
<tr>
<td bgcolor="#FFFFFF"><form name="form1" method="post" action="wrtepost.asp" onSubmit="return dis()">
<table width="99%" border="0" cellpadding="3" cellspacing="0">
<tr bgcolor="#FFFFFF">
<td height="11" colspan="2"></td>
</tr>
<tr bgcolor="#FFFFFF">
<td><div align="right">版块:</div></td>
<td bgcolor="#FFFFFF"><select name="接收部门" id="接收部门">
<option value="null" selected>选择版块</option>
<%=DbCombox()%>
</select></td>
</tr>
<tr bgcolor="#FFFFFF">
<td width="80">
<div align="right">主 题:</div></td>
<td width="670" bgcolor="#FFFFFF"><div align="left">
<input name="标题" type="text" id="标题" size="50" maxlength="40">
</div></td>
</tr>
<tr bgcolor="#FFFFFF">
<td><div align="right"><br>
内 容:
</div></td>
<td bgcolor="#FFFFFF"><div align="left">
<input name="content" type="hidden" id="content">
<iframe ID="content" src="../htmledit/ewebeditor.asp?id=content&style=standard" frameborder="0" scrolling="no" width="600" HEIGHT="380"></iframe>
</div></td>
</tr>
<tr bgcolor="#FFFFFF">
<td height="12" colspan="2"></td>
</tr>
<tr bgcolor="#FFFFFF">
<td><div align="left">
<input name="信息属性" type="hidden" id="信息属性" value="通知">
<input name="发送人帐号" type="hidden" id="发送人帐号" value="<%= Session("userssdfgfhtrh") %>">
<input name="发送人姓名" type="hidden" id="发送人姓名" value="<%= Session("names") %>">
<input name="datas" type="hidden" id="datas" value="<%=date%>">
</div></td>
<td bgcolor="#FFFFFF">
<input name="submit" type=submit id="submit" style="FONT-SIZE: 12px; HEIGHT: 27px" onclick="return check()" value= " 发 帖 ">
<input name="重置" type=reset style="FONT-SIZE: 12px; HEIGHT: 27px" value= " 重 写 " >
<input name="按钮" type=button style="FONT-SIZE: 12px; HEIGHT: 27px" onClick="javascript:history.go(-1)" value= " 取 消 " >
</tr>
</table>
</form></td>
</tr>
</table>
<p> </p>
</div>
</body>
</html>
<%
webtiles.Close()
Set webtiles = Nothing
%>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?