zoukankan      html  css  js  c++  java
  • 12.5Java日报

    编写 userlist.jsp
    <%--
      Created by IntelliJ IDEA.
      User: Administrator
      Date: 2019/9/24
      Time: 20:41
      To change this template use File | Settings | File Templates.
    --%>
    <%@ page contentType="text/html;charset=UTF-8" language="java" %>
    <html>
    <head>
        <title>Title</title>
    <%@include file="../common/base.jsp"%>
    </head>
    <body>
    <!--上边-->
    <jsp:include page="../common/top.jsp"></jsp:include>
    <div class="container-fluid">
        <div class="row">
            <!--左边菜单栏-->
            <jsp:include page="../common/left.jsp"></jsp:include>
            <!--右边-->
            <div class="col-sm-10">
                <ol class="breadcrumb">
                    <li class="active">菜单</li>
                    <li class="active">vip客户信息</li>
                </ol>
    
                <div class="panel panel-default">
                    <div class="panel-heading">搜索</div>
                    <div class="panel-body">
                        <form role="form" class="form-inline" action="<%=path%>/userServlet?method=findList">
                            <div class="form-group">
                                <label for="name">名称</label>
                                <input type="text" class="form-control" id="name" placeholder="请输入名称">
                            </div>
                            <div class="form-group">
                                <label for="name">状态</label>
                                <select class="form-control">
                                    <option>上架</option>
                                    <option>下架</option>
                                </select>
                            </div>
                            <div class="form-group">
                                <button type="submit" class="btn btn-default">开始搜索</button>
                                <a class="btn btn-info" href="<%=path%>/jsp/user/add.jsp">添加</a>
                            </div>
                        </form>
                    </div>
                </div>
                <!--列表展示-->
                <div class="table-responsive">
                    <table class="table table-striped ">
                        <thead>
                        <tr>
                            <th>id</th>
                            <th>学号</th>
                            <th>姓名</th>
                            <th>操作</th>
                        </tr>
                        </thead>
                        <tbody>
                        <c:forEach items="${list}" var="info">
                        <tr>
                            <td><input type="checkbox" name="pks" value="${info.id}"> </td>
                            <td>${info.no}</td>
                            <td>${info.name}</td>
                            <td>
                                <div class="btn-group">
                                    <a href="<%=path%>/userServlet?method=edit&id=${info.id}" class="btn btn-default">编辑</a>&nbsp;
                                    <a href="<%=path%>/userServlet?method=del&id=${info.id}" class="btn btn-default">删除</a>
                                </div>
                            </td>
    
                        </tr>
                        </c:forEach>
                        </tbody>
                    </table>
                </div>
                <ul class="pagination" style="float: right;">
                    <li><a href="#">&laquo;</a>
                    </li>
                    <li class="active"><a href="#">1</a>
                    </li>
                    <li class="disabled"><a href="#">2</a>
                    </li>
                    <li><a href="#">3</a>
                    </li>
                    <li><a href="#">4</a>
                    </li>
                    <li><a href="#">5</a>
                    </li>
                    <li><a href="#">&raquo;</a>
                    </li>
                </ul>
            </div>
        </div>
    </div>
    <!-- 底部页脚部分 -->
    <jsp:include page="../common/footer.jsp"></jsp:include>
    </body>
    </html>
  • 相关阅读:
    [BZOJ] 2054 疯狂的馒头
    day33(sql)
    day32(表单校验js和jquery表单校验)
    day31(正则表达式)
    day30(对象转json(java))
    day29(对象转xml(使用java))
    day28(ajax之js原生代码实现)
    day27(反射之内省机制实现BeanUtils)
    day27(反射之内省机制)
    day26(分页查询)
  • 原文地址:https://www.cnblogs.com/wanghaoning/p/14162938.html
Copyright © 2011-2022 走看看