增加了数据下载信息统计中查看详细在线下载记录的功能
This commit is contained in:
parent
97a52d7257
commit
66f96a7496
|
@ -464,7 +464,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','ts_created','offlineappid'))
|
$select->from('dataorder as o',array('ts_created','ts_created','offlineappid','onlineappid'))
|
||||||
->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)
|
||||||
|
|
|
@ -1,60 +1,63 @@
|
||||||
<?php
|
<?php
|
||||||
$this->headTitle($this->config->title->site);
|
$this->headTitle($this->config->title->site);
|
||||||
$this->headTitle('后台管理');
|
$this->headTitle('后台管理');
|
||||||
$this->headTitle()->setSeparator(' - ');
|
$this->headTitle()->setSeparator(' - ');
|
||||||
$this->headLink()->appendStylesheet('/css/admin.css');
|
$this->headLink()->appendStylesheet('/css/admin.css');
|
||||||
$this->breadcrumb('<a href="/">首页</a>');
|
$this->breadcrumb('<a href="/">首页</a>');
|
||||||
$this->breadcrumb('<a href="/admin">后台管理首页</a>');
|
$this->breadcrumb('<a href="/admin">后台管理首页</a>');
|
||||||
$this->breadcrumb('<a href="/admin/stat">统计</a>');
|
$this->breadcrumb('<a href="/admin/stat">统计</a>');
|
||||||
$this->breadcrumb('在线下载记录');
|
$this->breadcrumb('在线下载记录');
|
||||||
$this->breadcrumb()->setSeparator(' > ');
|
$this->breadcrumb()->setSeparator(' > ');
|
||||||
$this->headScript()->appendFile('/js/prototype.js');
|
$this->headScript()->appendFile('/js/prototype.js');
|
||||||
?>
|
?>
|
||||||
<div id="divContent">
|
<div id="divContent">
|
||||||
|
|
||||||
<div id="leftPanel">
|
<div id="leftPanel">
|
||||||
<?= $this->partial('down/left.phtml'); ?>
|
<?= $this->partial('down/left.phtml'); ?>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<?php if ($this->msg or $this->messages) :?>
|
<?php if ($this->msg or $this->messages) :?>
|
||||||
<div id="message">
|
<div id="message">
|
||||||
<?php if ($this->msg) : ?>
|
<?php if ($this->msg) : ?>
|
||||||
<p><?php echo $this->msg; ?></p>
|
<p><?php echo $this->msg; ?></p>
|
||||||
<?php endif; if ($this->messages): foreach($this->messages as $msg): ?>
|
<?php endif; if ($this->messages): foreach($this->messages as $msg): ?>
|
||||||
<p><?php echo $msg; ?></p>
|
<p><?php echo $msg; ?></p>
|
||||||
<?php endforeach;endif; ?>
|
<?php endforeach;endif; ?>
|
||||||
</div>
|
</div>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
||||||
|
|
||||||
<div id="rightPanel">
|
<div id="rightPanel">
|
||||||
<div><a href="/data/<?php echo $this->infos['uuid'];?>" target="_blank"><img src="/images/data.gif" /></a>“<?php echo $this->infos['title']; ?>” 的下载记录</div>
|
<div><a href="/data/<?php echo $this->infos['uuid'];?>" target="_blank"><img src="/images/data.gif" /></a>“<?php echo $this->infos['title']; ?>” 的下载记录</div>
|
||||||
<table>
|
<table>
|
||||||
<tr style="color:#FFF;background:#0a3e68;line-height:30px;">
|
<tr style="color:#FFF;background:#0a3e68;line-height:30px;">
|
||||||
<td width='120'>用户</td>
|
<td width='120'>用户</td>
|
||||||
<td width='350'>姓名</td>
|
<td width='350'>姓名</td>
|
||||||
<td width='150'>下载时间</td>
|
<td width='150'>下载时间</td>
|
||||||
<td width='150'>操作</td>
|
<td width='150'>操作</td>
|
||||||
</tr>
|
</tr>
|
||||||
<?php if (count($this->paginator)): ?>
|
<?php if (count($this->paginator)): ?>
|
||||||
<?php $autoindex=0;?>
|
<?php $autoindex=0;?>
|
||||||
<?php foreach ($this->paginator as $item): ?>
|
<?php foreach ($this->paginator as $item): ?>
|
||||||
<?php $autoindex++;?>
|
<?php $autoindex++;?>
|
||||||
<tr <?php if($autoindex%2 == 0) echo 'bgcolor="#CCCCCC"'; else echo 'bgcolor="#FFFFFF"'; ?>>
|
<tr <?php if($autoindex%2 == 0) echo 'bgcolor="#CCCCCC"'; else echo 'bgcolor="#FFFFFF"'; ?>>
|
||||||
<td><a href="/admin/user/show/id/<?php echo $item['userid'];?>"><img src="/images/user.gif" /></a> <a href="/admin/down/user/show/<?php echo $item['userid'];?>"><?= $item['username']?></a> </td>
|
<td><a href="/admin/user/show/id/<?php echo $item['userid'];?>"><img src="/images/user.gif" /></a> <a href="/admin/down/user/show/<?php echo $item['userid'];?>"><?= $item['username']?></a> </td>
|
||||||
<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) : ?>
|
<?php if ($item['onlineappid']>0) : ?>
|
||||||
<a href='/admin/down/offline/show/<?php echo $item['offlineappid'];?>'>详细</a>
|
<a href='/admin/down/online/show/<?php echo $item['offlineappid'];?>'>详细</a>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</td>
|
<?php if ($item['offlineappid']>0) : ?>
|
||||||
</tr>
|
<a href='/admin/down/offline/show/<?php echo $item['offlineappid'];?>'>详细</a>
|
||||||
<?php endforeach; ?>
|
<?php endif; ?>
|
||||||
<?php endif; ?>
|
</td>
|
||||||
</table>
|
</tr>
|
||||||
<div style="width:50%;text-align:left;">
|
<?php endforeach; ?>
|
||||||
<?= $this->paginator; ?>
|
<?php endif; ?>
|
||||||
</div>
|
</table>
|
||||||
</div>
|
<div style="width:50%;text-align:left;">
|
||||||
|
<?= $this->paginator; ?>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
Loading…
Reference in New Issue