user.asp
上传用户:xxtaishan
上传日期:2022-01-02
资源大小:4063k
文件大小:6k
源码类别:

IP电话/视频会议

开发平台:

ASP/ASPX

  1. <%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
  2. <!--#include file="inc/index_conn.asp" -->
  3. <!--#include file="inc/func.asp" -->
  4. <%
  5. if session("user_!@#")="" and session("user_!@#123")<>"ycbipnet" then
  6. if request("username")="" or request("password")="" then
  7. showerr("您是不是有什么没有填写!")
  8. end if
  9. Dim rs2
  10. set rs2=conn.execute("select * from info3 where title='"&request("username")&"' and pw='"&request("password")&"'")
  11. if rs2.bof and rs2.eof then
  12. showerr("用户名或密码错误!")
  13. else
  14. session("user_!@#")=rs2("id")
  15. session("user_!@#123")="ycbipnet"
  16. session("user")=rs2("title")
  17. end if
  18. end if
  19. %>
  20. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  21. <html xmlns="http://www.w3.org/1999/xhtml">
  22. <head>
  23. <meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
  24. <title>自由通::通讯设备有限公司</title>
  25. <style type="text/css">
  26. <!--
  27. body {
  28. margin-left: 0px;
  29. margin-top: 0px;
  30. margin-right: 0px;
  31. margin-bottom: 0px;
  32. background-image: url(image/index/bg.gif);
  33. }
  34. -->
  35. </style>
  36. <link href="css/css.css" rel="stylesheet" type="text/css" />
  37. </head>
  38. <body>
  39. <table width="858" border="0" align="center" cellpadding="0" cellspacing="0">
  40.   <tr>
  41.     <td><!--#include file="top.asp" --></td>
  42.   </tr>
  43. </table>
  44. <table width="858" border="0" align="center" cellpadding="0" cellspacing="0">
  45.   <tr>
  46.     <td width="11" height="151" rowspan="2" background="image/index/leftbg.gif">&nbsp;</td>
  47.     <td height="9" colspan="3" bgcolor="#FFFFFF"></td>
  48.     <td width="13" rowspan="2" background="image/index/rightbg.gif">&nbsp;</td>
  49.   </tr>
  50.   <tr>
  51.     <td width="226" height="293" valign="top" bgcolor="#FCFCFC"><table width="100%" border="0" cellspacing="0" cellpadding="0">
  52.       <tr>
  53.         <td><!--#include file="left.asp" --></td>
  54.       </tr>
  55.     </table></td>
  56.     <td width="6" valign="top" bgcolor="#FCFCFC"></td>
  57.     <td width="601" valign="top" bgcolor="#FCFCFC"><table width="94%" border="0" align="center" cellpadding="0" cellspacing="0">
  58.       <tr>
  59.         <td><img src="image/sub/center_account.gif" width="599" height="33" /></td>
  60.       </tr>
  61.       <tr>
  62.         <td height="30" class="style1"><div align="right">首页 &gt; 帐户中心 </div></td>
  63.       </tr>
  64.       <tr>
  65.         <td height="1" background="image/index/dot.gif"></td>
  66.       </tr>
  67.       <tr>
  68.         <td height="252" valign="top"><div align="center"><br />
  69.             <span class="style1">用户名:</span><span class="red"><%=session("user")%></span><span class="style1"> 
  70.             <br />
  71.             <br />
  72.             通话记录 </span>
  73.             <table width="50%" border="0" cellpadding="0" cellspacing="1" bgcolor="#CCCCCC">
  74.           <tr>
  75.             <td width="50%" height="25" bgcolor="#FFFFFF"><div align="center" class="style1">日 期 </div></td>
  76.             <td width="50%" bgcolor="#FFFFFF"><div align="center" class="style1">余 额</div></td>
  77.           </tr>
  78. <%
  79. sql=" select * from xf where user_id="&session("user_!@#")&" order by time1 desc "
  80. Set rs=Server.CreateObject("ADODB.RecordSet")
  81. rs.open sql,conn,1,1
  82. Dim page,i
  83. if request("page")="" then
  84. page=1
  85. else
  86. page=clng(request("page"))
  87. end if
  88. i=0
  89. rs.pagesize=15
  90. if page<1 then page=1
  91. if page>rs.pagecount then page=rs.pagecount 
  92. if rs.pagecount>0 then rs.absolutepage=page
  93. if rs.eof then
  94. response.write "<tr bgcolor='#FFFFFF'><td colspan='2'><font color='red'>系统中还没有录入相关任何信息!</font></td></tr>"
  95. else
  96. Do while not rs.eof and i<rs.pagesize
  97. %>   
  98.   
  99.           <tr>
  100.             <td height="25" bgcolor="#FFFFFF" class="style1"><div align="center" class="style1"><%=rs("time1")%></div></td>
  101.             <td bgcolor="#FFFFFF" class="style1"><div align="center" class="style1"><%=rs("money")%></div></td>
  102.           </tr>
  103. <%
  104. rs.MoveNext
  105. i=i+1
  106. Loop
  107. end if
  108. %>   
  109.         </table>
  110.             <span class="style1"><br />
  111.             </span>
  112.             <table width="86%" height="33"  border="0" align="center" cellpadding="0" cellspacing="0" class="font9">
  113.           <tr>
  114.             <td class="style1">共 <%=rs.recordcount%> 条  <%=page%>/<%=rs.pagecount%> 页 <a href="?PAGE=1"  class="main1">首 页</a>
  115.                   <%if rs.pagecount>1 then 
  116.      if page=1 then%>
  117.               | 上一页 | <a href="?PAGE=<%=(page+1)%>"  class="main2">下一页</a>
  118.               <%else
  119.       if page=rs.pagecount then%>
  120.               <a href="?PAGE=<%=(page-1)%>"  class="main2">上一页</a> | 下一页
  121.               <%else%>
  122.               | <a href="?PAGE=<%=(page-1)%>"  class="main2">上一页</a> | <a href="?PAGE=<%=(page+1)%>"  class="main2"> 下一页</a>
  123.               <%end if%>
  124.               <%end if%>
  125.               <%end if%>
  126.               | <a href="?PAGE=<%=rs.pagecount%>"  class="main2"> 尾 页</a> 第
  127.                 <select name="sel_page" class="mailarea" onchange="javascript:location=this.options[this.selectedIndex].value;">
  128.                   <%
  129.        for i = 1 to rs.PageCount
  130.        if i = page then%>
  131.                   <option value="?PAGE=<%=i%>" selected="selected"><%=i%></option>
  132.                   <%else%>
  133.                   <option value="?PAGE=<%=i%>"><%=i%></option>
  134.                   <%
  135.           end if
  136.         next
  137.         %>
  138.                 </select>
  139.                  页</td>
  140.           </tr>
  141.       </table>
  142.         </div></td>
  143.       </tr>
  144.     </table></td>
  145.   </tr>
  146. </table>
  147. <table width="858" border="0" align="center" cellpadding="0" cellspacing="0">
  148.   <tr>
  149.     <td><!--#include file="bottom.asp" --></td>
  150.   </tr>
  151. </table>
  152. </body>
  153. </html>