update: minor update
This commit is contained in:
+4
-12
@@ -145,15 +145,7 @@ include_once "html/head.php";
|
|||||||
yAxisIndex:0,
|
yAxisIndex:0,
|
||||||
symbol:'none',
|
symbol:'none',
|
||||||
data:data3,
|
data:data3,
|
||||||
itemStyle:
|
label:{show:true,position:'top',},//显示数字
|
||||||
{normal:
|
|
||||||
{label:
|
|
||||||
{
|
|
||||||
show:false, //显示数字
|
|
||||||
position:'top'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name:legend[1],
|
name:legend[1],
|
||||||
@@ -161,7 +153,7 @@ include_once "html/head.php";
|
|||||||
yAxisIndex:1,
|
yAxisIndex:1,
|
||||||
symbol:'none',
|
symbol:'none',
|
||||||
data:data2,
|
data:data2,
|
||||||
itemStyle:{normal:{label:{show:true}}}, //显示数字
|
label:{show:true},//显示数字
|
||||||
},
|
},
|
||||||
|
|
||||||
]
|
]
|
||||||
@@ -266,7 +258,7 @@ include_once "html/head.php";
|
|||||||
yAxisIndex:0,
|
yAxisIndex:0,
|
||||||
symbol:'none',
|
symbol:'none',
|
||||||
data:data3,
|
data:data3,
|
||||||
itemStyle:{normal:{label:{show:true}}}, //显示数字
|
label:{show:true}, //显示数字
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name:legend2[1],
|
name:legend2[1],
|
||||||
@@ -274,7 +266,7 @@ include_once "html/head.php";
|
|||||||
yAxisIndex:1,
|
yAxisIndex:1,
|
||||||
symbol:'none',
|
symbol:'none',
|
||||||
data:data4,
|
data:data4,
|
||||||
itemStyle:{normal:{label:{show:true}}}, //显示数字
|
label:{show:true}, //显示数字
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
};
|
};
|
||||||
|
|||||||
+7
-5
@@ -22,7 +22,7 @@ EOF;
|
|||||||
"status" => "1",
|
"status" => "1",
|
||||||
'stocks'=> $data,
|
'stocks'=> $data,
|
||||||
"company"=>$_REQUEST['t_vendor'],
|
"company"=>$_REQUEST['t_vendor'],
|
||||||
));
|
),JSON_PRETTY_PRINT | JSON_UNESCAPED_UNICODE);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -65,7 +65,7 @@ if($_REQUEST['t']=='financeData'){
|
|||||||
//strip key from array $data
|
//strip key from array $data
|
||||||
//dataTable must NOT have any key of json
|
//dataTable must NOT have any key of json
|
||||||
$data=array_values($data);
|
$data=array_values($data);
|
||||||
echo json_encode(array("data"=>$data));
|
echo json_encode(array("data"=>$data),JSON_PRETTY_PRINT | JSON_UNESCAPED_UNICODE);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@@ -78,7 +78,7 @@ if($_REQUEST['t']=='esfTBD'){
|
|||||||
"status" => "1",
|
"status" => "1",
|
||||||
'dataTrade'=> $dataTrade,
|
'dataTrade'=> $dataTrade,
|
||||||
'dataList'=>$dataList
|
'dataList'=>$dataList
|
||||||
));
|
),JSON_PRETTY_PRINT | JSON_UNESCAPED_UNICODE);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@@ -90,7 +90,7 @@ if($_REQUEST['t']=='esfListDaily'){
|
|||||||
echo json_encode(array(
|
echo json_encode(array(
|
||||||
"status" => "1",
|
"status" => "1",
|
||||||
'datas'=> $data
|
'datas'=> $data
|
||||||
));
|
),JSON_PRETTY_PRINT | JSON_UNESCAPED_UNICODE);
|
||||||
}
|
}
|
||||||
function esfTradeDaily(){
|
function esfTradeDaily(){
|
||||||
global $mysqli;
|
global $mysqli;
|
||||||
@@ -108,6 +108,7 @@ function esfTradeDaily(){
|
|||||||
left join estate_json_ext eje1 on eje1.id=eje.id+3
|
left join estate_json_ext eje1 on eje1.id=eje.id+3
|
||||||
left join estate_json_ext eje2 on eje2.id=eje.id+4
|
left join estate_json_ext eje2 on eje2.id=eje.id+4
|
||||||
where ej.data_type='5' and (ej.tdate>='{$_REQUEST['t_start']}' and ej.tdate<='{$_REQUEST['t_end']}')
|
where ej.data_type='5' and (ej.tdate>='{$_REQUEST['t_start']}' and ej.tdate<='{$_REQUEST['t_end']}')
|
||||||
|
order by ej.tdate asc
|
||||||
EOF;
|
EOF;
|
||||||
|
|
||||||
$result = $mysqli->query($sql);
|
$result = $mysqli->query($sql);
|
||||||
@@ -131,6 +132,7 @@ function esfListDaily(){
|
|||||||
left join estate_json_ext eje1 on eje1.id=eje.id+3
|
left join estate_json_ext eje1 on eje1.id=eje.id+3
|
||||||
left join estate_json_ext eje2 on eje2.id=eje.id+5
|
left join estate_json_ext eje2 on eje2.id=eje.id+5
|
||||||
where ej.data_type='8' and (ej.tdate>='{$_REQUEST['t_start']}' and ej.tdate<='{$_REQUEST['t_end']}')
|
where ej.data_type='8' and (ej.tdate>='{$_REQUEST['t_start']}' and ej.tdate<='{$_REQUEST['t_end']}')
|
||||||
|
order by ej.tdate asc
|
||||||
EOF;
|
EOF;
|
||||||
|
|
||||||
$result = $mysqli->query($sql);
|
$result = $mysqli->query($sql);
|
||||||
@@ -181,5 +183,5 @@ EOF;
|
|||||||
"status" => "1",
|
"status" => "1",
|
||||||
'datas'=> $data,
|
'datas'=> $data,
|
||||||
'dataExt'=> $data2
|
'dataExt'=> $data2
|
||||||
));
|
),JSON_PRETTY_PRINT | JSON_UNESCAPED_UNICODE);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ if($day_end) {
|
|||||||
$where .= " and trade_date <'".$day_end."'";
|
$where .= " and trade_date <'".$day_end."'";
|
||||||
}
|
}
|
||||||
$sql= <<<EOF
|
$sql= <<<EOF
|
||||||
select trade_date, $item as pe_ttm from stock_his_basic_pro where ts_code = '$ts_code' $where order by trade_date asc
|
select DATE_FORMAT(trade_date,'%Y-%m-%d') as trade_date, $item as pe_ttm from stock_his_basic_pro where ts_code = '$ts_code' $where order by trade_date asc
|
||||||
EOF;
|
EOF;
|
||||||
#echo $sql;
|
#echo $sql;
|
||||||
$result = $mysqli->query($sql);
|
$result = $mysqli->query($sql);
|
||||||
@@ -27,7 +27,8 @@ $tDate=$idx=$data=$data_clean=array(); # $data_clean is an array without null
|
|||||||
if($result && $result->num_rows>0) {
|
if($result && $result->num_rows>0) {
|
||||||
#$data = $result->fetch_all();
|
#$data = $result->fetch_all();
|
||||||
while($row=$result->fetch_assoc()){
|
while($row=$result->fetch_assoc()){
|
||||||
$trade_date=substr($row['trade_date'],0,4).'-'.substr($row['trade_date'],4,2).'-'.substr($row['trade_date'],6,2);
|
$trade_date=$row['trade_date'];
|
||||||
|
#$trade_date=substr($row['trade_date'],0,4).'-'.substr($row['trade_date'],4,2).'-'.substr($row['trade_date'],6,2);
|
||||||
#$trade_date1=strtotime($row['trade_date']);
|
#$trade_date1=strtotime($row['trade_date']);
|
||||||
array_push($tDate,$trade_date);
|
array_push($tDate,$trade_date);
|
||||||
array_push($idx,$row['pe_ttm']);
|
array_push($idx,$row['pe_ttm']);
|
||||||
|
|||||||
+2
-2
@@ -38,8 +38,8 @@ option = {
|
|||||||
type: 'value',
|
type: 'value',
|
||||||
name:legend[0], //图列
|
name:legend[0], //图列
|
||||||
show:true,
|
show:true,
|
||||||
scale:false,
|
scale:true,
|
||||||
min:200000,
|
//min:190000,
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
dataZoom: [{
|
dataZoom: [{
|
||||||
|
|||||||
+6
-10
@@ -1,4 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
|
//date_default_timezone_set("Asia/ShangHai");
|
||||||
/**
|
/**
|
||||||
$date = '2020-01-01';
|
$date = '2020-01-01';
|
||||||
echo $date;
|
echo $date;
|
||||||
@@ -6,15 +7,10 @@ echo "<br>";
|
|||||||
$date = date('Ymd',strtotime($date));
|
$date = date('Ymd',strtotime($date));
|
||||||
echo $date;
|
echo $date;
|
||||||
*/
|
*/
|
||||||
|
/**
|
||||||
|
echo date("Y-m-d H:i:s");
|
||||||
phpinfo();
|
phpinfo();
|
||||||
//ini_set("display_errors","1");
|
ini_set("display_errors","1");
|
||||||
$a = array();
|
*/
|
||||||
for($i=0;$i<10;$i++){
|
|
||||||
$a[]=random_int(1,100);
|
|
||||||
}
|
|
||||||
var_dump($a);
|
|
||||||
unset($a[5]);
|
|
||||||
var_dump($a);
|
|
||||||
$a=array_values($a);
|
|
||||||
var_dump($a);
|
|
||||||
?>
|
?>
|
||||||
|
|||||||
+1
-1
@@ -33,6 +33,6 @@ include_once "html/head.php";
|
|||||||
var legend = <?php echo json_encode($legend);?>;
|
var legend = <?php echo json_encode($legend);?>;
|
||||||
var headtxt = '<?php echo $title; ?>';
|
var headtxt = '<?php echo $title; ?>';
|
||||||
</script>
|
</script>
|
||||||
<script type="text/javascript" src="js/estate.js?version=3.21"></script>
|
<script type="text/javascript" src="js/estate.js?version=3.24"></script>
|
||||||
<?php include_once "html/footer.php"; ?>
|
<?php include_once "html/footer.php"; ?>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user