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');
|
|
|
|
$this->headLink()->appendStylesheet('/css/jquery.jqplot.css');
|
|
|
|
$this->headScript()->appendFile('/js/jquery-1.7.min.js');
|
|
|
|
$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;}
|
|
|
|
.cp a{color:#4bb2c5;line-height:24px;}
|
|
|
|
.cp a:hover{color:#FFF;background:#4bb2c5;}
|
|
|
|
</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>
|
|
|
|
<li><a href="/admin/stat/unit/">总体查看(默认)</a></li>
|
|
|
|
<?php
|
|
|
|
for($i=2004; $i<=date("Y",time()); $i++)
|
|
|
|
{
|
|
|
|
echo '<li><a href="/admin/stat/unit/y/'.$i.'">'.$i.'</a></li>';
|
|
|
|
}
|
|
|
|
?>
|
|
|
|
</ul>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<?php if(!empty($this->y)) {
|
|
|
|
$url_param = "y=".$this->y;
|
|
|
|
}?>
|
|
|
|
<a href="/admin/stat/unit/ac/out">导出csv格式</a>
|
|
|
|
</li>
|
2011-12-08 03:46:35 +00:00
|
|
|
</div>
|
|
|
|
<div id="unitdata">
|
2011-12-07 10:00:58 +00:00
|
|
|
</div>
|
2011-12-08 03:46:35 +00:00
|
|
|
<table style="float:left;">
|
2013-01-07 09:31:21 +00:00
|
|
|
<tr>
|
|
|
|
<td>ID</td>
|
|
|
|
<td>单位名称</td>
|
|
|
|
<td>离线申请次数</td>
|
|
|
|
<td>在线申请次数</td>
|
|
|
|
<td>总申请次数</td>
|
|
|
|
</tr>
|
2011-12-07 10:00:58 +00:00
|
|
|
<?php
|
2013-01-07 09:31:21 +00:00
|
|
|
foreach ($this->units as $k=>$v)
|
2011-12-07 10:00:58 +00:00
|
|
|
{
|
2013-01-07 09:31:21 +00:00
|
|
|
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>";
|
2011-12-07 10:00:58 +00:00
|
|
|
}
|
|
|
|
?>
|
|
|
|
</table>
|
2011-12-08 03:46:35 +00:00
|
|
|
|
2011-12-07 10:00:58 +00:00
|
|
|
</div>
|