user.asp
资源名称:NetPhone.rar [点击查看]
上传用户:xxtaishan
上传日期:2022-01-02
资源大小:4063k
文件大小:6k
源码类别:
IP电话/视频会议
开发平台:
ASP/ASPX
- <%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
- <!--#include file="inc/index_conn.asp" -->
- <!--#include file="inc/func.asp" -->
- <%
- if session("user_!@#")="" and session("user_!@#123")<>"ycbipnet" then
- if request("username")="" or request("password")="" then
- showerr("您是不是有什么没有填写!")
- end if
- Dim rs2
- set rs2=conn.execute("select * from info3 where title='"&request("username")&"' and pw='"&request("password")&"'")
- if rs2.bof and rs2.eof then
- showerr("用户名或密码错误!")
- else
- session("user_!@#")=rs2("id")
- session("user_!@#123")="ycbipnet"
- session("user")=rs2("title")
- end if
- end if
- %>
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
- <title>自由通::通讯设备有限公司</title>
- <style type="text/css">
- <!--
- body {
- margin-left: 0px;
- margin-top: 0px;
- margin-right: 0px;
- margin-bottom: 0px;
- background-image: url(image/index/bg.gif);
- }
- -->
- </style>
- <link href="css/css.css" rel="stylesheet" type="text/css" />
- </head>
- <body>
- <table width="858" border="0" align="center" cellpadding="0" cellspacing="0">
- <tr>
- <td><!--#include file="top.asp" --></td>
- </tr>
- </table>
- <table width="858" border="0" align="center" cellpadding="0" cellspacing="0">
- <tr>
- <td width="11" height="151" rowspan="2" background="image/index/leftbg.gif"> </td>
- <td height="9" colspan="3" bgcolor="#FFFFFF"></td>
- <td width="13" rowspan="2" background="image/index/rightbg.gif"> </td>
- </tr>
- <tr>
- <td width="226" height="293" valign="top" bgcolor="#FCFCFC"><table width="100%" border="0" cellspacing="0" cellpadding="0">
- <tr>
- <td><!--#include file="left.asp" --></td>
- </tr>
- </table></td>
- <td width="6" valign="top" bgcolor="#FCFCFC"></td>
- <td width="601" valign="top" bgcolor="#FCFCFC"><table width="94%" border="0" align="center" cellpadding="0" cellspacing="0">
- <tr>
- <td><img src="image/sub/center_account.gif" width="599" height="33" /></td>
- </tr>
- <tr>
- <td height="30" class="style1"><div align="right">首页 > 帐户中心 </div></td>
- </tr>
- <tr>
- <td height="1" background="image/index/dot.gif"></td>
- </tr>
- <tr>
- <td height="252" valign="top"><div align="center"><br />
- <span class="style1">用户名:</span><span class="red"><%=session("user")%></span><span class="style1">
- <br />
- <br />
- 通话记录 </span>
- <table width="50%" border="0" cellpadding="0" cellspacing="1" bgcolor="#CCCCCC">
- <tr>
- <td width="50%" height="25" bgcolor="#FFFFFF"><div align="center" class="style1">日 期 </div></td>
- <td width="50%" bgcolor="#FFFFFF"><div align="center" class="style1">余 额</div></td>
- </tr>
- <%
- sql=" select * from xf where user_id="&session("user_!@#")&" order by time1 desc "
- Set rs=Server.CreateObject("ADODB.RecordSet")
- rs.open sql,conn,1,1
- Dim page,i
- if request("page")="" then
- page=1
- else
- page=clng(request("page"))
- end if
- i=0
- rs.pagesize=15
- if page<1 then page=1
- if page>rs.pagecount then page=rs.pagecount
- if rs.pagecount>0 then rs.absolutepage=page
- if rs.eof then
- response.write "<tr bgcolor='#FFFFFF'><td colspan='2'><font color='red'>系统中还没有录入相关任何信息!</font></td></tr>"
- else
- Do while not rs.eof and i<rs.pagesize
- %>
- <tr>
- <td height="25" bgcolor="#FFFFFF" class="style1"><div align="center" class="style1"><%=rs("time1")%></div></td>
- <td bgcolor="#FFFFFF" class="style1"><div align="center" class="style1"><%=rs("money")%></div></td>
- </tr>
- <%
- rs.MoveNext
- i=i+1
- Loop
- end if
- %>
- </table>
- <span class="style1"><br />
- </span>
- <table width="86%" height="33" border="0" align="center" cellpadding="0" cellspacing="0" class="font9">
- <tr>
- <td class="style1">共 <%=rs.recordcount%> 条 <%=page%>/<%=rs.pagecount%> 页 <a href="?PAGE=1" class="main1">首 页</a>
- <%if rs.pagecount>1 then
- if page=1 then%>
- | 上一页 | <a href="?PAGE=<%=(page+1)%>" class="main2">下一页</a>
- <%else
- if page=rs.pagecount then%>
- <a href="?PAGE=<%=(page-1)%>" class="main2">上一页</a> | 下一页
- <%else%>
- | <a href="?PAGE=<%=(page-1)%>" class="main2">上一页</a> | <a href="?PAGE=<%=(page+1)%>" class="main2"> 下一页</a>
- <%end if%>
- <%end if%>
- <%end if%>
- | <a href="?PAGE=<%=rs.pagecount%>" class="main2"> 尾 页</a> 第
- <select name="sel_page" class="mailarea" onchange="javascript:location=this.options[this.selectedIndex].value;">
- <%
- for i = 1 to rs.PageCount
- if i = page then%>
- <option value="?PAGE=<%=i%>" selected="selected"><%=i%></option>
- <%else%>
- <option value="?PAGE=<%=i%>"><%=i%></option>
- <%
- end if
- next
- %>
- </select>
- 页</td>
- </tr>
- </table>
- </div></td>
- </tr>
- </table></td>
- </tr>
- </table>
- <table width="858" border="0" align="center" cellpadding="0" cellspacing="0">
- <tr>
- <td><!--#include file="bottom.asp" --></td>
- </tr>
- </table>
- </body>
- </html>