From 2c222af72851f736d6103ad5e22a7ad25a3e4415 Mon Sep 17 00:00:00 2001 From: wlx Date: Tue, 20 Sep 2011 08:43:48 +0000 Subject: [PATCH] =?UTF-8?q?=E5=AE=9E=E7=8E=B0=E4=BB=8E=E5=85=83=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E5=88=97=E8=A1=A8=E7=9A=84=E5=90=8C=E6=AD=A5=E5=8D=95?= =?UTF-8?q?=E6=9D=A1=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/admin/controllers/DataController.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/application/admin/controllers/DataController.php b/application/admin/controllers/DataController.php index 7521dadf..555f26aa 100755 --- a/application/admin/controllers/DataController.php +++ b/application/admin/controllers/DataController.php @@ -93,6 +93,13 @@ class Admin_DataController extends Zend_Controller_Action } elseif (!empty($uuid) && isset($_POST['watersubmit'])) { //同步单条元数据 $sql=$this->db->quoteInto("select data from watergn where uuid=?",$uuid); + if ($rs=$this->db->fetchRow($sql)) { + $this->import($rs->data); + $this->view->msg='成功同步元数据:'.$uuid; + } else $this->view->msg='不存在此元数据:'.$uuid; + } elseif (!empty($uuid)) { + //同步单条元数据 + $sql=$this->db->quoteInto("select data from geonetworkmetadata where uuid=?",$uuid); if ($rs=$this->db->fetchRow($sql)) { $this->import($rs->data); $this->view->msg='成功同步元数据:'.$uuid;