对r1229进行了微调

This commit is contained in:
Li Jianxuan 2011-09-28 06:56:03 +00:00
parent 5151cda7ee
commit d7d3270699
2 changed files with 7 additions and 7 deletions

View File

@ -931,8 +931,8 @@ class Admin_DataController extends Zend_Controller_Action
->setHeader('Pragma','public') ->setHeader('Pragma','public')
->setBody($content); ->setBody($content);
$sql = "update attachments set downtimes=downtimes+1 where id='$down'"; //$sql = "update attachments set downtimes=downtimes+1 where id='$down'";
$this->db->exec($sql); //$this->db->exec($sql);
}//附件下载 }//附件下载

View File

@ -41,10 +41,10 @@
<table> <table>
<thead><tr> <thead><tr>
<th width='300'>描述</th> <th width='300'>描述</th>
<th width='100'>类型</th> <th width='80'>类型</th>
<th width='100'>大小</th> <th width='80'>大小</th>
<th width='100'>下载次数</th> <th width='80'>下载次数</th>
<th width='100'>上传时间</th> <th width='150'>上传时间</th>
<th width="150">操作</th> <th width="150">操作</th>
</tr></thead> </tr></thead>
<tbody> <tbody>
@ -60,7 +60,7 @@
?></td> ?></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><?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><?= $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> <td>
<a href="/admin/data/attachments/edit/<?= $item['id']; ?>">编辑</a> | <a href="/admin/data/attachments/edit/<?= $item['id']; ?>">编辑</a> |
<a href="/admin/data/attachments/delete/<?= $item['id']; ?>" onclick="return confirm('是否确定删除该附件?')">删除</a> | <a href="/admin/data/attachments/delete/<?= $item['id']; ?>" onclick="return confirm('是否确定删除该附件?')">删除</a> |