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

📄 writexunlu11111111111111asp.asp

📁 绿叶oa系统办公自动化 2008.工作日志管理,文件管理
💻 ASP
字号:
<%@LANGUAGE="VBSCRIPT"%>
<!--#include file="../../Connections/oavbsconn.asp" -->
<%'on error resume next
' *** 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 Recordset2__varuser
Recordset2__varuser = "1"
If (Session("userssdfgfhtrh")  <> "") Then 
  Recordset2__varuser = Session("userssdfgfhtrh") 
End If
%>
<%
Dim Recordset2
Dim Recordset2_numRows
Set Recordset2 = Server.CreateObject("ADODB.Recordset")
Recordset2.ActiveConnection = MM_oavbsconn_STRING
Recordset2.Source = "SELECT *  FROM 通讯录  WHERE 个人帐号='" + Replace(Recordset2__varuser, "'", "''") + "'"
Recordset2.CursorType = 0
Recordset2.CursorLocation = 2
Recordset2.LockType = 1
Recordset2.Open()
Recordset2_numRows = 0
%>
<%
Dim Recordset1__MMColParam
Recordset1__MMColParam = "1"
If (Session("userssdfgfhtrh") <> "") Then 
  Recordset1__MMColParam = Session("userssdfgfhtrh")
End If
%>
<%
Dim Recordset1
Dim Recordset1_numRows

Set Recordset1 = Server.CreateObject("ADODB.Recordset")
Recordset1.ActiveConnection = MM_oavbsconn_STRING
Recordset1.Source = "SELECT 手机, emails, 电话, 地址, 邮政编码  FROM usertertggbng  WHERE usersdsfg56 = '" + Replace(Recordset1__MMColParam, "'", "''") + "'"
Recordset1.CursorType = 0
Recordset1.CursorLocation = 2
Recordset1.LockType = 1
Recordset1.Open()

Recordset1_numRows = 0
%>
<%
Dim Repeat1__numRows
Dim Repeat1__index

Repeat1__numRows = -1
Repeat1__index = 0
Recordset2_numRows = Recordset2_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>
<link href="/css/link.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
.style1 {
	color: #FFFFFF;
	font-weight: bold;
}
-->
</style>
</head>

<body>
<div align="center">
  <table width="760" border="0" cellpadding="0" cellspacing="0">
    <tr>
      <td width="814" height="20"><table width="760" height="21" border="0" cellpadding="0" cellspacing="0" background="../../img/bw/line.gif">
          <tr>
            <td><div align="center"><span class="style1">我的通讯录</span></div></td>
          </tr>
      </table></td>
    </tr>
  </table>
  <table width="760" border="0" cellpadding="2" cellspacing="1" bgcolor="#5AAE18">
    <tr>
      <td bgcolor="#FFFFFF"><table width="98%"  border="0" cellspacing="3" cellpadding="0">
        <tr>
          <td><table width="100%"  border="0" cellpadding="0" cellspacing="1">
              <tr>
                <td width="12%"><div align="center">姓名</div></td>
                <td width="14%"><div align="center">手机</div></td>
                <td width="12%"><div align="center">电话</div></td>
                <td width="12%"><div align="center">Email</div></td>
                <td width="14%"><div align="center">地址</div></td>
                <td width="12%"><div align="center">邮编</div></td>
                <td width="12%"><div align="center">管理</div></td>
              </tr>
              <% 
While ((Repeat1__numRows <> 0) AND (NOT Recordset2.EOF)) 
%>
              <tr>
                <td><div align="center"><%=(Recordset2.Fields.Item("姓名").Value)%></div></td>
                <td><div align="center"><%=(Recordset2.Fields.Item("手机").Value)%></div></td>
                <td><div align="center"><%=(Recordset2.Fields.Item("电话").Value)%></div></td>
                <td><div align="center"><%=(Recordset2.Fields.Item("email").Value)%></div></td>
                <td><div align="center"><%=(Recordset2.Fields.Item("地址").Value)%></div></td>
                <td><div align="center"><%=(Recordset2.Fields.Item("邮政编码").Value)%></div></td>
                <td><div align="left"><A HREF="updatesdfghxunlu.asp?<%= Server.HTMLEncode(MM_keepNone) & MM_joinChar(MM_keepNone) & "ID=" & Recordset2.Fields.Item("ID").Value %>">修改</A>  <A HREF="/toall/tongxunlu/delghxunlu.asp?<%= Server.HTMLEncode(MM_keepNone) & MM_joinChar(MM_keepNone) & "ID=" & Recordset2.Fields.Item("ID").Value %>">删除</A></div></td>
              </tr>
              <% 
  Repeat1__index=Repeat1__index+1
  Repeat1__numRows=Repeat1__numRows-1
  Recordset2.MoveNext()
Wend
%>
          </table></td>
        </tr>
      </table></td>
    </tr>
  </table>
  <br>
</div>
<table width="100%"  border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><form name="form1" method="post" action="post.asp">
        <div align="center">
          <table width="760" border="0" cellpadding="0" cellspacing="0">
            <tr>
              <td width="814" height="20"><table width="760" height="21" border="0" cellpadding="0" cellspacing="0" background="../../img/bw/line.gif">
                  <tr>
                    <td><div align="center"><span class="style1">添加记录</span></div></td>
                  </tr>
              </table></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>
                  <td width="18%">姓名</td>
                  <td width="14%">手机</td>
                  <td width="14%">电话</td>
                  <td width="14%">Email</td>
                  <td width="14%">地址</td>
                  <td width="16%">邮编</td>
                  <td width="16%">&nbsp;</td>
                </tr>
                <tr>
                  <td><input name="姓名" type="text" id="姓名" size="12" maxlength="10"></td>
                  <td><input name="手机" type="text" id="手机" size="12" maxlength="12"></td>
                  <td><input name="电话" type="text" id="电话" size="12" maxlength="15"></td>
                  <td><input name="email" type="text" id="email" size="15" maxlength="50"></td>
                  <td><input name="地址" type="text" id="地址" maxlength="50"></td>
                  <td><input name="邮编" type="text" id="邮编" size="8" maxlength="8">
                  </td>
                  <td><input type="submit" name="Submit" value="添  加"></td>
                </tr>
              </table></td>
            </tr>
          </table>
          </div>
    </form>
      <form name="form2" method="post" action="upmefghfg.asp">
        <div align="center">
          <table width="760" border="0" cellpadding="0" cellspacing="0">
            <tr>
              <td width="814" height="20"><table width="760" height="21" border="0" cellpadding="0" cellspacing="0" background="../../img/bw/line.gif">
                  <tr>
                    <td><div align="center"><span class="style1">提交自己的通讯方式</span></div></td>
                  </tr>
              </table></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>
                    <td width="18%">姓名</td>
                    <td width="14%">手机</td>
                    <td width="14%">电话</td>
                    <td width="14%">Email</td>
                    <td width="14%">地址</td>
                    <td width="16%">邮编</td>
                    <td width="16%">&nbsp;</td>
                  </tr>
                  <tr>
                    <td><input name="姓名" type="text" id="姓名" value="<%= Session("names") %>" size="12" maxlength="10"></td>
                    <td><input name="手机" type="text" id="手机" value="<%=(Recordset1.Fields.Item("手机").Value)%>" size="12" maxlength="12"></td>
                    <td><input name="电话" type="text" id="电话" value="<%=(Recordset1.Fields.Item("电话").Value)%>" size="12" maxlength="15"></td>
                    <td><input name="email" type="text" id="email" value="<%=(Recordset1.Fields.Item("emails").Value)%>" size="15" maxlength="50"></td>
                    <td><input name="地址" type="text" id="地址" value="<%=(Recordset1.Fields.Item("地址").Value)%>" maxlength="50"></td>
                    <td><input name="邮编" type="text" id="邮编" value="<%=(Recordset1.Fields.Item("邮政编码").Value)%>" size="8" maxlength="8">
                    </td>
                    <td><input type="submit" name="Submit" value="提  交"></td>
                  </tr>
              </table></td>
            </tr>
                  </table>
        </div>
        <p>&nbsp;</p>
      </form>
    <p>&nbsp;</p></td>
  </tr>
</table>
<div align="center">
  <p><br>
    记录 <%=(Recordset2_first)%> 到 <%=(Recordset2_last)%> (总共 <%=(Recordset2_total)%> 条记录) <br>
  <a href="javascript:history.go(-1)"><img src="../gw/img/gif/back.gif" width="37" height="45" border="0"></a>  </p>
  <p><br>
    <br>
    <br>
  </p>
</div>
</body>
</html>

<%
Recordset2.Close()
Set Recordset2 = Nothing
%>
<%
Recordset1.Close()
Set Recordset1 = Nothing
%>

⌨️ 快捷键说明

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