diff --git a/application/config.ini b/application/config.ini index 9ae5925d..22ad13b1 100755 --- a/application/config.ini +++ b/application/config.ini @@ -31,7 +31,7 @@ paths.newsletter=images/newsletter/ logging.file = /var/www/test.westgis.ac.cn/data/logs/debug.log page.limit=10 import.dir=../data/import -title.site=时空三极环境大数据平台 +title.site=三江源国家公园星空地一体化生态监测及数据平台 title.data=数据产品 title.heihe=黑河计划数据管理中心 title.yrnmr=黄河上游宁蒙河段综合数据 diff --git a/application/default/controllers/DataController.php b/application/default/controllers/DataController.php index 60f337ca..ba9de17d 100755 --- a/application/default/controllers/DataController.php +++ b/application/default/controllers/DataController.php @@ -50,7 +50,7 @@ class DataController extends Zend_Controller_Action $k5=$state->fetchAll(); $this->view->keywords=array('place'=>$k1,'theme'=>$k2,'discipline'=>$k3,'stratum'=>$k4,'temporal'=>$k5); //最新10个入库数据 - $state=$this->db->query('select id,uuid,title,ts_published,description from normalmetadata order by id desc limit 8'); + $state=$this->db->query('select id,uuid,title,ts_published,description from normalmetadata order by id desc limit 4'); $this->view->metadata = $state->fetchAll(); //特色数据 diff --git a/application/default/controllers/IndexController.php b/application/default/controllers/IndexController.php index 47d29fbf..76432914 100755 --- a/application/default/controllers/IndexController.php +++ b/application/default/controllers/IndexController.php @@ -38,7 +38,7 @@ class IndexController extends Zend_Controller_Action $sql="select uuid,title,id from normalmetadata where id in (select m.id from normalmetadata m left join dataorder d on m.uuid=d.uuid group by m.id order by count(d.uuid) desc limit 8)"; $this->db->setFetchMode(Zend_Db::FETCH_OBJ); $this->view->mdtop=$this->db->fetchAll($sql); - $sql="select uuid,title,id from normalmetadata where id in (select m.id from normalmetadata m left join dataorder d on m.uuid=d.uuid group by m.id order by id desc limit 8)"; + $sql="select uuid,title,id,description from normalmetadata where id in (select m.id from normalmetadata m left join dataorder d on m.uuid=d.uuid group by m.id order by id desc limit 4)"; $this->view->offlinemdtop=$this->db->fetchAll($sql); $sql="select m.uuid,m.title,m.id,m.description from normalmetadata m left join thumbnail t on m.id=t.id where length(t.data)>2 order by random()"; $this->view->mdrandom=$this->db->fetchRow($sql); @@ -78,7 +78,7 @@ class IndexController extends Zend_Controller_Action $this->view->list_news = $rows; - $sql="select d.*,m.ts_published as publish_year from datadoi d left join metadata m on d.uuid=m.uuid where length(d.title)>1 and d.ts_published is not null order by ts_published desc limit 4"; + $sql="select d.*,m.ts_published as publish_year from datadoi d left join metadata m on d.uuid=m.uuid where length(d.title)>1 and d.ts_published is not null order by ts_published desc limit 5"; $sth = $this->db->query($sql); $this->view->dois = $sth->fetchAll(); diff --git a/application/default/views/scripts/archives/index-bak.phtml b/application/default/views/scripts/archives/index-bak.phtml new file mode 100644 index 00000000..62b13f79 --- /dev/null +++ b/application/default/views/scripts/archives/index-bak.phtml @@ -0,0 +1,102 @@ +headTitle($this->config->title->site); +$this->headTitle('新闻中心'); +$this->headTitle()->setSeparator(' - '); +$this->breadcrumb('首页'); +$this->breadcrumb('新闻中心'); +$this->breadcrumb()->setSeparator(' > '); +$this->headLink()->appendStylesheet('/static-sanji/css/new-list.css'); +?> +
+ +
+ +
+
+ 共125条记录 + 共6页 + + [1] + 2 + 3 + 4 + + 返回顶部 +
+
+ +
+
+ +
+
+
+ lists as $v) + {?> + 0) {?> +
+

+
+
    + +
  • [] +
  • + +
+
+
+ +
+
+
\ No newline at end of file diff --git a/application/default/views/scripts/archives/index.phtml b/application/default/views/scripts/archives/index.phtml index 1e593695..f844b9ef 100644 --- a/application/default/views/scripts/archives/index.phtml +++ b/application/default/views/scripts/archives/index.phtml @@ -1,102 +1,200 @@ headTitle($this->config->title->site); -$this->headTitle('新闻中心'); +$this->headTitle('新闻动态'); $this->headTitle()->setSeparator(' - '); -$this->breadcrumb('首页'); -$this->breadcrumb('新闻中心'); -$this->breadcrumb()->setSeparator(' > '); -$this->headLink()->appendStylesheet('/static-sanji/css/new-list.css'); +$this->headLink()->appendStylesheet('/static-sanjy-np/css/index.css'); +$this->headLink()->appendStylesheet('/static-sanjy-np/css/about.css') ?> -
- -
- -
-
- 共125条记录 - 共6页 - - [1] - 2 - 3 - 4 - - 返回顶部 + + -
-
-