Commit 3805fc21 by doszhang

dos

parent a0a0984b
......@@ -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>
......
......@@ -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',
......
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