2009-03-06 03:20:46 +00:00
|
|
|
<?php
|
|
|
|
$this->headTitle($this->config->title->site);
|
|
|
|
$this->headTitle('后台管理');
|
|
|
|
$this->headTitle()->setSeparator(' - ');
|
|
|
|
$this->breadcrumb('<a href="/">首页</a>');
|
|
|
|
$this->breadcrumb('<a href="/admin">后台首页</a>');
|
|
|
|
$this->breadcrumb('数据管理');
|
|
|
|
$this->breadcrumb()->setSeparator(' > ');
|
2014-06-12 08:39:57 +00:00
|
|
|
$Theme = new Theme;
|
|
|
|
$Theme->AppendPlus($this,'highstock');
|
2009-03-06 03:20:46 +00:00
|
|
|
?>
|
2014-06-12 08:39:57 +00:00
|
|
|
<div class="row-fluid">
|
|
|
|
<div class="span2">
|
|
|
|
<?= $this->partial('data/left.phtml'); ?>
|
|
|
|
</div>
|
|
|
|
<div class="span10">
|
|
|
|
<h2>元数据管理 <small>概况</small></h2>
|
|
|
|
<hr />
|
|
|
|
|
|
|
|
<ul class="unstyled">
|
|
|
|
<li>元数据总条数:<?= $this->total ?></li>
|
|
|
|
<li>待评审的元数据:<a href="/admin/review/accept"><?= $this->review_accept ?></a></li>
|
|
|
|
<li>已评审的元数据:<a href="/admin/review/reviewed"><?= $this->review_finish ?></a></li>
|
|
|
|
<li>可视化数据:<a href="/admin/data/visual"><?= $this->visual ?></a></li>
|
|
|
|
</ul>
|
|
|
|
|
|
|
|
<div id="container">
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
2009-03-06 03:20:46 +00:00
|
|
|
</div>
|
2014-06-12 08:39:57 +00:00
|
|
|
<script>
|
|
|
|
$(function () {
|
|
|
|
Highcharts.setOptions({
|
|
|
|
lang: {
|
|
|
|
months : [ '一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月'],
|
|
|
|
//months : ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'],
|
|
|
|
weekdays: ['星期一', '星期二', '星期三', '星期四', '星期五', '星期六', '星期日']
|
|
|
|
}
|
|
|
|
});
|
|
|
|
$('#container').highcharts('StockChart', {
|
|
|
|
|
|
|
|
title : {
|
|
|
|
text : '元数据数量增加情况'
|
|
|
|
},
|
|
|
|
|
|
|
|
rangeSelector : {
|
|
|
|
selected : 1,
|
|
|
|
inputEnabled: $('#container').width() > 480
|
|
|
|
},
|
|
|
|
|
|
|
|
credits : {
|
|
|
|
enabled : false
|
|
|
|
},
|
|
|
|
|
|
|
|
tooltip : {
|
|
|
|
dateTimeLabelFormats :{
|
|
|
|
day:"%A, %b %e, %Y-%m-%d",
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
|
|
|
xAxis : {
|
|
|
|
dateTimeLabelFormats : {
|
|
|
|
day:"%Y/%m/%d",
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
var chart = $('#container').highcharts();
|
|
|
|
|
|
|
|
$.ajax({
|
|
|
|
'url': '?time=<?= time() ?>',
|
|
|
|
'data': '',
|
|
|
|
'method': 'GET',
|
|
|
|
'dataType': 'json',
|
|
|
|
'success': function(data){
|
|
|
|
chart.addSeries({
|
|
|
|
name: "元数据个数",
|
|
|
|
data: data,
|
|
|
|
type : 'line'
|
|
|
|
});
|
|
|
|
},
|
|
|
|
'timeout': 30000,
|
|
|
|
'global' : true
|
|
|
|
});
|
|
|
|
});
|
|
|
|
</script>
|