From bc29229463651aa46432f45430f094c44437bade Mon Sep 17 00:00:00 2001 From: wlx Date: Mon, 19 Mar 2012 03:30:53 +0000 Subject: [PATCH] add uuid display in output action --- application/default/controllers/ServiceController.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/application/default/controllers/ServiceController.php b/application/default/controllers/ServiceController.php index 3372173b..c2bf6698 100644 --- a/application/default/controllers/ServiceController.php +++ b/application/default/controllers/ServiceController.php @@ -235,10 +235,11 @@ class ServiceController extends Zend_Controller_Action { $this->_helper->layout->disableLayout(); $this->_helper->viewRenderer->setNoRender(); - $sql="select title,datatype,filesize,id from normalmetadata"; + $sql="select uuid,title,datatype,filesize,id from normalmetadata"; $md=$this->db->fetchAll($sql); foreach($md as $m) - { + { + print $m["uuid"].","; print $m["title"].","; print ($m["datatype"]?"内部":"公开").","; print ($m["filesize"]==1?" ":$m["filesize"]).",";