writetzforjieshouandcaogao.asp

来自「绿叶oa系统办公自动化 2008.工作日志管理,文件管理」· ASP 代码 · 共 215 行

ASP
215
字号
<%@LANGUAGE="VBSCRIPT"%>
<%  
Response.ExpiresAbsolute=now()-1
Response.CacheControl="no-cache"
%>

<!--#include file="../../Connections/ifr/ifrasp.asp" -->
<!--#include file="../../Connections/leq.asp" -->
<%
' *** 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" -->
<%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 sms部门表  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
%>















<html>
<head>
<script language="JavaScript">
<!--
function check() {
if (document.globe.标题.value=="") {
window.alert ("请您输入标题 !")
document.globe.标题.focus()
return false
}
if (document.globe.标题.value.length<4) {
window.alert ("标题需要4位或4位以上字符 !")
document.globe.标题.focus()
return false
}
if (document.globe.标题.value.length>30) {
window.alert ("标题需要30位以内字符 !")
document.globe.标题.focus()
return false
}

return true
}
//-->
</SCRIPT>

<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>撰写通知</title>
<style type="text/css">
<!--
.style1 {color: #FFFFFF}
-->
</style>
<link href="../../css/link.css" rel="stylesheet" type="text/css">
<link href=../../css/input.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
.style2 {
	color: #CC6633;
	font-weight: bold;
}
.style6 {font-size: 12px}
.style8 {color: #CC6633}
.style9 {color: #000000}
-->
</style>
</head>

<body>
<div align="center">
  <form method="POST" action="writepost.asp" name="globe" onsubmit="return check()">
    <div align="center">
      <center>
        <table width="760" height="21" border="0" cellpadding="0" cellspacing="0" background="../../img/bw/line.gif">
          <tr>
            <td><div align="center" class="style1"><span class="style1 style2"><span class="style1">发 布 通 知</span></span></div></td>
          </tr>
        </table>
        <table width="760" border="0" cellpadding="0" cellspacing="1" bgcolor="#5AAE18">
          <tr>
            <td bgcolor="#FFFFFF"><table width="99%" border="0" cellpadding="2" cellspacing="0">
              <tr bgcolor="#FFFFFF">
                <td colspan="2"></td>
                </tr>
              <tr bgcolor="#FFFFFF">
                <td colspan="2"></td>
                </tr>
              <tr bgcolor="#FFFFFF">
                <td height="11" colspan="2"></td>
                </tr>
              <tr bgcolor="#FFFFFF">
                <td height="25"><div align="right">接收对象:</div></td>
                <td bgcolor="#FFFFFF">                  <select name="userdept">
                  <option value="所有人" selected>所有人</option>
                    <%=DbCombox()%>
                                                                                  </select>
                  <input type="text" name="textfield"></td>
              </tr>
              <tr bgcolor="#FFFFFF">
                <td height="25">&nbsp;</td>
                <td bgcolor="#FFFFFF">&nbsp;</td>
              </tr>
              <tr bgcolor="#FFFFFF">
                <td width="90" height="25">   标 题:</td>
                <td width="660" bgcolor="#FFFFFF"><input name="标题" type="text" id="标题" size="50" maxlength="30"></td>
              </tr>
              <tr bgcolor="#FFFFFF">
                <td><div align="left"><br>
                        <table width="11" border="0" cellpadding="0" cellspacing="0">
                          <tr>
                            <td>  内 容:</td>
                          </tr>
                          <tr>
                            <td><img src="img/gif/77.gif" width="70" height="54"></td>
                          </tr>
                        </table>
                </div></td>
                <td bgcolor="#FFFFFF"><input name="content" type="hidden" id="content">
                    <iframe ID="content" src="../htmledit/ewebeditor.asp?id=content&style=standard" frameborder="0" scrolling="no" width="580" HEIGHT="380"></iframe>
                </td>
              </tr>
              <tr bgcolor="#FFFFFF">
                <td colspan="2"></td>
                </tr>
              <tr bgcolor="#FFFFFF">
                <td height="11" colspan="2"></td>
                </tr>
              <tr bgcolor="#FFFFFF">
                <td>&nbsp;</td>
                <td bgcolor="#FFFFFF">&nbsp;</td>
              </tr>
              <tr bgcolor="#FFFFFF">
                <td><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%>"></td>
                <td bgcolor="#FFFFFF">      <span class="style6"><span class="bg"><span class="bg style2"><STRONG><FONT color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff>
                <STRONG><FONT color=#ffffff><strong><font color=#ffffff><STRONG><FONT color=#ffffff><strong><font color=#ffffff><STRONG><FONT color=#ffffff><strong><font color=#ffffff><STRONG><FONT color=#ffffff><STRONG><FONT color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><STRONG><FONT color=#ffffff><strong><font color=#ffffff><STRONG><FONT color=#ffffff><strong><font color=#ffffff><STRONG><FONT color=#ffffff><strong><font color=#ffffff>
                <input name="提交" type=submit style="FONT-SIZE: 12px; HEIGHT: 27px"  value= " 发 布 " >
                </font></strong></FONT></STRONG></font></strong></FONT></STRONG></font></strong></FONT></STRONG> </font></strong></font></strong></font></strong> </font></strong></FONT></STRONG> </FONT></STRONG> <STRONG><FONT color=#ffffff> <strong><font color=#ffffff> <STRONG><FONT color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><STRONG><FONT color=#ffffff><strong><font color=#ffffff><STRONG><FONT color=#ffffff><strong><font color=#ffffff><STRONG><FONT color=#ffffff><strong><font color=#ffffff><STRONG><FONT color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><STRONG><FONT color=#ffffff><strong><font color=#ffffff><STRONG><FONT color=#ffffff><strong><font color=#ffffff><STRONG><FONT color=#ffffff><strong><font color=#ffffff>   <STRONG><FONT color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><STRONG><FONT color=#ffffff><strong><font color=#ffffff><STRONG><FONT color=#ffffff><strong><font color=#ffffff><STRONG><FONT color=#ffffff><strong><font color=#ffffff><STRONG><FONT color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><STRONG><FONT color=#ffffff><strong><font color=#ffffff><STRONG><FONT color=#ffffff><strong><font color=#ffffff><STRONG><FONT color=#ffffff><strong><font color=#ffffff><STRONG><FONT color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><STRONG><FONT color=#ffffff><strong><font color=#ffffff><STRONG><FONT color=#ffffff><strong><font color=#ffffff><STRONG><FONT color=#ffffff><strong><font color=#ffffff>
                <input name="重置" type=reset style="FONT-SIZE: 12px; HEIGHT: 27px"  value= " 重 填 " >
                </font></strong></FONT></STRONG></font></strong></FONT></STRONG></font></strong></FONT></STRONG></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></FONT></STRONG></font></strong></FONT></STRONG></font></strong></FONT></STRONG></font></strong></FONT></STRONG></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></FONT></STRONG></font></strong></FONT></STRONG></font></strong></FONT></STRONG></font></strong></FONT></STRONG></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></FONT></STRONG> </font></strong></FONT></STRONG></font></strong></FONT></STRONG></font></strong></FONT></STRONG></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></FONT></STRONG></font></strong></FONT></STRONG></font></strong></FONT></STRONG></font></strong></FONT></STRONG></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></FONT></STRONG> 
                <input name="按钮" type=button style="FONT-SIZE: 12px; HEIGHT: 27px"   onClick="javascript:history.go(-1)" value= " 取 消 " >
</font></strong></FONT></STRONG></font></strong></FONT></STRONG></font></strong></FONT></STRONG></font></strong></FONT></STRONG></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></FONT></STRONG></span><span class="bg  style8">                <span class="style9">存为草稿,暂不发布:</span></span><span class="bg style2"><STRONG><FONT color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><STRONG><FONT color=#ffffff><strong><font color=#ffffff><STRONG><FONT color=#ffffff><strong><font color=#ffffff><STRONG><FONT color=#ffffff><strong><font color=#ffffff><STRONG><FONT color=#ffffff><strong><font color=#ffffff>                    
<input name="开关" type="checkbox" id="开关" value="关">
</font></strong></FONT></STRONG></font></strong></FONT></STRONG></font></strong></FONT></STRONG></font></strong></FONT></STRONG></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></FONT></STRONG></span></span></span></td>
              </tr>
              <tr bgcolor="#FFFFFF">
                <td height="12" colspan="2"></td>
                </tr>
            </table></td>
          </tr>
        </table>
        <p>&nbsp;</p>
      </center>
    </div>
  </form>
</div>
</body>
</html>

⌨️ 快捷键说明

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