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

📄 adminmyselfforen.asp

📁 本oa系统内部短信.手机短信.文件传输.公文收发.邮件服务.共享下载.内部论坛等功能
💻 ASP
字号:
<%@LANGUAGE="VBSCRIPT"%>
<%  
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" -->
<%
Dim r__MMColParam
r__MMColParam = "1"
If (session("userssdfgfhtrh")   <> "") Then 
  r__MMColParam = session("userssdfgfhtrh")  
End If
%>
<%dim ip
ip = Request.ServerVariables("HTTP_X_FORWARDED_FOR") 
If ip = "" Then ip = Request.ServerVariables("REMOTE_ADDR") '获得真实IP这样的话在本地,在服务器测试都没有问题了

Dim r
Dim r_numRows
Set r = Server.CreateObject("ADODB.Recordset")
r.ActiveConnection = MM_oavbsconn_STRING
r.Source = "SELECT *,相片地址  FROM 通讯录 inner join usertertggbng  on usertertggbng.usersdsfg56=通讯录.个人帐号  WHERE 个人帐号 = '" + Replace(r__MMColParam, "'", "''") + "'"
r.CursorType = 0
r.CursorLocation = 2
r.LockType = 3
r.Open()

r_numRows = 0
%>
<% if not r.eof or not r.bof then
dim c
c=r("用户临时提交否")
p=r("相片地址")

end if%>
<%
function HTMLEncode(fString)

	fString = replace(fString, ">", "&gt;")
	fString = replace(fString, "<", "&lt;")
	fString = Replace(fString, CHR(13), "")
	fString = replace(fString,chr(32),"&nbsp;")
	fString = Replace(fString, CHR(10) & CHR(10), "</P><P>")
	fString = Replace(fString, CHR(10), "<BR>")
	HTMLEncode = fString

end function
%>
<style type="text/css">
<!--
.style1 {	color: #FFFFFF;
	font-weight: bold;
	font-size: 13px;
}
.style2 {font-size: 12px}
.style2 {font-size: 12px}
.style3 {color: #FFFFFF}
-->
</style>
<link href="../../css/link.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
body {
	margin-top: 0px;
}
-->
</style><div align="center">
  <table width="100%" height="23" border="0" cellpadding="0" cellspacing="0">
    <tr>
      <td width="24%"><div align="right"></div></td>
      <td width="3%"><img src="../../img/txl/12.gif" width="16" height="16"></td>
      <td width="8%"><a href="listtxlfiles.asp">公共通讯录</a></td>
      <td width="3%"><div align="center"><img src="../../img/txl/29.gif" width="16" height="16"></div></td>
      <td width="9%"><a href="writexunlu.asp">单位通讯录</a></td>
      <td width="2%"><img src="../../img/txl/28.gif" width="16" height="16"></td>
      <td width="9%"><div align="center"><a href="mytongxunlu.asp">我的通讯录</a></div></td>
      <td width="2%"><div align="center"><img src="../../img/txl/15.gif" width="16" height="16"></div></td>
      <td width="8%"><div align="center"><a href="addselfinfo.asp">添加联系人</a></div></td>
      <td width="3%"><div align="center"><img src="../../img/txl/26.gif" width="16" height="16"></div></td>
      <td width="6%"><div align="center"><a href="addgroup.asp">组别管理</a></div></td>
      <td width="2%"><div align="right"><img src="../../img/txl/From.gif" width="16" height="16"></div></td>
      <td width="13%"><div align="center">
          <%if  r.eof and r.bof then%>
          <a href="addentertongxunlu.asp">提交办公通讯录</a>
          <%else%>
          <a href="adminmyselfforen.asp">管理办公通讯录</a>
          <%end if%>
      </div></td>
      <td width="2%"><div align="right"><img src="../../img/txl/hn2_sunny.gif" width="19" height="19"></div></td>
      <td width="6%"><div align="center"><a href="../bbs/updatimgpath.asp">上传头像</a></div></td>
    </tr>
  </table>
  <table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#5AAE18">
    <tr>
      <td width="6" height="21"><img src="../../img/bbs/leftlin1.gif" width="6" height="21"></td>
      <td width="936" bgcolor="#5AAE18"><div align="center"><span class="style3"><span class="style1">通 讯 录</span></span></div></td>
      <td width="6" height="21">&nbsp;</td>
    </tr>
  </table>
  <table width="100%" border="0" cellpadding="5" cellspacing="1" bgcolor="#5AAE18">
    <tr bgcolor="#FFFFFF">
      <td width="47">姓 名:</td>
      <td width="313"><%=(r.Fields.Item("姓名").Value)%>     </td>
      <td width="212">单 位:<%=(r.Fields.Item("单位").Value)%> </td>
      <td width="148" height="120" rowspan="5" valign="top"><a href="<%=p%>" target="_blank"><img src="<%=p%>" width="100" height="120" border="0"></a></td>
    </tr>
    <tr bgcolor="#FFFFFF">
      <td>部 门:</td>
      <td><%=(r.Fields.Item("部门").Value)%>     </td>
      <td>职 务:<%=(r.Fields.Item("职务").Value)%></td>
    </tr>
    <tr bgcolor="#FFFFFF">
      <td>手 机:</td>
      <td><%=(r.Fields.Item("手机1").Value)%>     小灵通:<%=(r.Fields.Item("小灵通").Value)%>  集群号:<%=(r.Fields.Item("集群号").Value)%></td>
      <td>办公电话:<%=(r.Fields.Item("办公电话").Value)%></td>
    </tr>
    <tr bgcolor="#FFFFFF">
      <td>分 机:</td>
      <td><%=(r.Fields.Item("分机").Value)%>     </td>
      <td>直拨电话:<%=(r.Fields.Item("直拨电话").Value)%></td>
    </tr>
    <tr bgcolor="#FFFFFF">
      <td>传 真:</td>
      <td colspan="2"><%=(r.Fields.Item("传真").Value)%>    Email: <%=(r.Fields.Item("email").Value)%>
        <input <%If (CStr((r.Fields.Item("email公开否").Value)) = CStr("是")) Then Response.Write("checked") : Response.Write("")%> name="email公开否" type="checkbox" id="email公开否" value="是">
(公开)   </td>
    </tr>
    <tr bgcolor="#FFFFFF">
      <td>Q Q:</td>
      <td colspan="3"><%=(r.Fields.Item("QQ").Value)%>
        <input <%If (CStr((r.Fields.Item("qq公开否").Value)) = CStr("是")) Then Response.Write("checked") : Response.Write("")%> name="qq公开否" type="checkbox" id="qq公开否" value="是">
(公开) Msn: <%=(r.Fields.Item("MSN").Value)%>  
<input <%If (CStr((r.Fields.Item("msn公开否").Value)) = CStr("是")) Then Response.Write("checked") : Response.Write("")%> name="msn公开否" type="checkbox" id="msn公开否" value="是">
(公开) </td>
    </tr>
    <tr bgcolor="#FFFFFF">
      <td>地 址:</td>
      <td colspan="3"><%=(r.Fields.Item("地址1").Value)%></td>
    </tr>
    <tr bgcolor="#FFFFFF">
      <td>备 注:</td>
      <td colspan="3"><%=HTMLEncode(r.Fields.Item("备注").Value)%></td>
    </tr>
    <tr bgcolor="#FFFFFF">
      <td>操 作</td>
      <td colspan="3"><span class="style2"><span class="bg"><img src="../../img/bbs/update.gif" width="16" height="16"><a href="updateenforone.asp">修 改</a> <img src="../../img/bbs/del.gif" width="12" height="13"><a href="delforenone.asp" onClick="return confirm('您确定要删除吗?本过程将不可恢复。')">删 除</a>&nbsp;&nbsp;<img src="../../img/3.gif" width="19" height="19"><a href="../bbs/updatimgpath.asp">头 像 </a>&nbsp;<img src="../../img/xls.gif" width="18" height="18"><a href="../gw/out/oneforentongxunlu.asp">导出记录</a> <img src="../../img/prints.gif" width="16" height="13"><a href="printyulan.asp">打印预览</a> <img src="../../img/bbs/replyffd.gif" width="14" height="16">
            <%if r("用户临时提交否")="否" then%>
            <a href="close.asp">临时关闭</a>
            <%else%>
            <a href="open.asp">开通显示</a> </span></span>
        <%end if%>
状态:
<%if c="否" then%>
<img src="../workreport/img/cs-1.gif" width="25" height="16">其他用户将可浏览本记录
<%else%>
<img src="../workreport/img/cs-3.gif" width="25" height="16">其他用户将不可见本记录
<%end if%></td>
    </tr>
  </table>
  <p>      <a href="writexunlu.asp">返回</a>
  </p>
</div>
<%
r.Close()
Set r = Nothing
%>

⌨️ 快捷键说明

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