• 10.30日进度


    <%@ page language="java" import="java.sql.*" pageEncoding="utf-8"%>
    <html>
    <head>
    <title></title>

    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="stylesheet" href="https://cdn.staticfile.org/twitter-bootstrap/4.3.1/css/bootstrap.min.css">
    <script src="https://cdn.staticfile.org/jquery/3.2.1/jquery.min.js"></script>
    <script src="https://cdn.staticfile.org/popper.js/1.15.0/umd/popper.min.js"></script>
    <script src="https://cdn.staticfile.org/twitter-bootstrap/4.3.1/js/bootstrap.min.js"></script>
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
    <!-- 可选的 Bootstrap 主题文件(一般不用引入) -->
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/css/bootstrap-theme.min.css" integrity="sha384-rHyoN1iRsVXV4nD0JutlnGaslCJuC7uwjduW9SVrLvRYooPp2bWYgmgJQIXwl/Sp" crossorigin="anonymous">
    <!-- 最新的 Bootstrap 核心 JavaScript 文件 -->
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>

    </head>
    <script>
    function onload()
    {
    <%
    Cookie[] cookies=request.getCookies();
    String value="";
    if(cookies!=null){
    System.out.println("cookie的长度为:"+cookies.length);
    for(int i=0;i<cookies.length;i++)
    {
    if(cookies[i].getName().equals("username"))
    {
    value=cookies[i].getValue();
    break;
    }
    }
    }
    %>

    }
    </script>
    <body>
    <h1>管理</h1>
    <br />
    <br />
    <tr><td>0代表未审核,1代表已审核,-1代表审核未通过</td></tr>
    <table class="table table-hover table-striped table-bordered table-sm">
    <tr>
    <td>编号</td>
    <td>机构全称</td>
    <td>形式审核</td>
    <td>部门审核</td>
    <td>操作</td>
    </tr>
    <%
    try {
    Class.forName("com.mysql.jdbc.Driver");
    Connection con = DriverManager.getConnection(
    "jdbc:mysql://localhost:3306/doc_system?useUnicode=true&characterEncoding=utf-8", "root",
    "123456");
    //使用Statement对象
    Statement stmt = con.createStatement();
    ResultSet rs = stmt.executeQuery("select id,jgmc,xssh,bmsh from t_table where sfsh= 0 ");

    /*
    PreparedStatement stmt = con.prepareStatement("select * from bookinfo");
    ResultSet rs = stmt.executeQuery();
    */
    while (rs.next()) {
    int id = rs.getInt(1);
    out.println("<tr><td>" + rs.getInt(1) + "</td><td>" + rs.getString(2) + "</td><td>"
    + rs.getString(3) +"</td><td>"+rs.getString(4)+ "</td><td><a href='editxssh.jsp?id=" + id
    + "'>审核</a>&nbsp;<a href='del.jsp?id=" + id + "'>删除</a></td></tr>");
    }
    rs.close();
    stmt.close();
    con.close();
    } catch (Exception e) {
    out.println("Exception:" + e.getMessage());
    }
    %>

    </table>
    <br />
    <hr />

    </body>
    </html>

  • 相关阅读:
    轻松记账方法(A)
    个人学习进度(第八周)
    个人学习进度(第八周)
    Web版四则运算
    个人学习进度(第七周)
    个人学习进度(第六周)
    数组的子数组和最大值
    个人学习进度(第五周)
    个人学习进度(第四周)
    个人学习进度(第三周)
  • 原文地址:https://www.cnblogs.com/sunhongbin/p/14017543.html
Copyright © 2020-2023  润新知