<?php
include_once "inc/getBasic.inc.php";
include_once "inc/getData.inc.php";
include_once "inc/postJson.inc.php";
include_once "inc/getEstate.inc.php";

$_REQUEST['t_start']=$_REQUEST['t_start']?$_REQUEST['t_start']:'2023-06-20';
$_REQUEST['t_end']=$_REQUEST['t_end']?$_REQUEST['t_end']:date('Y-m-d');

$title="房地产挂牌数量趋势(宁波)";

$data=getEstateData('宁波',$_REQUEST['t_start'],$_REQUEST['t_end']);
$legend=array('挂牌数(套)');
include_once "html/head.php";
?>

<form name="main" id="main" method="get"> <div style="width:100%;text-align:center">
开始时间: <input type='date' name='t_start' id='t_start' width='30px' value='<?=$_REQUEST['t_start']?>' >
结束时间: <input type='date' name='t_end' id='t_end' width='30px' value='<?=$_REQUEST['t_end']?>' >
<input type='submit' value="给我查!">
<div >&nbsp;</div>

</div> </form>
<div >&nbsp;</div>
<div id="container" style="margin:0 auto;height: 400px;width: 1000px"></div>
<div >&nbsp;</div>
<div style="margin:0 auto;width: 1000px ">
<span style="color:grey">
* 数据来源：<a href='https://www.cnnbfdc.com/' target='_blank'>宁波市房产交易服务信息网</a><br />
* 更新时间：每天上午9:00</span></div>
<script type="text/javascript">
    var data1 = <?php echo json_encode($data); ?>;
    var legend = <?php echo json_encode($legend);?>;
    var headtxt = '<?php echo $title; ?>';
</script>
<script type="text/javascript" src="js/estate.js?version=3.21"></script>
<?php include_once "html/footer.php"; ?>

