<?php
$_REQUEST['code']=$_REQUEST['code']?$_REQUEST['code']:'sh';  #code:sh sz zx cy
$_REQUEST['t_start']=$_REQUEST['t_start']?$_REQUEST['t_start']:'2015-01-01';
$_REQUEST['t_end']=$_REQUEST['t_end']?$_REQUEST['t_end']:'';
$title="指数VS两市总市值趋势";
include_once "html/head.php";
?>
<form name="main" id="main" method="get"> <div style="width:100%;text-align:center">
指数代码: 
<select name='code' id='code'>
    <option value='sh'>上证指数</option>
    <option value='sz'>深圳成指</option>
    <option value='zx'>中小板指</option>
    <option value='cy'>创业板指</option>
</select>&nbsp;
<script>
    document.getElementById('code').value='<?=$_REQUEST['code']?>';
</script>
开始时间: <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>
<input type='checkbox' id='cb_total_mv' onclick="hideSwitch(this.id,'total_mv')" checked > 两市总市值
<input type='checkbox' id='cb_circ_mv' onclick="hideSwitch(this.id,'circ_mv')" checked> 两市流通市值
</div> </form>
<div >&nbsp;</div>

<div style="width:100%; text-align:center; " id='total_mv'>
<iframe src="https://echart.doorcome.cn/chartFive.php?s=<?=$_REQUEST['t_start']?>&item=total_mv_all&code=<?=$_REQUEST['code']?>&e=<?=$_REQUEST['t_end']?>"
height="400px" width="1000px"></iframe>
</div>
<div >&nbsp;</div>
<div style="width:100%; text-align:center; " id='circ_mv'>
<iframe src="https://echart.doorcome.cn/chartFive.php?s=<?=$_REQUEST['t_start']?>&item=circ_mv_all&code=<?=$_REQUEST['code']?>&e=<?=$_REQUEST['t_end']?>"
height="400px" width="1000px"></iframe>
</div>
<?php include_once("html/footer.php"); ?>

