From ef303cd08a27bd4fb11ff3cecba06f8d3fc49230 Mon Sep 17 00:00:00 2001 From: wlx Date: Tue, 27 May 2014 07:14:05 +0000 Subject: [PATCH] remove unused file --- .../controllers/CommunityController.php | 13 - .../default/controllers/GlacierController.php | 392 ----- .../default/controllers/HaiheController.php | 85 -- .../default/controllers/HeiheController.php | 1275 ----------------- .../default/controllers/HiwaterController.php | 685 --------- .../controllers/MetainfoController.php | 118 -- .../controllers/NetkitesController.php | 27 - .../default/controllers/QzrController.php | 1100 -------------- .../default/controllers/WaterController.php | 346 ----- .../default/controllers/YrnmrController.php | 318 ---- .../views/scripts/community/index.phtml | 48 - .../default/views/scripts/glacier/base.phtml | 30 - .../views/scripts/glacier/browse.phtml | 30 - .../default/views/scripts/glacier/dem.phtml | 34 - .../views/scripts/glacier/document.phtml | 68 - .../default/views/scripts/glacier/index.phtml | 22 - .../default/views/scripts/glacier/list.phtml | 42 - .../default/views/scripts/glacier/navi.phtml | 119 -- .../views/scripts/glacier/search.phtml | 42 - .../default/views/scripts/glacier/tag.phtml | 56 - .../default/views/scripts/glacier/thumb.phtml | 51 - .../views/scripts/glacier/timeline.phtml | 25 - .../views/scripts/glacier/timemap.phtml | 116 -- .../default/views/scripts/glacier/view.phtml | 554 ------- .../views/scripts/glacier_header.phtml | 33 - .../default/views/scripts/haihe/base.phtml | 30 - .../views/scripts/haihe/document.phtml | 51 - .../default/views/scripts/haihe/index.phtml | 22 - .../default/views/scripts/haihe/navi.phtml | 38 - .../default/views/scripts/haihe/view.phtml | 578 -------- .../default/views/scripts/heihe/author.phtml | 71 - .../default/views/scripts/heihe/base.phtml | 28 - .../default/views/scripts/heihe/browse.phtml | 32 - .../views/scripts/heihe/category.phtml | 50 - .../views/scripts/heihe/document.phtml | 52 - .../default/views/scripts/heihe/doi.phtml | 60 - .../views/scripts/heihe/fund-list.phtml | 26 - .../default/views/scripts/heihe/fund.phtml | 43 - .../default/views/scripts/heihe/index.phtml | 53 - .../default/views/scripts/heihe/list.phtml | 41 - .../default/views/scripts/heihe/navi.phtml | 59 - .../views/scripts/heihe/offlinelist.phtml | 34 - .../views/scripts/heihe/onlinelist.phtml | 34 - .../default/views/scripts/heihe/org.phtml | 50 - .../views/scripts/heihe/project-index.phtml | 89 -- .../views/scripts/heihe/project-invite.phtml | 30 - .../views/scripts/heihe/project-upload.phtml | 46 - .../default/views/scripts/heihe/search.phtml | 41 - .../scripts/heihe/submit-newdata-add.phtml | 65 - .../views/scripts/heihe/submit-newdata.phtml | 67 - .../views/scripts/heihe/submit-unsubmit.phtml | 140 -- .../default/views/scripts/heihe/tag.phtml | 55 - .../default/views/scripts/heihe/thumb.phtml | 54 - .../views/scripts/heihe/timeline.phtml | 25 - .../default/views/scripts/heihe/timemap.phtml | 115 -- .../default/views/scripts/heihe/view.phtml | 557 ------- .../default/views/scripts/heihe_header.phtml | 49 - .../views/scripts/hiwater/author.phtml | 71 - .../default/views/scripts/hiwater/base.phtml | 30 - .../views/scripts/hiwater/browse.phtml | 27 - .../views/scripts/hiwater/category.phtml | 50 - .../views/scripts/hiwater/document.phtml | 49 - .../views/scripts/hiwater/fund-list.phtml | 26 - .../default/views/scripts/hiwater/fund.phtml | 43 - .../default/views/scripts/hiwater/index.phtml | 21 - .../default/views/scripts/hiwater/list.phtml | 41 - .../default/views/scripts/hiwater/navi.phtml | 225 --- .../views/scripts/hiwater/organization.phtml | 50 - .../views/scripts/hiwater/search.phtml | 37 - .../default/views/scripts/hiwater/tag.phtml | 55 - .../default/views/scripts/hiwater/thumb.phtml | 48 - .../views/scripts/hiwater/timeline.phtml | 71 - .../views/scripts/hiwater/timemap.phtml | 110 -- .../default/views/scripts/hiwater/view.phtml | 557 ------- .../views/scripts/hiwater_header.phtml | 34 - .../views/scripts/metainfo/index.phtml | 14 - .../views/scripts/netkites/apply.phtml | 53 - .../views/scripts/netkites/driver.phtml | 42 - .../default/views/scripts/netkites/faq.phtml | 55 - .../views/scripts/netkites/index.phtml | 32 - .../views/scripts/netkites/resource.phtml | 26 - .../default/views/scripts/netkites/use.phtml | 97 -- .../views/scripts/water/advancesearch.phtml | 110 -- .../views/scripts/water/airebone.phtml | 33 - .../views/scripts/water/airsounding.phtml | 31 - .../default/views/scripts/water/ar.phtml | 31 - .../default/views/scripts/water/arid.phtml | 40 - .../default/views/scripts/water/asd.phtml | 32 - .../views/scripts/water/autometeo.phtml | 31 - .../default/views/scripts/water/bdk.phtml | 32 - .../default/views/scripts/water/bg.phtml | 31 - .../default/views/scripts/water/browse.phtml | 28 - .../views/scripts/water/category.phtml | 41 - .../default/views/scripts/water/cold.phtml | 65 - .../views/scripts/water/datasetcd.phtml | 35 - .../default/views/scripts/water/detail.phtml | 14 - .../views/scripts/water/document.phtml | 60 - .../default/views/scripts/water/doppler.phtml | 36 - .../views/scripts/water/download.phtml | 53 - .../default/views/scripts/water/dyk.phtml | 31 - .../default/views/scripts/water/eb.phtml | 32 - .../default/views/scripts/water/ec.phtml | 35 - .../default/views/scripts/water/feature.phtml | 20 - .../default/views/scripts/water/forest.phtml | 49 - .../default/views/scripts/water/hydro.phtml | 31 - .../default/views/scripts/water/hzz.phtml | 32 - .../default/views/scripts/water/index.phtml | 87 -- .../default/views/scripts/water/las.phtml | 31 - .../default/views/scripts/water/lidar.phtml | 32 - .../default/views/scripts/water/lzg.phtml | 32 - .../default/views/scripts/water/lzs.phtml | 32 - .../default/views/scripts/water/map.phtml | 83 -- .../default/views/scripts/water/meteo.phtml | 33 - .../views/scripts/water/mobilemeteo.phtml | 31 - .../default/views/scripts/water/navi.phtml | 129 -- .../views/scripts/water/newsletter.phtml | 43 - .../views/scripts/water/normalmeteo.phtml | 33 - .../views/scripts/water/offlineapp.phtml | 30 - .../views/scripts/water/offlinelist.phtml | 25 - .../views/scripts/water/onlinelist.phtml | 25 - .../default/views/scripts/water/order.phtml | 90 -- .../views/scripts/water/overview.phtml | 36 - .../default/views/scripts/water/pdf.phtml | 36 - .../default/views/scripts/water/plg.phtml | 31 - .../views/scripts/water/radiometer.phtml | 32 - .../views/scripts/water/regionalmeteo.phtml | 32 - .../default/views/scripts/water/request.phtml | 58 - .../views/scripts/water/satellite.phtml | 33 - .../default/views/scripts/water/search.phtml | 57 - .../default/views/scripts/water/series.phtml | 49 - .../default/views/scripts/water/service.phtml | 31 - .../default/views/scripts/water/submit.phtml | 33 - .../views/scripts/water/surveystd.phtml | 50 - .../default/views/scripts/water/tag.phtml | 65 - .../views/scripts/water/timeline.phtml | 16 - .../default/views/scripts/water/timemap.phtml | 106 -- .../default/views/scripts/water/tools.phtml | 11 - .../default/views/scripts/water/view.phtml | 534 ------- .../default/views/scripts/water/westee.phtml | 34 - .../default/views/scripts/water/widas.phtml | 32 - .../default/views/scripts/water/yk.phtml | 32 - .../default/views/scripts/water/zy.phtml | 32 - .../default/views/scripts/water/zynoc.phtml | 32 - .../default/views/scripts/yrnmr/base.phtml | 37 - .../default/views/scripts/yrnmr/browse.phtml | 30 - .../views/scripts/yrnmr/category.phtml | 43 - .../default/views/scripts/yrnmr/core.phtml | 32 - .../default/views/scripts/yrnmr/dem.phtml | 33 - .../views/scripts/yrnmr/document.phtml | 54 - .../views/scripts/yrnmr/economic.phtml | 34 - .../default/views/scripts/yrnmr/exp.phtml | 34 - .../default/views/scripts/yrnmr/geobase.phtml | 31 - .../default/views/scripts/yrnmr/index.phtml | 57 - .../views/scripts/yrnmr/landsurface.phtml | 32 - .../default/views/scripts/yrnmr/landuse.phtml | 32 - .../default/views/scripts/yrnmr/list.phtml | 40 - .../default/views/scripts/yrnmr/meteo.phtml | 34 - .../default/views/scripts/yrnmr/model.phtml | 34 - .../default/views/scripts/yrnmr/navi.phtml | 49 - .../default/views/scripts/yrnmr/obs.phtml | 34 - .../default/views/scripts/yrnmr/rs.phtml | 31 - .../default/views/scripts/yrnmr/search.phtml | 39 - .../default/views/scripts/yrnmr/soil.phtml | 34 - .../default/views/scripts/yrnmr/tag.phtml | 53 - .../default/views/scripts/yrnmr/thumb.phtml | 40 - .../views/scripts/yrnmr/timeline.phtml | 23 - .../default/views/scripts/yrnmr/timemap.phtml | 93 -- .../default/views/scripts/yrnmr/view.phtml | 490 ------- .../default/views/scripts/yrnmr/water.phtml | 34 - .../default/views/scripts/yrnmr_header.phtml | 34 - 170 files changed, 14730 deletions(-) delete mode 100755 application/default/controllers/CommunityController.php delete mode 100644 application/default/controllers/GlacierController.php delete mode 100644 application/default/controllers/HaiheController.php delete mode 100644 application/default/controllers/HeiheController.php delete mode 100644 application/default/controllers/HiwaterController.php delete mode 100644 application/default/controllers/MetainfoController.php delete mode 100755 application/default/controllers/NetkitesController.php delete mode 100644 application/default/controllers/QzrController.php delete mode 100644 application/default/controllers/WaterController.php delete mode 100644 application/default/controllers/YrnmrController.php delete mode 100755 application/default/views/scripts/community/index.phtml delete mode 100644 application/default/views/scripts/glacier/base.phtml delete mode 100755 application/default/views/scripts/glacier/browse.phtml delete mode 100644 application/default/views/scripts/glacier/dem.phtml delete mode 100644 application/default/views/scripts/glacier/document.phtml delete mode 100755 application/default/views/scripts/glacier/index.phtml delete mode 100644 application/default/views/scripts/glacier/list.phtml delete mode 100644 application/default/views/scripts/glacier/navi.phtml delete mode 100644 application/default/views/scripts/glacier/search.phtml delete mode 100755 application/default/views/scripts/glacier/tag.phtml delete mode 100644 application/default/views/scripts/glacier/thumb.phtml delete mode 100755 application/default/views/scripts/glacier/timeline.phtml delete mode 100644 application/default/views/scripts/glacier/timemap.phtml delete mode 100755 application/default/views/scripts/glacier/view.phtml delete mode 100644 application/default/views/scripts/glacier_header.phtml delete mode 100644 application/default/views/scripts/haihe/base.phtml delete mode 100644 application/default/views/scripts/haihe/document.phtml delete mode 100644 application/default/views/scripts/haihe/index.phtml delete mode 100644 application/default/views/scripts/haihe/navi.phtml delete mode 100755 application/default/views/scripts/haihe/view.phtml delete mode 100644 application/default/views/scripts/heihe/author.phtml delete mode 100644 application/default/views/scripts/heihe/base.phtml delete mode 100755 application/default/views/scripts/heihe/browse.phtml delete mode 100755 application/default/views/scripts/heihe/category.phtml delete mode 100644 application/default/views/scripts/heihe/document.phtml delete mode 100644 application/default/views/scripts/heihe/doi.phtml delete mode 100644 application/default/views/scripts/heihe/fund-list.phtml delete mode 100644 application/default/views/scripts/heihe/fund.phtml delete mode 100755 application/default/views/scripts/heihe/index.phtml delete mode 100644 application/default/views/scripts/heihe/list.phtml delete mode 100644 application/default/views/scripts/heihe/navi.phtml delete mode 100755 application/default/views/scripts/heihe/offlinelist.phtml delete mode 100755 application/default/views/scripts/heihe/onlinelist.phtml delete mode 100644 application/default/views/scripts/heihe/org.phtml delete mode 100644 application/default/views/scripts/heihe/project-index.phtml delete mode 100644 application/default/views/scripts/heihe/project-invite.phtml delete mode 100644 application/default/views/scripts/heihe/project-upload.phtml delete mode 100644 application/default/views/scripts/heihe/search.phtml delete mode 100644 application/default/views/scripts/heihe/submit-newdata-add.phtml delete mode 100644 application/default/views/scripts/heihe/submit-newdata.phtml delete mode 100644 application/default/views/scripts/heihe/submit-unsubmit.phtml delete mode 100755 application/default/views/scripts/heihe/tag.phtml delete mode 100644 application/default/views/scripts/heihe/thumb.phtml delete mode 100755 application/default/views/scripts/heihe/timeline.phtml delete mode 100644 application/default/views/scripts/heihe/timemap.phtml delete mode 100755 application/default/views/scripts/heihe/view.phtml delete mode 100644 application/default/views/scripts/heihe_header.phtml delete mode 100644 application/default/views/scripts/hiwater/author.phtml delete mode 100644 application/default/views/scripts/hiwater/base.phtml delete mode 100644 application/default/views/scripts/hiwater/browse.phtml delete mode 100644 application/default/views/scripts/hiwater/category.phtml delete mode 100644 application/default/views/scripts/hiwater/document.phtml delete mode 100644 application/default/views/scripts/hiwater/fund-list.phtml delete mode 100644 application/default/views/scripts/hiwater/fund.phtml delete mode 100644 application/default/views/scripts/hiwater/index.phtml delete mode 100644 application/default/views/scripts/hiwater/list.phtml delete mode 100644 application/default/views/scripts/hiwater/navi.phtml delete mode 100644 application/default/views/scripts/hiwater/organization.phtml delete mode 100644 application/default/views/scripts/hiwater/search.phtml delete mode 100644 application/default/views/scripts/hiwater/tag.phtml delete mode 100644 application/default/views/scripts/hiwater/thumb.phtml delete mode 100644 application/default/views/scripts/hiwater/timeline.phtml delete mode 100644 application/default/views/scripts/hiwater/timemap.phtml delete mode 100644 application/default/views/scripts/hiwater/view.phtml delete mode 100644 application/default/views/scripts/hiwater_header.phtml delete mode 100644 application/default/views/scripts/metainfo/index.phtml delete mode 100755 application/default/views/scripts/netkites/apply.phtml delete mode 100755 application/default/views/scripts/netkites/driver.phtml delete mode 100755 application/default/views/scripts/netkites/faq.phtml delete mode 100755 application/default/views/scripts/netkites/index.phtml delete mode 100755 application/default/views/scripts/netkites/resource.phtml delete mode 100755 application/default/views/scripts/netkites/use.phtml delete mode 100644 application/default/views/scripts/water/advancesearch.phtml delete mode 100644 application/default/views/scripts/water/airebone.phtml delete mode 100644 application/default/views/scripts/water/airsounding.phtml delete mode 100644 application/default/views/scripts/water/ar.phtml delete mode 100644 application/default/views/scripts/water/arid.phtml delete mode 100644 application/default/views/scripts/water/asd.phtml delete mode 100644 application/default/views/scripts/water/autometeo.phtml delete mode 100644 application/default/views/scripts/water/bdk.phtml delete mode 100644 application/default/views/scripts/water/bg.phtml delete mode 100755 application/default/views/scripts/water/browse.phtml delete mode 100755 application/default/views/scripts/water/category.phtml delete mode 100644 application/default/views/scripts/water/cold.phtml delete mode 100755 application/default/views/scripts/water/datasetcd.phtml delete mode 100644 application/default/views/scripts/water/detail.phtml delete mode 100644 application/default/views/scripts/water/document.phtml delete mode 100644 application/default/views/scripts/water/doppler.phtml delete mode 100644 application/default/views/scripts/water/download.phtml delete mode 100644 application/default/views/scripts/water/dyk.phtml delete mode 100644 application/default/views/scripts/water/eb.phtml delete mode 100644 application/default/views/scripts/water/ec.phtml delete mode 100644 application/default/views/scripts/water/feature.phtml delete mode 100644 application/default/views/scripts/water/forest.phtml delete mode 100644 application/default/views/scripts/water/hydro.phtml delete mode 100644 application/default/views/scripts/water/hzz.phtml delete mode 100755 application/default/views/scripts/water/index.phtml delete mode 100644 application/default/views/scripts/water/las.phtml delete mode 100644 application/default/views/scripts/water/lidar.phtml delete mode 100644 application/default/views/scripts/water/lzg.phtml delete mode 100644 application/default/views/scripts/water/lzs.phtml delete mode 100755 application/default/views/scripts/water/map.phtml delete mode 100644 application/default/views/scripts/water/meteo.phtml delete mode 100644 application/default/views/scripts/water/mobilemeteo.phtml delete mode 100644 application/default/views/scripts/water/navi.phtml delete mode 100755 application/default/views/scripts/water/newsletter.phtml delete mode 100644 application/default/views/scripts/water/normalmeteo.phtml delete mode 100644 application/default/views/scripts/water/offlineapp.phtml delete mode 100755 application/default/views/scripts/water/offlinelist.phtml delete mode 100755 application/default/views/scripts/water/onlinelist.phtml delete mode 100644 application/default/views/scripts/water/order.phtml delete mode 100644 application/default/views/scripts/water/overview.phtml delete mode 100644 application/default/views/scripts/water/pdf.phtml delete mode 100644 application/default/views/scripts/water/plg.phtml delete mode 100644 application/default/views/scripts/water/radiometer.phtml delete mode 100644 application/default/views/scripts/water/regionalmeteo.phtml delete mode 100755 application/default/views/scripts/water/request.phtml delete mode 100644 application/default/views/scripts/water/satellite.phtml delete mode 100755 application/default/views/scripts/water/search.phtml delete mode 100755 application/default/views/scripts/water/series.phtml delete mode 100755 application/default/views/scripts/water/service.phtml delete mode 100755 application/default/views/scripts/water/submit.phtml delete mode 100644 application/default/views/scripts/water/surveystd.phtml delete mode 100755 application/default/views/scripts/water/tag.phtml delete mode 100755 application/default/views/scripts/water/timeline.phtml delete mode 100644 application/default/views/scripts/water/timemap.phtml delete mode 100755 application/default/views/scripts/water/tools.phtml delete mode 100755 application/default/views/scripts/water/view.phtml delete mode 100644 application/default/views/scripts/water/westee.phtml delete mode 100644 application/default/views/scripts/water/widas.phtml delete mode 100644 application/default/views/scripts/water/yk.phtml delete mode 100644 application/default/views/scripts/water/zy.phtml delete mode 100644 application/default/views/scripts/water/zynoc.phtml delete mode 100644 application/default/views/scripts/yrnmr/base.phtml delete mode 100755 application/default/views/scripts/yrnmr/browse.phtml delete mode 100755 application/default/views/scripts/yrnmr/category.phtml delete mode 100644 application/default/views/scripts/yrnmr/core.phtml delete mode 100644 application/default/views/scripts/yrnmr/dem.phtml delete mode 100644 application/default/views/scripts/yrnmr/document.phtml delete mode 100644 application/default/views/scripts/yrnmr/economic.phtml delete mode 100644 application/default/views/scripts/yrnmr/exp.phtml delete mode 100644 application/default/views/scripts/yrnmr/geobase.phtml delete mode 100755 application/default/views/scripts/yrnmr/index.phtml delete mode 100644 application/default/views/scripts/yrnmr/landsurface.phtml delete mode 100644 application/default/views/scripts/yrnmr/landuse.phtml delete mode 100644 application/default/views/scripts/yrnmr/list.phtml delete mode 100644 application/default/views/scripts/yrnmr/meteo.phtml delete mode 100644 application/default/views/scripts/yrnmr/model.phtml delete mode 100644 application/default/views/scripts/yrnmr/navi.phtml delete mode 100644 application/default/views/scripts/yrnmr/obs.phtml delete mode 100644 application/default/views/scripts/yrnmr/rs.phtml delete mode 100644 application/default/views/scripts/yrnmr/search.phtml delete mode 100644 application/default/views/scripts/yrnmr/soil.phtml delete mode 100755 application/default/views/scripts/yrnmr/tag.phtml delete mode 100644 application/default/views/scripts/yrnmr/thumb.phtml delete mode 100755 application/default/views/scripts/yrnmr/timeline.phtml delete mode 100644 application/default/views/scripts/yrnmr/timemap.phtml delete mode 100755 application/default/views/scripts/yrnmr/view.phtml delete mode 100644 application/default/views/scripts/yrnmr/water.phtml delete mode 100644 application/default/views/scripts/yrnmr_header.phtml diff --git a/application/default/controllers/CommunityController.php b/application/default/controllers/CommunityController.php deleted file mode 100755 index a0f29d0e..00000000 --- a/application/default/controllers/CommunityController.php +++ /dev/null @@ -1,13 +0,0 @@ -_redirect('/metadata'); - } - function preDispatch() - { - $this->view->config = Zend_Registry::get('config'); - } -} \ No newline at end of file diff --git a/application/default/controllers/GlacierController.php b/application/default/controllers/GlacierController.php deleted file mode 100644 index 0d36abc4..00000000 --- a/application/default/controllers/GlacierController.php +++ /dev/null @@ -1,392 +0,0 @@ -_helper->layout->setLayout('glacier'); - $acName = $this->_request->getActionName(); - if(in_array($acName,array("rs","dem"))) - { - $this->view->pageIn = "collapse1"; - } - if(in_array($acName,array("glacier","lake"))) - { - $this->view->pageIn = "collapse2"; - } - if(in_array($acName,array("meteo","hydro","gps",'lidar','material','movement','physical','photogrammetry','frozensoil','vegetation','quatemary'))) - { - $this->view->pageIn = "collapse3"; - } - $this->view->pageID = "glacier-".$acName; - } - - function indexAction() - { - $archive = new Archive($this->db); - $this->view->info = $archive->getOneArchive('中国冰川资源及其变化调查-项目简介','about'); - } - - /* - * 数据浏览 - */ - function browseAction() - { - $page=(int)$this->_request->getParam('page'); - if (empty($page)) $page=1; - $offset=$this->limit*($page-1); - $state=$this->db->query("select count(*) from normalmetadata where uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='glacier') "); - $row=$state->fetchAll(); - $sum=$row[0]['count']; - $select=$this->db->select(); - $select->from('normalmetadata','*')->where(" uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='glacier') ")->order('title desc')->limitPage($page,$this->limit); - $this->view->metadata = $this->db->fetchAll($select); - $this->view->page=new Pagination($sum,$page,$this->limit); - $this->view->offset=$offset+1; - } - - function thumbAction() - { - $page=(int)$this->_request->getParam('page'); - if (empty($page)) $page=1; - $offset=$this->limit*($page-1); - $state=$this->db->query("select count(*) from normalmetadata where uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='glacier') "); - $row=$state->fetchAll(); - $sum=$row[0]['count']; - $select=$this->db->select(); - $select->from('normalmetadata as m','m.*') - ->where(" uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='glacier') ") - ->order('m.title desc')->limitPage($page,$this->limit); - $this->view->metadata = $this->db->fetchAll($select); - $this->view->page=new Pagination($sum,$page,$this->limit); - } - - function documentAction() - { - $page=(int)$this->_request->getParam('page'); - if (empty($page)) $page=1; - $offset=$this->limit*($page-1); - $row=$this->db->fetchAll("select count(*) from reference where id in (select refid from mdref where uuid in (select uuid from normalmetadata where uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='glacier') ))"); - $sum=$row[0]['count']; - $sql="select * from reference where id in (select refid from mdref where uuid in (select uuid from normalmetadata where uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='glacier') )) order by reference limit ? offset ?"; - $this->view->refs=$this->db->fetchAll($sql,array($this->limit,$offset)); - $this->view->page=new Pagination($sum,$page,$this->limit,"文献"); - $this->view->offset=$offset+1; - } - - function geobaseAction() - { - $archive = new Archive($this->db); - $this->view->info = $archive->getOneArchive('中国冰川资源及其变化调查-基础数据','about'); - $this->getmd(array('遥感影像','DEM')); - $this->_helper->viewRenderer('base'); - } - - function demAction() - { - $this->getmd('DEM'); - $archive = new Archive($this->db); - $this->view->info = $archive->getOneArchive('中国冰川资源及其变化调查-DEM','about'); - $this->_helper->viewRenderer('base'); - } - - function rsAction() - { - $this->getmd('遥感影像'); - $archive = new Archive($this->db); - $this->view->info = $archive->getOneArchive('中国冰川资源及其变化调查-遥感影像','about'); - $this->_helper->viewRenderer('base'); - } - - function inventoryAction() - { - $this->getmd(array('冰川编目','冰湖编目')); - $archive = new Archive($this->db); - $this->view->info = $archive->getOneArchive('中国冰川资源及其变化调查-冰川冰湖编目','about'); - $this->_helper->viewRenderer('base'); - } - - function glacierAction() - { - $this->getmd('冰川编目'); - $archive = new Archive($this->db); - $this->view->info = $archive->getOneArchive('中国冰川资源及其变化调查-冰川编目','about'); - $this->_helper->viewRenderer('base'); - } - - function lakeAction() - { - $this->getmd('冰湖编目'); - $archive = new Archive($this->db); - $this->view->info = $archive->getOneArchive('中国冰川资源及其变化调查-冰湖编目','about'); - $this->_helper->viewRenderer('base'); - } - - function fieldAction() - { - $this->getmd(array('水文','流量','水质','同位素','径流','水位','气象','雨量','GPS', - '雷达','雷达测厚','冰川厚度','物质平衡','花杆','运动速度','花杆消融观测','冰舌', - '冰雪物理过程','冰温','摄影测量','照片','第四纪','冻土','植被')); - $archive = new Archive($this->db); - $this->view->info = $archive->getOneArchive('中国冰川资源及其变化调查-野外考察与定位观测','about'); - $this->_helper->viewRenderer('base'); - } - - function meteoAction() - { - $this->getmd(array('气象','雨量')); - $archive = new Archive($this->db); - $this->view->info = $archive->getOneArchive('中国冰川资源及其变化调查-气象','about'); - $this->_helper->viewRenderer('base'); - } - - function hydroAction() - { - $this->getmd(array('水文','流量','水质','同位素','径流','水位')); - $archive = new Archive($this->db); - $this->view->info = $archive->getOneArchive('中国冰川资源及其变化调查-水文','about'); - $this->_helper->viewRenderer('base'); - } - - function gpsAction() - { - $this->getmd('GPS','theme'); - $archive = new Archive($this->db); - $this->view->info = $archive->getOneArchive('中国冰川资源及其变化调查-GPS','about'); - $this->_helper->viewRenderer('base'); - } - - function lidarAction() - { - $this->getmd(array('雷达','雷达测厚','冰川厚度')); - $archive = new Archive($this->db); - $this->view->info = $archive->getOneArchive('中国冰川资源及其变化调查-雷达测厚','about'); - $this->_helper->viewRenderer('base'); - } - - function materialAction() - { - $this->getmd(array('物质平衡','花杆')); - $archive = new Archive($this->db); - $this->view->info = $archive->getOneArchive('中国冰川资源及其变化调查-物质平衡','about'); - $this->_helper->viewRenderer('base'); - } - - function movementAction() - { - $this->getmd(array('运动速度','花杆消融观测','冰舌')); - $archive = new Archive($this->db); - $this->view->info = $archive->getOneArchive('中国冰川资源及其变化调查-冰川运动','about'); - $this->_helper->viewRenderer('base'); - } - - function physicalAction() - { - $this->getmd(array('冰雪物理过程','冰温')); - $archive = new Archive($this->db); - $this->view->info = $archive->getOneArchive('中国冰川资源及其变化调查-冰雪物理过程','about'); - $this->_helper->viewRenderer('base'); - } - - function photogrammetryAction() - { - $this->getmd(array('摄影测量','照片')); - $archive = new Archive($this->db); - $this->view->info = $archive->getOneArchive('中国冰川资源及其变化调查-近景摄影测量','about'); - $this->_helper->viewRenderer('base'); - } - - function vegetationAction() - { - $this->getmd('植被'); - $archive = new Archive($this->db); - $this->view->info = $archive->getOneArchive('中国冰川资源及其变化调查-植被调查','about'); - $this->_helper->viewRenderer('base'); - } - - function frozensoilAction() - { - $this->getmd('冻土'); - $archive = new Archive($this->db); - $this->view->info = $archive->getOneArchive('中国冰川资源及其变化调查-冻土调查','about'); - $this->_helper->viewRenderer('base'); - } - - function quatemaryAction() - { - $this->getmd('第四纪'); - $archive = new Archive($this->db); - $this->view->info = $archive->getOneArchive('中国冰川资源及其变化调查-第四纪','about'); - $this->_helper->viewRenderer('base'); - } - - function listAction() - { - $sql="select uuid,title from normalmetadata where uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='glacier') order by timebegin,title"; - $this->view->metadata=$this->db->fetchAll($sql); - } - - function tagAction() - { - $key = $this->_request->getParam('key'); - $keytype = $this->_request->getParam('keytype'); - $page=(int)$this->_request->getParam('page'); - if (empty($page)) $page=1; - $offset=$this->limit*($page-1); - if (!empty($key)) { - $this->view->codename=$key; - $sql=$this->db->quoteInto("select count(k.id) from keyword k left join normalmetadata m on k.id=m.id where m.uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='glaicer') and k.keyword=?",$key); - $state=$this->db->query($sql); - $row=$state->fetchAll(); - $sum=$row[0]['count']; - $sql="select uuid,title,id,description from normalmetadata where uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='glacier') and id in (select id from keyword where keyword='".$key."') order by timebegin,title limit ? offset ?"; - $this->view->metadata=$this->db->fetchAll($sql,array($this->limit,$offset)); - $this->view->page=new Pagination($sum,$page,$this->limit); - } else { - $sql="select k.keyword,count(*),k.keytype from keyword k left join normalmetadata m on k.id=m.id where length(k.keyword)>0 and m.uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='glacier') "; - if (!empty($keytype) && ($keytype=='place' || $keytype=='theme' || $keytype=='discipline'||$keytype=='temporal')) $sql.=" and k.keytype='".$keytype."'"; - $sql.=' group by k.keyword,k.keytype order by k.keytype,k.keyword,count desc'; - $state=$this->db->query($sql); - $this->view->keytype=$keytype; - $this->view->keywords=$state->fetchAll(); - } - } - - function searchAction() - { - $this->view->addHelperPath('helper','Zend_View_Helper_'); - $form=new SearchForm(); - $this->view->form=$form; - //$form->submit->setLabel('快速搜索'); - $key=$this->_request->getParam('q'); - if (!empty($key)) { - $search=new Search($key); - $where=$search->sql_expr(array("title","description")); - $page=@(int)$this->_request->getParam('page'); - if (empty($page)) $page=1; - $offset=$this->limit*($page-1); - $row=$this->db->fetchAll("select count(*) from normalmetadata where uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='glacier') and ".$where); - $sum=$row[0]['count']; - $sql="select uuid,title,id,description from normalmetadata where uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='glacier') and ".$where." order by timebegin,title limit ? offset ?"; - $this->view->metadata=$this->db->fetchAll($sql,array($this->limit,$offset)); - $this->view->page=new Pagination($sum,$page,$this->limit); - $this->view->key=$key; - $this->view->offset=$offset+1; - } - } - - function timemapAction() - { - $sql="select id,uuid,west,south,north,east,title,timebegin,timeend from normalmetadata where uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='glacier') and timebegin is not null"; - $this->view->rows=$this->db->fetchAll($sql); - } - - function timelineAction() - { - $fn="glaciertime.xml"; - $rows=$this->db->fetchAll("select ts_created from normalmetadata where uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='glacier') order by ts_created desc limit 1"); - $last_update=strtotime($rows[0]['ts_created']); - if (!file_exists($fn) || (filemtime($fn)<$last_update)) - { - $dateformat="M j Y"; - $rows=$this->db->fetchAll("select id,uuid,description,title,timebegin,timeend from normalmetadata where uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='glacier') and timebegin is not null order by timebegin,title"); - $timexml=''; - foreach($rows as $row) { - $timexml.=''; - $desc_length=mb_strlen($row['description'],"UTF-8"); - $desc=mb_substr($row['description'],0,($desc_length>300)?300:$desc_length,"UTF-8"); - if ($desc_length>300) $desc.=" ..."; - $timexml.=htmlspecialchars($desc); - $timexml.="\n"; - } - $timexml.=''; - $fp=fopen($fn,'w'); - fwrite($fp,$timexml); - fclose($fp); - } - } - - function categoryAction() - { - $code = (int)$this->_request->getParam('code'); - $page=(int)$this->_request->getParam('page'); - if (empty($page)) $page=1; - $offset=$this->limit*($page-1); - $this->view->category=$this->db->fetchAll("select c.code,name,name_zh,count(*) from category c left join normalmetadata m on c.id=m.id,categorycode cc where c.code=cc.code and m.uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='glacier') group by c.code,cc.name,cc.name_zh"); - if ($code>0 && $code<20) { - $row=$this->db->fetchAll("select count(*) from normalmetadata where uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='glacier') and id in (select id from category where code=".$code.")"); - $sum=$row[0]['count']; - $sql="select uuid,title,description,id from normalmetadata where uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='glacier') and id in (select distinct id from category where code=".$code.") order by timebegin,title limit ? offset ?"; - $this->view->metadata=$this->db->fetchAll($sql,array($this->limit,$offset)); - $this->view->page=new Pagination($sum,$page,$this->limit); - $this->view->offset=$offset+1; - $row=$this->db->fetchRow("select name,name_zh from categorycode where code=?",$code); - $this->view->codename=(empty($row['name_zh'])?$row['name']:$row['name_zh']); - } else { - //提供全部分类列表 - } - } - - private function getmd($keyword,$type='theme') - { - $page=(int)$this->_request->getParam('page'); - if (empty($page)) $page=1; - $offset=$this->limit*($page-1); - if (!is_array($keyword)) - { - $keyword=array($keyword); - } - $key="("; - foreach($keyword as $k) - { - $key.="'".$k."',"; - } - $key=substr($key,0,-1); - $key.=")"; - $keyword=$key; - - $state=$this->db->query("select count(m.*) from normalmetadata m left join datasource d on m.uuid=d.uuid left join source s on d.sourceid=s.id where s.code='glacier' and m.id in (select id from keyword where keytype='".$type."' and keyword in ".$keyword.")"); - $row=$state->fetchAll(); - $sum=$row[0]['count']; - //@todo: add order with title - $sql="select uuid,title from normalmetadata where uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='glacier') and id in (select id from keyword where keytype='".$type."' and keyword in ".$keyword.") order by timebegin,title limit ? offset ?"; - $this->view->metadata=$this->db->fetchAll($sql,array($this->limit,$offset)); - $this->view->page=new Pagination($sum,$page,$this->limit); - $this->view->offset=$offset+1; - } - - //获取多项条件并列关系的数据并必须满足limited条件 - //$keyword:字符串或字符串数组 - //$limited:限制字符串 - private function getmdlimited($keyword,$limited) - { - $page=(int)$this->_request->getParam('page'); - if (empty($page)) $page=1; - $offset=$this->limit*($page-1); - if (!is_array($keyword)) - { - $keyword=array($keyword); - } - $key="("; - foreach($keyword as $k) - { - $key.="'".$k."',"; - } - $key=substr($key,0,-1); - $key.=")"; - $keyword=$key; - - $state=$this->db->query("select count(m.*) from normalmetadata m left join datasource d on m.uuid=d.uuid left join source s on d.sourceid=s.id where s.code='glacier' and m.id in (select id from keyword where keyword='".$limited."') and m.id in (select id from keyword where keyword in ".$keyword.")"); - $row=$state->fetchAll(); - $sum=$row[0]['count']; - //@todo: add order with title - $sql="select uuid,title from normalmetadata where uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='glacier') and id in (select id from keyword where keyword='".$limited."') and id in (select id from keyword where keyword in ".$keyword.") order by title limit ? offset ?"; - $this->view->metadata=$this->db->fetchAll($sql,array($this->limit,$offset)); - $this->view->page=new Pagination($sum,$page,$this->limit); - $this->view->offset=$offset+1; - } -} \ No newline at end of file diff --git a/application/default/controllers/HaiheController.php b/application/default/controllers/HaiheController.php deleted file mode 100644 index 5c54b895..00000000 --- a/application/default/controllers/HaiheController.php +++ /dev/null @@ -1,85 +0,0 @@ -debug = 1; - $acName = $this->_request->getActionName(); - $this->view->pageID = "haihe-".$acName; - //$this->_helper->layout->setLayout('heihe'); - } - - function indexAction() - { - $archive = new Archive($this->db); - $this->view->info = $archive->getOneArchive('海河流域多尺度地表通量与气象要素观测数据集','about'); - } - - function documentAction() - { - $page=(int)$this->_request->getParam('page'); - if (empty($page)) $page=1; - $offset=$this->limit*($page-1); - $row=$this->db->fetchAll("select count(*) from reference where id in (select refid from mdref where uuid in (select uuid from normalmetadata where uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='haihe') ))"); - $sum=$row[0]['count']; - $sql="select * from reference where id in (select refid from mdref where uuid in (select uuid from normalmetadata where uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='haihe') )) order by reference limit ? offset ?"; - $this->view->refs=$this->db->fetchAll($sql,array($this->limit,$offset)); - $this->view->page=new Pagination($sum,$page,$this->limit,"文献"); - $this->view->offset=$offset+1; - } - - function daxingAction() - { - $this->getmd(array('大兴区'),'place'); - $this->_helper->viewRenderer('base'); - } - - function miyunAction() - { - $this->getmd(array('密云'),'place'); - $this->_helper->viewRenderer('base'); - } - - function guantaoAction() - { - $this->getmd(array('馆陶县'),'place'); - $this->_helper->viewRenderer('base'); - } - - function viewAction() - { - parent::viewAction(); - $this->_helper->viewRenderer('haihe/view'); - } - - private function getmd($keyword,$type='theme') - { - $page=(int)$this->_request->getParam('page'); - if (empty($page)) $page=1; - $offset=$this->limit*($page-1); - if (!is_array($keyword)) - { - $keyword=array($keyword); - } - $key="("; - foreach($keyword as $k) - { - $key.="'".$k."',"; - } - $key=substr($key,0,-1); - $key.=")"; - $keyword=$key; - - $state=$this->db->query("select count(m.*) from normalmetadata m left join datasource d on m.uuid=d.uuid left join source s on d.sourceid=s.id where s.code='haihe' and m.id in (select id from keyword where keytype='".$type."' and keyword in ".$keyword.")"); - $row=$state->fetchAll(); - $sum=$row[0]['count']; - //@todo: add order with title - $sql="select uuid,title from normalmetadata where uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='haihe') and id in (select id from keyword where keytype='".$type."' and keyword in ".$keyword.") order by title limit ? offset ?"; - $this->view->metadata=$this->db->fetchAll($sql,array($this->limit,$offset)); - $this->view->page=new Pagination($sum,$page,$this->limit); - $this->view->offset=$offset+1; - } -} \ No newline at end of file diff --git a/application/default/controllers/HeiheController.php b/application/default/controllers/HeiheController.php deleted file mode 100644 index 782b3fa6..00000000 --- a/application/default/controllers/HeiheController.php +++ /dev/null @@ -1,1275 +0,0 @@ -debug = 1; - $this->view->pageID = "heihe-".$this->_request->getActionName(); - $this->view->nav[] = array('link'=>"/heihe",'title'=>'黑河计划数据管理中心'); - $this->_helper->layout->setLayout('heihe'); - } - - function indexAction() - { - $sql="select m.uuid,m.title,m.id,m.description from normalmetadata m left join thumbnail t on m.id=t.id where m.uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='heihe') and length(t.data)>2 order by random() limit 3"; - $this->view->meatdata=$this->db->fetchAll($sql); - $archive = new Archive($this->db); - $this->view->info = $archive->getOneArchive('黑河流域数据简介','about'); - } - - /* - * 数据浏览 - */ - function browseAction() - { - $page=(int)$this->_request->getParam('page'); - if (empty($page)) $page=1; - $offset=$this->limit*($page-1); - $state=$this->db->query("select count(*) from normalmetadata where uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='heihe') "); - $row=$state->fetchAll(); - $sum=$row[0]['count']; - $select=$this->db->select(); - $select->from('normalmetadata','*')->where(" uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='heihe') ")->order('title desc')->limitPage($page,$this->limit); - $this->view->metadata = $this->db->fetchAll($select); - $this->view->page=new Pagination($sum,$page,$this->limit); - $this->view->offset=$offset+1; - } - - function thumbAction() - { - $page=(int)$this->_request->getParam('page'); - if (empty($page)) $page=1; - $offset=$this->limit*($page-1); - $state=$this->db->query("select count(*) from normalmetadata where uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='heihe') "); - $row=$state->fetchAll(); - $sum=$row[0]['count']; - $select=$this->db->select(); - $select->from('normalmetadata as m','m.*') - ->where(" uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='heihe') ") - ->order('m.title desc')->limitPage($page,$this->limit); - $this->view->metadata = $this->db->fetchAll($select); - $this->view->page=new Pagination($sum,$page,$this->limit); - } - - function documentAction() - { - $page=(int)$this->_request->getParam('page'); - if (empty($page)) $page=1; - $offset=$this->limit*($page-1); - $row=$this->db->fetchAll("select count(*) from reference where id in (select refid from mdref where uuid in (select uuid from normalmetadata where uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='heihe') ))"); - $sum=$row[0]['count']; - $sql="select * from reference where id in (select refid from mdref where uuid in (select uuid from normalmetadata where uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='heihe') )) order by reference limit ? offset ?"; - $this->view->refs=$this->db->fetchAll($sql,array($this->limit,$offset)); - $this->view->page=new Pagination($sum,$page,$this->limit,"文献"); - $this->view->offset=$offset+1; - } - - function baseAction() - { - $this->getmd(array('冰川','沙漠','地貌','植被','草场','沙漠化','基础地理','遥感影像','水文地质','社会经济','人口','SWAT','NPP','WRF','辐射','NEP')); - $archive = new Archive($this->db); - $this->view->info = $archive->getOneArchive('黑河计划-基础数据','about'); - $this->view->nav[] = array('link'=>"/heihe/base",'title'=>'基础数据'); - $this->_helper->viewRenderer('base'); - } - - function geobaseAction() - { - $this->getmd('基础地理'); - $archive = new Archive($this->db); - $this->view->info = $archive->getOneArchive('黑河计划-基础地理数据','about'); - $this->view->nav[] = array('link'=>"/heihe/geobase",'title'=>'基础地理数据'); - $this->_helper->viewRenderer('base'); - } - - function coreAction() - { - $this->getmd(array('DEM','土地利用','土壤','气象','水文观测','灌溉','试验')); - $archive = new Archive($this->db); - $this->view->info = $archive->getOneArchive('黑河计划-核心数据','about'); - $this->view->nav[] = array('link'=>"/heihe/core",'title'=>'核心数据'); - $this->_helper->viewRenderer('base'); - } - - function demAction() - { - $this->getmd('DEM'); - $archive = new Archive($this->db); - $this->view->info = $archive->getOneArchive('黑河计划-DEM','about'); - $this->view->nav[] = array('link'=>"/heihe/dem",'title'=>'DEM'); - $this->_helper->viewRenderer('base'); - } - - function rsAction() - { - $this->getmd('遥感影像'); - $archive = new Archive($this->db); - $this->view->info = $archive->getOneArchive('黑河计划-遥感影像','about'); - $this->view->nav[] = array('link'=>"/heihe/rs",'title'=>'遥感影像'); - $this->_helper->viewRenderer('base'); - } - - function waterAction() - { - $this->getmd('水文地质'); - $archive = new Archive($this->db); - $this->view->info = $archive->getOneArchive('黑河计划-水文水资源数据','about'); - $this->view->nav[] = array('link'=>"/heihe/water",'title'=>'水文水资源数据'); - $this->_helper->viewRenderer('base'); - } - - function modelAction() - { - $this->getmd(array('WRF','NPP','SWAT','NEP','辐射')); - $archive = new Archive($this->db); - $this->view->info = $archive->getOneArchive('黑河计划-模型数据','about'); - $this->view->nav[] = array('link'=>"/heihe/model",'title'=>'模型数据'); - $this->_helper->viewRenderer('base'); - } - - function economicAction() - { - $this->getmd(array('人口','社会经济')); - $archive = new Archive($this->db); - $this->view->info = $archive->getOneArchive('黑河计划-社会经济数据','about'); - $this->view->nav[] = array('link'=>"/heihe/economic",'title'=>'社会经济数据'); - $this->_helper->viewRenderer('base'); - } - - function landsurfaceAction() - { - $this->getmd(array('冰川','沙漠','地貌','植被','草场','沙漠化')); - $archive = new Archive($this->db); - $this->view->info = $archive->getOneArchive('黑河计划-陆地表层数据','about'); - $this->view->nav[] = array('link'=>"/heihe/landsurface",'title'=>'陆地表层数据'); - $this->_helper->viewRenderer('base'); - } - - function landuseAction() - { - $this->getmd('土地利用'); - $archive = new Archive($this->db); - $this->view->info = $archive->getOneArchive('黑河计划-土地利用数据','about'); - $this->view->nav[] = array('link'=>"/heihe/landuse",'title'=>'土地利用数据'); - $this->_helper->viewRenderer('base'); - } - - function soilAction() - { - $this->getmd('土壤'); - $archive = new Archive($this->db); - $this->view->info = $archive->getOneArchive('黑河计划-土壤数据','about'); - $this->view->nav[] = array('link'=>"/heihe/soil",'title'=>'土壤数据'); - $this->_helper->viewRenderer('base'); - } - - function meteoAction() - { - $this->getmd('气象'); - $archive = new Archive($this->db); - $this->view->info = $archive->getOneArchive('黑河计划-气象观测数据','about'); - $this->view->nav[] = array('link'=>"/heihe/meteo",'title'=>'气象观测数据'); - $this->_helper->viewRenderer('base'); - } - - function hydroAction() - { - $this->getmd('水文观测'); - $archive = new Archive($this->db); - $this->view->info = $archive->getOneArchive('黑河计划-水文观测数据','about'); - $this->view->nav[] = array('link'=>"/heihe/hydro",'title'=>'水文观测数据'); - $this->_helper->viewRenderer('base'); - } - function irragationAction() - { - $this->getmd('灌溉'); - $archive = new Archive($this->db); - $this->view->info = $archive->getOneArchive('黑河计划-灌溉数据','about'); - $this->view->nav[] = array('link'=>"/heihe/irragation",'title'=>'灌溉数据'); - $this->_helper->viewRenderer('base'); - } - - function obsAction() - { - $this->getmd('试验'); - $archive = new Archive($this->db); - $this->view->info = $archive->getOneArchive('黑河计划-观测试验数据','about'); - $this->view->nav[] = array('link'=>"/heihe/obs",'title'=>'观测试验数据'); - $this->_helper->viewRenderer('base'); - } - - function listAction() - { - $sql="select uuid,title from normalmetadata where uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='heihe') order by timebegin,title"; - $this->view->metadata=$this->db->fetchAll($sql); - } - - function tagAction() - { - $key = $this->_request->getParam('key'); - $keytype = $this->_request->getParam('keytype'); - $page=(int)$this->_request->getParam('page'); - if (empty($page)) $page=1; - $offset=$this->limit*($page-1); - if (!empty($key)) { - $this->view->codename=$key; - $sql=$this->db->quoteInto("select count(k.id) from keyword k left join normalmetadata m on k.id=m.id where m.uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='heihe') and k.keyword=?",$key); - $state=$this->db->query($sql); - $row=$state->fetchAll(); - $sum=$row[0]['count']; - $sql="select uuid,title,id,description from normalmetadata where uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='heihe') and id in (select id from keyword where keyword='".$key."') order by timebegin,title limit ? offset ?"; - $this->view->metadata=$this->db->fetchAll($sql,array($this->limit,$offset)); - $this->view->page=new Pagination($sum,$page,$this->limit); - } else { - $sql="select k.keyword,count(*),k.keytype from keyword k left join normalmetadata m on k.id=m.id where length(k.keyword)>0 and m.uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='heihe') "; - if (!empty($keytype) && ($keytype=='place' || $keytype=='theme' || $keytype=='discipline'||$keytype=='temporal')) $sql.=" and k.keytype='".$keytype."'"; - $sql.=' group by k.keyword,k.keytype order by k.keytype,k.keyword,count desc'; - $state=$this->db->query($sql); - $this->view->keytype=$keytype; - $this->view->keywords=$state->fetchAll(); - } - } - - function searchAction() - { - $this->view->addHelperPath('helper','Zend_View_Helper_'); - $form=new SearchForm(); - $this->view->form=$form; - //$form->submit->setLabel('快速搜索'); - $key=$this->_request->getParam('q'); - if (!empty($key)) { - $search=new Search($key); - $where=$search->sql_expr(array("title","description")); - $page=@(int)$this->_request->getParam('page'); - if (empty($page)) $page=1; - $offset=$this->limit*($page-1); - $row=$this->db->fetchAll("select count(*) from normalmetadata where uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='heihe') and ".$where); - $sum=$row[0]['count']; - $sql="select uuid,title,id,description from normalmetadata where uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='heihe') and ".$where." order by timebegin,title limit ? offset ?"; - $this->view->metadata=$this->db->fetchAll($sql,array($this->limit,$offset)); - $this->view->page=new Pagination($sum,$page,$this->limit); - $this->view->key=$key; - $this->view->offset=$offset+1; - } - } - - function timemapAction() - { - $sql="select id,uuid,west,south,north,east,title,timebegin,timeend from normalmetadata where uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='heihe') and timebegin is not null"; - $this->view->rows=$this->db->fetchAll($sql); - } - - function timelineAction() - { - $fn="heihetime.xml"; - $rows=$this->db->fetchAll("select ts_created from normalmetadata where uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='heihe') order by ts_created desc limit 1"); - $last_update=strtotime($rows[0]['ts_created']); - if (!file_exists($fn) || (filemtime($fn)<$last_update)) - { - $dateformat="M j Y"; - $rows=$this->db->fetchAll("select id,uuid,description,title,timebegin,timeend from normalmetadata where uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='heihe') and timebegin is not null order by timebegin,title"); - $timexml=''; - foreach($rows as $row) { - $timexml.=''; - $desc_length=mb_strlen($row['description'],"UTF-8"); - $desc=mb_substr($row['description'],0,($desc_length>300)?300:$desc_length,"UTF-8"); - if ($desc_length>300) $desc.=" ..."; - $timexml.=htmlspecialchars($desc); - $timexml.="\n"; - } - $timexml.=''; - $fp=fopen($fn,'w'); - fwrite($fp,$timexml); - fclose($fp); - } - } - - function categoryAction() - { - $code = (int)$this->_request->getParam('code'); - $this->view->code = $code; - $page=(int)$this->_request->getParam('page'); - if (empty($page)) $page=1; - $offset=$this->limit*($page-1); - $this->view->category=$this->db->fetchAll("select c.code,name,name_zh,count(*) from category c left join normalmetadata m on c.id=m.id,categorycode cc where c.code=cc.code and m.uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='heihe') group by c.code,cc.name,cc.name_zh"); - if ($code>0 && $code<20) { - $row=$this->db->fetchAll("select count(*) from normalmetadata where uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='heihe') and id in (select id from category where code=".$code.")"); - $sum=$row[0]['count']; - $sql="select uuid,title,description,id from normalmetadata where uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='heihe') and id in (select distinct id from category where code=".$code.") order by timebegin,title limit ? offset ?"; - $this->view->metadata=$this->db->fetchAll($sql,array($this->limit,$offset)); - $this->view->page=new Pagination($sum,$page,$this->limit); - $this->view->offset=$offset+1; - $row=$this->db->fetchRow("select name,name_zh from categorycode where code=?",$code); - $this->view->codename=(empty($row['name_zh'])?$row['name']:$row['name_zh']); - } else { - //提供全部分类列表 - } - } - - private function getmd($keyword,$type='theme') - { - $page=(int)$this->_request->getParam('page'); - if (empty($page)) $page=1; - $offset=$this->limit*($page-1); - if (!is_array($keyword)) - { - $keyword=array($keyword); - } - $key="("; - foreach($keyword as $k) - { - $key.="'".$k."',"; - } - $key=substr($key,0,-1); - $key.=")"; - $keyword=$key; - - $state=$this->db->query("select count(m.*) from normalmetadata m left join datasource d on m.uuid=d.uuid left join source s on d.sourceid=s.id where s.code='heihe' and m.id in (select id from keyword where keytype='".$type."' and keyword in ".$keyword.")"); - $row=$state->fetchAll(); - $sum=$row[0]['count']; - //@todo: add order with title - $sql="select uuid,title from normalmetadata where uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='heihe') and id in (select id from keyword where keytype='".$type."' and keyword in ".$keyword.") order by timebegin,title limit ? offset ?"; - $this->view->metadata=$this->db->fetchAll($sql,array($this->limit,$offset)); - $this->view->page=new Pagination($sum,$page,$this->limit); - $this->view->offset=$offset+1; - } - - //获取多项条件并列关系的数据并必须满足limited条件 - //$keyword:字符串或字符串数组 - //$limited:限制字符串 - private function getmdlimited($keyword,$limited) - { - $page=(int)$this->_request->getParam('page'); - if (empty($page)) $page=1; - $offset=$this->limit*($page-1); - if (!is_array($keyword)) - { - $keyword=array($keyword); - } - $key="("; - foreach($keyword as $k) - { - $key.="'".$k."',"; - } - $key=substr($key,0,-1); - $key.=")"; - $keyword=$key; - - $state=$this->db->query("select count(m.*) from normalmetadata m left join datasource d on m.uuid=d.uuid left join source s on d.sourceid=s.id where s.code='heihe' and m.id in (select id from keyword where keyword='".$limited."') and m.id in (select id from keyword where keyword in ".$keyword.")"); - $row=$state->fetchAll(); - $sum=$row[0]['count']; - //@todo: add order with title - $sql="select uuid,title from normalmetadata where uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='heihe') and id in (select id from keyword where keyword='".$limited."') and id in (select id from keyword where keyword in ".$keyword.") order by timebegin,title limit ? offset ?"; - $this->view->metadata=$this->db->fetchAll($sql,array($this->limit,$offset)); - $this->view->page=new Pagination($sum,$page,$this->limit); - $this->view->offset=$offset+1; - } - - /* - * submitAction() //数据汇交 - * - * param string $ac //动作 - * param int $id //数据模版ID - * param int $group //geonetwork页面跳转参数 - * - * return view - */ - function submitAction(){ - - $ac = $this->_getParam('ac'); - $id = $this->_request->getParam('id'); - $this->wdb=Zend_Db::factory($this->view->config->geonetwork); - - $auth = Zend_Auth::getInstance(); - if($auth->hasIdentity()) - { - $user = $auth->getIdentity(); - $u_id = $user->id; - $this->view->isadmin=false; - if ($user->usertype=='administrator') $this->view->isadmin=true; - } - - //新建元数据 - if($ac == "newdata") - { - - $do = $this->_getParam('do'); - - if(empty($do)) - { - $this->_helper->viewRenderer('submit-newdata'); - - $keywords = $this->_request->getParam('q'); - $sql="select id,(regexp_matches(data,'(.*)'))[1] as title,(owner-".$u_id.") as isowner from metadata where istemplate='y' and schemaid='iso19115'"; - if(!empty($keywords)) - { - $this->view->q = $keywords; - $search=new Search($keywords); - $where=$search->sql_expr(array("data")); - $sql.=' and '.$where; - } - $sql.=" order by changedate desc"; - $sth = $this->wdb->prepare($sql); - $sth->execute(); - $rows = $sth->fetchAll(); - - $paginator = Zend_Paginator::factory($rows); - $paginator->setCurrentPageNumber($this->_getParam('page')); - $paginator->setItemCountPerPage(10); - $paginator->setView($this->view); - Zend_View_Helper_PaginationControl::setDefaultViewPartial('pagination_param.phtml'); - $this->view->paginator=$paginator; - - return true; - } - - if($do == "add") - { - $this->_helper->viewRenderer('submit-newdata-add'); - $this->view->pageNav = "newdata-add"; - - $keywords = $this->_request->getParam('q'); - $sql = "SELECT md.title,md.uuid,md.description,gn.id as gid FROM normalmetadata md - left join geonetworkmetadata gn on md.uuid=gn.uuid - WHERE gn.id is not null"; - if(!empty($keywords)) - { - $this->view->q = $keywords; - $search=new Search($keywords); - $where=$search->sql_expr(array("md.title","md.description")); - $sql.=' and '.$where; - } - $sql.=" order by md.ts_created desc"; - $sth = $this->db->prepare($sql); - $sth->execute(); - $rows = $sth->fetchAll(); - - $paginator = Zend_Paginator::factory($rows); - $paginator->setCurrentPageNumber($this->_getParam('page')); - $paginator->setItemCountPerPage(10); - $paginator->setView($this->view); - Zend_View_Helper_PaginationControl::setDefaultViewPartial('pagination_param.phtml'); - $this->view->paginator=$paginator; - - return true; - } - return true; - }//newdata - - //未提交数据 - if($ac == "unsubmit" || $ac=="") - { - $do = $this->_getParam('do'); - - //未提交的数据列表 - if(empty($do) || $do=="index") - { - $this->_helper->viewRenderer('submit-unsubmit'); - - $sql = "SELECT (regexp_matches(gn.data,'(.*)'))[1] as title,gn.id,gn.uuid FROM geonetworkmetadata gn - WHERE gn.uuid not in (select uuid from metadata) and gn.owner=? - order by gn.id desc - "; - $sth = $this->db->prepare($sql); - $sth->execute(array($u_id)); - $rows = $sth->fetchAll(); - - $paginator = Zend_Paginator::factory($rows); - $paginator->setCurrentPageNumber($this->_getParam('page')); - $paginator->setItemCountPerPage(15); - $paginator->setView($this->view); - Zend_View_Helper_PaginationControl::setDefaultViewPartial('pagination_param.phtml'); - $this->view->paginator=$paginator; - - return true; - }//index - - //提交 - if($do=="commit") - { - $this->_helper->layout->disableLayout(); - $this->_helper->viewRenderer->setNoRender(); - - $data = ""; - $id = $this->_request->getParam('id'); - try{ - if(empty($id) || !is_numeric($id)) - { - $data = array("error"=>"参数错误"); - $this->jsonexit($data); - return true; - } - - $changelog = $this->_request->getParam('changelog'); - - if(empty($changelog)) - { - $data = array("error"=>'请输入变更信息'); - $this->jsonexit($data); - return true; - } - - // 1. 权限认定:当前用户必须和其owner相同 - // 数据应当没有评审状态,没有作者信息 - $sql="select gn.id from geonetworkmetadata gn - left join mdstatus s on gn.uuid=s.uuid - left join mdauthor a on s.uuid=a.uuid - where (s.id is not null or a.id is not null) and gn.id=?"; - $sth=$this->db->prepare($sql); - $sth->execute(array($id)); - $row=$sth->fetch(); - if (!empty($row)) - { - $data = array("error"=>'错误的入口'); - $this->jsonexit($data); - return true; - } - - $sql="select uuid,data as xml from metadata where id=? and owner=?"; - $sth=$this->wdb->prepare($sql); - $sth->execute(array($id,$u_id)); - $row=$sth->fetch(); - if (empty($row)) - { - $data = array("error"=>'无权限修改数据'); - $this->jsonexit($data); - return true; - }else{ - $uuid = $row['uuid']; - } - - //检查元数据错误 - $iso=new ISO19115(); - @$iso->loadXML($row['xml']); - if ($iso->validate()) - { - $data=array("error"=>"元数据导入过程中发现错误。
".implode("
",$iso->error)); - $this->jsonexit($data); - return true; - } - - $messages = array(); - - // 保存数据作者信息 - $sql="insert into mdauthor (uuid,userid,ts_activated,status) values(?,?,now(),1)"; - $sth=$this->db->query($sql,array($row['uuid'],$u_id)); - - // 2. 保存变化记录 save changelog & userid for the latest version - $sql = "UPDATE mdversion SET changelog=?,userid=? WHERE id in (select id from mdversion where uuid=? order by ts_created desc limit 1)"; - $this->db->query($sql,array($changelog,$u_id,$row['uuid'])); - file_get_contents("http://ftp2.westgis.ac.cn/proftp_upload.php?uuid=".$row['uuid']."&filelist=1"); - //自动添加数据分类为黑河 - $sql="insert into datasource (uuid,sourceid) values(?,1)"; - $sth=$this->db->prepare($sql); - try{$sth->execute(array($uuid));}catch(Exception $e) {} - - // 3. 保存数据评审状态 - //导入元数据 - $iso->saveDB($this->db); - //进入评审库 - $sql="insert into mdstatus (uuid,status,userid) values(?,?,?)"; - $this->db->query($sql,array($uuid,0,$u_id)); - - //email to admin - $mail=new WestdcMailer($this->view->config->smtp); - $mail->setFrom($this->view->config->service->email,'数据服务组'); - $mailtp=new EmailText($this->db,"metadata-new-admin",array( - 'user' => $user->username, - 'uuid' => $iso->uuid, - 'email'=> $user->email, - //元数据标题 - 'title'=> $iso->resTitle, - )); - $mail->setBodyText($mailtp->getBody()); - $mail->setSubject($mailtp->getSubject()); - $mail->addTo($this->view->config->service->email); - $mail->send(); - - unset($mail); - unset($mailtp); - //email to author - $mail=new WestdcMailer($this->view->config->smtp); - $mail->setFrom($this->view->config->service->email,'数据服务组'); - $mailtp=new EmailText($this->db,"heihe-new-author",array( - 'user' => $user->username, - 'uuid' => $iso->uuid, - 'email'=> $user->email, - //元数据标题 - 'title'=> $iso->resTitle, - )); - $mail->setBodyText($mailtp->getBody()); - $mail->setSubject($mailtp->getSubject()); - $mail->addTo($user->email); - $mail->addCc($this->view->config->service->email); - @$mail->send(); - - $data = array("commited"=>1,"error"=>'该版本已经成功提交,请等待数据中心进一步处理!'); - $this->jsonexit($data); - return true; - }catch(Exception $e) { - $sql="delete from mdstatus where uuid in (select uuid from geonetworkmetadata where id=?)"; - $this->db->query($sql,array($id)); - $sql="delete from mdauthor where userid=? and uuid in (select uuid from geonetworkmetadata where id=?)"; - $this->db->query($sql,array($u_id,$id)); - - $msg = "提交失败,请确认权限后重试"; - if($this->debug>0) - {$msg .= $e->getMessage();} - $data = array("error"=>$msg); - $this->jsonexit($data); - return true; - } - }//commit - - return true; - }//unsubmit - - //FTP - else if($ac == "ftp") - { - $this->_helper->layout->disableLayout(); - $this->_helper->viewRenderer->setNoRender(); - - $uuid = $this->_getParam('uuid'); - - $this->view->uuid = $uuid; - - if(empty($uuid) || !preg_match("/^[0-9A-Za-z]{8}-[0-9A-Za-z]{4}-[0-9A-Za-z]{4}-[0-9A-Za-z]{4}-[0-9A-Za-z]{12}$/",$uuid)) - { - $data = array( - 'error'=>"参数错误" - ); - $this->jsonexit($data); - return true; - } - //安全检查: uuid必须是当前用户且为新建数据 - $sql="select * from geonetworkmetadata where uuid=? and uuid not in (select uuid from metadata) and owner=?"; - $sth=$this->db->prepare($sql); - $sth->execute(array($uuid,$u_id)); - $row=$sth->fetch(); - if (empty($row)) - { - $data = array( - 'error'=>"参数错误" - ); - $this->jsonexit($data); - return true; - } - - //ftp 用户名 - $uname = 'westdc'.$u_id.'upload'; - - //ftp路径 - $homedir = "/disk1/WestDC/upload/".$uuid."/"; - //ftp用户表 - $ftptable=' pureftp ';//ftp2.westgis.ac.cn - - //$sql = "SELECT * FROM proftpusers WHERE userid='$uname' ORDER BY pkid DESC"; - $sql = "SELECT * FROM $ftptable WHERE userid='$uname' ORDER BY pkid DESC"; - $sth = $this->db->prepare($sql); - $sth->execute(); - $row = $sth->fetch(); - - //create directory for upload - //server is not localhost, so we need a trick - //$old=umask(0); - //@mkdir($homedir,0777); - //umask($old); - $page=file_get_contents('http://ftp2.westgis.ac.cn/proftp_upload.php?uuid='.$uuid); - if (!empty($page)) die($page);//there are errors in visit ftp page - - - if(!empty($row['pkid'])) - { - if(preg_match("/.*".$uuid.".*/",$row['homedir'])) - { - $data = array( - 'statu'=>1, - 'user'=>$row['userid'], - 'passwd'=>$row['passwd'] - ); - - $this->jsonexit($data); - return true; - - }else{ - $uid = 1002; - $gid = 1002; - - $passwd = $this->genRandomString(16); - //$sql = "UPDATE proftpusers SET passwd=?,uid=?,gid=?,homedir=? WHERE userid=?"; - //$sth = $this->db->prepare($sql); - //$rs = $sth->execute(array($passwd,$uid,$gid,$homedir,$uname)); - //$sql="update proftpusers SET passwd='".$passwd."',uid=".$uid.",gid=".$gid.",homedir='".$homedir."' WHERE userid='".$uname."'"; - $sql="update ".$ftptable." SET passwd='".$passwd."',uid=".$uid.",gid=".$gid.",homedir='".$homedir."' WHERE userid='".$uname."'"; - $rs=$this->db->query($sql); - if($rs) - { - $data = array( - 'statu'=>1, - 'user'=>$uname, - 'passwd'=>$passwd - ); - $this->jsonexit($data); - return true; - }else{ - $data = array( - 'error'=>"FTP信息更新失败,请重试" - ); - $this->jsonexit($data); - return true; - } - } - } - - else{ - $uid = 1002; - $gid = 1002; - $passwd = $this->genRandomString(16); - - //$sql = "INSERT INTO proftpusers (userid,passwd,uid,gid,homedir) VALUES (?,?,?,?,?)"; - //$sth = $this->db->prepare($sql); - //$rs = $sth->execute(array($uname,$passwd,$uid,$gid,$homedir)); - //$sql="insert into proftpusers (userid,passwd,uid,gid,homedir) values('".$uname."','".$passwd."',109,1002,'".$homedir."')"; - $sql="insert into ".$ftptable." (userid,passwd,uid,gid,homedir) values('".$uname."','".$passwd."',1002,1002,'".$homedir."')"; - $rs=$this->db->query($sql); - if($rs) - { - $data = array( - 'statu'=>1, - 'user'=>$uname, - 'passwd'=>$passwd - ); - $this->jsonexit($data); - return true; - }else{ - $data = array( - 'error'=>"FTP信息更新失败,请重试" - ); - $this->jsonexit($data); - return true; - } - }//end if - - }//ftp - - }//function submitAction() - - /* - * projectsAction() 数据汇交计划 - * - * - * - * - */ - function projectsAction() - { - - $ac = $this->_getParam('ac'); - $invite = $this->_getParam('invite'); - - $heihe = new Heihe($this->db); - - $auth = Zend_Auth::getInstance(); - if($auth->hasIdentity()) - { - $user = $auth->getIdentity(); - $uid = $user->id; - $this->view->user_email = $user_email = $user->email; - } - - $this->view->page = $this->_getParam('page'); - $this->view->pageLimit = 15; - include_once("helper/view.php"); - - if(empty($ac) || $ac == "index" || $ac == 'my') - { - $this->_helper->viewRenderer('project-index'); - $this->view->tabID='projects-index'; - - //Search Link - $this->view->searchLink = "/heihe/projects/ac/index/"; - - $q = $this->_getParam('q'); - - $wheresql = array(); - - if(!empty($q)) - { - if(!preg_match("/^[\x{4e00}-\x{9fa5}A-Za-z0-9_]+$/u",$q)) - { - $this->view->error = "输入的搜索条件有误,只允许输入汉字、数字、字母"; - return true; - } - $wheresql[] = " (p.title LIKE '%$q%' OR - p.code LIKE '%$q%' OR - p.name LIKE '%$q%')"; - $this->view->searchKeyword = $q; - } - - if($ac == "my") - { - //防止通过其它方式访问,先判断是否是登录用户,如果不是,抛出消息后强制用户退出 - $auth = Zend_Auth::getInstance(); - if(!$auth->hasIdentity()) - $this->_redirect('/account/login?href=/heihe/projects/ac/my'); - $wheresql[] = " p.email='$user_email' "; - $this->view->tabID='projects-my'; - } - - if(count($wheresql)>0) - { - $wheresql = join(" AND ",$wheresql); - }else{ - $wheresql = ""; - } - - if(!empty($wheresql)) - { - $wheresql = " WHERE ".$wheresql; - } - - $sql = "SELECT p.*,f.id as fid FROM heiheproject p left join fund f on p.code=f.fund_id $wheresql - ORDER BY p.id asc"; - $sth = $this->db->query($sql); - $rows = $sth->fetchAll(); - - foreach ($rows as $k=>$v) - { - $rows[$k]['status'] = $heihe->getStatus($v['status']); - } - - view::addPaginator($rows,$this->view,$this->_request); - - }//ac == index - - if($ac == "submitting") - { - $this->_helper->viewRenderer('project-index'); - $this->view->tabID='projects-submitting'; - $sql = "SELECT p.*,f.id as fid FROM heiheproject p left join fund f on p.code=f.fund_id WHERE p.status=1"; - $sth = $this->db->query($sql); - $rows = $sth->fetchAll(); - - foreach ($rows as $k=>$v) - { - $rows[$k]['status'] = $heihe->getStatus($v['status']); - } - - view::addPaginator($rows,$this->view,$this->_request); - }//ac == submitting 正在提交 - - if($ac == "unsubmit") - { - $this->_helper->viewRenderer('project-index'); - $this->view->tabID='projects-unsubmit'; - $sql = "SELECT p.*,f.id as fid FROM heiheproject p left join fund f on p.code=f.fund_id WHERE p.status=0"; - $sth = $this->db->query($sql); - $rows = $sth->fetchAll(); - - foreach ($rows as $k=>$v) - { - $rows[$k]['status'] = $heihe->getStatus($v['status']); - } - - view::addPaginator($rows,$this->view,$this->_request); - }//ac == unsubmit 未提交 - - if($ac == "submit") - { - $this->_helper->viewRenderer('project-index'); - $this->view->tabID='projects-submit'; - $sql = "SELECT p.*,f.id as fid FROM heiheproject p left join fund f on p.code=f.fund_id WHERE p.status>0"; - $sth = $this->db->query($sql); - $rows = $sth->fetchAll(); - - foreach ($rows as $k=>$v) - { - $rows[$k]['status'] = $heihe->getStatus($v['status']); - } - - view::addPaginator($rows,$this->view,$this->_request); - }//ac == submit 已提交 - - if($ac == "upload") - { - $this->_helper->layout->setLayout('layout-iframe'); - $this->_helper->viewRenderer('project-upload'); - - $submit = $this->_getParam('submit'); - - $pid = $this->_getParam('pid'); - - if(empty($pid) || !is_numeric($pid)) - { - $this->view->error = "参数错误"; - return true; - } - - $this->view->pid = $pid; - - if(empty($uid)) - { - $this->view->error = "请先登录"; - return true; - } - - $sql = "SELECT * FROM heiheproject WHERE id=$pid"; - $sth = $this->db->query($sql); - $row = $sth->fetch(); - - if($row['email']!= $user_email) - { - $this->view->error = "您没有权限进行此操作"; - return true; - } - - if(!empty($submit) && empty($this->view->error)) - { - - $files=new files(); - $msg = $files -> upload($this->view->config->upload,$_FILES['Filedata'],'heihe'); - - if(empty($msg['error'])) - { - $msg['error']=""; - $filename = $msg['db_path']; - $filesize = $msg['file_size']; - $filedesc = $this->_request->getParam('filedesc'); - $filetype = $msg['file_type']; - $realname = $msg['realname']; - - if(!empty($row['attachid'])) - { - $sql = "SELECT * FROM attachments WHERE id={$row['attachid']}"; - $sth = $this->db->query($sql); - $attach = $sth->fetch(); - $this->db->exec("DELETE FROM attachments WHERE id={$row['attachid']} AND filetype='heihe'"); - @unlink($this->view->config->upload.$attach['filename']); - } - - $sql = " INSERT INTO attachments (filename,filetype,filedesc,userid,filesize,realname) values - ('$filename','heihe','$filedesc','$uid','$filesize','$realname') RETURNING id"; - $sth = $this->db->prepare($sql); - $sth->execute(); - $att = $sth->fetch(PDO::FETCH_ASSOC); - $msg['attid'] = $attid = $att['id']; - - $sql = "UPDATE heiheproject SET attachid=$attid WHERE id=$pid"; - $sth = $this->db->exec($sql); - - if($sth) - { - $this->view->message = "上传成功"; - }else{ - @unlink($filename); - $this->view->error = '附件上传失败:写入附件表出错'; - return true; - } - }else{ - @unlink($filename); - $this->view->error = "附件上传失败".$msg['error']; - return true; - } - } - - $sql = "SELECT * FROM heiheproject WHERE id=$pid"; - $sth = $this->db->query($sql); - $row = $sth->fetch(); - - $sql = "SELECT * FROM attachments WHERE id = {$row['attachid']}"; - $sth = $this->db->query($sql); - $this->view->att = $sth->fetch(); - - return true; - } - - if(!empty($invite)) - { - - $this->_helper->viewRenderer('project-invite'); - - $pid = $this->_getParam('pid'); - - $level = $heihe->expertActive($pid,$invite,$user_email); - - if($level>100) - { - $this->view->error = "数据中心对您的邀请已经确认!感谢您的支持"; - return true; - }else{ - $this->view->error = $heihe->expertActiveError($level); - return true; - } - - }//专家邀请链接 - - - }//projectsAction() - - function genRandomString($len) - { - $chars = array( - "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", - "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", - "w", "x", "y", "z", "A", "B", "C", "D", "E", "F", "G", - "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", - "S", "T", "U", "V", "W", "X", "Y", "Z", "0", "1", "2", - "3", "4", "5", "6", "7", "8", "9" - ); - $charsLen = count($chars) - 1; - - shuffle($chars); // 将数组打乱 - - $output = ""; - for ($i=0; $i<$len; $i++) - { - $output .= $chars[mt_rand(0, $charsLen)]; - } - return $output; - } - - function chmodr($path, $filemode) { - if (!is_dir($path)) - return chmod($path, $filemode); - - $dh = opendir($path); - while (($file = readdir($dh)) !== false) { - if($file != '.' && $file != '..') { - $fullpath = $path.'/'.$file; - if(is_link($fullpath)) - return FALSE; - elseif(!is_dir($fullpath) && !chmod($fullpath, $filemode)) - return FALSE; - elseif(!$this->chmodr($fullpath, $filemode)) - return FALSE; - } - } - closedir($dh); - if(chmod($path, $filemode)) - return TRUE; - else - return FALSE; - } - - //成为作者后的后继处理工作 - private function author_first($uuid,$author) - { - $sql="insert into mdversion (xml,ts_created,uuid,changelog,userid) - select x.data,m.ts_created,?,?,? from metadata m left join xml x on m.id=x.id - left join mdversion v on m.uuid=v.uuid - where m.uuid=? and v.changelog is null"; - $sth=$this->db->prepare($sql); - try - { - $sth->execute(array($uuid,'初始版本 version 1.0',$author,$uuid)); - } catch(Exception $e){ - // do nothing here. - // 说明之前已经有对应数据 - } - $this->wdb=Zend_Db::factory($this->view->config->geonetwork); - $sql="update metadata set owner=? where uuid=?"; - $sth=$this->wdb->prepare($sql); - $sth->execute(array($author,$uuid)); - } - //基于数据作者的浏览(包括认证后的数据作者以及未认证的数据作者) - function authorAction() - { - $ac = $this->_request->getParam('ac'); - $id = (int)$this->_request->getParam('id'); - if ($ac=='verified') { - //已经认证过的数据作者 - $this->view->tabID='author-verified'; - $this->view->ac='verified'; - if ($id) { - //列出作者的数据 - $sql="select username,realname from users where id=?"; - $this->view->author=$this->db->fetchRow($sql,array($id)); - $sql="select m.* from normalmetadata m left join mdauthor a on a.uuid=m.uuid where m.uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='heihe') and a.userid=?"; - $sth = $this->db->prepare($sql); - $sth->execute(array($id)); - $rows = $sth->fetchAll(); - $paginator = Zend_Paginator::factory($rows); - $paginator->setCurrentPageNumber($this->_getParam('page')); - $paginator->setItemCountPerPage(10); - $paginator->setView($this->view); - Zend_View_Helper_PaginationControl::setDefaultViewPartial('pagination_param.phtml'); - $this->view->paginator=$paginator; - } else { - //已经认证过的数据作者 - $sql="select u.username,u.realname,u.id,count(u.id) as count from mdauthor a left join users u on a.userid=u.id where a.uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='heihe') and a.status=1 and a.uuid in (select uuid from normalmetadata) group by u.id,u.username,u.realname"; - $sth = $this->db->prepare($sql); - $sth->execute(); - $rows = $sth->fetchAll(); - $paginator = Zend_Paginator::factory($rows); - $paginator->setCurrentPageNumber($this->_getParam('page')); - $paginator->setItemCountPerPage(50); - $paginator->setView($this->view); - Zend_View_Helper_PaginationControl::setDefaultViewPartial('pagination_param.phtml'); - $this->view->paginator=$paginator; - } - } else if ($ac=='unverified' || empty($ac)) { - //未认证的数据作者 - $this->view->tabID='author-unverified'; - $this->view->ac='unverified'; - if ($id) { - //列出数据 - $sql="select individual as username from responsible where id=?"; - $this->view->author=$this->db->fetchRow($sql,array($id)); - $sql="select distinct m.* from normalmetadata m left join role r on m.uuid=r.uuid left join responsible s on r.resid=s.id where r.uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='heihe') and r.role in ('pointOfContact','resourceProvider','owner') and s.id=?"; - $sth = $this->db->prepare($sql); - $sth->execute(array($id)); - $rows = $sth->fetchAll(); - $paginator = Zend_Paginator::factory($rows); - $paginator->setCurrentPageNumber($this->_getParam('page')); - $paginator->setItemCountPerPage(10); - $paginator->setView($this->view); - Zend_View_Helper_PaginationControl::setDefaultViewPartial('pagination_param.phtml'); - $this->view->paginator=$paginator; - } else { - //列出所有作者 - $sql="select distinct responsible.individual as username,responsible.id from responsible left join role on role.resid=responsible.id where role.uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='heihe') and role.role in ('pointOfContact','resourceProvider','owner')"; - $sth = $this->db->prepare($sql); - $sth->execute(); - $rows = $sth->fetchAll(); - $paginator = Zend_Paginator::factory($rows); - $paginator->setCurrentPageNumber($this->_getParam('page')); - $paginator->setItemCountPerPage(50); - $paginator->setView($this->view); - Zend_View_Helper_PaginationControl::setDefaultViewPartial('pagination_param.phtml'); - $this->view->paginator=$paginator; - } - } - } - - function fundAction() - { - $id = (int)$this->_request->getParam('id'); - if (!empty($id)) { - $sql="select * from fund where id=?"; - $this->view->fund=$this->db->fetchRow($sql,array($id)); - if ($this->view->fund) { - $sql="select distinct m.* from normalmetadata m left join mdfund mf on m.uuid=mf.uuid where m.uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='heihe') and mf.fid=?"; - $sth = $this->db->prepare($sql); - $sth->execute(array($id)); - $rows = $sth->fetchAll(); - $paginator = Zend_Paginator::factory($rows); - $paginator->setCurrentPageNumber($this->_getParam('page')); - $paginator->setItemCountPerPage(10); - $paginator->setView($this->view); - Zend_View_Helper_PaginationControl::setDefaultViewPartial('pagination_param.phtml'); - $this->view->paginator=$paginator; - } - } else { - //提供全部分类列表 - $sql="select f.id,f.title,f.fund_id,f.fund_type,f.ts_created,count(m.id) as datacount,sum(md.filesize) as filesize - from fund f left join mdfund m on f.id=m.fid left join metadata md on m.uuid=md.uuid left join heiheproject hp on f.fund_id=hp.code - where hp.id is not null and m.uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='heihe') - group by f.id,f.title,f.fund_id,f.fund_type,f.ts_created order by f.fund_id asc"; - $sth = $this->db->prepare($sql); - $sth->execute(); - $rows = $sth->fetchAll(); - $paginator = Zend_Paginator::factory($rows); - $paginator->setCurrentPageNumber($this->_getParam('page')); - $paginator->setItemCountPerPage(10); - $paginator->setView($this->view); - Zend_View_Helper_PaginationControl::setDefaultViewPartial('pagination_param.phtml'); - $this->view->paginator=$paginator; - $this->_helper->viewRenderer('fund-list'); - } - } - - function orgAction() - { - $page = $this->_request->getParam('page'); - $name = $this->_request->getParam('name'); - $state=$this->db->query("select distinct responsible.organisation from responsible left join role on role.resid=responsible.id where role.uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='heihe') and role.role in ('pointOfContact','resourceProvider','owner')"); - $this->view->organisation=$state->fetchAll(); - if (!empty($name)) { - $this->view->codename=$name; - $sql="select distinct m.* from normalmetadata m left join role r on m.uuid=r.uuid left join responsible s on r.resid=s.id where m.uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='heihe') and r.role in ('pointOfContact','resourceProvider','owner') and s.organisation=?"; - $sth = $this->db->prepare($sql); - $sth->execute(array($name)); - $rows = $sth->fetchAll(); - $paginator = Zend_Paginator::factory($rows); - $paginator->setCurrentPageNumber($this->_getParam('page')); - $paginator->setItemCountPerPage(10); - $paginator->setView($this->view); - Zend_View_Helper_PaginationControl::setDefaultViewPartial('pagination_param.phtml'); - $this->view->paginator=$paginator; - } else { - //提供全部分类列表 - } - } - - //实现基于DOI信息的浏览 - function doiAction() - { - $ac = $this->_request->getParam('ac'); - if ($ac=='unready') { - //列出没有DOI的数据 - $sql="select m.* from normalmetadata m where length(m.doi)<3 and m.uuid not in (select uuid from datadoi) and m.uuid in (select ds.uuid from datasource ds left join source s on ds.sourceid=s.id where s.code='heihe') order by m.ts_created desc"; - $this->view->tabID='doi-unready'; - } else if ($ac=='prepare') { - //列出有DOI但还未进行提交申请的数据 - $sql="select m.* from normalmetadata m where length(m.doi)>3 and m.uuid not in (select uuid from datadoi) and m.uuid in (select ds.uuid from datasource ds left join source s on ds.sourceid=s.id where s.code='heihe') order by m.ts_created desc"; - $this->view->tabID='doi-prepare'; - } else if ($ac=='unsubmit') { - //列出有DOI并计划提交申请的数据 - $sql="select m.*,d.doi as datadoi,date(d.ts_created) as ts_created from normalmetadata m left join datadoi d on m.uuid=d.uuid where length(m.doi)>3 and d.ts_created is not null and d.ts_submitted is null and m.uuid in (select ds.uuid from datasource ds left join source s on ds.sourceid=s.id where s.code='heihe') order by d.ts_created desc"; - $this->view->tabID='doi-unsubmit'; - } else if ($ac=='submit') { - //列出有DOI并计划提交申请的数据 - $sql="select m.*,d.doi as datadoi,date(d.ts_submitted) as ts_submitted from normalmetadata m left join datadoi d on m.uuid=d.uuid where length(m.doi)>3 and d.ts_submitted is not null and d.ts_published is null and m.uuid in (select ds.uuid from datasource ds left join source s on ds.sourceid=s.id where s.code='heihe') order by d.ts_submitted desc,d.ts_created desc"; - $this->view->tabID='doi-submit'; - } else if ($ac=='publish' || empty($ac)) { - //默认:列出最新发布的DOI数据 - $sql="select m.*,d.doi as datadoi,date(d.ts_submitted) as ts_submitted,date(d.ts_published) as ts_published from normalmetadata m left join datadoi d on m.uuid=d.uuid where length(m.doi)>3 and d.ts_published is not null and m.uuid in (select ds.uuid from datasource ds left join source s on ds.sourceid=s.id where s.code='heihe') order by d.ts_published desc,d.ts_submitted desc,d.ts_created desc"; - $this->view->tabID='doi-publish'; - } - $sth = $this->db->prepare($sql); - $sth->execute(); - $rows = $sth->fetchAll(); - $paginator = Zend_Paginator::factory($rows); - $paginator->setCurrentPageNumber($this->_getParam('page')); - $paginator->setItemCountPerPage(10); - $paginator->setView($this->view); - Zend_View_Helper_PaginationControl::setDefaultViewPartial('pagination_param.phtml'); - $this->view->paginator=$paginator; - } - - function onlinelistAction() - { - $page=(int)$this->_request->getParam('page'); - if (empty($page)) $page=1; - $limit=30; - $offset=$limit*($page-1); - $state=$this->db->query("select count(*) from heihemetadata where datatype=0 and uuid in (select ds.uuid from datasource ds left join source s on ds.sourceid=s.id where s.code='heihe')"); - $row=$state->fetchAll(); - $sum=$row[0]['count']; - $select=$this->db->select(); - $select->from('heihemetadata','*')->where('datatype=0')->where("uuid in (select ds.uuid from datasource ds left join source s on ds.sourceid=s.id where s.code='heihe')")->order('title')->limitPage($page,$limit); - $this->view->metadata = $this->db->fetchAll($select); - $this->view->page=new Pagination($sum,$page,$limit); - } - - function offlinelistAction() - { - $page=(int)$this->_request->getParam('page'); - if (empty($page)) $page=1; - $limit=30; - $offset=$limit*($page-1); - $state=$this->db->query("select count(*) from heihemetadata where datatype=1 and uuid in (select ds.uuid from datasource ds left join source s on ds.sourceid=s.id where s.code='heihe')"); - $row=$state->fetchAll(); - $sum=$row[0]['count']; - $select=$this->db->select(); - $select->from('heihemetadata','*')->where('datatype=1')->where("uuid in (select ds.uuid from datasource ds left join source s on ds.sourceid=s.id where s.code='heihe')")->order('title')->limitPage($page,$limit); - $this->view->metadata = $this->db->fetchAll($select); - $this->view->page=new Pagination($sum,$page,$limit); - } -} \ No newline at end of file diff --git a/application/default/controllers/HiwaterController.php b/application/default/controllers/HiwaterController.php deleted file mode 100644 index eaeb061c..00000000 --- a/application/default/controllers/HiwaterController.php +++ /dev/null @@ -1,685 +0,0 @@ -_helper->layout->setLayout('hiwater'); - $this->debug = 1; - $acName = $this->_request->getActionName(); - if(in_array($acName,array("aviation","radiometer","lidar","ccdlidar","widas",'ccdwidas',"nearvis","thermal"))) - { - $this->view->pageIn = "collapse1"; - } - else if(in_array($acName,array("airborne","demdsm","reflectance","vegtypeair","vegparam","temperature","soilmoisture"))) - { - $this->view->pageIn = "collapse2"; - } - else if(in_array($acName,array("hmon",'super','normal','prec'))) - { - $this->view->pageIn = "collapse3"; - } - else if(in_array($acName,array("cgs","calibration","ground",'sync'))) - { - $this->view->pageIn = "collapse4"; - } - else if(in_array($acName,array("wsn","waternet","soilnet","bnunet",'bnulai'))) - { - $this->view->pageIn = "collapse5"; - } - else if(in_array($acName,array("mso","autometeo","ec",'las',"cosmos","tdp","isotope"))) - { - $this->view->pageIn = "collapse6"; - } - else if(in_array($acName,array("rsproduct","dem","precipitation",'sm',"snow","vegtype","vegcov",'phenology','npp'))) - { - $this->view->pageIn = "collapse7"; - } - else if(in_array($acName,array("browse","thumb","fund","tag","timeline","timemap",'author','organization'))) - { - $this->view->pageIn = "collapse10"; - } - else if(in_array($acName,array("other"))) - { - $this->view->pageIn = "collapse9"; - } - $this->view->pageID = "hiwater-".$acName; - $this->_helper->layout->setLayout('heihe'); - } - - function indexAction() - { - $sql="select m.uuid,m.title,m.id,m.description from normalmetadata m left join thumbnail t on m.id=t.id where m.uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='hiwater') and length(t.data)>2 order by random() limit 3"; - $this->view->meatdata=$this->db->fetchAll($sql); - $archive = new Archive($this->db); - $this->view->info = $archive->getOneArchive('HiWATER:黑河流域生态-水文过程综合遥感观测联合试验','about'); - } - - /* - * 数据浏览 - */ - function browseAction() - { - $page=(int)$this->_request->getParam('page'); - if (empty($page)) $page=1; - $offset=$this->limit*($page-1); - $state=$this->db->query("select count(*) from normalmetadata where uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='hiwater') "); - $row=$state->fetchAll(); - $sum=$row[0]['count']; - $select=$this->db->select(); - $select->from('normalmetadata','*')->where(" uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='hiwater') ")->order('title desc')->limitPage($page,$this->limit); - $this->view->metadata = $this->db->fetchAll($select); - $this->view->page=new Pagination($sum,$page,$this->limit); - $this->view->offset=$offset+1; - } - - function thumbAction() - { - $page=(int)$this->_request->getParam('page'); - if (empty($page)) $page=1; - $offset=$this->limit*($page-1); - $state=$this->db->query("select count(*) from normalmetadata where uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='hiwater') "); - $row=$state->fetchAll(); - $sum=$row[0]['count']; - $select=$this->db->select(); - $select->from('normalmetadata as m','m.*') - ->where(" uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='hiwater') ") - ->order('m.title desc')->limitPage($page,$this->limit); - $this->view->metadata = $this->db->fetchAll($select); - $this->view->page=new Pagination($sum,$page,$this->limit); - } - - function documentAction() - { - $page=(int)$this->_request->getParam('page'); - if (empty($page)) $page=1; - $offset=$this->limit*($page-1); - $row=$this->db->fetchAll("select count(*) from reference where id in (select refid from mdref where uuid in (select uuid from normalmetadata where uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='hiwater') ))"); - $sum=$row[0]['count']; - $sql="select * from reference where id in (select refid from mdref where uuid in (select uuid from normalmetadata where uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='hiwater') )) order by reference limit ? offset ?"; - $this->view->refs=$this->db->fetchAll($sql,array($this->limit,$offset)); - $this->view->page=new Pagination($sum,$page,$this->limit,"文献"); - $this->view->offset=$offset+1; - } - - function aviationAction() - { - $this->getmdlimited(array('WiDAS','PLMR','Lidar','CASI','热红外高光谱数据'),'航空遥感'); - $this->_helper->viewRenderer('base'); - } - function radiometerAction() - { - $this->getmdlimited('PLMR','航空遥感'); - $this->_helper->viewRenderer('base'); - } - function lidarAction() - { - $this->getmdlimited('激光雷达','航空遥感'); - $this->_helper->viewRenderer('base'); - } - function ccdlidarAction() - { - $this->getmdlimited('CCD','航空遥感',"激光雷达"); - $this->_helper->viewRenderer('base'); - } - function widasAction() - { - $this->getmdlimited('WIDAS','航空遥感'); - $this->_helper->viewRenderer('base'); - } - function ccdwidasAction() - { - $this->getmdlimited('CCD','航空遥感','WIDAS'); - $this->_helper->viewRenderer('base'); - } - function nearvisAction() - { - $this->getmdlimited('CASI','航空遥感'); - $this->_helper->viewRenderer('base'); - } - function thermalAction() - { - $this->getmdlimited('热红外高光谱数据','航空遥感'); - $this->_helper->viewRenderer('base'); - } - - function airborneAction() - { - $this->getmd(array('航空遥感产品','种植结构图','植被类型图','植被结构参数','数字高程模型','数字表面模型','地表温度','地表土壤水文')); - $this->_helper->viewRenderer('base'); - } - - function demdsmAction() - { - $this->getmdlimited(array('DEM','DSM','DOM'),"数据产品"); - $this->_helper->viewRenderer('base'); - } - function reflectanceAction() - { - $this->getmdlimited(array('地表反照率','地表反射率'),"数据产品"); - $this->_helper->viewRenderer('base'); - } - function vegtypeairAction() - { - $this->getmdlimited(array('植被类型',''),'数据产品'); - $this->_helper->viewRenderer('base'); - } - function vegparamAction() - { - $this->getmdlimited(array("",'植被结构参数'),"数据产品"); - $this->_helper->viewRenderer('base'); - } - function soilmoistureAction() - { - $this->getmdlimited(array('','土壤水分'),"数据产品"); - $this->_helper->viewRenderer('base'); - } - function temperatureAction() - { - $this->getmdlimited(array('','地表温度'),"数据产品"); - $this->_helper->viewRenderer('base'); - } - - function hmonAction() - { - $this->getmdlimited(array('西支','黄藏寺','黄草沟','峨堡','景阳岭','阿柔阳坡','阿柔阴坡','戈壁站','神沙窝沙漠站','花寨子荒漠站','张掖湿地站','阿柔超级站','大满超级站','四道桥超级站'),'水文气象'); - $md=$this->view->metadata; - $this->getmd(array('','河川径流观测')); - $this->view->metadata=array_merge($md,$this->view->metadata); - $this->_helper->viewRenderer('base'); - } - function superAction() - { - $this->getmdlimited(array('阿柔超级站','大满超级站','四道桥超级站'),'水文气象'); - $this->_helper->viewRenderer('base'); - } - function normalAction() - { - $this->getmdlimited(array('景阳岭站','峨堡站','黄草沟站','阿柔阴坡站','阿柔阳坡站','黄藏寺站','大沙龙站','寺大隆站','排露沟林前气象站','水源涵养林研究院观测站','巴吉滩戈壁站','神沙窝沙漠站','张掖湿地站', - '花寒子荒漠站','五里墩气象站','四道桥混合林站','四道桥胡杨林站','四道桥裸地站','四道桥农田站','黑河上游生态-水文试验研究站','临泽内陆河流域研究站','阿拉善荒漠生态-水文实验研究站'),'水文气象'); - $this->_helper->viewRenderer('base'); - } - - function autometeoAction() - { - $this->getmd(array('','自动气象站')); - $this->_helper->viewRenderer('base'); - $archive = new Archive($this->db); - $this->view->info = $archive->getOneArchive('HiWATER-通量观测矩阵','about'); - } - function ecAction() - { - $this->getmd(array('','涡动相关仪')); - $this->_helper->viewRenderer('base'); - $archive = new Archive($this->db); - $this->view->info = $archive->getOneArchive('HiWATER-通量观测矩阵','about'); - } - function lasAction() - { - $this->getmd(array('','大孔径闪烁仪')); - $this->_helper->viewRenderer('base'); - $archive = new Archive($this->db); - $this->view->info = $archive->getOneArchive('HiWATER-通量观测矩阵','about'); - - } - function precAction() - { - $this->getmd(array('','河川径流观测')); - $this->_helper->viewRenderer('base'); - } - - function cgsAction() - { - $this->getmd(array('定标观测','地基遥感观测','地面同步观测')); - $this->_helper->viewRenderer('base'); - } - function calibrationAction() - { - $this->getmd(array('','定标观测')); - $this->_helper->viewRenderer('base'); - } - function groundAction() - { - $this->getmd(array('','地基遥感观测')); - $this->_helper->viewRenderer('base'); - } - function syncAction() - { - $this->getmd(array('','地面同步观测')); - $this->_helper->viewRenderer('base'); - } - - function wsnAction() - { - $this->getmd(array('WATERNET','SoilNET','BNUNET','BNULAI')); - $this->_helper->viewRenderer('base'); - } - function waternetAction() - { - $this->getmd(array('','WATERNET')); - $this->_helper->viewRenderer('base'); - } - function soilnetAction() - { - $this->getmd(array('','SoilNET')); - $this->_helper->viewRenderer('base'); - } - function bnunetAction() - { - $this->getmd(array('','BNUNET')); - $this->_helper->viewRenderer('base'); - } - function bnulaiAction() - { - $this->getmdlimited('LAI','生态水文无线传感器网络'); - $this->_helper->viewRenderer('base'); - } - - function satelliteAction() - { - $this->getmd(array('','卫星遥感')); - $this->_helper->viewRenderer('base'); - } - - function soilAction() - { - $this->getmd(array('','卫星遥感')); - $this->_helper->viewRenderer('base'); - } - - function meteoAction() - { - $this->getmd('气象','theme'); - } - - function hydroAction() - { - $this->getmd('水文观测','theme'); - } - function irragationAction() - { - $this->getmd('灌溉','theme'); - } - - function obsAction() - { - $this->getmd('试验','theme'); - } - - function msoAction() - { - $this->getmd(array('自动气象站','涡动相关仪','大孔径闪烁仪','稳定同位素观测系统','热扩散液流计(TDP)','宇宙射线土壤水分')); - $this->_helper->viewRenderer('base'); - $archive = new Archive($this->db); - $this->view->info = $archive->getOneArchive('HiWATER-通量观测矩阵','about'); - } - - function isotopeAction() - { - $this->getmd(array('','稳定同位素观测系统')); - $this->_helper->viewRenderer('base'); - } - - function tdpAction() - { - $this->getmd(array('','热扩散液流计(TDP)')); - $this->_helper->viewRenderer('base'); - } - - function cosmosAction() - { - $this->getmd(array('','宇宙射线土壤水分')); - $this->_helper->viewRenderer('base'); - } - - function rsproductAction() - { - $this->getmdlimited(array('DEM','DOM','降水','土壤水分','积雪','植被类型','植被覆盖度','物候期','NPP'),'数据产品'); - $this->_helper->viewRenderer('base'); - } - - function demAction() - { - $this->getmdlimited(array('DEM','DOM'),'数据产品'); - $this->_helper->viewRenderer('base'); - } - - function precipitationAction() - { - $this->getmdlimited(array('降水',''),'数据产品'); - $this->_helper->viewRenderer('base'); - } - function smAction() - { - $this->getmdlimited(array('土壤水分',"卫星遥感"),'数据产品'); - $this->_helper->viewRenderer('base'); - } - function snowAction() - { - $this->getmdlimited(array('积雪',"卫星遥感"),'数据产品'); - $this->_helper->viewRenderer('base'); - } - function vegtypeAction() - { - $this->getmdlimited(array('植被类型','卫星遥感'),'数据产品'); - $this->_helper->viewRenderer('base'); - } - function vegcovAction() - { - $this->getmdlimited(array('植被覆盖度','卫星遥感'),'数据产品'); - $this->_helper->viewRenderer('base'); - } - function phenologyAction() - { - $this->getmdlimited(array('物候期','卫星遥感'),'数据产品'); - $this->_helper->viewRenderer('base'); - } - function nppAction() - { - $this->getmdlimited(array('NPP','卫星遥感'),'数据产品'); - $this->_helper->viewRenderer('base'); - } - - function listAction() - { - $sql="select uuid,title from normalmetadata where uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='hiwater') order by timebegin,title"; - $this->view->metadata=$this->db->fetchAll($sql); - } - - function tagAction() - { - $key = $this->_request->getParam('key'); - $keytype = $this->_request->getParam('keytype'); - $page=(int)$this->_request->getParam('page'); - if (empty($page)) $page=1; - $offset=$this->limit*($page-1); - if (!empty($key)) { - $this->view->codename=$key; - $sql=$this->db->quoteInto("select count(k.id) from keyword k left join normalmetadata m on k.id=m.id where m.uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='hiwater') and k.keyword=?",$key); - $state=$this->db->query($sql); - $row=$state->fetchAll(); - $sum=$row[0]['count']; - $sql="select uuid,title,id,description from normalmetadata where uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='hiwater') and id in (select id from keyword where keyword='".$key."') order by timebegin,title limit ? offset ?"; - $this->view->metadata=$this->db->fetchAll($sql,array($this->limit,$offset)); - $this->view->page=new Pagination($sum,$page,$this->limit); - } else { - $sql="select k.keyword,count(*),k.keytype from keyword k left join normalmetadata m on k.id=m.id where m.uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='hiwater') "; - if (!empty($keytype) && ($keytype=='place' || $keytype=='theme' || $keytype=='discipline'||$keytype=='temporal')) $sql.=" and k.keytype='".$keytype."'"; - $sql.=' group by k.keyword,k.keytype order by k.keytype,k.keyword,count desc'; - $state=$this->db->query($sql); - $this->view->keytype=$keytype; - $this->view->keywords=$state->fetchAll(); - } - } - - function searchAction() - { - $this->view->addHelperPath('helper','Zend_View_Helper_'); - $form=new SearchForm(); - $this->view->form=$form; - //$form->submit->setLabel('快速搜索'); - $key=$this->_request->getParam('q'); - if (!empty($key)) { - $search=new SimpleSearch($key); - $where=$search->sql_expr(array("title","description")); - $page=@(int)$this->_request->getParam('page'); - if (empty($page)) $page=1; - $offset=$this->limit*($page-1); - $row=$this->db->fetchAll("select count(*) from normalmetadata where uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='hiwater') and ".$where); - $sum=$row[0]['count']; - $sql="select uuid,title,id,description from normalmetadata where uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='hiwater') and ".$where." order by timebegin,title limit ? offset ?"; - $this->view->metadata=$this->db->fetchAll($sql,array($this->limit,$offset)); - $this->view->page=new Pagination($sum,$page,$this->limit); - $this->view->key=$key; - $this->view->offset=$offset+1; - } - } - - function timemapAction() - { - $sql="select id,uuid,west,south,north,east,title,timebegin,timeend from normalmetadata where uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='hiwater') and timebegin is not null"; - $this->view->rows=$this->db->fetchAll($sql); - } - - function timelineAction() - { - $fn="hiwatertime.xml"; - $rows=$this->db->fetchAll("select ts_created from normalmetadata where uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='hiwater') order by ts_created desc limit 1"); - $last_update=strtotime($rows[0]['ts_created']); - if (!file_exists($fn) || (filemtime($fn)<$last_update)) - { - $dateformat="M j Y"; - $rows=$this->db->fetchAll("select id,uuid,description,title,timebegin,timeend from normalmetadata where uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='hiwater') and timebegin is not null order by timebegin,title"); - $timexml=''; - foreach($rows as $row) { - $timexml.=''; - $desc_length=mb_strlen($row['description'],"UTF-8"); - $desc=mb_substr($row['description'],0,($desc_length>300)?300:$desc_length,"UTF-8"); - if ($desc_length>300) $desc.=" ..."; - $timexml.=htmlspecialchars($desc); - $timexml.="\n"; - } - $timexml.=''; - $fp=fopen($fn,'w'); - fwrite($fp,$timexml); - fclose($fp); - } - } - - function categoryAction() - { - $code = (int)$this->_request->getParam('code'); - $page=(int)$this->_request->getParam('page'); - if (empty($page)) $page=1; - $offset=$this->limit*($page-1); - $this->view->category=$this->db->fetchAll("select c.code,name,name_zh,count(*) from category c left join normalmetadata m on c.id=m.id,categorycode cc where c.code=cc.code and m.uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='hiwater') group by c.code,cc.name,cc.name_zh"); - if ($code>0 && $code<20) { - $row=$this->db->fetchAll("select count(*) from normalmetadata where uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='hiwater') and id in (select id from category where code=".$code.")"); - $sum=$row[0]['count']; - $sql="select uuid,title,description,id from normalmetadata where uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='hiwater') and id in (select distinct id from category where code=".$code.") order by timebegin,title limit ? offset ?"; - $this->view->metadata=$this->db->fetchAll($sql,array($this->limit,$offset)); - $this->view->page=new Pagination($sum,$page,$this->limit); - $this->view->offset=$offset+1; - $row=$this->db->fetchRow("select name,name_zh from categorycode where code=?",$code); - $this->view->codename=(empty($row['name_zh'])?$row['name']:$row['name_zh']); - } else { - //提供全部分类列表 - } - } - - function viewAction() - { - parent::viewAction(); - $this->_helper->viewRenderer('hiwater/view'); - } - - private function getmd($keyword,$type='theme') - { - $page=(int)$this->_request->getParam('page'); - if (empty($page)) $page=1; - $offset=$this->limit*($page-1); - if (!is_array($keyword)) - { - $keyword=array($keyword); - } - $key="("; - foreach($keyword as $k) - { - $key.="'".$k."',"; - } - $key=substr($key,0,-1); - $key.=")"; - $keyword=$key; - - $state=$this->db->query("select count(m.*) from normalmetadata m left join datasource d on m.uuid=d.uuid left join source s on d.sourceid=s.id where s.code='hiwater' and m.id in (select id from keyword where keytype='".$type."' and keyword in ".$keyword.")"); - $row=$state->fetchAll(); - $sum=$row[0]['count']; - //@todo: add order with title - $sql="select uuid,title from normalmetadata where uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='hiwater') and id in (select id from keyword where keytype='".$type."' and keyword in ".$keyword.") order by title limit ? offset ?"; - $this->view->metadata=$this->db->fetchAll($sql,array($this->limit,$offset)); - $this->view->page=new Pagination($sum,$page,$this->limit); - $this->view->offset=$offset+1; - } - - //获取多项条件并列关系的数据并必须满足limited条件 - //$keyword:字符串或字符串数组 - //$limited:限制字符串 - private function getmdlimited($keyword,$limited) - { - $page=(int)$this->_request->getParam('page'); - if (empty($page)) $page=1; - $offset=$this->limit*($page-1); - if (!is_array($keyword)) - { - $keyword=array($keyword); - } - $key="("; - foreach($keyword as $k) - { - $key.="'".$k."',"; - } - $key=substr($key,0,-1); - $key.=")"; - $keyword=$key; - - $state=$this->db->query("select count(m.*) from normalmetadata m left join datasource d on m.uuid=d.uuid left join source s on d.sourceid=s.id where s.code='hiwater' and m.id in (select id from keyword where keyword='".$limited."') and m.id in (select id from keyword where keyword in ".$keyword.")"); - $row=$state->fetchAll(); - $sum=$row[0]['count']; - //@todo: add order with title - $sql="select uuid,title from normalmetadata where uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='hiwater') and id in (select id from keyword where keyword='".$limited."') and id in (select id from keyword where keyword in ".$keyword.") order by title limit ? offset ?"; - $this->view->metadata=$this->db->fetchAll($sql,array($this->limit,$offset)); - $this->view->page=new Pagination($sum,$page,$this->limit); - $this->view->offset=$offset+1; - } - - //基于数据作者的浏览(包括认证后的数据作者以及未认证的数据作者) - function authorAction() - { - $ac = $this->_request->getParam('ac'); - $id = (int)$this->_request->getParam('id'); - if ($ac=='verified') { - //已经认证过的数据作者 - $this->view->tabID='author-verified'; - $this->view->ac='verified'; - if ($id) { - //列出作者的数据 - $sql="select username,realname from users where id=?"; - $this->view->author=$this->db->fetchRow($sql,array($id)); - $sql="select m.* from normalmetadata m left join mdauthor a on a.uuid=m.uuid where m.uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='hiwater') and a.userid=?"; - $sth = $this->db->prepare($sql); - $sth->execute(array($id)); - $rows = $sth->fetchAll(); - $paginator = Zend_Paginator::factory($rows); - $paginator->setCurrentPageNumber($this->_getParam('page')); - $paginator->setItemCountPerPage(10); - $paginator->setView($this->view); - Zend_View_Helper_PaginationControl::setDefaultViewPartial('pagination_param.phtml'); - $this->view->paginator=$paginator; - } else { - //已经认证过的数据作者 - $sql="select u.username,u.realname,u.id,count(u.id) as count from mdauthor a left join users u on a.userid=u.id where a.uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='hiwater') and a.status=1 and a.uuid in (select uuid from normalmetadata) group by u.id,u.username,u.realname"; - $sth = $this->db->prepare($sql); - $sth->execute(); - $rows = $sth->fetchAll(); - $paginator = Zend_Paginator::factory($rows); - $paginator->setCurrentPageNumber($this->_getParam('page')); - $paginator->setItemCountPerPage(50); - $paginator->setView($this->view); - Zend_View_Helper_PaginationControl::setDefaultViewPartial('pagination_param.phtml'); - $this->view->paginator=$paginator; - } - } else if ($ac=='unverified' || empty($ac)) { - //未认证的数据作者 - $this->view->tabID='author-unverified'; - $this->view->ac='unverified'; - if ($id) { - //列出数据 - $sql="select individual as username from responsible where id=?"; - $this->view->author=$this->db->fetchRow($sql,array($id)); - $sql="select distinct m.* from normalmetadata m left join role r on m.uuid=r.uuid left join responsible s on r.resid=s.id where r.uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='hiwater') and r.role in ('pointOfContact','resourceProvider','owner') and s.id=?"; - $sth = $this->db->prepare($sql); - $sth->execute(array($id)); - $rows = $sth->fetchAll(); - $paginator = Zend_Paginator::factory($rows); - $paginator->setCurrentPageNumber($this->_getParam('page')); - $paginator->setItemCountPerPage(10); - $paginator->setView($this->view); - Zend_View_Helper_PaginationControl::setDefaultViewPartial('pagination_param.phtml'); - $this->view->paginator=$paginator; - } else { - //列出所有作者 - $sql="select distinct responsible.individual as username,responsible.id from responsible left join role on role.resid=responsible.id where role.uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='hiwater') and role.role in ('pointOfContact','resourceProvider','owner')"; - $sth = $this->db->prepare($sql); - $sth->execute(); - $rows = $sth->fetchAll(); - $paginator = Zend_Paginator::factory($rows); - $paginator->setCurrentPageNumber($this->_getParam('page')); - $paginator->setItemCountPerPage(50); - $paginator->setView($this->view); - Zend_View_Helper_PaginationControl::setDefaultViewPartial('pagination_param.phtml'); - $this->view->paginator=$paginator; - } - } - } - - function fundAction() - { - $id = (int)$this->_request->getParam('id'); - if (!empty($id)) { - $sql="select * from fund where id=?"; - $this->view->fund=$this->db->fetchRow($sql,array($id)); - if ($this->view->fund) { - $sql="select distinct m.* from normalmetadata m left join mdfund mf on m.uuid=mf.uuid where m.uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='hiwater') and mf.fid=?"; - $sth = $this->db->prepare($sql); - $sth->execute(array($id)); - $rows = $sth->fetchAll(); - $paginator = Zend_Paginator::factory($rows); - $paginator->setCurrentPageNumber($this->_getParam('page')); - $paginator->setItemCountPerPage(10); - $paginator->setView($this->view); - Zend_View_Helper_PaginationControl::setDefaultViewPartial('pagination_param.phtml'); - $this->view->paginator=$paginator; - } - } else { - //提供全部分类列表 - $sql="select f.id,f.title,f.fund_id,f.fund_type,f.ts_created,count(m.id) as datacount,sum(md.filesize) as filesize from fund f left join mdfund m on f.id=m.fid left join metadata md on m.uuid=md.uuid where m.uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='hiwater') group by f.id,f.title,f.fund_id,f.fund_type,f.ts_created order by f.ts_created desc"; - $sth = $this->db->prepare($sql); - $sth->execute(); - $rows = $sth->fetchAll(); - $paginator = Zend_Paginator::factory($rows); - $paginator->setCurrentPageNumber($this->_getParam('page')); - $paginator->setItemCountPerPage(10); - $paginator->setView($this->view); - Zend_View_Helper_PaginationControl::setDefaultViewPartial('pagination_param.phtml'); - $this->view->paginator=$paginator; - $this->_helper->viewRenderer('fund-list'); - } - } - - function organizationAction() - { - $page = $this->_request->getParam('page'); - $name = $this->_request->getParam('name'); - $state=$this->db->query("select distinct responsible.organisation from responsible left join role on role.resid=responsible.id where role.uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='hiwater') and role.role in ('pointOfContact','resourceProvider','owner')"); - $this->view->organisation=$state->fetchAll(); - if (!empty($name)) { - $this->view->codename=$name; - $sql="select distinct m.* from normalmetadata m left join role r on m.uuid=r.uuid left join responsible s on r.resid=s.id where m.uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='hiwater') and r.role in ('pointOfContact','resourceProvider','owner') and s.organisation=?"; - $sth = $this->db->prepare($sql); - $sth->execute(array($name)); - $rows = $sth->fetchAll(); - $paginator = Zend_Paginator::factory($rows); - $paginator->setCurrentPageNumber($this->_getParam('page')); - $paginator->setItemCountPerPage(10); - $paginator->setView($this->view); - Zend_View_Helper_PaginationControl::setDefaultViewPartial('pagination_param.phtml'); - $this->view->paginator=$paginator; - } else { - //提供全部分类列表 - } - } -} \ No newline at end of file diff --git a/application/default/controllers/MetainfoController.php b/application/default/controllers/MetainfoController.php deleted file mode 100644 index c895d039..00000000 --- a/application/default/controllers/MetainfoController.php +++ /dev/null @@ -1,118 +0,0 @@ -_request->getParam('title'); - $filePath="http://wiki.westgis.ac.cn/api.php?format=php&action=query&prop=revisions&titles=$title&rvprop=content&redirects"; - $wikifp=fopen($filePath,'r'); - while (!feof($wikifp)) { - $wikiLines=fgets($wikifp); - $yuchuli=array('";}}}}}}','**','*'); - $chulihou=array('',' ·','·'); - $wikiLine=str_replace($yuchuli,$chulihou,$wikiLines); - if(substr($wikiLine,0,2)=='a:') { - if(strpos($wikiLine,'==')!== false){ - $wikititle=mb_strstr($wikiLine,'==',false); - $this->wikitransform($wikititle,$content); - } - }else { - $this->wikitransform($wikiLine,$content); - } - } - /*$wikicontent=unserialize(file_get_contents($filePath)); - $wiki_keys=array_keys($wikicontent['query']['pages']); - $content= $wikicontent['query']['pages'][$wiki_keys[0]]; - $this->view->title=$content['title']; - $c1=explode('\n',$content['revisions'][0]['*']); - foreach ($c1 as $c2) $this->wikitransform($c2,$tcontent);*/ - $this->view->content=$content; - $this->view->config = Zend_Registry::get('config'); - } - - //transform mediawiki text to local text - function wikitransform($text,&$result) { - if(strpos($text,'=====')!== false&&substr($text,0,1)=='=') { - $wikiFont=str_replace('=====','',$text); - $result.="
$wikiFont
"; - }elseif(strpos($text,'====')!== false&&substr($text,0,1)=='=') { - $wikiFont=str_replace('====','',$text); - $result.="

$wikiFont

"; - }elseif(strpos($text,'===')!== false&&substr($text,0,1)=='=') { - $wikiFont=str_replace('===','',$text); - $result.="

$wikiFont

"; - }elseif(strpos($text,'==')!== false&&substr($text,0,1)=='=') { - $wikiFont=str_replace('==','',$text); - $result.="

$wikiFont

"; - }elseif(strpos($text,'[[image:')!== false||strpos($text,'[[Image:')!== false) { - $wimag=array('[[image:',']]','[[Image:','
','
'); - $imag=str_replace($wimag,'',$text); - $imag=str_replace(' ','_',$imag); - $fname="http://wiki.westgis.ac.cn/api.php?format=php&action=query&prop=imageinfo&titles=image:".$imag."&iiprop=url"; - $image1=unserialize(file_get_contents($fname)); - $image1_keys=array_keys($image1['query']['pages']); - $image2=$image1['query']['pages'][$image1_keys[count($image1_keys)-1]]; - $imagurl=@$image2['imageinfo'][0]['url']; - $result.=""; - //$result.=print_r($image1); - }elseif(substr($text,0,3)=='·[['||substr($text,0,4)=='· [['||substr($text,0,2)=='[[') { - $wikia=array('·[[','· [[','[[',']]'); - $wikiname=str_replace($wikia,'',$text); - $result.='

'.$wikiname.'

'; - }elseif(strpos($text,'[[')!== false) { - $a=array('[[',']]'); - $b=array('',''); - $test=str_replace($a,$b,$text); - preg_match_all("|<[^>]+>(.*)]+>|U",$test,$out,PREG_PATTERN_ORDER); - $name=$out[1][0];//还有问题,测试遇到再解决! - $alink=''; - $c=array($alink,''); - $result.='

'.str_replace($a,$c,$text).'

'; - }elseif(strpos($text,'[http://')!== false||strpos($text,'[ http://')!== false){ - $a=array('[',']'); - $b=array('',''); - $test=str_replace($a,$b,$text); - preg_match_all("|<[^>]+>(.*)]+>|U",$test,$out,PREG_PATTERN_ORDER); - $name=$out[1][0];//还有问题,测试遇到再解决! - $href=''; - $value=mb_strstr($name,' ',false).''; - $result.=str_replace($name,$href.$value,$test); - }elseif(strpos($text,'{|')!== false) { - $wikitable=str_replace("{|",''; - }elseif(strpos($text,'colspan')) { - if(substr($text,-2)=='| '||substr($text,-2)==' |') { - $wikicolspan=array(' |','| '); - $colspan=array('>',''; - }elseif(strpos($text,'!!')!== false||substr($text,0,1)=='!') { - $thh=str_replace("!!",''; - }elseif(strpos($text,'||')!== false||substr($text,0,1)=='|'&&substr($text,0,2)!=='||'&&substr($text,0,2)!=='|+'&&substr($text,0,2)!=='|-'&&substr($text,0,2)!=='|}') { - $tdd=str_replace('||',''; - }elseif(substr($text,0,2)=='|-') { - $wikitrr=str_replace('|-','',$text); - $result.=$wikitrr; - }elseif(substr($text,0,2)=='|}') { - $wikitables=str_replace("|}",'
',''; - } - }elseif(strpos($text,'|+ ')!== false) { - $wikitr=str_replace('|+ ','
',$text); - $result.= $wikitr.'
',$text); - $wikith=str_replace('!','',$thh); - $result.= $wikith.'',$text); - $wikitd=str_replace('|','',$tdd); - $result.= $wikitd.'
',$text); - $result.= $wikitables; - }elseif(substr($text,0,1)=='#') { - $result.= str_replace('#',' ',$text); - }elseif(strpos($text,"'''")!==false) { - $result.= str_replace("'''",'',$text); - }elseif(substr($text,0,1)=="*") { - $result.= str_replace('*','',$text); - }else { - $result.= "

$text

"; - } -} -} \ No newline at end of file diff --git a/application/default/controllers/NetkitesController.php b/application/default/controllers/NetkitesController.php deleted file mode 100755 index ece70e0e..00000000 --- a/application/default/controllers/NetkitesController.php +++ /dev/null @@ -1,27 +0,0 @@ -view->config = Zend_Registry::get('config'); - } - function faqAction() - { - } - function useAction() - { - } - function resourceAction() - { - } - function applyAction() - { - } - function driverAction() - { - } -} \ No newline at end of file diff --git a/application/default/controllers/QzrController.php b/application/default/controllers/QzrController.php deleted file mode 100644 index 9e250be3..00000000 --- a/application/default/controllers/QzrController.php +++ /dev/null @@ -1,1100 +0,0 @@ -_helper->layout->setLayout('heihe'); - $this->debug = 1; - } - - function indexAction() - { - $sql="select m.uuid,m.title,m.id,m.description from normalmetadata m left join thumbnail t on m.id=t.id where m.uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='heihe') and length(t.data)>2 order by random() limit 3"; - $this->view->meatdata=$this->db->fetchAll($sql); - } - - function newsAction() - { - $this->view->theme = new Theme(); - - $title=$this->_request->getParam('title'); - - if($title == "national_geog") - { - - } - - return true; - $archive=new Archive($this->db); - $this->view->infos = $archive->getOneArchive($title); - } - - /* - * 数据浏览 - */ - function browseAction() - { - $page=(int)$this->_request->getParam('page'); - if (empty($page)) $page=1; - $offset=$this->limit*($page-1); - $state=$this->db->query("select count(*) from normalmetadata where uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='heihe') "); - $row=$state->fetchAll(); - $sum=$row[0]['count']; - $select=$this->db->select(); - $select->from('normalmetadata','*')->where(" uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='heihe') ")->order('title desc')->limitPage($page,$this->limit); - $this->view->metadata = $this->db->fetchAll($select); - $this->view->page=new Pagination($sum,$page,$this->limit); - $this->view->offset=$offset+1; - } - - function thumbAction() - { - $page=(int)$this->_request->getParam('page'); - if (empty($page)) $page=1; - $offset=$this->limit*($page-1); - $state=$this->db->query("select count(*) from normalmetadata where uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='heihe') "); - $row=$state->fetchAll(); - $sum=$row[0]['count']; - $select=$this->db->select(); - $select->from('normalmetadata as m','m.*') - ->where(" uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='heihe') ") - ->order('m.title desc')->limitPage($page,$this->limit); - $this->view->metadata = $this->db->fetchAll($select); - $this->view->page=new Pagination($sum,$page,$this->limit); - } - - function documentAction() - { - $page=(int)$this->_request->getParam('page'); - if (empty($page)) $page=1; - $offset=$this->limit*($page-1); - $row=$this->db->fetchAll("select count(*) from reference where id in (select refid from mdref where uuid in (select uuid from normalmetadata where uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='heihe') ))"); - $sum=$row[0]['count']; - $sql="select * from reference where id in (select refid from mdref where uuid in (select uuid from normalmetadata where uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='heihe') )) order by reference limit ? offset ?"; - $this->view->refs=$this->db->fetchAll($sql,array($this->limit,$offset)); - $this->view->page=new Pagination($sum,$page,$this->limit,"文献"); - $this->view->offset=$offset+1; - } - - function baseAction() - { - $page=(int)$this->_request->getParam('page'); - if (empty($page)) $page=1; - $offset=$this->limit*($page-1); - $state=$this->db->query("select count(*) from normalmetadata where uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='heihe') and id in (select id from keyword where keytype='theme' and (keyword='冰川' or keyword='沙漠' or keyword='地貌' or keyword='植被' or keyword='草场' or keyword='沙漠化' or keyword='基础地理' or keyword='遥感影像' or keyword='水文地质' or keyword='社会经济' or keyword='人口' or keyword='SWAT' or keyword='NPP' or keyword='WRF' or keyword='辐射' or keyword='NEP'))"); - $row=$state->fetchAll(); - $sum=$row[0]['count']; - $sql="select uuid,title from normalmetadata where uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='heihe') and id in (select id from keyword where keytype='theme' and (keyword='冰川' or keyword='沙漠' or keyword='地貌' or keyword='植被' or keyword='草场' or keyword='沙漠化' or keyword='基础地理' or keyword='遥感影像' or keyword='水文地质' or keyword='社会经济' or keyword='人口' or keyword='SWAT' or keyword='NPP' or keyword='WRF' or keyword='辐射' or keyword='NEP')) order by timebegin,title limit ? offset ?"; - $this->view->metadata=$this->db->fetchAll($sql,array($this->limit,$offset)); - $this->view->page=new Pagination($sum,$page,$this->limit); - $this->view->offset=$offset+1; - } - - function geobaseAction() - { - $this->getmd('基础地理'); - } - - function coreAction() - { - $page=(int)$this->_request->getParam('page'); - if (empty($page)) $page=1; - $offset=$this->limit*($page-1); - $state=$this->db->query("select count(*) from normalmetadata where uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='heihe') and id in (select id from keyword where keytype='theme' and (keyword='DEM' or keyword='土地利用' or keyword='土壤' or keyword='气象' or keyword='水文观测' or keyword='灌溉' or keyword='试验'))"); - $row=$state->fetchAll(); - $sum=$row[0]['count']; - $sql="select uuid,title from normalmetadata where uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='heihe') and id in (select id from keyword where keytype='theme' and (keyword='DEM' or keyword='土地利用' or keyword='土壤' or keyword='气象' or keyword='水文观测' or keyword='灌溉' or keyword='试验')) order by timebegin,title limit ? offset ?"; - $this->view->metadata=$this->db->fetchAll($sql,array($this->limit,$offset)); - $this->view->page=new Pagination($sum,$page,$this->limit); - $this->view->offset=$offset+1; - } - - function demAction() - { - $this->getmd('DEM'); - } - - function rsAction() - { - $this->getmd('遥感影像'); - } - - function waterAction() - { - $this->getmd('水文地质'); - } - - function modelAction() - { - $page=(int)$this->_request->getParam('page'); - if (empty($page)) $page=1; - $offset=$this->limit*($page-1); - $state=$this->db->query("select count(*) from normalmetadata where uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='heihe') and id in (select id from keyword where keytype='theme' and (keyword='WRF' or keyword='NPP' or keyword='SWAT' or keyword='NEP' or keyword='辐射'))"); - $row=$state->fetchAll(); - $sum=$row[0]['count']; - $sql="select uuid,title from normalmetadata where uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='heihe') and id in (select id from keyword where keytype='theme' and (keyword='WRF' or keyword='NPP' or keyword='SWAT' or keyword='NEP' or keyword='辐射')) order by timebegin,title limit ? offset ?"; - $this->view->metadata=$this->db->fetchAll($sql,array($this->limit,$offset)); - $this->view->page=new Pagination($sum,$page,$this->limit); - $this->view->offset=$offset+1; - } - - function economicAction() - { - $page=(int)$this->_request->getParam('page'); - if (empty($page)) $page=1; - $offset=$this->limit*($page-1); - $state=$this->db->query("select count(*) from normalmetadata where uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='heihe') and id in (select id from keyword where keytype='theme' and (keyword='人口' or keyword='社会经济'))"); - $row=$state->fetchAll(); - $sum=$row[0]['count']; - $sql="select uuid,title from normalmetadata where uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='heihe') and id in (select id from keyword where keytype='theme' and (keyword='人口' or keyword='社会经济')) order by timebegin,title limit ? offset ?"; - $this->view->metadata=$this->db->fetchAll($sql,array($this->limit,$offset)); - $this->view->page=new Pagination($sum,$page,$this->limit); - $this->view->offset=$offset+1; - } - - function landsurfaceAction() - { - $page=(int)$this->_request->getParam('page'); - if (empty($page)) $page=1; - $offset=$this->limit*($page-1); - $state=$this->db->query("select count(*) from normalmetadata where uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='heihe') and id in (select id from keyword where keytype='theme' and (keyword='冰川' or keyword='沙漠' or keyword='地貌' or keyword='植被' or keyword='草场' or keyword='沙漠化'))"); - $row=$state->fetchAll(); - $sum=$row[0]['count']; - $sql="select uuid,title from normalmetadata where uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='heihe') and id in (select id from keyword where keytype='theme' and (keyword='冰川' or keyword='沙漠' or keyword='地貌' or keyword='植被' or keyword='草场' or keyword='沙漠化')) order by timebegin,title limit ? offset ?"; - $this->view->metadata=$this->db->fetchAll($sql,array($this->limit,$offset)); - $this->view->page=new Pagination($sum,$page,$this->limit); - $this->view->offset=$offset+1; - } - - function landuseAction() - { - $this->getmd('土地利用','theme'); - } - - function soilAction() - { - $this->getmd('土壤','theme'); - } - - function meteoAction() - { - $this->getmd('气象','theme'); - } - - function hydroAction() - { - $this->getmd('水文观测','theme'); - } - function irragationAction() - { - $this->getmd('灌溉','theme'); - } - - function obsAction() - { - $this->getmd('试验','theme'); - } - - function listAction() - { - $sql="select uuid,title from normalmetadata where uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='heihe') order by timebegin,title"; - $this->view->metadata=$this->db->fetchAll($sql); - } - - function tagAction() - { - $key = $this->_request->getParam('key'); - $page=(int)$this->_request->getParam('page'); - if (empty($page)) $page=1; - $offset=$this->limit*($page-1); - if (!empty($key)) { - $this->view->codename=$key; - $sql=$this->db->quoteInto('select count(id) from keyword where keyword=?',$key); - $state=$this->db->query($sql); - $row=$state->fetchAll(); - $sum=$row[0]['count']; - $sql="select uuid,title,id,description from normalmetadata where uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='heihe') and id in (select id from keyword where keyword='".$key."') order by timebegin,title limit ? offset ?"; - $this->view->metadata=$this->db->fetchAll($sql,array($this->limit,$offset)); - $this->view->page=new Pagination($sum,$page,$this->limit); - } else { - $state=$this->db->query("select keyword.keyword,count(*) from keyword left join normalmetadata m on keyword.id=m.id where keyword.keytype='place' and m.uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='heihe') group by keyword.keyword order by count desc"); - $k1=$state->fetchAll(); - $state=$this->db->query("select k.keyword,count(k.keyword) from keyword k left join normalmetadata m on k.id=m.id where k.keytype='theme' and m.uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='heihe') group by k.keyword order by k.keyword"); - $k2=$state->fetchAll(); - $state=$this->db->query("select k.keyword,count(k.keyword) from keyword k left join normalmetadata m on k.id=m.id where k.keytype='discipline' and m.uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='heihe') group by k.keyword order by k.keyword"); - $k3=$state->fetchAll(); - $state=$this->db->query("select k.keyword,count(k.keyword) from keyword k left join normalmetadata m on k.id=m.id where k.keytype='stratum' and m.uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='heihe') group by k.keyword order by k.keyword"); - $k4=$state->fetchAll(); - $state=$this->db->query("select keyword.keyword,count(*) from keyword left join normalmetadata m on keyword.id=m.id where keyword.keytype='temporal' and m.uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='heihe') group by keyword.keyword order by keyword.keyword"); - $k5=$state->fetchAll(); - $this->view->keywords=array('place'=>$k1,'theme'=>$k2,'discipline'=>$k3,'stratum'=>$k4,'temporal'=>$k5); - } - } - - function searchAction() - { - $this->view->addHelperPath('helper','Zend_View_Helper_'); - $form=new SearchForm(); - $this->view->form=$form; - //$form->submit->setLabel('快速搜索'); - $key=$this->_request->getParam('q'); - if (!empty($key)) { - $search=new Search($key); - $where=$search->sql_expr(array("title","description")); - $page=@(int)$this->_request->getParam('page'); - if (empty($page)) $page=1; - $offset=$this->limit*($page-1); - $row=$this->db->fetchAll("select count(*) from normalmetadata where uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='heihe') and ".$where); - $sum=$row[0]['count']; - $sql="select uuid,title,id,description from normalmetadata where uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='heihe') and ".$where." order by timebegin,title limit ? offset ?"; - $this->view->metadata=$this->db->fetchAll($sql,array($this->limit,$offset)); - $this->view->page=new Pagination($sum,$page,$this->limit); - $this->view->key=$key; - $this->view->offset=$offset+1; - } - } - - function timemapAction() - { - $sql="select id,uuid,west,south,north,east,title,timebegin,timeend from normalmetadata where uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='heihe') and timebegin is not null"; - $this->view->rows=$this->db->fetchAll($sql); - } - - function timelineAction() - { - $fn="heihetime.xml"; - $rows=$this->db->fetchAll("select ts_created from normalmetadata where uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='heihe') order by ts_created desc limit 1"); - $last_update=strtotime($rows[0]['ts_created']); - if (!file_exists($fn) || (filemtime($fn)<$last_update)) - { - $dateformat="M j Y"; - $rows=$this->db->fetchAll("select id,uuid,description,title,timebegin,timeend from normalmetadata where uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='heihe') and timebegin is not null order by timebegin,title"); - $timexml=''; - foreach($rows as $row) { - $timexml.=''; - $desc_length=mb_strlen($row['description'],"UTF-8"); - $desc=mb_substr($row['description'],0,($desc_length>300)?300:$desc_length,"UTF-8"); - if ($desc_length>300) $desc.=" ..."; - $timexml.=htmlspecialchars($desc); - $timexml.="\n"; - } - $timexml.=''; - $fp=fopen($fn,'w'); - fwrite($fp,$timexml); - fclose($fp); - } - } - - function categoryAction() - { - $code = (int)$this->_request->getParam('code'); - $page=(int)$this->_request->getParam('page'); - if (empty($page)) $page=1; - $offset=$this->limit*($page-1); - $this->view->category=$this->db->fetchAll("select c.code,name,name_zh,count(*) from category c left join normalmetadata m on c.id=m.id,categorycode cc where c.code=cc.code and m.uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='heihe') group by c.code,cc.name,cc.name_zh"); - if ($code>0 && $code<20) { - $row=$this->db->fetchAll("select count(*) from normalmetadata where uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='heihe') and id in (select id from category where code=".$code.")"); - $sum=$row[0]['count']; - $sql="select uuid,title,description,id from normalmetadata where uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='heihe') and id in (select distinct id from category where code=".$code.") order by timebegin,title limit ? offset ?"; - $this->view->metadata=$this->db->fetchAll($sql,array($this->limit,$offset)); - $this->view->page=new Pagination($sum,$page,$this->limit); - $this->view->offset=$offset+1; - $row=$this->db->fetchRow("select name,name_zh from categorycode where code=?",$code); - $this->view->codename=(empty($row['name_zh'])?$row['name']:$row['name_zh']); - } else { - //提供全部分类列表 - } - } - - private function getmd($keyword,$type='theme') - { - $page=(int)$this->_request->getParam('page'); - if (empty($page)) $page=1; - $offset=$this->limit*($page-1); - $state=$this->db->query("select count(m.*) from normalmetadata m left join datasource d on m.uuid=d.uuid left join source s on d.sourceid=s.id where s.code='heihe' and m.id in (select id from keyword where keytype='".$type."' and keyword='".$keyword."')"); - $row=$state->fetchAll(); - $sum=$row[0]['count']; - //@todo: add order with title - $sql="select uuid,title from normalmetadata where uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='heihe') and id in (select id from keyword where keytype='".$type."' and keyword='".$keyword."') order by timebegin,title limit ? offset ?"; - $this->view->metadata=$this->db->fetchAll($sql,array($this->limit,$offset)); - $this->view->page=new Pagination($sum,$page,$this->limit); - $this->view->offset=$offset+1; - } - - /* - * submitAction() //数据汇交 - * - * param string $ac //动作 - * param int $id //数据模版ID - * param int $group //geonetwork页面跳转参数 - * - * return view - */ - function submitAction(){ - - $ac = $this->_getParam('ac'); - $id = $this->_request->getParam('id'); - $this->wdb=Zend_Db::factory($this->view->config->geonetwork); - - $auth = Zend_Auth::getInstance(); - if($auth->hasIdentity()) - { - $user = $auth->getIdentity(); - $u_id = $user->id; - $this->view->isadmin=false; - if ($user->usertype=='administrator') $this->view->isadmin=true; - } - - if(empty($ac) || $ac == "index") - { - $this->_helper->viewRenderer('submit-index'); - return true; - } - - //新建元数据 - if($ac == "newdata") - { - - $do = $this->_getParam('do'); - - if(empty($do)) - { - $this->_helper->viewRenderer('submit-newdata'); - - $keywords = $this->_request->getParam('q'); - $sql="select id,(regexp_matches(data,'(.*)'))[1] as title,(owner-".$u_id.") as isowner from metadata where istemplate='y' and schemaid='iso19115'"; - if(!empty($keywords)) - { - $this->view->q = $keywords; - $search=new Search($keywords); - $where=$search->sql_expr(array("data")); - $sql.=' and '.$where; - } - $sql.=" order by changedate desc"; - $sth = $this->wdb->prepare($sql); - $sth->execute(); - $rows = $sth->fetchAll(); - - $paginator = Zend_Paginator::factory($rows); - $paginator->setCurrentPageNumber($this->_getParam('page')); - $paginator->setItemCountPerPage(10); - $paginator->setView($this->view); - Zend_View_Helper_PaginationControl::setDefaultViewPartial('pagination_param.phtml'); - $this->view->paginator=$paginator; - - return true; - } - - if($do == "add") - { - $this->_helper->viewRenderer('submit-newdata-add'); - $this->view->pageNav = "newdata-add"; - - $keywords = $this->_request->getParam('q'); - $sql = "SELECT md.title,md.uuid,md.description,gn.id as gid FROM normalmetadata md - left join geonetworkmetadata gn on md.uuid=gn.uuid - WHERE gn.id is not null"; - if(!empty($keywords)) - { - $this->view->q = $keywords; - $search=new Search($keywords); - $where=$search->sql_expr(array("md.title","md.description")); - $sql.=' and '.$where; - } - $sql.=" order by md.ts_created desc"; - $sth = $this->db->prepare($sql); - $sth->execute(); - $rows = $sth->fetchAll(); - - $paginator = Zend_Paginator::factory($rows); - $paginator->setCurrentPageNumber($this->_getParam('page')); - $paginator->setItemCountPerPage(10); - $paginator->setView($this->view); - Zend_View_Helper_PaginationControl::setDefaultViewPartial('pagination_param.phtml'); - $this->view->paginator=$paginator; - - return true; - } - return true; - }//newdata - - //未提交数据 - if($ac == "unsubmit") - { - $do = $this->_getParam('do'); - - //未提交的数据列表 - if(empty($do) || $do=="index") - { - $this->_helper->viewRenderer('submit-unsubmit'); - - $sql = "SELECT (regexp_matches(gn.data,'(.*)'))[1] as title,gn.id,gn.uuid FROM geonetworkmetadata gn - WHERE gn.uuid not in (select uuid from metadata) and gn.owner=? - order by gn.id desc - "; - $sth = $this->db->prepare($sql); - $sth->execute(array($u_id)); - $rows = $sth->fetchAll(); - - $paginator = Zend_Paginator::factory($rows); - $paginator->setCurrentPageNumber($this->_getParam('page')); - $paginator->setItemCountPerPage(15); - $paginator->setView($this->view); - Zend_View_Helper_PaginationControl::setDefaultViewPartial('pagination_param.phtml'); - $this->view->paginator=$paginator; - - return true; - }//index - - //提交 - if($do=="commit") - { - $this->_helper->layout->disableLayout(); - $this->_helper->viewRenderer->setNoRender(); - - $data = ""; - $id = $this->_request->getParam('id'); - try{ - if(empty($id) || !is_numeric($id)) - { - $data = array("error"=>"参数错误"); - $this->jsonexit($data); - return true; - } - - $changelog = $this->_request->getParam('changelog'); - - if(empty($changelog)) - { - $data = array("error"=>'请输入变更信息'); - $this->jsonexit($data); - return true; - } - - // 1. 权限认定:当前用户必须和其owner相同 - // 数据应当没有评审状态,没有作者信息 - $sql="select gn.id from geonetworkmetadata gn - left join mdstatus s on gn.uuid=s.uuid - left join mdauthor a on s.uuid=a.uuid - where (s.id is not null or a.id is not null) and gn.id=?"; - $sth=$this->db->prepare($sql); - $sth->execute(array($id)); - $row=$sth->fetch(); - if (!empty($row)) - { - $data = array("error"=>'错误的入口'); - $this->jsonexit($data); - return true; - } - - $sql="select uuid,data as xml from metadata where id=? and owner=?"; - $sth=$this->wdb->prepare($sql); - $sth->execute(array($id,$u_id)); - $row=$sth->fetch(); - if (empty($row)) - { - $data = array("error"=>'无权限修改数据'); - $this->jsonexit($data); - return true; - }else{ - $uuid = $row['uuid']; - } - - //检查元数据错误 - $iso=new ISO19115(); - @$iso->loadXML($row['xml']); - if ($iso->validate()) - { - $data=array("error"=>"元数据导入过程中发现错误。
".implode("
",$iso->error)); - $this->jsonexit($data); - return true; - } - - $messages = array(); - - // 保存数据作者信息 - $sql="insert into mdauthor (uuid,userid,ts_activated,status) values(?,?,now(),1)"; - $sth=$this->db->query($sql,array($row['uuid'],$u_id)); - - // 2. 保存变化记录 save changelog & userid for the latest version - $sql = "UPDATE mdversion SET changelog=?,userid=? WHERE id in (select id from mdversion where uuid=? order by ts_created desc limit 1)"; - $this->db->query($sql,array($changelog,$u_id,$row['uuid'])); - - // 处理文件权限和数据信息 - $ftp_user = "heihe".$u_id."upload"; - $sql = "SELECT * FROM pureftp WHERE userid=? AND homedir LIKE ?"; - $sth = $this->db->prepare($sql); - $sth->execute(array($ftp_user,'%'.$uuid.'%')); - $row1 = $sth->fetch(PDO::FETCH_ASSOC); - - if(!empty($row1['passwd'])) - { - $old=umask(0); - //$this->chmodr($row1['homedir'],1444); - umask($old); - } - - //$path = $row1['homedir']; - $path = '/var/www/westdc.westgis.ac.cn/data/heihe_upload/'.$uuid.'/'; - - //delete dataset & datafile records - $sql="delete from dataset where uuid=?"; - $sth = $this->db->prepare($sql); - $sth->execute(array($uuid)); - //自动添加数据分类为黑河 - $sql="insert into datasource (uuid,sourceid) values(?,1)"; - $sth=$this->db->prepare($sql); - try{$sth->execute(array($uuid));}catch(Exception $e) {} - - $sql = "INSERT INTO dataset (uuid,path) VALUES (?,?) RETURNING id"; - $sth = $this->db->prepare($sql); - $rs = $sth->execute(array($uuid,$path)); - - if(!$rs) - { - $messages[] = "元数据信息写入失败"; - /* - $data = array("error"=>'元数据信息写入失败'); - $this->jsonexit($data); - return true; - */ - } - - $temp = $sth->fetch(PDO::FETCH_ASSOC); - - $dsid = $temp['id']; - - $dir = new mydir(); - $files=$dir->recursive($path); - - foreach ($files as $k=>$v) - { - //$pathinfo = pathinfo($path.$v); - $filename = mb_substr($v,mb_strlen($path)+1); - $filesize = filesize($v); - $isdir=is_dir($v)?1:0; - $depth=substr_count($filename,"/")+1; - if (substr($filename,-1,1)=='/') $depth--; - //$this->chmodr($path.$v,0444); - $sql = "INSERT INTO datafile (dsid,filename,filesize,isdir,depth) VALUES (?,?,?,?,?)"; - $sth = $this->db->prepare($sql); - $rs = $sth->execute(array($dsid,$filename,$filesize,$isdir,$depth)); - if(!$rs) - { - $messages[] = "数据文件".$filename.'写入失败'; - } - } - - - // 3. 保存数据评审状态 - //导入元数据 - $iso->saveDB($this->db); - //进入评审库 - $sql="insert into mdstatus (uuid,status,userid) values(?,?,?)"; - $this->db->query($sql,array($uuid,0,$u_id)); - - //email to admin - $mail=new WestdcMailer($this->view->config->smtp); - $mail->setFrom($this->view->config->service->email,'数据服务组'); - $mailtp=new EmailText($this->db,"metadata-new-admin",array( - 'user' => $user->username, - 'uuid' => $iso->uuid, - 'email'=> $user->email, - //元数据标题 - 'title'=> $iso->resTitle, - )); - $mail->setBodyText($mailtp->getBody()); - $mail->setSubject($mailtp->getSubject()); - $mail->addTo($this->view->config->service->email); - $mail->send(); - - unset($mail); - unset($mailtp); - //email to author - $mail=new WestdcMailer($this->view->config->smtp); - $mail->setFrom($this->view->config->service->email,'数据服务组'); - $mailtp=new EmailText($this->db,"heihe-new-author",array( - 'user' => $user->username, - 'uuid' => $iso->uuid, - 'email'=> $user->email, - //元数据标题 - 'title'=> $iso->resTitle, - )); - $mail->setBodyText($mailtp->getBody()); - $mail->setSubject($mailtp->getSubject()); - $mail->addTo($user->email); - $mail->addCc($this->view->config->service->email); - @$mail->send(); - - $data = array("commited"=>1,"error"=>'该版本已经成功提交,请等待数据中心进一步处理!'); - $this->jsonexit($data); - return true; - }catch(Exception $e) { - $sql="delete from mdstatus where uuid in (select uuid from geonetworkmetadata where id=?)"; - $this->db->query($sql,array($id)); - $sql="delete from mdauthor where userid=? and uuid in (select uuid from geonetworkmetadata where id=?)"; - $this->db->query($sql,array($u_id,$id)); - - $msg = "提交失败,请确认权限后重试"; - if($this->debug>0) - {$msg .= $e->getMessage();} - $data = array("error"=>$msg); - $this->jsonexit($data); - return true; - } - }//commit - - return true; - }//unsubmit - - //FTP - if($ac == "ftp") - { - $this->_helper->layout->disableLayout(); - $this->_helper->viewRenderer->setNoRender(); - - $uuid = $this->_getParam('uuid'); - - $this->view->uuid = $uuid; - - if(empty($uuid) || !preg_match("/^[0-9A-Za-z]{8}-[0-9A-Za-z]{4}-[0-9A-Za-z]{4}-[0-9A-Za-z]{4}-[0-9A-Za-z]{12}$/",$uuid)) - { - $data = array( - 'error'=>"参数错误" - ); - $this->jsonexit($data); - return true; - } - //安全检查: uuid必须是当前用户且为新建数据 - $sql="select * from geonetworkmetadata where uuid=? and uuid not in (select uuid from metadata) and owner=?"; - $sth=$this->db->prepare($sql); - $sth->execute(array($uuid,$u_id)); - $row=$sth->fetch(); - if (empty($row)) - { - $data = array( - 'error'=>"参数错误" - ); - $this->jsonexit($data); - return true; - } - - //ftp 用户名 - $uname = 'heihe'.$u_id.'upload'; - - //ftp路径 - $homedir = "/var/www/westdc.westgis.ac.cn/data/heihe_upload/".$uuid."/"; - - $sql = "SELECT * FROM pureftp WHERE userid='$uname' ORDER BY pkid DESC"; - $sth = $this->db->prepare($sql); - $sth->execute(); - $row = $sth->fetch(); - - $old=umask(0); - @mkdir($homedir,0777); - umask($old); - - if(!empty($row['pkid'])) - { - if(preg_match("/.*".$uuid.".*/",$row['homedir'])) - { - $data = array( - 'statu'=>1, - 'user'=>$row['userid'], - 'passwd'=>$row['passwd'] - ); - - $this->jsonexit($data); - return true; - - }else{ - $uid = 1001; - $gid = 1001; - - $passwd = $this->genRandomString(16); - $sql = "UPDATE pureftp SET passwd=?,uid=?,gid=?,homedir=? WHERE userid=?"; - $sth = $this->db->prepare($sql); - $rs = $sth->execute(array($passwd,$uid,$gid,$homedir,$uname)); - if($rs) - { - $data = array( - 'statu'=>1, - 'user'=>$uname, - 'passwd'=>$passwd - ); - $this->jsonexit($data); - return true; - }else{ - $data = array( - 'error'=>"FTP信息更新失败,请重试" - ); - $this->jsonexit($data); - return true; - } - } - } - - else{ - $uid = 1001; - $gid = 1001; - $passwd = $this->genRandomString(16); - - $sql = "INSERT INTO pureftp (userid,passwd,uid,gid,homedir) VALUES (?,?,?,?,?)"; - $sth = $this->db->prepare($sql); - $rs = $sth->execute(array($uname,$passwd,$uid,$gid,$homedir)); - if($rs) - { - $data = array( - 'statu'=>1, - 'user'=>$uname, - 'passwd'=>$passwd - ); - $this->jsonexit($data); - return true; - }else{ - $data = array( - 'error'=>"FTP信息更新失败,请重试" - ); - $this->jsonexit($data); - return true; - } - }//end if - - }//ftp - - }//function submitAction() - - /* - * projectsAction() 数据汇交计划 - * - * - * - * - */ - function projectsAction() - { - - $ac = $this->_getParam('ac'); - $invite = $this->_getParam('invite'); - - $heihe = new Heihe($this->db); - - $auth = Zend_Auth::getInstance(); - if($auth->hasIdentity()) - { - $user = $auth->getIdentity(); - $uid = $user->id; - $this->view->user_email = $user_email = $user->email; - } - - if(empty($ac) || $ac == "index" || $ac == 'my') - { - $this->_helper->viewRenderer('project-index'); - - //Search Link - $this->view->searchLink = "/heihe/projects/ac/index/"; - - $q = $this->_getParam('q'); - - $wheresql = array(); - - if(!empty($q)) - { - if(!preg_match("/^[\x{4e00}-\x{9fa5}A-Za-z0-9_]+$/u",$q)) - { - $this->view->error = "输入的搜索条件有误,只允许输入汉字、数字、字母"; - return true; - } - $wheresql[] = " (title LIKE '%$q%' OR - code LIKE '%$q%' OR - name LIKE '%$q%')"; - $this->view->searchKeyword = $q; - } - - if($ac == "my") - { - $wheresql[] = " email='$user_email' "; - } - - if(count($wheresql)>0) - { - $wheresql = join(" AND ",$wheresql); - }else{ - $wheresql = ""; - } - - if(!empty($wheresql)) - { - $wheresql = " WHERE ".$wheresql; - } - - $sql = "SELECT * FROM heiheproject $wheresql - ORDER BY id DESC"; - $sth = $this->db->query($sql); - $rows = $sth->fetchAll(); - - foreach ($rows as $k=>$v) - { - $rows[$k]['status'] = $heihe->getStatus($v['status']); - } - - $paginator = Zend_Paginator::factory($rows); - $paginator->setCurrentPageNumber($this->_getParam('page')); - $paginator->setItemCountPerPage(15); - $paginator->setView($this->view); - Zend_View_Helper_PaginationControl::setDefaultViewPartial('pagination_param.phtml'); - $this->view->paginator=$paginator; - - }//ac == index - - if($ac == "submitting") - { - $this->_helper->viewRenderer('project-index'); - - $sql = "SELECT * FROM heiheproject WHERE status<4"; - $sth = $this->db->query($sql); - $rows = $sth->fetchAll(); - - foreach ($rows as $k=>$v) - { - $rows[$k]['status'] = $heihe->getStatus($v['status']); - } - - $paginator = Zend_Paginator::factory($rows); - $paginator->setCurrentPageNumber($this->_getParam('page')); - $paginator->setItemCountPerPage(15); - $paginator->setView($this->view); - Zend_View_Helper_PaginationControl::setDefaultViewPartial('pagination_param.phtml'); - $this->view->paginator=$paginator; - }//ac == submitting 正在提交 - - if($ac == "unsubmit") - { - $this->_helper->viewRenderer('project-index'); - - $sql = "SELECT * FROM heiheproject WHERE attachid IS NULL OR attachid=0"; - $sth = $this->db->query($sql); - $rows = $sth->fetchAll(); - - foreach ($rows as $k=>$v) - { - $rows[$k]['status'] = $heihe->getStatus($v['status']); - } - - $paginator = Zend_Paginator::factory($rows); - $paginator->setCurrentPageNumber($this->_getParam('page')); - $paginator->setItemCountPerPage(15); - $paginator->setView($this->view); - Zend_View_Helper_PaginationControl::setDefaultViewPartial('pagination_param.phtml'); - $this->view->paginator=$paginator; - }//ac == unsubmit 未提交 - - if($ac == "submit") - { - $this->_helper->viewRenderer('project-index'); - - $sql = "SELECT * FROM heiheproject WHERE status=4"; - $sth = $this->db->query($sql); - $rows = $sth->fetchAll(); - - foreach ($rows as $k=>$v) - { - $rows[$k]['status'] = $heihe->getStatus($v['status']); - } - - $paginator = Zend_Paginator::factory($rows); - $paginator->setCurrentPageNumber($this->_getParam('page')); - $paginator->setItemCountPerPage(15); - $paginator->setView($this->view); - Zend_View_Helper_PaginationControl::setDefaultViewPartial('pagination_param.phtml'); - $this->view->paginator=$paginator; - }//ac == submit 已提交 - - if($ac == "upload") - { - $this->_helper->layout->setLayout('layout-iframe'); - $this->_helper->viewRenderer('project-upload'); - - $submit = $this->_getParam('submit'); - - $pid = $this->_getParam('pid'); - - if(empty($pid) || !is_numeric($pid)) - { - $this->view->error = "参数错误"; - return true; - } - - $this->view->pid = $pid; - - if(empty($uid)) - { - $this->view->error = "请先登录"; - return true; - } - - $sql = "SELECT * FROM heiheproject WHERE id=$pid"; - $sth = $this->db->query($sql); - $row = $sth->fetch(); - - if($row['email']!= $user_email) - { - $this->view->error = "您没有权限进行此操作"; - return true; - } - - if(!empty($submit) && empty($this->view->error)) - { - - $files=new files(); - $msg = $files -> upload($this->view->config->upload,$_FILES['Filedata'],'heihe'); - - if(empty($msg['error'])) - { - $msg['error']=""; - $filename = $msg['db_path']; - $filesize = $msg['file_size']; - $filedesc = $this->_request->getParam('filedesc'); - $filetype = $msg['file_type']; - $realname = $msg['realname']; - - if(!empty($row['attachid'])) - { - $sql = "SELECT * FROM attachments WHERE id={$row['attachid']}"; - $sth = $this->db->query($sql); - $attach = $sth->fetch(); - $this->db->exec("DELETE FROM attachments WHERE id={$row['attachid']} AND filetype='heihe'"); - @unlink($this->view->config->upload.$attach['filename']); - } - - $sql = " INSERT INTO attachments (filename,filetype,filedesc,userid,filesize,realname) values - ('$filename','heihe','$filedesc','$uid','$filesize','$realname') RETURNING id"; - $sth = $this->db->prepare($sql); - $sth->execute(); - $att = $sth->fetch(PDO::FETCH_ASSOC); - $msg['attid'] = $attid = $att['id']; - - $sql = "UPDATE heiheproject SET attachid=$attid WHERE id=$pid"; - $sth = $this->db->exec($sql); - - if($sth) - { - $this->view->message = "上传成功"; - }else{ - @unlink($filename); - $this->view->error = '附件上传失败:写入附件表出错'; - return true; - } - }else{ - @unlink($filename); - $this->view->error = "附件上传失败".$msg['error']; - return true; - } - } - - $sql = "SELECT * FROM heiheproject WHERE id=$pid"; - $sth = $this->db->query($sql); - $row = $sth->fetch(); - - $sql = "SELECT * FROM attachments WHERE id = {$row['attachid']}"; - $sth = $this->db->query($sql); - $this->view->att = $sth->fetch(); - - return true; - } - - if(!empty($invite)) - { - - $this->_helper->viewRenderer('project-invite'); - - $pid = $this->_getParam('pid'); - - $level = $heihe->expertActive($pid,$invite,$user_email); - - if($level>100) - { - $this->view->error = "数据中心对您的邀请已经确认!感谢您的支持"; - return true; - }else{ - $this->view->error = $heihe->expertActiveError($level); - return true; - } - - }//专家邀请链接 - - - }//projectsAction() - - function genRandomString($len) - { - $chars = array( - "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", - "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", - "w", "x", "y", "z", "A", "B", "C", "D", "E", "F", "G", - "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", - "S", "T", "U", "V", "W", "X", "Y", "Z", "0", "1", "2", - "3", "4", "5", "6", "7", "8", "9" - ); - $charsLen = count($chars) - 1; - - shuffle($chars); // 将数组打乱 - - $output = ""; - for ($i=0; $i<$len; $i++) - { - $output .= $chars[mt_rand(0, $charsLen)]; - } - return $output; - } - - function chmodr($path, $filemode) { - if (!is_dir($path)) - return chmod($path, $filemode); - - $dh = opendir($path); - while (($file = readdir($dh)) !== false) { - if($file != '.' && $file != '..') { - $fullpath = $path.'/'.$file; - if(is_link($fullpath)) - return FALSE; - elseif(!is_dir($fullpath) && !chmod($fullpath, $filemode)) - return FALSE; - elseif(!$this->chmodr($fullpath, $filemode)) - return FALSE; - } - } - closedir($dh); - if(chmod($path, $filemode)) - return TRUE; - else - return FALSE; - } - - //成为作者后的后继处理工作 - private function author_first($uuid,$author) - { - $sql="insert into mdversion (xml,ts_created,uuid,changelog,userid) - select x.data,m.ts_created,?,?,? from metadata m left join xml x on m.id=x.id - left join mdversion v on m.uuid=v.uuid - where m.uuid=? and v.changelog is null"; - $sth=$this->db->prepare($sql); - try - { - $sth->execute(array($uuid,'初始版本 version 1.0',$author,$uuid)); - } catch(Exception $e){ - // do nothing here. - // 说明之前已经有对应数据 - } - $this->wdb=Zend_Db::factory($this->view->config->geonetwork); - $sql="update metadata set owner=? where uuid=?"; - $sth=$this->wdb->prepare($sql); - $sth->execute(array($author,$uuid)); - } - -} \ No newline at end of file diff --git a/application/default/controllers/WaterController.php b/application/default/controllers/WaterController.php deleted file mode 100644 index 9a85ef10..00000000 --- a/application/default/controllers/WaterController.php +++ /dev/null @@ -1,346 +0,0 @@ -debug = 0; - $acName = $this->_request->getActionName(); - if(in_array($acName,array("cold","bg","ar","bdk","eb"))) - { - $this->view->pageIn = "collapse1"; - } - if(in_array($acName,array("forest","dyk","plg"))) - { - $this->view->pageIn = "collapse2"; - } - if(in_array($acName,array("arid","hzz","yk",'zy','zynoc','lzg','lzs'))) - { - $this->view->pageIn = "collapse3"; - } - if(in_array($acName,array("meteo","autometeo","mobilemeteo","ec",'las','normalmeteo','regionalmeteo','doppler','hydro','airsounding'))) - { - $this->view->pageIn = "collapse4"; - } - if(in_array($acName,array("radiometer","airebone","lidar","widas",'asd'))) - { - $this->view->pageIn = "collapse5"; - } - if(in_array($acName,array("satellite"))) - { - $this->view->pageIn = "collapse6"; - } - if(in_array($acName,array("surveystd","document"))) - { - $this->view->pageIn = "collapse7"; - } - $this->view->pageID = "water-".$acName; - } - - function indexAction() - { - } - function documentAction() - { - $page=(int)$this->_request->getParam('page'); - if (empty($page)) $page=1; - $offset=$this->limit*($page-1); - $row=$this->db->fetchAll("select count(*) from reference where id in (select refid from mdref where uuid in (select m.uuid from normalmetadata m left join datasource d on m.uuid=d.uuid left join source s on s.id=d.sourceid where s.code='water'))"); - $sum=$row[0]['count']; - $sql="select * from reference where id in (select refid from mdref where uuid in (select m.uuid from normalmetadata m left join datasource d on m.uuid=d.uuid left join source s on s.id=d.sourceid where s.code='water')) order by reference limit ? offset ?"; - $this->view->refs=$this->db->fetchAll($sql,array($this->limit,$offset)); - $this->view->page=new Pagination($sum,$page,$this->limit,"文献"); - $this->view->offset=$offset+1; - } - function surveystdAction() - { - } - function coldAction() - { - $this->getmd('上游寒区水文试验区'); - } - function bgAction() - { - $this->getmd('冰沟流域加密观测区'); - } - function arAction() - { - $this->getmd('阿柔加密观测区'); - } - function bdkAction() - { - $this->getmd('扁都口加密观测区'); - } - function ebAction() - { - $this->getmd('峨堡加密观测区'); - } - function forestAction() - { - $this->getmd('森林水文试验区'); - } - function dykAction() - { - $this->getmd('大野口流域加密观测区'); - } - function plgAction() - { - $this->getmd('排露沟流域加密观测区'); - } - function aridAction() - { - $this->getmd('中游干旱区水文试验区'); - } - function hzzAction() - { - $this->getmd('花寨子荒漠加密观测区'); - } - function ykAction() - { - $this->getmd('盈科绿洲加密观测区'); - } - function zyAction() - { - $this->getmd('张掖市加密观测区'); - } - function zynocAction() - { - $this->getmd('观象台加密观测区'); - } - function lzgAction() - { - $this->getmd('临泽草地加密观测区'); - } - function lzsAction() - { - $this->getmd('临泽站加密观测区'); - } - function meteoAction() - { - $this->getmd('气象水文','theme'); - } - function autometeoAction() - { - $this->getmd('气象观测','theme'); - } - function mobilemeteoAction() - { - $this->getmd('移动气象观测','theme'); - } - function ecAction() - { - $this->getmd('涡动相关','theme'); - } - function lasAction() - { - $this->getmd('大孔径闪烁仪','theme'); - } - function normalmeteoAction() - { - $this->getmd('常规气象观测','theme'); - } - function regionalmeteoAction() - { - $this->getmd('区域气象观测','theme'); - } - function dopplerAction() - { - $this->getmd('降雨','theme'); - } - function hydroAction() - { - $this->getmd('水文','theme'); - } - function airsoundingAction() - { - $this->getmd('大气廓线','theme'); - } - function aireboneAction() - { - $this->getmd('航空遥感','theme'); - } - function radiometerAction() - { - $page=(int)$this->_request->getParam('page'); - if (empty($page)) $page=1; - $offset=$this->limit*($page-1); - $state=$this->db->query("select count(*) from normalmetadata where uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='water') and id in (select id from keyword where keytype='theme' and keyword ilike '%波段机载微波辐射计') and id in (select id from keyword where keytype='theme' and keyword='航空遥感')"); - $row=$state->fetchAll(); - $sum=$row[0]['count']; - $sql="select uuid,title from normalmetadata where uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='water') and id in (select id from keyword where keytype='theme' and keyword ilike '%波段机载微波辐射计') and id in (select id from keyword where keytype='theme' and keyword='航空遥感') order by timebegin,title limit ? offset ?"; - $this->view->metadata=$this->db->fetchAll($sql,array($this->limit,$offset)); - $this->view->page=new Pagination($sum,$page,$this->limit); - $this->view->offset=$offset+1; - } - function lidarAction() - { - //$this->getmd('激光雷达','theme'); - $page=(int)$this->_request->getParam('page'); - if (empty($page)) $page=1; - $offset=$this->limit*($page-1); - $state=$this->db->query("select count(*) from normalmetadata where uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='water') and id in (select id from keyword where keytype='theme' and keyword='激光雷达') and id in (select id from keyword where keytype='theme' and keyword='航空遥感')"); - $row=$state->fetchAll(); - $sum=$row[0]['count']; - $sql="select uuid,title from normalmetadata where uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='water') and id in (select id from keyword where keytype='theme' and keyword='激光雷达') and id in (select id from keyword where keytype='theme' and keyword='航空遥感') order by timebegin,title limit ? offset ?"; - $this->view->metadata=$this->db->fetchAll($sql,array($this->limit,$offset)); - $this->view->page=new Pagination($sum,$page,$this->limit); - $this->view->offset=$offset+1; - } - function widasAction() - { - //$this->getmd('WiDAS','theme'); - $page=(int)$this->_request->getParam('page'); - if (empty($page)) $page=1; - $offset=$this->limit*($page-1); - $state=$this->db->query("select count(*) from normalmetadata where uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='water') and id in (select id from keyword where keytype='theme' and keyword='红外广角双模式成像仪WiDAS') and id in (select id from keyword where keytype='theme' and keyword='航空遥感')"); - $row=$state->fetchAll(); - $sum=$row[0]['count']; - $sql="select uuid,title from normalmetadata where uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='water') and id in (select id from keyword where keytype='theme' and keyword='红外广角双模式成像仪WiDAS') and id in (select id from keyword where keytype='theme' and keyword='航空遥感') order by timebegin,title limit ? offset ?"; - $this->view->metadata=$this->db->fetchAll($sql,array($this->limit,$offset)); - $this->view->page=new Pagination($sum,$page,$this->limit); - $this->view->offset=$offset+1; - } - function asdAction() - { - //$this->getmd('成像光谱仪OMIS-II','theme'); - $page=(int)$this->_request->getParam('page'); - if (empty($page)) $page=1; - $offset=$this->limit*($page-1); - $state=$this->db->query("select count(*) from normalmetadata where uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='water') and id in (select id from keyword where keytype='theme' and keyword='成像光谱仪OMIS-II') and id in (select id from keyword where keytype='theme' and keyword='航空遥感')"); - $row=$state->fetchAll(); - $sum=$row[0]['count']; - $sql="select uuid,title from normalmetadata where uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='water') and id in (select id from keyword where keytype='theme' and keyword='成像光谱仪OMIS-II') and id in (select id from keyword where keytype='theme' and keyword='航空遥感') order by timebegin,title limit ? offset ?"; - $this->view->metadata=$this->db->fetchAll($sql,array($this->limit,$offset)); - $this->view->page=new Pagination($sum,$page,$this->limit); - $this->view->offset=$offset+1; - } - function satelliteAction() - { - $this->getmd('卫星遥感','theme'); - } - - function tagAction() - { - $key = $this->_request->getParam('key'); - $page=(int)$this->_request->getParam('page'); - if (empty($page)) $page=1; - $offset=$this->limit*($page-1); - if (!empty($key)) { - $this->view->codename=$key; - $sql=$this->db->quoteInto('select count(id) from keyword where keyword=?',$key); - $state=$this->db->query($sql); - $row=$state->fetchAll(); - $sum=$row[0]['count']; - $sql="select uuid,title,id,description from normalmetadata where uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='water') and id in (select id from keyword where keyword='".$key."') order by timebegin,title limit ? offset ?"; - $this->view->metadata=$this->db->fetchAll($sql,array($this->limit,$offset)); - $this->view->page=new Pagination($sum,$page,$this->limit); - } else { - $state=$this->db->query("select keyword.keyword,count(*) from keyword left join normalmetadata m on keyword.id=m.id where keyword.keytype='place' and m.uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='water') group by keyword.keyword order by count desc"); - $k1=$state->fetchAll(); - $state=$this->db->query("select k.keyword,count(k.keyword) from keyword k left join normalmetadata m on k.id=m.id where k.keytype='theme' and m.uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='water') group by k.keyword order by k.keyword"); - $k2=$state->fetchAll(); - $state=$this->db->query("select k.keyword,count(k.keyword) from keyword k left join normalmetadata m on k.id=m.id where k.keytype='discipline' and m.uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='water') group by k.keyword order by k.keyword"); - $k3=$state->fetchAll(); - $state=$this->db->query("select k.keyword,count(k.keyword) from keyword k left join normalmetadata m on k.id=m.id where k.keytype='stratum' and m.uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='water') group by k.keyword order by k.keyword"); - $k4=$state->fetchAll(); - $state=$this->db->query("select keyword.keyword,count(*) from keyword left join normalmetadata m on keyword.id=m.id where keyword.keytype='temporal' and m.uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='water') group by keyword.keyword order by keyword.keyword"); - $k5=$state->fetchAll(); - $this->view->keywords=array('place'=>$k1,'theme'=>$k2,'discipline'=>$k3,'stratum'=>$k4,'temporal'=>$k5); - } - } - - function searchAction() - { - $this->view->addHelperPath('helper','Zend_View_Helper_'); - $form=new SearchForm(); - $this->view->form=$form; - //$form->submit->setLabel('快速搜索'); - $key=$this->_request->getParam('q'); - if (!empty($key)) { - $search=new Search($key); - $where=$search->sql_expr(array("title","description")); - $page=@(int)$this->_request->getParam('page'); - if (empty($page)) $page=1; - $offset=$this->limit*($page-1); - $row=$this->db->fetchAll("select count(*) from normalmetadata where uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='water') and ".$where); - $sum=$row[0]['count']; - $sql="select uuid,title,id,description from normalmetadata where uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='water') and ".$where." order by timebegin,title limit ? offset ?"; - $this->view->metadata=$this->db->fetchAll($sql,array($this->limit,$offset)); - $this->view->page=new Pagination($sum,$page,$this->limit); - $this->view->key=$key; - $this->view->offset=$offset+1; - } - } - - function timemapAction() - { - $sql="select id,uuid,west,south,north,east,title,timebegin,timeend from normalmetadata where uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='water') and timebegin is not null and timebegin::date>date('2007-01-01')"; - $this->view->rows=$this->db->fetchAll($sql); - } - - function timelineAction() - { - $fn="watertime.xml"; - $rows=$this->db->fetchAll("select ts_created from normalmetadata where uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='water') order by ts_created desc limit 1"); - $last_update=strtotime($rows[0]['ts_created']); - if (!file_exists($fn) || (filemtime($fn)<$last_update)) - { - $dateformat="M j Y"; - $rows=$this->db->fetchAll("select id,uuid,description,title,timebegin,timeend from normalmetadata where uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='water') and timebegin is not null order by timebegin,title"); - $timexml=''; - foreach($rows as $row) { - $timexml.=''; - $desc_length=mb_strlen($row['description'],"UTF-8"); - $desc=mb_substr($row['description'],0,($desc_length>300)?300:$desc_length,"UTF-8"); - if ($desc_length>300) $desc.=" ..."; - $timexml.=htmlspecialchars($desc); - $timexml.="\n"; - } - $timexml.=''; - $fp=fopen($fn,'w'); - fwrite($fp,$timexml); - fclose($fp); - } - } - - function categoryAction() - { - $code = (int)$this->_request->getParam('code'); - $page=(int)$this->_request->getParam('page'); - if (empty($page)) $page=1; - $offset=$this->limit*($page-1); - $row=$this->db->fetchAll("select count(*) from normalmetadata where uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='water') and id in (select id from category where code=".$code.")"); - $sum=$row[0]['count']; - - $this->view->category=$this->db->fetchAll('select c.code,name,name_zh,count(*) from category c,categorycode cc where c.code=cc.code group by c.code,cc.name,cc.name_zh'); - if ($code>0 && $code<20) { - $sql="select uuid,title,description,id from normalmetadata where uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='water') and id in (select distinct id from category where code=".$code.") order by timebegin,title limit ? offset ?"; - $this->view->metadata=$this->db->fetchAll($sql,array($this->limit,$offset)); - $this->view->page=new Pagination($sum,$page,$this->limit); - $this->view->offset=$offset+1; - $row=$this->db->fetchRow("select name,name_zh from categorycode where code=?",$code); - $this->view->codename=(empty($row['name_zh'])?$row['name']:$row['name_zh']); - } else { - //提供全部分类列表 - } - } - - - private function getmd($keyword,$type='place') - { - $page=(int)$this->_request->getParam('page'); - if (empty($page)) $page=1; - $offset=$this->limit*($page-1); - $state=$this->db->query("select count(*) from normalmetadata where uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='water') and id in (select id from keyword where keytype='".$type."' and keyword='".$keyword."')"); - $row=$state->fetchAll(); - $sum=$row[0]['count']; - //@todo: add order with title - $sql="select uuid,title from normalmetadata where uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='water') and id in (select id from keyword where keytype='".$type."' and keyword='".$keyword."') order by timebegin,title limit ? offset ?"; - $this->view->metadata=$this->db->fetchAll($sql,array($this->limit,$offset)); - $this->view->page=new Pagination($sum,$page,$this->limit); - $this->view->offset=$offset+1; - } -} \ No newline at end of file diff --git a/application/default/controllers/YrnmrController.php b/application/default/controllers/YrnmrController.php deleted file mode 100644 index 1273983a..00000000 --- a/application/default/controllers/YrnmrController.php +++ /dev/null @@ -1,318 +0,0 @@ -_helper->layout->setLayout('yrnmr'); - $acName = $this->_request->getActionName(); - $this->view->pageID = "yrnmr-".$acName; - } - - function indexAction() - { - $sql="select m.uuid,m.title,m.id,m.description from normalmetadata m left join thumbnail t on m.id=t.id where m.uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='yrnmr') and length(t.data)>2 order by random() limit 3"; - $this->view->meatdata=$this->db->fetchAll($sql); - } - - /* - * 数据浏览 - */ - function browseAction() - { - $page=(int)$this->_request->getParam('page'); - if (empty($page)) $page=1; - $offset=$this->limit*($page-1); - $state=$this->db->query("select count(*) from normalmetadata where uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='yrnmr') "); - $row=$state->fetchAll(); - $sum=$row[0]['count']; - $select=$this->db->select(); - $select->from('normalmetadata','*')->where(" uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='yrnmr') ")->order('title desc')->limitPage($page,$this->limit); - $this->view->metadata = $this->db->fetchAll($select); - $this->view->page=new Pagination($sum,$page,$this->limit); - $this->view->offset=$offset+1; - } - - function thumbAction() - { - $page=(int)$this->_request->getParam('page'); - if (empty($page)) $page=1; - $offset=$this->limit*($page-1); - $state=$this->db->query("select count(*) from normalmetadata where uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='yrnmr') "); - $row=$state->fetchAll(); - $sum=$row[0]['count']; - $select=$this->db->select(); - $select->from('normalmetadata as m','m.*') - ->where(" uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='yrnmr') ") - ->order('m.title desc')->limitPage($page,$this->limit); - $this->view->metadata = $this->db->fetchAll($select); - $this->view->page=new Pagination($sum,$page,$this->limit); - } - - function documentAction() - { - $page=(int)$this->_request->getParam('page'); - if (empty($page)) $page=1; - $offset=$this->limit*($page-1); - $row=$this->db->fetchAll("select count(*) from reference where id in (select refid from mdref where uuid in (select uuid from normalmetadata where uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='yrnmr') ))"); - $sum=$row[0]['count']; - $sql="select * from reference where id in (select refid from mdref where uuid in (select uuid from normalmetadata where uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='yrnmr') )) order by reference limit ? offset ?"; - $this->view->refs=$this->db->fetchAll($sql,array($this->limit,$offset)); - $this->view->page=new Pagination($sum,$page,$this->limit,"文献"); - $this->view->offset=$offset+1; - } - - function baseAction() - { - $page=(int)$this->_request->getParam('page'); - if (empty($page)) $page=1; - $offset=$this->limit*($page-1); - $state=$this->db->query("select count(*) from normalmetadata where uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='yrnmr') and id in (select id from keyword where keytype='theme' and (keyword='冰川' or keyword='沙漠' or keyword='地貌' or keyword='植被' or keyword='草场' or keyword='沙漠化' or keyword='基础地理' or keyword='遥感影像' or keyword='水文地质' or keyword='社会经济' or keyword='人口' or keyword='SWAT' or keyword='NPP' or keyword='WRF' or keyword='辐射' or keyword='NEP'))"); - $row=$state->fetchAll(); - $sum=$row[0]['count']; - $sql="select uuid,title from normalmetadata where uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='yrnmr') and id in (select id from keyword where keytype='theme' and (keyword='冰川' or keyword='沙漠' or keyword='地貌' or keyword='植被' or keyword='草场' or keyword='沙漠化' or keyword='基础地理' or keyword='遥感影像' or keyword='水文地质' or keyword='社会经济' or keyword='人口' or keyword='SWAT' or keyword='NPP' or keyword='WRF' or keyword='辐射' or keyword='NEP')) order by timebegin,title limit ? offset ?"; - $this->view->metadata=$this->db->fetchAll($sql,array($this->limit,$offset)); - $this->view->page=new Pagination($sum,$page,$this->limit); - $this->view->offset=$offset+1; - } - - function geobaseAction() - { - $this->getmd('基础地理'); - } - - function coreAction() - { - $page=(int)$this->_request->getParam('page'); - if (empty($page)) $page=1; - $offset=$this->limit*($page-1); - $state=$this->db->query("select count(*) from normalmetadata where uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='yrnmr') and id in (select id from keyword where keytype='theme' and (keyword='DEM' or keyword='土地利用' or keyword='土壤' or keyword='气象' or keyword='水文观测' or keyword='灌溉' or keyword='试验'))"); - $row=$state->fetchAll(); - $sum=$row[0]['count']; - $sql="select uuid,title from normalmetadata where uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='yrnmr') and id in (select id from keyword where keytype='theme' and (keyword='DEM' or keyword='土地利用' or keyword='土壤' or keyword='气象' or keyword='水文观测' or keyword='灌溉' or keyword='试验')) order by timebegin,title limit ? offset ?"; - $this->view->metadata=$this->db->fetchAll($sql,array($this->limit,$offset)); - $this->view->page=new Pagination($sum,$page,$this->limit); - $this->view->offset=$offset+1; - } - - function demAction() - { - $this->getmd('DEM'); - } - - function rsAction() - { - $this->getmd('遥感影像'); - } - - function waterAction() - { - $this->getmd('水文地质'); - } - - function modelAction() - { - $page=(int)$this->_request->getParam('page'); - if (empty($page)) $page=1; - $offset=$this->limit*($page-1); - $state=$this->db->query("select count(*) from normalmetadata where uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='yrnmr') and id in (select id from keyword where keytype='theme' and (keyword='WRF' or keyword='NPP' or keyword='SWAT' or keyword='NEP' or keyword='辐射'))"); - $row=$state->fetchAll(); - $sum=$row[0]['count']; - $sql="select uuid,title from normalmetadata where uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='yrnmr') and id in (select id from keyword where keytype='theme' and (keyword='WRF' or keyword='NPP' or keyword='SWAT' or keyword='NEP' or keyword='辐射')) order by timebegin,title limit ? offset ?"; - $this->view->metadata=$this->db->fetchAll($sql,array($this->limit,$offset)); - $this->view->page=new Pagination($sum,$page,$this->limit); - $this->view->offset=$offset+1; - } - - function economicAction() - { - $page=(int)$this->_request->getParam('page'); - if (empty($page)) $page=1; - $offset=$this->limit*($page-1); - $state=$this->db->query("select count(*) from normalmetadata where uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='yrnmr') and id in (select id from keyword where keytype='theme' and (keyword='人口' or keyword='社会经济'))"); - $row=$state->fetchAll(); - $sum=$row[0]['count']; - $sql="select uuid,title from normalmetadata where uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='yrnmr') and id in (select id from keyword where keytype='theme' and (keyword='人口' or keyword='社会经济')) order by timebegin,title limit ? offset ?"; - $this->view->metadata=$this->db->fetchAll($sql,array($this->limit,$offset)); - $this->view->page=new Pagination($sum,$page,$this->limit); - $this->view->offset=$offset+1; - } - - function landsurfaceAction() - { - $page=(int)$this->_request->getParam('page'); - if (empty($page)) $page=1; - $offset=$this->limit*($page-1); - $state=$this->db->query("select count(*) from normalmetadata where uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='yrnmr') and id in (select id from keyword where keytype='theme' and (keyword='冰川' or keyword='沙漠' or keyword='地貌' or keyword='植被' or keyword='草场' or keyword='沙漠化'))"); - $row=$state->fetchAll(); - $sum=$row[0]['count']; - $sql="select uuid,title from normalmetadata where uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='yrnmr') and id in (select id from keyword where keytype='theme' and (keyword='冰川' or keyword='沙漠' or keyword='地貌' or keyword='植被' or keyword='草场' or keyword='沙漠化')) order by timebegin,title limit ? offset ?"; - $this->view->metadata=$this->db->fetchAll($sql,array($this->limit,$offset)); - $this->view->page=new Pagination($sum,$page,$this->limit); - $this->view->offset=$offset+1; - } - - function landuseAction() - { - $this->getmd('土地利用','theme'); - } - - function soilAction() - { - $this->getmd('土壤','theme'); - } - - function meteoAction() - { - $this->getmd('气象','theme'); - } - - function hydroAction() - { - $this->getmd('水文观测','theme'); - } - function irragationAction() - { - $this->getmd('灌溉','theme'); - } - - function expAction() - { - $this->getmd('实验','theme'); - } - - function obsAction() - { - $this->getmd('观测','theme'); - } - - function listAction() - { - $sql="select uuid,title from normalmetadata where uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='yrnmr') order by timebegin,title"; - $this->view->metadata=$this->db->fetchAll($sql); - } - - function tagAction() - { - $key = $this->_request->getParam('key'); - $page=(int)$this->_request->getParam('page'); - if (empty($page)) $page=1; - $offset=$this->limit*($page-1); - if (!empty($key)) { - $this->view->codename=$key; - $sql=$this->db->quoteInto('select count(id) from keyword where keyword=?',$key); - $state=$this->db->query($sql); - $row=$state->fetchAll(); - $sum=$row[0]['count']; - $sql="select uuid,title,id,description from normalmetadata where uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='yrnmr') and id in (select id from keyword where keyword='".$key."') order by timebegin,title limit ? offset ?"; - $this->view->metadata=$this->db->fetchAll($sql,array($this->limit,$offset)); - $this->view->page=new Pagination($sum,$page,$this->limit); - } else { - $state=$this->db->query("select keyword.keyword,count(*) from keyword left join normalmetadata m on keyword.id=m.id where keyword.keytype='place' and m.uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='yrnmr') group by keyword.keyword order by count desc"); - $k1=$state->fetchAll(); - $state=$this->db->query("select k.keyword,count(k.keyword) from keyword k left join normalmetadata m on k.id=m.id where k.keytype='theme' and m.uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='yrnmr') group by k.keyword order by k.keyword"); - $k2=$state->fetchAll(); - $state=$this->db->query("select k.keyword,count(k.keyword) from keyword k left join normalmetadata m on k.id=m.id where k.keytype='discipline' and m.uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='yrnmr') group by k.keyword order by k.keyword"); - $k3=$state->fetchAll(); - $state=$this->db->query("select k.keyword,count(k.keyword) from keyword k left join normalmetadata m on k.id=m.id where k.keytype='stratum' and m.uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='yrnmr') group by k.keyword order by k.keyword"); - $k4=$state->fetchAll(); - $state=$this->db->query("select keyword.keyword,count(*) from keyword left join normalmetadata m on keyword.id=m.id where keyword.keytype='temporal' and m.uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='yrnmr') group by keyword.keyword order by keyword.keyword"); - $k5=$state->fetchAll(); - $this->view->keywords=array('place'=>$k1,'theme'=>$k2,'discipline'=>$k3,'stratum'=>$k4,'temporal'=>$k5); - } - } - - function searchAction() - { - $this->view->addHelperPath('helper','Zend_View_Helper_'); - $form=new SearchForm(); - $this->view->form=$form; - //$form->submit->setLabel('快速搜索'); - $key=$this->_request->getParam('q'); - if (!empty($key)) { - $search=new Search($key); - $where=$search->sql_expr(array("title","description")); - $page=@(int)$this->_request->getParam('page'); - if (empty($page)) $page=1; - $offset=$this->limit*($page-1); - $row=$this->db->fetchAll("select count(*) from normalmetadata where uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='yrnmr') and ".$where); - $sum=$row[0]['count']; - $sql="select uuid,title,id,description from normalmetadata where uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='yrnmr') and ".$where." order by timebegin,title limit ? offset ?"; - $this->view->metadata=$this->db->fetchAll($sql,array($this->limit,$offset)); - $this->view->page=new Pagination($sum,$page,$this->limit); - $this->view->key=$key; - $this->view->offset=$offset+1; - } - } - - function timemapAction() - { - $sql="select id,uuid,west,south,north,east,title,timebegin,timeend from normalmetadata where uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='yrnmr') and timebegin is not null"; - $this->view->rows=$this->db->fetchAll($sql); - } - - function timelineAction() - { - $fn="yrnmrtime.xml"; - $rows=$this->db->fetchAll("select ts_created from normalmetadata where uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='yrnmr') order by ts_created desc limit 1"); - $last_update=strtotime($rows[0]['ts_created']); - if (!file_exists($fn) || (filemtime($fn)<$last_update)) - { - $dateformat="M j Y"; - $rows=$this->db->fetchAll("select id,uuid,description,title,timebegin,timeend from normalmetadata where uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='yrnmr') and timebegin is not null order by timebegin,title"); - $timexml=''; - foreach($rows as $row) { - $timexml.=''; - $desc_length=mb_strlen($row['description'],"UTF-8"); - $desc=mb_substr($row['description'],0,($desc_length>300)?300:$desc_length,"UTF-8"); - if ($desc_length>300) $desc.=" ..."; - $timexml.=htmlspecialchars($desc); - $timexml.="\n"; - } - $timexml.=''; - $fp=fopen($fn,'w'); - fwrite($fp,$timexml); - fclose($fp); - } - } - - function categoryAction() - { - $code = (int)$this->_request->getParam('code'); - $page=(int)$this->_request->getParam('page'); - if (empty($page)) $page=1; - $offset=$this->limit*($page-1); - $this->view->category=$this->db->fetchAll("select c.code,name,name_zh,count(*) from category c left join normalmetadata m on c.id=m.id,categorycode cc where c.code=cc.code and m.uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='yrnmr') group by c.code,cc.name,cc.name_zh"); - if ($code>0 && $code<20) { - $row=$this->db->fetchAll("select count(*) from normalmetadata where uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='yrnmr') and id in (select id from category where code=".$code.")"); - $sum=$row[0]['count']; - $sql="select uuid,title,description,id from normalmetadata where uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='yrnmr') and id in (select distinct id from category where code=".$code.") order by timebegin,title limit ? offset ?"; - $this->view->metadata=$this->db->fetchAll($sql,array($this->limit,$offset)); - $this->view->page=new Pagination($sum,$page,$this->limit); - $this->view->offset=$offset+1; - $row=$this->db->fetchRow("select name,name_zh from categorycode where code=?",$code); - $this->view->codename=(empty($row['name_zh'])?$row['name']:$row['name_zh']); - } else { - //提供全部分类列表 - } - } - - private function getmd($keyword,$type='theme') - { - $page=(int)$this->_request->getParam('page'); - if (empty($page)) $page=1; - $offset=$this->limit*($page-1); - $state=$this->db->query("select count(m.*) from normalmetadata m left join datasource d on m.uuid=d.uuid left join source s on d.sourceid=s.id where s.code='yrnmr' and m.id in (select id from keyword where keytype='".$type."' and keyword='".$keyword."')"); - $row=$state->fetchAll(); - $sum=$row[0]['count']; - //@todo: add order with title - $sql="select uuid,title from normalmetadata where uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='yrnmr') and id in (select id from keyword where keytype='".$type."' and keyword='".$keyword."') order by timebegin,title limit ? offset ?"; - $this->view->metadata=$this->db->fetchAll($sql,array($this->limit,$offset)); - $this->view->page=new Pagination($sum,$page,$this->limit); - $this->view->offset=$offset+1; - } -} \ No newline at end of file diff --git a/application/default/views/scripts/community/index.phtml b/application/default/views/scripts/community/index.phtml deleted file mode 100755 index 634a9c8e..00000000 --- a/application/default/views/scripts/community/index.phtml +++ /dev/null @@ -1,48 +0,0 @@ -headTitle($this->config->title->site); - $this->headTitle('合作与交流'); -$this->headTitle()->setSeparator(' - '); -$this->headLink()->appendStylesheet('/css/community.css'); -$this->breadcrumb('首页'); -$this->breadcrumb('合作与交流'); -$this->breadcrumb()->setSeparator(' > '); -?> -
-
-
-

论坛

-

论坛是Internet是最知名的服务之一,它开辟了一块“公共”空间供所有用户读取和讨论其中信息,提供一些多人实时交谈、公布最新消息。您可根据自己的需要选择不同的版面参与讨论,发表意见,征询建议,结识朋友。

-

论坛开通了匿名讨论的功能,同时欢迎您注册成为我们的论坛用户。

-
- -

邮件列表

-

邮件列表广泛用于各种群体间的信息交流和信息发布,具有传播范围广的特点,还具有使用简单方便的特点,只要能够使用Email,就可以使用邮件列表。

-

邮件列表使用方法

-

注意,邮件列表发送的邮件,有可能被您的邮箱当成垃圾邮件隔离,所以请设置您的反垃圾邮箱配置,并检查您的垃圾箱。

-

邮件列表的订阅都是需要用户进行确认的,因此您需要检查您的邮件,并根据邮件列表发送过来的邮件里面的说明进行确认。

-
- -
- -
- - -
- -

WEB地址:西部计划项目邮件列表

- 邮件订阅方式:western-datacenter@lists.westgis.ac.cn -

WEB地址:西部数据中心用户讨论邮件列表

-

邮件订阅方式:westdc-user@lists.westgis.ac.cn

- -

WEB地址:西部数据中心数据通讯邮件列表

-

邮件订阅方式:westdc-report@lists.westgis.ac.cn

-

注意:此邮件列表是单向的,仅用于发布数据简报。

-
-
-
\ No newline at end of file diff --git a/application/default/views/scripts/glacier/base.phtml b/application/default/views/scripts/glacier/base.phtml deleted file mode 100644 index 23caa2c3..00000000 --- a/application/default/views/scripts/glacier/base.phtml +++ /dev/null @@ -1,30 +0,0 @@ -headTitle($this->config->title->site); -$this->headTitle($this->config->title->data); -$this->headTitle()->setSeparator(' - '); -$this->headLink()->appendStylesheet('/css/water.css'); -$this->nav[] = array('link'=>"/glacier",'title'=>$this->config->title->glacier); -?> -render('breadcrumbs.phtml'); ?> -
-
- partial('glacier/navi.phtml'); ?> -
-
- info) : ?> -
- info['body'])) echo $this->info['body'];?> -
- - metadata) : ?> - page->getNavigation(); ?> -
-
    - metadata as $md) : ?> -
  1. - -
-
- -
-
\ No newline at end of file diff --git a/application/default/views/scripts/glacier/browse.phtml b/application/default/views/scripts/glacier/browse.phtml deleted file mode 100755 index 3d2cb3b8..00000000 --- a/application/default/views/scripts/glacier/browse.phtml +++ /dev/null @@ -1,30 +0,0 @@ -headTitle($this->config->title->site); - $this->headTitle($this->config->title->data); - $this->headTitle('全部浏览'); -$this->headTitle()->setSeparator(' - '); -$this->headLink()->appendStylesheet('/css/water.css'); -$this->breadcrumb('首页'); -$this->breadcrumb(''.$this->config->title->data.''); -$this->breadcrumb(''.$this->config->title->glacier.''); -$this->breadcrumb('浏览'); -$this->breadcrumb()->setSeparator(' > '); -?> -
-
- partial('glacier/navi.phtml'); ?> -
-
- page->getNavigation(); ?> -
-
-
    - metadata as $md) : ?> -
  1. - -
-
-
- page->getNavigation(); ?> -
-
\ No newline at end of file diff --git a/application/default/views/scripts/glacier/dem.phtml b/application/default/views/scripts/glacier/dem.phtml deleted file mode 100644 index 20dd32df..00000000 --- a/application/default/views/scripts/glacier/dem.phtml +++ /dev/null @@ -1,34 +0,0 @@ -headTitle($this->config->title->site); -$this->headTitle($this->config->title->data); -$this->headTitle()->setSeparator(' - '); -$this->headLink()->appendStylesheet('/css/water.css'); -$this->breadcrumb('首页'); -$this->breadcrumb(''.$this->config->title->data.''); -$this->breadcrumb(''.$this->config->title->glacier.''); -$this->breadcrumb('DEM'); -$this->breadcrumb()->setSeparator(' > '); -?> -
-
- partial('glacier/navi.phtml'); ?> -
-
-
-

DEM数据可用来提取冰川特征参数,如冰舌高度、冰川坡度、冰川朝向和山脊线等,也可以用不同时期的DEM分析冰川表面高程变化,进而获得冰储量的变化。收集的DEM数据包括由地形图形成的DEM、SRTM DEM和ASTER DEM 三大类。

-

由地形图形成的DEM受国家保密法的限制,不在数据共享范围内。

- -
-
- metadata) : ?> - page->getNavigation(); ?> -
-
    - metadata as $md) : ?> -
  1. - -
-
- -
-
\ No newline at end of file diff --git a/application/default/views/scripts/glacier/document.phtml b/application/default/views/scripts/glacier/document.phtml deleted file mode 100644 index ef9ed030..00000000 --- a/application/default/views/scripts/glacier/document.phtml +++ /dev/null @@ -1,68 +0,0 @@ -headTitle($this->config->title->site); -$this->headTitle($this->config->title->data); -$this->headTitle()->setSeparator(' - '); -$this->headLink()->appendStylesheet('/css/water.css'); -$this->headScript()->appendFile('/js/jquery-1.7.min.js'); -$this->headScript()->appendFile('/js/jquery.colorbox-min.js'); -$this->headLink()->appendStylesheet('/css/colorbox.css'); -$this->breadcrumb('首页'); -$this->breadcrumb(''.$this->config->title->data.''); -$this->breadcrumb(''.$this->config->title->glacier.''); -$this->breadcrumb('数据文档'); -$this->breadcrumb()->setSeparator(' > '); -?> - - - - \ No newline at end of file diff --git a/application/default/views/scripts/glacier/index.phtml b/application/default/views/scripts/glacier/index.phtml deleted file mode 100755 index f6fe0be2..00000000 --- a/application/default/views/scripts/glacier/index.phtml +++ /dev/null @@ -1,22 +0,0 @@ -headTitle($this->config->title->site); -$this->headTitle($this->config->title->data); -$this->headTitle()->setSeparator(' - '); -$this->headLink()->appendStylesheet('/css/water.css'); -$this->nav[] = array('link'=>"/glacier",'title'=>$this->config->title->glacier); -?> -render('breadcrumbs.phtml'); ?> -
-
- partial('glacier/navi.phtml'); ?> -
- -
-
-

info['title'])) echo $this->info['title']; ?>

- - -
info['body'])) echo $this->info['body'];?>
-
-
-
diff --git a/application/default/views/scripts/glacier/list.phtml b/application/default/views/scripts/glacier/list.phtml deleted file mode 100644 index ca49e5b9..00000000 --- a/application/default/views/scripts/glacier/list.phtml +++ /dev/null @@ -1,42 +0,0 @@ -headTitle($this->config->title->site); -$this->headTitle($this->config->title->data); -$this->headTitle()->setSeparator(' - '); -$this->headLink()->appendStylesheet('/css/water.css'); -$this->breadcrumb('首页'); -$this->breadcrumb(''.$this->config->title->data.''); -$this->breadcrumb(''.$this->config->title->glacier.''); -$this->breadcrumb('数据列表'); -$this->breadcrumb()->setSeparator(' > '); -$this->headScript()->appendFile('/js/jquery-1.7.min.js'); -$this->headScript()->appendFile('/js/jquery.colorbox-min.js'); -$this->headLink()->appendStylesheet('/css/colorbox.css'); -?> - - - - \ No newline at end of file diff --git a/application/default/views/scripts/glacier/navi.phtml b/application/default/views/scripts/glacier/navi.phtml deleted file mode 100644 index 24d80aeb..00000000 --- a/application/default/views/scripts/glacier/navi.phtml +++ /dev/null @@ -1,119 +0,0 @@ -
- -
- -
- -
-
- - - - - - - -
- - - - \ No newline at end of file diff --git a/application/default/views/scripts/glacier/search.phtml b/application/default/views/scripts/glacier/search.phtml deleted file mode 100644 index 5c16a193..00000000 --- a/application/default/views/scripts/glacier/search.phtml +++ /dev/null @@ -1,42 +0,0 @@ -headTitle($this->config->title->site); -$this->headTitle($this->config->title->data); - -$this->headTitle('快速搜索'); -if (!empty($this->codename)) $this->headTitle($this->codename); -$this->headTitle()->setSeparator(' - '); -$this->headLink()->appendStylesheet('/css/water.css'); -$this->breadcrumb('首页'); -$this->breadcrumb(''.$this->config->title->data.''); -$this->breadcrumb(''.$this->config->title->glacier.''); -$this->breadcrumb('快速搜索'); -$this->breadcrumb()->setSeparator(' > '); -$this->nav[] = array('link'=>"/glacier/",'title'=>$this->config->title->glacier); -$this->nav[] = array('link'=>"",'title'=>'快速搜索'); -?> -render('breadcrumbs.phtml'); ?> -
-
-partial('glacier/navi.phtml',array('key'=>$this->key)); ?> -
-
-metadata)) : ?> -page->getNavigation(); ?> -
-
-
    - metadata as $md) : ?> -
  1. - -
-
-
-page->getNavigation(); -else : -?> -
-

您的搜索结果为空,请尝试其他关键词进行查询。

-
- -
-
\ No newline at end of file diff --git a/application/default/views/scripts/glacier/tag.phtml b/application/default/views/scripts/glacier/tag.phtml deleted file mode 100755 index a07c404d..00000000 --- a/application/default/views/scripts/glacier/tag.phtml +++ /dev/null @@ -1,56 +0,0 @@ -headTitle($this->config->title->site); -$this->headTitle($this->config->title->data); -if (!empty($this->codename)) $this->headTitle($this->codename); -$this->headTitle()->setSeparator(' - '); -$this->headLink()->appendStylesheet('/css/water.css'); -$this->nav[] = array('link'=>"/glacier/",'title'=>$this->config->title->glacier); -$this->nav[] = array('link'=>"/glacier/tag",'title'=>'关键词浏览'); -?> -render('breadcrumbs.phtml'); ?> -
-
- partial('glacier/navi.phtml'); ?> -
-
- metadata)) : ?> -
-

关键词:codename; ?> 【全部关键词

- page->getNavigation(); ?> -
-
-
    - metadata as $md) : ?> -
  1. - -
-
-
- page->getNavigation(); ?> -
- - -
- '地点关键词','theme'=>'主题关键词','discipline'=>'学科关键词','stratum'=>'地层关键词','temporal'=>'时间关键词'); - $type=''; -foreach($this->keywords as $cg) : - if ($type!=$cg['keytype']) : - if ($type!='') : ?> - - -

-keytype) : ?>全部关键词

-
    -
  • '>()
  • - -
  • '>()
  • - - -
-
- -
-
\ No newline at end of file diff --git a/application/default/views/scripts/glacier/thumb.phtml b/application/default/views/scripts/glacier/thumb.phtml deleted file mode 100644 index 76bb0d45..00000000 --- a/application/default/views/scripts/glacier/thumb.phtml +++ /dev/null @@ -1,51 +0,0 @@ -headTitle($this->config->title->site); -$this->headTitle($this->config->title->data); -$this->headTitle('缩略图浏览'); -$this->headTitle()->setSeparator(' - '); -$this->headLink()->appendStylesheet('/css/water.css'); -$this->breadcrumb()->setSeparator(' > '); -$this->theme->AppendPlus($this,'colorbox'); -$this->theme->AppendPlus($this,'masonry'); -$this->nav[] = array('link'=>"/glacier/",'title'=>$this->config->title->glacier); -$this->nav[] = array('link'=>"/glacier/thumb",'title'=>'缩略图浏览'); -?> -render('breadcrumbs.phtml') ?> -
-
- partial('glacier/navi.phtml'); ?> -
-
- page->getNavigation(); ?> -
-
-
    - metadata as $md) : ?> -
  • -

    escape($md['title']);?>

    - - - -
    -

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

    -
    - 查看 -
  • - -
-
-
- page->getNavigation(); ?> -
-
- \ No newline at end of file diff --git a/application/default/views/scripts/glacier/timeline.phtml b/application/default/views/scripts/glacier/timeline.phtml deleted file mode 100755 index 89c7b4e8..00000000 --- a/application/default/views/scripts/glacier/timeline.phtml +++ /dev/null @@ -1,25 +0,0 @@ -headTitle($this->config->title->site); -$this->headTitle($this->config->title->data); -$this->headTitle('时间轴导航'); -$this->headTitle()->setSeparator(' - '); -$this->headLink()->appendStylesheet('/css/water.css'); -$this->breadcrumb('首页'); -$this->breadcrumb(''.$this->config->title->data.''); -$this->breadcrumb(''.$this->config->title->glacier.''); -$this->breadcrumb('时间轴导航'); -$this->breadcrumb()->setSeparator(' > '); -$this->headScript()->appendFile('/js/timeline_var.js'); -$this->headScript()->appendFile('/js/timeline_js/timeline-api.js'); -$this->headScript()->appendFile('/js/glaciertime.js'); -$this->nav[] = array('link'=>"/glacier/",'title'=>$this->config->title->glacier); -$this->nav[] = array('link'=>"/glacier/timeline",'title'=>'时间轴导航'); -?> -
-
- partial('glacier/navi.phtml'); ?> -
-
-
-
-
\ No newline at end of file diff --git a/application/default/views/scripts/glacier/timemap.phtml b/application/default/views/scripts/glacier/timemap.phtml deleted file mode 100644 index 71a0e216..00000000 --- a/application/default/views/scripts/glacier/timemap.phtml +++ /dev/null @@ -1,116 +0,0 @@ -headTitle($this->config->title->site); -$this->headTitle($this->config->title->data); -$this->headTitle('时空导航'); -$this->headTitle()->setSeparator(' - '); -//$this->headLink()->appendStylesheet('/css/water.css'); -$this->breadcrumb('首页'); -$this->breadcrumb(''.$this->config->title->data.''); -$this->breadcrumb(''.$this->config->title->glacier.''); -$this->breadcrumb('时空联合导航'); -$this->breadcrumb()->setSeparator(' > '); -$this->theme->AppendPlus($this,'google_map_v3'); -$this->theme->AppendPlus($this,'colorbox'); -$this->headScript()->appendFile('/js/timeline_var.js'); -$this->headScript()->appendFile('/js/timeline_js/timeline-api.js'); -$this->headScript()->appendFile('/js/timemap.2.0.1/lib/mxn/mxn.js?(googlev3)'); -$this->headScript()->appendFile('/js/timemap.2.0.1/timemap.pack.js'); -$this->nav[] = array('link'=>"/glacier/",'title'=>$this->config->title->glacier); -$this->nav[] = array('link'=>"/glaicer/timemap",'title'=>'时空导航'); -?> - -
-
- partial('glacier/navi.phtml'); ?> -
-
-
breadcrumb() ?>
-
-
-
-
-
-
- - \ No newline at end of file diff --git a/application/default/views/scripts/glacier/view.phtml b/application/default/views/scripts/glacier/view.phtml deleted file mode 100755 index 34d9053a..00000000 --- a/application/default/views/scripts/glacier/view.phtml +++ /dev/null @@ -1,554 +0,0 @@ -headTitle($this->config->title->site); - $this->headTitle($this->config->title->data); - $this->headTitle($this->metadata->title); - $this->headTitle()->setSeparator(' - '); - $this->headLink()->appendStylesheet('/css/water.css'); - $this->theme->AppendPlus($this,'google_map_v3'); - $this->theme->AppendPlus($this,'colorbox'); - if(!empty($this->dataService)) { - $this->theme->AppendModel($this,"dataservice"); - } - $this->nav[] = array('link'=>"/glacier/",'title'=>$this->config->title->glacier); - $this->nav[] = array('link'=>"",'title'=>'查看元数据'); -?> - -render('breadcrumbs.phtml'); ?> -metadata;if ($md):?> -
-
- partial('glacier/navi.phtml'); ?> -
-
-

escape($md->title); -if ($md->title_en) echo '
'.$this->escape($md->title_en);?> -

-
- -
-
-
- -

-

',$md->description);?> -

-
-
- mcitation) : ?> -
-

本数据要求的多篇文献引用

-
    - mcitation as $ref) : - if (empty($ref->link)) - echo '
  1. '.$ref->reference.'
  2. '; - else - echo '
  3. '.$ref->reference.' 下载
  4. '; - endforeach; - ?> -
- - - citation) : ?> -
-

本数据引用方式数据引用帮助

-

datadoi) || !strpos($md->citation,$md->datadoi)) : ?>文章的引用 - escape($md->citation);if (strpos($md->citation,$md->datadoi)) : ?> - (下载引用:RIS格式 | RIS英文格式 | Bibtex格式 | Bibtex英文格式) - -

- datadoi) && !strpos($md->citation,$md->datadoi)) : ?> -

数据的引用authors,1,-1).'. '.$md->title.'. '.$md->publisher.', '.(empty($md->ts_published)?$md->publish_year:date('Y',strtotime($md->ts_published))).'. doi:'.$md->doi; - echo ' ['.str_replace('"','',substr($md->author_en,1,-1)).'. '.$md->title_en.'. '.$md->publisher_en.', '.(empty($md->ts_published)?$md->publish_year:date('Y',strtotime($md->ts_published))).'. doi:'.$md->doi.']'; - ?> (下载引用:RIS格式 | RIS英文格式 | Bibtex格式 | Bibtex英文格式)

- ref) : ?> -
-

相关文献(作者推荐)

-
    - ref as $ref) : - echo '
  1. '.$ref->reference; - echo '查看'; - if (empty($ref->link)) - { - if(!empty($ref->attid)) - echo '下载'; - }else{ - echo '下载'; - } - echo "
  2. "; - endforeach; - ?> -
- themeref) :?> - -
-

专题文献

-
    - themeref as $ref) : - echo '
  1. '.$ref->reference; - echo '查看'; - if (empty($ref->link)) - { - if(!empty($ref->attid)) - echo ' | 下载'; - }else{ - echo ' | 下载'; - } - echo "
  2. "; - endforeach; - ?> -
- userref) : ?> -
-

数据施引文献

-
    - userref as $ref) : - echo '
  1. '.$ref->reference; - echo '查看'; - if (empty($ref->link)) - { - if(!empty($ref->attid)) - echo '下载'; - }else{ - echo '下载'; - } - echo "
  2. "; - endforeach; - if (count($this->userref)==15) - { - echo '更多施引文献'; - } - ?> -
- -
-

数据使用声明

- uselimits) : - foreach($this->uselimits as $uselimit) : - echo '

'.str_replace(array("\r\n", "\n", "\r"),'

',$this->escape($uselimit->uselimit)).'

'; - endforeach; - ?> - -

为尊重知识产权、保障数据作者的权益、扩展数据中心的服务、评估数据的应用潜力,请数据使用者在使用数据所产生的研究成果中(包括公开发表的论文、论著、数据产品和未公开发表的研究报告、数据产品等成果),明确注明数据来源和数据作者。对于转载(二次或多次发布)的数据,作者还须注明原始数据来源。

-

中文发表的成果参考以下规范注明: 数据来源于黑河计划数据管理中心、寒区旱区科学数据中心(http://westdc.westgis.ac.cn)

-

英文发表的成果依据以下规范注明: The data set is provided by Cold and Arid Regions Sciences Data Center at Lanzhou (http://westdc.westgis.ac.cn)

-

- - data_archives){ ?> -

数据相关新闻

-
    - data_archives as $v){?> -
  • - -
-
- - suppinfo || $this->fund) : ?> -

资助项目

- fund)) : ?> -
    - fund as $k=>$v) : ?> -
  • (项目编号:) [(No. )]
  • - -
- suppinfo)) : ?> - '.str_replace(array("\r\n", "\n", "\r"),'

',$this->escape($md->suppinfo)).'

';?> - -
- - resources) : ?> -

相关资源

- -
- -
-
- keys as $cg){ - if($cg['keytype']=="theme") - $keywords[]=$cg['keyword']; - } - $ev = join(" ",$keywords); - ?> -
- -
- - -
-
    -
    -
    - downhistory) : ?> -

    最近10条服务记录如下:

    -
      - downhistory as $v){ - echo '
    1. '.date("Y-m-d",strtotime($v->ts_created))." ".$v->unit." ".$v->realname; - if (!empty($v->offlineproject)) - echo ' 用途:'.$v->offlineproject; - elseif (!empty($v->onlineproject)) - echo ' 用途:'.$v->onlineproject; - echo '
    2. '; - } - ?> -
    - - 暂时没有服务记录,欢迎您下载使用! - -
    -
    - -
    -
    -
    -
    -
    - status>0 and $md->status<5) : ?> -

    此数据还在评审过程中,我们真切地邀请您参加此数据的评审,以便我们能尽快发布此数据!评审

    - -

    数据评论

    -
    -
    评论加载中
    -
    - hasIdentity()) - { - $user = $auth->getIdentity(); - $name = $user->realname; - $email = $user->email; - }else - { - $name = ""; - $email = ""; - } - ?> -
    -
    - -
    - -
    -
    -
    - -
    - -
    -
    -
    - -
    - e.g. http://westdc.westgis.ac.cn/ -
    -
    -
    - -
    - -
    -
    -
    - -
    - -
    -
    -
    -
    - - - 提交 -
    -
    -
    -
    - -
    -
    -
    -
    - - '学科','place'=>'地点','theme'=>'主题','temporal'=>'时间词','stratum'=>'地层'); -$kt=''; -$i=0; -foreach($this->keys as $cg) : - if ($kt==$cg['keytype']) : - $i+=1; - else : - if (!empty($kt)) echo ''; - $kt=$cg['keytype']; - $i=0; - endif; - if ($i==0) { - ?> - - doi) : ?> -
    • 数据DOI doi; ?>
    - - -
    -
    -

    数据细节文件列表

    -
      - fileformat) : ?> -
    • 格式:fileformat; ?>
    • - -
    • 大小:filesize; ?>MB
    • - downloaded>9) :?> -
    • 下载:downloaded; ?>次
    • - -
    • 浏览:viewed; ?>次
    • - - timebegin)) : ?> -
    • 数据时间范围:timebegin));if (!empty($md->timeend)) echo " 至 ".date('Y-m-d',strtotime($md->timeend)); ?>
    • - - doc)) : ?> -
    • doc; - }?>">数据说明文档
    • - - attachments) : ?> -
    • 相关文档: - attachments as $k=>$a) : ?> - - - -
    • - -
    • 数据共享方式:datatype) print "离线"; else print "在线(可直接下载)";?>
    • -
    -
    - status>0 and $md->status<5) : ?> - 数据评审 - datatype) : ?> - - 在线下载 - - - dataService)) { ?> - theme->AppendPlus($this,'datepicker'); ?> - - - - - 放入数据篮 - - - -
    - -
    -
    -

    空间位置

    -
    -
    -

    联系信息

    -
    -
      - '资源提供者','custodian'=>'维护者','owner'=>'拥有者','user'=>'用户','distributor'=>'数据服务联系人','originator'=>'创建者','pointOfContact'=>'联系人','principalInvestigator'=>'数据调查与处理者','processor'=>'处理者','publisher'=>'元数据发布者','author'=>'元数据作者'); - $r=''; - $i=0; - foreach($this->authors as $k=>$author) : - if ($author->role!=$r) - { - $r=$author->role; - $i=0; - if ($k>0) echo ''; - echo '
    • '.$party_zh[$author->role].':'; - } - if ($i>0) echo ','; - $i+=1; - if (!empty($author->email) && $r!='principalInvestigator') - echo ''; - echo ''; - if (!empty($author->individual)) - echo $author->individual; - else - echo $author->organisation; - echo ''; - if (!empty($author->email)) echo ''; - if ($k+1==count($this->authors)) echo '
    • '; - endforeach; - ?> -
    -
    -
      -
    • 元数据更新时间:ts_created)); ?>
    • -
    • 下载元数据: - Adobe PDF格式 - OpenOffice odt格式 - Word doc格式 - 查看XML源文件 -
    • - - version->c>0):?> -
    • 版本历史:version->c ?> 个
    • - -
    -
    -
    -
    分享到
    - -
    - - - - - - - - - -
    - - -
    -
    - - - -

    Cannot find the metadata.

    -

    没有找到对应的元数据。

    - - - \ No newline at end of file diff --git a/application/default/views/scripts/glacier_header.phtml b/application/default/views/scripts/glacier_header.phtml deleted file mode 100644 index 32413f2b..00000000 --- a/application/default/views/scripts/glacier_header.phtml +++ /dev/null @@ -1,33 +0,0 @@ -
    - - -
    diff --git a/application/default/views/scripts/haihe/base.phtml b/application/default/views/scripts/haihe/base.phtml deleted file mode 100644 index 4c53ca20..00000000 --- a/application/default/views/scripts/haihe/base.phtml +++ /dev/null @@ -1,30 +0,0 @@ -headTitle($this->config->title->site); -$this->headTitle($this->config->title->data); -$this->headTitle()->setSeparator(' - '); -$this->headLink()->appendStylesheet('/css/water.css'); -$this->nav[] = array('link'=>"/haihe",'title'=>'海河流域观测数据集'); -?> -render('breadcrumbs.phtml'); ?> -
    -
    - partial('haihe/navi.phtml'); ?> -
    -
    - info) : ?> -
    - info['body'])) echo $this->info['body'];?> -
    - - metadata) : ?> - page->getNavigation(); ?> -
    -
      - metadata as $md) : ?> -
    1. - -
    -
    - -
    -
    \ No newline at end of file diff --git a/application/default/views/scripts/haihe/document.phtml b/application/default/views/scripts/haihe/document.phtml deleted file mode 100644 index 370b05ff..00000000 --- a/application/default/views/scripts/haihe/document.phtml +++ /dev/null @@ -1,51 +0,0 @@ -headTitle($this->config->title->site); -$this->headTitle($this->config->title->data); -$this->headTitle()->setSeparator(' - '); -$this->headLink()->appendStylesheet('/css/water.css'); -$this->breadcrumb('首页'); -$this->breadcrumb()->setSeparator(' > '); -$this->theme->AppendPlus($this,'colorbox'); -$this->nav[] = array('link'=>"/haihe",'title'=>'海河流域观测数据集'); -?> -render('breadcrumbs.phtml'); ?> -
    -
    - partial('haihe/navi.phtml'); ?> -
    - -
    -

    数据相关文献

    - refs) : ?> - page->getNavigation(); ?> -
    -
      - refs as $md) : ?> -
    1. 查看'; - if (!empty($md['link'])) : - echo ' 下载'; - else : - if (!empty($md['attid'])) echo ' 下载'; - endif; - ?> - 相关数据] -
    2. - -
    -
    - -
    -
    - \ No newline at end of file diff --git a/application/default/views/scripts/haihe/index.phtml b/application/default/views/scripts/haihe/index.phtml deleted file mode 100644 index 11407b57..00000000 --- a/application/default/views/scripts/haihe/index.phtml +++ /dev/null @@ -1,22 +0,0 @@ -headTitle($this->config->title->site); -$this->headTitle($this->config->title->data); -$this->headTitle()->setSeparator(' - '); -$this->headLink()->appendStylesheet('/css/water.css'); -$this->nav[] = array('link'=>"/haihe",'title'=>'海河流域观测数据集'); -?> -render('breadcrumbs.phtml'); ?> -
    -
    - partial('haihe/navi.phtml'); ?> -
    - -
    -
    -

    info['title'])) echo $this->info['title']; ?>

    - - -
    info['body'])) echo $this->info['body'];?>
    -
    -
    -
    diff --git a/application/default/views/scripts/haihe/navi.phtml b/application/default/views/scripts/haihe/navi.phtml deleted file mode 100644 index ad49c1a3..00000000 --- a/application/default/views/scripts/haihe/navi.phtml +++ /dev/null @@ -1,38 +0,0 @@ -
    -
    - -
    - - - - - -
    \ No newline at end of file diff --git a/application/default/views/scripts/haihe/view.phtml b/application/default/views/scripts/haihe/view.phtml deleted file mode 100755 index 3eff1e69..00000000 --- a/application/default/views/scripts/haihe/view.phtml +++ /dev/null @@ -1,578 +0,0 @@ -headTitle($this->config->title->site); - $this->headTitle($this->config->title->data); - $this->headTitle($this->metadata->title); - $this->headTitle()->setSeparator(' - '); - $this->breadcrumb('首页'); - $this->breadcrumb(''.$this->config->title->data.''); - $this->breadcrumb('查看元数据'); - $this->breadcrumb()->setSeparator(' > '); - $this->theme->AppendPlus($this,'google_map_v3'); - $this->theme->AppendPlus($this,'colorbox'); - if(!empty($this->dataService)) { - $this->theme->AppendModel($this,"dataservice"); - } - $this->nav[] = array('link'=>"/haihe",'title'=>'海河流域观测数据集'); -?> - -render('breadcrumbs.phtml'); ?> -metadata;if ($md):?> -

    escape($md->title); -if ($md->title_en) echo '
    '.$this->escape($md->title_en);?> -

    -
    -
    -
    -
    - -

    -

    ',$md->description);?> -

    -
    -
    - mcitation) : ?> -
    -

    本数据要求的多篇文献引用

    -
      - mcitation as $ref) : - echo '
    1. '.$ref->reference; - echo '查看'; - if (empty($ref->link)) - { - if(!empty($ref->attid)) - echo '下载'; - }else{ - echo '下载'; - } - echo "
    2. "; - endforeach; - ?> -
    - - citation) : ?> -
    -

    本数据引用方式数据引用帮助

    -

    datadoi) || !strpos($md->citation,$md->datadoi)) : ?>文章的引用 - escape($md->citation);if (strpos($md->citation,$md->datadoi)) : ?> - (下载引用:RIS格式 | RIS英文格式 | Bibtex格式 | Bibtex英文格式) - -

    - datadoi) && !strpos($md->citation,$md->datadoi)) : ?> -

    数据的引用authors,1,-1).'. '.$md->title.'. '.$md->publisher.', '.(empty($md->ts_published)?$md->publish_year:date('Y',strtotime($md->ts_published))).'. doi:'.$md->doi; - echo ' ['.str_replace('"','',substr($md->author_en,1,-1)).'. '.$md->title_en.'. '.$md->publisher_en.', '.(empty($md->ts_published)?$md->publish_year:date('Y',strtotime($md->ts_published))).'. doi:'.$md->doi.']'; - ?> (下载引用:RIS格式 | RIS英文格式 | Bibtex格式 | Bibtex英文格式)

    - ref) : ?> -
    -

    相关文献(作者推荐)

    -
      - ref as $ref) : - echo '
    1. '.$ref->reference; - echo '查看'; - if (empty($ref->link)) - { - if(!empty($ref->attid)) - echo '下载'; - }else{ - echo '下载'; - } - echo "
    2. "; - endforeach; - ?> -
    - themeref) :?> - -
    -

    专题文献

    -
      - themeref as $ref) : - echo '
    1. '.$ref->reference; - echo '查看'; - if (empty($ref->link)) - { - if(!empty($ref->attid)) - echo ' | 下载'; - }else{ - echo ' | 下载'; - } - echo "
    2. "; - endforeach; - ?> -
    - userref) : ?> -
    -

    数据施引文献

    -
      - userref as $ref) : - echo '
    1. '.$ref->reference; - echo '查看'; - if (empty($ref->link)) - { - if(!empty($ref->attid)) - echo '下载'; - }else{ - echo '下载'; - } - echo "
    2. "; - endforeach; - if (count($this->userref)==15) - { - echo '更多施引文献'; - } - ?> -
    - -
    -

    数据使用声明

    - uselimits) : - foreach($this->uselimits as $uselimit) : - echo '

    '.str_replace(array("\r\n", "\n", "\r"),'

    ',$this->escape($uselimit->uselimit)).'

    '; - endforeach; - ?> - -

    为尊重知识产权、保障数据作者的权益、扩展数据中心的服务、评估数据的应用潜力,请数据使用者在使用数据所产生的研究成果中(包括公开发表的论文、论著、数据产品和未公开发表的研究报告、数据产品等成果),明确注明数据来源和数据作者。对于转载(二次或多次发布)的数据,作者还须注明原始数据来源。

    -

    中文发表的成果参考以下规范注明: 数据来源于黑河计划数据管理中心、寒区旱区科学数据中心(http://westdc.westgis.ac.cn)

    -

    英文发表的成果依据以下规范注明: The data set is provided by Cold and Arid Regions Sciences Data Center at Lanzhou (http://westdc.westgis.ac.cn)

    -

    - - data_archives){ ?> -

    数据相关新闻

    -
      - data_archives as $v){?> -
    • - -
    -
    - - suppinfo || $this->fund) : ?> -

    资助项目

    - fund)) : ?> -
      - fund as $k=>$v) : ?> -
    • (项目编号:) [(No. )]
    • - -
    - suppinfo)) : ?> - '.str_replace(array("\r\n", "\n", "\r"),'

    ',$this->escape($md->suppinfo)).'

    ';?> - -
    - - resources) : ?> -

    相关资源

    - -
    - -
    -
    - keys as $cg){ - if($cg['keytype']=="theme") - $keywords[]=$cg['keyword']; - } - $ev = join(" ",$keywords); - ?> -
    - -
    - - -
    -
      -
      -
      - downhistory) : ?> -

      最近10条服务记录如下:

      -
        - downhistory as $v){ - echo '
      1. '.date("Y-m-d",strtotime($v->ts_created))." ".$v->unit." ".$v->realname; - if (!empty($v->offlineproject)) - echo ' 用途:'.$v->offlineproject; - elseif (!empty($v->onlineproject)) - echo ' 用途:'.$v->onlineproject; - echo '
      2. '; - } - ?> -
      - - 暂时没有服务记录,欢迎您下载使用! - -
      -
      - -
      -
      -
      -
      -
      - status>0 and $md->status<5) : ?> -

      此数据还在评审过程中,我们真切地邀请您参加此数据的评审,以便我们能尽快发布此数据!评审

      - -

      数据评论

      -
      -
      评论加载中
      -
      - hasIdentity()) - { - $user = $auth->getIdentity(); - $name = $user->realname; - $email = $user->email; - }else - { - $name = ""; - $email = ""; - } - ?> -
      -
      - -
      - -
      -
      -
      - -
      - -
      -
      -
      - -
      - e.g. http://westdc.westgis.ac.cn/ -
      -
      -
      - -
      - -
      -
      -
      - -
      - -
      -
      -
      -
      - - - 提交 -
      -
      -
      -
      - -
      -
      -
      -
      - - '学科','place'=>'地点','theme'=>'主题','temporal'=>'时间词','stratum'=>'地层'); -$kt=''; -$i=0; -foreach($this->keys as $cg) : - if ($kt==$cg['keytype']) : - $i+=1; - else : - if (!empty($kt)) echo ''; - $kt=$cg['keytype']; - $i=0; - endif; - if ($i==0) { - ?> - - doi) : ?> -
      • 数据DOI:doi; ?>
      - -
      -
      -

      数据细节文件列表

      -
        - fileformat) : ?> -
      • 格式:fileformat; ?>
      • - -
      • 大小:filesize; ?>MB
      • - downloaded>9) :?> -
      • 下载:downloaded; ?>次
      • - -
      • 浏览:viewed; ?>次
      • - - timebegin)) : ?> -
      • 数据时间范围:timebegin));if (!empty($md->timeend)) echo " 至 ".date('Y-m-d',strtotime($md->timeend)); ?>
      • - - doc)) : ?> - - - attachments) : ?> -
      • 相关文档: - attachments as $k=>$a) : ?> - - - -
      • - -
      • 数据共享方式:datatype) print "离线"; else print "在线(可直接下载)";?>
      • -
      -
      - status>0 and $md->status<5) : ?> - 数据评审 - datatype) : ?> - - 在线下载 - - - dataService)) { ?> - theme->AppendPlus($this,'datepicker'); ?> - - - - - 放入数据篮 - - - - 收藏此数据 - -
      -
      -
      -

      空间位置

      -
      -
      -

      联系信息

      -
      -
        - '资源提供者','custodian'=>'维护者','owner'=>'拥有者','user'=>'用户','distributor'=>'数据服务联系人','originator'=>'创建者','pointOfContact'=>'联系人','principalInvestigator'=>'数据调查与处理者','processor'=>'处理者','publisher'=>'元数据发布者','author'=>'元数据作者'); - $r=''; - $i=0; - foreach($this->authors as $k=>$author) : - if ($author->role!=$r) - { - $r=$author->role; - $i=0; - if ($k>0) echo ''; - echo '
      • '.$party_zh[$author->role].':'; - } - if ($i>0) echo ','; - $i+=1; - if (!empty($author->email) && $r!='principalInvestigator') - echo ''; - echo ''; - if (!empty($author->individual)) - echo $author->individual; - else - echo $author->organisation; - echo ''; - if (!empty($author->email)) echo ''; - if ($k+1==count($this->authors)) echo '
      • '; - endforeach; - ?> -
      -
      -
        -
      • 元数据更新时间:ts_created)); ?>
      • -
      • 下载元数据: - Adobe PDF格式 - OpenOffice odt格式 - Word doc格式 - 查看XML源文件 -
      • - - version->c>0):?> -
      • 版本历史:version->c ?> 个
      • - -
      -
      - -
      -
      -
      分享到
      - -
      - - - - - - - - - -
      - -
      -
      -
      - - - -

      Cannot find the metadata.

      -

      没有找到对应的元数据。

      - - - diff --git a/application/default/views/scripts/heihe/author.phtml b/application/default/views/scripts/heihe/author.phtml deleted file mode 100644 index 71d63c27..00000000 --- a/application/default/views/scripts/heihe/author.phtml +++ /dev/null @@ -1,71 +0,0 @@ -headTitle($this->config->title->site); -$this->headTitle($this->config->title->data); -$this->headTitle('数据作者浏览'); -$this->headTitle()->setSeparator(' - '); -$this->nav[] = array('link'=>"/heihe/author",'title'=>'作者浏览'); -$this->theme->AppendPlus($this,'colorbox'); -$this->headLink()->appendStylesheet('/css/water.css'); -?> -render('breadcrumbs.phtml') ?> -
      -
      - partial('heihe/navi.phtml'); ?> -
      -
      - -author) : ?> -paginator)) : ?> - -paginator as $md) : ?> -
      - - - -
      -

      escape($md['title']);?>

      - -

      DOI: - 申请日期: - 创建日期: - - 发布日期: -

      - -

      DOI:

      - - - -
      ',mb_strlen($md['description'])>400?$this->escape(mb_substr($md['description'],0,400,'UTF-8').'...'):$this->escape($md['description']));?>
      -
      -
      - - - - -paginator)) : ?> - - - - - -
      -
      - diff --git a/application/default/views/scripts/heihe/base.phtml b/application/default/views/scripts/heihe/base.phtml deleted file mode 100644 index 8e37f34b..00000000 --- a/application/default/views/scripts/heihe/base.phtml +++ /dev/null @@ -1,28 +0,0 @@ -headTitle($this->config->title->site); -$this->headTitle($this->config->title->data); -$this->headTitle()->setSeparator(' - '); -$this->headLink()->appendStylesheet('/css/water.css'); -?> -render('breadcrumbs.phtml') ?> -
      -
      - partial('heihe/navi.phtml'); ?> -
      -
      -
      -info['body'])) echo $this->info['body'];?> -
      -
      - metadata) : ?> - page->getNavigation(); ?> -
      -
        - metadata as $md) : ?> -
      1. - -
      -
      - -
      -
      \ No newline at end of file diff --git a/application/default/views/scripts/heihe/browse.phtml b/application/default/views/scripts/heihe/browse.phtml deleted file mode 100755 index 20b6a74e..00000000 --- a/application/default/views/scripts/heihe/browse.phtml +++ /dev/null @@ -1,32 +0,0 @@ -headTitle($this->config->title->site); - $this->headTitle($this->config->title->data); - $this->headTitle('全部浏览'); -$this->headTitle()->setSeparator(' - '); -$this->headLink()->appendStylesheet('/css/water.css'); -$this->breadcrumb('首页'); -$this->breadcrumb(''.$this->config->title->data.''); -$this->breadcrumb(''.$this->config->title->heihe.''); -$this->breadcrumb('浏览'); -$this->breadcrumb()->setSeparator(' > '); -$this->nav[] = array('link'=>"/browse",'title'=>'整体浏览'); -?> -render('breadcrumbs.phtml') ?> -
      -
      - partial('heihe/navi.phtml'); ?> -
      -
      - page->getNavigation(); ?> -
      -
      -
        - metadata as $md) : ?> -
      1. - -
      -
      -
      - page->getNavigation(); ?> -
      -
      \ No newline at end of file diff --git a/application/default/views/scripts/heihe/category.phtml b/application/default/views/scripts/heihe/category.phtml deleted file mode 100755 index 94b434e9..00000000 --- a/application/default/views/scripts/heihe/category.phtml +++ /dev/null @@ -1,50 +0,0 @@ -headTitle($this->config->title->site); - $this->headTitle($this->config->title->data); -$this->headTitle('分类浏览'); -if (!empty($this->codename)) $this->headTitle($this->codename); -$this->headTitle()->setSeparator(' - '); -$this->headLink()->appendStylesheet('/css/water.css'); -$this->breadcrumb('首页'); -$this->breadcrumb(''.$this->config->title->data.''); -$this->breadcrumb(''.$this->config->title->heihe.''); -$this->breadcrumb('分类浏览:'.$this->codename); -$this->breadcrumb()->setSeparator(' > '); -?> -
      -
      - partial('heihe/navi.phtml'); ?> -
      -
      -
      breadcrumb() ?>
      -
      - -
      - - metadata)) : ?> -
      - page->getNavigation(); ?> -
      -
      -
        - metadata as $md) : ?> -
      1. - -
      -
      -
      - page->getNavigation(); ?> -
      - - -
      -
      \ No newline at end of file diff --git a/application/default/views/scripts/heihe/document.phtml b/application/default/views/scripts/heihe/document.phtml deleted file mode 100644 index c6c3da06..00000000 --- a/application/default/views/scripts/heihe/document.phtml +++ /dev/null @@ -1,52 +0,0 @@ -headTitle($this->config->title->site); -$this->headTitle($this->config->title->data); -$this->headTitle()->setSeparator(' - '); -$this->headLink()->appendStylesheet('/css/water.css'); -$this->breadcrumb('首页'); -$this->breadcrumb(''.$this->config->title->data.''); -$this->breadcrumb(''.$this->config->title->heihe.''); -$this->breadcrumb('数据文档'); -$this->breadcrumb()->setSeparator(' > '); -$this->theme->AppendPlus($this,'colorbox'); -$this->nav[] = array('link'=>"/heihe/document",'title'=>'数据文档'); -?> -render('breadcrumbs.phtml') ?> -
      -
      - partial('heihe/navi.phtml'); ?> -
      -
      -
      -

      数据相关文献

      - refs) : ?> - page->getNavigation(); ?> -
      -
        - refs as $md) : ?> -
      1. 下载'; - } - ?> - [相关数据] -
      2. - -
      -
      - -
      -
      - \ No newline at end of file diff --git a/application/default/views/scripts/heihe/doi.phtml b/application/default/views/scripts/heihe/doi.phtml deleted file mode 100644 index 945dc374..00000000 --- a/application/default/views/scripts/heihe/doi.phtml +++ /dev/null @@ -1,60 +0,0 @@ -headTitle($this->config->title->site); -$this->headTitle($this->config->title->data); -$this->headTitle('DOI浏览'); -$this->headTitle()->setSeparator(' - '); -$this->nav[] = array('link'=>"/heihe/doi",'title'=>'DOI浏览'); -$this->theme->AppendPlus($this,'colorbox'); -?> -render('breadcrumbs.phtml') ?> -
      -
      - partial('heihe/navi.phtml'); ?> -
      -
      - - -paginator)) : ?> - -paginator as $md) : ?> -
      - - - -
      -

      escape($md['title']);?>

      - -

      DOI: - 申请日期: - 创建日期: - - 发布日期: -

      - -

      DOI:

      - - - -
      ',mb_strlen($md['description'])>400?$this->escape(mb_substr($md['description'],0,400,'UTF-8').'...'):$this->escape($md['description']));?>
      -
      -
      - - - -暂无对应信息。 - -
      -
      - diff --git a/application/default/views/scripts/heihe/fund-list.phtml b/application/default/views/scripts/heihe/fund-list.phtml deleted file mode 100644 index cc7c15e0..00000000 --- a/application/default/views/scripts/heihe/fund-list.phtml +++ /dev/null @@ -1,26 +0,0 @@ -headTitle($this->config->title->site); -$this->headTitle($this->config->title->data); -$this->headTitle('支持项目'); -$this->headTitle()->setSeparator(' - '); -$this->nav[] = array('link'=>"/fund",'title'=>'项目浏览'); -?> -render('breadcrumbs.phtml') ?> -
      -
      - partial('heihe/navi.phtml'); ?> -
      -
      -paginator)) : ?> - -paginator as $md) : ?> -
      -

      escape($md['title']);?>

      -编号: | 类型: | 提供数据集:条,5000?(round($md['filesize']/1024,2)).'GB':$md['filesize'].'MB'; ?>
      - - - -暂无对应信息。 - -
      -
      \ No newline at end of file diff --git a/application/default/views/scripts/heihe/fund.phtml b/application/default/views/scripts/heihe/fund.phtml deleted file mode 100644 index 9f92dcfb..00000000 --- a/application/default/views/scripts/heihe/fund.phtml +++ /dev/null @@ -1,43 +0,0 @@ -headTitle($this->config->title->site); -$this->headTitle($this->config->title->data); -$this->headTitle('支持项目'); -$this->headTitle()->setSeparator(' - '); -$this->nav[] = array('link'=>"/fund",'title'=>'项目浏览'); -$this->theme->AppendPlus($this,'colorbox'); -?> -render('breadcrumbs.phtml') ?> -
      -
      - partial('heihe/navi.phtml'); ?> -
      -
      -
      -

      escape($this->fund['title']);?>

      -编号:fund['fund_id']; ?> | 类型:fund['fund_type']; ?> -
      -paginator)) : ?> -
      - -paginator as $md) : ?> -
      - - - -
      -

      escape($md['title']);?>

      -
      ',mb_strlen($md['description'])>400?$this->escape(mb_substr($md['description'],0,400,'UTF-8').'...'):$this->escape($md['description']));?>
      -
      -
      - - - -暂无对应信息。 - -
      - \ No newline at end of file diff --git a/application/default/views/scripts/heihe/index.phtml b/application/default/views/scripts/heihe/index.phtml deleted file mode 100755 index ecb28899..00000000 --- a/application/default/views/scripts/heihe/index.phtml +++ /dev/null @@ -1,53 +0,0 @@ -headTitle($this->config->title->site); -$this->headTitle($this->config->title->data); -$this->headTitle()->setSeparator(' - '); -$this->headLink()->appendStylesheet('/css/water.css'); -$this->breadcrumb('首页'); -$this->breadcrumb(''.$this->config->title->data.''); -$this->breadcrumb($this->config->title->heihe); -$this->breadcrumb()->setSeparator(' > '); -?> -render('breadcrumbs.phtml') ?> -
      -
      - partial('heihe/navi.phtml'); ?> -
      -
      -
      -

      黑河流域数据简介

      - info['body'])) echo $this->info['body'];?> -
      -
      -

      已整理数据展示

      -
        - meatdata as $md) : ?> -
      • - - Data Thumbnail - -
      • - -
      - -
      -
      -
      - \ No newline at end of file diff --git a/application/default/views/scripts/heihe/list.phtml b/application/default/views/scripts/heihe/list.phtml deleted file mode 100644 index b7d6ebef..00000000 --- a/application/default/views/scripts/heihe/list.phtml +++ /dev/null @@ -1,41 +0,0 @@ -headTitle($this->config->title->site); -$this->headTitle($this->config->title->data); -$this->headTitle()->setSeparator(' - '); -$this->headLink()->appendStylesheet('/css/water.css'); -$this->breadcrumb('首页'); -$this->breadcrumb(''.$this->config->title->data.''); -$this->breadcrumb(''.$this->config->title->heihe.''); -$this->breadcrumb('数据列表'); -$this->breadcrumb()->setSeparator(' > '); -$this->theme->AppendPlus($this,'colorbox'); -?> -
      -
      - partial('heihe/navi.phtml'); ?> -
      -
      -
      breadcrumb() ?>
      -
      - metadata) : ?> -
      -
        - metadata as $md) : ?> -
      1. - - - [缩略图幻灯片] - [PDF版本下载] - [ODT版本下载] - [DOC版本下载] - -
      2. - -
      -
      - -
      -
      - \ No newline at end of file diff --git a/application/default/views/scripts/heihe/navi.phtml b/application/default/views/scripts/heihe/navi.phtml deleted file mode 100644 index 91680359..00000000 --- a/application/default/views/scripts/heihe/navi.phtml +++ /dev/null @@ -1,59 +0,0 @@ - - - - \ No newline at end of file diff --git a/application/default/views/scripts/heihe/offlinelist.phtml b/application/default/views/scripts/heihe/offlinelist.phtml deleted file mode 100755 index 88fe7b14..00000000 --- a/application/default/views/scripts/heihe/offlinelist.phtml +++ /dev/null @@ -1,34 +0,0 @@ -headTitle($this->config->title->site); -$this->headTitle($this->config->title->data); -$this->headTitle('离线数据浏览'); -$this->headTitle()->setSeparator(' - '); -$this->nav[] = array('link'=>"/heihe/offline",'title'=>'离线数据浏览'); -?> -render('breadcrumbs.phtml') ?> -
      -
      - partial('heihe/navi.phtml'); ?> -
      -
      - page->getNavigation(); ?> -
      -
      -
        - metadata as $md) : ?> -
        - - - -
        -

        escape($md['title']);?>

        -
        ',mb_strlen($md['description'])>400?$this->escape(mb_substr($md['description'],0,400,'UTF-8').'...'):$this->escape($md['description']));?>
        -
        -
        - -
      -
      -
      - page->getNavigation(); ?> -
      -
      \ No newline at end of file diff --git a/application/default/views/scripts/heihe/onlinelist.phtml b/application/default/views/scripts/heihe/onlinelist.phtml deleted file mode 100755 index 18e2f69d..00000000 --- a/application/default/views/scripts/heihe/onlinelist.phtml +++ /dev/null @@ -1,34 +0,0 @@ -headTitle($this->config->title->site); -$this->headTitle($this->config->title->data); -$this->headTitle('在线数据浏览'); -$this->headTitle()->setSeparator(' - '); -$this->nav[] = array('link'=>"/heihe/offline",'title'=>'在线数据浏览'); -?> -render('breadcrumbs.phtml') ?> -
      -
      - partial('heihe/navi.phtml'); ?> -
      -
      - page->getNavigation(); ?> -
      -
      -
        - metadata as $md) : ?> -
        - - - -
        -

        escape($md['title']);?>

        -
        ',mb_strlen($md['description'])>400?$this->escape(mb_substr($md['description'],0,400,'UTF-8').'...'):$this->escape($md['description']));?>
        -
        -
        - -
      -
      -
      - page->getNavigation(); ?> -
      -
      \ No newline at end of file diff --git a/application/default/views/scripts/heihe/org.phtml b/application/default/views/scripts/heihe/org.phtml deleted file mode 100644 index 64dfdc1e..00000000 --- a/application/default/views/scripts/heihe/org.phtml +++ /dev/null @@ -1,50 +0,0 @@ -headTitle($this->config->title->site); - $this->headTitle($this->config->title->data); -$this->headTitle('分单位浏览'); -if (!empty($this->codename)) $this->headTitle($this->codename); -$this->headTitle()->setSeparator(' - '); -$this->nav[] = array('link'=>"/heihe/org",'title'=>'分单位浏览'); -$this->theme->AppendPlus($this,'colorbox'); -?> -render('breadcrumbs.phtml') ?> -
      -
      - partial('heihe/navi.phtml'); ?> -
      -
      - - - -paginator)) : ?> -

      当前浏览:codename; ?>

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

        escape($md['title']);?>

        -
        ',mb_strlen($md['description'])>400?$this->escape(mb_substr($md['description'],0,400,'UTF-8').'...'):$this->escape($md['description']));?>
        -
        -
        - -
      - - -
      -
      - -
      - \ No newline at end of file diff --git a/application/default/views/scripts/heihe/project-index.phtml b/application/default/views/scripts/heihe/project-index.phtml deleted file mode 100644 index d5cc1fa0..00000000 --- a/application/default/views/scripts/heihe/project-index.phtml +++ /dev/null @@ -1,89 +0,0 @@ -headTitle($this->config->title->site); -$this->headTitle($this->config->title->data); -$this->headTitle()->setSeparator(' - '); -$this->headLink()->appendStylesheet('/css/water.css'); -$this->breadcrumb('首页'); -$this->breadcrumb(''.$this->config->title->data.''); -$this->breadcrumb(''.$this->config->title->heihe.''); -$this->breadcrumb('数据汇交计划'); -$this->breadcrumb()->setSeparator(' > '); -$this->theme->AppendPlus($this,'colorbox'); -$this->nav[] = array('link'=>"/heihe/projects",'title'=>'数据汇交计划'); -?> -render('breadcrumbs.phtml') ?> -
      -
      - partial('heihe/navi.phtml'); ?> -
      -
      - error)) {?> -
      error;?>
      - -
      - - searchLink)){ ?> -
      -
      - - -
      -
      - -
      - paginator)): - echo '
        '; - if(!empty($this->page)) - { - $autoindex = ($this->page-1) * $this->pageLimit; - }else{ - $autoindex=0; - } - foreach ($this->paginator as $item): - $autoindex++; - ?> -
      • -

        . 数据产出

        -

        - 编号: | - 负责人: | - 开始时间: |  - 状态: - -  | 下载 - -

        - user_email == $item['email']) - { ?> -

        上传计划

        - - -
      • - "; - endif; ?> -
      - - -
      - -
      -
      - diff --git a/application/default/views/scripts/heihe/project-invite.phtml b/application/default/views/scripts/heihe/project-invite.phtml deleted file mode 100644 index d5b563fc..00000000 --- a/application/default/views/scripts/heihe/project-invite.phtml +++ /dev/null @@ -1,30 +0,0 @@ -headTitle($this->config->title->site); -$this->headTitle($this->config->title->data); -$this->headTitle()->setSeparator(' - '); -$this->headLink()->appendStylesheet('/css/water.css'); -$this->breadcrumb('首页'); -$this->breadcrumb(''.$this->config->title->data.''); -$this->breadcrumb(''.$this->config->title->heihe.''); -$this->breadcrumb('数据汇交计划'); -$this->breadcrumb()->setSeparator(' > '); -$this->theme->AppendPlus($this,'colorbox'); -?> -
      -
      - partial('heihe/navi.phtml'); ?> -
      -
      -
      breadcrumb() ?>
      - error)) {?> -
      error;?>
      - - - -
      -
      - \ No newline at end of file diff --git a/application/default/views/scripts/heihe/project-upload.phtml b/application/default/views/scripts/heihe/project-upload.phtml deleted file mode 100644 index 7e954e10..00000000 --- a/application/default/views/scripts/heihe/project-upload.phtml +++ /dev/null @@ -1,46 +0,0 @@ -headTitle($this->config->title->site); - $this->headTitle('上传计划'); - $this->headTitle()->setSeparator(' - '); - $this->headLink()->appendStylesheet('/css/admin.css'); - $this->breadcrumb()->setSeparator(' > '); - $this->headScript()->appendFile('/js/jquery-1.7.min.js'); - $this->headScript()->appendFile('/js/jquery.colorbox-min.js'); - $this->headLink()->appendStylesheet('/css/colorbox.css'); - $this->headLink()->appendStylesheet('/css/author.css'); - $this->headScript()->appendFile('/static/js/uploadify/swfobject.js'); - $this->headScript()->appendFile('/static/js/uploadify/jquery.uploadify.v2.1.4.min.js'); - $this->headLink()->appendStylesheet('/static/js/uploadify/uploadify.css'); -?> -error)) -{ - echo $this->error; - echo ""; -}else{?> - message)) - { - echo "

      ".$this->message."

      "; - }?> - att)) - { - echo '
      -
        '. - '
      • '.$this->att['realname']."(". round(($this->att['filesize'])/1024,2) .'KB) 【下载
      • ' - .'
      '; - } - ?> -
      -
      -

      注:只能选择一个文件,如果重新上传,将自动替换之前上传的文件
      - - - -

      -
      -
      - - diff --git a/application/default/views/scripts/heihe/search.phtml b/application/default/views/scripts/heihe/search.phtml deleted file mode 100644 index c136de80..00000000 --- a/application/default/views/scripts/heihe/search.phtml +++ /dev/null @@ -1,41 +0,0 @@ -headTitle($this->config->title->site); -$this->headTitle($this->config->title->data); - -$this->headTitle('快速搜索'); -if (!empty($this->codename)) $this->headTitle($this->codename); -$this->headTitle()->setSeparator(' - '); -$this->headLink()->appendStylesheet('/css/water.css'); -$this->breadcrumb('首页'); -$this->breadcrumb(''.$this->config->title->data.''); -$this->breadcrumb(''.$this->config->title->heihe.''); -$this->breadcrumb('快速搜索'); -$this->breadcrumb()->setSeparator(' > '); -$this->nav[] = array('link'=>"/heihe/search",'title'=>'快速搜索'); -?> -render('breadcrumbs.phtml') ?> -
      -
      -partial('heihe/navi.phtml',array('key'=>$this->key)); ?> -
      -
      -metadata)) : ?> -page->getNavigation(); ?> -
      -
      -
        - metadata as $md) : ?> -
      1. - -
      -
      -
      -page->getNavigation(); -else : -?> -
      -

      您的搜索结果为空,请尝试其他关键词进行查询。

      -
      - -
      -
      \ No newline at end of file diff --git a/application/default/views/scripts/heihe/submit-newdata-add.phtml b/application/default/views/scripts/heihe/submit-newdata-add.phtml deleted file mode 100644 index 7614d93f..00000000 --- a/application/default/views/scripts/heihe/submit-newdata-add.phtml +++ /dev/null @@ -1,65 +0,0 @@ -headTitle($this->config->title->site); -$this->headTitle($this->config->title->data); -$this->headTitle()->setSeparator(' - '); -$this->headLink()->appendStylesheet('/css/water.css'); -$this->breadcrumb('首页'); -$this->breadcrumb(''.$this->config->title->data.''); -$this->breadcrumb(''.$this->config->title->heihe.''); -$this->breadcrumb('新建元数据'); -$this->breadcrumb()->setSeparator(' > '); -$this->theme->AppendPlus($this,'colorbox'); -$this->nav[] = array('link'=>"/heihe/submit",'title'=>'数据汇交'); -?> -render('breadcrumbs.phtml') ?> -
      -
      - partial('heihe/navi.phtml'); ?> -
      -
      - error)) {?> -
      error;?>
      - - -
      -

      根据已有元数据来创建数据

      -
      -
      - - -
      -
      - paginator)): - echo '
        '; - $autoindex=0; - foreach ($this->paginator as $item): - $autoindex++; - ?> -
      • -

        - 【以此为模板新建 - | 查看数据

        -

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

        -
      • - "; - endif; ?> - -
      - -
      -
      - \ No newline at end of file diff --git a/application/default/views/scripts/heihe/submit-newdata.phtml b/application/default/views/scripts/heihe/submit-newdata.phtml deleted file mode 100644 index 2e98260b..00000000 --- a/application/default/views/scripts/heihe/submit-newdata.phtml +++ /dev/null @@ -1,67 +0,0 @@ -headTitle($this->config->title->site); -$this->headTitle($this->config->title->data); -$this->headTitle()->setSeparator(' - '); -$this->headLink()->appendStylesheet('/css/water.css'); -$this->breadcrumb('首页'); -$this->breadcrumb(''.$this->config->title->data.''); -$this->breadcrumb(''.$this->config->title->heihe.''); -$this->breadcrumb('新建元数据'); -$this->breadcrumb()->setSeparator(' > '); -$this->theme->AppendPlus($this,'colorbox'); -$this->nav[] = array('link'=>"/heihe/submit",'title'=>'数据汇交'); -?> -render('breadcrumbs.phtml') ?> -
      -
      - partial('heihe/navi.phtml'); ?> -
      -
      - error)) {?> -
      error;?>
      - - -
      -

      根据预制元数据模板创建数据

      -
      -
      - - -
      -
      - paginator)): - echo '
        '; - $autoindex=0; - foreach ($this->paginator as $item): - $autoindex++; - ?> -
      • -

        - 【以此为模板新建 - isadmin || $item['isowner']==0) : ?> - | 修改此模板 - - 】

        -
      • - "; - endif; ?> -
      - - -
      -
      - \ No newline at end of file diff --git a/application/default/views/scripts/heihe/submit-unsubmit.phtml b/application/default/views/scripts/heihe/submit-unsubmit.phtml deleted file mode 100644 index dd8ca212..00000000 --- a/application/default/views/scripts/heihe/submit-unsubmit.phtml +++ /dev/null @@ -1,140 +0,0 @@ -headTitle($this->config->title->site); -$this->headTitle($this->config->title->data); -$this->headTitle()->setSeparator(' - '); -$this->headLink()->appendStylesheet('/css/water.css'); -$this->breadcrumb('首页'); -$this->breadcrumb(''.$this->config->title->data.''); -$this->breadcrumb(''.$this->config->title->heihe.''); -$this->breadcrumb('数据列表'); -$this->breadcrumb()->setSeparator(' > '); -$this->theme->AppendPlus($this,'colorbox'); -$this->nav[] = array('link'=>"/heihe/submit",'title'=>'数据汇交'); -?> -render('breadcrumbs.phtml') ?> -
      -
      - partial('heihe/navi.phtml'); ?> -
      -
      - - error)) {?> -
      error;?>
      - -
      - paginator)): - echo '
      - - -
      -
      - - \ No newline at end of file diff --git a/application/default/views/scripts/heihe/tag.phtml b/application/default/views/scripts/heihe/tag.phtml deleted file mode 100755 index d3f722f3..00000000 --- a/application/default/views/scripts/heihe/tag.phtml +++ /dev/null @@ -1,55 +0,0 @@ -headTitle($this->config->title->site); -$this->headTitle($this->config->title->data); -if (!empty($this->codename)) $this->headTitle($this->codename); -$this->headTitle()->setSeparator(' - '); -$this->headLink()->appendStylesheet('/css/water.css'); -$this->nav[] = array('link'=>"/heihe/tag",'title'=>'关键词浏览'); -?> -render('breadcrumbs.phtml'); ?> -
      -
      - partial('heihe/navi.phtml'); ?> -
      -
      - metadata)) : ?> -
      -

      关键词:codename; ?> 【全部关键词

      - page->getNavigation(); ?> -
      -
      -
        - metadata as $md) : ?> -
      1. - -
      -
      -
      - page->getNavigation(); ?> -
      - - -
      - '地点关键词','theme'=>'主题关键词','discipline'=>'学科关键词','stratum'=>'地层关键词','temporal'=>'时间关键词'); - $type=''; -foreach($this->keywords as $cg) : - if ($type!=$cg['keytype']) : - if ($type!='') : ?> - - -

      -keytype) : ?>全部关键词

      -
        -
      • '>()
      • - -
      • '>()
      • - - -
      -
      - -
      -
      \ No newline at end of file diff --git a/application/default/views/scripts/heihe/thumb.phtml b/application/default/views/scripts/heihe/thumb.phtml deleted file mode 100644 index 4822b0f1..00000000 --- a/application/default/views/scripts/heihe/thumb.phtml +++ /dev/null @@ -1,54 +0,0 @@ -headTitle($this->config->title->site); -$this->headTitle($this->config->title->data); -$this->headTitle('缩略图浏览'); -$this->headTitle()->setSeparator(' - '); -$this->headLink()->appendStylesheet('/css/water.css'); -$this->breadcrumb('首页'); -$this->breadcrumb(''.$this->config->title->data.''); -$this->breadcrumb(''.$this->config->title->heihe.''); -$this->breadcrumb('缩略图浏览'); -$this->breadcrumb()->setSeparator(' > '); -$this->theme->AppendPlus($this,'colorbox'); -$this->theme->AppendPlus($this,'masonry'); -$this->nav[] = array('link'=>"/thumb",'title'=>'缩略图浏览'); -?> -render('breadcrumbs.phtml') ?> -
      -
      - partial('heihe/navi.phtml'); ?> -
      -
      - page->getNavigation(); ?> -
      -
      -
        - metadata as $md) : ?> -
      • -

        escape($md['title']);?>

        - - - -
        -

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

        -
        - 查看 -
      • - -
      -
      -
      - page->getNavigation(); ?> -
      -
      - \ No newline at end of file diff --git a/application/default/views/scripts/heihe/timeline.phtml b/application/default/views/scripts/heihe/timeline.phtml deleted file mode 100755 index d40d9d16..00000000 --- a/application/default/views/scripts/heihe/timeline.phtml +++ /dev/null @@ -1,25 +0,0 @@ -headTitle($this->config->title->site); -$this->headTitle($this->config->title->data); -$this->headTitle('时间轴导航'); -$this->headTitle()->setSeparator(' - '); -$this->headLink()->appendStylesheet('/css/water.css'); -$this->breadcrumb('首页'); -$this->breadcrumb(''.$this->config->title->data.''); -$this->breadcrumb(''.$this->config->title->heihe.''); -$this->breadcrumb('时间轴导航'); -$this->breadcrumb()->setSeparator(' > '); -$this->headScript()->appendFile('/js/timeline_var.js'); -$this->headScript()->appendFile('/js/timeline_js/timeline-api.js'); -$this->headScript()->appendFile('/js/heihetime.js'); -$this->nav[] = array('link'=>"/heihe/timeline",'title'=>'时间轴导航'); -?> -render('breadcrumbs.phtml') ?> -
      -
      - partial('heihe/navi.phtml'); ?> -
      -
      -
      -
      -
      \ No newline at end of file diff --git a/application/default/views/scripts/heihe/timemap.phtml b/application/default/views/scripts/heihe/timemap.phtml deleted file mode 100644 index 8a7fcb05..00000000 --- a/application/default/views/scripts/heihe/timemap.phtml +++ /dev/null @@ -1,115 +0,0 @@ -headTitle($this->config->title->site); -$this->headTitle($this->config->title->data); -$this->headTitle('时空导航'); -$this->headTitle()->setSeparator(' - '); -$this->headLink()->appendStylesheet('/css/water.css'); -$this->breadcrumb('首页'); -$this->breadcrumb(''.$this->config->title->data.''); -$this->breadcrumb(''.$this->config->title->heihe.''); -$this->breadcrumb('时空联合导航'); -$this->breadcrumb()->setSeparator(' > '); -$this->theme->AppendPlus($this,'google_map_v3'); -$this->theme->AppendPlus($this,'colorbox'); -$this->headScript()->appendFile('/js/timeline_var.js'); -$this->headScript()->appendFile('/js/timeline_js/timeline-api.js'); -$this->headScript()->appendFile('/js/timemap.2.0.1/lib/mxn/mxn.js?(googlev3)'); -$this->headScript()->appendFile('/js/timemap.2.0.1/timemap.pack.js'); -$this->nav[] = array('link'=>"/heihe/timemap",'title'=>'时空联合导航'); -?> -render('breadcrumbs.phtml') ?> - -
      -
      - partial('heihe/navi.phtml'); ?> -
      -
      -
      -
      -
      -
      -
      -
      - - \ No newline at end of file diff --git a/application/default/views/scripts/heihe/view.phtml b/application/default/views/scripts/heihe/view.phtml deleted file mode 100755 index d93ac569..00000000 --- a/application/default/views/scripts/heihe/view.phtml +++ /dev/null @@ -1,557 +0,0 @@ -headTitle($this->config->title->site); - $this->headTitle($this->config->title->data); - $this->headTitle($this->metadata->title); - $this->headTitle()->setSeparator(' - '); - $this->breadcrumb('首页'); - $this->breadcrumb(''.$this->config->title->data.''); - $this->breadcrumb(''.$this->config->title->heihe.''); - $this->breadcrumb('查看元数据'); - $this->breadcrumb()->setSeparator(' > '); - $this->headLink()->appendStylesheet('/css/water.css'); - $this->theme->AppendPlus($this,'google_map_v3'); - $this->theme->AppendPlus($this,'colorbox'); - if(!empty($this->dataService)) { - $this->theme->AppendModel($this,"dataservice"); - } -?> -render('breadcrumbs.phtml') ?> - -metadata;if ($md):?> -
      -
      - partial('heihe/navi.phtml'); ?> -
      -
      -

      escape($md->title); -if ($md->title_en) echo '
      '.$this->escape($md->title_en);?> -

      -
      - -
      -
      -
      - -

      -

      ',$md->description);?> -

      -
      -
      - mcitation) : ?> -
      -

      本数据要求的多篇文献引用

      -
        - mcitation as $ref) : - if (empty($ref->link)) - echo '
      1. '.$ref->reference.'
      2. '; - else - echo '
      3. '.$ref->reference.' 下载
      4. '; - endforeach; - ?> -
      - - - citation) : ?> -
      -

      本数据引用方式数据引用帮助

      -

      datadoi) || !strpos($md->citation,$md->datadoi)) : ?>文章的引用 - escape($md->citation);if (strpos($md->citation,$md->datadoi)) : ?> - (下载引用:RIS格式 | RIS英文格式 | Bibtex格式 | Bibtex英文格式) - -

      - datadoi) && !strpos($md->citation,$md->datadoi)) : ?> -

      数据的引用authors,1,-1).'. '.$md->title.'. '.$md->publisher.', '.(empty($md->ts_published)?$md->publish_year:date('Y',strtotime($md->ts_published))).'. doi:'.$md->doi; - echo ' ['.str_replace('"','',substr($md->author_en,1,-1)).'. '.$md->title_en.'. '.$md->publisher_en.', '.(empty($md->ts_published)?$md->publish_year:date('Y',strtotime($md->ts_published))).'. doi:'.$md->doi.']'; - ?> (下载引用:RIS格式 | RIS英文格式 | Bibtex格式 | Bibtex英文格式)

      - ref) : ?> -
      -

      相关文献(作者推荐)

      -
        - ref as $ref) : - echo '
      1. '.$ref->reference; - echo '查看'; - if (empty($ref->link)) - { - if(!empty($ref->attid)) - echo '下载'; - }else{ - echo '下载'; - } - echo "
      2. "; - endforeach; - ?> -
      - themeref) :?> - -
      -

      专题文献

      -
        - themeref as $ref) : - echo '
      1. '.$ref->reference; - echo '查看'; - if (empty($ref->link)) - { - if(!empty($ref->attid)) - echo ' | 下载'; - }else{ - echo ' | 下载'; - } - echo "
      2. "; - endforeach; - ?> -
      - userref) : ?> -
      -

      数据施引文献

      -
        - userref as $ref) : - echo '
      1. '.$ref->reference; - echo '查看'; - if (empty($ref->link)) - { - if(!empty($ref->attid)) - echo '下载'; - }else{ - echo '下载'; - } - echo "
      2. "; - endforeach; - if (count($this->userref)==15) - { - echo '更多施引文献'; - } - ?> -
      - -
      -

      数据使用声明

      - uselimits) : - foreach($this->uselimits as $uselimit) : - echo '

      '.str_replace(array("\r\n", "\n", "\r"),'

      ',$this->escape($uselimit->uselimit)).'

      '; - endforeach; - ?> - -

      为尊重知识产权、保障数据作者的权益、扩展数据中心的服务、评估数据的应用潜力,请数据使用者在使用数据所产生的研究成果中(包括公开发表的论文、论著、数据产品和未公开发表的研究报告、数据产品等成果),明确注明数据来源和数据作者。对于转载(二次或多次发布)的数据,作者还须注明原始数据来源。

      -

      中文发表的成果参考以下规范注明: 数据来源于黑河计划数据管理中心、寒区旱区科学数据中心(http://westdc.westgis.ac.cn)

      -

      英文发表的成果依据以下规范注明: The data set is provided by Cold and Arid Regions Sciences Data Center at Lanzhou (http://westdc.westgis.ac.cn)

      -

      - - data_archives){ ?> -

      数据相关新闻

      -
        - data_archives as $v){?> -
      • - -
      -
      - - suppinfo || $this->fund) : ?> -

      资助项目

      - fund)) : ?> -
        - fund as $k=>$v) : ?> -
      • (项目编号:) [(No. )]
      • - -
      - suppinfo)) : ?> - '.str_replace(array("\r\n", "\n", "\r"),'

      ',$this->escape($md->suppinfo)).'

      ';?> - -
      - - resources) : ?> -

      相关资源

      - -
      - -
      -
      - keys as $cg){ - if($cg['keytype']=="theme") - $keywords[]=$cg['keyword']; - } - $ev = join(" ",$keywords); - ?> -
      - -
      - - -
      -
        -
        -
        - downhistory) : ?> -

        最近10条服务记录如下:

        -
          - downhistory as $v){ - echo '
        1. '.date("Y-m-d",strtotime($v->ts_created))." ".$v->unit." ".$v->realname; - if (!empty($v->offlineproject)) - echo ' 用途:'.$v->offlineproject; - elseif (!empty($v->onlineproject)) - echo ' 用途:'.$v->onlineproject; - echo '
        2. '; - } - ?> -
        - - 暂时没有服务记录,欢迎您下载使用! - -
        -
        - -
        -
        -
        -
        -
        - status>0 and $md->status<5) : ?> -

        此数据还在评审过程中,我们真切地邀请您参加此数据的评审,以便我们能尽快发布此数据!评审

        - -

        数据评论

        -
        -
        评论加载中
        -
        - hasIdentity()) - { - $user = $auth->getIdentity(); - $name = $user->realname; - $email = $user->email; - }else - { - $name = ""; - $email = ""; - } - ?> -
        -
        - -
        - -
        -
        -
        - -
        - -
        -
        -
        - -
        - e.g. http://westdc.westgis.ac.cn/ -
        -
        -
        - -
        - -
        -
        -
        - -
        - -
        -
        -
        -
        - - - 提交 -
        -
        -
        -
        - -
        -
        -
        -
        - - '学科','place'=>'地点','theme'=>'主题','temporal'=>'时间词','stratum'=>'地层'); -$kt=''; -$i=0; -foreach($this->keys as $cg) : - if ($kt==$cg['keytype']) : - $i+=1; - else : - if (!empty($kt)) echo ''; - $kt=$cg['keytype']; - $i=0; - endif; - if ($i==0) { - ?> - - doi) : ?> -
        • 数据DOI doi; ?>
        - - -
        -
        -

        数据细节文件列表

        -
          - fileformat) : ?> -
        • 格式:fileformat; ?>
        • - -
        • 大小:filesize; ?>MB
        • - downloaded>9) :?> -
        • 下载:downloaded; ?>次
        • - -
        • 浏览:viewed; ?>次
        • - - timebegin)) : ?> -
        • 数据时间范围:timebegin));if (!empty($md->timeend)) echo " 至 ".date('Y-m-d',strtotime($md->timeend)); ?>
        • - - doc)) : ?> -
        • doc; - }?>">数据说明文档
        • - - attachments) : ?> -
        • 相关文档: - attachments as $k=>$a) : ?> - - - -
        • - -
        • 数据共享方式:datatype) print "离线"; else print "在线(可直接下载)";?>
        • -
        -
        - status>0 and $md->status<5) : ?> - 数据评审 - datatype) : ?> - - 在线下载 - - - dataService)) { ?> - theme->AppendPlus($this,'datepicker'); ?> - - - - - 放入数据篮 - - - -
        - -
        -
        -

        空间位置

        -
        -
        -

        联系信息

        -
        -
          - '资源提供者','custodian'=>'维护者','owner'=>'拥有者','user'=>'用户','distributor'=>'数据服务联系人','originator'=>'创建者','pointOfContact'=>'联系人','principalInvestigator'=>'数据调查与处理者','processor'=>'处理者','publisher'=>'元数据发布者','author'=>'元数据作者'); - $r=''; - $i=0; - foreach($this->authors as $k=>$author) : - if ($author->role!=$r) - { - $r=$author->role; - $i=0; - if ($k>0) echo ''; - echo '
        • '.$party_zh[$author->role].':'; - } - if ($i>0) echo ','; - $i+=1; - if (!empty($author->email) && $r!='principalInvestigator') - echo ''; - echo ''; - if (!empty($author->individual)) - echo $author->individual; - else - echo $author->organisation; - echo ''; - if (!empty($author->email)) echo ''; - if ($k+1==count($this->authors)) echo '
        • '; - endforeach; - ?> -
        -
        -
          -
        • 元数据更新时间:ts_created)); ?>
        • -
        • 下载元数据: - Adobe PDF格式 - OpenOffice odt格式 - Word doc格式 - 查看XML源文件 -
        • - - version->c>0):?> -
        • 版本历史:version->c ?> 个
        • - -
        -
        -
        -
        分享到
        - -
        - - - - - - - - - -
        - - -
        -
        - - - -

        Cannot find the metadata.

        -

        没有找到对应的元数据。

        - -
        - \ No newline at end of file diff --git a/application/default/views/scripts/heihe_header.phtml b/application/default/views/scripts/heihe_header.phtml deleted file mode 100644 index ebf49bf0..00000000 --- a/application/default/views/scripts/heihe_header.phtml +++ /dev/null @@ -1,49 +0,0 @@ -
        -
        -
        Westdc Logo
        -
        - -
        -
        - -
        \ No newline at end of file diff --git a/application/default/views/scripts/hiwater/author.phtml b/application/default/views/scripts/hiwater/author.phtml deleted file mode 100644 index e69b9423..00000000 --- a/application/default/views/scripts/hiwater/author.phtml +++ /dev/null @@ -1,71 +0,0 @@ -headTitle($this->config->title->site); -$this->headTitle($this->config->title->data); -$this->headTitle('数据作者浏览'); -$this->headTitle()->setSeparator(' - '); -$this->nav[] = array('link'=>"/hiwater",'title'=>'黑河生态水文遥感试验'); -$this->theme->AppendPlus($this,'colorbox'); -$this->headLink()->appendStylesheet('/css/water.css'); -?> -render('breadcrumbs.phtml') ?> -
        -
        - partial('hiwater/navi.phtml'); ?> -
        -
        - -author) : ?> -paginator)) : ?> - -paginator as $md) : ?> -
        - - - -
        -

        escape($md['title']);?>

        - -

        DOI: - 申请日期: - 创建日期: - - 发布日期: -

        - -

        DOI:

        - - - -
        ',mb_strlen($md['description'])>400?$this->escape(mb_substr($md['description'],0,400,'UTF-8').'...'):$this->escape($md['description']));?>
        -
        -
        - - - - -paginator)) : ?> - - - - - -
        -
        - diff --git a/application/default/views/scripts/hiwater/base.phtml b/application/default/views/scripts/hiwater/base.phtml deleted file mode 100644 index af2309cc..00000000 --- a/application/default/views/scripts/hiwater/base.phtml +++ /dev/null @@ -1,30 +0,0 @@ -headTitle($this->config->title->site); -$this->headTitle($this->config->title->data); -$this->headTitle()->setSeparator(' - '); -$this->headLink()->appendStylesheet('/css/water.css'); -$this->nav[] = array('link'=>"/hiwater",'title'=>'黑河生态水文遥感试验'); -?> -render('breadcrumbs.phtml'); ?> -
        -
        - partial('hiwater/navi.phtml'); ?> -
        -
        - info) : ?> -
        - info['body'])) echo $this->info['body'];?> -
        - - metadata) : ?> - page->getNavigation(); ?> -
        -
          - metadata as $md) : ?> -
        1. - -
        -
        - -
        -
        \ No newline at end of file diff --git a/application/default/views/scripts/hiwater/browse.phtml b/application/default/views/scripts/hiwater/browse.phtml deleted file mode 100644 index a901353e..00000000 --- a/application/default/views/scripts/hiwater/browse.phtml +++ /dev/null @@ -1,27 +0,0 @@ -headTitle($this->config->title->site); - $this->headTitle($this->config->title->data); - $this->headTitle('全部浏览'); -$this->headTitle()->setSeparator(' - '); -$this->headLink()->appendStylesheet('/css/water.css'); -$this->nav[] = array('link'=>"/hiwater",'title'=>'黑河生态水文遥感试验'); -?> -render('breadcrumbs.phtml'); ?> -
        -
        - partial('hiwater/navi.phtml'); ?> -
        -
        - page->getNavigation(); ?> -
        -
        -
          - metadata as $md) : ?> -
        1. - -
        -
        -
        - page->getNavigation(); ?> -
        -
        \ No newline at end of file diff --git a/application/default/views/scripts/hiwater/category.phtml b/application/default/views/scripts/hiwater/category.phtml deleted file mode 100644 index d719b42e..00000000 --- a/application/default/views/scripts/hiwater/category.phtml +++ /dev/null @@ -1,50 +0,0 @@ -headTitle($this->config->title->site); - $this->headTitle($this->config->title->data); -$this->headTitle('分类浏览'); -if (!empty($this->codename)) $this->headTitle($this->codename); -$this->headTitle()->setSeparator(' - '); -$this->headLink()->appendStylesheet('/css/water.css'); -$this->breadcrumb('首页'); -$this->breadcrumb(''.$this->config->title->data.''); -$this->breadcrumb(''.$this->config->title->heihe.''); -$this->breadcrumb('分类浏览:'.$this->codename); -$this->breadcrumb()->setSeparator(' > '); -?> -
        -
        - partial('hiwater/navi.phtml'); ?> -
        -
        -
        breadcrumb() ?>
        -
        - -
        - - metadata)) : ?> -
        - page->getNavigation(); ?> -
        -
        -
          - metadata as $md) : ?> -
        1. - -
        -
        -
        - page->getNavigation(); ?> -
        - - -
        -
        \ No newline at end of file diff --git a/application/default/views/scripts/hiwater/document.phtml b/application/default/views/scripts/hiwater/document.phtml deleted file mode 100644 index 973edc80..00000000 --- a/application/default/views/scripts/hiwater/document.phtml +++ /dev/null @@ -1,49 +0,0 @@ -headTitle($this->config->title->site); -$this->headTitle($this->config->title->data); -$this->headTitle()->setSeparator(' - '); -$this->headLink()->appendStylesheet('/css/water.css'); -$this->breadcrumb('首页'); -$this->breadcrumb()->setSeparator(' > '); -$this->theme->AppendPlus($this,'colorbox'); -$this->nav[] = array('link'=>"/hiwater",'title'=>'黑河生态水文遥感试验'); -?> -render('breadcrumbs.phtml'); ?> -
        -
        - partial('hiwater/navi.phtml'); ?> -
        -
        - -

        数据相关文献

        - refs) : ?> - page->getNavigation(); ?> -
        -
          - refs as $md) : ?> -
        1. 下载'; - } - ?> - [相关数据] -
        2. - -
        -
        - -
        -
        - \ No newline at end of file diff --git a/application/default/views/scripts/hiwater/fund-list.phtml b/application/default/views/scripts/hiwater/fund-list.phtml deleted file mode 100644 index 985d46d5..00000000 --- a/application/default/views/scripts/hiwater/fund-list.phtml +++ /dev/null @@ -1,26 +0,0 @@ -headTitle($this->config->title->site); -$this->headTitle($this->config->title->data); -$this->headTitle('支持项目'); -$this->headTitle()->setSeparator(' - '); -$this->nav[] = array('link'=>"/hiwater",'title'=>'黑河生态水文遥感试验'); -?> -render('breadcrumbs.phtml') ?> -
        -
        - partial('hiwater/navi.phtml'); ?> -
        -
        -paginator)) : ?> - -paginator as $md) : ?> -
        -

        escape($md['title']);?>

        -编号: | 类型: | 提供数据集:条,5000?(round($md['filesize']/1024,2)).'GB':$md['filesize'].'MB'; ?>
        - - - -暂无对应信息。 - -
        -
        \ No newline at end of file diff --git a/application/default/views/scripts/hiwater/fund.phtml b/application/default/views/scripts/hiwater/fund.phtml deleted file mode 100644 index 73bf9cad..00000000 --- a/application/default/views/scripts/hiwater/fund.phtml +++ /dev/null @@ -1,43 +0,0 @@ -headTitle($this->config->title->site); -$this->headTitle($this->config->title->data); -$this->headTitle('支持项目'); -$this->headTitle()->setSeparator(' - '); -$this->nav[] = array('link'=>"/hiwater",'title'=>'黑河生态水文遥感试验'); -$this->theme->AppendPlus($this,'colorbox'); -?> -render('breadcrumbs.phtml') ?> -
        -
        - partial('hiwater/navi.phtml'); ?> -
        -
        -
        -

        escape($this->fund['title']);?>

        -编号:fund['fund_id']; ?> | 类型:fund['fund_type']; ?> -
        -paginator)) : ?> -
        - -paginator as $md) : ?> -
        - - - -
        -

        escape($md['title']);?>

        -
        ',mb_strlen($md['description'])>400?$this->escape(mb_substr($md['description'],0,400,'UTF-8').'...'):$this->escape($md['description']));?>
        -
        -
        - - - -暂无对应信息。 - -
        - \ No newline at end of file diff --git a/application/default/views/scripts/hiwater/index.phtml b/application/default/views/scripts/hiwater/index.phtml deleted file mode 100644 index 5b1df0cf..00000000 --- a/application/default/views/scripts/hiwater/index.phtml +++ /dev/null @@ -1,21 +0,0 @@ -headTitle($this->config->title->site); -$this->headTitle($this->config->title->data); -$this->headTitle()->setSeparator(' - '); -$this->headLink()->appendStylesheet('/css/water.css'); -$this->nav[] = array('link'=>"/water",'title'=>'黑河生态水文遥感试验'); -?> -render('breadcrumbs.phtml'); ?> -
        -
        - partial('hiwater/navi.phtml'); ?> -
        -
        -
        -

        info['title'])) echo $this->info['title']; ?>

        - - -
        info['body'])) echo $this->info['body'];?>
        -
        -
        -
        diff --git a/application/default/views/scripts/hiwater/list.phtml b/application/default/views/scripts/hiwater/list.phtml deleted file mode 100644 index 8f25ebdb..00000000 --- a/application/default/views/scripts/hiwater/list.phtml +++ /dev/null @@ -1,41 +0,0 @@ -headTitle($this->config->title->site); -$this->headTitle($this->config->title->data); -$this->headTitle()->setSeparator(' - '); -$this->headLink()->appendStylesheet('/css/water.css'); -$this->breadcrumb('首页'); -$this->breadcrumb(''.$this->config->title->data.''); -$this->breadcrumb(''.$this->config->title->hiwater.''); -$this->breadcrumb('数据列表'); -$this->breadcrumb()->setSeparator(' > '); -$this->theme->AppendPlus($this,'colorbox'); -?> -
        -
        - partial('hiwater/navi.phtml'); ?> -
        -
        -
        breadcrumb() ?>
        -
        - metadata) : ?> -
        -
          - metadata as $md) : ?> -
        1. - - - [缩略图幻灯片] - [PDF版本下载] - [ODT版本下载] - [DOC版本下载] - -
        2. - -
        -
        - -
        -
        - \ No newline at end of file diff --git a/application/default/views/scripts/hiwater/navi.phtml b/application/default/views/scripts/hiwater/navi.phtml deleted file mode 100644 index 9ff3114a..00000000 --- a/application/default/views/scripts/hiwater/navi.phtml +++ /dev/null @@ -1,225 +0,0 @@ - - - - \ No newline at end of file diff --git a/application/default/views/scripts/hiwater/organization.phtml b/application/default/views/scripts/hiwater/organization.phtml deleted file mode 100644 index 6e2da9ed..00000000 --- a/application/default/views/scripts/hiwater/organization.phtml +++ /dev/null @@ -1,50 +0,0 @@ -headTitle($this->config->title->site); - $this->headTitle($this->config->title->data); -$this->headTitle('分单位浏览'); -if (!empty($this->codename)) $this->headTitle($this->codename); -$this->headTitle()->setSeparator(' - '); -$this->nav[] = array('link'=>"/hiwater",'title'=>'黑河生态水文遥感试验'); -$this->theme->AppendPlus($this,'colorbox'); -?> -render('breadcrumbs.phtml') ?> -
        -
        - partial('hiwater/navi.phtml'); ?> -
        -
        - - - -paginator)) : ?> -

        当前浏览:codename; ?>

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

          escape($md['title']);?>

          -
          ',mb_strlen($md['description'])>400?$this->escape(mb_substr($md['description'],0,400,'UTF-8').'...'):$this->escape($md['description']));?>
          -
          -
          - -
        - - -
        -
        - -
        - \ No newline at end of file diff --git a/application/default/views/scripts/hiwater/search.phtml b/application/default/views/scripts/hiwater/search.phtml deleted file mode 100644 index e227d881..00000000 --- a/application/default/views/scripts/hiwater/search.phtml +++ /dev/null @@ -1,37 +0,0 @@ -headTitle($this->config->title->site); -$this->headTitle($this->config->title->data); - -$this->headTitle('快速搜索'); -if (!empty($this->codename)) $this->headTitle($this->codename); -$this->headTitle()->setSeparator(' - '); -$this->headLink()->appendStylesheet('/css/water.css'); -$this->nav[] = array('link'=>"/hiwater",'title'=>'黑河生态水文遥感试验'); -?> -render('breadcrumbs.phtml'); ?> -
        -
        -partial('hiwater/navi.phtml',array('key'=>$this->key)); ?> -
        -
        -
        breadcrumb() ?>
        -metadata)) : ?> -page->getNavigation(); ?> -
        -
        -
          - metadata as $md) : ?> -
        1. - -
        -
        -
        -page->getNavigation(); -else : -?> -
        -

        您的搜索结果为空,请尝试其他关键词进行查询。

        -
        - -
        -
        \ No newline at end of file diff --git a/application/default/views/scripts/hiwater/tag.phtml b/application/default/views/scripts/hiwater/tag.phtml deleted file mode 100644 index 586725e9..00000000 --- a/application/default/views/scripts/hiwater/tag.phtml +++ /dev/null @@ -1,55 +0,0 @@ -headTitle($this->config->title->site); -$this->headTitle($this->config->title->data); -if (!empty($this->codename)) $this->headTitle($this->codename); -$this->headTitle()->setSeparator(' - '); -$this->headLink()->appendStylesheet('/css/water.css'); -$this->nav[] = array('link'=>"/hiwater",'title'=>'黑河生态水文遥感试验'); -?> -render('breadcrumbs.phtml'); ?> -
        -
        - partial('hiwater/navi.phtml'); ?> -
        -
        - metadata)) : ?> -
        -

        关键词:codename; ?> 【全部关键词

        - page->getNavigation(); ?> -
        -
        -
          - metadata as $md) : ?> -
        1. - -
        -
        -
        - page->getNavigation(); ?> -
        - - -
        - '地点关键词','theme'=>'主题关键词','discipline'=>'学科关键词','stratum'=>'地层关键词','temporal'=>'时间关键词'); - $type=''; -foreach($this->keywords as $cg) : - if ($type!=$cg['keytype']) : - if ($type!='') : ?> - - -

        -keytype) : ?>全部关键词

        -
          -
        • '>()
        • - -
        • '>()
        • - - -
        -
        - -
        -
        \ No newline at end of file diff --git a/application/default/views/scripts/hiwater/thumb.phtml b/application/default/views/scripts/hiwater/thumb.phtml deleted file mode 100644 index 4015e80f..00000000 --- a/application/default/views/scripts/hiwater/thumb.phtml +++ /dev/null @@ -1,48 +0,0 @@ -headTitle($this->config->title->site); -$this->headTitle($this->config->title->data); -$this->headTitle('缩略图浏览'); -$this->headTitle()->setSeparator(' - '); -$this->headLink()->appendStylesheet('/css/water.css'); -$this->nav[] = array('link'=>"/hiwater",'title'=>'黑河生态水文遥感试验'); -$this->theme->AppendPlus($this,'colorbox'); -$this->theme->AppendPlus($this,'masonry'); -?> -render('breadcrumbs.phtml'); ?> -
        -
        - partial('hiwater/navi.phtml'); ?> -
        -
        - page->getNavigation(); ?> -
        -
          - metadata as $md) : ?> -
        • -

          escape($md['title']);?>

          - - - -
          -

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

          -
          - 查看 -
        • - -
        -
        -
        - page->getNavigation(); ?> -
        -
        - \ No newline at end of file diff --git a/application/default/views/scripts/hiwater/timeline.phtml b/application/default/views/scripts/hiwater/timeline.phtml deleted file mode 100644 index 58aacb1e..00000000 --- a/application/default/views/scripts/hiwater/timeline.phtml +++ /dev/null @@ -1,71 +0,0 @@ -headTitle($this->config->title->site); -$this->headTitle($this->config->title->data); -$this->headTitle('时间轴导航'); -$this->headTitle()->setSeparator(' - '); -$this->headLink()->appendStylesheet('/css/water.css'); -$this->breadcrumb('首页'); -$this->breadcrumb(''.$this->config->title->data.''); -$this->breadcrumb(''.$this->config->title->hiwater.''); -$this->breadcrumb('时间轴导航'); -$this->breadcrumb()->setSeparator(' > '); -$this->headScript()->appendFile('/js/timeline_var.js'); -$this->headScript()->appendFile('/js/timeline_js/timeline-api.js'); -$this->nav[] = array('link'=>"/hiwater",'title'=>'黑河生态水文遥感试验'); -?> -render('breadcrumbs.phtml'); ?> -
        -
        - partial('hiwater/navi.phtml'); ?> -
        -
        -
        -
        -
        - \ No newline at end of file diff --git a/application/default/views/scripts/hiwater/timemap.phtml b/application/default/views/scripts/hiwater/timemap.phtml deleted file mode 100644 index 31466471..00000000 --- a/application/default/views/scripts/hiwater/timemap.phtml +++ /dev/null @@ -1,110 +0,0 @@ -headTitle($this->config->title->site); -$this->headTitle($this->config->title->data); -$this->headTitle('时空导航'); -$this->headTitle()->setSeparator(' - '); -$this->headLink()->appendStylesheet('/css/water.css'); -$this->theme->AppendPlus($this,'google_map_v3'); -$this->theme->AppendPlus($this,'colorbox'); -$this->headScript()->appendFile('/js/timeline_var.js'); -$this->headScript()->appendFile('/js/timeline_js/timeline-api.js'); -$this->headScript()->appendFile('/js/timemap.2.0.1/lib/mxn/mxn.js?(googlev3)'); -$this->headScript()->appendFile('/js/timemap.2.0.1/timemap.pack.js'); -$this->nav[] = array('link'=>"/hiwater",'title'=>'黑河生态水文遥感试验'); -?> - -render('breadcrumbs.phtml'); ?> -
        -
        - partial('hiwater/navi.phtml'); ?> -
        -
        -
        -
        -
        -
        -
        -
        - - \ No newline at end of file diff --git a/application/default/views/scripts/hiwater/view.phtml b/application/default/views/scripts/hiwater/view.phtml deleted file mode 100644 index ff449a18..00000000 --- a/application/default/views/scripts/hiwater/view.phtml +++ /dev/null @@ -1,557 +0,0 @@ -headTitle($this->config->title->site); - $this->headTitle($this->config->title->data); - $this->headTitle($this->metadata->title); - $this->headTitle()->setSeparator(' - '); - $this->breadcrumb('首页'); - $this->breadcrumb(''.$this->config->title->data.''); - $this->breadcrumb(''.$this->config->title->heihe.''); - $this->breadcrumb('查看元数据'); - $this->breadcrumb()->setSeparator(' > '); - $this->headLink()->appendStylesheet('/css/water.css'); - $this->theme->AppendPlus($this,'google_map_v3'); - $this->theme->AppendPlus($this,'colorbox'); - $this->nav[] = array('link'=>"/hiwater",'title'=>'黑河生态水文遥感试验'); - if(!empty($this->dataService)) { - $this->theme->AppendModel($this,"dataservice"); - } -?> - -render('breadcrumbs.phtml'); ?> -metadata;if ($md):?> -
        -
        -

        escape($md->title); -if ($md->title_en) echo '
        '.$this->escape($md->title_en);?> -

        -
        - -
        -
        -
        - -

        -

        ',$md->description);?> -

        -
        -
        - mcitation) : ?> -
        -

        本数据要求的多篇文献引用

        -
          - mcitation as $ref) : - if (empty($ref->link)) - { - echo '
        1. '.$ref->reference; - echo '查看'; - if(!empty($ref->attid)) { - echo ' 下载'; - } - echo "
        2. "; - } - else - echo '
        3. '.$ref->reference.'查看 下载
        4. '; - endforeach; - ?> -
        - - - citation) : ?> -
        -

        本数据引用方式数据引用帮助

        -

        datadoi) || !strpos($md->citation,$md->datadoi)) : ?>文章的引用 - escape($md->citation);if (strpos($md->citation,$md->datadoi)) : ?> - (下载引用:RIS格式 | RIS英文格式 | Bibtex格式 | Bibtex英文格式) - -

        - datadoi) && !strpos($md->citation,$md->datadoi)) : ?> -

        数据的引用authors,1,-1).'. '.$md->title.'. '.$md->publisher.', '.(empty($md->ts_published)?$md->publish_year:date('Y',strtotime($md->ts_published))).'. doi:'.$md->doi; - echo ' ['.str_replace('"','',substr($md->author_en,1,-1)).'. '.$md->title_en.'. '.$md->publisher_en.', '.(empty($md->ts_published)?$md->publish_year:date('Y',strtotime($md->ts_published))).'. doi:'.$md->doi.']'; - ?> (下载引用:RIS格式 | RIS英文格式 | Bibtex格式 | Bibtex英文格式)

        - ref) : ?> -
        -

        相关文献(作者推荐)

        -
          - ref as $ref) : - echo '
        1. '.$ref->reference; - echo '查看'; - if (empty($ref->link)) - { - if(!empty($ref->attid)) - echo '下载'; - }else{ - echo '下载'; - } - echo "
        2. "; - endforeach; - ?> -
        - themeref) :?> - -
        -

        专题文献

        -
          - themeref as $ref) : - echo '
        1. '.$ref->reference; - echo '查看'; - if (empty($ref->link)) - { - if(!empty($ref->attid)) - echo ' | 下载'; - }else{ - echo ' | 下载'; - } - echo "
        2. "; - endforeach; - ?> -
        - userref) : ?> -
        -

        数据施引文献

        -
          - userref as $ref) : - echo '
        1. '.$ref->reference; - echo '查看'; - if (empty($ref->link)) - { - if(!empty($ref->attid)) - echo '下载'; - }else{ - echo '下载'; - } - echo "
        2. "; - endforeach; - if (count($this->userref)==15) - { - echo '更多施引文献'; - } - ?> -
        - -
        -

        数据使用声明

        - uselimits) : - foreach($this->uselimits as $uselimit) : - echo '

        '.str_replace(array("\r\n", "\n", "\r"),'

        ',$this->escape($uselimit->uselimit)).'

        '; - endforeach; - ?> - -

        为尊重知识产权、保障数据作者的权益、扩展数据中心的服务、评估数据的应用潜力,请数据使用者在使用数据所产生的研究成果中(包括公开发表的论文、论著、数据产品和未公开发表的研究报告、数据产品等成果),明确注明数据来源和数据作者。对于转载(二次或多次发布)的数据,作者还须注明原始数据来源。

        -

        中文发表的成果参考以下规范注明: 数据来源于黑河计划数据管理中心、寒区旱区科学数据中心(http://westdc.westgis.ac.cn)

        -

        英文发表的成果依据以下规范注明: The data set is provided by Cold and Arid Regions Sciences Data Center at Lanzhou (http://westdc.westgis.ac.cn)

        -

        - - data_archives){ ?> -

        数据相关新闻

        -
          - data_archives as $v){?> -
        • - -
        -
        - - suppinfo || $this->fund) : ?> -

        资助项目

        - fund)) : ?> -
          - fund as $k=>$v) : ?> -
        • (项目编号:) [(No. )]
        • - -
        - suppinfo)) : ?> - '.str_replace(array("\r\n", "\n", "\r"),'

        ',$this->escape($md->suppinfo)).'

        ';?> - -
        - - resources) : ?> -

        相关资源

        - -
        - -
        -
        - keys as $cg){ - if($cg['keytype']=="theme") - $keywords[]=$cg['keyword']; - } - $ev = join(" ",$keywords); - ?> -
        - -
        - - -
        -
          -
          -
          - downhistory) : ?> -

          最近10条服务记录如下:

          -
            - downhistory as $v){ - echo '
          1. '.date("Y-m-d",strtotime($v->ts_created))." ".$v->unit." ".$v->realname; - if (!empty($v->offlineproject)) - echo ' 用途:'.$v->offlineproject; - elseif (!empty($v->onlineproject)) - echo ' 用途:'.$v->onlineproject; - echo '
          2. '; - } - ?> -
          - - 暂时没有服务记录,欢迎您下载使用! - -
          -
          - -
          -
          -
          -
          -
          - status>0 and $md->status<5) : ?> -

          此数据还在评审过程中,我们真切地邀请您参加此数据的评审,以便我们能尽快发布此数据!评审

          - -

          数据评论

          -
          -
          评论加载中
          -
          - hasIdentity()) - { - $user = $auth->getIdentity(); - $name = $user->realname; - $email = $user->email; - }else - { - $name = ""; - $email = ""; - } - ?> -
          -
          - -
          - -
          -
          -
          - -
          - -
          -
          -
          - -
          - e.g. http://westdc.westgis.ac.cn/ -
          -
          -
          - -
          - -
          -
          -
          - -
          - -
          -
          -
          -
          - - - 提交 -
          -
          -
          -
          - -
          -
          -
          -
          - - '学科','place'=>'地点','theme'=>'主题','temporal'=>'时间词','stratum'=>'地层'); -$kt=''; -$i=0; -foreach($this->keys as $cg) : - if ($kt==$cg['keytype']) : - $i+=1; - else : - if (!empty($kt)) echo ''; - $kt=$cg['keytype']; - $i=0; - endif; - if ($i==0) { - ?> - - doi) : ?> -
          • 数据DOI doi; ?>
          - - -
          -
          -

          数据细节文件列表

          -
            - fileformat) : ?> -
          • 格式:fileformat; ?>
          • - -
          • 大小:filesize; ?>MB
          • - downloaded>9) :?> -
          • 下载:downloaded; ?>次
          • - -
          • 浏览:viewed; ?>次
          • - - timebegin)) : ?> -
          • 数据时间范围:timebegin));if (!empty($md->timeend)) echo " 至 ".date('Y-m-d',strtotime($md->timeend)); ?>
          • - - doc)) : ?> -
          • doc; - }?>">数据说明文档
          • - - attachments) : ?> -
          • 相关文档: - attachments as $k=>$a) : ?> - - - -
          • - -
          • 数据共享方式:datatype) print "离线"; else print "在线(可直接下载)";?>
          • -
          -
          - status>0 and $md->status<5) : ?> - 数据评审 - datatype) : ?> - - 在线下载 - - - dataService)) { ?> - theme->AppendPlus($this,'datepicker'); ?> - - - - - 放入数据篮 - - -
          - -
          -
          -

          空间位置

          -
          -
          -

          联系信息

          -
          -
            - '资源提供者','custodian'=>'维护者','owner'=>'拥有者','user'=>'用户','distributor'=>'数据服务联系人','originator'=>'创建者','pointOfContact'=>'联系人','principalInvestigator'=>'数据调查与处理者','processor'=>'处理者','publisher'=>'元数据发布者','author'=>'元数据作者'); - $r=''; - $i=0; - foreach($this->authors as $k=>$author) : - if ($author->role!=$r) - { - $r=$author->role; - $i=0; - if ($k>0) echo ''; - echo '
          • '.$party_zh[$author->role].':'; - } - if ($i>0) echo ','; - $i+=1; - if (!empty($author->email) && $r!='principalInvestigator') - echo ''; - echo ''; - if (!empty($author->individual)) - echo $author->individual; - else - echo $author->organisation; - echo ''; - if (!empty($author->email)) echo ''; - if ($k+1==count($this->authors)) echo '
          • '; - endforeach; - ?> -
          -
          -
            -
          • 元数据更新时间:ts_created)); ?>
          • -
          • 下载元数据: - Adobe PDF格式 - OpenOffice odt格式 - Word doc格式 - 查看XML源文件 -
          • - - version->c>0):?> -
          • 版本历史:version->c ?> 个
          • - -
          -
          -
          -
          分享到
          - -
          - - - - - - - - - -
          - -
          -
          -
          - - - -

          Cannot find the metadata.

          -

          没有找到对应的元数据。

          - -
          - \ No newline at end of file diff --git a/application/default/views/scripts/hiwater_header.phtml b/application/default/views/scripts/hiwater_header.phtml deleted file mode 100644 index c20fe335..00000000 --- a/application/default/views/scripts/hiwater_header.phtml +++ /dev/null @@ -1,34 +0,0 @@ -
          - - -
          diff --git a/application/default/views/scripts/metainfo/index.phtml b/application/default/views/scripts/metainfo/index.phtml deleted file mode 100644 index 45ce5051..00000000 --- a/application/default/views/scripts/metainfo/index.phtml +++ /dev/null @@ -1,14 +0,0 @@ -headTitle($this->config->title->site); -$this->headTitle($this->config->title->data); -$this->headTitle('特色推荐'); -$this->headTitle()->setSeparator(' - '); -//$this->headLink()->appendStylesheet('/css/feature.css'); -$this->breadcrumb('首页'); -$this->breadcrumb(''.$this->config->title->data.''); -$this->breadcrumb('数据文档'); -$this->breadcrumb()->setSeparator(' > '); -?> -
          -content; ?> -
          \ No newline at end of file diff --git a/application/default/views/scripts/netkites/apply.phtml b/application/default/views/scripts/netkites/apply.phtml deleted file mode 100755 index 955e4613..00000000 --- a/application/default/views/scripts/netkites/apply.phtml +++ /dev/null @@ -1,53 +0,0 @@ -headTitle($this->config->title->site); -$this->headTitle($this->config->title->knowledge); -$this->headTitle($this->config->title->netkites); -$this->headTitle("申请"); -$this->headTitle()->setSeparator(' - '); -$this->headLink()->appendStylesheet('/css/netkites.css'); -$this->breadcrumb('首页'); -$this->breadcrumb(''.$this->config->title->knowledge.''); -$this->breadcrumb(''.$this->config->title->netkites.''); -$this->breadcrumb("申请"); -$this->breadcrumb()->setSeparator(' > '); -?> -
          - -
          -
          - 如何获取移动文献查询服务?
          - -
          -

          - Step 1. 检查您的申请资格

          - -

          - 由于资源有限,目前移动文献查询服务仅对基金委“西部环境和生态科学”计划(以下简称“西部计划”)内的项目开放。请确认您承担过或正在参与“西部计划” 项目,申请本移动文献服务(网筝)是为该项目服务,并已经征得该项目负责人的同意。

          -

          - Step 2. 认真阅读并填写使用协议

          -

          - 请认真阅读“西部数据中心”网筝使用协议。确认您仔细阅读过并同意协议上全部条款,本人签字,以及所在的“西部计划”项目的负责人签字后,盖所在单位公章,一式四份,邮寄其中两份到“西部数据中心”项目组。余下一份由项目负责人备案,一份由用户本人留存。

          -

          - - 下载使用协议(PDF版, 66KB),PDF文件格式可由免费的Acrobat - Reader阅读和打印

          -

          - Step 3. 邮寄协议

          -

          - 邮寄协议到如下地址

          - -
          - 基金委“中国西部环境与生态科学数据中心”项目数据服务组
          - 兰州东岗西路320号,730000,中科院寒区旱区环境与工程研究所
          Tel: 0931-4967287
          -
          -
          - -
          diff --git a/application/default/views/scripts/netkites/driver.phtml b/application/default/views/scripts/netkites/driver.phtml deleted file mode 100755 index 6bcd317e..00000000 --- a/application/default/views/scripts/netkites/driver.phtml +++ /dev/null @@ -1,42 +0,0 @@ -headTitle($this->config->title->site); -$this->headTitle($this->config->title->knowledge); -$this->headTitle($this->config->title->netkites); -$this->headTitle("安装程序"); -$this->headTitle()->setSeparator(' - '); -$this->headLink()->appendStylesheet('/css/netkites.css'); -$this->breadcrumb('首页'); -$this->breadcrumb(''.$this->config->title->knowledge.''); -$this->breadcrumb(''.$this->config->title->netkites.''); -$this->breadcrumb("安装程序"); -$this->breadcrumb()->setSeparator(' > '); -?> -
          -
          -
          - 下载
          -

          - 网筝NK—800最新安装程序

          - -

          - (size: 1.55M)

          -

          - 使用说明:

          -

          - 1. 如果本机器上已经安装有旧的驱动,请先卸载之。

          -

          - - “开始”菜单 > 所有程序 > 捷通网筝NK—800 > 卸载网筝NK—800,请一定要重启机器后,再继续以下步骤。

          -

          - - - 2. 下载安装包,使用WinRar 解压缩到一临时目录(如c:\nk-800)。打开该临时目录,找到Setup.exe,双击。

          -

          - 3. 安装程序将启动,按照屏幕提示,点击 “下一步(N)” ,直到完成安装。重启机器。

          - -

          - 4. 参照使用说明以了解如何使用移动文献查询服务。FAQ页面给出一些常见问题的解决方案。

          -

           

          -
          - -
          diff --git a/application/default/views/scripts/netkites/faq.phtml b/application/default/views/scripts/netkites/faq.phtml deleted file mode 100755 index 9875ccf0..00000000 --- a/application/default/views/scripts/netkites/faq.phtml +++ /dev/null @@ -1,55 +0,0 @@ -headTitle($this->config->title->site); -$this->headTitle($this->config->title->knowledge); -$this->headTitle($this->config->title->netkites); -$this->headTitle("FAQ列表"); -$this->headTitle()->setSeparator(' - '); -$this->headLink()->appendStylesheet('/css/netkites.css'); -$this->breadcrumb('首页'); -$this->breadcrumb(''.$this->config->title->knowledge.''); -$this->breadcrumb(''.$this->config->title->netkites.''); -$this->breadcrumb("FAQ列表"); -$this->breadcrumb()->setSeparator(' > '); -?> -
          - -
          -
          - 网筝使用FAQ(Frequently Asked Questions)列表
          - -
          -

          - 1. 我安装光盘上的驱动程序后,系统变的不稳定?

          - -

          - 网筝NK—800光盘随带的安装程序,在Windows XP sp2环境下运行有些问题,请从本站下载最新驱动程序注意如果已经安装旧程序,请先卸载,重启后再安装新程序!

          -

          - 2. 我用ADSL上网,如果使用网筝,则无法联网

          -

          - 这是已知问题之一,在未来版本的安装程序里将解决此问题。目前请使用如下介绍的解决方案。

          - -
            -
          1. 打开“控制面板”上的“网络连接”,在“LAN或高速Internet”里的“本地链接”上点击右键,在弹出菜单里选取“属性”,这时你将看到“本地连接 属性”对话框。
          2. -
          3. 选择对话框里的“Internet 协议(TCP/IP)”,点击“属性”按钮,将看到“Internet 协议(TCP/IP) 属性”对话框。
          4. -
          5. 选取“使用下面的IP地址”,在其下的“IP地址”、“子网掩码”,和“默认网关”里随便填,比如分别填写“192.168.0.10”、 “255.255.255.0”,和“192.168.0.1”。使用ADSL上网,并不使用本地链接填写的IP,但网筝程序在启动时,会首先扫描本地链接的固定IP,如果发现没有配置,将返回失败。
          6. -
          7. 选取“使用下面的DNS服务器地址”,随便填写,比如 210.77.69.1
          8. -
          9. 确定以接受刚才的配置,注意在“本地链接 属性”对话框也应当是确定。
          10. - -
          11. 重新开始正常的网筝链接过程。
          - -

          - 3. 我在校园网里通过学校代理出去,无法使用移动文献查询服务?

          -

          - 首先请确认在使用网筝时,是否有“成功连接”的对话框出现,如果没有,请跟数据中心服务小组联系。如果能够出现“成功链接”的对话框,但无法访问文献资源,这可能是你学校的DNS有问题,请打开你的“Internet 协议(TCP/IP)属性”对话框(如FAQ 2所描述),在DNS里增加“210.77.69.1”和“210.77.68.240”。确定后再试网筝是否已经可用。如果仍然不能解决,请联系数据中心服务小组。

          -
          -
          - -
          - diff --git a/application/default/views/scripts/netkites/index.phtml b/application/default/views/scripts/netkites/index.phtml deleted file mode 100755 index 3611e0af..00000000 --- a/application/default/views/scripts/netkites/index.phtml +++ /dev/null @@ -1,32 +0,0 @@ -headTitle($this->config->title->site); -$this->headTitle($this->config->title->knowledge); -$this->headTitle($this->config->title->netkites); -$this->headTitle()->setSeparator(' - '); -$this->headLink()->appendStylesheet('/css/netkites.css'); -$this->breadcrumb('首页'); -$this->breadcrumb(''.$this->config->title->knowledge.''); -$this->breadcrumb($this->config->title->netkites); -$this->breadcrumb()->setSeparator(' > '); -?> -
          -
          - 什么是移动文献查询服务?
          -
          -

          -   移动文献查询服务采用先进的移动IP技术实现在外地接入代理服务器,从而不受IP地址的限制阅读和查询文献。

          -

          - - “西部数据中心”与中国科学院资源环境信息中心签订协议,购进一批NK—800型便携式移动文献查询客户端(即网筝),作为数据中心“知识积累平台”功能的一部分,免费提供给基金委“西部计划”项目成员使用。使用该网筝,用户可以无障碍地访问资环中心订阅的丰富的国内外文献资源了。

          -
          - -
          \ No newline at end of file diff --git a/application/default/views/scripts/netkites/resource.phtml b/application/default/views/scripts/netkites/resource.phtml deleted file mode 100755 index 8b4d4401..00000000 --- a/application/default/views/scripts/netkites/resource.phtml +++ /dev/null @@ -1,26 +0,0 @@ -headTitle($this->config->title->site); -$this->headTitle($this->config->title->knowledge); -$this->headTitle($this->config->title->netkites); -$this->headTitle("可访问资源"); -$this->headTitle()->setSeparator(' - '); -$this->headLink()->appendStylesheet('/css/netkites.css'); -$this->breadcrumb('首页'); -$this->breadcrumb(''.$this->config->title->knowledge.''); -$this->breadcrumb(''.$this->config->title->netkites.''); -$this->breadcrumb("可访问资源"); -$this->breadcrumb()->setSeparator(' > '); -?> -
          - -
          -
          - 网筝NK-800可访问文献资源
          -

          - 网筝相当于一个移动代理,通过网筝您可以访问众多的文献资源。最新的文献资源列表可从中科院资环信息中心的资源列表中得到。

          - -
          - -
          - diff --git a/application/default/views/scripts/netkites/use.phtml b/application/default/views/scripts/netkites/use.phtml deleted file mode 100755 index 2c230e8f..00000000 --- a/application/default/views/scripts/netkites/use.phtml +++ /dev/null @@ -1,97 +0,0 @@ -headTitle($this->config->title->site); -$this->headTitle($this->config->title->knowledge); -$this->headTitle($this->config->title->netkites); -$this->headTitle("使用说明"); -$this->headTitle()->setSeparator(' - '); -$this->headLink()->appendStylesheet('/css/netkites.css'); -$this->breadcrumb('首页'); -$this->breadcrumb(''.$this->config->title->knowledge.''); -$this->breadcrumb(''.$this->config->title->netkites.''); -$this->breadcrumb("使用说明"); -$this->breadcrumb()->setSeparator(' > '); -?> -
          - -
          -

          - 一、安装

          -

          - 1.1 系统配置

          -

          - - 运行网筝NK-800客户端驱动程序所需系统最低配置如下:

          -
          - 处理器:PII 266MHz -
          - 内 存:64M -
          - 网 卡:10/100M -
          - 操作系统:Microsoft Windows2000+SP4/XP+SP2/2003 -
          - -

          - 1.2 安装步骤

          -

          - 重要:在安装驱动程序前,请关闭杀毒程序。杀毒程序可能造成驱动程序安装不正确,从而导致NK800程序无法正常工作。

          -

          - 请在插入网筝设备之前,先安装驱动程序。

          -

          - - 1) 插入NK800客户端光盘到用户的光驱。

          -

          - 2) 在资源管理器打开光盘所在的盘符,双击Setup.exe,点击下一步。

          -

          - 欢迎使用 

          -

          - 3) 选择程序的安装位置,点击下一步,程序开始将需要的文件复制到用户的计算机。

          - -

          - 4) 在提示Microsoft数字签名信息时,请点击“是(Y)”。

          -

          - 数字签名 

          -

          - 5) 当驱动程序安装完成时,请点击“完成”按钮。选择“是,立即重新启动计算机”,并点击“确定”按钮。

          -

          - - 重启计算机 

          -

          - 6) 重新启动计算机之后,必须保证电脑完全启动之后,再运行网筝NK-800客户端驱动程序。

          -

          - 二、使用

          -

          - 1) 将网筝插入用户计算机的USB端口。点击NK800应用程序的图标。

          - -

          - 2) 系统提示“是否使用网筝硬件密码保护功能”,点击是,将启动密码保护功能,其他人不知道密码的将无法使用该网筝设备。如果密码保护设置为“是”,每次启动NK-800将提示输入密码。点击“否”将略过密码配置。

          -

          - 3) 网筝程序将试图连接服务器,并进行适当的参数设置、验证身份等工作。

          -

          - 4) 连接成功后,将显示:

          -

          - - 连接成功 

          -

          - 5) 连接成功后,程序界面会自动最小化到任务栏右下角的托盘内(或者点击最小化图标使程序最小化)。

          -

          - 友情提示:如果提示网筝设备已经连接成功,表明在网络方面没有配置问题,如果网筝无法正常运行,可从其它方面入手分析原因。

          -

          - 三、卸载

          - -

          - 1) 如果需要卸载网筝NK-800客户端驱动程序,请用鼠标指向“开始”菜单,选择“程序”、“捷通网筝NK-800”,点击“卸载网筝NK-800”。如下图所示,系统提示“将从计算机中删除网筝NK-800客户端程序,是否继续”,点击“是”按钮。

          -

          - 删除 

          -

          - 2) 卸载成功,点击“确定”按钮卸载完成。

          -

          - 网筝NK-800客户端驱动程序卸载完成后,请重新启动计算机,以确保系统配置信息的恢复。否则,再次安装网筝NK-800客户端驱动程序时,系统可能无法正常完成安装过程。

          - -

          -  

          -
          - -
          - diff --git a/application/default/views/scripts/water/advancesearch.phtml b/application/default/views/scripts/water/advancesearch.phtml deleted file mode 100644 index 4b0e7549..00000000 --- a/application/default/views/scripts/water/advancesearch.phtml +++ /dev/null @@ -1,110 +0,0 @@ -headTitle($this->config->title->site); -$this->headTitle($this->config->title->data); - -$this->headTitle('高级搜索'); -if (!empty($this->codename)) $this->headTitle($this->codename); -$this->headTitle()->setSeparator(' - '); -$this->headLink()->appendStylesheet('/css/metadata.css'); -$this->headLink()->appendStylesheet('/css/search.css'); -$this->breadcrumb('首页'); -$this->breadcrumb(''.$this->config->title->data.''); -$this->breadcrumb('高级搜索'); -$this->breadcrumb()->setSeparator(' > '); -?> -
          -partial('data/tools.phtml'); ?> -
          -metadata)) : ?> -page->getNavigation(); -foreach($this->metadata as $md) : ?> -
          -
          -
          -

          escape($md['title']);?> -

          - 400?$this->escape(mb_substr($md['description'],0,400,'UTF-8').'...'):$this->escape($md['description']);?> -
          - -
          -page->getNavigation();?> - - - - - -
          -
          - -
          - - - - -
          -
          搜索说明
          • 关键词:您可以使用一个关键词,比如"沙漠",也可以使用多个关键词,中间用空格分开。
          • -
          • 空间范围:这是以度为单位的十进制数字。比如,东经125度30分,可以输入为125.5。您也可以通过下面的在线地图工具直接在图上拉框选择一个范围,空间坐标会自动转换到文本框中。
          • -
          • 时间范围:指数据的时间范围,从开始时间到结束时间,若结束时间不填,则是一个时间点。时间格式为YYYY-MM-DD。
          • -
          • 还不清楚?您可以到论坛提问。
          • -
          -
          - - - - \ No newline at end of file diff --git a/application/default/views/scripts/water/airebone.phtml b/application/default/views/scripts/water/airebone.phtml deleted file mode 100644 index a4c489ab..00000000 --- a/application/default/views/scripts/water/airebone.phtml +++ /dev/null @@ -1,33 +0,0 @@ -headTitle($this->config->title->site); -$this->headTitle($this->config->title->data); -$this->headTitle()->setSeparator(' - '); -$this->headLink()->appendStylesheet('/css/water.css'); -$this->breadcrumb('首页'); -$this->breadcrumb(''.$this->config->title->data.''); -$this->breadcrumb('黑河综合遥感联合试验'); -$this->breadcrumb('航空遥感'); -$this->breadcrumb()->setSeparator(' > '); -?> -
          -
          - partial('water/navi.phtml'); ?> -
          -
          -
          -

          航空遥感飞行试验是连接卫星遥感和地面综合观测之间的桥梁,2008年3月12日至7月20日完成了寒区水文、森林水文和干旱区水文的航空遥感试验任务。在寒区水文试验区开展了针对积雪和冻融的微波辐射计和高光谱航空遥感与地面同步试验;在森林水文试验区开展了针对森林结构参数和森林水文的高光谱、多角度热红外和激光雷达航空遥感试验;在干旱区水文试验区开展了针对植被生物物理参数、植被结构、土壤水分和蒸散发的高光谱、多角度热红外、激光雷达和微波辐射计的航空遥感与地面同步试验。共完成航空飞行25个架次,总飞行时间达110小时,获得了大量航空遥感、卫星遥感、地基遥感(微波辐射计、微波散射计、光谱仪)观测、多普勒雷达降水观测、微气象和大气廓线(探空与分光光度计)观测数据、地面同步观测的积雪属性、土壤水分、地表温度和植被生化物理参数等数据。航空遥感飞行区图如下。

          - -
          -
          - metadata) : ?> - page->getNavigation(); ?> -
          -
            - metadata as $md) : ?> -
          1. - -
          -
          - -
          -
          \ No newline at end of file diff --git a/application/default/views/scripts/water/airsounding.phtml b/application/default/views/scripts/water/airsounding.phtml deleted file mode 100644 index 97b2040d..00000000 --- a/application/default/views/scripts/water/airsounding.phtml +++ /dev/null @@ -1,31 +0,0 @@ -headTitle($this->config->title->site); -$this->headTitle($this->config->title->data); -$this->headTitle()->setSeparator(' - '); -$this->headLink()->appendStylesheet('/css/water.css'); -$this->breadcrumb('首页'); -$this->breadcrumb(''.$this->config->title->data.''); -$this->breadcrumb('黑河综合遥感联合试验'); -$this->breadcrumb('探空观测'); -$this->breadcrumb()->setSeparator(' > '); -?> -
          -
          - partial('water/navi.phtml'); ?> -
          -
          -
          -
          -
          - metadata) : ?> - page->getNavigation(); ?> -
          -
            - metadata as $md) : ?> -
          1. - -
          -
          - -
          -
          \ No newline at end of file diff --git a/application/default/views/scripts/water/ar.phtml b/application/default/views/scripts/water/ar.phtml deleted file mode 100644 index df5ef306..00000000 --- a/application/default/views/scripts/water/ar.phtml +++ /dev/null @@ -1,31 +0,0 @@ -headTitle($this->config->title->site); -$this->headTitle($this->config->title->data); -$this->headTitle()->setSeparator(' - '); -$this->headLink()->appendStylesheet('/css/water.css'); -$this->breadcrumb('首页'); -$this->breadcrumb(''.$this->config->title->data.''); -$this->breadcrumb('黑河综合遥感联合试验'); -$this->breadcrumb('阿柔加密观测区'); -$this->breadcrumb()->setSeparator(' > '); -?> -
          -
          - partial('water/navi.phtml'); ?> -
          -
          -
          -
          -
          - metadata) : ?> - page->getNavigation(); ?> -
          -
            - metadata as $md) : ?> -
          1. - -
          -
          - -
          -
          \ No newline at end of file diff --git a/application/default/views/scripts/water/arid.phtml b/application/default/views/scripts/water/arid.phtml deleted file mode 100644 index 6658f450..00000000 --- a/application/default/views/scripts/water/arid.phtml +++ /dev/null @@ -1,40 +0,0 @@ -headTitle($this->config->title->site); -$this->headTitle($this->config->title->data); -$this->headTitle()->setSeparator(' - '); -$this->headLink()->appendStylesheet('/css/water.css'); -$this->breadcrumb('首页'); -$this->breadcrumb(''.$this->config->title->data.''); -$this->breadcrumb('黑河综合遥感联合试验'); -$this->breadcrumb('中游干旱区水文试验'); -$this->breadcrumb()->setSeparator(' > '); -?> -
          -
          - partial('water/navi.phtml'); ?> -
          -
          -
          - -

           中游干旱区水文试验区是由人工绿洲、绿洲—荒漠过渡带、荒漠草原、荒漠和水域共同组成的荒漠-绿洲景观系统。共包括6个加密观测区,由南向北分别为:
          - (1)花寨子荒漠,位于张掖绿洲南缘,景观为荒漠草原。主要开展蒸散发和土壤水分以及荒漠植被生物物理和生物化学参数的同步观测。
          - (2)盈科绿洲,位于张掖市以南8 km,是典型的农田生态系统,主要作物为植种玉米、大田玉米和小麦。该区主要开展农田蒸散发、相关生态参数及作物结构参数的同步观测,地表地下水相互作用监测,农田灌溉用水监测。
          - (3)张掖市,开展城市周边土地利用状况调查和大气光学特性观测。
          - (4)观象台,位于张掖国家气候观象台周边,景观为砾质戈壁。重点依赖于观象台的各种先进设备开展地表能量平衡观测。
          - (5)临泽草地,位于兰州大学草地农业科技学院临泽草地生态试验站周边,土地覆盖类型为湿地、草地、盐碱地和农田。该区主要开展蒸散发、土壤水分、地表和冠层温度、生物物理参数的同步观测,并重点研究尺度转换方法、蒸散发遥感估算模型和蒸散发的数据同化方法。
          - (6)临泽站,位于临泽内陆河流域综合研究站周边,包括过渡带及绿洲。该区主要开展生态水文变量的同步观测和长期监测,重点观测对象是蒸散发和凝结水。

          - -
          -
          - metadata) : ?> - page->getNavigation(); ?> -
          -
            - metadata as $md) : ?> -
          1. - -
          -
          - -
          -
          \ No newline at end of file diff --git a/application/default/views/scripts/water/asd.phtml b/application/default/views/scripts/water/asd.phtml deleted file mode 100644 index 73b3c092..00000000 --- a/application/default/views/scripts/water/asd.phtml +++ /dev/null @@ -1,32 +0,0 @@ -headTitle($this->config->title->site); -$this->headTitle($this->config->title->data); -$this->headTitle()->setSeparator(' - '); -$this->headLink()->appendStylesheet('/css/water.css'); -$this->breadcrumb('首页'); -$this->breadcrumb(''.$this->config->title->data.''); -$this->breadcrumb('黑河综合遥感联合试验'); -$this->breadcrumb('成像光谱仪'); -$this->breadcrumb()->setSeparator(' > '); -?> -
          -
          - partial('water/navi.phtml'); ?> -
          -
          -
          - -
          -
          - metadata) : ?> - page->getNavigation(); ?> -
          -
            - metadata as $md) : ?> -
          1. - -
          -
          - -
          -
          \ No newline at end of file diff --git a/application/default/views/scripts/water/autometeo.phtml b/application/default/views/scripts/water/autometeo.phtml deleted file mode 100644 index dbd29e42..00000000 --- a/application/default/views/scripts/water/autometeo.phtml +++ /dev/null @@ -1,31 +0,0 @@ -headTitle($this->config->title->site); -$this->headTitle($this->config->title->data); -$this->headTitle()->setSeparator(' - '); -$this->headLink()->appendStylesheet('/css/water.css'); -$this->breadcrumb('首页'); -$this->breadcrumb(''.$this->config->title->data.''); -$this->breadcrumb('黑河综合遥感联合试验'); -$this->breadcrumb('自动气象站观测'); -$this->breadcrumb()->setSeparator(' > '); -?> -
          -
          - partial('water/navi.phtml'); ?> -
          -
          -
          -
          -
          - metadata) : ?> - page->getNavigation(); ?> -
          -
            - metadata as $md) : ?> -
          1. - -
          -
          - -
          -
          \ No newline at end of file diff --git a/application/default/views/scripts/water/bdk.phtml b/application/default/views/scripts/water/bdk.phtml deleted file mode 100644 index f3c1b7fa..00000000 --- a/application/default/views/scripts/water/bdk.phtml +++ /dev/null @@ -1,32 +0,0 @@ -headTitle($this->config->title->site); -$this->headTitle($this->config->title->data); -$this->headTitle()->setSeparator(' - '); -$this->headLink()->appendStylesheet('/css/water.css'); -$this->breadcrumb('首页'); -$this->breadcrumb(''.$this->config->title->data.''); -$this->breadcrumb('黑河综合遥感联合试验'); -$this->breadcrumb('扁都口加密观测区'); -$this->breadcrumb()->setSeparator(' > '); -?> -
          -
          - partial('water/navi.phtml'); ?> -
          -
          -
          - -
          -
          - metadata) : ?> - page->getNavigation(); ?> -
          -
            - metadata as $md) : ?> -
          1. - -
          -
          - -
          -
          \ No newline at end of file diff --git a/application/default/views/scripts/water/bg.phtml b/application/default/views/scripts/water/bg.phtml deleted file mode 100644 index b864ea73..00000000 --- a/application/default/views/scripts/water/bg.phtml +++ /dev/null @@ -1,31 +0,0 @@ -headTitle($this->config->title->site); -$this->headTitle($this->config->title->data); -$this->headTitle()->setSeparator(' - '); -$this->headLink()->appendStylesheet('/css/water.css'); -$this->breadcrumb('首页'); -$this->breadcrumb(''.$this->config->title->data.''); -$this->breadcrumb('黑河综合遥感联合试验'); -$this->breadcrumb('冰沟流域加密观测区'); -$this->breadcrumb()->setSeparator(' > '); -?> -
          -
          - partial('water/navi.phtml'); ?> -
          -
          -
          -
          -
          - metadata) : ?> - page->getNavigation(); ?> -
          -
            - metadata as $md) : ?> -
          1. - -
          -
          - -
          -
          \ No newline at end of file diff --git a/application/default/views/scripts/water/browse.phtml b/application/default/views/scripts/water/browse.phtml deleted file mode 100755 index 921d9f97..00000000 --- a/application/default/views/scripts/water/browse.phtml +++ /dev/null @@ -1,28 +0,0 @@ -headTitle($this->config->title->site); - $this->headTitle($this->config->title->data); - $this->headTitle('全部浏览'); -$this->headTitle()->setSeparator(' - '); -$this->headLink()->appendStylesheet('/css/metadata.css'); -$this->breadcrumb('首页'); -$this->breadcrumb(''.$this->config->title->data.''); -$this->breadcrumb('浏览'); -$this->breadcrumb()->setSeparator(' > '); -?> -
          -partial('data/tools.phtml'); ?> -
          -page->getNavigation(); ?> -metadata as $md) : ?> -
          -
          -
          -

          escape($md['title']);?> - - -

          -
          ',mb_strlen($md['description'])>400?$this->escape(mb_substr($md['description'],0,400,'UTF-8').'...'):$this->escape($md['description']));?>
          -
          - -
          -page->getNavigation(); ?> \ No newline at end of file diff --git a/application/default/views/scripts/water/category.phtml b/application/default/views/scripts/water/category.phtml deleted file mode 100755 index 06cace4d..00000000 --- a/application/default/views/scripts/water/category.phtml +++ /dev/null @@ -1,41 +0,0 @@ -headTitle($this->config->title->site); - $this->headTitle($this->config->title->data); -$this->headTitle('分类浏览'); -if (!empty($this->codename)) $this->headTitle($this->codename); -$this->headTitle()->setSeparator(' - '); -$this->headLink()->appendStylesheet('/css/water.css'); -$this->breadcrumb('首页'); -$this->breadcrumb(''.$this->config->title->data.''); -$this->breadcrumb('黑河综合遥感联合试验'); -$this->breadcrumb('分类浏览:'.$this->codename); -$this->breadcrumb()->setSeparator(' > '); -?> - -
          -metadata)) : ?> - -page->getNavigation(); ?> -
          -
          -
            -metadata as $md) : ?> -
          1. escape($md['title']);?>
          2. -

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

            - -
          -
          -
          -page->getNavigation(); -endif; ?> - -
          diff --git a/application/default/views/scripts/water/cold.phtml b/application/default/views/scripts/water/cold.phtml deleted file mode 100644 index baeee3dc..00000000 --- a/application/default/views/scripts/water/cold.phtml +++ /dev/null @@ -1,65 +0,0 @@ -headTitle($this->config->title->site); -$this->headTitle($this->config->title->data); -$this->headTitle()->setSeparator(' - '); -$this->headLink()->appendStylesheet('/css/water.css'); -$this->breadcrumb('首页'); -$this->breadcrumb(''.$this->config->title->data.''); -$this->breadcrumb('黑河综合遥感联合试验'); -$this->breadcrumb('上游寒区水文试验'); -$this->breadcrumb()->setSeparator(' > '); -?> -
          -
          - partial('water/navi.phtml'); ?> -
          -
          -
          - -

          上游寒区水文试验区内的加密观测区包括:
          - (1)冰沟流域,流域面积30.28 km2,海拔3450~4400 m,平均为3920 m,平均宽度3.59 km,季节性积雪厚度约为0.5 m,最深达0.8~1.0 m,多年冻土下界可能在3400 m左右。主要开展积雪遥感同步观测,长期观测目标为积雪水文和冻土水文。
          - (2)阿柔,位于八宝河流域中部河谷地带,海拔约3000 m,地势开阔平坦。主要开展积雪和地表冻融状态的遥感-地面同步观测,并长期观测季节冻土的水热变化特征。
          - (3)扁都口,民乐县扁都口以北的平坦开阔地,平均海拔2800 m,观测瞬时积雪及地表冻融状态,验证被动微波地表冻融分类算法。

          - -
          -
          - metadata) : ?> - page->getNavigation(); ?> -
          -
            - metadata as $md) : ?> -
          1. - -
          -
          - -
          -
          - - diff --git a/application/default/views/scripts/water/datasetcd.phtml b/application/default/views/scripts/water/datasetcd.phtml deleted file mode 100755 index 55a25cc6..00000000 --- a/application/default/views/scripts/water/datasetcd.phtml +++ /dev/null @@ -1,35 +0,0 @@ -headTitle($this->config->title->site); -$this->headTitle($this->config->title->data); -$this->headTitle('特色数据集'); -$this->headTitle()->setSeparator(' - '); -$this->headLink()->appendStylesheet('/css/datasetcd.css'); -$this->breadcrumb('首页'); -$this->breadcrumb(''.$this->config->title->data.''); -$this->breadcrumb('特色数据集'); -$this->breadcrumb()->setSeparator(' > '); -$auth = Zend_Auth::getInstance(); -?> -rows as $row) { -?> -
          -
          -
          title;?>
          -
          (size;?>MB)
          -
          简介:descript; ?>
          - - -
          - \ No newline at end of file diff --git a/application/default/views/scripts/water/detail.phtml b/application/default/views/scripts/water/detail.phtml deleted file mode 100644 index a37706ab..00000000 --- a/application/default/views/scripts/water/detail.phtml +++ /dev/null @@ -1,14 +0,0 @@ -headTitle($this->config->title->site); -$this->headTitle($this->config->title->data); -$this->headTitle('浏览详细元数据'); -$this->headTitle()->setSeparator(' - '); -$this->headLink()->appendStylesheet('/css/metadata.css'); -$this->breadcrumb('首页'); -$this->breadcrumb(''.$this->config->title->data.''); -$this->breadcrumb('浏览详细元数据'); -$this->breadcrumb()->setSeparator(' > '); -?> -
          -xml; ?> -
          \ No newline at end of file diff --git a/application/default/views/scripts/water/document.phtml b/application/default/views/scripts/water/document.phtml deleted file mode 100644 index 5319aac2..00000000 --- a/application/default/views/scripts/water/document.phtml +++ /dev/null @@ -1,60 +0,0 @@ -headTitle($this->config->title->site); -$this->headTitle($this->config->title->data); -$this->headTitle()->setSeparator(' - '); -$this->headLink()->appendStylesheet('/css/water.css'); -$this->breadcrumb('首页'); -$this->breadcrumb(''.$this->config->title->data.''); -$this->breadcrumb('黑河综合遥感联合试验'); -$this->breadcrumb('试验文档'); -$this->breadcrumb()->setSeparator(' > '); -?> -
          -
          - partial('water/navi.phtml'); ?> -
          -
          -
          -

          试验总结报告:

          -
            -
          1. 数据总体报告
          2. -
          3. 航空遥感试验数据专题报告
          4. -
          5. WATER试验地面数据报告
          6. -
          7. 气象水文试验数据专题报告
          8. -
          -

          试验设计和总结文献:

          -

          李新,马明国,王建,刘强,车涛,胡泽勇,肖青,柳钦火,苏培玺,楚荣忠,晋锐, - 王维真,冉有华。黑河流域遥感-地面观测同步试验:科学目标与试验方案。地球科学 - 进展,2008, 23(9): 897-914. 下载

          -

          Li X, Li XW, Li ZY, Ma MG, Wang J, Xiao Q, Liu Q, Che T, Chen EX, Yan GJ, Hu - ZY, Zhang LX, Chu RZ, Su PX, Liu QH, Liu SM, Wang JD, Niu Z, Chen Y, Jin R, - Wang WZ, Ran YH, Xin XZ, Ren HZ. Watershed Allied Telemetry Experimental - Research. Journal of Geophysical Research, 2009, 114(D22103), - doi:10.1029/2008JD011590. 下载 -

          -

          马明国,刘强,阎广建,陈尔学,肖青,苏培玺,胡泽勇,李新,牛铮,王维真,钱金波,宋怡,丁松爽,辛晓洲,任华忠,黄春林,晋锐,车涛,楚荣忠。 - 黑河流域遥感-地面观测同步试验:森林水文和中游干旱区水文试验。地球科学进展,2009,24(7):681-695. 下载 -

          -

          王建,车涛,张立新,晋锐,王维真,李新,梁继,郝小华,李弘毅,吴月茹。 - 黑河流域上游寒区水文遥感-地面同步观测试验介绍。冰川冻土,2009, 31(2): 189-197. 下载 -

          -
          -

          试验成果(数据相关)

          - refs) : ?> - page->getNavigation(); ?> -
          -
            - refs as $md) : ?> -
          1. 下载'; - } - ?> -
          2. - -
          -
          - -
          -
          \ No newline at end of file diff --git a/application/default/views/scripts/water/doppler.phtml b/application/default/views/scripts/water/doppler.phtml deleted file mode 100644 index c6e28543..00000000 --- a/application/default/views/scripts/water/doppler.phtml +++ /dev/null @@ -1,36 +0,0 @@ -headTitle($this->config->title->site); -$this->headTitle($this->config->title->data); -$this->headTitle()->setSeparator(' - '); -$this->headLink()->appendStylesheet('/css/water.css'); -$this->breadcrumb('首页'); -$this->breadcrumb(''.$this->config->title->data.''); -$this->breadcrumb('黑河综合遥感联合试验'); -$this->breadcrumb('降雨雷达观测'); -$this->breadcrumb()->setSeparator(' > '); -?> -
          -
          - partial('water/navi.phtml'); ?> -
          -
          - metadata) : ?> - page->getNavigation(); ?> -
          -
            - metadata as $md) : ?> -
          1. - -
          -
          -
          - -
           
          -
          -

          高寒山区和干旱区降水都具有高度的异质性,因此提高降水的观测精度是寒区和干旱区水文研究中的核心问题。试验中利用先进的车载双偏振多普勒天气雷达在黑河上游和中游地区,开展高密度的雷达降水观测;并建立地面降水粒子滴谱仪观测点和地面降水加密观测网点,与架设在张掖国家气候观象台的我国新一代多普勒天气雷达联网,探索利用雷达联合观测反演降水类型和强度的方法,建立系统化雷达降水估测数据集;评估利用国家业务多普勒雷达网在黑河中上游地区进行长期降水观测的可行性。

          -

          车载双偏振多普勒天气雷达在寒区水文试验中布设在八宝河流域阿柔乡(100.45°E, 38.06°N, 3001 m),可覆盖整个八宝河流域;森林水文和干旱区水文试验中布设在民乐六坝(100.66°E, 38.73°N, 1668 m),与张掖国家气候观象台业务雷达观测相配合,可覆盖大野口流域和中游全部观测区。

          -

          配合多普勒雷达观测,于加密观测期在试验区设置两个降水粒子滴谱仪观测点,布设了大量降水加密观测网点,其中,寒区水文试验区33个简易量雪桶,干旱区水文试验区29个RG3-M型雨量计,森林水文试验区按100~200 m海拔梯度布设加密的降水观测点。这些新增的降雨观测与气象水文观测网络及黑河流域业务水文站的降水观测,构成了试验区降水观测网络(如图),为获取高分辨率的降水数据集提供了可能。

          -
          - -
          -
          \ No newline at end of file diff --git a/application/default/views/scripts/water/download.phtml b/application/default/views/scripts/water/download.phtml deleted file mode 100644 index 9cc18f21..00000000 --- a/application/default/views/scripts/water/download.phtml +++ /dev/null @@ -1,53 +0,0 @@ -headTitle($this->config->title->site); - $this->headTitle($this->config->title->data); - $this->headTitle('下载'); - $this->headTitle()->setSeparator(' - '); - $this->headLink()->appendStylesheet('/css/download.css'); - $this->breadcrumb('首页'); - $this->breadcrumb(''.$this->config->title->data.''); - $this->breadcrumb('下载'); - $this->breadcrumb()->setSeparator(' > '); -?> -
          -

          md['title']; ?>(md['filesize']; ?>MB)

          -
          -
          -
          FTP下载地址 -
            - ftpurls) : ?> - ftpurls as $ftp) : ?> -
          • - -
          -
          -
          - -
          -
          FTP使用说明 - 帐号信息如下:
          • FTP的用户名:username; ?>
          • -
          • FTP的密码:userpass; ?>
          • -
          • 密码有效期限:ftptime; ?>
          • -
          -

          FTP是一种常用的文件传输协议,西部数据中心推荐您使用使用开源的FileZilla软件来进行数据下载,您可以使用您自己喜欢的FTP客户端来进行数据下载。

          - 以FileZilla演示如何下载数据 -
          -
          -
          \ No newline at end of file diff --git a/application/default/views/scripts/water/dyk.phtml b/application/default/views/scripts/water/dyk.phtml deleted file mode 100644 index bae24c78..00000000 --- a/application/default/views/scripts/water/dyk.phtml +++ /dev/null @@ -1,31 +0,0 @@ -headTitle($this->config->title->site); -$this->headTitle($this->config->title->data); -$this->headTitle()->setSeparator(' - '); -$this->headLink()->appendStylesheet('/css/water.css'); -$this->breadcrumb('首页'); -$this->breadcrumb(''.$this->config->title->data.''); -$this->breadcrumb('黑河综合遥感联合试验'); -$this->breadcrumb('大野口流域加密观测区'); -$this->breadcrumb()->setSeparator(' > '); -?> -
          -
          - partial('water/navi.phtml'); ?> -
          -
          -
          -
          -
          - metadata) : ?> - page->getNavigation(); ?> -
          -
            - metadata as $md) : ?> -
          1. - -
          -
          - -
          -
          \ No newline at end of file diff --git a/application/default/views/scripts/water/eb.phtml b/application/default/views/scripts/water/eb.phtml deleted file mode 100644 index 5b7ba4a2..00000000 --- a/application/default/views/scripts/water/eb.phtml +++ /dev/null @@ -1,32 +0,0 @@ -headTitle($this->config->title->site); -$this->headTitle($this->config->title->data); -$this->headTitle()->setSeparator(' - '); -$this->headLink()->appendStylesheet('/css/water.css'); -$this->breadcrumb('首页'); -$this->breadcrumb(''.$this->config->title->data.''); -$this->breadcrumb('黑河综合遥感联合试验'); -$this->breadcrumb('峨堡加密观测区'); -$this->breadcrumb()->setSeparator(' > '); -?> -
          -
          - partial('water/navi.phtml'); ?> -
          -
          -
          - -
          -
          - metadata) : ?> - page->getNavigation(); ?> -
          -
            - metadata as $md) : ?> -
          1. - -
          -
          - -
          -
          \ No newline at end of file diff --git a/application/default/views/scripts/water/ec.phtml b/application/default/views/scripts/water/ec.phtml deleted file mode 100644 index fbfd9e4f..00000000 --- a/application/default/views/scripts/water/ec.phtml +++ /dev/null @@ -1,35 +0,0 @@ -headTitle($this->config->title->site); -$this->headTitle($this->config->title->data); -$this->headTitle()->setSeparator(' - '); -$this->headLink()->appendStylesheet('/css/water.css'); -$this->breadcrumb('首页'); -$this->breadcrumb(''.$this->config->title->data.''); -$this->breadcrumb('黑河综合遥感联合试验'); -$this->breadcrumb('涡动相关观测'); -$this->breadcrumb()->setSeparator(' > '); -?> -
          -
          - partial('water/navi.phtml'); ?> -
          -
          -
          -

          “黑河综合遥感联合试验”通量观测站点包括:大野口关滩森林站、临泽草地站、阿柔站、盈科绿洲站,所用的通量观测设备为Campbell公司的开路涡动相关通量系统,包括三维超声风速、温度计CSAT3和红外线气体分析仪LI-7500。观测数据有10Hz的三维风速、温度、CO2浓度及水汽浓度等量。为了保证试验观测数据的质量,实现观测数据与其他站点观测的一致性和可比性,根据王介民(2009)编写的涡动相关通量观测指导手册及其提供的改进的EdiRe程序,对试验的通量观测数据进行了质量控制和处理。该手册编写中参考了美国通量观测网的涡动相关通量观测指南和欧洲通量网及有关专家的推荐文件等。计算软件基于EdiRe有关模块,参考全球通量网一些建议标准,用于各站湍流原始资料的后处理,主要过程包括异常值检验、坐标旋转、超声虚温校正、时间滞后剔除、频率响应修正、WPL修正以及稳定度检验等基本处理,最后得到30分钟的感热、潜热及CO2通量。

          -

          - 参考文献: - 王介民 编。涡动相关通量观测指导手册,2009,p24.

          -
          -
          - metadata) : ?> - page->getNavigation(); ?> -
          -
            - metadata as $md) : ?> -
          1. - -
          -
          - -
          -
          \ No newline at end of file diff --git a/application/default/views/scripts/water/feature.phtml b/application/default/views/scripts/water/feature.phtml deleted file mode 100644 index d7f08d0e..00000000 --- a/application/default/views/scripts/water/feature.phtml +++ /dev/null @@ -1,20 +0,0 @@ -headTitle($this->config->title->site); -$this->headTitle($this->config->title->data); -$this->headTitle('特色推荐'); -$this->headTitle()->setSeparator(' - '); -$this->headLink()->appendStylesheet('/css/feature.css'); -$this->breadcrumb('首页'); -$this->breadcrumb(''.$this->config->title->data.''); -$this->breadcrumb('特色推荐'); -$this->breadcrumb()->setSeparator(' > '); -$auth = Zend_Auth::getInstance(); -?> -feature as $f) { ?> -
          - <?= $f['imgtext']; ?> -

          -
          - -
          - \ No newline at end of file diff --git a/application/default/views/scripts/water/forest.phtml b/application/default/views/scripts/water/forest.phtml deleted file mode 100644 index a24c6953..00000000 --- a/application/default/views/scripts/water/forest.phtml +++ /dev/null @@ -1,49 +0,0 @@ -headTitle($this->config->title->site); -$this->headTitle($this->config->title->data); -$this->headTitle()->setSeparator(' - '); -$this->headLink()->appendStylesheet('/css/water.css'); -$this->breadcrumb('首页'); -$this->breadcrumb(''.$this->config->title->data.''); -$this->breadcrumb('黑河综合遥感联合试验'); -$this->breadcrumb('森林水文试验'); -$this->breadcrumb()->setSeparator(' > '); -?> -
          -
          - partial('water/navi.phtml'); ?> -
          -
          -
          -

          森林水文试验的加密观测区选择大野口流域和排露沟小流域(如图)。
          - (1)大野口流域,是一个独立水系,大野口水库以上汇水面积为70 km2,主要树种为青海云杉。
          - (2)排露沟流域,海拔2600~3800 m,面积2.73 km2,年平均气温0.7℃,年平均降水量435.5 mm,观测基础较好, - 祁连山水源涵养林研究院在该流域内布设了森林水文观测系统及大量水文和植被观测样地。

          - -

          甘肃省水源涵养林研究院2003年曾在排露沟流域设置了15个20m×20m的森林固定观测样地,2007年7月21日至8月16日, - 寒旱所和水涵院开展了这些森林样的调查工作,调查了16个森林样地(15个固定样方和1个幼林样方)。 - 另外还调查了10个灌木样方和8个草地样方,这些样方与水涵院2003年7-8月在该流域开展的样方调查的位置基本一致,可以形成对照。

          -

          2008年6月1日至15日,中国林业科学研究院资源信息研究所、中国科学院遥感应用研究所、 - 北京师范大学和甘肃省水源涵养林研究院等单位在大野口流域开展了森林结构参数和生物物理参数的加密观测试验。 - 这些试验包括固定样地观测、临时样地观测、超级样地观测和样带观测四部分内容。

          -

          固定样地观测集中在排露沟流域,对具有多年观测历史资料积累的15块森林固定样地进行了冠层结构参数(叶面积指数(Leaf Area Index, LAI)和郁闭度等)的观测,利用的仪器包括LAI2000、TRAC和HemiView以及北京师范大学自制的冠层结构观测设备。

          -

          临时样地观测是为了提高森林观测样地在空间分布上的均匀性,在大野口流域选择了43块25m×25m的临时样地,测量了样地每株树的胸径、冠幅和枝下高,按径阶抽取优势木测量了树高,并测量了样地林分的株数密度、郁闭度、LAI和立地因子。

          -

          超级样地观测是指在大野口关滩森林观测塔周围设置了一个100m×100m的超级样地,利用各种仪器设备对该样地进行了详细的观测。具体观测内容包括:(1)利用全站仪对样地内的每株树木的平面空间分布位置进行了精确定位;(2)对样地内每株树进行了树高、胸径、枝下高和冠幅的测量;(3)利用LAI2000、TRAC和HemiView测量了林分的LAI;(3)利用地基LiDAR对林分结构进行了三维扫描;(4)分别幼龄林、中龄林、成熟林三级,各抽取10株树,采集不同部位的枝叶样品进行了湿重和干重测量;(5)测量了样地的地表粗糙度和土壤湿度;(6)利用ASD光谱仪测量了典型林木的树冠光谱和BRDF。

          -

          样带观测是指在大野口关滩森林站设置了一个通过超级样地,与航带平行,跨越不同结构林分和地形的样带,宽20m,长1km。在样带上每隔50米设1块20m×20m的森林样地,分别样地观测林木的树高、胸径、枝下高和冠幅,并测量林分的LAI。 -

          在排露沟阴坡固定样方和关滩阳坡超级样方里分别设置了一个青海云杉林水文参数观测场,根据不同的郁闭度布设雨量桶、截留槽、苔藓截留桶、树干径流收集器和自制蒸散桶等设备,以获取不同的郁闭度的森林水文特征数据。

          - - -
          -
          - metadata) : ?> - page->getNavigation(); ?> -
          -
            - metadata as $md) : ?> -
          1. - -
          -
          - -
          -
          \ No newline at end of file diff --git a/application/default/views/scripts/water/hydro.phtml b/application/default/views/scripts/water/hydro.phtml deleted file mode 100644 index 40498414..00000000 --- a/application/default/views/scripts/water/hydro.phtml +++ /dev/null @@ -1,31 +0,0 @@ -headTitle($this->config->title->site); -$this->headTitle($this->config->title->data); -$this->headTitle()->setSeparator(' - '); -$this->headLink()->appendStylesheet('/css/water.css'); -$this->breadcrumb('首页'); -$this->breadcrumb(''.$this->config->title->data.''); -$this->breadcrumb('黑河综合遥感联合试验'); -$this->breadcrumb('水文观测'); -$this->breadcrumb()->setSeparator(' > '); -?> -
          -
          - partial('water/navi.phtml'); ?> -
          -
          -
          -
          -
          - metadata) : ?> - page->getNavigation(); ?> -
          -
            - metadata as $md) : ?> -
          1. - -
          -
          - -
          -
          \ No newline at end of file diff --git a/application/default/views/scripts/water/hzz.phtml b/application/default/views/scripts/water/hzz.phtml deleted file mode 100644 index b2811deb..00000000 --- a/application/default/views/scripts/water/hzz.phtml +++ /dev/null @@ -1,32 +0,0 @@ -headTitle($this->config->title->site); -$this->headTitle($this->config->title->data); -$this->headTitle()->setSeparator(' - '); -$this->headLink()->appendStylesheet('/css/water.css'); -$this->breadcrumb('首页'); -$this->breadcrumb(''.$this->config->title->data.''); -$this->breadcrumb('黑河综合遥感联合试验'); -$this->breadcrumb('花寨子荒漠加密观测区'); -$this->breadcrumb()->setSeparator(' > '); -?> -
          -
          - partial('water/navi.phtml'); ?> -
          -
          -
          - -
          -
          - metadata) : ?> - page->getNavigation(); ?> -
          -
            - metadata as $md) : ?> -
          1. - -
          -
          - -
          -
          \ No newline at end of file diff --git a/application/default/views/scripts/water/index.phtml b/application/default/views/scripts/water/index.phtml deleted file mode 100755 index e718f983..00000000 --- a/application/default/views/scripts/water/index.phtml +++ /dev/null @@ -1,87 +0,0 @@ -headTitle($this->config->title->site); -$this->headTitle($this->config->title->data); -$this->headTitle()->setSeparator(' - '); -$this->headLink()->appendStylesheet('/css/water.css'); -$this->breadcrumb('首页'); -$this->breadcrumb(''.$this->config->title->data.''); -$this->breadcrumb('黑河综合遥感联合试验'); -$this->breadcrumb()->setSeparator(' > '); -?> -
          -
          - partial('water/navi.phtml'); ?> -
          -
          -
          -
          - -
          -
          -
           
          -
          - -

          黑河综合遥感联合试验

          -

          - “黑河综合遥感联合试验”是由中国科学院西部行动计划(二期)项目“黑河流域遥感 - -地面观测同步试验与综合模拟平台建设”与国家重点基础研究发展计划(973计划)项 - 目“陆表生态环境要素主被动遥感协同反演理论与方法”共同设计并组织实施。是在流 - 域尺度上开展的,以水循环及与之密切联系的生态过程为主要研究对象的大型航空、卫 - 星遥感与地面同步观测科学试验。

          -

          - 试验以具备鲜明的高寒与干旱区伴生为主要特征的黑河流域为试验区,以水循环为主要 - 研究对象,利用航空遥感、卫星遥感、地面雷达、水文气象观测、通量观测、生态监测 - 等相关设备,开展航空、卫星和地面配合的大型观测试验,精细观测干旱区内陆河流域 - 高山冰雪和冻土带、山区水源涵养林带、中游人工绿洲及天然荒漠绿洲带的水循环和生 - 态过程的各个分量;并且以航空遥感为桥梁,通过高精度的真实性验证,发展尺度转换 - 方法,改善从卫星遥感资料反演和间接估计水循环各分量及与之密切联系的生态和其他 - 地表过程分量的模型和算法。 -

          -

          - “黑河综合遥感联合试验” 由寒区水文试验、森林水文试验和干旱区水文试验,以及 - 一个集成研究――模拟平台和数据平台建设组成,共分为4个主要阶段,包括试验准备 - 期、预试验期、加强试验期和持续观测期。其中,2007年夏季(7~10月)开展了森林 - 水文和中游干旱区水文预试验,冬季(10~12月)开开展了上游寒区水文试验预试验。 - 2007年底建立了加密的气象水文观测网。2008年是加强观测试验实施的重要一年,完成 - 了寒区水文、森林水文和干旱区水文的星-机-地同步加强观测试验。其中,2008年3 - 月12日至4月12日完成了寒区水文试验,5月15日至7月20日完成了森林水文和干旱区水 - 文试验。寒区水文试验开展了针对积雪和冻融的微波辐射计和高光谱航空遥感与地面同 - 步试验;森林水文试验开展了针对森林结构参数和森林水文的高光谱、多角度热红外和 - 激光雷达航空遥感试验;干旱区水文试验开展了针对植被生物物理参数、植被结构、土 - 壤水分和蒸散发的高光谱、多角度热红外、激光雷达和微波辐射计的航空遥感与地面同 - 步试验。加强试验结束后,开展了持续观测试验,主要依靠加密的气象水文观测网持续 - 获取至2008年1月1日至2009年12月31日两个完整年度的资料。试验的设计见(李新 等,2008),试验总结详见(Li Xin et al, 2009),上游寒区试验 - 的初步总结详见(王建 等, 2009),中游试验的初步总结详见(马 - 明国 等, 2009)。

          -

          - “黑河综合遥感联合试验”共完成25年架次、110个小时的航空遥感飞行试验,来自28 - 家相关单位的281位科学家、工程技术人员和研究生参加试验。获得了大量航空遥感、 - 卫星遥感、地基遥感(微波辐射计、微波散射计、光谱仪)观测、多普勒雷达降水观 - 测、微气象和大气廓线(探空与分光光度计)观测数据、地面同步观测的积雪属性、土 - 壤水分、地表温度和植被生化物理参数等数据。数据可在本网站查询和获取。 -

          -

          - “黑河综合遥感联合试验”主要由中国科学院寒区旱区环境与工程研究所、中国科学院遥感应用研究所、北京师范大学地理学与遥感科学学院和中国林业科学研究院资源信息研究所组织实施,另有中国科学院上海技术物理研究所等28家同行单位参加试验,同时试验的完成离不开张掖气象局,甘肃省祁连山水源涵养林研究院、张掖水务局、甘肃省张掖市政府、青海省祁连县政府及当地群众的热情支持。 -

          - -
          - -
          -
          \ No newline at end of file diff --git a/application/default/views/scripts/water/las.phtml b/application/default/views/scripts/water/las.phtml deleted file mode 100644 index 3a95cf6d..00000000 --- a/application/default/views/scripts/water/las.phtml +++ /dev/null @@ -1,31 +0,0 @@ -headTitle($this->config->title->site); -$this->headTitle($this->config->title->data); -$this->headTitle()->setSeparator(' - '); -$this->headLink()->appendStylesheet('/css/water.css'); -$this->breadcrumb('首页'); -$this->breadcrumb(''.$this->config->title->data.''); -$this->breadcrumb('黑河综合遥感联合试验'); -$this->breadcrumb('大孔径闪烁仪观测'); -$this->breadcrumb()->setSeparator(' > '); -?> -
          -
          - partial('water/navi.phtml'); ?> -
          -
          -
          -
          -
          - metadata) : ?> - page->getNavigation(); ?> -
          -
            - metadata as $md) : ?> -
          1. - -
          -
          - -
          -
          \ No newline at end of file diff --git a/application/default/views/scripts/water/lidar.phtml b/application/default/views/scripts/water/lidar.phtml deleted file mode 100644 index f222c032..00000000 --- a/application/default/views/scripts/water/lidar.phtml +++ /dev/null @@ -1,32 +0,0 @@ -headTitle($this->config->title->site); -$this->headTitle($this->config->title->data); -$this->headTitle()->setSeparator(' - '); -$this->headLink()->appendStylesheet('/css/water.css'); -$this->breadcrumb('首页'); -$this->breadcrumb(''.$this->config->title->data.''); -$this->breadcrumb('黑河综合遥感联合试验'); -$this->breadcrumb('WiDAS'); -$this->breadcrumb()->setSeparator(' > '); -?> -
          -
          - partial('water/navi.phtml'); ?> -
          -
          -
          - -
          -
          - metadata) : ?> - page->getNavigation(); ?> -
          -
            - metadata as $md) : ?> -
          1. - -
          -
          - -
          -
          \ No newline at end of file diff --git a/application/default/views/scripts/water/lzg.phtml b/application/default/views/scripts/water/lzg.phtml deleted file mode 100644 index b2d3502c..00000000 --- a/application/default/views/scripts/water/lzg.phtml +++ /dev/null @@ -1,32 +0,0 @@ -headTitle($this->config->title->site); -$this->headTitle($this->config->title->data); -$this->headTitle()->setSeparator(' - '); -$this->headLink()->appendStylesheet('/css/water.css'); -$this->breadcrumb('首页'); -$this->breadcrumb(''.$this->config->title->data.''); -$this->breadcrumb('黑河综合遥感联合试验'); -$this->breadcrumb('临泽草地加密观测区'); -$this->breadcrumb()->setSeparator(' > '); -?> -
          -
          - partial('water/navi.phtml'); ?> -
          -
          -
          - -
          -
          - metadata) : ?> - page->getNavigation(); ?> -
          -
            - metadata as $md) : ?> -
          1. - -
          -
          - -
          -
          \ No newline at end of file diff --git a/application/default/views/scripts/water/lzs.phtml b/application/default/views/scripts/water/lzs.phtml deleted file mode 100644 index 1a69be46..00000000 --- a/application/default/views/scripts/water/lzs.phtml +++ /dev/null @@ -1,32 +0,0 @@ -headTitle($this->config->title->site); -$this->headTitle($this->config->title->data); -$this->headTitle()->setSeparator(' - '); -$this->headLink()->appendStylesheet('/css/water.css'); -$this->breadcrumb('首页'); -$this->breadcrumb(''.$this->config->title->data.''); -$this->breadcrumb('黑河综合遥感联合试验'); -$this->breadcrumb('临泽站加密观测区'); -$this->breadcrumb()->setSeparator(' > '); -?> -
          -
          - partial('water/navi.phtml'); ?> -
          -
          -
          - -
          -
          - metadata) : ?> - page->getNavigation(); ?> -
          -
            - metadata as $md) : ?> -
          1. - -
          -
          - -
          -
          \ No newline at end of file diff --git a/application/default/views/scripts/water/map.phtml b/application/default/views/scripts/water/map.phtml deleted file mode 100755 index aac5e400..00000000 --- a/application/default/views/scripts/water/map.phtml +++ /dev/null @@ -1,83 +0,0 @@ -headTitle($this->config->title->site); - $this->headTitle($this->config->title->data); - $this->headTitle("空间浏览"); - $this->headTitle()->setSeparator(' - '); - $this->headLink()->appendStylesheet('/css/metadata.css'); - $this->breadcrumb('首页'); - $this->breadcrumb(''.$this->config->title->data.''); - $this->breadcrumb('空间浏览'); - if (!empty($this->codename)) $this->breadcrumb($this->codename); - $this->breadcrumb()->setSeparator(' > '); - $this->headScript()->appendFile('/js/OpenLayers.js'); - $this->headLink()->appendStylesheet('/js/theme/default/style.css'); - $this->headScript()->appendFile('http://maps.google.cn/maps?file=api&v=2&key='.$this->config->google->maps->api); -?> -
          -partial('data/tools.phtml'); ?> -
          -
          -
          -
          - diff --git a/application/default/views/scripts/water/meteo.phtml b/application/default/views/scripts/water/meteo.phtml deleted file mode 100644 index 7a9a9e21..00000000 --- a/application/default/views/scripts/water/meteo.phtml +++ /dev/null @@ -1,33 +0,0 @@ -headTitle($this->config->title->site); -$this->headTitle($this->config->title->data); -$this->headTitle()->setSeparator(' - '); -$this->headLink()->appendStylesheet('/css/water.css'); -$this->breadcrumb('首页'); -$this->breadcrumb(''.$this->config->title->data.''); -$this->breadcrumb('黑河综合遥感联合试验'); -$this->breadcrumb('气象水文观测'); -$this->breadcrumb()->setSeparator(' > '); -?> -
          -
          - partial('water/navi.phtml'); ?> -
          -
          -
          -

          在黑河流域已有观测网络的基础上,在3个重点试验区依据不同景观类型新建了7个自动气象站,4套涡动相关,2套大孔径闪烁仪。新建的观测系统和试验区已有的5个自动气象站, 2套涡动相关,8个业务气象站及34个气象区域站相配合,在试验区(如下图)约23700 km2 的范围内,形成了包括常规站、重点站和重点加强站三位一体的黑河中上游地区地面气象水文观测网,以满足不同层次科学研究的需要。大部分观测站获取了2008年和2009年两个完整年度的资料,部分台站观测数据有损失。

          - -
          -
          - metadata) : ?> - page->getNavigation(); ?> -
          -
            - metadata as $md) : ?> -
          1. - -
          -
          - -
          -
          \ No newline at end of file diff --git a/application/default/views/scripts/water/mobilemeteo.phtml b/application/default/views/scripts/water/mobilemeteo.phtml deleted file mode 100644 index eae7af2c..00000000 --- a/application/default/views/scripts/water/mobilemeteo.phtml +++ /dev/null @@ -1,31 +0,0 @@ -headTitle($this->config->title->site); -$this->headTitle($this->config->title->data); -$this->headTitle()->setSeparator(' - '); -$this->headLink()->appendStylesheet('/css/water.css'); -$this->breadcrumb('首页'); -$this->breadcrumb(''.$this->config->title->data.''); -$this->breadcrumb('黑河综合遥感联合试验'); -$this->breadcrumb('移动气象站观测'); -$this->breadcrumb()->setSeparator(' > '); -?> -
          -
          - partial('water/navi.phtml'); ?> -
          -
          -
          -
          -
          - metadata) : ?> - page->getNavigation(); ?> -
          -
            - metadata as $md) : ?> -
          1. - -
          -
          - -
          -
          \ No newline at end of file diff --git a/application/default/views/scripts/water/navi.phtml b/application/default/views/scripts/water/navi.phtml deleted file mode 100644 index d8ad2c8a..00000000 --- a/application/default/views/scripts/water/navi.phtml +++ /dev/null @@ -1,129 +0,0 @@ - \ No newline at end of file diff --git a/application/default/views/scripts/water/newsletter.phtml b/application/default/views/scripts/water/newsletter.phtml deleted file mode 100755 index a30c8063..00000000 --- a/application/default/views/scripts/water/newsletter.phtml +++ /dev/null @@ -1,43 +0,0 @@ -headTitle($this->config->title->site); -$this->headTitle($this->config->title->data); -$this->headTitle('数据通讯'); -$this->headTitle()->setSeparator(' - '); -$this->headLink()->appendStylesheet('/css/newsletter.css'); -$this->breadcrumb('首页'); -$this->breadcrumb(''.$this->config->title->data.''); -$this->breadcrumb('数据通讯'); -$this->breadcrumb()->setSeparator(' > '); -?> -newsletters as $nl){ - $name=basename($nl,'.pdf'); - list(,$num)=explode("_",$name); -?> - - -

          - 西部数据中心不定期发布数据通讯,通告中心动态、最新数据、数据工具,以及重要研究进展。

          -

          - 在下面文本框里输入您的Email地址,可以订阅数据中心通讯。当通讯发布时,将在第一时间发送到您订阅的Email邮箱里。

          -
          - 注意,邮件列表发送的邮件,有可能被您的邮箱当成垃圾邮件隔离,所以请设置您的反垃圾邮箱配置。
          - form; ?> -messages)) : ?> -
          -messages as $info)echo $info; - ?> -
          - -
          备注:您也可以直接给数据通讯发送一封标题为subscribe的邮件进行订阅。 -
          -

            -
          \ No newline at end of file diff --git a/application/default/views/scripts/water/normalmeteo.phtml b/application/default/views/scripts/water/normalmeteo.phtml deleted file mode 100644 index ac86b32e..00000000 --- a/application/default/views/scripts/water/normalmeteo.phtml +++ /dev/null @@ -1,33 +0,0 @@ -headTitle($this->config->title->site); -$this->headTitle($this->config->title->data); -$this->headTitle()->setSeparator(' - '); -$this->headLink()->appendStylesheet('/css/water.css'); -$this->breadcrumb('首页'); -$this->breadcrumb(''.$this->config->title->data.''); -$this->breadcrumb('黑河综合遥感联合试验'); -$this->breadcrumb('业务气象站观测'); -$this->breadcrumb()->setSeparator(' > '); -?> -
          -
          - partial('water/navi.phtml'); ?> -
          -
          -
          -

          试验区内常规业务气象站观测的逐日气象资料从中国气象科学数据共享网:(http://cdc.cma.gov.cn)获取。

          -

          试验区内甘肃省常规业务气象站观测的6时气象资料从甘肃省气象局信息中心获取。

          -
          - metadata) : ?> - page->getNavigation(); ?> -
          -
          -
            - metadata as $md) : ?> -
          1. - -
          -
          - -
          -
          \ No newline at end of file diff --git a/application/default/views/scripts/water/offlineapp.phtml b/application/default/views/scripts/water/offlineapp.phtml deleted file mode 100644 index ebbba21c..00000000 --- a/application/default/views/scripts/water/offlineapp.phtml +++ /dev/null @@ -1,30 +0,0 @@ -headTitle($this->config->title->site); -$this->headTitle($this->config->title->data); -$this->headTitle('最近20条离线数据申请'); -$this->headTitle($this->codename); -$this->headTitle()->setSeparator(' - '); -$this->headLink()->appendStylesheet('/css/offlineapp.css'); -$this->breadcrumb('首页'); -$this->breadcrumb(''.$this->config->title->data.''); -$this->breadcrumb('最近20条离线数据申请'); -$this->breadcrumb()->setSeparator(' > '); -?> -
          - - - - - - - -rows as $r) : ?> - - - - - - - -
          姓名单位申请日期申请数据
          -
          \ No newline at end of file diff --git a/application/default/views/scripts/water/offlinelist.phtml b/application/default/views/scripts/water/offlinelist.phtml deleted file mode 100755 index aeb2dafe..00000000 --- a/application/default/views/scripts/water/offlinelist.phtml +++ /dev/null @@ -1,25 +0,0 @@ -headTitle($this->config->title->site); -$this->headTitle($this->config->title->data); -$this->headTitle('离线数据清单'); -$this->headTitle($this->codename); -$this->headTitle()->setSeparator(' - '); -$this->headLink()->appendStylesheet('/css/metadata.css'); -$this->breadcrumb('首页'); -$this->breadcrumb(''.$this->config->title->data.''); -$this->breadcrumb('离线数据清单'); -$this->breadcrumb()->setSeparator(' > '); -?> -
          -partial('data/tools.phtml'); ?> -
          -page->getNavigation(); ?> -metadata as $md) : ?> -
          -
          - escape($md['title']);?> - -
          - -
          -page->getNavigation(); ?> \ No newline at end of file diff --git a/application/default/views/scripts/water/onlinelist.phtml b/application/default/views/scripts/water/onlinelist.phtml deleted file mode 100755 index 129305fc..00000000 --- a/application/default/views/scripts/water/onlinelist.phtml +++ /dev/null @@ -1,25 +0,0 @@ -headTitle($this->config->title->site); -$this->headTitle($this->config->title->data); -$this->headTitle('在线数据清单'); -$this->headTitle($this->codename); -$this->headTitle()->setSeparator(' - '); -$this->headLink()->appendStylesheet('/css/metadata.css'); -$this->breadcrumb('首页'); -$this->breadcrumb(''.$this->config->title->data.''); -$this->breadcrumb('在线数据清单'); -$this->breadcrumb()->setSeparator(' > '); -?> -
          -partial('data/tools.phtml'); ?> -
          -page->getNavigation(); ?> -metadata as $md) : ?> -
          -
          - escape($md['title']);?> - -
          - -
          -page->getNavigation(); ?> \ No newline at end of file diff --git a/application/default/views/scripts/water/order.phtml b/application/default/views/scripts/water/order.phtml deleted file mode 100644 index 098d8830..00000000 --- a/application/default/views/scripts/water/order.phtml +++ /dev/null @@ -1,90 +0,0 @@ -headTitle($this->config->title->site); - $this->headTitle($this->config->title->data); - $this->headTitle('离线申请'); - $this->headTitle()->setSeparator(' - '); - $this->headLink()->appendStylesheet('/css/order.css'); - $this->breadcrumb('首页'); - $this->breadcrumb(''.$this->config->title->data.''); - $this->breadcrumb('黑河综合遥感联合试验'); - $this->breadcrumb('离线申请'); - $this->breadcrumb()->setSeparator(' > '); -?> -
          -md) : ?> -

          您已经成功把md['title']; ?>放入数据申请程序中!

          -messages): foreach($this->messages as $msg): ?> -

          - -msg) : ?> -

          msg; ?>

          - -
          - -dataorder0) : ?> -
          -

          正在下载中的在线数据(完成所有 取消所有

          - -dataorder0 as $order) : ?> - - -
          - -dataorder1) : ?> -
          -

          准备提交的离线申请(提交所有离线申请

          - -dataorder1 as $order) : ?> - - -
          - -dataorder2) : ?> -
          -

          已提交的离线申请(生成PDF离线数据申请表

          - -dataorder2 as $order) : ?> - - -
          - \ No newline at end of file diff --git a/application/default/views/scripts/water/overview.phtml b/application/default/views/scripts/water/overview.phtml deleted file mode 100644 index 2b537ea3..00000000 --- a/application/default/views/scripts/water/overview.phtml +++ /dev/null @@ -1,36 +0,0 @@ -headTitle($this->config->title->site); -$this->headTitle($this->config->title->data); -$this->headTitle()->setSeparator(' - '); -$this->headLink()->appendStylesheet('/css/water.css'); -$this->breadcrumb('首页'); -$this->breadcrumb(''.$this->config->title->data.''); -$this->breadcrumb('黑河综合遥感联合试验'); -$this->breadcrumb('试验简介'); -$this->breadcrumb()->setSeparator(' > '); -?> - - - diff --git a/application/default/views/scripts/water/pdf.phtml b/application/default/views/scripts/water/pdf.phtml deleted file mode 100644 index f36eb93d..00000000 --- a/application/default/views/scripts/water/pdf.phtml +++ /dev/null @@ -1,36 +0,0 @@ -headTitle($this->config->title->site); - $this->headTitle($this->config->title->data); - $this->headTitle('离线申请'); - $this->headTitle()->setSeparator(' - '); - $this->headLink()->appendStylesheet('/css/order.css'); - $this->breadcrumb('首页'); - $this->breadcrumb(''.$this->config->title->data.''); - $this->breadcrumb('离线申请'); - $this->breadcrumb('生成离线申请表'); - $this->breadcrumb()->setSeparator(' > '); -?> -
          -messages): foreach($this->messages as $msg): ?> -

          - -msg) : ?> -

          msg; ?>

          - -
          -
          -

          为促进中国西部资源与生态环境科学研究,更好的为西部大开发服务,充分利用数据中心多年来的数据积累及国家自然科学基金委员会“中国西部环境与生态科学研究计划”、数字流域等的数据产出, -根据我国科学数据共享和基金项目数据管理的有关规定, 中科院寒区旱区环境与工程研究所(简称甲方)同意接收__________(以下简称乙方)的数据申请,并签订数据使用协议(其中用途部分,请仔细填写您的项目名称、编号、类型、负责人以及使用目的信息,否则无法通过申请!): -

          -

          您必须点击 “提交申请到数据中心” 后西部数据中心才能开始受理您的数据申请!

          -

          数据清单

          - -
          -
          -

          用户信息(请务必输入真实信息以便邮寄!)

          -form;?> -
          \ No newline at end of file diff --git a/application/default/views/scripts/water/plg.phtml b/application/default/views/scripts/water/plg.phtml deleted file mode 100644 index 8d4a5752..00000000 --- a/application/default/views/scripts/water/plg.phtml +++ /dev/null @@ -1,31 +0,0 @@ -headTitle($this->config->title->site); -$this->headTitle($this->config->title->data); -$this->headTitle()->setSeparator(' - '); -$this->headLink()->appendStylesheet('/css/water.css'); -$this->breadcrumb('首页'); -$this->breadcrumb(''.$this->config->title->data.''); -$this->breadcrumb('黑河综合遥感联合试验'); -$this->breadcrumb('排露沟流域加密观测区'); -$this->breadcrumb()->setSeparator(' > '); -?> -
          -
          - partial('water/navi.phtml'); ?> -
          -
          -
          -
          -
          - metadata) : ?> - page->getNavigation(); ?> -
          -
            - metadata as $md) : ?> -
          1. - -
          -
          - -
          -
          \ No newline at end of file diff --git a/application/default/views/scripts/water/radiometer.phtml b/application/default/views/scripts/water/radiometer.phtml deleted file mode 100644 index 1ab096bc..00000000 --- a/application/default/views/scripts/water/radiometer.phtml +++ /dev/null @@ -1,32 +0,0 @@ -headTitle($this->config->title->site); -$this->headTitle($this->config->title->data); -$this->headTitle()->setSeparator(' - '); -$this->headLink()->appendStylesheet('/css/water.css'); -$this->breadcrumb('首页'); -$this->breadcrumb(''.$this->config->title->data.''); -$this->breadcrumb('黑河综合遥感联合试验'); -$this->breadcrumb('机载微波辐射计'); -$this->breadcrumb()->setSeparator(' > '); -?> -
          -
          - partial('water/navi.phtml'); ?> -
          -
          -
          - -
          -
          - metadata) : ?> - page->getNavigation(); ?> -
          -
            - metadata as $md) : ?> -
          1. - -
          -
          - -
          -
          \ No newline at end of file diff --git a/application/default/views/scripts/water/regionalmeteo.phtml b/application/default/views/scripts/water/regionalmeteo.phtml deleted file mode 100644 index 8558b84c..00000000 --- a/application/default/views/scripts/water/regionalmeteo.phtml +++ /dev/null @@ -1,32 +0,0 @@ -headTitle($this->config->title->site); -$this->headTitle($this->config->title->data); -$this->headTitle()->setSeparator(' - '); -$this->headLink()->appendStylesheet('/css/water.css'); -$this->breadcrumb('首页'); -$this->breadcrumb(''.$this->config->title->data.''); -$this->breadcrumb('黑河综合遥感联合试验'); -$this->breadcrumb('区域气象站观测'); -$this->breadcrumb()->setSeparator(' > '); -?> -
          -
          - partial('water/navi.phtml'); ?> -
          -
          -
          -

          试验区内张掖市区域气象观测资料从甘肃省气象局信息中心获取。

          -
          -
          - metadata) : ?> - page->getNavigation(); ?> -
          -
            - metadata as $md) : ?> -
          1. - -
          -
          - -
          -
          \ No newline at end of file diff --git a/application/default/views/scripts/water/request.phtml b/application/default/views/scripts/water/request.phtml deleted file mode 100755 index 5eebe3db..00000000 --- a/application/default/views/scripts/water/request.phtml +++ /dev/null @@ -1,58 +0,0 @@ -headTitle($this->config->title->site); - $this->headTitle($this->config->title->data); - $this->headTitle('如何申请数据'); -$this->headTitle()->setSeparator(' - '); -//$this->headLink()->appendStylesheet('/css/terms.css'); -$this->breadcrumb('首页'); -$this->breadcrumb("".$this->config->title->data.""); -$this->breadcrumb('如何申请数据'); -$this->breadcrumb()->setSeparator(' > '); -?> -
          -

          如何申请数据?

          -

          “西部数据中心”数据申请支持两种方式:在线方式和离线方式。

          -
          -

          在线方式:

          -

          - 在线数据获取请访问“西部数据中心”共享门户网站(Http://westdc.westgis.ac.cn),免费注册后,登陆,按类别浏览元数据或者根据关键词进行元数据搜索。如果元数据支持在线下载,在详细元数据里可以找到一个或多个下载链接,点击链接,按提示进行HTTP或FTP下载。使用客户端下载时,建议不超过5线程。
          -

          -

          离线方式:

          -受国家数据政策限制或数据提供者的要求,一些数据提供在线下载。“西部数据中心”有专人负责数据服务,会在尽短时间内回复离线数据请求。“西部数据中心”按照“完全与开放”数据共享原则,以不高于复印、邮寄或材料费提供数据。用户在收到数据后,请按通知返回上述费用。
          -

          1、找到需要的数据
          -2、点击离线申请
          -3、重复步骤1、2,选择所需的数据,最多可以同时申请5个数据。
          -4、进入"数据篮",提交离线申请。
          -5、根据系统反馈的邮件进行进一步的操作:打印申请表,签字盖章后邮寄给西部数据中心。
          -6、等待西部数据中心答复

          -

          - 地址:甘肃兰州东岗西路320号 中国科学院寒区旱区环境与工程研究所 遥感与地理信息科学研究室
          - 收件:“西部数据中心”服务组 (收)
          - - 邮编: 730000
          - 电话: 0931-4967287 (李红星)
          -
          -

          -
          - 数据申请流程 - - - - - - -
          -
          -

          - 联系我们:

          - -

          - 任何意见和建议请联系我们,westdc@lzb.ac.cn
          - 或者在线提交
          -

          -
          -
          diff --git a/application/default/views/scripts/water/satellite.phtml b/application/default/views/scripts/water/satellite.phtml deleted file mode 100644 index c2c11968..00000000 --- a/application/default/views/scripts/water/satellite.phtml +++ /dev/null @@ -1,33 +0,0 @@ -headTitle($this->config->title->site); -$this->headTitle($this->config->title->data); -$this->headTitle()->setSeparator(' - '); -$this->headLink()->appendStylesheet('/css/water.css'); -$this->breadcrumb('首页'); -$this->breadcrumb(''.$this->config->title->data.''); -$this->breadcrumb('黑河综合遥感联合试验'); -$this->breadcrumb('卫星遥感'); -$this->breadcrumb()->setSeparator(' > '); -?> -
          -
          - partial('water/navi.phtml'); ?> -
          -
          -
          -

          卫星遥感是”黑河综合遥感联合试验“的重要组成部分,在试验期通过免费获取、共享计划和商业购买等多种渠道,获取了可见光/近红外、热红外、主被动微波、激光雷达等丰富的卫星数据。

          -

          大量卫星遥感数据从EAS,JAXA等机构免费获取,EnviSat数据通过中欧龙计划2期项目获得;JAXA ALOS数据通过Takeo Tadono博士,叶庆华博士和施建成研究员获取(中国科学院青藏所与JAXA合作项目)。

          -
          -
          - metadata) : ?> - page->getNavigation(); ?> -
          -
            - metadata as $md) : ?> -
          1. - -
          -
          - -
          -
          \ No newline at end of file diff --git a/application/default/views/scripts/water/search.phtml b/application/default/views/scripts/water/search.phtml deleted file mode 100755 index 78dd9059..00000000 --- a/application/default/views/scripts/water/search.phtml +++ /dev/null @@ -1,57 +0,0 @@ -headTitle($this->config->title->site); -$this->headTitle($this->config->title->data); - -$this->headTitle('快速搜索'); -if (!empty($this->codename)) $this->headTitle($this->codename); -$this->headTitle()->setSeparator(' - '); -$this->headLink()->appendStylesheet('/css/water.css'); -$this->breadcrumb('首页'); -$this->breadcrumb(''.$this->config->title->data.''); -$this->breadcrumb('黑河综合遥感联合试验'); -$this->breadcrumb('快速搜索'); -$this->breadcrumb()->setSeparator(' > '); -?> -
          - - -
          -metadata)) : ?> -page->getNavigation(); -foreach($this->metadata as $md) : ?> -
          - - - -
          -

          escape($md['title']);?>

          -
          ',mb_strlen($md['description'])>400?$this->escape(mb_substr($md['description'],0,400,'UTF-8').'...'):$this->escape($md['description']));?>
          -
          -
          - -
          -page->getNavigation(); -else : -?> -
          -
          -您的搜索结果为空,请尝试缩小关键词进行查询。 -
          - \ No newline at end of file diff --git a/application/default/views/scripts/water/series.phtml b/application/default/views/scripts/water/series.phtml deleted file mode 100755 index ce7f092c..00000000 --- a/application/default/views/scripts/water/series.phtml +++ /dev/null @@ -1,49 +0,0 @@ -headTitle($this->config->title->site); -$this->headTitle($this->config->title->data); -$this->headTitle('数据集序列'); -$this->headTitle($this->codename); -$this->headTitle()->setSeparator(' - '); -$this->headLink()->appendStylesheet('/css/metadata.css'); -$this->breadcrumb('首页'); -$this->breadcrumb(''.$this->config->title->data.''); -$this->breadcrumb('数据集浏览'); -if (!empty($this->codename)) $this->breadcrumb($this->codename); -$this->breadcrumb()->setSeparator(' > '); -?> -
          -partial('data/tools.phtml'); ?> -
          -
          -
          数据集序列 -
            -serie as $cg) : ?> -
          • '>()
          • - -
          -showtools) : ?> -
          本序列中常用地点关键词 -
            -places as $place) : ?> -
          • '>()
          • - -
          -
          - -
          -metadata)) : ?> -
          -

          当前浏览数据集序列:codename; ?>

          -showtools) echo $this->form; ?> -page->getNavigation(); ?> -metadata as $md) : ?> -
          -
          -
          -

          escape($md['title']);?> -

          - 400?$this->escape(mb_substr($md['description'],0,400,'UTF-8').'...'):$this->escape($md['description']);?> -
          -page->getNavigation(); ?> -
          - \ No newline at end of file diff --git a/application/default/views/scripts/water/service.phtml b/application/default/views/scripts/water/service.phtml deleted file mode 100755 index fc9b3f54..00000000 --- a/application/default/views/scripts/water/service.phtml +++ /dev/null @@ -1,31 +0,0 @@ -headTitle($this->config->title->site); - $this->headTitle($this->config->title->data); - $this->headTitle('用户服务'); -$this->headTitle()->setSeparator(' - '); -$this->headLink()->appendStylesheet('/css/service.css'); -$this->breadcrumb('首页'); -$this->breadcrumb("".$this->config->title->data.""); -$this->breadcrumb('用户服务'); -$this->breadcrumb()->setSeparator(' > '); -?> -

          离线数据服务

          - 主要包括网络传输和免费光盘邮寄。网络传输以电子邮件和ftp传输为主要形式,ftp提供72小时存储服务,过期数据自动删除。在数据量过大或不具备网络传输条件的情况下,则提供免费数据光盘邮寄服务。在国家数据共享政策允许范围内,用户按照离线数据申请程序,签署《中国西部环境与生态科学数据中心数据共享协议》之后即可获得离线数据服务。将有专职人员负责受理用户的数据申请,包括准备数据、建立ftp下载链接及后续的服务工作等。但由于基础地理数据、DEM数据、等高线数据、野外实际观测数据(包括气象观测站、水文数据和某些项目提供的野外观测数据)这四类数据属于国家部分保密数据和部分项目提供时要求签字的数据,故包含有上述四类数据的申请协议,申请者需请导师或项目负责人签字后再邮寄打印协议到西部数据中心。对于国家数据共享政策允许范围外的数据(包括密级较高的数据和没有得到数据生产单位授权的数据)数据中心则无法提供。用户在使用数据过程中须严格遵守在线使用条款和免责声明。 -

          自数据服务工作实施以来,得到了广大用户的热情垂询和使用。截止2007年9月,已向80余家科研单位的科研人员提供离线数据服务达200多人次,离线申请数据量现已超过1Tb。网站在线下载数据量达20 GB。查看离线数据服务纪录

          -
          -

          数据共享上门服务

          - - 主要针对西部计划项目进行上门服务,一方面提供数据中心已有共享数据,一方面了解数据需求以及各项目组对数据中心数据服务的意见、建议和要求等,广泛交流总结经验,不断完善数据共享体制。今后,数据共享上门服务将有计划的持续进行。 -

          截至2006年10月,数据服务小组共走访了14个城市,39家单位,58个西部计划项目,为西部计划项目免费提供了目前西部数据中心所拥有的共享数据,并广泛征集各项目组对西部数据中心数据服务的意见、建议和要求等,为提高数据服务工作质量奠定了良好的基础。

          -
          -

          在线数据服务

          - 目前,数据中心门户网站提供了丰富的数据信息,而且大部分数据可以登录后在线下载。数据服务小组有专人负责维护网络链接的有效性和在线反馈意见的处理,保证数据在线下载顺利畅通,同时,不断完善、补充元数据,最大程度提高数据的利用率。今后,随着网站以及数据共享政策和体制的健全,数据服务将进一步在线化。 -
          -

          完善和收集共享数据

          - 主要是完善现已提交共享的数据,查找数据中可能存在的错误,整理部分共享数据的文档,收集网络上尤其是国外网站上发布的相关的共享影像和气象水文数据。 - 如果您想提交您的数据,请查看如何提交您的数据。 -
          - -

          数据中心间的协调与共享

          - 通过WEBSERVICES、RSS、GEOJSON等多种形式,在多个数据中心之间提供基于数据服务的共享。 -
          \ No newline at end of file diff --git a/application/default/views/scripts/water/submit.phtml b/application/default/views/scripts/water/submit.phtml deleted file mode 100755 index 27100e25..00000000 --- a/application/default/views/scripts/water/submit.phtml +++ /dev/null @@ -1,33 +0,0 @@ -headTitle($this->config->title->site); - $this->headTitle($this->config->title->data); - $this->headTitle('如何提交数据'); -$this->headTitle()->setSeparator(' - '); -//$this->headLink()->appendStylesheet('/css/terms.css'); -$this->breadcrumb('首页'); -$this->breadcrumb("".$this->config->title->data.""); -$this->breadcrumb('如何提交数据'); -$this->breadcrumb()->setSeparator(' > '); -?> -

          准备数据

          - 在提交数据之前,您需要首先整理数据,制作相应的数据文档。西部数据中心对数据格式没有要求,但如果是自定义的数据格式,请务必要在数据文档中说明各字段含义及数据使用方式。在撰写数据文档说明中请明确阐述数据背景、生产过程、质量控制、内容、引用等信息,详细请参考我们附件的样例文档。数据汇总后我们会加以整理,并在提交的数据文档基础上进行必要的整理和扩充。 - -

          提交数据

          - 提交数据有多种方式,若您有任何不清楚,请务必联系我们。 -

          FTP传输方式

          - - 这是我们推荐给您的首选方式,优点是支持大文件传输,速度快。您可以使用FTP客户端工具上传数据到我们的文件服务器。 - FTP地址: ftp://ftp.westgis.ac.cn 用户名:upload 密码:upload (注:此链接只用于数据上传,无法进行下载、删除等操作) - 请在上传结束后,发送一封电子邮件给西部数据中心,以便我们尽快地发布您的数据。 -

          电子邮件传输方式

          - 若您的数据量(小于5Mb)不大,也可以采用电子邮件方式发送给我们。我们的邮件地址是:westdc@lzb.ac.cn。 -

          传统邮寄方式

          - 您也可以通过传统的邮递方式发送给我们,我们的联系地址是: - 地址:甘肃兰州东岗西路320号 中国科学院寒区旱区环境与工程研究所 遥感与地理信息研究室
          - - 收件:“西部数据中心”服务组 (收)
          - 邮编: 730000
          - 电话: 0931-4967287 (李红星)
          -

          发布数据

          -我们在接收到您的数据后,将尽快根据您的数据文档制作元数据,发布到西部数据中心网站上。而在发布之前,我们将把其发送给您检查错误。 -请您在提交数据的同时确定项目数据的共享程度,包括共享开始时间、共享人员范围和共享方式(在线下载或离线申请两种,在线下载只需要用户在西部数据中心网站注册登陆即可,离线申请需要用户签署数据共享协议),如果没有专门指定,我们将按照数据中心数据共享有关规范进行共享。 \ No newline at end of file diff --git a/application/default/views/scripts/water/surveystd.phtml b/application/default/views/scripts/water/surveystd.phtml deleted file mode 100644 index 458cd86e..00000000 --- a/application/default/views/scripts/water/surveystd.phtml +++ /dev/null @@ -1,50 +0,0 @@ -headTitle($this->config->title->site); -$this->headTitle($this->config->title->data); -$this->headTitle()->setSeparator(' - '); -$this->headLink()->appendStylesheet('/css/water.css'); -$this->breadcrumb('首页'); -$this->breadcrumb(''.$this->config->title->data.''); -$this->breadcrumb('黑河综合遥感联合试验'); -$this->breadcrumb('试验文档'); -$this->breadcrumb('测量规范'); -$this->breadcrumb()->setSeparator(' > '); -?> -
          -
          - partial('water/navi.phtml'); ?> -
          - \ No newline at end of file diff --git a/application/default/views/scripts/water/tag.phtml b/application/default/views/scripts/water/tag.phtml deleted file mode 100755 index 8c026da6..00000000 --- a/application/default/views/scripts/water/tag.phtml +++ /dev/null @@ -1,65 +0,0 @@ -headTitle($this->config->title->site); -$this->headTitle($this->config->title->data); -if (!empty($this->codename)) $this->headTitle($this->codename); -$this->headTitle()->setSeparator(' - '); -$this->headLink()->appendStylesheet('/css/water.css'); -$this->breadcrumb('首页'); -$this->breadcrumb(''.$this->config->title->data.''); -$this->breadcrumb('黑河综合遥感联合试验'); -$this->breadcrumb('关键词导航'.(($this->codename)?':'.$this->codename:'')); -$this->breadcrumb()->setSeparator(' > '); -?> -
          -
          - partial('water/navi.phtml'); ?> -
          -
          -
          -
          - -
          -
          -metadata)) : ?> -

          当前浏览:codename; ?>

          -page->getNavigation(); ?> -metadata as $md) : ?> -
          - - - -
          -

          escape($md['title']);?>

          -
          ',mb_strlen($md['description'])>400?$this->escape(mb_substr($md['description'],0,400,'UTF-8').'...'):$this->escape($md['description']));?>
          -
          -
          - - -page->getNavigation(); ?> -
          - - -
          - -
          \ No newline at end of file diff --git a/application/default/views/scripts/water/timeline.phtml b/application/default/views/scripts/water/timeline.phtml deleted file mode 100755 index d2548091..00000000 --- a/application/default/views/scripts/water/timeline.phtml +++ /dev/null @@ -1,16 +0,0 @@ -headTitle($this->config->title->site); -$this->headTitle($this->config->title->data); -$this->headTitle('时间轴导航'); -$this->headTitle()->setSeparator(' - '); -$this->headLink()->appendStylesheet('/css/water.css'); -$this->breadcrumb('首页'); -$this->breadcrumb(''.$this->config->title->data.''); -$this->breadcrumb('黑河综合遥感联合试验'); -$this->breadcrumb('时间轴导航'); -$this->breadcrumb()->setSeparator(' > '); -$this->headScript()->appendFile('/js/timeline_var.js'); -$this->headScript()->appendFile('/js/timeline_js/timeline-api.js'); -$this->headScript()->appendFile('/js/watertime.js'); -?> -
          \ No newline at end of file diff --git a/application/default/views/scripts/water/timemap.phtml b/application/default/views/scripts/water/timemap.phtml deleted file mode 100644 index f0c95917..00000000 --- a/application/default/views/scripts/water/timemap.phtml +++ /dev/null @@ -1,106 +0,0 @@ -headTitle($this->config->title->site); -$this->headTitle($this->config->title->data); -$this->headTitle('时空导航'); -$this->headTitle()->setSeparator(' - '); -$this->breadcrumb('首页'); -$this->breadcrumb(''.$this->config->title->data.''); -$this->breadcrumb('黑河综合遥感联合试验'); -$this->breadcrumb('时空联合导航'); -$this->breadcrumb()->setSeparator(' > '); -$this->theme->AppendPlus($this,'google_map_v3'); -$this->theme->AppendPlus($this,'colorbox'); -$this->headScript()->appendFile('/js/timeline_var.js'); -$this->headScript()->appendFile('/js/timeline_js/timeline-api.js'); -$this->headScript()->appendFile('/js/timemap.2.0.1/lib/mxn/mxn.js?(googlev3)'); -$this->headScript()->appendFile('/js/timemap.2.0.1/timemap.pack.js'); -?> - -
          -
          -
          - -
          - - \ No newline at end of file diff --git a/application/default/views/scripts/water/tools.phtml b/application/default/views/scripts/water/tools.phtml deleted file mode 100755 index fb7dd85d..00000000 --- a/application/default/views/scripts/water/tools.phtml +++ /dev/null @@ -1,11 +0,0 @@ - \ No newline at end of file diff --git a/application/default/views/scripts/water/view.phtml b/application/default/views/scripts/water/view.phtml deleted file mode 100755 index e17dd3e4..00000000 --- a/application/default/views/scripts/water/view.phtml +++ /dev/null @@ -1,534 +0,0 @@ -headTitle($this->config->title->site); - $this->headTitle($this->config->title->data); - $this->headTitle($this->metadata->title); - $this->headTitle()->setSeparator(' - '); - $this->breadcrumb('首页'); - $this->breadcrumb(''.$this->config->title->data.''); - $this->breadcrumb('黑河综合遥感联合试验'); - $this->breadcrumb('查看试验元数据'); - $this->breadcrumb()->setSeparator(' > '); - $this->theme->AppendPlus($this,'google_map_v3'); - $this->theme->AppendPlus($this,'colorbox'); - $this->nav[] = array('link'=>"/water",'title'=>'黑河综合遥感联合试验'); - if(!empty($this->dataService)) { - $this->theme->AppendModel($this,"dataservice"); - } -?> - - render('breadcrumbs.phtml'); ?> -metadata;if ($md):?> -

          escape($md->title); - if ($md->title_en) echo '
          '.$this->escape($md->title_en);?> -

          -
          -
          -
          -
          - -

          -

          ',$md->description);?> -

          -
          -
          - citation) : ?> -
          -

          本数据引用方式数据引用帮助

          -

          datadoi) || !strpos($md->citation,$md->datadoi)) : ?>文章的引用 - escape($md->citation);?>

          - datadoi) && !strpos($md->citation,$md->datadoi)) : ?> -

          数据的引用 - authors,1,-1).'. '.$md->title.'. '.$md->publisher.', '.$md->publish_year.'. doi:'.$md->doi; - echo ' ['.substr($md->author_en,1,-1).'. '.$md->title_en.'. '.$md->publisher_en.', '.(empty($md->ts_published)?$md->publish_year:date('Y',strtotime($md->ts_published))).'. doi:'.$md->doi.']'; - ?> (下载引用:RIS格式 | RIS英文格式 | Bibtex格式 | Bibtex英文格式)

          - ref) : ?> -
          -

          相关文献(作者推荐)

          -
            - ref as $ref) : - echo '
          1. '.$ref->reference; - echo '查看'; - if (empty($ref->link)) - { - if(!empty($ref->attid)) - echo '下载'; - }else{ - echo '下载'; - } - echo "
          2. "; - endforeach; - ?> -
          - themeref) :?> - -
          -

          专题文献

          -
            - themeref as $ref) : - echo '
          1. '.$ref->reference; - echo '查看'; - if (empty($ref->link)) - { - if(!empty($ref->attid)) - echo ' | 下载'; - }else{ - echo ' | 下载'; - } - echo "
          2. "; - endforeach; - ?> -
          - userref) : ?> -
          -

          数据施引文献

          -
            - userref as $ref) : - echo '
          1. '.$ref->reference; - echo '查看'; - if (empty($ref->link)) - { - if(!empty($ref->attid)) - echo '下载'; - }else{ - echo '下载'; - } - echo "
          2. "; - endforeach; - if (count($this->userref)==15) - { - echo '更多施引文献'; - } - ?> -
          - -
          -

          数据使用声明

          - uselimits) : - foreach($this->uselimits as $uselimit) : - echo '

          '.str_replace(array("\r\n", "\n", "\r"),'

          ',$this->escape($uselimit->uselimit)).'

          '; - endforeach; - ?> - -

          为尊重知识产权、保障数据作者的权益、扩展数据中心的服务、评估数据的应用潜力,请数据使用者在使用数据所产生的研究成果中(包括公开发表的论文、论著、数据产品和未公开发表的研究报告、数据产品等成果),明确注明数据来源和数据作者。对于转载(二次或多次发布)的数据,作者还须注明原始数据来源。

          -

          中文发表的成果参考以下规范注明: 数据来源于黑河计划数据管理中心、寒区旱区科学数据中心(http://westdc.westgis.ac.cn)

          -

          英文发表的成果依据以下规范注明: The data set is provided by Cold and Arid Regions Sciences Data Center at Lanzhou (http://westdc.westgis.ac.cn)

          -

          - - data_archives){ ?> -

          数据相关新闻

          -
            - data_archives as $v){?> -
          • - -
          -
          - - suppinfo || $this->fund) : ?> -

          资助项目

          - fund)) : ?> -
            - fund as $k=>$v) : ?> -
          • (项目编号:) [(No. )]
          • - -
          - suppinfo)) : ?> - '.str_replace(array("\r\n", "\n", "\r"),'

          ',$this->escape($md->suppinfo)).'

          ';?> - -
          - - resources) : ?> -

          相关资源

          - -
          - -
          -
          - keys as $cg){ - if($cg['keytype']=="theme") - $keywords[]=$cg['keyword']; - } - $ev = join(" ",$keywords); - ?> -
          - -
          - - -
          -
            -
            -
            - downhistory) : ?> -

            最近10条服务记录如下:

            -
              - downhistory as $v){ - echo '
            1. '.date("Y-m-d",strtotime($v->ts_created))." ".$v->unit." ".$v->realname; - if (!empty($v->offlineproject)) - echo ' 用途:'.$v->offlineproject; - elseif (!empty($v->onlineproject)) - echo ' 用途:'.$v->onlineproject; - echo '
            2. '; - } - ?> -
            - - 暂时没有服务记录,欢迎您下载使用! - -
            -
            - -
            -
            -
            -
            -
            - status>0 and $md->status<5) : ?> -

            此数据还在评审过程中,我们真切地邀请您参加此数据的评审,以便我们能尽快发布此数据!评审

            - -

            数据评论

            -
            -
            评论加载中
            -
            - hasIdentity()) - { - $user = $auth->getIdentity(); - $name = $user->realname; - $email = $user->email; - }else - { - $name = ""; - $email = ""; - } - ?> -
            -
            - -
            - -
            -
            -
            - -
            - -
            -
            -
            - -
            - e.g. http://westdc.westgis.ac.cn/ -
            -
            -
            - -
            - -
            -
            -
            - -
            - -
            -
            -
            -
            - - - 提交 -
            -
            -
            -
            - -
            -
            -
            -
            - - '学科','place'=>'地点','theme'=>'主题','temporal'=>'时间词','stratum'=>'地层'); -$kt=''; -$i=0; -foreach($this->keys as $cg) : - if ($kt==$cg['keytype']) : - $i+=1; - else : - if (!empty($kt)) echo ''; - $kt=$cg['keytype']; - $i=0; - endif; - if ($i==0) { - ?> - - doi) : ?> -
            • 数据DOI doi; ?>
            - -
            -
            -

            数据细节文件列表

            -
              - fileformat) : ?> -
            • 格式:fileformat; ?>
            • - -
            • 大小:filesize; ?>MB
            • - downloaded>9) :?> -
            • 下载:downloaded; ?>次
            • - -
            • 浏览:viewed; ?>次
            • - - timebegin)) : ?> -
            • 数据时间范围:timebegin));if (!empty($md->timeend)) echo " 至 ".date('Y-m-d',strtotime($md->timeend)); ?>
            • - - doc)) : ?> -
            • doc; - }?>">数据说明文档
            • - - attachments) : ?> -
            • 相关文档: - attachments as $k=>$a) : ?> - - - -
            • - -
            • 数据共享方式:datatype) print "离线"; else print "在线(可直接下载)";?>
            • -
            -
            - status>0 and $md->status<5) : ?> - 数据评审 - datatype) : ?> - - 在线下载 - - - dataService)) { ?> - theme->AppendPlus($this,'datepicker'); ?> - - - - - 放入数据篮 - - -
            - -
            -
            -

            空间位置

            -
            -
            -

            联系信息

            -
            -
              - '资源提供者','custodian'=>'维护者','owner'=>'拥有者','user'=>'用户','distributor'=>'数据服务联系人','originator'=>'创建者','pointOfContact'=>'联系人','principalInvestigator'=>'数据调查与处理者','processor'=>'处理者','publisher'=>'元数据发布者','author'=>'元数据作者'); - $r=''; - $i=0; - foreach($this->authors as $k=>$author) : - if ($author->role!=$r) - { - $r=$author->role; - $i=0; - if ($k>0) echo ''; - echo '
            • '.$party_zh[$author->role].':'; - } - if ($i>0) echo ','; - $i+=1; - if (!empty($author->email) && $r!='principalInvestigator') - echo ''; - echo ''; - if (!empty($author->individual)) - echo $author->individual; - else - echo $author->organisation; - echo ''; - if (!empty($author->email)) echo ''; - if ($k+1==count($this->authors)) echo '
            • '; - endforeach; - ?> -
            -
            -
              -
            • 元数据更新时间:ts_created)); ?>
            • -
            • 下载元数据: - Adobe PDF格式 - OpenOffice odt格式 - Word doc格式 - 查看XML源文件 -
            • - - version->c>0):?> -
            • 版本历史:version->c ?> 个
            • - -
            -
            -
            -
            分享到
            - -
            - - - - - - - - - -
            - -
            -
            - - - - -

            Cannot find the metadata.

            -

            没有找到对应的元数据。

            - - - \ No newline at end of file diff --git a/application/default/views/scripts/water/westee.phtml b/application/default/views/scripts/water/westee.phtml deleted file mode 100644 index f66250a6..00000000 --- a/application/default/views/scripts/water/westee.phtml +++ /dev/null @@ -1,34 +0,0 @@ -headTitle($this->config->title->site); - $this->headTitle($this->config->title->data); - $this->headTitle('中国西部环境与生态科学重大研究计划'); -$this->headTitle()->setSeparator(' - '); -$this->headLink()->appendStylesheet('/css/westee.css'); -$this->breadcrumb('首页'); -$this->breadcrumb(''.$this->config->title->data.''); -$this->breadcrumb('中国西部环境与生态科学重大研究计划'); -$this->breadcrumb()->setSeparator(' > '); -?> -
            -
            -
            ID
            -
            名称
            - -
            挂靠单位
            -
            执行时间
            -
            -westee as $md) : ?> -
            -
            -
            -
            - -
            -
            -westeemd as $eemd) : ?> - -
            提交数据:
            - - -
            - diff --git a/application/default/views/scripts/water/widas.phtml b/application/default/views/scripts/water/widas.phtml deleted file mode 100644 index 493da2f2..00000000 --- a/application/default/views/scripts/water/widas.phtml +++ /dev/null @@ -1,32 +0,0 @@ -headTitle($this->config->title->site); -$this->headTitle($this->config->title->data); -$this->headTitle()->setSeparator(' - '); -$this->headLink()->appendStylesheet('/css/water.css'); -$this->breadcrumb('首页'); -$this->breadcrumb(''.$this->config->title->data.''); -$this->breadcrumb('黑河综合遥感联合试验'); -$this->breadcrumb('激光雷达'); -$this->breadcrumb()->setSeparator(' > '); -?> -
            -
            - partial('water/navi.phtml'); ?> -
            -
            -
            - -
            -
            - metadata) : ?> - page->getNavigation(); ?> -
            -
              - metadata as $md) : ?> -
            1. - -
            -
            - -
            -
            \ No newline at end of file diff --git a/application/default/views/scripts/water/yk.phtml b/application/default/views/scripts/water/yk.phtml deleted file mode 100644 index 1a38d2c3..00000000 --- a/application/default/views/scripts/water/yk.phtml +++ /dev/null @@ -1,32 +0,0 @@ -headTitle($this->config->title->site); -$this->headTitle($this->config->title->data); -$this->headTitle()->setSeparator(' - '); -$this->headLink()->appendStylesheet('/css/water.css'); -$this->breadcrumb('首页'); -$this->breadcrumb(''.$this->config->title->data.''); -$this->breadcrumb('黑河综合遥感联合试验'); -$this->breadcrumb('盈科绿洲加密观测区'); -$this->breadcrumb()->setSeparator(' > '); -?> -
            -
            - partial('water/navi.phtml'); ?> -
            -
            -
            - -
            -
            - metadata) : ?> - page->getNavigation(); ?> -
            -
              - metadata as $md) : ?> -
            1. - -
            -
            - -
            -
            \ No newline at end of file diff --git a/application/default/views/scripts/water/zy.phtml b/application/default/views/scripts/water/zy.phtml deleted file mode 100644 index 41a0ddb8..00000000 --- a/application/default/views/scripts/water/zy.phtml +++ /dev/null @@ -1,32 +0,0 @@ -headTitle($this->config->title->site); -$this->headTitle($this->config->title->data); -$this->headTitle()->setSeparator(' - '); -$this->headLink()->appendStylesheet('/css/water.css'); -$this->breadcrumb('首页'); -$this->breadcrumb(''.$this->config->title->data.''); -$this->breadcrumb('黑河综合遥感联合试验'); -$this->breadcrumb('张掖市加密观测区'); -$this->breadcrumb()->setSeparator(' > '); -?> -
            -
            - partial('water/navi.phtml'); ?> -
            -
            -
            - -
            -
            - metadata) : ?> - page->getNavigation(); ?> -
            -
              - metadata as $md) : ?> -
            1. - -
            -
            - -
            -
            \ No newline at end of file diff --git a/application/default/views/scripts/water/zynoc.phtml b/application/default/views/scripts/water/zynoc.phtml deleted file mode 100644 index 626fadac..00000000 --- a/application/default/views/scripts/water/zynoc.phtml +++ /dev/null @@ -1,32 +0,0 @@ -headTitle($this->config->title->site); -$this->headTitle($this->config->title->data); -$this->headTitle()->setSeparator(' - '); -$this->headLink()->appendStylesheet('/css/water.css'); -$this->breadcrumb('首页'); -$this->breadcrumb(''.$this->config->title->data.''); -$this->breadcrumb('黑河综合遥感联合试验'); -$this->breadcrumb('观象台加密观测区'); -$this->breadcrumb()->setSeparator(' > '); -?> -
            -
            - partial('water/navi.phtml'); ?> -
            -
            -
            - -
            -
            - metadata) : ?> - page->getNavigation(); ?> -
            -
              - metadata as $md) : ?> -
            1. - -
            -
            - -
            -
            \ No newline at end of file diff --git a/application/default/views/scripts/yrnmr/base.phtml b/application/default/views/scripts/yrnmr/base.phtml deleted file mode 100644 index 1f07d708..00000000 --- a/application/default/views/scripts/yrnmr/base.phtml +++ /dev/null @@ -1,37 +0,0 @@ -headTitle($this->config->title->site); -$this->headTitle($this->config->title->data); -$this->headTitle()->setSeparator(' - '); -$this->headLink()->appendStylesheet('/css/water.css'); -$this->breadcrumb('首页'); -$this->breadcrumb(''.$this->config->title->data.''); -$this->breadcrumb(''.$this->config->title->yrnmr.''); -$this->breadcrumb('基础数据'); -$this->breadcrumb()->setSeparator(' > '); -?> -
            -
            - partial('yrnmr/navi.phtml'); ?> -
            -
            -
            -

            - 基础数据指为流域生态-水文研究提供各种自然、生态、水文、社会经济等本底信息的数据,同时还包括了主要的几次科学试验数据、模型数据集等。 -

            -

            - 基础数据主要包括了流域基础地理数据、流域各种专题数据、水文水资源数据、流域科学试验数据、航空遥感和卫星遥感数据、模型数据、社会经济数据等。 -

            -
            -
            - metadata) : ?> - page->getNavigation(); ?> -
            -
              - metadata as $md) : ?> -
            1. - -
            -
            - -
            -
            \ No newline at end of file diff --git a/application/default/views/scripts/yrnmr/browse.phtml b/application/default/views/scripts/yrnmr/browse.phtml deleted file mode 100755 index 2b12a188..00000000 --- a/application/default/views/scripts/yrnmr/browse.phtml +++ /dev/null @@ -1,30 +0,0 @@ -headTitle($this->config->title->site); - $this->headTitle($this->config->title->data); - $this->headTitle('全部浏览'); -$this->headTitle()->setSeparator(' - '); -$this->headLink()->appendStylesheet('/css/water.css'); -$this->breadcrumb('首页'); -$this->breadcrumb(''.$this->config->title->data.''); -$this->breadcrumb(''.$this->config->title->yrnmr.''); -$this->breadcrumb('浏览'); -$this->breadcrumb()->setSeparator(' > '); -?> -
            -
            - partial('yrnmr/navi.phtml'); ?> -
            -
            - page->getNavigation(); ?> -
            -
            -
              - metadata as $md) : ?> -
            1. - -
            -
            -
            - page->getNavigation(); ?> -
            -
            \ No newline at end of file diff --git a/application/default/views/scripts/yrnmr/category.phtml b/application/default/views/scripts/yrnmr/category.phtml deleted file mode 100755 index 65ca1f06..00000000 --- a/application/default/views/scripts/yrnmr/category.phtml +++ /dev/null @@ -1,43 +0,0 @@ -headTitle($this->config->title->site); - $this->headTitle($this->config->title->data); -$this->headTitle('分类浏览'); -if (!empty($this->codename)) $this->headTitle($this->codename); -$this->headTitle()->setSeparator(' - '); -$this->headLink()->appendStylesheet('/css/water.css'); -$this->breadcrumb('首页'); -$this->breadcrumb(''.$this->config->title->data.''); -$this->breadcrumb(''.$this->config->title->yrnmr.''); -$this->breadcrumb('分类浏览:'.$this->codename); -$this->breadcrumb()->setSeparator(' > '); -?> -
            -
            - partial('yrnmr/navi.phtml'); ?> -
            -
            - - - metadata)) : ?> -
            - page->getNavigation(); ?> -
            -
            -
              - metadata as $md) : ?> -
            1. - -
            -
            -
            - page->getNavigation(); ?> -
            - -
            -
            \ No newline at end of file diff --git a/application/default/views/scripts/yrnmr/core.phtml b/application/default/views/scripts/yrnmr/core.phtml deleted file mode 100644 index 9f4d2ac2..00000000 --- a/application/default/views/scripts/yrnmr/core.phtml +++ /dev/null @@ -1,32 +0,0 @@ -headTitle($this->config->title->site); -$this->headTitle($this->config->title->data); -$this->headTitle()->setSeparator(' - '); -$this->headLink()->appendStylesheet('/css/water.css'); -$this->breadcrumb('首页'); -$this->breadcrumb(''.$this->config->title->data.''); -$this->breadcrumb(''.$this->config->title->yrnmr.''); -$this->breadcrumb('核心数据'); -$this->breadcrumb()->setSeparator(' > '); -?> -
            -
            - partial('yrnmr/navi.phtml'); ?> -
            -
            -
            -

            核心数据指流域生态-水文模型、陆面过程模型、社会经济模型以及其他各类模型所需要的关键性的驱动和参数数据集以及验证、发展和改进模型所需的关键观测数据。

            -
            -
            - metadata) : ?> - page->getNavigation(); ?> -
            -
              - metadata as $md) : ?> -
            1. - -
            -
            - -
            -
            \ No newline at end of file diff --git a/application/default/views/scripts/yrnmr/dem.phtml b/application/default/views/scripts/yrnmr/dem.phtml deleted file mode 100644 index 2eef1024..00000000 --- a/application/default/views/scripts/yrnmr/dem.phtml +++ /dev/null @@ -1,33 +0,0 @@ -headTitle($this->config->title->site); -$this->headTitle($this->config->title->data); -$this->headTitle()->setSeparator(' - '); -$this->headLink()->appendStylesheet('/css/water.css'); -$this->breadcrumb('首页'); -$this->breadcrumb(''.$this->config->title->data.''); -$this->breadcrumb(''.$this->config->title->yrnmr.''); -$this->breadcrumb('DEM数据'); -$this->breadcrumb()->setSeparator(' > '); -?> -
            -
            - partial('yrnmr/navi.phtml'); ?> -
            -
            -
            -

            DEM是数字高程模型的英文简称(Digital Elevation Model),DEM是地貌形态信息的离散表示,这些信息包含流域网格单元的坡度、坡向以及单元格之间的关系等,是开展流域研究的重要原始资料。

            -

            数据包括黑河全流域范围各种不同分辨率的数字高程模型(DEM)(栅格大小为30m、90m、1000m和30sec)。

            -
            -
            - metadata) : ?> - page->getNavigation(); ?> -
            -
              - metadata as $md) : ?> -
            1. - -
            -
            - -
            -
            \ No newline at end of file diff --git a/application/default/views/scripts/yrnmr/document.phtml b/application/default/views/scripts/yrnmr/document.phtml deleted file mode 100644 index fc8509a3..00000000 --- a/application/default/views/scripts/yrnmr/document.phtml +++ /dev/null @@ -1,54 +0,0 @@ -headTitle($this->config->title->site); -$this->headTitle($this->config->title->data); -$this->headTitle()->setSeparator(' - '); -$this->headLink()->appendStylesheet('/css/water.css'); -$this->headScript()->appendFile('/js/jquery-1.7.min.js'); -$this->headScript()->appendFile('/js/jquery.colorbox-min.js'); -$this->headLink()->appendStylesheet('/css/colorbox.css'); -$this->breadcrumb('首页'); -$this->breadcrumb(''.$this->config->title->data.''); -$this->breadcrumb(''.$this->config->title->yrnmr.''); -$this->breadcrumb('数据文档'); -$this->breadcrumb()->setSeparator(' > '); -?> -
            -
            - partial('yrnmr/navi.phtml'); ?> -
            -
            -
            -
            -
            -

            数据相关文献

            - refs) : ?> - page->getNavigation(); ?> -
            -
              - refs as $md) : ?> -
            1. 下载'; - } - ?> - [相关数据] -
            2. - -
            -
            - -
            -
            - \ No newline at end of file diff --git a/application/default/views/scripts/yrnmr/economic.phtml b/application/default/views/scripts/yrnmr/economic.phtml deleted file mode 100644 index 09bce2e4..00000000 --- a/application/default/views/scripts/yrnmr/economic.phtml +++ /dev/null @@ -1,34 +0,0 @@ -headTitle($this->config->title->site); -$this->headTitle($this->config->title->data); -$this->headTitle()->setSeparator(' - '); -$this->headLink()->appendStylesheet('/css/water.css'); -$this->breadcrumb('首页'); -$this->breadcrumb(''.$this->config->title->data.''); -$this->breadcrumb(''.$this->config->title->yrnmr.''); -$this->breadcrumb('社会经济数据'); -$this->breadcrumb()->setSeparator(' > '); -?> -
            -
            - partial('yrnmr/navi.phtml'); ?> -
            -
            -
            -

            - 各类社会经济数据。 -

            -
            -
            - metadata) : ?> - page->getNavigation(); ?> -
            -
              - metadata as $md) : ?> -
            1. - -
            -
            - -
            -
            \ No newline at end of file diff --git a/application/default/views/scripts/yrnmr/exp.phtml b/application/default/views/scripts/yrnmr/exp.phtml deleted file mode 100644 index da26caba..00000000 --- a/application/default/views/scripts/yrnmr/exp.phtml +++ /dev/null @@ -1,34 +0,0 @@ -headTitle($this->config->title->site); -$this->headTitle($this->config->title->data); -$this->headTitle()->setSeparator(' - '); -$this->headLink()->appendStylesheet('/css/water.css'); -$this->breadcrumb('首页'); -$this->breadcrumb(''.$this->config->title->data.''); -$this->breadcrumb(''.$this->config->title->yrnmr.''); -$this->breadcrumb('观测试验数据'); -$this->breadcrumb()->setSeparator(' > '); -?> -
            -
            - partial('yrnmr/navi.phtml'); ?> -
            -
            -
            -

            - 实验数据 -

            -
            -
            - metadata) : ?> - page->getNavigation(); ?> -
            -
              - metadata as $md) : ?> -
            1. - -
            -
            - -
            -
            \ No newline at end of file diff --git a/application/default/views/scripts/yrnmr/geobase.phtml b/application/default/views/scripts/yrnmr/geobase.phtml deleted file mode 100644 index a39aee88..00000000 --- a/application/default/views/scripts/yrnmr/geobase.phtml +++ /dev/null @@ -1,31 +0,0 @@ -headTitle($this->config->title->site); -$this->headTitle($this->config->title->data); -$this->headTitle()->setSeparator(' - '); -$this->headLink()->appendStylesheet('/css/water.css'); -$this->breadcrumb('首页'); -$this->breadcrumb(''.$this->config->title->data.''); -$this->breadcrumb(''.$this->config->title->yrnmr.''); -$this->breadcrumb('基础地理数据'); -$this->breadcrumb()->setSeparator(' > '); -?> -
            -
            - partial('yrnmr/navi.phtml'); ?> -
            -
            -
            -
            -
            - metadata) : ?> - page->getNavigation(); ?> -
            -
              - metadata as $md) : ?> -
            1. - -
            -
            - -
            -
            \ No newline at end of file diff --git a/application/default/views/scripts/yrnmr/index.phtml b/application/default/views/scripts/yrnmr/index.phtml deleted file mode 100755 index a9d6c1e7..00000000 --- a/application/default/views/scripts/yrnmr/index.phtml +++ /dev/null @@ -1,57 +0,0 @@ -headTitle($this->config->title->site); -$this->headTitle($this->config->title->data); -$this->headTitle()->setSeparator(' - '); -$this->headLink()->appendStylesheet('/css/water.css'); -$this->breadcrumb('首页'); -$this->breadcrumb(''.$this->config->title->data.''); -$this->breadcrumb($this->config->title->yrnmr); -$this->breadcrumb()->setSeparator(' > '); -?> -
            -
            - partial('yrnmr/navi.phtml'); ?> -
            -
            -
            -

            黄河上游宁蒙河段数据简介

            -

            - 黄河上游宁蒙河段穿越腾格里沙漠、河东沙地、乌兰布和沙漠和库布齐沙漠,长约1000 km,形成典型的沙漠宽谷。该区是我国西北重要的能源基地、粮食产区、回蒙少数民族集居区,是黄河上游风沙水沙活动强烈、河道演变剧烈的关键河段,是黄河上游产水区与中下游河段水沙关系的调节河段,也是上游大型水库联合调度影响显著的河段。近50多年来,由于气候变化、沙漠化发展、水库调蓄、过度用水等,导致黄河水沙关系变异,河槽萎缩,洪凌灾害频发。该河段的水沙形势不仅关系到上游水资源的开发利用和重大水利工程布局,而且危及黄河下游河道安全。目前,在国家重点基础研究规划项目(973项目)“黄河上游沙漠宽谷段风沙水沙过程与调控机理”的支持下,项目组对黄河上游宁蒙河段开展了大量的观测与研究,积累了大量的数据,为该区域风沙、水沙与河道过程研究奠定了数据基础。根据项目需求,该项目第六课题“黄河上游沙漠宽谷段河道冲淤演变趋势预测与调控对策”,基于研究区已有的环境背景资料和本项目的观测实验等资料,构建了黄河上游宁蒙河段多元数据平台。 -

            -

            - 该数据平台包括属性数据集与空间数据集。其中属性数据集包括.dbf属性表、ASCII文本文件、mdb属性数据库、EXCEL文件等,空间数据集主要包括两种空间坐标系统:WGS84坐标系与ALBERS坐标系。其中WGS84坐标系采用原点是地球质心,椭球体为WGS84椭球体,主要考虑到许多来自GPS野外定位测量的数据和国际组织机构发布的空间数据使用这一坐标系;ALBERS坐标系采用Krasovsky椭球体,两根标准纬线分别为北纬25度和北纬47度,中央经线采用东经105度,该坐标系主要在小比例尺而且要求保持等面积特性的数据情况下使用,如小于1:100万比例尺的数据,同时该投影与我国小比例尺专题图的投影是吻合的,有助于和这些数据的配准。 -

            -
            -
            -

            已整理数据展示

            -
              - meatdata as $md) : ?> -
            • - - Data Thumbnail - -
            • - -
            - -
            -
            -
            - \ No newline at end of file diff --git a/application/default/views/scripts/yrnmr/landsurface.phtml b/application/default/views/scripts/yrnmr/landsurface.phtml deleted file mode 100644 index dae8b68a..00000000 --- a/application/default/views/scripts/yrnmr/landsurface.phtml +++ /dev/null @@ -1,32 +0,0 @@ -headTitle($this->config->title->site); -$this->headTitle($this->config->title->data); -$this->headTitle()->setSeparator(' - '); -$this->headLink()->appendStylesheet('/css/water.css'); -$this->breadcrumb('首页'); -$this->breadcrumb(''.$this->config->title->data.''); -$this->breadcrumb(''.$this->config->title->yrnmr.''); -$this->breadcrumb('陆地表层数据'); -$this->breadcrumb()->setSeparator(' > '); -?> -
            -
            - partial('yrnmr/navi.phtml'); ?> -
            -
            -
            -

            陆地表层数据包括冰川、沙漠、草场、植被、地貌等数据。

            -
            -
            - metadata) : ?> - page->getNavigation(); ?> -
            -
              - metadata as $md) : ?> -
            1. - -
            -
            - -
            -
            \ No newline at end of file diff --git a/application/default/views/scripts/yrnmr/landuse.phtml b/application/default/views/scripts/yrnmr/landuse.phtml deleted file mode 100644 index c22cbe4f..00000000 --- a/application/default/views/scripts/yrnmr/landuse.phtml +++ /dev/null @@ -1,32 +0,0 @@ -headTitle($this->config->title->site); -$this->headTitle($this->config->title->data); -$this->headTitle()->setSeparator(' - '); -$this->headLink()->appendStylesheet('/css/water.css'); -$this->breadcrumb('首页'); -$this->breadcrumb(''.$this->config->title->data.''); -$this->breadcrumb(''.$this->config->title->yrnmr.''); -$this->breadcrumb('土地利用数据'); -$this->breadcrumb()->setSeparator(' > '); -?> -
            -
            - partial('yrnmr/navi.phtml'); ?> -
            -
            -
            -

            1:10万土地利用数据

            -
            -
            - metadata) : ?> - page->getNavigation(); ?> -
            -
              - metadata as $md) : ?> -
            1. - -
            -
            - -
            -
            \ No newline at end of file diff --git a/application/default/views/scripts/yrnmr/list.phtml b/application/default/views/scripts/yrnmr/list.phtml deleted file mode 100644 index 2dcfeacf..00000000 --- a/application/default/views/scripts/yrnmr/list.phtml +++ /dev/null @@ -1,40 +0,0 @@ -headTitle($this->config->title->site); -$this->headTitle($this->config->title->data); -$this->headTitle()->setSeparator(' - '); -$this->headLink()->appendStylesheet('/css/water.css'); -$this->breadcrumb('首页'); -$this->breadcrumb(''.$this->config->title->data.''); -$this->breadcrumb(''.$this->config->title->yrnmr.''); -$this->breadcrumb('数据列表'); -$this->breadcrumb()->setSeparator(' > '); -$this->headScript()->appendFile('/js/jquery-1.7.min.js'); -$this->headScript()->appendFile('/js/jquery.colorbox-min.js'); -$this->headLink()->appendStylesheet('/css/colorbox.css'); -?> -
            -
            - partial('yrnmr/navi.phtml'); ?> -
            -
            -
            -
            - metadata) : ?> -
            -
              - metadata as $md) : ?> -
            1. - [缩略图幻灯片缩略图幻灯片] - [Adobe PDF格式PDF版本下载] - [OpenOffice odt格式ODT版本下载] - [MS Word doc格式DOC版本下载] -
            2. - -
            -
            - -
            -
            - \ No newline at end of file diff --git a/application/default/views/scripts/yrnmr/meteo.phtml b/application/default/views/scripts/yrnmr/meteo.phtml deleted file mode 100644 index 154f2b11..00000000 --- a/application/default/views/scripts/yrnmr/meteo.phtml +++ /dev/null @@ -1,34 +0,0 @@ -headTitle($this->config->title->site); -$this->headTitle($this->config->title->data); -$this->headTitle()->setSeparator(' - '); -$this->headLink()->appendStylesheet('/css/water.css'); -$this->breadcrumb('首页'); -$this->breadcrumb(''.$this->config->title->data.''); -$this->breadcrumb(''.$this->config->title->yrnmr.''); -$this->breadcrumb('气象观测数据'); -$this->breadcrumb()->setSeparator(' > '); -?> -
            -
            - partial('yrnmr/navi.phtml'); ?> -
            -
            -
            -

            - 观测要素包括日平均气压、最高气压、最低气压、平均气温、最高气温、最低气温、平均相对湿度、最小相对湿度、平均风速、最大风速及风向、极大风速及风向、日照时数、降水量。 -

            -
            -
            - metadata) : ?> - page->getNavigation(); ?> -
            -
              - metadata as $md) : ?> -
            1. - -
            -
            - -
            -
            \ No newline at end of file diff --git a/application/default/views/scripts/yrnmr/model.phtml b/application/default/views/scripts/yrnmr/model.phtml deleted file mode 100644 index 2f393a7f..00000000 --- a/application/default/views/scripts/yrnmr/model.phtml +++ /dev/null @@ -1,34 +0,0 @@ -headTitle($this->config->title->site); -$this->headTitle($this->config->title->data); -$this->headTitle()->setSeparator(' - '); -$this->headLink()->appendStylesheet('/css/water.css'); -$this->breadcrumb('首页'); -$this->breadcrumb(''.$this->config->title->data.''); -$this->breadcrumb(''.$this->config->title->yrnmr.''); -$this->breadcrumb('模型数据'); -$this->breadcrumb()->setSeparator(' > '); -?> -
            -
            - partial('yrnmr/navi.phtml'); ?> -
            -
            -
            -

            - 模型数据 -

            -
            -
            - metadata) : ?> - page->getNavigation(); ?> -
            -
              - metadata as $md) : ?> -
            1. - -
            -
            - -
            -
            \ No newline at end of file diff --git a/application/default/views/scripts/yrnmr/navi.phtml b/application/default/views/scripts/yrnmr/navi.phtml deleted file mode 100644 index 7d0a2883..00000000 --- a/application/default/views/scripts/yrnmr/navi.phtml +++ /dev/null @@ -1,49 +0,0 @@ - - - - \ No newline at end of file diff --git a/application/default/views/scripts/yrnmr/obs.phtml b/application/default/views/scripts/yrnmr/obs.phtml deleted file mode 100644 index 5658faea..00000000 --- a/application/default/views/scripts/yrnmr/obs.phtml +++ /dev/null @@ -1,34 +0,0 @@ -headTitle($this->config->title->site); -$this->headTitle($this->config->title->data); -$this->headTitle()->setSeparator(' - '); -$this->headLink()->appendStylesheet('/css/water.css'); -$this->breadcrumb('首页'); -$this->breadcrumb(''.$this->config->title->data.''); -$this->breadcrumb(''.$this->config->title->yrnmr.''); -$this->breadcrumb('观测数据'); -$this->breadcrumb()->setSeparator(' > '); -?> -
            -
            - partial('yrnmr/navi.phtml'); ?> -
            -
            -
            -

            - 观测数据 -

            -
            -
            - metadata) : ?> - page->getNavigation(); ?> -
            -
              - metadata as $md) : ?> -
            1. - -
            -
            - -
            -
            \ No newline at end of file diff --git a/application/default/views/scripts/yrnmr/rs.phtml b/application/default/views/scripts/yrnmr/rs.phtml deleted file mode 100644 index 68223ff0..00000000 --- a/application/default/views/scripts/yrnmr/rs.phtml +++ /dev/null @@ -1,31 +0,0 @@ -headTitle($this->config->title->site); -$this->headTitle($this->config->title->data); -$this->headTitle()->setSeparator(' - '); -$this->headLink()->appendStylesheet('/css/water.css'); -$this->breadcrumb('首页'); -$this->breadcrumb(''.$this->config->title->data.''); -$this->breadcrumb(''.$this->config->title->yrnmr.''); -$this->breadcrumb('遥感数据'); -$this->breadcrumb()->setSeparator(' > '); -?> -
            -
            - partial('yrnmr/navi.phtml'); ?> -
            -
            -
            -
            -
            - metadata) : ?> - page->getNavigation(); ?> -
            -
              - metadata as $md) : ?> -
            1. - -
            -
            - -
            -
            \ No newline at end of file diff --git a/application/default/views/scripts/yrnmr/search.phtml b/application/default/views/scripts/yrnmr/search.phtml deleted file mode 100644 index 420f51e6..00000000 --- a/application/default/views/scripts/yrnmr/search.phtml +++ /dev/null @@ -1,39 +0,0 @@ -headTitle($this->config->title->site); -$this->headTitle($this->config->title->data); - -$this->headTitle('快速搜索'); -if (!empty($this->codename)) $this->headTitle($this->codename); -$this->headTitle()->setSeparator(' - '); -$this->headLink()->appendStylesheet('/css/water.css'); -$this->breadcrumb('首页'); -$this->breadcrumb(''.$this->config->title->data.''); -$this->breadcrumb(''.$this->config->title->yrnmr.''); -$this->breadcrumb('快速搜索'); -$this->breadcrumb()->setSeparator(' > '); -?> - - - - - -

            Cannot find the metadata.

            -

            没有找到对应的元数据。

            - - - \ No newline at end of file diff --git a/application/default/views/scripts/yrnmr/water.phtml b/application/default/views/scripts/yrnmr/water.phtml deleted file mode 100644 index 88b9a3ec..00000000 --- a/application/default/views/scripts/yrnmr/water.phtml +++ /dev/null @@ -1,34 +0,0 @@ -headTitle($this->config->title->site); -$this->headTitle($this->config->title->data); -$this->headTitle()->setSeparator(' - '); -$this->headLink()->appendStylesheet('/css/water.css'); -$this->breadcrumb('首页'); -$this->breadcrumb(''.$this->config->title->data.''); -$this->breadcrumb(''.$this->config->title->yrnmr.''); -$this->breadcrumb('水文水资源数据'); -$this->breadcrumb()->setSeparator(' > '); -?> -
            -
            - partial('yrnmr/navi.phtml'); ?> -
            -
            -
            -

            - 水资源 -

            -
            -
            - metadata) : ?> - page->getNavigation(); ?> -
            -
              - metadata as $md) : ?> -
            1. - -
            -
            - -
            -
            \ No newline at end of file diff --git a/application/default/views/scripts/yrnmr_header.phtml b/application/default/views/scripts/yrnmr_header.phtml deleted file mode 100644 index 264c65b9..00000000 --- a/application/default/views/scripts/yrnmr_header.phtml +++ /dev/null @@ -1,34 +0,0 @@ -
            - - -