77 lines
3.7 KiB
PHTML
77 lines
3.7 KiB
PHTML
|
<?php
|
|||
|
$this->headTitle($this->config->title->site);
|
|||
|
$this->headTitle('后台管理');
|
|||
|
$this->headTitle()->setSeparator(' - ');
|
|||
|
$this->headLink()->appendStylesheet('/css/admin.css');
|
|||
|
$this->breadcrumb('<a href="/">首页</a>');
|
|||
|
$this->breadcrumb('<a href="/admin">后台首页</a>');
|
|||
|
$this->breadcrumb('<a href="/admin/heihe">黑河数据集</a>');
|
|||
|
$this->breadcrumb('黑河数据集');
|
|||
|
$this->breadcrumb()->setSeparator(' > ');
|
|||
|
$this->headScript()->appendFile('/js/jquery-1.7.min.js');
|
|||
|
$this->headScript()->appendFile('/js/jquery.colorbox-min.js');
|
|||
|
$this->headLink()->appendStylesheet('/css/colorbox.css');
|
|||
|
$this->headLink()->appendStylesheet('/css/author.css');
|
|||
|
?>
|
|||
|
<div class="row">
|
|||
|
<div class="hidden-sm hidden-xs col-md-2">
|
|||
|
<?= $this->partial('data/left.phtml'); ?>
|
|||
|
</div>
|
|||
|
<div class="col-md-10 col-sm-12">
|
|||
|
<h2>统计信息</h2>
|
|||
|
<hr />
|
|||
|
|
|||
|
<h4>数据:</h4>
|
|||
|
<p>项目个数:<?= $this->projectsCount ?></p>
|
|||
|
<p>数据条数:<?= $this->dataCount ?></p>
|
|||
|
<p>总数据量:<?= round($this->dataFileSize / 1024 , 2) . 'GB' ?></p>
|
|||
|
<p>文件个数:<a href="javascript:void(0);" id="fileCount">点击查看</a></p>
|
|||
|
<p>服务次数(人/次):<a href="/admin/data/project/ac/userdown"><?= $this->applyTimes ?></a></p>
|
|||
|
<p>服务次数(人/合并次,单个用户多次申请算作一次服务): <?= $this->applyTimesDistanct ?></p>
|
|||
|
<p>服务次数(数据条/次):<?= $this->dataApplyTimes ?></p>
|
|||
|
|
|||
|
|
|||
|
<h4>项目服务情况<small>(数据中心所有数据向计划内项目提供的服务)</small></h4>
|
|||
|
<p>为黑河计划项目服务的次数-离线:<?= $this->offlineServiceTimes ?></p>
|
|||
|
<p>为黑河计划项目服务的数据量-离线:<?= round($this->offlineServiceSize,2) ?>GB</p>
|
|||
|
<p>为黑河计划项目服务的次数-在线:<?= $this->onlineServiceTimes ?></p>
|
|||
|
<p>为黑河计划项目服务的数据量-在线:<?= round($this->onlineServiceSize ,2) ?>GB</p>
|
|||
|
<p>为黑河计划项目服务的次数-总数:<?= $this->onlineServiceTimes + $this->offlineServiceTimes ?></p>
|
|||
|
<p>为黑河计划项目服务的数据量-总数:<?= round($this->onlineServiceSize + $this->offlineServiceSize ,2)?>GB</p>
|
|||
|
<p>服务计划内项目个数-离线:<?= $this->offlineServiceProjects ?></p>
|
|||
|
<p>服务计划内项目个数-在线:<?= $this->onlineServiceProjects ?></p>
|
|||
|
<p>服务计划内项目个数-综合(在线离线合并):<?= $this->allServiceProjects ?></p>
|
|||
|
|
|||
|
<h3>选择项目进行统计</h3>
|
|||
|
|
|||
|
<form method="get">
|
|||
|
<div class="form-group">
|
|||
|
<?php foreach($this->projects as $v) { ?>
|
|||
|
<label class="checkbox-inline" title="<?= $v['title'] ?>">
|
|||
|
<input type="checkbox" name="fund_id[]" value="<?= $v['code'] ?>" <?= (is_array($this->funds) && in_array($v['code'],$this->funds)) ? "checked":'' ?> title="<?= $v['title'] ?>" /><?= $v['code'] ?>
|
|||
|
</label>
|
|||
|
<?php }?>
|
|||
|
</div>
|
|||
|
<button type="submit" name="submit" value="1" class="btn btn-success">重新统计</button>
|
|||
|
</form>
|
|||
|
|
|||
|
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
<?php $query = isset($_GET) && count($_GET) ? "?".http_build_query($_GET) :"" ; ?>
|
|||
|
<script>
|
|||
|
$('#fileCount').click(function(){
|
|||
|
$.ajax({
|
|||
|
'type': "POST",
|
|||
|
'url': "<?= $query ?>",
|
|||
|
'data': '',
|
|||
|
'success': function(data){
|
|||
|
$('#fileCount').after(data);
|
|||
|
$('#fileCount').remove();
|
|||
|
},
|
|||
|
'beforeSend':function(){
|
|||
|
$('#fileCount').html('正在加载...');
|
|||
|
}
|
|||
|
})
|
|||
|
});
|
|||
|
</script>
|