aggregation.jsp 2.4 KB
Newer Older
R
renyuan.sun 已提交
1 2 3 4 5 6
<%@ page contentType="text/html; charset=utf-8" %>
<%@ taglib prefix="a" uri="/WEB-INF/app.tld"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="res" uri="http://www.unidal.org/webres"%>
<%@ taglib prefix="w" uri="http://www.unidal.org/web/core"%>

Y
yong.you 已提交
7 8 9
<jsp:useBean id="ctx" type="com.dianping.cat.system.page.config.Context" scope="request"/>
<jsp:useBean id="payload" type="com.dianping.cat.system.page.config.Payload" scope="request"/>
<jsp:useBean id="model" type="com.dianping.cat.system.page.config.Model" scope="request"/>
R
renyuan.sun 已提交
10 11

<a:body>
Y
yong.you 已提交
12 13 14
	<script type="text/javascript">
		$(document).ready(function() {
			$('#aggregationList').addClass('active');
Y
yong.you 已提交
15 16 17
			$(".delete").bind("click", function() {
				return confirm("确定要删除此项目吗(不可恢复)?");
			});
Y
yong.you 已提交
18 19
		});
	</script>
R
renyuan.sun 已提交
20
	<div>
Y
yong.you 已提交
21 22
		<div class="row-fluid">
        <div class="span2">
Y
yong.you 已提交
23
		<%@include file="../configTree.jsp"%>
Y
yong.you 已提交
24 25 26
		</div>
		<div class="span10">
			<div>
R
renyuan.sun 已提交
27
			</br>
28
			<table class="table table-striped table-bordered table-condensed table-hover" id="contents" width="100%">
R
renyuan.sun 已提交
29 30
			<thead>
				<tr class="odd">
Y
yong.you 已提交
31 32
					<th width="15%">报表类型</th>
					<th width="10%">域名</th>
J
jialinsun 已提交
33 34 35
					<th width="60%">规则</th>
					<th width="10%">告警阈值</th>
					<th width="15%">联系邮件</th>
Y
yong.you 已提交
36 37
					<!-- <th width="15%">显示名称</th>
					<th width="8%">示例</th> -->
Y
yong.you 已提交
38
					<th width="5%">操作&nbsp;&nbsp;  <a class='btn btn-primary btn-small' href="?op=aggregationUpdate">新增</a></th>
R
renyuan.sun 已提交
39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55
				</tr></thead><tbody>

				<c:forEach var="item" items="${model.aggregationRules}"
					varStatus="status">
					<tr class="${status.index mod 2 != 0 ? 'odd' : 'even'}">
						<c:choose>
							<c:when test="${item.type == 1}">
								<td>transaction</td>
							</c:when>
							<c:when test="${item.type == 2}">
								<td>event</td>
							</c:when>
							<c:when test="${item.type == 3}">
								<td>problem
							</c:when>
						</c:choose>
						<td>${item.domain}</td>
J
jialinsun 已提交
56 57 58
						<td>${item.pattern}</td>
						<td>${item.warn}</td>
						<td>${item.mails}</td><%-- 
R
renyuan.sun 已提交
59
						<td>${item.displayName}</td>
Y
yong.you 已提交
60
						<td>${item.sample}</td> --%>
Y
yong.you 已提交
61 62
						<td><a class='btn  btn-small btn-primary'href="?op=aggregationUpdate&pattern=${item.pattern}">编辑</a>
						<a class='delete btn  btn-small btn-danger' href="?op=aggregationDelete&pattern=${item.pattern}">删除</a></td>
R
renyuan.sun 已提交
63 64 65 66 67
					</tr>
				</c:forEach></tbody>
				</tbody>
			</table>
		</div>
Y
yong.you 已提交
68
		</div></div></div>
R
renyuan.sun 已提交
69
</a:body>