重新实现搜索的删除功能
This commit is contained in:
parent
9e6ae1749c
commit
b395489392
|
@ -279,7 +279,7 @@ class Admin_DataController extends Zend_Controller_Action
|
||||||
*/
|
*/
|
||||||
function mdAction()
|
function mdAction()
|
||||||
{
|
{
|
||||||
$delete=(int)$this->_getParam('delete');
|
$delete=$this->_getParam('delete');
|
||||||
$down=(int)$this->_getParam('down');
|
$down=(int)$this->_getParam('down');
|
||||||
$search = $this->_getParam('search');
|
$search = $this->_getParam('search');
|
||||||
$keyword = $this->_getParam('keyword');
|
$keyword = $this->_getParam('keyword');
|
||||||
|
@ -289,12 +289,12 @@ class Admin_DataController extends Zend_Controller_Action
|
||||||
|
|
||||||
if ($delete)
|
if ($delete)
|
||||||
{
|
{
|
||||||
$sql="delete from metadata where id=?";
|
$sql="delete from metadata where uuid=?";
|
||||||
try {
|
try {
|
||||||
$this->db->query($sql,array($delete));
|
$this->db->query($sql,array($delete));
|
||||||
$this->messenger->addMessage('提示信息:您已经成功删除该数据。');
|
$this->messenger->addMessage('提示信息:您已经成功删除该数据。');
|
||||||
$search=new Search();
|
$search=new Search();
|
||||||
$search->del($delete,'id');
|
$search->del($delete,'uuid');
|
||||||
} catch (Exception $e) {
|
} catch (Exception $e) {
|
||||||
$this->messenger->addMessage($e->getMessage());
|
$this->messenger->addMessage($e->getMessage());
|
||||||
}
|
}
|
||||||
|
|
|
@ -47,7 +47,7 @@
|
||||||
<p>大小:<?= $item['filesize']; ?>M,创建时间:<?= date('Y-m-d',strtotime($item['ts_created'])); ?>
|
<p>大小:<?= $item['filesize']; ?>M,创建时间:<?= date('Y-m-d',strtotime($item['ts_created'])); ?>
|
||||||
,查看:<?= $item['viewed']; ?>次。 操作:
|
,查看:<?= $item['viewed']; ?>次。 操作:
|
||||||
<a href="/service/geonetwork?url=metadata.edit?id=<?= $item['gid']; ?>" target="_blank">编辑</a> |
|
<a href="/service/geonetwork?url=metadata.edit?id=<?= $item['gid']; ?>" target="_blank">编辑</a> |
|
||||||
<a href="/admin/data/md/delete/<?= $item['id']; ?>">删除</a> |
|
<a href="/admin/data/md/delete/<?= $item['uuid']; ?>">删除</a> |
|
||||||
<a href="/admin/data/sync/uuid/<?= $item['uuid']; ?>">同步</a> |
|
<a href="/admin/data/sync/uuid/<?= $item['uuid']; ?>">同步</a> |
|
||||||
<a href="/admin/data/reference/show/<?php echo $item['uuid'];?>">文献管理</a> |
|
<a href="/admin/data/reference/show/<?php echo $item['uuid'];?>">文献管理</a> |
|
||||||
<a href="/admin/data/md/att/1/uuid/<?php echo $item['uuid'];?>">附件管理</a> |
|
<a href="/admin/data/md/att/1/uuid/<?php echo $item['uuid'];?>">附件管理</a> |
|
||||||
|
|
Loading…
Reference in New Issue