Commit 6a5dc840 by doszhang

dos

parent 67779c94
...@@ -9,7 +9,7 @@ class InfoController extends AdminController ...@@ -9,7 +9,7 @@ class InfoController extends AdminController
{ {
public function index() public function index()
{ {
$sql = "select u.id,u.nickname,u.headimgurl,i.name,i.tel,i.submit_time from user as u,info as i where i.uid=u.id"; $sql = "select u.id,u.nickname,u.headimgurl,i.name,i.tel,i.submit_time from user as u,info as i where i.uid=u.id or i.uid=weibo";
$list = M()->query($sql); $list = M()->query($sql);
$this->assign('list', $list); $this->assign('list', $list);
$this->display(); $this->display();
......
...@@ -32,6 +32,7 @@ ...@@ -32,6 +32,7 @@
<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">
...@@ -43,6 +44,13 @@ ...@@ -43,6 +44,13 @@
<td>{:$item['name']}</td> <td>{:$item['name']}</td>
<td>{:$item['tel']}</td> <td>{:$item['tel']}</td>
<td>{:$item.submit_time|date_format:'%Y-%m-%d %H:%M:%S'}</td> <td>{:$item.submit_time|date_format:'%Y-%m-%d %H:%M:%S'}</td>
<td>
{:if $item['uid'] == 'weibo'}
微博
{:else}
微信
{:/if}
</td>
</tr> </tr>
{:/foreach} {:/foreach}
</tbody> </tbody>
......
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