切换导航条
此项目
正在载入...
登录
郭盛
/
resource
·
提交
转到一个项目
GitLab
转到仪表盘
项目
活动
文件
提交
管道
0
构建
0
图表
里程碑
问题
0
合并请求
0
成员
标记
维基
派生
网络
创建新的问题
下载为
邮件补丁
差异文件
浏览文件
作者
郭盛
5 years ago
提交
c3b5913d7d314ef8e9d5e13002584738e5316d87
1 个父辈
e72add03
1 个管道 的构建
通过
耗费 0 秒
统计
变更
2
构建
2
隐藏空白字符变更
内嵌
并排对比
正在显示
2 个修改的文件
包含
90 行增加
和
0 行删除
app/admin/controller/StatisticController.php
public/themes/admin_simpleboot3/admin/statistic/index.html
app/admin/controller/StatisticController.php
0 → 100644
查看文件 @
c3b5913
<?php
/**
* Created by PhpStorm.
* User: Administrator
* Date: 2019/9/7
* Time: 15:03
*/
namespace
app\admin\controller
;
use
cmf\controller\AdminBaseController
;
use
think\Db
;
class
StatisticController
extends
AdminBaseController
{
//实时数据
public
function
index
()
{
$data
[
'provide'
]
=
Db
::
name
(
'job'
)
->
where
(
'job_type'
,
1
)
->
where
(
'delete_time'
,
0
)
->
whereTime
(
'create_time'
,
'today'
)
->
where
(
'status'
,
1
)
->
count
();
$data
[
'demand'
]
=
Db
::
name
(
'job'
)
->
where
(
'job_type'
,
2
)
->
where
(
'delete_time'
,
0
)
->
whereTime
(
'create_time'
,
'today'
)
->
where
(
'status'
,
1
)
->
count
();
$data
[
'active'
]
=
Db
::
name
(
'job'
)
->
where
(
'job_type'
,
3
)
->
where
(
'delete_time'
,
0
)
->
whereTime
(
'create_time'
,
'today'
)
->
where
(
'status'
,
1
)
->
count
();
$data
[
'attract'
]
=
Db
::
name
(
'job'
)
->
where
(
'job_type'
,
4
)
->
where
(
'delete_time'
,
0
)
->
whereTime
(
'create_time'
,
'today'
)
->
where
(
'status'
,
1
)
->
count
();
$data
[
'man'
]
=
Db
::
name
(
'user'
)
->
whereTime
(
'create_time'
,
'today'
)
->
count
();
$this
->
assign
(
'data'
,
$data
);
return
$this
->
fetch
();
}
}
\ No newline at end of file
...
...
public/themes/admin_simpleboot3/admin/statistic/index.html
0 → 100644
查看文件 @
c3b5913
<include
file=
"public@header"
/>
</head>
<style>
th
,
td
{
text-align
:
center
;
}
</style>
<body>
<div
class=
"wrap js-check-wrap"
>
<ul
class=
"nav nav-tabs"
>
<li
class=
"active"
><a
href=
"{:url('Statistic/index')}"
>
实时数据
</a></li>
</ul>
<form
class=
"js-ajax-form"
action=
""
method=
"post"
>
<table
class=
"table table-hover table-bordered"
>
<thead>
<tr>
<th>
新增供给
</th>
<th>
新增需求
</th>
<th>
新增活动
</th>
<th>
招商加盟
</th>
<th>
新增用户
</th>
</tr>
</thead>
<tbody>
<tr
style=
"font-size: 20px"
>
<td>
{$data.provide}个供给
</td>
<td>
{$data.demand}个需求
</td>
<td>
{$data.active}个活动
</td>
<td>
{$data.attract}个合作
</td>
<td>
{$data.man}个
</td>
</tr>
</tbody>
</table>
</form>
</div>
<script
src=
"__STATIC__/js/admin.js"
></script>
</body>
</html>
\ No newline at end of file
...
...
请
注册
或
登录
后发表评论