Newer
Older
alarm / WebRoot / common / layout / contrast-evaluate.jsp
zhout on 2 Mar 2022 1 KB first commit
<%@ page language="java" pageEncoding="UTF-8"%>
<%@include file="/taglibs.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" content="ie=edge"/>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" type="text/css"
	href="${ctx}/s/jquery-easyui-1.3.2/themes/bootstrap/easyui.css" />
<link rel="stylesheet" type="text/css"
	href="${ctx}/s/jquery-easyui-1.3.2/themes/icon.css" />
<link rel="stylesheet" type="text/css"
	href="${ctx}/s/jquery-easyui-1.3.2/themes/frm.css" />
</head>
<body>
  <div style="padding: 15px;">
	<div>
	   <label style="font-size:14px">日期:</label><input id="reportDate" class="easyui-datebox" required="required"></input>
	</div>
    <div style="margin-top:15px">
        <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-ok'" onclick="confirm()">确认</a>
    </div>
   </div> 
</body>
</html>
<script src="${ctx}/s/jquery-easyui-1.3.2/jquery-1.8.0.min.js"
	type="text/javascript"></script>
<script type="text/javascript"
	src="${ctx}/s/jquery-easyui-1.3.2/jquery.easyui.min.js"></script>
<script src="${ctx}/s/layer/layer.min.js"></script>
<script type="text/javascript" src="${ctx}/s/jquery-easyui-1.3.2/locale/easyui-lang-zh_CN.js"></script>
<script type="text/javascript">
$(function() {
	$(".validatebox-tip").remove();
	$(".validatebox-invalid").removeClass("validatebox-invalid");
	$(".datebox :text").attr("readonly","readonly");
});

function confirm() {
	var reportDate = $("#reportDate").datebox("getValue");
	if(reportDate != '') {
		var index = parent.layer.getFrameIndex(window.name);
		reportDate = reportDate.substring(0, reportDate.lastIndexOf("-"));
		//alert("reportDate:" + reportDate);
	    parent.contrastEvaluate(reportDate);
	    parent.layer.close(index);
	} else {
		alert('请选择时间');
	}
}
</script>