system.jsp
1.94 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
<%@ 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="payload" type="com.dianping.cat.report.page.statistics.Payload" scope="request" />
<jsp:useBean id="model" type="com.dianping.cat.report.page.statistics.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>
<res:useCss value='${res.css.local.table_css}' target="head-css" />
<res:useJs value="${res.js.local['jquery.dataTables.min.js']}" target="head-js"/>
<res:useJs value="${res.js.local['tableInit.js']}" target="head-js"/>
<div id="queryBar">
<div style="float:left;">
日期
<input type="text" id="time" style="width:100px;" value="<fmt:formatDate value='${payload.day}' pattern='yyyy-MM-dd'/>"/>
</div>
<input class="btn btn-primary btn-sm" value="查询" onclick="queryNew()" type="submit">
<strong class="text-success" style="font-size:large;margin-right:10%">高峰期:16 : 00 - 18 : 00</strong>
</div>
<br>
<%@ include file="detail.jsp"%>
<script type="text/javascript">
$(document).ready(function(){
init();
$('#system_report').addClass("active");
$('#time').datetimepicker({
format:'Y-m-d',
timepicker:false,
maxDate:0
});
});
function queryNew(){
var time=$("#time").val();
window.location.href="?op=system&day="+time;
}
</script>
</a:offline>