同时处理在线数据和离线数据的不同显示方式
This commit is contained in:
parent
992ebf6455
commit
1d1e2b4010
|
@ -434,7 +434,7 @@ class Admin_DownController extends Zend_Controller_Action
|
||||||
elseif($show)
|
elseif($show)
|
||||||
{
|
{
|
||||||
$select=$this->db->select();
|
$select=$this->db->select();
|
||||||
$select->from('dataorder as o',array('ts_created'))
|
$select->from('dataorder as o',array('id','ts_created','offlineappid'))
|
||||||
->join('metadata as m', 'o.uuid = m.uuid', array('title','uuid'))
|
->join('metadata as m', 'o.uuid = m.uuid', array('title','uuid'))
|
||||||
->join('users as u', 'o.userid=u.id',array('id as userid','username','realname'))
|
->join('users as u', 'o.userid=u.id',array('id as userid','username','realname'))
|
||||||
->where('m.uuid = ? and (o.status=0 or o.status=5)', $show)
|
->where('m.uuid = ? and (o.status=0 or o.status=5)', $show)
|
||||||
|
|
|
@ -45,7 +45,11 @@
|
||||||
<td><a href="/admin/down/data/show/<?php echo $item['uuid'];?>"><?php echo $item['realname'];?></a></td>
|
<td><a href="/admin/down/data/show/<?php echo $item['uuid'];?>"><?php echo $item['realname'];?></a></td>
|
||||||
<td><?php echo date('Y-m-d H:i:s', strtotime($item['ts_created'])); ?></td>
|
<td><?php echo date('Y-m-d H:i:s', strtotime($item['ts_created'])); ?></td>
|
||||||
<td>
|
<td>
|
||||||
|
<?php if ($item['offlineappid']>0) : ?>
|
||||||
|
<a href='/admin/down/offline/show/<?php echo $item['offlineappid'];?>'>详细</a>
|
||||||
|
<?php else : ?>
|
||||||
<a href='/admin/down/online/show/<?php echo $item['id'];?>'>详细</a>
|
<a href='/admin/down/online/show/<?php echo $item['id'];?>'>详细</a>
|
||||||
|
<?php endif; ?>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
|
|
Loading…
Reference in New Issue