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

📄 mysmstoother11.asp

📁 绿叶oa系统办公自动化 2008.工作日志管理,文件管理
💻 ASP
字号:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include file="../../Connections/oavbsconn.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/ifr/ifrasp.asp" -->
<%
Dim Recordset1__MMColParam
Recordset1__MMColParam = "短消息"
If (Request("MM_EmptyValue") <> "") Then 
  Recordset1__MMColParam = Request("MM_EmptyValue")
End If
%>
<%
Dim Recordset1__varsessionuser
Recordset1__varsessionuser = "1"
If (Session("userssdfgfhtrh") <> "") Then 
  Recordset1__varsessionuser = Session("userssdfgfhtrh")
End If
%>
<%
Dim Recordset1
Dim Recordset1_numRows
Set Recordset1 = Server.CreateObject("ADODB.Recordset")
Recordset1.ActiveConnection = MM_oavbsconn_STRING
Recordset1.Source = "SELECT *  FROM infoall  WHERE (信息属性 = '" + Replace(Recordset1__MMColParam, "'", "''") + "' or 信息属性 = '短消息回复') and 发送人帐号='" + Replace(Recordset1__varsessionuser, "'", "''") + "' and 是否标记为删除='否'  ORDER BY ID DESC"
Recordset1.CursorType = 0
Recordset1.CursorLocation = 2
Recordset1.LockType = 1
Recordset1.Open()
Recordset1_numRows = 0
%>
<%
Dim Repeat1__numRows
Dim Repeat1__index

Repeat1__numRows = 30
Repeat1__index = 0
Recordset1_numRows = Recordset1_numRows + Repeat1__numRows
%>
<%
Dim MM_paramName 
%>
<%
' *** Go To Record and Move To Record: create strings for maintaining URL and Form parameters
Dim MM_keepNone
Dim MM_keepURL
Dim MM_keepForm
Dim MM_keepBoth
Dim MM_removeList
Dim MM_item
Dim MM_nextItem

' create the list of parameters which should not be maintained
MM_removeList = "&index="
If (MM_paramName <> "") Then
  MM_removeList = MM_removeList & "&" & MM_paramName & "="
End If

MM_keepURL=""
MM_keepForm=""
MM_keepBoth=""
MM_keepNone=""

' add the URL parameters to the MM_keepURL string
For Each MM_item In Request.QueryString
  MM_nextItem = "&" & MM_item & "="
  If (InStr(1,MM_removeList,MM_nextItem,1) = 0) Then
    MM_keepURL = MM_keepURL & MM_nextItem & Server.URLencode(Request.QueryString(MM_item))
  End If
Next

' add the Form variables to the MM_keepForm string
For Each MM_item In Request.Form
  MM_nextItem = "&" & MM_item & "="
  If (InStr(1,MM_removeList,MM_nextItem,1) = 0) Then
    MM_keepForm = MM_keepForm & MM_nextItem & Server.URLencode(Request.Form(MM_item))
  End If
Next

' create the Form + URL string and remove the intial '&' from each of the strings
MM_keepBoth = MM_keepURL & MM_keepForm
If (MM_keepBoth <> "") Then 
  MM_keepBoth = Right(MM_keepBoth, Len(MM_keepBoth) - 1)
End If
If (MM_keepURL <> "")  Then
  MM_keepURL  = Right(MM_keepURL, Len(MM_keepURL) - 1)
End If
If (MM_keepForm <> "") Then
  MM_keepForm = Right(MM_keepForm, Len(MM_keepForm) - 1)
End If

' a utility function used for adding additional parameters to these strings
Function MM_joinChar(firstItem)
  If (firstItem <> "") Then
    MM_joinChar = "&"
  Else
    MM_joinChar = ""
  End If
End Function
%>

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>已发短消息</title>
<style type="text/css">
<!--
.style1 {color: #FFFFFF}
.style2 {font-size: 12px}
-->
</style>
<script>
function CheckAll(form){
for (var i=0;i<form.elements.length;i++){
var e = form.elements[i];
if (e.name != 'chkAll')
e.checked = form.chkAll.checked;
}
}
</script>
<SCRIPT language=JavaScript>
  function check()//表单判断
  {
   var str="";
   var j=0;
   var el=document.form1.getElementsByTagName("input")
   for(i=0;i<el.length;i++){
    if(el[i].type=="checkbox"){
     if((el[i].checked)&&(el[i].name.indexOf("id")!='-1')){
      j++;
     }
    }
   }
   if(j > 10000 || j<1)
   {
    alert("最少必须选择一项,最多不能超过十项!\r\t你现在选择了"+j+"项");
    return false;
   }
   
     if(confirm('您确定要删除该记录吗?'))
  form1.submit();
 return true
  }
  window.status='无纸化办公系统';
  </script>
<link href="/css/link.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
.style3 {color: #CC6633}
.style4 {font-size: 12}
-->
</style>
</head>

<body>
<div align="center">
  <table width="80%" border="0" cellpadding="0" cellspacing="0">
    <tr>
      <td><form name="form1" method="post" action="delafasongren.asp" onsubmit="return check();">
          <div align="center">
            <table width="814" border="0" cellpadding="2" cellspacing="1" bgcolor="#AFDBFF">
              <tr>
                <td width="504" colspan="2" bgcolor="#AFDBFF"><div align="center"><span class="style1">               <span class="style3">  <strong>已发短消息</strong></span></span></div></td>
              </tr>
              <tr bgcolor="#FFFFFF">
                <td colspan="2"><input type="submit" name="Submit" value="删除"></td>
              </tr>
              <tr bgcolor="#FFFFFF">
                <td colspan="2"><table width="100%" border="0" cellpadding="0" cellspacing="0">
                  <tr>
                    <td width="45"><input type="checkbox" name="checkbox" value="checkbox"></td>
                    <td width="262"><div align="center" class="style4">主题</div></td>
                    <td width="284"><span class="style4">           收件人  </span></td>
                    <td width="217"><div align="center" class="style4">时间</div></td>
                    </tr>
                  <% 
While ((Repeat1__numRows <> 0) AND (NOT Recordset1.EOF)) 
%>
    <tr bgcolor="#FFFFFF" onMouseOver = "this.style.backgroundColor = '#EEEEEE'" onMouseOut = "this.style.backgroundColor = ''">
                    <td><input name="id3" type="checkbox" id="id3" value="<%=Recordset1("id")%>"></td>
                    <td><div align="center"><a href="toothersmscontent.asp?<%= Server.HTMLEncode(MM_keepNone) & MM_joinChar(MM_keepNone) & "ID=" & Recordset1.Fields.Item("ID").Value %>"><%=(Recordset1.Fields.Item("标题").Value)%></a><span class="style2">
                      <input name="发送人帐号" type="hidden" id="发送人帐号" value="<%=(Recordset1.Fields.Item("发送人帐号").Value)%>">
                    </span></div></td>
                    <td><div align="center"><span class="style2">                          <%=(Recordset1.Fields.Item("接收人姓名").Value)%>           </span></div></td>
                    <td><div align="center"><%=(Recordset1.Fields.Item("入库时间").Value)%></div></td>
                    </tr>
                  <% 
  Repeat1__index=Repeat1__index+1
  Repeat1__numRows=Repeat1__numRows-1
  Recordset1.MoveNext()
Wend
%>
                </table></td>
              </tr>
              <tr bgcolor="#FFFFFF">
                <td colspan="2"><span class="style2">
                  <input type="checkbox" name="chkAll" value="on" onClick="CheckAll(this.form)">
                  <strong>全部选中
  
                </strong></span></td>
              </tr>
              <tr bgcolor="#FFFFFF">
                <td colspan="2"><input type="submit" name="Submit" value="删除">
                  <span class="style2">(删除自己发送的短消息,只是删了消息记录,不会影响对方接收)</span></td>
              </tr>
              <tr bgcolor="#FFFFFF">
                <td colspan="2">
  </td>
              </tr>
            </table>
          </div>
      </form></td>
    </tr>
  </table>
<br>
<table width="22%"  border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td width="41%"><div align="center"><a href="writesms.asp" target="mainFrame">发短消息</a></div></td>
    <td width="28%"><div align="center"><a href="readsmsfgnjeytjwestrh.asp" target="mainFrame">接收消息</a></div></td>
    </tr>
  <tr>
    <td colspan="2"><div align="center"></div></td>
    </tr>
</table>
</div>
</body>
</html>
<%
Recordset1.Close()
Set Recordset1 = Nothing
%>

⌨️ 快捷键说明

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