diff --git a/application/default/controllers/DataController.php b/application/default/controllers/DataController.php index 82b2ae43..2effcca5 100755 --- a/application/default/controllers/DataController.php +++ b/application/default/controllers/DataController.php @@ -1053,5 +1053,28 @@ class DataController extends Zend_Controller_Action $test->ping($arg1,$arg2); //var_dump($result); } + public function outputAction() + { + $this->_helper->layout->disableLayout(); + $this->_helper->viewRenderer->setNoRender(); + $sql="select title,datatype,filesize,id from metadata"; + $md=$this->db->fetchAll($sql); + foreach($md as $m) + { + print $m["title"].","; + print ($m["datatype"]?"内部":"公开").","; + print ($m["filesize"]==1?" ":$m["filesize"]).","; + $sql1="select keyword from keyword where id=".$m["id"]." and keytype='place'"; + $kd=$this->db->fetchAll($sql1); + foreach ($kd as $p) print $p["keyword"]." "; + print ","; + $sql1="select keyword from keyword where id=".$m["id"]." and keytype='temporal'"; + $kd=$this->db->fetchAll($sql1); + foreach ($kd as $p) print $p["keyword"]." "; + print ","; + print "
"; + } + + } }