add uuid display in output action

This commit is contained in:
wlx 2012-03-19 03:30:53 +00:00
parent f8b1504174
commit bc29229463
1 changed files with 3 additions and 2 deletions

View File

@ -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"]).",";