add output action for a report
This commit is contained in:
parent
4a1fd699ac
commit
569b41972d
|
@ -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 "<br>";
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue