文献管理中添加了按记录时间排序的功能

This commit is contained in:
Li Jianxuan 2013-10-12 09:36:13 +00:00
parent c0a3ee9e35
commit f06a9ef590
1 changed files with 6 additions and 0 deletions

View File

@ -50,6 +50,10 @@ table thead tr th {background:#EBF2F6;}
<a href="?order=year&sort=ASC&q=<?php if(!empty($this->q)) echo $this->q; ?>"><i class="icon-arrow-up"></i></a> <a href="?order=year&sort=ASC&q=<?php if(!empty($this->q)) echo $this->q; ?>"><i class="icon-arrow-up"></i></a>
<a href="?order=year&sort=DESC&q=<?php if(!empty($this->q)) echo $this->q; ?>"><i class="icon-arrow-down"></i></a> <a href="?order=year&sort=DESC&q=<?php if(!empty($this->q)) echo $this->q; ?>"><i class="icon-arrow-down"></i></a>
</th> </th>
<th>记录创建
<a href="?order=ts_created&sort=ASC&q=<?php if(!empty($this->q)) echo $this->q; ?>"><i class="icon-arrow-up"></i></a>
<a href="?order=ts_created&sort=DESC&q=<?php if(!empty($this->q)) echo $this->q; ?>"><i class="icon-arrow-down"></i></a>
</th>
<th width="140">操作</th> <th width="140">操作</th>
</tr> </tr>
</thead> </thead>
@ -62,6 +66,7 @@ table thead tr th {background:#EBF2F6;}
<td><?= $item['title'] ?></td> <td><?= $item['title'] ?></td>
<td><?= $item['year'] ?></td> <td><?= $item['year'] ?></td>
<td><?= date("Y-m-d H:i",strtotime($item['ts_created'])) ?></td>
<td rowspan="2"> <td rowspan="2">
<a href="/admin/data/ref/ac/add/id/<?= $item['id']?>">编辑</a> <a href="/admin/data/ref/ac/add/id/<?= $item['id']?>">编辑</a>
<a href="/admin/data/ref/ac/data/id/<?= $item['id'] ?>">数据</a>(<a href="javascript:void(0);" onclick="$('#mdref')[0].reset();mdref.edit('',<?= $item['id']?>,'',0,0)">+</a>) <a href="/admin/data/ref/ac/data/id/<?= $item['id'] ?>">数据</a>(<a href="javascript:void(0);" onclick="$('#mdref')[0].reset();mdref.edit('',<?= $item['id']?>,'',0,0)">+</a>)
@ -74,6 +79,7 @@ table thead tr th {background:#EBF2F6;}
<?php } ?> <?php } ?>
<?php if(empty($item['title']) && empty($item['year'])) { ?> <?php if(empty($item['title']) && empty($item['year'])) { ?>
<td colspan="2"><?= $item['reference'] ?></td> <td colspan="2"><?= $item['reference'] ?></td>
<td><?= date("Y-m-d H:i",strtotime($item['ts_created'])) ?></td>
<td> <td>
<a href="/admin/data/ref/ac/add/id/<?= $item['id']?>">编辑</a> <a href="/admin/data/ref/ac/add/id/<?= $item['id']?>">编辑</a>
<a href="/admin/data/ref/ac/data/id/<?= $item['id'] ?>">数据</a> <a href="/admin/data/ref/ac/data/id/<?= $item['id'] ?>">数据</a>