keyword 图表不连续

hotfix/远程访问多媒体中心
lyt 8 years ago
parent 32e4968f2a
commit b69ce48c29

@ -101,12 +101,12 @@ class Keyworlds extends CI_Controller {
// 每条线
$data['rank_json'] .='{"name":"' . $ra[$data_time[0]]->kw_keyworlds . '","data":[';
// 每个点
$tmp_rank = "";
$tmp_rank = "null";
foreach ($ra as $v) {
$tmp_rank = $v->kwr_rank;
$kwr_rank = intval(trim($v->kwr_rank))>0 ? $v->kwr_rank : "null";
$tmp_rank = trim($v->kwr_rank)=="" ? $tmp_rank : $v->kwr_rank;
// $kwr_rank = intval(trim($v->kwr_rank))>0 ? $v->kwr_rank : "null";
$kwr_rank = ($v->kwr_rank==151) ? "null" : $tmp_rank;
// $kwr_rank = trim($kwr_rank)=="" ? $tmp_rank : $kwr_rank;
// $kwr_rank = trim($kwr_rank)=="" ? "null" : $kwr_rank;
if ($v->kwr_rank == '>150') {
$kwr_rank = 100;
}

@ -43,7 +43,7 @@
<div id="zhexiantu" class="span12" style="height:<?php if($wordcount==1) {echo '620px';}else{echo '1000px;';} ?>;margin-left:0;padding-right: 15px;"></div>
<?php } if (!empty($rank_info)) { ?>
<legend>排名情况</legend>
<!-- update time 2 -->
<!-- update time 3 -->
<table class="table table-striped">
<thead>
<tr>

Loading…
Cancel
Save