user_check.jsp
上传用户:xjrzjk
上传日期:2022-07-31
资源大小:1585k
文件大小:4k
源码类别:

Jsp/Servlet

开发平台:

Java

  1. <%@ page contentType="text/html; charset=GBK" %>
  2. <%@ page import="java.sql.*"%>
  3. <%
  4.   try{
  5.   Class.forName("oracle.jdbc.driver.OracleDriver");
  6.   String strUrl = "jdbc:oracle:thin:@slight:1521:LOCAL";
  7.   String strUser = "eshop";
  8.   String strPassword = "eshop";
  9.   Connection con = DriverManager.getConnection(strUrl, strUser, strPassword);
  10.   Statement st = con.createStatement();
  11.   ResultSet rs = st.executeQuery("select * from RegUser");
  12. %>
  13. <html>
  14. <head>
  15. <title>用户审查</title>
  16. <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
  17. <STYLE type=text/css>.main {
  18. FONT-SIZE: 12px
  19. }
  20. .main1 {
  21. FONT-SIZE: 14px
  22. }
  23. .main2 {
  24. FONT-SIZE: 16px
  25. }
  26. .main3 {
  27. FONT-SIZE: 7px
  28. }
  29. .main4 {
  30. FONT-SIZE: 10px
  31. }
  32. A:link {
  33. COLOR: #ffffff; TEXT-DECORATION: none
  34. }
  35. A:visited {
  36. COLOR: #ffffff; TEXT-DECORATION: none
  37. }
  38. A:active {
  39. COLOR: #ff0000; TEXT-DECORATION: none
  40. }
  41. A:hover {
  42. COLOR: #aa0000; TEXT-DECORATION: underline
  43. }
  44. </STYLE>
  45. <script language="javascript">
  46.     function confirmdel(id){
  47.        if (confirm("真的要删除这个用户?"))
  48.        window.location.href="del_user.jsp?USERID=" + id;
  49.      }
  50. </script>
  51. </head>
  52. <body  text="#000000">
  53. <br>
  54.       <div align="center">
  55.         <center>
  56.    <TABLE cellSpacing=1 cellPadding=4 width=100% bgColor=#000000 height="136">
  57.       <TR vAlign=top bgColor=#BECFF1>
  58.                 <TD class=main1 width="662" height="10" bgcolor="#BECFF1"></TD></TR>
  59.               <TR vAlign=top bgColor=#BECFF1>
  60.                 <TD class=main1 width="662" height="18">用户审查--</TD></TR>
  61.               <TR vAlign=top bgColor=#BECFF1>
  62.                 <TD class=main1 width="662" height="15">
  63.                   <table border="1" cellpadding="0" cellspacing="0" width="100%" bordercolorlight="#BECFF1" bordercolordark="#BECFF1">
  64.                     <tr class=main1>
  65.                       <td bgcolor="#BECFF1" align="center" height="20">帐号</font></td>
  66.                       <td bgcolor="#BECFF1" align="center" height="20">姓名</font></td>
  67.                       <td bgcolor="#BECFF1" align="center" height="20">电子信箱</font></td>
  68.                       <td bgcolor="#BECFF1" align="center" height="20">联系电话</font></td>
  69.                       <td bgcolor="#BECFF1" align="center" height="20">操作</font></td>
  70.                       <td bgcolor="#BECFF1" align="center" height="20">DEL</font></td>
  71.                     </tr>
  72. <%
  73.   while (rs.next()){
  74. %>
  75.                    <tr class=main1>
  76.                       <td align="center" height="25"><%=rs.getString("UserId")%></td>
  77.                       <td align="center" height="25"><%=rs.getString("Name")%></td>
  78.                       <td align="center" height="25"><%=rs.getString("Email")%></td>
  79.                       <td align="center" height="25"><%=rs.getString("usePhone")%></td>
  80.                       <td align="center" height="25">
  81.                           <font color=#0000FF>详细资料</font>
  82.                       </td>
  83.                      <td align="center" height="25">
  84.                      <a href="javascript:confirmdel('<%=rs.getString("USERID")%>')">
  85.                         <font color=#0000FF>删除</font></a>
  86.                     </td>
  87.                     </tr>
  88. <%
  89.   }
  90. %>
  91.                   </table>
  92.                 </TD></TR>
  93.               <TR bgColor=#BECFF1>
  94.                 <TD class=main1 width="662" height="27">
  95.                   <p align="center">&nbsp;
  96.                 </TD></TR>
  97.               <TR bgColor=#BECFF1>
  98.                 <TD class=main1 width="662" height="4" bgcolor="#BECFF1"></TD></TR>
  99. </TABLE>
  100. <br>
  101.         </center>
  102.       </div>
  103. </td></tr>
  104. </table>
  105. </body>
  106. </html>
  107. <%
  108.   }catch(Exception e){
  109.   throw (e);
  110.   }
  111. %>