廖井涛
2025-06-06 32e8ae44d542d6f6d2dc82896f5ffe58ce695889
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<%@ page contentType="text/html;charset=UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="tags" tagdir="/WEB-INF/tags" %>
<c:set var="ctx" value="${pageContext.request.contextPath}"/>
 
<html>
<head>
    <title>任务管理</title>
</head>
 
<body>
    <c:if test="${not empty message}">
        <div id="message" class="alert alert-success"><button data-dismiss="alert" class="close">×</button>${message}</div>
    </c:if>
    <div class="row">
        <div class="span4 offset7">
            <form class="form-search" action="#">
                <label>名称:</label> <input type="text" name="search_LIKE_title" class="input-medium" value="${param.search_LIKE_title}"> 
                <button type="submit" class="btn" id="search_btn">Search</button>
            </form>
        </div>
        <tags:sort/>
    </div>
    
    <table id="contentTable" class="table table-striped table-bordered table-condensed">
        <thead><tr><th>任务</th><th>管理</th></tr></thead>
        <tbody>
        <c:forEach items="${tasks.content}" var="task">
            <tr>
                <td><a href="${ctx}/task/update/${task.id}">${task.title}</a></td>
                <td><a href="${ctx}/task/delete/${task.id}">删除</a></td>
            </tr>
        </c:forEach>
        </tbody>
    </table>
    
    <tags:pagination page="${tasks}" paginationSize="5"/>
 
    <div><a class="btn" href="${ctx}/task/create">创建任务</a></div>
</body>
</html>