Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
php
/
maf
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
3805fc21
authored
Jan 19, 2020
by
doszhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dos
parent
a0a0984b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
56 deletions
+24
-56
Application/Admin/Controller/InfoController.class.php
+0
-0
Application/Admin/View/default/Info_index.tpl
+6
-38
Application/Tools/AdminController.class.php
+18
-18
No files found.
Application/Admin/Controller/
Prize
Controller.class.php
→
Application/Admin/Controller/
Info
Controller.class.php
View file @
3805fc21
File moved
Application/Admin/View/default/Info_index.tpl
View file @
3805fc21
...
...
@@ -7,14 +7,6 @@
width
:
300px
;
height
:
300px
;
}
.headposter_url
{
width
:
300px
;
height
:
300px
;
}
.poster_url
{
width
:
309px
;
height
:
500px
;
}
</style>
{:/block}
{:block name="content_title"}
...
...
@@ -37,44 +29,20 @@
<th>
ID
</th>
<th>
微信昵称
</th>
<th>
微信头像
</th>
<th>
生成的头像
</th>
<th>
生成头像时间
</th>
<th>
生成的海报
</th>
<th>
生成海报时间
</th>
<th>
姓名
</th>
<th>
电话
</th>
<th>
时间
</th>
</tr>
</thead>
<tbody
class=
"text-left"
>
{:foreach from=$list item=item}
<tr>
<td>
{:$item['id']}
</td>
<td>
{:$item['nickname']}
</td>
<td><img
class=
"headimgUrl"
style=
"width:100px;height:100px;object-fit:contain;"
src=
"{:$item['headimgurl']}"
/></td>
<td>
{:if $item['headposter_url']}
<img
class=
"headposter_url"
style=
"width:100px;height:100px;object-fit:contain;"
src=
"{:$item['headposter_url']}"
/>
<span
style=
"display:none"
>
{:$item['headposter_url']}
</span>
{:/if}
</td>
<td
>
{:if $item['headposter_times'] != 0}
{:$item.headposter_times|date_format:'%Y-%m-%d %H:%M:%S'}
{:/if}
</td>
<td>
{:if $item['poster_url']}
<img
class=
"poster_url"
style=
"width:100px;height:100px;object-fit:contain;"
src=
"{:$item['poster_url']}"
/>
<span
style=
"display:none"
>
{:$item['poster_url']}
</span>
{:/if}
</td>
<td>
{:if $item['poster_times'] != 0}
{:$item.poster_times|date_format:'%Y-%m-%d %H:%M:%S'}
{:/if}
</td>
<td>
{:$item['name']}
</td>
<td>
{:$item['tel']}
</td>
<td>
{:$item.submit_time|date_format:'%Y-%m-%d %H:%M:%S'}
</td>
</tr>
{:/foreach}
</tbody>
...
...
Application/Tools/AdminController.class.php
View file @
3805fc21
...
...
@@ -12,31 +12,31 @@ class AdminController extends Controller {
public
function
__construct
()
{
parent
::
__construct
();
$admin_id
=
session
(
'admin_id'
);
$admin_name
=
session
(
'admin_name'
);
$admin_info
=
M
(
'Manager'
)
->
where
(
array
(
'id'
=>
$admin_id
))
->
select
();
if
(
!
$admin_info
&&
ACTION_NAME
!=
'signin'
)
{
$this
->
redirect
(
'home/signin'
);
}
//
$admin_id = session('admin_id');
//
$admin_name = session('admin_name');
//
$admin_info = M('Manager')->where(array('id' => $admin_id))->select();
//
if (!$admin_info && ACTION_NAME!= 'signin') {
//
$this->redirect('home/signin');
//
}
}
public
function
getMenu
()
{
$auths
=
[
// [
// 'auth_id' =>'1',
// 'auth_name' =>'统计信息',
// 'auth_pid' =>'0',
// 'auth_c' =>'Report',
// 'auth_a' =>'statistic',
// 'auth_path' =>'1',
// 'auth_level' =>'1',
// 'auth_src' => '0'
// ],
[
'auth_id'
=>
'1'
,
'auth_name'
=>
'
统计信息
'
,
'auth_name'
=>
'
用户留资
'
,
'auth_pid'
=>
'0'
,
'auth_c'
=>
'Report'
,
'auth_a'
=>
'statistic'
,
'auth_path'
=>
'1'
,
'auth_level'
=>
'1'
,
'auth_src'
=>
'0'
],
[
'auth_id'
=>
'2'
,
'auth_name'
=>
'中奖信息'
,
'auth_pid'
=>
'0'
,
'auth_c'
=>
'Prize'
,
'auth_c'
=>
'Info'
,
'auth_a'
=>
'index'
,
'auth_path'
=>
'1'
,
'auth_level'
=>
'1'
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment