list.jsp
3.2 KB
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
<%@include file="/common/CHeader.jsp" %>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" isELIgnored="false" %>
<!doctype html>
<html>
<head>
<title></title>
<meta charset="UTF-8">
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
</head>
<body>
<form class="form-inline definewidth m20" action="addColumn" method="post">
表列名称:
<input type="text" name="columnname" class="form-control">
数据字段:
<input type="text" name="datafield" class="form-control" placeholder="" value="">
XML节点:
<input type="text" name="nodename" class="form-control" placeholder="" value="">
是否有效:
<select name="active" class="form-control">
<option value="Y">有效</option>
<option value="N">无效</option>
</select><br/><p></p>
数据集ID:
<select name="datasetid" class="form-control">
<option value="${tOlapDataset.datasetid}">${tOlapDataset.datasetid}</option>
</select>
<input type="submit" class="btn btn-primary" value="新增"/>
</form>
<table class="table table-bordered table-hover definewidth m10" style="margin-top:10px">
<thead>
<tr>
<th>表列ID</th>
<th>表列名称</th>
<th>数据字段</th>
<th>XML节点</th>
<th>数据集ID</th>
<th>是否有效</th>
<th>操作</th>
</tr>
</thead>
<c:forEach items="${tOlapColumnList}" var="t">
<tr>
<td>${t.columnid}</td>
<td>${t.columnname}</td>
<td>${t.datafield}</td>
<td>${t.nodename}</td>
<td>${t.datasetid}</td>
<td>${t.active}</td>
<td>
<a href="<%=basePath %>olapcolumn/findByid?columnid=${t.columnid}" >编辑</a> <a
href="<%=basePath %>olapcolumn/deleteByPrimaryKey?columnid=${t.columnid}&datasetid=${t.datasetid}" >删除</a>
</td>
</tr>
</c:forEach>
</table>
<%--<div class="inline pull-right page">--%>
<%--<c:set var="page" value="${modelAndPage.page}"></c:set>--%>
<%--${page.getCount()} 条记录 ${page.getCurrent()}/${page.getTotal()} 页 --%>
<%--<c:if test="${page.getCurrent()>1}">--%>
<%--<a href="?begin=${(page.getCurrent()-2)*page.length}">上一页</a> --%>
<%--</c:if>--%>
<%--<c:set var="endPage" value="false"/>--%>
<%--<c:forEach begin="0" step="1" end="${page.getTotal()-1}" var="everyPage">--%>
<%--<c:choose>--%>
<%--<c:when test="${everyPage+1 >5}">--%>
<%--<c:if test="${endPage=='false'}">--%>
<%--<c:set var="endPage" value="true"/>--%>
<%--</c:if>--%>
<%--</c:when>--%>
<%--<%–<c:otherwise>–%>--%>
<%--<%–<a href="?begin=${everyPage*page.length}">${everyPage+1}</a>–%>--%>
<%--<%–</c:otherwise>–%>--%>
<%--</c:choose>--%>
<%--</c:forEach>--%>
<%--<c:if test="${page.getCurrent()<page.getTotal()}">--%>
<%--<a href="?begin=${(page.getCurrent())*page.length}">下一页</a>--%>
<%--</c:if>--%>
<%--</div>--%>
</body>
</html>