diff --git a/module/Metadata/src/Metadata/Controller/IndexController.php b/module/Metadata/src/Metadata/Controller/IndexController.php index ed4800b1..c8dd5d0a 100644 --- a/module/Metadata/src/Metadata/Controller/IndexController.php +++ b/module/Metadata/src/Metadata/Controller/IndexController.php @@ -116,6 +116,8 @@ class IndexController extends AbstractActionController $metadata->opt->order = "m.ts_created"; if($order == "title") $metadata->opt->order = "m.title"; + if($order == "viewed") + $metadata->opt->order = "m.viewedcount"; } if(!empty($sort)) @@ -135,6 +137,7 @@ class IndexController extends AbstractActionController $metadata->opt->where = array(" ol.host='http://www.sanjiangyuan.org.cn' "); } + view::addPaginator($metadata->fetchAll(),$this,10,'layout/metadata/pagination/browse'); return $this->ViewModel; diff --git a/module/Metadata/view/metadata/index/datalist.phtml b/module/Metadata/view/metadata/index/datalist.phtml index a6d48870..a3c0b464 100644 --- a/module/Metadata/view/metadata/index/datalist.phtml +++ b/module/Metadata/view/metadata/index/datalist.phtml @@ -3,6 +3,7 @@ if (!empty($this->codename)) $this->headTitle($this->codename); $theme = new \Sookon\Helpers\Theme; $theme->AppendPlus($this,'colorbox'); ?> +
partial('layout/metadata/subnav'); ?> @@ -13,21 +14,28 @@ $theme->AppendPlus($this,'colorbox'); paginator)) : ?>
paginator; ?> -
- paginator as $md) : ?> -
-
- - - -
-
-

-

400? mb_substr($md['description'],0,400,'UTF-8').'...':$md['description'];?>

+
+ + paginator as $md) : ?> +
+ +
+ + + +
+ +
+

+

400? mb_substr($md['description'],0,400,'UTF-8').'...':$md['description'];?>

+

UUID: ,

+

查阅数: ,

+ +
-
- + +
paginator; ?> @@ -37,4 +45,4 @@ $(document).ready(function(){ $(".colorbox").colorbox({rel:"colorbox",photo:"true",transition:"fade"}); $(".colorbox").colorbox({photo:"true"}); }); - + \ No newline at end of file diff --git a/module/Metadata/view/metadata/index/pages-navigation.phtml b/module/Metadata/view/metadata/index/pages-navigation.phtml index 20b9b877..f1e86a11 100644 --- a/module/Metadata/view/metadata/index/pages-navigation.phtml +++ b/module/Metadata/view/metadata/index/pages-navigation.phtml @@ -4,8 +4,20 @@ 全部浏览 在线数据清单 离线数据清单 -青海湖数据 -三江源数据 +青海湖数据 +三江源数据 +
+ + +
keyword)){?> keyword ?> 的搜索结果 \ No newline at end of file