Commit 3805fc21 by doszhang

dos

parent a0a0984b
...@@ -7,14 +7,6 @@ ...@@ -7,14 +7,6 @@
width: 300px; width: 300px;
height: 300px; height: 300px;
} }
.headposter_url {
width: 300px;
height: 300px;
}
.poster_url {
width: 309px;
height: 500px;
}
</style> </style>
{:/block} {:/block}
{:block name="content_title"} {:block name="content_title"}
...@@ -37,44 +29,20 @@ ...@@ -37,44 +29,20 @@
<th>ID</th> <th>ID</th>
<th>微信昵称</th> <th>微信昵称</th>
<th>微信头像</th> <th>微信头像</th>
<th>生成的头像</th> <th>姓名</th>
<th>生成头像时间</th> <th>电话</th>
<th>生成的海报</th> <th>时间</th>
<th>生成海报时间</th>
</tr> </tr>
</thead> </thead>
<tbody class="text-left"> <tbody class="text-left">
{:foreach from=$list item=item} {:foreach from=$list item=item}
<tr> <tr>
<td>{:$item['id']}</td> <td>{:$item['id']}</td>
<td>{:$item['nickname']}</td> <td>{:$item['nickname']}</td>
<td><img class="headimgUrl" style="width:100px;height:100px;object-fit:contain;" src="{:$item['headimgurl']}" /></td> <td><img class="headimgUrl" style="width:100px;height:100px;object-fit:contain;" src="{:$item['headimgurl']}" /></td>
<td> <td>{:$item['name']}</td>
{:if $item['headposter_url']} <td>{:$item['tel']}</td>
<img class="headposter_url" style="width:100px;height:100px;object-fit:contain;" src="{:$item['headposter_url']}" /> <td>{:$item.submit_time|date_format:'%Y-%m-%d %H:%M:%S'}</td>
<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>
</tr> </tr>
{:/foreach} {:/foreach}
</tbody> </tbody>
......
...@@ -12,31 +12,31 @@ class AdminController extends Controller { ...@@ -12,31 +12,31 @@ class AdminController extends Controller {
public function __construct() public function __construct()
{ {
parent::__construct(); parent::__construct();
$admin_id = session('admin_id'); // $admin_id = session('admin_id');
$admin_name = session('admin_name'); // $admin_name = session('admin_name');
$admin_info = M('Manager')->where(array('id' => $admin_id))->select(); // $admin_info = M('Manager')->where(array('id' => $admin_id))->select();
if (!$admin_info && ACTION_NAME!= 'signin') { // if (!$admin_info && ACTION_NAME!= 'signin') {
$this->redirect('home/signin'); // $this->redirect('home/signin');
} // }
} }
public function getMenu() public function getMenu()
{ {
$auths = [ $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_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_pid' =>'0',
'auth_c' =>'Prize', 'auth_c' =>'Info',
'auth_a' =>'index', 'auth_a' =>'index',
'auth_path' =>'1', 'auth_path' =>'1',
'auth_level' =>'1', 'auth_level' =>'1',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment