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

📄 phonelist.asp

📁 网络办公系统
💻 ASP
字号:
<!--#include file="check.asp"-->
<!--#INCLUDE FILE="connect.asp" -->
<!--#INCLUDE FILE="checksql.asp" -->
<html>
<head>

<title>我的通讯录</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="apply.css" type="text/css">
</head>
<script language="javascript" src="apply.js"></script>
<body topmargin="0" leftmargin="0" marginwidth="0" marginheight="0">
<%
set rs=server.createobject("adodb.recordset")
title=checksql(request("title"))
sql="select * from phone where userid='"&session("uid")&"' and name like '%"&title&"%'"&" order by id desc"
rs.Open sql,conn,1,1
mypage=10
rs.pagesize=CINT(mypage)
	 PageNo=CLng(REQUEST("PageNo"))
	 TSum=1
	 if PageNo="" or PageNo=0 then
	   PageNo=1
	   	   else
	   PageNo=PageNo+1
	   PageNo=PageNo-1
	  end if
if not rs.eof then
    TSum=INT(rs.RECORDCOUNT/Mypage*-1)*-1
	rs.absolutepage=PageNo
	  RowCount=rs.PageSize
 end if
%>
<form name="form" method="POST" action="phonelist.asp">
  <table width="100%" border="0" cellspacing="0" cellpadding="0" height="50">
    <tr> 
      <td align="center" class="title"> 
	  <img src="images/phonelist.gif">
	  </td>
    </tr>
  </table>
  <table width="100%" border="0" cellspacing="0" cellpadding="0" height="26" align="center">
    <tr> 
      <td background="images/phone10.gif" valign="top"> 
        <table width="100%" border="0" cellspacing="0" cellpadding="0" height="26">
          <tr> 
		   <td width="10">
            </td>
            <td width="28"><img src="images/phone14.gif" width="28" height="26"> 
            </td>
            <td width="80"><a href="addphone.asp" onClick="return OpenWindows(this.href)" class="aapply">添加联系人</a></td>
            <td width="28"><img src="images/phone13.gif" width="28" height="26"> 
            </td>
            <td width="80"><a href="phonelist.asp" class="aapply">个人通讯录</a></td>
            <td width="28"><img src="images/phone15.gif" width="28" height="26"> 
            </td>
            <td width="80"> <a href="publicphone.asp" class="aapply">公共通讯录</a> 
            </td>
            <td align="right"> 
              <% 
					if (PageNo*mypage-mypage)>0 then
		   PrwePage=PageNo-1   
	   response.write "<a href='phonelist.asp?title="&title&"&PageNo="&PrwePage&"' class=aapply>上一页</a>&nbsp" 
	   else
	   response.write "上一页&nbsp"
	   end if
	   if (PageNO*mypage)<rs.recordcount then
	   NextPage=PageNo+1   
	   response.write"&nbsp;<a href='phonelist.asp?title="&title&"&PageNo="&NextPage&"' class=aapply>下一页</a>"  
	   else
	     response.write"&nbsp;下一页" 
		 end if
		  
    %>
              页次:<font class="picknum"><%=PageNo%></font>/<%=tsum%>页</td>
            <td align="center" width="40">&nbsp;</td>
          </tr>
        </table>
      </td>
    </tr>
  </table>
  <table width="100%" border="0" cellspacing="0" cellpadding="0" height="25">
    <tr bgcolor="CFDFFF"> 
      <td> 
        <table width="100%" border="0" cellspacing="0" cellpadding="0" height="24" align="center">
          <tr align="center" height="24"> 
            <td width="25%">姓  名:</td>
            <td width="25%">电  话:</td>
            <td width="25%">手  机:</td>
            <td width="25%">电子邮箱:</td>
          </tr>
           <tr bgcolor="BDCFFF" height="1"> 
            <td colspan="4" height="1"></td>
          </tr>
        </table>
      </td>
    </tr>
  </table>
  <table width="100%" border="0" cellspacing="0" cellpadding="0">
    <%if rs.eof then%>
    <tr height="1"> 
      <td colspan="4" height="1" bgcolor="ffffff"></td>
    </tr>
    <tr align="center" bgcolor="F5FAFD"> 
      <td colspan="4" height="25" class="f6wait">您没有添加联系人或没有找到相应的联系人!</td>
    </tr>
    <tr height="1"> 
      <td colspan="4" height="1" bgcolor="BDCFFF"></td>
    </tr>
    <%else
			for i=1 to mypage
		if rs.eof then exit for
	
	%>
    <tr height="1"> 
      <td colspan="4" height="1" bgcolor="ffffff"></td>
    </tr>
    <tr align="center" bgcolor="F5FAFD"> 
      <td width="25%" height="25"> <a href="modifyphone.asp?id=<%=rs("id")%>" onClick="return OpenWindows(this.href)" class="flow"><%=rs("name")%></a></td>
      <td width="25%" height="25"><a href="modifyphone.asp?id=<%=rs("id")%>" onClick="return OpenWindows(this.href)" class="flow"><%=rs("telephone")%></a></td>
      <td width="25%" height="25" class="applygz"><a href="modifyphone.asp?id=<%=rs("id")%>" onClick="return OpenWindows(this.href)" class="flow"><%=rs("mobilephone")%></a></td>
      <td width="25%" height="25" class="applygz"><a href="modifyphone.asp?id=<%=rs("id")%>" onClick="return OpenWindows(this.href)" class="flow"><%=rs("email")%></a></td>
    </tr>
    <tr height="1"> 
      <td colspan="4" height="1" bgcolor="BDCFFF"></td>
    </tr>
    <%rs.movenext
  next
  end if
  %>
  </table>
  <table width="100%" border="0" cellspacing="0" cellpadding="0" height="25" align="center">
    <tr> 
      <td background="images/phone7.gif" align="right" width="52%"> 共有<font class="picknum"><%=rs.recordcount %></font>个联系人  查 
        询: 
        <input type="text" name="title" size="12" maxlength="12" value="<%=request("title")%>">
      </td>
      <td background="images/phone7.gif" align="left" width="48%" valign="bottom"> 
        &nbsp;
        <input type="image" name="find22" " src="images/findgif.gif" width="71" height="19" alt="查找联系人">
        &nbsp;<input type="image" name="find2" onClick="history.go(-1);return false;" src="images/fanhuigif.gif" width="71" height="19" alt="返回">
      </td>
    </tr>
  </table>
</form>
<!--#INCLUDE FILE="close.asp" -->
</body>
</html>

⌨️ 快捷键说明

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