对r1229进行了微调
This commit is contained in:
parent
5151cda7ee
commit
d7d3270699
|
@ -931,8 +931,8 @@ class Admin_DataController extends Zend_Controller_Action
|
|||
->setHeader('Pragma','public')
|
||||
->setBody($content);
|
||||
|
||||
$sql = "update attachments set downtimes=downtimes+1 where id='$down'";
|
||||
$this->db->exec($sql);
|
||||
//$sql = "update attachments set downtimes=downtimes+1 where id='$down'";
|
||||
//$this->db->exec($sql);
|
||||
|
||||
}//附件下载
|
||||
|
||||
|
|
|
@ -41,10 +41,10 @@
|
|||
<table>
|
||||
<thead><tr>
|
||||
<th width='300'>描述</th>
|
||||
<th width='100'>类型</th>
|
||||
<th width='100'>大小</th>
|
||||
<th width='100'>下载次数</th>
|
||||
<th width='100'>上传时间</th>
|
||||
<th width='80'>类型</th>
|
||||
<th width='80'>大小</th>
|
||||
<th width='80'>下载次数</th>
|
||||
<th width='150'>上传时间</th>
|
||||
<th width="150">操作</th>
|
||||
</tr></thead>
|
||||
<tbody>
|
||||
|
@ -60,7 +60,7 @@
|
|||
?></td>
|
||||
<td><?php if($item['filesize']<1048576) echo round(($item['filesize']/1024),2).'KB'; else echo round(($item['filesize']/1024/1024),2).'MB'; ?></td>
|
||||
<td><?= $item['downtimes']; ?></td>
|
||||
<td><?= date('Y-m-d',strtotime($item['ts_created'])); ?></td>
|
||||
<td><?= date('Y-m-d H:i:s',strtotime($item['ts_created'])); ?></td>
|
||||
<td>
|
||||
<a href="/admin/data/attachments/edit/<?= $item['id']; ?>">编辑</a> |
|
||||
<a href="/admin/data/attachments/delete/<?= $item['id']; ?>" onclick="return confirm('是否确定删除该附件?')">删除</a> |
|
||||
|
|
Loading…
Reference in New Issue