2014-01-10 09:21:13 +00:00
|
|
|
<?php
|
|
|
|
$this->headTitle($this->config->title->site);
|
|
|
|
$this->headTitle('后台管理');
|
|
|
|
$this->headTitle()->setSeparator(' - ');
|
|
|
|
$this->headLink()->appendStylesheet('/css/admin.css');
|
|
|
|
$this->theme->AppendPlus($this,'jquery');
|
|
|
|
$this->theme->AppendPlus($this,'colorbox');
|
|
|
|
$this->theme->AppendPlus($this,'datatable');
|
|
|
|
$this->breadcrumb('<a href="/">首页</a>');
|
|
|
|
$this->breadcrumb('<a href="/admin">后台首页</a>');
|
|
|
|
$this->breadcrumb()->setSeparator(' > ');
|
|
|
|
?>
|
|
|
|
<div class="row-fluid">
|
|
|
|
<div class="span2">
|
|
|
|
<?= $this->partial('stat/left.phtml'); ?>
|
|
|
|
</div>
|
|
|
|
<div class="span10">
|
|
|
|
|
|
|
|
<?= $this->partial('stat/user-nav.phtml',array('ac'=>$this->ac)); ?>
|
|
|
|
|
|
|
|
<div class="cp">
|
|
|
|
<a href="/admin/stat/user/ac/get/down/csv" class="btn btn-info">导出csv格式</a>
|
|
|
|
<a href="/admin/stat/user/ac/get/down/json" class="btn btn-info">导出JSON格式</a>
|
|
|
|
</div>
|
|
|
|
<div id="unitdata">
|
|
|
|
<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>
|
|
|
|
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<script>
|
|
|
|
$(document).ready(function() {
|
|
|
|
$('#datatable').dataTable( {
|
|
|
|
"bProcessing": true,
|
|
|
|
"sAjaxSource": "/admin/stat/user/ac/get",
|
|
|
|
"aoColumns": [
|
|
|
|
{ "mData": "userid" },
|
|
|
|
{ "mData": "realname" },
|
|
|
|
{ "mData": "offline" },
|
|
|
|
{ "mData": "online" },
|
|
|
|
{ "mData": "total" }
|
|
|
|
],
|
|
|
|
"sPaginationType": "full_numbers"
|
|
|
|
});
|
|
|
|
} );
|
2013-01-09 08:49:46 +00:00
|
|
|
</script>
|