<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>自动检测数据公开</title>
<link href="../../css/bkbj.css" rel="stylesheet" type="text/css" />
<link href="../../js/jquery/themes/start/jquery.ui.all.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" type="text/css" href="../../extlib/resources/css/ext-all.css" />
<link rel="stylesheet" type="text/css" href="../../css/toolbars.css"/>
<link rel="stylesheet" type="text/css" href="../../extlib/resources/css/fileuploadfield.css" />
<script type="text/javascript" src="../../extlib/adapter/ext/ext-base.js"></script>
<script type="text/javascript" src="../../extlib/ext-all.js"></script>
<script type="text/javascript" src="../../extlib/ext-lang-zh_CN.js"></script>
<script type="text/javascript" src="../../extlib/ux/FileUploadField.js"></script>
<script type="text/javascript" src="../../js/main/bksh/showInfo_sh.js"></script>
<script type="text/javascript" src="../../js/jquery/jquery-1.9.1.js"> </script>
<script type="text/javascript" src="../../js/jquery/jquery-ui-1.10.3.min.js"></script>
<script type="text/javascript" src="../../js/jquery/i18n/jquery.ui.datepicker-zh-CN.js"></script>
<style type="text/css">
body {
	background-image: url(../../images/bkbj_01.png);
	background-repeat: repeat-x;
	margin-top: 0px;
	height: 1500px;	
}
</style>
<script  language="javascript" >
    $(document).ready(function(){
    	$('#selectdate').datepicker({
    		changeMonth: true,
    		changeYear: true,
    		maxDate: 0,
    		minDate:'2013-08-27'
    	});
    	$('#selecttimer').timePicker();
    });
    function dosubmit() {
	var date = document.getElementById("selectdate").value;
	var time = document.getElementById("selecttime").value;
	var arraydate = date.split("-");
	var arraytime = time.split(":");
	var finaldate = new Date(arraydate[0], parseInt(arraydate[1], 10) - 1,
			arraydate[2], arraytime[0]);
	var nowDate = new Date();
	if (date == "" || date == null) {
		alert("请选择日期!");
	} else if (finaldate > nowDate) {
		alert("此时间段尚未发布数据,请重新选择!");
	} else {
		document.selectdateform.action = "<%=request.getContextPath()%>/Dateservlet";
		selectdateform.submit();
	}
	
}
    function getreason(){
		document.getElementById("table_frame").src = "reason.jsp";
		}
    function getauto(){
		document.getElementById("table_frame").src = "bksh_table.jsp";
		}
</script>

</head>

<body>
<table width="1116" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td class="bjtop"></td>
  </tr>
  <tr>
    <td class="bjcenter"   palign="center">
        <div><P  align="center" style="font-family:'宋体'; font-size:30px; margin:1px;">国控企业自行监测结果公开数据表 </P></div><br>
        <form  name="selectdateform"  target="table_frame" method="post" >
        <P style="margin-right:20px;margin:5px;" align="left"  >&nbsp;日期:<input class="dateinput" type="text" id="selectdate" name="selectdate" readonly />&nbsp;&nbsp;时间:<select name="selecttime" id="selecttime" >  
   <option value="00:00:00">00:00:00</option> 
   <option value="02:00:00">02:00:00</option>
   <option value="04:00:00">04:00:00</option>
   <option value="06:00:00">06:00:00</option>
   <option value="08:00:00">08:00:00</option>
   <option value="10:00:00">10:00:00</option>
   <option value="12:00:00">12:00:00</option>
   <option value="14:00:00">14:00:00</option> 
   <option value="16:00:00">16:00:00</option>
   <option value="18:00:00">18:00:00</option>
   <option value="20:00:00">20:00:00</option>
   <option value="22:00:00">22:00:00</option>
  </select><input name="checkdate" type="button" value="查询" onClick="dosubmit()"/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input name="checkreason" type="button" value="未开展自行监测原因" onClick="getreason()"/><input name = "return" value="自行监测数据" type="button" onClick="getauto()" /><input name="qwe" type="button" value="企业信息" onClick="showinfo1()"/><input name="asd" type="button" value="年度检测方案" onClick="showinfo2()"/><input name="zxc" type="button" value="年度检测报告" onClick="showinfo3()"/><marquee scrollAmount=2 width=220  onmouseover="stop()" onmouseout="start()"><a href="http://www.wushuichang.cn">污水处理厂信息化管理云平台</a></marquee>  

  </P>
    	</form>
    	<iframe  id="table_frame"  frameborder="0" allowtransparency="true" width="1116" height="1800"  src="bksh_table.jsp" name="table_frame"></iframe>
    </td>
  </tr>
  <tr>
    <td class="bjbottom"><hr /><P align="center" style="font-size:14px">北京金控数据技术股份有限公司版权所有</p></td>
  </tr>
</table>
</table>
</body>
</html>