对关键词按照插入时间进行排序(XML中的次序)

This commit is contained in:
wlx 2010-06-27 12:22:42 +00:00
parent a127980cc4
commit 26fd9aa732
1 changed files with 1 additions and 1 deletions

View File

@ -568,7 +568,7 @@ class DataController extends Zend_Controller_Action
if ($rs) $this->view->projection=$rs['proj4text']; if ($rs) $this->view->projection=$rs['proj4text'];
} }
$where=$db->quoteInto('id= ?',$id); $where=$db->quoteInto('id= ?',$id);
$order='keytype'; $order='keytype,ts_created desc';
$keyt=new KeywordTable(); $keyt=new KeywordTable();
$this->view->keys=$keyt->fetchAll($where,$order); $this->view->keys=$keyt->fetchAll($where,$order);
$sql='select c.code,cc.name,cc.name_zh from category c,categorycode cc where c.code=cc.code and c.id= ?'; $sql='select c.code,cc.name,cc.name_zh from category c,categorycode cc where c.code=cc.code and c.id= ?';