useradmin_list.jsp
上传用户:zghglow
上传日期:2022-08-09
资源大小:27227k
文件大小:5k
源码类别:

WEB源码(ASP,PHP,...)

开发平台:

JavaScript

  1. <%@ page contentType="text/html;charset=gb2312"%> 
  2. <%@include file="../include/checkadmin.jsp"%>
  3. <%@page import="java.sql.*"%>
  4. <%@include file="../include/db_conn.jsp"%>
  5. <%@include file="../include/const.jsp"%>
  6. <%@include file="../include/isNotInteger.jsp"%>
  7. <HTML>
  8. <HEAD>
  9. <TITLE>+ + 翔鹭石化 + +</TITLE>
  10. <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=gb2312">
  11. <link href="../style.css" rel="stylesheet" type="text/css">
  12. </HEAD>
  13. <BODY BGCOLOR=#CFE7F3 vlink="#666666" LEFTMARGIN=0 TOPMARGIN=0 MARGINWIDTH=0 MARGINHEIGHT=0 >
  14. <table width="778" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
  15.         <tr> 
  16.           <img src="../images/in1p_CRM1.gif" width="778" height="90"></td>
  17.         </tr>
  18.   <tr> 
  19.     <td width="26" height="26"><img src="../images/indl1.gif" width="26" height="26"></td>
  20.     <td width="165" height="26"><img src="../images/in1t2.gif" width="165" height="26"></td>
  21.     <td height="26" align="right"><img src="../images/in1tblk.gif" width="585" height="26"></td>
  22.   </tr>
  23.  
  24. </table>
  25. <table width="778" height="300" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
  26.   <tr> 
  27.     <td>&nbsp;</td>
  28.     <td align="right" valign="top" bgcolor="f0f0f0">
  29. <!--子目录-->
  30. <%@include file="s2menu_admin.jsp"%>
  31. <!--子目录-->
  32.       <table width="100%" cellspacing="0" cellpadding="0" >
  33.         <tr> 
  34.           <td><img src="../images/in1left.gif" width="165" height="100">
  35.         </tr>
  36.       </table>
  37.   </td>      
  38.     <td align="center" valign="top">
  39.         <table width="100%">
  40.           <form name="frm_search" action="list_admin_user.jsp" method="post">
  41.             <tr> 
  42.             <td align="center" bgcolor="#ffffff" height=40>关键字:<input type="text" name="keyword"> <input type="submit" name="s1" value="搜索" style="width:80px;height:22px;"></td>
  43.              </tr>
  44.             </form>
  45. </table>
  46.        <!--新闻列表-->
  47.        <% String column_id="3";
  48. String column_title;
  49. String keyword="";
  50. int intPageSize; //一页显示的记录数
  51. int intRowCount; //记录总数
  52. int intPageCount; //总页数
  53. int intPage; //待显示页码
  54. String strPage;
  55. int i;
  56. //版本控制
  57. intPageSize = 8; //设置一页显示的记录数
  58. strPage = request.getParameter("page"); //取得待显示页码
  59. if(isNotInteger(strPage)){//表明在QueryString中没有page这一个参数,此时显示第一页数据
  60. intPage = 1;
  61. }
  62. else{//将字符串转换成整型
  63. intPage = java.lang.Integer.parseInt(strPage);
  64. if(intPage<1) intPage = 1;
  65. }
  66. sql = "select c_id,KUNNR,NAME1 from ZSD_KNA1";
  67. sql = sql + " where me_ver='cn' order by KUNNR ";
  68. rs=smt.executeQuery(sql);
  69. rs.last();
  70. intRowCount = rs.getRow(); //获取记录总数
  71. intPageCount = (intRowCount+intPageSize-1) / intPageSize; //记算总页数
  72. if(intPage>intPageCount) intPage = intPageCount; //调整待显示的页码
  73. %>
  74.        <table width="85%" cellspacing="0" cellpadding="0">
  75.  <%
  76. if(intPageCount>0){
  77. //将记录指针定位到待显示页的第一条记录上
  78. rs.absolute((intPage-1) * intPageSize + 1);
  79. //显示数据
  80. i = 0;
  81. while(i<intPageSize && !rs.isAfterLast()){
  82. %>        
  83.          <tr> 
  84.            <td height="25">
  85.            <img src="../images/dot01.gif" width="5" height="5"> 
  86.            <a href="customer_detail.jsp?c_id=<%=rs.getInt("c_id")%>" target="_blank">
  87.            <%=rs.getString("NAME1").trim()%>
  88.            </a>
  89.            <font color="#0033FF">(客户编号:<%=rs.getString("KUNNR")%>)</font>
  90.            </td>
  91.          </tr>
  92.          <tr> 
  93.            <td height="1" bgcolor="f0f0f0"><img src="../images/spacer.gif" width="1" height="1"></td>
  94.          </tr>
  95.          <%
  96. rs.next();
  97. i++;
  98. }
  99. }
  100. rs.close();
  101. %>
  102. <!--新闻列表-->
  103.       </table>
  104.       <br>
  105.       <table width="100%" cellspacing="0" cellpadding="0">
  106.         <tr> 
  107.           <td align="right">
  108. <div align="center"> <strong>分页显示:</strong> <FONT color=red>第<%=intPage%>页 
  109.                           共<%=intPageCount%>页 | 总<%=intRowCount%>条</FONT> 
  110.                           <%@include file="../include/showpage.jsp"%>
  111.                           &nbsp;&nbsp; 转到第
  112.                           <input type="text" name="goto_page1" value=<%=intPage%> class=box1 size=3 maxlength=3>
  113.                           页 
  114.                           <input style="height:19;WIDTH: 42px;" class="s02" hideFocus type="button" value="Go" name="cmd_goto" onclick="javascript:viewPage(document.all.goto_page1.value);">
  115.                         </div>
  116.                         </span> <form action="useradmin_list.jsp" method=post name="frm_page">
  117.                           <input type="hidden" name="page">
  118.                           <input type="hidden" name="column_id" value=<%=column_id%>>
  119.                           <input type="hidden" name="keyword2" value=<%=keyword%>>
  120.                         </form>
  121. </td>
  122.         </tr>
  123.       </table></td>
  124.   </tr>
  125. </table>
  126. <table width="778" align="center" cellpadding="0" cellspacing="0" bgcolor="#999999">
  127.   <tr> 
  128.     <td><img src="../images/spacer.gif" width="1" height="1"></td>
  129.   </tr>
  130. </table>
  131. <%@include file="../include/bottom02.jsp"%>
  132. </BODY>
  133. </HTML>