2011-12-07 10:00:58 +00:00
|
|
|
<?php
|
|
|
|
$this->headTitle($this->config->title->site);
|
|
|
|
$this->headTitle('后台管理');
|
|
|
|
$this->headTitle()->setSeparator(' - ');
|
|
|
|
$this->headLink()->appendStylesheet('/css/admin.css');
|
2013-01-08 03:37:24 +00:00
|
|
|
$this->theme->AppendPlus($this,'jquery');
|
|
|
|
$this->theme->AppendPlus($this,'colorbox');
|
|
|
|
$this->theme->AppendPlus($this,'datatable');
|
2011-12-07 10:00:58 +00:00
|
|
|
$this->breadcrumb('<a href="/">首页</a>');
|
|
|
|
$this->breadcrumb('<a href="/admin">后台首页</a>');
|
|
|
|
$this->breadcrumb()->setSeparator(' > ');
|
|
|
|
?>
|
|
|
|
<style>
|
|
|
|
.charts{margin:30px 0px;}
|
|
|
|
.charts .title{color:#003366;}
|
|
|
|
.cp {line-height:24px;}
|
2013-01-08 03:37:24 +00:00
|
|
|
.cp ul li{float:left;margin:0px 0px;}
|
|
|
|
.cp a{color:#4bb2c5;line-height:24px;padding:5px;}
|
|
|
|
.cp a.active,.cp a:hover{color:#FFF;background:#4bb2c5;}
|
2011-12-07 10:00:58 +00:00
|
|
|
</style>
|
|
|
|
<div id="leftPanel">
|
|
|
|
<?= $this->partial('stat/left.phtml'); ?>
|
|
|
|
</div>
|
|
|
|
<div id="rightPanel">
|
|
|
|
|
2013-01-07 09:31:21 +00:00
|
|
|
<div class="cp">
|
|
|
|
<li class="sf">
|
|
|
|
<span>按年查看:</span>
|
|
|
|
<ul>
|
2013-01-08 03:37:24 +00:00
|
|
|
<?php $active=""; if(empty($this->y)) { $active = "active"; }?>
|
|
|
|
<li><a href="/admin/stat/unit/" class="<?= $active?>">总体查看(默认)</a></li>
|
2013-01-07 09:31:21 +00:00
|
|
|
<?php
|
2013-01-08 03:37:24 +00:00
|
|
|
$active="";
|
2013-01-07 09:31:21 +00:00
|
|
|
for($i=2004; $i<=date("Y",time()); $i++)
|
|
|
|
{
|
2013-01-08 03:37:24 +00:00
|
|
|
if(!empty($this->y))
|
|
|
|
{
|
|
|
|
if($this->y == $i)
|
|
|
|
{
|
|
|
|
$active = "active";
|
|
|
|
}else{
|
|
|
|
$active="";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
echo '<li><a href="/admin/stat/unit/y/'.$i.'" class="'.$active.'">'.$i.'</a></li>';
|
2013-01-07 09:31:21 +00:00
|
|
|
}
|
|
|
|
?>
|
|
|
|
</ul>
|
|
|
|
</li>
|
|
|
|
<li>
|
2013-01-08 08:23:48 +00:00
|
|
|
<?php
|
|
|
|
$url_param = "";
|
|
|
|
if(!empty($this->y)) {
|
|
|
|
$url_param = "?y=".$this->y;
|
|
|
|
}
|
|
|
|
?>
|
|
|
|
<a href="/admin/stat/unit/ac/out<?= $url_param ?>">导出csv格式</a>
|
2013-01-07 09:31:21 +00:00
|
|
|
</li>
|
2011-12-08 03:46:35 +00:00
|
|
|
</div>
|
|
|
|
<div id="unitdata">
|
2013-01-08 03:37:24 +00:00
|
|
|
<b>点击列名进行排序</b>
|
|
|
|
</div>
|
|
|
|
<div class="dataTables_wrapper">
|
|
|
|
<table id="datatable" class="table table-bordered table-striped table_vam dataTable">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>ID</th>
|
|
|
|
<th>单位名称</th>
|
|
|
|
<th>离线申请次数</th>
|
|
|
|
<th>在线申请次数</th>
|
|
|
|
<th>总申请次数</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
<?php
|
|
|
|
foreach ($this->units as $k=>$v)
|
|
|
|
{
|
|
|
|
echo "<tr>";
|
|
|
|
echo "<td>{$v['index']}</td>";
|
|
|
|
echo "<td>$k</td>";
|
|
|
|
echo "<td>{$v['offline']}</td>";
|
|
|
|
echo "<td>{$v['online']}</td>";
|
|
|
|
echo "<td>{$v['total']}</td>";
|
|
|
|
echo "</tr>";
|
|
|
|
}
|
|
|
|
?>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
2011-12-07 10:00:58 +00:00
|
|
|
</div>
|
2011-12-08 03:46:35 +00:00
|
|
|
|
2013-01-08 03:37:24 +00:00
|
|
|
</div>
|
|
|
|
<script>
|
|
|
|
$(document).ready(function() {
|
|
|
|
$('#datatable').dataTable( {
|
|
|
|
"bPaginate": false,
|
|
|
|
"bLengthChange": false,
|
|
|
|
"bFilter": true,
|
|
|
|
"bSort": true,
|
|
|
|
"bInfo": false,
|
|
|
|
"bAutoWidth": false
|
|
|
|
} );
|
|
|
|
} );
|
|
|
|
</script>
|