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

📄 readsmsfgnjeytjwestrh.asp

📁 绿叶oa系统办公自动化 2008.工作日志管理,文件管理
💻 ASP
字号:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include file="../../Connections/oavbsconn.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, "'", "''") + "' and 接收人帐号='" + Replace(Recordset1__varsessionuser, "'", "''") + "'  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 > 10 || j<1)
   {
    alert("最少必须选择一项,最多不能超过十项!\r\t你现在选择了"+j+"项");
    return false;
   }
   
     if(confirm('您确定要删除该记录吗?'))
  form1.submit();
 return true
  }
  window.status='无纸化办公系统';
  </script>
</head>

<body>
<div align="center">
<table width="545" border="0" cellpadding="0" cellspacing="0">
    <tr>
      <td><form name="form1" method="post" action="delasms.asp" onsubmit="return check();">
          <table width="600" border="0" cellpadding="2" cellspacing="1" bgcolor="#006699">
            <tr>
              <td width="504" colspan="2"><div align="center"><span class="style1">我的短消息</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="34"><input type="checkbox" name="checkbox" value="checkbox"></td>
                    <td width="124">id</td>
                    <td width="124">发件人</td>
                    <td width="190">主题</td>
                    <td width="190">附件</td>
                    <td width="190">发送人</td>
                    <td width="161">日期</td>
                  </tr>
                  <% 
While ((Repeat1__numRows <> 0) AND (NOT Recordset1.EOF)) 
%>
                  <tr>
                    <td><input name="id3" type="checkbox" id="id3" value="<%=Recordset1("id")%>"></td>
                    <td><%=(Recordset1.Fields.Item("ID").Value)%></td>
                    <td><span class="style2">
                      <input name="发送人帐号" type="hidden" id="发送人帐号" value="<%=(Recordset1.Fields.Item("发送人帐号").Value)%>">
                      <%=(Recordset1.Fields.Item("接收人姓名").Value)%> </span></td>
                    <td><A HREF="duasmscontent.asp?<%= Server.HTMLEncode(MM_keepNone) & MM_joinChar(MM_keepNone) & "ID=" & Recordset1.Fields.Item("ID").Value %>"><%=(Recordset1.Fields.Item("标题").Value)%></A></td>
                    <td>&nbsp;</td>
                    <td><%=(Recordset1.Fields.Item("发送人姓名").Value)%></td>
                    <td><%=(Recordset1.Fields.Item("入库日期").Value)%></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)">
全部选中

              </span></td>
            </tr>
            <tr bgcolor="#FFFFFF">
              <td colspan="2"><input type="submit" name="Submit" value="删除"></td>
            </tr>
            <tr bgcolor="#FFFFFF">
              <td colspan="2">
</td>
            </tr>
          </table>
      </form></td>
    </tr>
  </table>
</div>
</body>
</html>
<%
Recordset1.Close()
Set Recordset1 = Nothing
%>

⌨️ 快捷键说明

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