highload.jsp
1.69 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
<%@ page session="false" language="java" pageEncoding="UTF-8"%>
<%@ page contentType="text/html; charset=utf-8"%>
<%@ taglib prefix="a" uri="/WEB-INF/app.tld"%>
<%@ taglib prefix="w" uri="http://www.unidal.org/web/core"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="res" uri="http://www.unidal.org/webres"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<jsp:useBean id="ctx" type="com.dianping.cat.report.page.highload.Context" scope="request" />
<jsp:useBean id="payload" type="com.dianping.cat.report.page.highload.Payload" scope="request" />
<jsp:useBean id="model" type="com.dianping.cat.report.page.highload.Model" scope="request" />
<a:offline>
<link rel="stylesheet" type="text/css" href="${model.webapp}/js/jquery.datetimepicker.css"/>
<script src="${model.webapp}/js/jquery.datetimepicker.js"></script>
<div id="queryBar">
<div style="float:left;">
日期
<input type="text" id="time" style="width:100px;" value="<fmt:formatDate value='${payload.date}' pattern='yyyy-MM-dd'/>"/>
</div>
<input class="btn btn-primary btn-sm" value="查询" onclick="queryNew()" type="submit">
</div>
<div class="report" >
<%@ include file="detail.jsp"%>
</div>
<script type="text/javascript">
$(document).ready(function(){
$('#highload_report').addClass("active");
$('#time').datetimepicker({
format:'Y-m-d',
timepicker:false,
maxDate:0
});
});
function queryNew(){
var time=$("#time").val();
window.location.href="?op=view&date="+time;
}
</script>
</a:offline>