<!--#include file="conn.asp" -->
<% adm_power_page=5 '分配本页的用户访问权限 %>
<!--#include file="admin_dn.asp" -->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>:::管理页面:::</title>
<link href="css.css" rel="stylesheet" type="text/css">
</head>

<body leftmargin="2" topmargin="0">
<p>财务日志管理</p>
<p align="center">&nbsp;</p>
<p align="center">－显示所有财务日志－　-<a href="adm_14.asp">显示今天财务日志</a>-</p>
<p align="center">&nbsp;</p>
<table width="100%" height="83" border="0" cellpadding="0" cellspacing="1">
  <tr> 
    <td width="12%" height="13" bgcolor="#000066"> 
      <div align="center"><font color="#FFFFFF">用 记 
        名</font></div></td>
    <td width="11%" bgcolor="#000066"> 
      <div align="center"><font color="#FFFFFF">操 作</font></div></td>
    <td width="32%" bgcolor="#000066"> 
      <div align="center"><font color="#FFFFFF">项 
        目</font></div></td>
    <td width="13%" bgcolor="#000066"> 
      <div align="center"><font color="#FFFFFF">交 易 金 额</font></div></td>
    <td width="9%" bgcolor="#000066"> 
      <div align="center"><font color="#FFFFFF">余 额</font></div></td>
    <td width="23%" bgcolor="#000066"> 
      <div align="center"><font color="#FFFFFF">交 易 日 期</font></div></td>
  </tr>
  <% 
			  sql="select * from memo order by id desc"
			  
			  pp=20
  
rs.open sql,conn,1,1 
if not rs.eof then
  count=rs.recordcount
    if count=empty then
      count=0
    end if
    if count/pp>(count\pp) then
        totalpage=(count\pp)+1
  else
   totalpage=(count\pp)
    end if
end if 
 pagecount=cint(request.querystring("topage"))                              
 if pagecount<=0 then pagecount=1
 if pagecount>totalpage then pagecount=totalpage
 
 
 
if not rs.eof then
  rs.movefirst
 rs.move (pagecount-1)*pp
 i=0
 while not rs.eof and i<pp
 i=I+1
			   %>
  <tr bgcolor="#EEF7FF" onmouseover="this.style.backgroundColor='#FFF0F0';return true;" onmouseout="this.style.backgroundColor='#EEF7FF';">  
    <td height="18"> <div align="center"><font color="#FF0000"><a href="adm_10.asp?w=search&select=userid&search=<%=rs("userid")%>"><%= rs("userid") %></a></font></div></td>
    <td> <div align="center"><font color="#FF0000"><%= rs("log") %></font></div></td>
    <td> <%= rs("body") %></td>
    <td> <div align="center"><font color="#FF0000">￥<%= rs("je") %></font></div></td>
    <td> <div align="center"><font color="#000099"><%= rs("zje") %></font></div></td>
    <td> <div align="center"><font color="#FF0000"><%= rs("dat") %></font></div></td>
  </tr>
  <% rs.movenext
  wend 
  end if
 rs.close %>
  <tr> 
    <td height="22" colspan="6"> 
      <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr bgcolor="#000066"> 
          <td width="46%" height="18"><font color="#FFFFFF">一共有:<%= count %> 条　一共:<%= totalpage %> 页 当前: <%= pagecount %> 页</font></td>
          <td width="54%"> <font color="#FFFFFF"> 
            <% 
	  if totalpage>1 then
	     if totalpage-pagecount>0 then
	  %>
            <a href="adm_14_all.asp?topage=<%=pagecount+1%>"><font color="#FFFFFF">下一页</font></a> 
            <% 
	   
	  end if
	  if pagecount<>1 and totalpage-pagecount>0 then 
	   response.write "<font color=#FFFFFF>/</font>"
	   end if
	   
	   if pagecount<>"1" then %>
            <a href="adm_14_all.asp?topage=<%=pagecount-1%>"><font color="#FFFFFF">上一页</font></a>　 
            <% 
	  end if
	  end if
	  %>
            　</font></td>
        </tr>
      </table>
    </td>
  </tr>
  <tr> 
    <td height="21" colspan="6" bgcolor="#000066"> 
      <div align="center"> <font color="#FFFFFF"> 
        <% for ss=1 to totalpage %>|<a href="adm_14_all.asp?topage=<%=ss%>"><font color="#FFFFFF"><%=ss%></font></a><% next %>|</font></div></td>
  </tr>
</table>
<p align="center">&nbsp;</p>
<p align="center"><a href="adm_14.asp">返回财务日志查询 &gt;&gt;</a>臣</p>
</body>
</html>
