translation
This commit is contained in:
parent
c1928b5c24
commit
d678da5dfd
|
@ -5,7 +5,7 @@ class AboutController extends Zend_Controller_Action
|
||||||
function indexAction()
|
function indexAction()
|
||||||
{
|
{
|
||||||
$archives=new Archive($this->db);
|
$archives=new Archive($this->db);
|
||||||
$this->view->item=$archives->getOneArchive('中心简介','about');
|
$this->view->item=$archives->getOneArchive('Mission & Goals','about');
|
||||||
}
|
}
|
||||||
function preDispatch()
|
function preDispatch()
|
||||||
{
|
{
|
||||||
|
@ -31,7 +31,7 @@ class AboutController extends Zend_Controller_Action
|
||||||
$mail->setSubject($formData['subject']);
|
$mail->setSubject($formData['subject']);
|
||||||
$mail->addTo($this->view->config->supportemail);
|
$mail->addTo($this->view->config->supportemail);
|
||||||
$mail->send();
|
$mail->send();
|
||||||
$this->messenger->addMessage('发送成功!');
|
$this->messenger->addMessage('Send Successful!');
|
||||||
$this->_redirect('/about/contact');
|
$this->_redirect('/about/contact');
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
@ -47,12 +47,12 @@ class AboutController extends Zend_Controller_Action
|
||||||
function termsAction()
|
function termsAction()
|
||||||
{
|
{
|
||||||
$archives=new Archive($this->db);
|
$archives=new Archive($this->db);
|
||||||
$this->view->item=$archives->getOneArchive('使用条款','about');
|
$this->view->item=$archives->getOneArchive('Terms','about');
|
||||||
}
|
}
|
||||||
function backgroundAction()
|
function backgroundAction()
|
||||||
{
|
{
|
||||||
$archives=new Archive($this->db);
|
$archives=new Archive($this->db);
|
||||||
$this->view->item=$archives->getOneArchive('发展历史','about');
|
$this->view->item=$archives->getOneArchive('CARD History','about');
|
||||||
}
|
}
|
||||||
function legalAction()
|
function legalAction()
|
||||||
{
|
{
|
||||||
|
@ -62,12 +62,12 @@ class AboutController extends Zend_Controller_Action
|
||||||
function supportusAction()
|
function supportusAction()
|
||||||
{
|
{
|
||||||
$archives=new Archive($this->db);
|
$archives=new Archive($this->db);
|
||||||
$this->view->item=$archives->getOneArchive('支持我们','about');
|
$this->view->item=$archives->getOneArchive('Support Us','about');
|
||||||
}
|
}
|
||||||
function copyrightAction()
|
function copyrightAction()
|
||||||
{
|
{
|
||||||
$archives=new Archive($this->db);
|
$archives=new Archive($this->db);
|
||||||
$this->view->item=$archives->getOneArchive('数据与版权','about');
|
$this->view->item=$archives->getOneArchive('Use & Copyrights','about');
|
||||||
}
|
}
|
||||||
function linkAction()
|
function linkAction()
|
||||||
{
|
{
|
||||||
|
@ -82,7 +82,7 @@ class AboutController extends Zend_Controller_Action
|
||||||
function sponsorsAction()
|
function sponsorsAction()
|
||||||
{
|
{
|
||||||
$archives=new Archive($this->db);
|
$archives=new Archive($this->db);
|
||||||
$this->view->item=$archives->getOneArchive('支持项目','about');
|
$this->view->item=$archives->getOneArchive('Sponsors','about');
|
||||||
}
|
}
|
||||||
function publicationAction()
|
function publicationAction()
|
||||||
{
|
{
|
||||||
|
|
|
@ -37,7 +37,7 @@ class ArchivesController extends Zend_Controller_Action
|
||||||
|
|
||||||
$time = date("Y-m-d H:i:s",time());
|
$time = date("Y-m-d H:i:s",time());
|
||||||
|
|
||||||
$sql = "SELECT id,title,code,ptype FROM ".$News->tbl_categorys." where ptype='news'";
|
$sql = "SELECT id,title_en,code,ptype FROM ".$News->tbl_categorys." where ptype='news'";
|
||||||
$sth = $this->db->query($sql);
|
$sth = $this->db->query($sql);
|
||||||
$rows = $sth->fetchAll();
|
$rows = $sth->fetchAll();
|
||||||
|
|
||||||
|
@ -48,7 +48,7 @@ class ArchivesController extends Zend_Controller_Action
|
||||||
$sql = "SELECT n.*,c.title as typetitle,c.code FROM ".$News->tbl_archives." n
|
$sql = "SELECT n.*,c.title as typetitle,c.code FROM ".$News->tbl_archives." n
|
||||||
left join ".$News->tbl_catalog." ct on ct.aid=n.id
|
left join ".$News->tbl_catalog." ct on ct.aid=n.id
|
||||||
left join ".$News->tbl_categorys." c on c.id = ct.cid
|
left join ".$News->tbl_categorys." c on c.id = ct.cid
|
||||||
WHERE n.ts_published<'$time' AND ct.cid={$v['id']} AND n.is_pub=true
|
WHERE n.language='en' and n.ts_published<'$time' AND ct.cid={$v['id']} AND n.is_pub=true
|
||||||
ORDER BY ts_published DESC
|
ORDER BY ts_published DESC
|
||||||
LIMIT 10";
|
LIMIT 10";
|
||||||
|
|
||||||
|
@ -67,7 +67,7 @@ class ArchivesController extends Zend_Controller_Action
|
||||||
);
|
);
|
||||||
$url = $News->makeCategoryUrl($parts);
|
$url = $News->makeCategoryUrl($parts);
|
||||||
|
|
||||||
$newslist[$v['id']] = array("title"=>$v['title'],"url"=>$url,"id"=>$v['id'],"list"=>$archives);
|
$newslist[$v['id']] = array("title"=>$v['title_en'],"url"=>$url,"id"=>$v['id'],"list"=>$archives);
|
||||||
}
|
}
|
||||||
$this->view->lists = $newslist;
|
$this->view->lists = $newslist;
|
||||||
|
|
||||||
|
@ -130,7 +130,7 @@ class ArchivesController extends Zend_Controller_Action
|
||||||
$sql = "SELECT n.*,c.id as typeid,c.code FROM ".$News->tbl_archives." n
|
$sql = "SELECT n.*,c.id as typeid,c.code FROM ".$News->tbl_archives." n
|
||||||
left join ".$News->tbl_catalog." ct on ct.aid=n.id
|
left join ".$News->tbl_catalog." ct on ct.aid=n.id
|
||||||
left join ".$News->tbl_categorys." c ON ct.cid=c.id
|
left join ".$News->tbl_categorys." c ON ct.cid=c.id
|
||||||
WHERE c.id='{$row['id']}' AND n.ts_published<'".$time."' AND n.is_pub=true
|
WHERE n.language='en' and c.id='{$row['id']}' AND n.ts_published<'".$time."' AND n.is_pub=true
|
||||||
ORDER BY n.ts_published DESC";
|
ORDER BY n.ts_published DESC";
|
||||||
|
|
||||||
$rs = $this->db->query($sql);
|
$rs = $this->db->query($sql);
|
||||||
|
|
|
@ -30,17 +30,17 @@ class DataController extends Zend_Controller_Action
|
||||||
$state=$this->db->query('select c.code,name,name_zh,count(*) from en.category c,en.categorycode cc where c.code=cc.code group by c.code,cc.name,cc.name_zh');
|
$state=$this->db->query('select c.code,name,name_zh,count(*) from en.category c,en.categorycode cc where c.code=cc.code group by c.code,cc.name,cc.name_zh');
|
||||||
$this->view->category=$state->fetchAll();
|
$this->view->category=$state->fetchAll();
|
||||||
//关键词
|
//关键词
|
||||||
$state=$this->db->query("select keyword,count(*) from en.keyword right join en.normalmetadata on keyword.id=normalmetadata.id where keytype='place' group by keyword order by count desc limit 20");
|
$state=$this->db->query("select keyword,count(*) from en.keyword right join en.normalmetadata on keyword.id=en.normalmetadata.id where keytype='place' group by keyword order by count desc limit 20");
|
||||||
$k1=$state->fetchAll();
|
$k1=$state->fetchAll();
|
||||||
$state=$this->db->query("select keyword,count(*) from en.keyword right join en.normalmetadata on keyword.id=normalmetadata.id where keytype='theme' group by keyword order by count desc limit 20");
|
$state=$this->db->query("select keyword,count(*) from en.keyword right join en.normalmetadata on keyword.id=en.normalmetadata.id where keytype='theme' group by keyword order by count desc limit 20");
|
||||||
//$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 uuid from dataorder group by uuid order by count(uuid) desc limit 20)) group by k.keyword order by count(k.keyword) desc limit 20");
|
//$state=$this->db->query("select k.keyword,count(k.keyword) from keyword k left join en.normalmetadata m on k.id=m.id where k.keytype='theme' and (m.uuid in (select uuid from dataorder group by uuid order by count(uuid) desc limit 20)) group by k.keyword order by count(k.keyword) desc limit 20");
|
||||||
$k2=$state->fetchAll();
|
$k2=$state->fetchAll();
|
||||||
$state=$this->db->query("select keyword,count(*) from en.keyword right join en.normalmetadata on keyword.id=normalmetadata.id where keytype='discipline' group by keyword order by count desc limit 20");
|
$state=$this->db->query("select keyword,count(*) from en.keyword right join en.normalmetadata on keyword.id=en.normalmetadata.id where keytype='discipline' group by keyword order by count desc limit 20");
|
||||||
$k3=$state->fetchAll();
|
$k3=$state->fetchAll();
|
||||||
$state=$this->db->query("select keyword,count(*) from en.keyword right join en.normalmetadata on keyword.id=normalmetadata.id where keytype='stratum' group by keyword order by count desc limit 20");
|
$state=$this->db->query("select keyword,count(*) from en.keyword right join en.normalmetadata on keyword.id=en.normalmetadata.id where keytype='stratum' group by keyword order by count desc limit 20");
|
||||||
$k4=$state->fetchAll();
|
$k4=$state->fetchAll();
|
||||||
$state=$this->db->query("select keyword,count(*) from en.keyword right join en.normalmetadata on keyword.id=normalmetadata.id where keytype='temporal' group by keyword order by count desc limit 20");
|
$state=$this->db->query("select keyword,count(*) from en.keyword right join en.normalmetadata on keyword.id=en.normalmetadata.id where keytype='temporal' group by keyword order by count desc limit 20");
|
||||||
//$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='temporal' and (m.uuid in (select uuid from dataorder group by uuid order by count(uuid) desc limit 20)) group by k.keyword order by count(k.keyword) desc limit 20");
|
//$state=$this->db->query("select k.keyword,count(k.keyword) from keyword k left join en.normalmetadata m on k.id=m.id where k.keytype='temporal' and (m.uuid in (select uuid from dataorder group by uuid order by count(uuid) desc limit 20)) group by k.keyword order by count(k.keyword) desc limit 20");
|
||||||
$k5=$state->fetchAll();
|
$k5=$state->fetchAll();
|
||||||
$this->view->keywords=array('place'=>$k1,'theme'=>$k2,'discipline'=>$k3,'stratum'=>$k4,'temporal'=>$k5);
|
$this->view->keywords=array('place'=>$k1,'theme'=>$k2,'discipline'=>$k3,'stratum'=>$k4,'temporal'=>$k5);
|
||||||
//最新10个入库数据
|
//最新10个入库数据
|
||||||
|
@ -56,44 +56,24 @@ class DataController extends Zend_Controller_Action
|
||||||
//其他连接
|
//其他连接
|
||||||
}
|
}
|
||||||
function onlinelistAction()
|
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 en.normalmetadata where datatype=0');
$row=$state->fetchAll();
$sum=$row[0]['count'];
$select=$this->db->select();
$select->from('en.normalmetadata','*')->where('datatype=0')->order('title')->limitPage($page,$limit);
$this->view->metadata = $this->db->fetchAll($select);
$this->view->page=new Pagination($sum,$page,$limit);
}
|
||||||
$page=(int)$this->_request->getParam('page');
|
|
||||||
if (empty($page)) $page=1;
|
|
||||||
$limit=30;
|
|
||||||
$offset=$limit*($page-1);
|
|
||||||
$state=$this->db->query('select count(*) from normalmetadata where datatype=0');
|
|
||||||
$row=$state->fetchAll();
|
|
||||||
$sum=$row[0]['count'];
|
|
||||||
$select=$this->db->select();
|
|
||||||
$select->from('normalmetadata','*')->where('datatype=0')->order('title')->limitPage($page,$limit);
|
|
||||||
$this->view->metadata = $this->db->fetchAll($select);
|
|
||||||
$this->view->page=new Pagination($sum,$page,$limit);
|
|
||||||
}
|
|
||||||
function offlinelistAction()
|
function offlinelistAction()
|
||||||
{
|
{
|
||||||
$page=(int)$this->_request->getParam('page');
|
$page=(int)$this->_request->getParam('page');
|
||||||
if (empty($page)) $page=1;
|
if (empty($page)) $page=1;
|
||||||
$limit=30;
|
$limit=30;
|
||||||
$offset=$limit*($page-1);
|
$offset=$limit*($page-1);
|
||||||
$state=$this->db->query('select count(*) from normalmetadata where datatype=1');
|
$state=$this->db->query('select count(*) from en.normalmetadata where datatype=1');
|
||||||
$row=$state->fetchAll();
|
$row=$state->fetchAll();
|
||||||
$sum=$row[0]['count'];
|
$sum=$row[0]['count'];
|
||||||
$select=$this->db->select();
|
$select=$this->db->select();
|
||||||
$select->from('normalmetadata','*')->where('datatype=1')->order('title')->limitPage($page,$limit);
|
$select->from('en.normalmetadata','*')->where('datatype=1')->order('title')->limitPage($page,$limit);
|
||||||
$this->view->metadata = $this->db->fetchAll($select);
|
$this->view->metadata = $this->db->fetchAll($select);
|
||||||
$this->view->page=new Pagination($sum,$page,$limit);
|
$this->view->page=new Pagination($sum,$page,$limit);
|
||||||
}
|
}
|
||||||
//展示最近20条离线神情记录情况
|
|
||||||
function offlineappAction()
|
//展示最近20条离线神情记录情况
function offlineappAction()
{
$sql="select * from offlineapp where ts_approved is not null and pdflink<>'' and status>=0 and uuid in (select uuid from en.metadata) order by ts_created desc limit 20";
$this->view->rows=$this->db->fetchAll($sql);
}
|
||||||
{
|
function requestAction()
{
$archives=new Archive($this->db);
$this->view->item=$archives->getOneArchive('如何申请数据','help');
}
|
||||||
$sql="select * from offlineapp where ts_approved is not null and pdflink<>'' and status>=0 order by ts_created desc limit 20";
|
|
||||||
$this->view->rows=$this->db->fetchAll($sql);
|
|
||||||
}
|
|
||||||
function requestAction()
|
|
||||||
{
|
|
||||||
$archives=new Archive($this->db);
|
|
||||||
$this->view->item=$archives->getOneArchive('如何申请数据','help');
|
|
||||||
}
|
|
||||||
function submitAction()
|
function submitAction()
|
||||||
{
|
{
|
||||||
$archives=new Archive($this->db);
|
$archives=new Archive($this->db);
|
||||||
|
@ -153,146 +133,20 @@ class DataController extends Zend_Controller_Action
|
||||||
$cd=new DatasetcdTable();
|
$cd=new DatasetcdTable();
|
||||||
$this->view->rows=$cd->fetchAll();
|
$this->view->rows=$cd->fetchAll();
|
||||||
}
|
}
|
||||||
/*
|
/*
* 数据浏览
*/
function browseAction()
{
$page=(int)$this->_request->getParam('page');
if (empty($page)) $page=1;
$limit=10;
$offset=$limit*($page-1);
$state=$this->db->query('select count(*) from en.normalmetadata');
$row=$state->fetchAll();
$sum=$row[0]['count'];
$select=$this->db->select();
$select->from('en.normalmetadata','*')->order('id desc')->limitPage($page,$limit);
$this->view->metadata = $this->db->fetchAll($select);
$this->view->page=new Pagination($sum,$page,$limit);
}
|
||||||
* 数据浏览
|
function tagAction()
{
$id = (int)$this->_request->getParam('id');
$key = $this->_request->getParam('key');
$keytype = $this->_request->getParam('keytype');
$page=(int)$this->_request->getParam('page');
if (empty($page)) $page=1;
$limit=10;
$offset=$limit*($page-1);
$sql='select keyword,count(*),keytype from en.keyword right join en.normalmetadata on keyword.id=en.normalmetadata.id ';
if (!empty($keytype) && ($keytype=='place' || $keytype=='theme' || $keytype=='discipline'||$keytype=='temporal')) $sql.=" where keytype='".$keytype."'";
$sql.=' group by keyword,keytype order by keytype,keyword,count desc';
$state=$this->db->query($sql);
$this->view->keywords=$state->fetchAll();
|
||||||
*/
|
if ($id>0 or !empty($key)) {
if (empty($key)) {
$where=$this->db->quoteInto('id = ?',$id);
$row=$md->fetchRow($where);
$key=$row->name;
}
|
||||||
function browseAction()
|
$this->view->codename=$key;
$sql=$this->db->quoteInto('select count(m.id) from en.normalmetadata m,en.keyword k where m.id=k.id and k.keyword=?',$key);
$state=$this->db->query($sql);
$row=$state->fetchAll();
$sum=$row[0]['count'];
$select=$this->db->select();
$select->from('en.normalmetadata','*')->join('en.keyword','en.normalmetadata.id=keyword.id')->where('keyword.keyword=?',$key)->order('en.normalmetadata.title')->limitPage($page,$limit);
//$sql=$db->quoteInto('select m.* from metadata m,keyword k where m.id=k.id and k.keyword=?',$key);
//$state=$db->query($sql);
$this->view->metadata=$this->db->fetchAll($select);
$this->view->page=new Pagination($sum,$page,$limit);
}
}
|
||||||
{
|
/*
* 数据集序列浏览
*/
function seriesAction()
{
$id = $this->_request->getParam('id');
if (empty($id)) $id=0;
if (!is_numeric($id))
{
$name=$id;
$id='';
}
|
||||||
$page=(int)$this->_request->getParam('page');
|
$keyword=$this->_request->getParam('keyword');
if (empty($id)) {
if (!empty($name))
{
$where=$this->db->quoteInto('name = ?',$name);
$row=$this->db->fetchRow("select * from en.series where ".$where);
}
} else {
$where=$this->db->quoteInto('id = ?',$id);
$row=$this->db->fetchRow("select * from en.series where ".$where);
}
|
||||||
if (empty($page)) $page=1;
|
if (!empty($id) or !empty($name))
{
if (!$row) $this->_redirect('/data');
$id=$row['id'];
}
|
||||||
$limit=10;
|
$page=(int)$this->_request->getParam('page');
if (empty($page)) $page=1;
$limit=10;
$offset=$limit*($page-1);
$state=$this->db->query('select s.id,name,count(*) from en.series s,en.dataseries d where d.sid=s.id group by s.id,s.name');
$this->view->serie=$state->fetchAll();
|
||||||
$offset=$limit*($page-1);
|
if ($id>0) {
//$where=$this->db->quoteInto('id = ?',$id);
//$row=$this->db->fetchRow("select * from series where ".$where);
|
||||||
$state=$this->db->query('select count(*) from metadata');
|
$this->view->codename=$row['name'];
if (!empty($keyword))
{
$sql='select count(m.id) as count from en.normalmetadata m,en.dataseries d,en.keyword k where m.id=d.id and m.id=k.id and d.sid=? and k.keyword=?';
$row=$this->db->fetchAll($sql,array($id,$keyword));
$this->view->codename.="[Tags: ".$keyword." ]";
|
||||||
$row=$state->fetchAll();
|
}else{
$sql='select count(m.id) as count from en.normalmetadata m,en.dataseries d where m.id=d.id and d.sid=?';
$row=$this->db->fetchAll($sql,array($id));
}
$sum=$row[0]['count'];
$select=$this->db->select();
$select->from('en.normalmetadata','*')->join('en.dataseries','en.normalmetadata.id=dataseries.id')->where('dataseries.sid=?',$id)->order('en.normalmetadata.title')->limitPage($page,$limit);
if (!empty($keyword)) $select->join('keyword','keyword.id=en.normalmetadata.id')->where('keyword.keyword=?',$keyword);
$this->view->metadata=$this->db->fetchAll($select);
$this->view->page=new Pagination($sum,$page,$limit);
|
||||||
$sum=$row[0]['count'];
|
//$this->view->showtools=($sum>$page)?true:false;
//$this->view->form=new SearchForm();
|
||||||
$select=$this->db->select();
|
$sql=$this->db->quoteInto("select keyword,count(*) as count from (select t.keyword,t.id from en.keyword t left join en.dataseries d on t.id=d.id where t.keytype='place' and d.sid=?) as f group by keyword order by count desc limit 30",$id);
$state=$this->db->query($sql);
$row=$state->fetchAll();
$this->view->places=$row;
$this->view->seriesid=$id;
} else {
//提供全部数据集序列列表
}
}
|
||||||
$select->from('metadata','*')->order('id desc')->limitPage($page,$limit);
|
/*
* 分类浏览模式
*/
function categoryAction()
{
$page = $this->_request->getParam('page');
$code = (int)$this->_request->getParam('code');
$state=$this->db->query('select c.code,name,name_zh,count(*) from en.category c,categorycode cc where c.code=cc.code group by c.code,cc.name,cc.name_zh');
$this->view->category=$state->fetchAll();
if ($code>0 && $code<20) {
$where=$this->db->quoteInto('code = ?',$code);
$row=$this->db->fetchRow("select * from categorycode where ".$where);
$this->view->codename=$row['name'];
$sql='select count(m.id) from en.normalmetadata m left join en.category c on m.id=c.id where c.code=?';
$row=$this->db->fetchRow($sql,array($code));
$sum=$row['count'];
$select=$this->db->select();
$select->from('en.normalmetadata as m','*')->joinLeft('en.category as c','m.id=c.id')->where('c.code=?',$code)->order('m.title')->limitPage($page,$this->limit);
$this->view->metadata=$this->db->fetchAll($select);
$this->view->page=new Pagination($sum,$page,$this->limit);
} else {
//提供全部分类列表
}
}
|
||||||
$this->view->metadata = $this->db->fetchAll($select);
|
|
||||||
$this->view->page=new Pagination($sum,$page,$limit);
|
|
||||||
}
|
|
||||||
function tagAction()
|
|
||||||
{
|
|
||||||
$id = (int)$this->_request->getParam('id');
|
|
||||||
$key = $this->_request->getParam('key');
|
|
||||||
$keytype = $this->_request->getParam('keytype');
|
|
||||||
$page=(int)$this->_request->getParam('page');
|
|
||||||
if (empty($page)) $page=1;
|
|
||||||
$limit=10;
|
|
||||||
$offset=$limit*($page-1);
|
|
||||||
$sql='select keyword,count(*),keytype from keyword right join normalmetadata on keyword.id=normalmetadata.id ';
|
|
||||||
if (!empty($keytype) && ($keytype=='place' || $keytype=='theme' || $keytype=='discipline'||$keytype=='temporal')) $sql.=" where keytype='".$keytype."'";
|
|
||||||
$sql.=' group by keyword,keytype order by keytype,keyword,count desc';
|
|
||||||
$state=$this->db->query($sql);
|
|
||||||
$this->view->keywords=$state->fetchAll();
|
|
||||||
|
|
||||||
if ($id>0 or !empty($key)) {
|
|
||||||
if (empty($key)) {
|
|
||||||
$where=$this->db->quoteInto('id = ?',$id);
|
|
||||||
$row=$md->fetchRow($where);
|
|
||||||
$key=$row->name;
|
|
||||||
}
|
|
||||||
$this->view->codename=$key;
|
|
||||||
$sql=$this->db->quoteInto('select count(m.id) from normalmetadata m,keyword k where m.id=k.id and k.keyword=?',$key);
|
|
||||||
|
|
||||||
$state=$this->db->query($sql);
|
|
||||||
$row=$state->fetchAll();
|
|
||||||
$sum=$row[0]['count'];
|
|
||||||
$select=$this->db->select();
|
|
||||||
$select->from('normalmetadata','*')->join('keyword','normalmetadata.id=keyword.id')->where('keyword.keyword=?',$key)->order('normalmetadata.title')->limitPage($page,$limit);
|
|
||||||
//$sql=$db->quoteInto('select m.* from metadata m,keyword k where m.id=k.id and k.keyword=?',$key);
|
|
||||||
//$state=$db->query($sql);
|
|
||||||
$this->view->metadata=$this->db->fetchAll($select);
|
|
||||||
$this->view->page=new Pagination($sum,$page,$limit);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
/*
|
|
||||||
* 数据集序列浏览
|
|
||||||
*/
|
|
||||||
function seriesAction()
|
|
||||||
{
|
|
||||||
$id = $this->_request->getParam('id');
|
|
||||||
if (empty($id)) $id=0;
|
|
||||||
if (!is_numeric($id))
|
|
||||||
{
|
|
||||||
$name=$id;
|
|
||||||
$id='';
|
|
||||||
}
|
|
||||||
$keyword=$this->_request->getParam('keyword');
|
|
||||||
if (empty($id)) {
|
|
||||||
if (!empty($name))
|
|
||||||
{
|
|
||||||
$where=$this->db->quoteInto('name = ?',$name);
|
|
||||||
$row=$this->db->fetchRow("select * from series where ".$where);
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
$where=$this->db->quoteInto('id = ?',$id);
|
|
||||||
$row=$this->db->fetchRow("select * from series where ".$where);
|
|
||||||
}
|
|
||||||
if (!empty($id) or !empty($name))
|
|
||||||
{
|
|
||||||
if (!$row) $this->_redirect('/data');
|
|
||||||
$id=$row['id'];
|
|
||||||
}
|
|
||||||
$page=(int)$this->_request->getParam('page');
|
|
||||||
if (empty($page)) $page=1;
|
|
||||||
$limit=10;
|
|
||||||
$offset=$limit*($page-1);
|
|
||||||
$state=$this->db->query('select s.id,name,count(*) from series s,dataseries d where d.sid=s.id group by s.id,s.name');
|
|
||||||
$this->view->serie=$state->fetchAll();
|
|
||||||
if ($id>0) {
|
|
||||||
//$where=$this->db->quoteInto('id = ?',$id);
|
|
||||||
//$row=$this->db->fetchRow("select * from series where ".$where);
|
|
||||||
$this->view->codename=$row['name'];
|
|
||||||
if (!empty($keyword))
|
|
||||||
{
|
|
||||||
$sql='select count(m.id) as count from normalmetadata m,dataseries d,keyword k where m.id=d.id and m.id=k.id and d.sid=? and k.keyword=?';
|
|
||||||
$row=$this->db->fetchAll($sql,array($id,$keyword));
|
|
||||||
$this->view->codename.="【关键词:".$keyword."】";
|
|
||||||
}else{
|
|
||||||
$sql='select count(m.id) as count from normalmetadata m,dataseries d where m.id=d.id and d.sid=?';
|
|
||||||
$row=$this->db->fetchAll($sql,array($id));
|
|
||||||
}
|
|
||||||
$sum=$row[0]['count'];
|
|
||||||
$select=$this->db->select();
|
|
||||||
$select->from('normalmetadata','*')->join('dataseries','normalmetadata.id=dataseries.id')->where('dataseries.sid=?',$id)->order('normalmetadata.title')->limitPage($page,$limit);
|
|
||||||
if (!empty($keyword)) $select->join('keyword','keyword.id=normalmetadata.id')->where('keyword.keyword=?',$keyword);
|
|
||||||
$this->view->metadata=$this->db->fetchAll($select);
|
|
||||||
$this->view->page=new Pagination($sum,$page,$limit);
|
|
||||||
//$this->view->showtools=($sum>$page)?true:false;
|
|
||||||
//$this->view->form=new SearchForm();
|
|
||||||
$sql=$this->db->quoteInto("select keyword,count(*) as count from (select t.keyword,t.id from keyword t left join dataseries d on t.id=d.id where t.keytype='place' and d.sid=?) as f group by keyword order by count desc limit 30",$id);
|
|
||||||
$state=$this->db->query($sql);
|
|
||||||
$row=$state->fetchAll();
|
|
||||||
$this->view->places=$row;
|
|
||||||
$this->view->seriesid=$id;
|
|
||||||
} else {
|
|
||||||
//提供全部数据集序列列表
|
|
||||||
}
|
|
||||||
}
|
|
||||||
/*
|
|
||||||
* 分类浏览模式
|
|
||||||
*/
|
|
||||||
function categoryAction()
|
|
||||||
{
|
|
||||||
$page = $this->_request->getParam('page');
|
|
||||||
$code = (int)$this->_request->getParam('code');
|
|
||||||
$state=$this->db->query('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');
|
|
||||||
$this->view->category=$state->fetchAll();
|
|
||||||
if ($code>0 && $code<20) {
|
|
||||||
$where=$this->db->quoteInto('code = ?',$code);
|
|
||||||
$row=$this->db->fetchRow("select * from categorycode where ".$where);
|
|
||||||
$this->view->codename=(empty($row['name_zh'])?$row['name']:$row['name_zh']);
|
|
||||||
$sql='select count(m.id) from normalmetadata m left join category c on m.id=c.id where c.code=?';
|
|
||||||
$row=$this->db->fetchRow($sql,array($code));
|
|
||||||
$sum=$row['count'];
|
|
||||||
$select=$this->db->select();
|
|
||||||
$select->from('normalmetadata as m','*')->joinLeft('category as c','m.id=c.id')->where('c.code=?',$code)->order('m.title')->limitPage($page,$this->limit);
|
|
||||||
$this->view->metadata=$this->db->fetchAll($select);
|
|
||||||
$this->view->page=new Pagination($sum,$page,$this->limit);
|
|
||||||
} else {
|
|
||||||
//提供全部分类列表
|
|
||||||
}
|
|
||||||
}
|
|
||||||
/*
|
/*
|
||||||
* 时间浏览方式
|
* 时间浏览方式
|
||||||
* todo:实现xml的缓存,基于时间的缓存(每天)?基于元数据修改的缓存,每次导入后都重新生成一次。
|
* todo:实现xml的缓存,基于时间的缓存(每天)?基于元数据修改的缓存,每次导入后都重新生成一次。
|
||||||
|
@ -300,14 +154,14 @@ class DataController extends Zend_Controller_Action
|
||||||
function timelineAction()
|
function timelineAction()
|
||||||
{
|
{
|
||||||
$fn="time1.xml";
|
$fn="time1.xml";
|
||||||
$rows=$this->db->fetchAll("select ts_created from normalmetadata order by ts_created desc limit 1");
|
$rows=$this->db->fetchAll("select ts_created from en.normalmetadata order by ts_created desc limit 1");
|
||||||
$last_update=strtotime($rows[0]['ts_created']);
|
$last_update=strtotime($rows[0]['ts_created']);
|
||||||
if (!file_exists($fn) || (filemtime($fn)<$last_update))
|
if (!file_exists($fn) || (filemtime($fn)<$last_update))
|
||||||
{
|
{
|
||||||
$dateformat="M j Y";
|
$dateformat="M j Y";
|
||||||
$md = new MetadataTable();
|
$md = new MetadataTable();
|
||||||
$db=$md->getAdapter();
|
$db=$md->getAdapter();
|
||||||
$state=$db->query('select id,uuid,description,title,timebegin,timeend from normalmetadata where timebegin is not null order by timebegin');
|
$state=$db->query('select id,uuid,description,title,timebegin,timeend from en.normalmetadata where timebegin is not null order by timebegin');
|
||||||
$rows=$state->fetchAll();
|
$rows=$state->fetchAll();
|
||||||
$timexml='<data>';
|
$timexml='<data>';
|
||||||
foreach($rows as $row) {
|
foreach($rows as $row) {
|
||||||
|
@ -327,15 +181,7 @@ class DataController extends Zend_Controller_Action
|
||||||
}
|
}
|
||||||
//$this->_helper->layout->disableLayout();
|
//$this->_helper->layout->disableLayout();
|
||||||
}
|
}
|
||||||
/*
|
/*
* 空间浏览
*/
function mapAction()
{
//use json & openlayers?
$id=(int)$this->_request->getParam('id');
if ($id>0) $this->view->params="/id/$id";
}
|
||||||
* todo:空间浏览
|
|
||||||
*/
|
|
||||||
function mapAction()
|
|
||||||
{
|
|
||||||
//use json & openlayers?
|
|
||||||
$id=(int)$this->_request->getParam('id');
|
|
||||||
if ($id>0) $this->view->params="/id/$id";
|
|
||||||
}
|
|
||||||
/*
|
/*
|
||||||
* 产生geojson数据
|
* 产生geojson数据
|
||||||
*/
|
*/
|
||||||
|
@ -346,7 +192,7 @@ class DataController extends Zend_Controller_Action
|
||||||
$id = (int)$this->_request->getParam('id');
|
$id = (int)$this->_request->getParam('id');
|
||||||
$where='';
|
$where='';
|
||||||
if (!empty($id)) { $where=' where id='.$id; }
|
if (!empty($id)) { $where=' where id='.$id; }
|
||||||
$sql='select id,uuid,west,south,north,east,title from normalmetadata'.$where;
|
$sql='select id,uuid,west,south,north,east,title from en.normalmetadata'.$where;
|
||||||
$state=$db->query($sql);
|
$state=$db->query($sql);
|
||||||
$rows=$state->fetchAll();
|
$rows=$state->fetchAll();
|
||||||
$geomd=new GeoMetaData();
|
$geomd=new GeoMetaData();
|
||||||
|
@ -365,14 +211,8 @@ class DataController extends Zend_Controller_Action
|
||||||
}
|
}
|
||||||
$this->_helper->json($geomd);
|
$this->_helper->json($geomd);
|
||||||
}
|
}
|
||||||
/*
|
|
||||||
* 时空动态浏览
|
/*
* 时空动态浏览
*/
function timemapAction()
{
$sql='select id,uuid,west,south,north,east,title,timebegin,timeend from en.normalmetadata where timebegin is not null';
$this->view->rows=$this->db->fetchAll($sql);
}
|
||||||
*/
|
|
||||||
function timemapAction()
|
|
||||||
{
|
|
||||||
$sql='select id,uuid,west,south,north,east,title,timebegin,timeend from normalmetadata where timebegin is not null';
|
|
||||||
$this->view->rows=$this->db->fetchAll($sql);
|
|
||||||
}
|
|
||||||
/*
|
/*
|
||||||
* 返回XML源文件
|
* 返回XML源文件
|
||||||
*/
|
*/
|
||||||
|
@ -419,7 +259,7 @@ class DataController extends Zend_Controller_Action
|
||||||
//'generator' => 'Zend Framework Zend_Feed',
|
//'generator' => 'Zend Framework Zend_Feed',
|
||||||
'entries' => array()
|
'entries' => array()
|
||||||
);
|
);
|
||||||
$sql="select * from normalmetadata order by ts_created desc";
|
$sql="select * from en.normalmetadata order by ts_created desc";
|
||||||
$rs=$this->db->fetchAll($sql);
|
$rs=$this->db->fetchAll($sql);
|
||||||
$feedArray['published']=strtotime($rs[0]['ts_created']);
|
$feedArray['published']=strtotime($rs[0]['ts_created']);
|
||||||
foreach($rs as $r)
|
foreach($rs as $r)
|
||||||
|
@ -457,9 +297,9 @@ class DataController extends Zend_Controller_Action
|
||||||
$offset=$this->limit*($page-1);
|
$offset=$this->limit*($page-1);
|
||||||
$search=new Search($key);
|
$search=new Search($key);
|
||||||
$where=$search->sql_expr(array("title","description"));
|
$where=$search->sql_expr(array("title","description"));
|
||||||
$row=$this->db->fetchAll("select count(*) from normalmetadata where ".$where);
|
$row=$this->db->fetchAll("select count(*) from en.normalmetadata where ".$where);
|
||||||
$sum=$row[0]['count'];
|
$sum=$row[0]['count'];
|
||||||
$sql="select uuid,title,id,description from normalmetadata where ".$where." order by title limit ? offset ?";
|
$sql="select uuid,title,id,description from en.normalmetadata where ".$where." order by title limit ? offset ?";
|
||||||
$this->view->metadata=$this->db->fetchAll($sql,array($this->limit,$offset));
|
$this->view->metadata=$this->db->fetchAll($sql,array($this->limit,$offset));
|
||||||
$this->view->page=new Pagination($sum,$page,$this->limit);
|
$this->view->page=new Pagination($sum,$page,$this->limit);
|
||||||
$this->view->key=$key;
|
$this->view->key=$key;
|
||||||
|
@ -493,15 +333,15 @@ class DataController extends Zend_Controller_Action
|
||||||
$start=$this->_request->getParam('start');
|
$start=$this->_request->getParam('start');
|
||||||
$end=$this->_request->getParam('end');
|
$end=$this->_request->getParam('end');
|
||||||
if (!empty($key)) {
|
if (!empty($key)) {
|
||||||
$sql='select count(*) from normalmetadata where east<? and west>? and north<? and south>? and (title ilike ? or description ilike ?)';
|
$sql='select count(*) from en.normalmetadata where east<? and west>? and north<? and south>? and (title ilike ? or description ilike ?)';
|
||||||
$row=$db->fetchAll($sql,array($e,$w,$n,$s,'%'.$key.'%','%'.$key.'%'));
|
$row=$db->fetchAll($sql,array($e,$w,$n,$s,'%'.$key.'%','%'.$key.'%'));
|
||||||
} else {
|
} else {
|
||||||
$sql='select count(*) from normalmetadata where east<? and west>? and north<? and south>?';
|
$sql='select count(*) from en.normalmetadata where east<? and west>? and north<? and south>?';
|
||||||
$row=$db->fetchAll($sql,array($e,$w,$n,$s));
|
$row=$db->fetchAll($sql,array($e,$w,$n,$s));
|
||||||
}
|
}
|
||||||
$sum=$row[0]['count'];
|
$sum=$row[0]['count'];
|
||||||
$select=$db->select();
|
$select=$db->select();
|
||||||
$select->from('normalmetadata','*')->where('east<?',$e)->where('west>?',$w)->where('north<?',$n)->where('south>?',$s);
|
$select->from('en.normalmetadata','*')->where('east<?',$e)->where('west>?',$w)->where('north<?',$n)->where('south>?',$s);
|
||||||
if (!empty($key)) $select->where('(title ilike ? or description ilike ?)','%'.$key.'%');
|
if (!empty($key)) $select->where('(title ilike ? or description ilike ?)','%'.$key.'%');
|
||||||
$select->order('title')->limit($limit,$offset);
|
$select->order('title')->limit($limit,$offset);
|
||||||
$this->view->metadata = $db->fetchAll($select);
|
$this->view->metadata = $db->fetchAll($select);
|
||||||
|
@ -1887,23 +1727,7 @@ class DataController extends Zend_Controller_Action
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
* 查看数据缩略图
*/
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 en.normalmetadata");
$row=$state->fetchAll();
$sum=$row[0]['count'];
$select=$this->db->select();
$select->from('en.normalmetadata as m','m.*')
->order('m.title desc')->limitPage($page,9);
$this->view->metadata = $this->db->fetchAll($select);
$this->view->page=new Pagination($sum,$page,$this->limit);
}
|
||||||
* 查看数据缩略图
|
|
||||||
*/
|
|
||||||
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");
|
|
||||||
$row=$state->fetchAll();
|
|
||||||
$sum=$row[0]['count'];
|
|
||||||
$select=$this->db->select();
|
|
||||||
$select->from('normalmetadata as m','m.*')
|
|
||||||
->order('m.title desc')->limitPage($page,9);
|
|
||||||
$this->view->metadata = $this->db->fetchAll($select);
|
|
||||||
$this->view->page=new Pagination($sum,$page,$this->limit);
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
*附件下载
|
*附件下载
|
||||||
|
@ -2043,7 +1867,7 @@ class DataController extends Zend_Controller_Action
|
||||||
{
|
{
|
||||||
$this->_helper->layout->disableLayout();
|
$this->_helper->layout->disableLayout();
|
||||||
$this->_helper->viewRenderer->setNoRender();
|
$this->_helper->viewRenderer->setNoRender();
|
||||||
$sql="select title,datatype,filesize,id from normalmetadata";
|
$sql="select title,datatype,filesize,id from en.normalmetadata";
|
||||||
$md=$this->db->fetchAll($sql);
|
$md=$this->db->fetchAll($sql);
|
||||||
foreach($md as $m)
|
foreach($md as $m)
|
||||||
{
|
{
|
||||||
|
@ -2068,171 +1892,22 @@ class DataController extends Zend_Controller_Action
|
||||||
$this->getResponse()->setHeader('Content-Type', 'application/json')->appendBody(json_encode($data,JSON_NUMERIC_CHECK));
|
$this->getResponse()->setHeader('Content-Type', 'application/json')->appendBody(json_encode($data,JSON_NUMERIC_CHECK));
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
function organizationAction()
|
function organizationAction()
{
$page = $this->_request->getParam('page');
$name = $this->_request->getParam('name');
$state=$this->db->query("select distinct responsible.organisation from en.responsible left join en.role on role.resid=responsible.id where role.role in ('pointOfContact','resourceProvider','owner')");
$this->view->organisation=$state->fetchAll();
if (!empty($name)) {
$this->view->codename=$name;
$sql="select distinct m.* from en.normalmetadata m left join en.role r on m.uuid=r.uuid left join en.responsible s on r.resid=s.id where 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 {
//提供全部分类列表
}
}
|
||||||
{
|
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 en.normalmetadata m left join mdfund mf on m.uuid=mf.uuid where 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_en,f.fund_id,f.fund_type_en,f.ts_created,count(m.id) as datacount,sum(md.filesize) as filesize
|
||||||
$page = $this->_request->getParam('page');
|
from fund f left join mdfund m on f.id=m.fid right join en.normalmetadata md on m.uuid=md.uuid
|
||||||
$name = $this->_request->getParam('name');
|
where m.id is not null group by f.id,f.title,f.fund_id,f.fund_type,f.ts_created order by datacount desc,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');
}
}
|
||||||
$state=$this->db->query("select distinct responsible.organisation from responsible left join role on role.resid=responsible.id where role.role in ('pointOfContact','resourceProvider','owner')");
|
//实现基于DOI信息的浏览
function doiAction()
{
$ac = $this->_request->getParam('ac');
if ($ac=='unready') {
//列出没有DOI的数据
$sql="select m.* from en.normalmetadata m where length(m.doi)<3 and m.uuid not in (select uuid from datadoi) order by m.ts_created desc";
$this->view->pageID='doi-unready';
} else if ($ac=='prepare') {
//列出有DOI但还未进行提交申请的数据
$sql="select m.* from en.normalmetadata m where length(m.doi)>3 and m.uuid not in (select uuid from datadoi) order by m.ts_created desc";
$this->view->pageID='doi-prepare';
} else if ($ac=='unsubmit') {
|
||||||
$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 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 {
|
|
||||||
//提供全部分类列表
|
|
||||||
}
|
|
||||||
}
|
|
||||||
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 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.id is not null group by f.id,f.title,f.fund_id,f.fund_type,f.ts_created order by datacount desc,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');
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
//实现基于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) order by m.ts_created desc";
|
|
||||||
$this->view->pageID='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) order by m.ts_created desc";
|
|
||||||
$this->view->pageID='doi-prepare';
|
|
||||||
} else if ($ac=='unsubmit') {
|
|
||||||
//列出有DOI并计划提交申请的数据
|
//列出有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 order by d.ts_created desc";
|
$sql="select m.*,d.doi as datadoi,date(d.ts_created) as ts_created from en.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 order by d.ts_created desc";
$this->view->pageID='doi-unsubmit';
} else if ($ac=='submit') {
//列出有DOI并计划提交申请的数据
$sql="select m.*,d.doi as datadoi,date(d.ts_submitted) as ts_submitted from en.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 order by d.ts_submitted desc,d.ts_created desc";
$this->view->pageID='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 en.normalmetadata m left join datadoi d on m.uuid=d.uuid where length(m.doi)>3 and d.ts_published is not null order by d.ts_published desc,d.ts_submitted desc,d.ts_created desc";
$this->view->pageID='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;
}
|
||||||
$this->view->pageID='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 order by d.ts_submitted desc,d.ts_created desc";
|
|
||||||
$this->view->pageID='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 order by d.ts_published desc,d.ts_submitted desc,d.ts_created desc";
|
|
||||||
$this->view->pageID='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 authorAction()
{
$ac = $this->_request->getParam('ac');
$id = (int)$this->_request->getParam('id');
if ($ac=='verified')
|
||||||
function authorAction()
|
{
//已经认证过的数据作者
$this->view->pageID='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 en.normalmetadata m left join mdauthor a on a.uuid=m.uuid where 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.status=1 and a.uuid in (select uuid from en.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->pageID='author-unverified';
$this->view->ac='unverified';
if ($id) {
//列出数据
$sql="select individual as username from en.responsible where id=?";
$this->view->author=$this->db->fetchRow($sql,array($id));
$sql="select distinct m.* from en.normalmetadata m left join en.role r on m.uuid=r.uuid left join en.responsible s on r.resid=s.id where 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 en.responsible left join en.role on role.resid=responsible.id
|
||||||
$ac = $this->_request->getParam('ac');
|
where 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;
}
}
}
|
||||||
$id = (int)$this->_request->getParam('id');
|
|
||||||
if ($ac=='verified') {
|
|
||||||
//已经认证过的数据作者
|
|
||||||
$this->view->pageID='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 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.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->pageID='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.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.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 listAction()
|
function listAction()
|
||||||
{
|
{
|
||||||
$sql="select m.uuid,m.title,m.citation,m.doi,d.doi as datadoi,d.ts_published,d.authors,d.publisher,date_part('year',d.ts_published) as publish_year from normalmetadata m
|
$sql="select m.uuid,m.title,m.citation,m.doi,d.doi as datadoi,d.ts_published,d.authors,d.publisher,date_part('year',d.ts_published) as publish_year from en.normalmetadata m
|
||||||
left join mdstatus s on m.uuid=s.uuid
|
left join mdstatus s on m.uuid=s.uuid
|
||||||
left join datadoi d on d.uuid=m.uuid
|
left join datadoi d on d.uuid=m.uuid
|
||||||
where s.status>4
|
where s.status>4
|
||||||
|
@ -2242,16 +1917,16 @@ where s.code in ('heihe','water','hiwater','westee'))
|
||||||
order by m.title";
|
order by m.title";
|
||||||
$this->view->metadata=$this->db->fetchAll($sql);
|
$this->view->metadata=$this->db->fetchAll($sql);
|
||||||
$sql="select m.uuid,m.title,m.citation,m.doi,d.doi as datadoi,d.ts_published,d.authors,d.publisher,date_part('year',d.ts_published) as publish_year
|
$sql="select m.uuid,m.title,m.citation,m.doi,d.doi as datadoi,d.ts_published,d.authors,d.publisher,date_part('year',d.ts_published) as publish_year
|
||||||
from normalmetadata m left join datadoi d on d.uuid=m.uuid left join mdstatus s on m.uuid=s.uuid where s.status>4 and m.title like '黑河综合遥感联合试验%' order by title";
|
from en.normalmetadata m left join datadoi d on d.uuid=m.uuid left join mdstatus s on m.uuid=s.uuid where s.status>4 and m.title like '黑河综合遥感联合试验%' order by title";
|
||||||
$this->view->water=$this->db->fetchAll($sql);
|
$this->view->water=$this->db->fetchAll($sql);
|
||||||
$sql="select m.uuid,m.title,m.citation ,m.doi,d.doi as datadoi,d.ts_published,d.authors,d.publisher,date_part('year',d.ts_published) as publish_year
|
$sql="select m.uuid,m.title,m.citation ,m.doi,d.doi as datadoi,d.ts_published,d.authors,d.publisher,date_part('year',d.ts_published) as publish_year
|
||||||
from normalmetadata m left join datadoi d on d.uuid=m.uuid left join mdstatus s on m.uuid=s.uuid where s.status>0 and m.title like '黑河生态水文遥感试验%' order by title";
|
from en.normalmetadata m left join datadoi d on d.uuid=m.uuid left join mdstatus s on m.uuid=s.uuid where s.status>0 and m.title like '黑河生态水文遥感试验%' order by title";
|
||||||
$this->view->hiwater=$this->db->fetchAll($sql);
|
$this->view->hiwater=$this->db->fetchAll($sql);
|
||||||
$sql="select m.uuid,m.title,m.citation ,m.doi,d.doi as datadoi,d.ts_published,d.authors,d.publisher,date_part('year',d.ts_published) as publish_year
|
$sql="select m.uuid,m.title,m.citation ,m.doi,d.doi as datadoi,d.ts_published,d.authors,d.publisher,date_part('year',d.ts_published) as publish_year
|
||||||
from normalmetadata m left join datadoi d on d.uuid=m.uuid left join mdstatus s on m.uuid=s.uuid left join datasource ds on ds.uuid=m.uuid left join source sr on ds.sourceid=sr.id where sr.code='heihe' and s.status>0 and m.title not like '黑河生态水文遥感试验%' order by title";
|
from en.normalmetadata m left join datadoi d on d.uuid=m.uuid left join mdstatus s on m.uuid=s.uuid left join datasource ds on ds.uuid=m.uuid left join source sr on ds.sourceid=sr.id where sr.code='heihe' and s.status>0 and m.title not like '黑河生态水文遥感试验%' order by title";
|
||||||
$this->view->heihe=$this->db->fetchAll($sql);
|
$this->view->heihe=$this->db->fetchAll($sql);
|
||||||
$sql="select m.uuid,m.title,m.citation ,m.doi,d.doi as datadoi,d.ts_published,d.authors,d.publisher,date_part('year',d.ts_published) as publish_year
|
$sql="select m.uuid,m.title,m.citation ,m.doi,d.doi as datadoi,d.ts_published,d.authors,d.publisher,date_part('year',d.ts_published) as publish_year
|
||||||
from normalmetadata m left join datadoi d on d.uuid=m.uuid left join mdstatus s on m.uuid=s.uuid left join datasource ds on ds.uuid=m.uuid left join source sr on ds.sourceid=sr.id where sr.code='westee' and s.status>4 order by title";
|
from en.normalmetadata m left join datadoi d on d.uuid=m.uuid left join mdstatus s on m.uuid=s.uuid left join datasource ds on ds.uuid=m.uuid left join source sr on ds.sourceid=sr.id where sr.code='westee' and s.status>4 order by title";
|
||||||
$this->view->westee=$this->db->fetchAll($sql);
|
$this->view->westee=$this->db->fetchAll($sql);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -47,7 +47,7 @@ class ServiceController extends Zend_Controller_Action
|
||||||
} else {
|
} else {
|
||||||
$where=$this->db->quoteInto('m.id = ?',$id);
|
$where=$this->db->quoteInto('m.id = ?',$id);
|
||||||
}
|
}
|
||||||
$sql="select t.* from thumbnail t left join metadata m on t.id=m.id where ".$where;
|
$sql="select t.* from en.thumbnail t left join en.metadata m on t.id=m.id where ".$where;
|
||||||
$thumb=$this->db->fetchRow($sql);
|
$thumb=$this->db->fetchRow($sql);
|
||||||
$this->_helper->layout->disableLayout();
|
$this->_helper->layout->disableLayout();
|
||||||
$this->_helper->viewRenderer->setNoRender();
|
$this->_helper->viewRenderer->setNoRender();
|
||||||
|
@ -76,7 +76,7 @@ class ServiceController extends Zend_Controller_Action
|
||||||
} else {
|
} else {
|
||||||
$where=$this->db->quoteInto('m.id = ?',$id);
|
$where=$this->db->quoteInto('m.id = ?',$id);
|
||||||
}
|
}
|
||||||
$sql="select g.id as gid,t.filename,t.filetype from geonetworkmetadata g left join metadata m on g.uuid=m.uuid left join thumbnail t on t.id=m.id where ".$where;
|
$sql="select g.id as gid,t.filename,t.filetype from en.geonetworkmetadata g left join en.metadata m on g.uuid=m.uuid left join thumbnail t on t.id=m.id where ".$where;
|
||||||
$thumb=$this->db->fetchRow($sql);
|
$thumb=$this->db->fetchRow($sql);
|
||||||
$this->_helper->layout->disableLayout();
|
$this->_helper->layout->disableLayout();
|
||||||
$this->_helper->viewRenderer->setNoRender();
|
$this->_helper->viewRenderer->setNoRender();
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
<?php
|
<?php
|
||||||
$this->headTitle($this->config->title->site);
|
$this->headTitle($this->config->title->site);
|
||||||
$this->headTitle('发展历史');
|
$this->headTitle('CARD History');
|
||||||
$this->headTitle()->setSeparator(' - ');
|
$this->headTitle()->setSeparator(' - ');
|
||||||
$this->headLink()->appendStylesheet('/css/about.css');
|
$this->headLink()->appendStylesheet('/css/about.css');
|
||||||
$this->breadcrumb('<a href="/">首页</a>');
|
$this->breadcrumb('<a href="/">Home</a>');
|
||||||
$this->breadcrumb('<a href="/about">关于本站</a>');
|
$this->breadcrumb('<a href="/about">About Us</a>');
|
||||||
$this->breadcrumb('发展历史');
|
$this->breadcrumb('CARD History');
|
||||||
$this->breadcrumb()->setSeparator(' > ');
|
$this->breadcrumb()->setSeparator(' > ');
|
||||||
?>
|
?>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
|
@ -14,7 +14,7 @@ $this->breadcrumb()->setSeparator(' > ');
|
||||||
</div>
|
</div>
|
||||||
<div class="span9">
|
<div class="span9">
|
||||||
<div id="content">
|
<div id="content">
|
||||||
<h2>发展历史</h2>
|
<h2>CARD History</h2>
|
||||||
<?= $this->item['body']; ?>
|
<?= $this->item['body']; ?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
<?php
|
<?php
|
||||||
$this->headTitle($this->config->title->site);
|
$this->headTitle($this->config->title->site);
|
||||||
$this->headTitle('联系我们');
|
$this->headTitle('Contact');
|
||||||
$this->headTitle()->setSeparator(' - ');
|
$this->headTitle()->setSeparator(' - ');
|
||||||
$this->headLink()->appendStylesheet('/css/about.css');
|
$this->headLink()->appendStylesheet('/css/about.css');
|
||||||
$this->breadcrumb('<a href="/">首页</a>');
|
$this->breadcrumb('<a href="/">Home</a>');
|
||||||
$this->breadcrumb('<a href="/about">关于本站</a>');
|
$this->breadcrumb('<a href="/about">About</a>');
|
||||||
$this->breadcrumb('联系我们');
|
$this->breadcrumb('Contact');
|
||||||
$this->breadcrumb()->setSeparator(' > ');
|
$this->breadcrumb()->setSeparator(' > ');
|
||||||
?>
|
?>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
|
@ -14,22 +14,22 @@ $this->breadcrumb()->setSeparator(' > ');
|
||||||
</div>
|
</div>
|
||||||
<div class="span9">
|
<div class="span9">
|
||||||
<div id="content">
|
<div id="content">
|
||||||
<h2>联系我们</h2>
|
<h2>Contact</h2>
|
||||||
<div id="offline">
|
<div id="offline">
|
||||||
<p class="title">离线方式</p>
|
<p class="title">Mailing address:</p>
|
||||||
<p>
|
<p>
|
||||||
中国西部环境与生态科学数据中心<br />
|
Cold and Arid Regions Science Data Center at Lanzhou<br />
|
||||||
中国科学院寒区旱区环境与工程研究所 6#1102<br />
|
Cold and Arid Regions Environmental and Engineering Research Institute, Chinese Academy of Sciences<br />
|
||||||
甘肃省兰州市东岗西路320号<br />
|
Room 6#1102, Donggang West Road 320, Lanzhou, Gansu, China<br />
|
||||||
邮编:730000<br />
|
Zip Code: 730000<br />
|
||||||
E-mail: westdc@lzb.ac.cn<br />
|
E-mail: westdc@lzb.ac.cn<br />
|
||||||
电话: +86-931-4967287<br />
|
Tel: +86-931-4967287<br />
|
||||||
<br />
|
<br />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="online">
|
<div id="online">
|
||||||
<p class="title">在线联系</p>
|
<p class="title">Online Email</p>
|
||||||
<p class="note">请填写以下表单,系统会自动发送到westdc邮箱里</p>
|
<p class="note">Send email via this form to our service mailbox.</p>
|
||||||
<?php echo $this->form; ?>
|
<?php echo $this->form; ?>
|
||||||
|
|
||||||
<?php if (!empty($this->messages)) : ?>
|
<?php if (!empty($this->messages)) : ?>
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
<?php
|
<?php
|
||||||
$this->headTitle($this->config->title->site);
|
$this->headTitle($this->config->title->site);
|
||||||
$this->headTitle('联系我们');
|
$this->headTitle('Use & Copyrights');
|
||||||
$this->headTitle()->setSeparator(' - ');
|
$this->headTitle()->setSeparator(' - ');
|
||||||
$this->headLink()->appendStylesheet('/css/about.css');
|
$this->headLink()->appendStylesheet('/css/about.css');
|
||||||
$this->breadcrumb('<a href="/">首页</a>');
|
$this->breadcrumb('<a href="/">Home</a>');
|
||||||
$this->breadcrumb('<a href="/about">关于本站</a>');
|
$this->breadcrumb('<a href="/about">About</a>');
|
||||||
$this->breadcrumb('联系我们');
|
$this->breadcrumb('Use & Copyrights');
|
||||||
$this->breadcrumb()->setSeparator(' > ');
|
$this->breadcrumb()->setSeparator(' > ');
|
||||||
?>
|
?>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
|
@ -14,7 +14,7 @@ $this->breadcrumb()->setSeparator(' > ');
|
||||||
</div>
|
</div>
|
||||||
<div class="span9">
|
<div class="span9">
|
||||||
<div id="content">
|
<div id="content">
|
||||||
<h2>数据与版权</h2>
|
<h2>Use & Copyrights</h2>
|
||||||
<?= $this->item['body']; ?>
|
<?= $this->item['body']; ?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
<?php
|
<?php
|
||||||
$this->headTitle($this->config->title->site);
|
$this->headTitle($this->config->title->site);
|
||||||
$this->headTitle('关于我们');
|
$this->headTitle('Abut Us');
|
||||||
$this->headTitle()->setSeparator(' - ');
|
$this->headTitle()->setSeparator(' - ');
|
||||||
$this->headLink()->appendStylesheet('/css/about.css');
|
$this->headLink()->appendStylesheet('/css/about.css');
|
||||||
$this->breadcrumb('<a href="/">首页</a>');
|
$this->breadcrumb('<a href="/">Home</a>');
|
||||||
$this->breadcrumb('关于我们');
|
$this->breadcrumb('Abut Us');
|
||||||
$this->breadcrumb()->setSeparator(' > ');
|
$this->breadcrumb()->setSeparator(' > ');
|
||||||
?>
|
?>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
|
@ -13,7 +13,7 @@ $this->breadcrumb()->setSeparator(' > ');
|
||||||
</div>
|
</div>
|
||||||
<div class="span9">
|
<div class="span9">
|
||||||
<div id="content">
|
<div id="content">
|
||||||
<h2>中心简介</h2>
|
<h2>Mission & Goals</h2>
|
||||||
<?= $this->item['body']; ?>
|
<?= $this->item['body']; ?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -1,15 +1,11 @@
|
||||||
<div class="sidebar-nav bs-review-nav">
|
<div class="sidebar-nav bs-review-nav">
|
||||||
<ul class="nav nav-list bs-review-sidenav">
|
<ul class="nav nav-list bs-review-sidenav">
|
||||||
<li id="Nav-about-index"><a href="/about/"><i class="icon-chevron-right"></i>中心简介</a></li>
|
<li id="Nav-about-index"><a href="/about/"><i class="icon-chevron-right"></i>Mission & Goals</a></li>
|
||||||
<li id="Nav-about-background"><a href="/about/background"><i class="icon-chevron-right"></i>发展历史</a></li>
|
<li id="Nav-about-background"><a href="/about/background"><i class="icon-chevron-right"></i>Background</a></li>
|
||||||
<li id="Nav-about-sponsors"><a href="/about/sponsors"><i class="icon-chevron-right"></i>支持项目</a></li>
|
<li id="Nav-about-sponsors"><a href="/about/sponsors"><i class="icon-chevron-right"></i>Sponsors</a></li>
|
||||||
<li id="Nav-about-honor"><a href="/about/honor"><i class="icon-chevron-right"></i>服务成效</a></li>
|
<li id="Nav-about-copyright"><a href="/about/copyright"><i class="icon-chevron-right"></i>Use & Copyrights</a></li>
|
||||||
<li id="Nav-about-publication"><a href="/about/publication"><i class="icon-chevron-right"></i>成果发表</a></li>
|
<li id="Nav-about-terms"><a href="/about/terms"><i class="icon-chevron-right"></i>Terms</a></li>
|
||||||
<li id="Nav-about-copyright"><a href="/about/copyright"><i class="icon-chevron-right"></i>数据与版权</a></li>
|
<li id="Nav-about-supportus"><a href="/about/supportus"><i class="icon-chevron-right"></i>Support Us</a></li>
|
||||||
<li id="Nav-about-legal"><a href="/about/legal"><i class="icon-chevron-right"></i>隐私政策</a></li>
|
<li id="Nav-about-contact"><a href="/about/contact"><i class="icon-chevron-right"></i>Contact</a></li>
|
||||||
<li id="Nav-about-terms"><a href="/about/terms"><i class="icon-chevron-right"></i>使用条款</a></li>
|
|
||||||
<li id="Nav-about-supportus"><a href="/about/supportus"><i class="icon-chevron-right"></i>支持我们</a></li>
|
|
||||||
<li id="Nav-about-contact"><a href="/about/contact"><i class="icon-chevron-right"></i>联系我们</a></li>
|
|
||||||
<li id="Nav-about-link"><a href="/about/link"><i class="icon-chevron-right"></i>友情链接</a></li>
|
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
|
@ -1,11 +1,11 @@
|
||||||
<?php
|
<?php
|
||||||
$this->headTitle($this->config->title->site);
|
$this->headTitle($this->config->title->site);
|
||||||
$this->headTitle('支持项目');
|
$this->headTitle('Sponsors');
|
||||||
$this->headTitle()->setSeparator(' - ');
|
$this->headTitle()->setSeparator(' - ');
|
||||||
$this->headLink()->appendStylesheet('/css/about.css');
|
$this->headLink()->appendStylesheet('/css/about.css');
|
||||||
$this->breadcrumb('<a href="/">首页</a>');
|
$this->breadcrumb('<a href="/">Home</a>');
|
||||||
$this->breadcrumb('<a href="/about">关于本站</a>');
|
$this->breadcrumb('<a href="/about">About</a>');
|
||||||
$this->breadcrumb('支持项目');
|
$this->breadcrumb('Sponsors');
|
||||||
$this->breadcrumb()->setSeparator(' > ');
|
$this->breadcrumb()->setSeparator(' > ');
|
||||||
?>
|
?>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
|
@ -14,7 +14,7 @@ $this->breadcrumb()->setSeparator(' > ');
|
||||||
</div>
|
</div>
|
||||||
<div class="span9">
|
<div class="span9">
|
||||||
<div id="content">
|
<div id="content">
|
||||||
<h2>支持项目</h2>
|
<h2>Sponsors</h2>
|
||||||
<?= $this->item['body']; ?>
|
<?= $this->item['body']; ?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
<?php
|
<?php
|
||||||
$this->headTitle($this->config->title->site);
|
$this->headTitle($this->config->title->site);
|
||||||
$this->headTitle('支持我们');
|
$this->headTitle('Support Us');
|
||||||
$this->headTitle()->setSeparator(' - ');
|
$this->headTitle()->setSeparator(' - ');
|
||||||
$this->headLink()->appendStylesheet('/css/about.css');
|
$this->headLink()->appendStylesheet('/css/about.css');
|
||||||
$this->breadcrumb('<a href="/">首页</a>');
|
$this->breadcrumb('<a href="/">Home</a>');
|
||||||
$this->breadcrumb('<a href="/about">关于本站</a>');
|
$this->breadcrumb('<a href="/about">About</a>');
|
||||||
$this->breadcrumb('支持我们');
|
$this->breadcrumb('Support Us');
|
||||||
$this->breadcrumb()->setSeparator(' > ');
|
$this->breadcrumb()->setSeparator(' > ');
|
||||||
?>
|
?>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
|
@ -14,7 +14,7 @@ $this->breadcrumb()->setSeparator(' > ');
|
||||||
</div>
|
</div>
|
||||||
<div class="span9">
|
<div class="span9">
|
||||||
<div id="content">
|
<div id="content">
|
||||||
<h2>支持我们</h2>
|
<h2>Support Us</h2>
|
||||||
<?= $this->item['body']; ?>
|
<?= $this->item['body']; ?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
<?php
|
<?php
|
||||||
$this->headTitle($this->config->title->site);
|
$this->headTitle($this->config->title->site);
|
||||||
$this->headTitle('使用条款和免责申明');
|
$this->headTitle('Terms');
|
||||||
$this->headTitle()->setSeparator(' - ');
|
$this->headTitle()->setSeparator(' - ');
|
||||||
$this->headLink()->appendStylesheet('/css/about.css');
|
$this->headLink()->appendStylesheet('/css/about.css');
|
||||||
$this->breadcrumb('<a href="/">首页</a>');
|
$this->breadcrumb('<a href="/">Home</a>');
|
||||||
$this->breadcrumb('<a href="/about">关于本站</a>');
|
$this->breadcrumb('<a href="/about">About</a>');
|
||||||
$this->breadcrumb('使用条款和免责申明');
|
$this->breadcrumb('Terms');
|
||||||
$this->breadcrumb()->setSeparator(' > ');
|
$this->breadcrumb()->setSeparator(' > ');
|
||||||
?>
|
?>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
|
@ -14,7 +14,7 @@ $this->breadcrumb()->setSeparator(' > ');
|
||||||
</div>
|
</div>
|
||||||
<div class="span9">
|
<div class="span9">
|
||||||
<div id="content">
|
<div id="content">
|
||||||
<h2>使用条款和免责申明</h2>
|
<h2>Terms</h2>
|
||||||
<?= $this->item['body']; ?>
|
<?= $this->item['body']; ?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -3,8 +3,8 @@ $config = Zend_Registry::get('config');
|
||||||
$this->headTitle($config->title->site);
|
$this->headTitle($config->title->site);
|
||||||
$this->headTitle($this->infos['title']);
|
$this->headTitle($this->infos['title']);
|
||||||
$this->headTitle()->setSeparator(' - ');
|
$this->headTitle()->setSeparator(' - ');
|
||||||
$this->breadcrumb('<a href="/">首页</a>');
|
$this->breadcrumb('<a href="/">Home</a>');
|
||||||
$this->breadcrumb('<a href="/archives/">新闻中心</a>');
|
$this->breadcrumb('<a href="/archives/">News & Events</a>');
|
||||||
$this->breadcrumb('<a href="/archives/'.$this->ptype.'/'.$this->type.'">'.$this->infos['typename'].'</a>');
|
$this->breadcrumb('<a href="/archives/'.$this->ptype.'/'.$this->type.'">'.$this->infos['typename'].'</a>');
|
||||||
$this->breadcrumb($this->infos['title']);
|
$this->breadcrumb($this->infos['title']);
|
||||||
$this->breadcrumb()->setSeparator(' > ');
|
$this->breadcrumb()->setSeparator(' > ');
|
||||||
|
@ -17,7 +17,7 @@ $this->headLink()->appendStylesheet('/css/news.css');
|
||||||
<div class="span3">
|
<div class="span3">
|
||||||
<div class="bs-review-nav sidebar-nav">
|
<div class="bs-review-nav sidebar-nav">
|
||||||
<ul class="nav nav-list bs-review-sidenav">
|
<ul class="nav nav-list bs-review-sidenav">
|
||||||
<li><a href="/archives"><i class="icon-chevron-right"></i>新闻中心</a></li>
|
<li><a href="/archives"><i class="icon-chevron-right"></i>News & Events</a></li>
|
||||||
<?php
|
<?php
|
||||||
if(count($this->types))
|
if(count($this->types))
|
||||||
{
|
{
|
||||||
|
@ -25,7 +25,7 @@ $this->headLink()->appendStylesheet('/css/news.css');
|
||||||
{
|
{
|
||||||
$haed = "";
|
$haed = "";
|
||||||
if(!empty($v[$this->deepField])) {$haed = str_repeat(' ',$v[$this->deepField]);}
|
if(!empty($v[$this->deepField])) {$haed = str_repeat(' ',$v[$this->deepField]);}
|
||||||
echo '<li'.($v['code']==$this->type?' class="active"':'').'><a href="'.$v['url'].'"><i class="icon-chevron-right"></i>'.$haed.$v['title'].'</a></li>';
|
echo '<li'.($v['code']==$this->type?' class="active"':'').'><a href="'.$v['url'].'"><i class="icon-chevron-right"></i>'.$haed.$v['title_en'].'</a></li>';
|
||||||
$haed = "";
|
$haed = "";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -35,10 +35,10 @@ $this->headLink()->appendStylesheet('/css/news.css');
|
||||||
</div>
|
</div>
|
||||||
<div class="span9" id="archive_body">
|
<div class="span9" id="archive_body">
|
||||||
<h3 class="text-center"><?php echo $this->infos['title'];?></h3>
|
<h3 class="text-center"><?php echo $this->infos['title'];?></h3>
|
||||||
<div class="text-center">[<?php echo date("Y-m-d",strtotime($this->infos['ts_published']));?>] 来源 : <?php echo $this->infos['source'];?></div>
|
<div class="text-center">[<?php echo date("Y-m-d",strtotime($this->infos['ts_published']));?>] From : <?php echo $this->infos['source'];?></div>
|
||||||
<?php if(!empty($this->mdinfo)){?>
|
<?php if(!empty($this->mdinfo)){?>
|
||||||
<?php foreach($this->mdinfo as $v){ ?>
|
<?php foreach($this->mdinfo as $v){ ?>
|
||||||
<div class="info">相关数据:《<a href="/data/<?= $v['uuid']?>"><?= $v['title']?></a>》</div>
|
<div class="info">Related data: <a href="/data/<?= $v['uuid']?>"><?= $v['title']?></a></div>
|
||||||
<?php } } ?>
|
<?php } } ?>
|
||||||
<div class="media">
|
<div class="media">
|
||||||
<div class="pull-left">
|
<div class="pull-left">
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
<?php
|
<?php
|
||||||
$this->headTitle($this->config->title->site);
|
$this->headTitle($this->config->title->site);
|
||||||
$this->headTitle('新闻中心');
|
$this->headTitle('News & Events');
|
||||||
$this->headTitle()->setSeparator(' - ');
|
$this->headTitle()->setSeparator(' - ');
|
||||||
$this->breadcrumb('<a href="/">首页</a>');
|
$this->breadcrumb('<a href="/">Home</a>');
|
||||||
$this->breadcrumb('新闻中心');
|
$this->breadcrumb('News & Events');
|
||||||
$this->breadcrumb()->setSeparator(' > ');
|
$this->breadcrumb()->setSeparator(' > ');
|
||||||
$this->headLink()->appendStylesheet('/css/news.css');
|
$this->headLink()->appendStylesheet('/css/news.css');
|
||||||
$this->theme->AppendPlus($this,'masonry');
|
$this->theme->AppendPlus($this,'masonry');
|
||||||
|
@ -12,7 +12,7 @@ $this->theme->AppendPlus($this,'masonry');
|
||||||
<div class="span3">
|
<div class="span3">
|
||||||
<div class="sidebar-nav bs-review-nav">
|
<div class="sidebar-nav bs-review-nav">
|
||||||
<ul class="nav nav-list bs-review-sidenav">
|
<ul class="nav nav-list bs-review-sidenav">
|
||||||
<li class="active"><a href="/archives"><i class="icon-chevron-right"></i>新闻中心</a></li>
|
<li class="active"><a href="/archives"><i class="icon-chevron-right"></i>News & Events</a></li>
|
||||||
<?php
|
<?php
|
||||||
if(count($this->types))
|
if(count($this->types))
|
||||||
{
|
{
|
||||||
|
@ -20,7 +20,7 @@ $this->theme->AppendPlus($this,'masonry');
|
||||||
{
|
{
|
||||||
$haed = "";
|
$haed = "";
|
||||||
if(!empty($v[$this->deepField])) {$haed = str_repeat(' ',$v[$this->deepField]);}
|
if(!empty($v[$this->deepField])) {$haed = str_repeat(' ',$v[$this->deepField]);}
|
||||||
echo '<li><a href="'.$v['url'].'"><i class="icon-chevron-right"></i>'.$haed.$v['title'].'</a></li>';
|
echo '<li><a href="'.$v['url'].'"><i class="icon-chevron-right"></i>'.$haed.$v['title_en'].'</a></li>';
|
||||||
$haed = "";
|
$haed = "";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
<?php
|
<?php
|
||||||
$this->headTitle($this->config->title->site);
|
$this->headTitle($this->config->title->site);
|
||||||
$this->headTitle('新闻中心');
|
$this->headTitle('News & Events');
|
||||||
$this->headTitle()->setSeparator(' - ');
|
$this->headTitle()->setSeparator(' - ');
|
||||||
$this->breadcrumb('<a href="/">首页</a>');
|
$this->breadcrumb('<a href="/">Home</a>');
|
||||||
$this->breadcrumb('<a href="/archives/">新闻中心</a>');
|
$this->breadcrumb('<a href="/archives/">News & Events</a>');
|
||||||
$this->breadcrumb($this->title);
|
$this->breadcrumb($this->title);
|
||||||
$this->breadcrumb()->setSeparator(' > ');
|
$this->breadcrumb()->setSeparator(' > ');
|
||||||
$this->headLink()->appendStylesheet('/css/news.css');
|
$this->headLink()->appendStylesheet('/css/news.css');
|
||||||
|
@ -12,7 +12,7 @@ $this->headLink()->appendStylesheet('/css/news.css');
|
||||||
<div class="span3">
|
<div class="span3">
|
||||||
<div class="bs-review-nav sidebar-nav">
|
<div class="bs-review-nav sidebar-nav">
|
||||||
<ul class="nav nav-list bs-review-sidenav">
|
<ul class="nav nav-list bs-review-sidenav">
|
||||||
<li><a href="/archives"><i class="icon-chevron-right"></i>新闻中心</a></li>
|
<li><a href="/archives"><i class="icon-chevron-right"></i>News & Events</a></li>
|
||||||
<?php
|
<?php
|
||||||
if(count($this->types))
|
if(count($this->types))
|
||||||
{
|
{
|
||||||
|
@ -20,7 +20,7 @@ $this->headLink()->appendStylesheet('/css/news.css');
|
||||||
{
|
{
|
||||||
$haed = "";
|
$haed = "";
|
||||||
if(!empty($v[$this->deepField])) {$haed = str_repeat(' ',$v[$this->deepField]);}
|
if(!empty($v[$this->deepField])) {$haed = str_repeat(' ',$v[$this->deepField]);}
|
||||||
echo '<li'.($v['code']==$this->type?' class="active"':'').'><a href="'.$v['url'].'"><i class="icon-chevron-right"></i>'.$haed.$v['title'].'</a></li>';
|
echo '<li'.($v['code']==$this->type?' class="active"':'').'><a href="'.$v['url'].'"><i class="icon-chevron-right"></i>'.$haed.$v['title_en'].'</a></li>';
|
||||||
$haed = "";
|
$haed = "";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -60,7 +60,7 @@ $this->headLink()->appendStylesheet('/css/news.css');
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
echo '暂无数据';
|
echo 'No news now.';
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
|
@ -14,7 +14,7 @@ $this->nav[] = array('link'=>"/data/category",'title'=>'By Categories');
|
||||||
<h4>ISO 19115 Categories</h4>
|
<h4>ISO 19115 Categories</h4>
|
||||||
<ul class="nav nav-pills">
|
<ul class="nav nav-pills">
|
||||||
<?php foreach($this->category as $cg) : ?>
|
<?php foreach($this->category as $cg) : ?>
|
||||||
<li <?php if (!empty($this->metadata)) : if($cg['name'] == $this->codename || $cg['name_zh'] == $this->codename ){?> class="active" <?php } endif; ?>>
|
<li <?php if (!empty($this->metadata)) : if($cg['name'] == $this->codename || $cg['name'] == $this->codename ){?> class="active" <?php } endif; ?>>
|
||||||
<a href='/data/category/code/<?php echo $cg['code']; ?>'><?php print($cg['name']); ?>
|
<a href='/data/category/code/<?php echo $cg['code']; ?>'><?php print($cg['name']); ?>
|
||||||
<span class="note">(<?php echo $cg['count']; ?>)</span></a></li>
|
<span class="note">(<?php echo $cg['count']; ?>)</span></a></li>
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
|
|
|
@ -44,7 +44,7 @@ $this->theme->AppendPlus($this,'colorbox');
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
<div class="pagenavi"><?= $this->paginator; ?></div>
|
<div class="pagenavi"><?= $this->paginator; ?></div>
|
||||||
<?php else : ?>
|
<?php else : ?>
|
||||||
暂无对应信息。
|
No metadata.
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<script type="text/javascript" charset="utf-8">
|
<script type="text/javascript" charset="utf-8">
|
||||||
$(document).ready(function(){
|
$(document).ready(function(){
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
<?php
|
<?php
|
||||||
$this->headTitle($this->config->title->site);
|
$this->headTitle($this->config->title->site);
|
||||||
$this->headTitle($this->config->title->data);
|
$this->headTitle($this->config->title->data);
|
||||||
$this->headTitle('下载');
|
$this->headTitle('Download');
|
||||||
$this->headTitle()->setSeparator(' - ');
|
$this->headTitle()->setSeparator(' - ');
|
||||||
$this->breadcrumb('<a href="/">首页</a>');
|
$this->breadcrumb('<a href="/">Home</a>');
|
||||||
$this->breadcrumb('<a href="/data">'.$this->config->title->data.'</a>');
|
$this->breadcrumb('<a href="/data">'.$this->config->title->data.'</a>');
|
||||||
$this->breadcrumb('下载');
|
$this->breadcrumb('Download');
|
||||||
$this->breadcrumb()->setSeparator(' > ');
|
$this->breadcrumb()->setSeparator(' > ');
|
||||||
?>
|
?>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
|
@ -25,16 +25,10 @@
|
||||||
</fieldset>
|
</fieldset>
|
||||||
|
|
||||||
<fieldset><legend>FTP Usage</legend>
|
<fieldset><legend>FTP Usage</legend>
|
||||||
帐号信息如下:<ul><li>FTP的用户名:<?php echo $this->username; ?></li>
|
Your FTP account: <ul><li>Username: <?php echo $this->username; ?></li>
|
||||||
<li>Password:<?php echo $this->userpass; ?></li>
|
<li>Password:<?php echo $this->userpass; ?></li>
|
||||||
<li>Active Time:<?php echo $this->ftptime; ?></li>
|
<li>Active Time:<?php echo $this->ftptime; ?></li>
|
||||||
</ul>
|
</ul>
|
||||||
<?php if ($this->md['host']=='ftp.westgis.ac.cn') : ?>
|
|
||||||
<p class="text-error">请注意,此FTP需要在登陆后手工输入目录地址!</p>
|
|
||||||
<?php endif; ?>
|
|
||||||
<p>FTP是一种常用的文件传输协议,西部数据中心推荐您使用使用开源的<a href="http://filezilla-project.org">FileZilla</a>软件来进行数据下载,您也可以使用您自己喜欢的FTP客户端来进行数据下载。</p>
|
|
||||||
<p>在使用FTP中遇到问题,可以参考:<a href="/archives/news/localnews/archive-7.html">数据的FTP下载问题</a></p>
|
|
||||||
<img src="/images/filezilla-westdc.png" alt="以FileZilla演示如何下载数据" />
|
|
||||||
</fieldset>
|
</fieldset>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
|
@ -1,9 +1,9 @@
|
||||||
<?php
|
<?php
|
||||||
$this->headTitle($this->config->title->site);
|
$this->headTitle($this->config->title->site);
|
||||||
$this->headTitle($this->config->title->data);
|
$this->headTitle($this->config->title->data);
|
||||||
$this->headTitle('支持项目');
|
$this->headTitle('Funding');
|
||||||
$this->headTitle()->setSeparator(' - ');
|
$this->headTitle()->setSeparator(' - ');
|
||||||
$this->nav[] = array('link'=>"/data/fund",'title'=>'支持项目浏览');
|
$this->nav[] = array('link'=>"/data/fund",'title'=>'Funding');
|
||||||
?>
|
?>
|
||||||
<div class='row-fluid'>
|
<div class='row-fluid'>
|
||||||
<?= $this->render('breadcrumbs.phtml') ?>
|
<?= $this->render('breadcrumbs.phtml') ?>
|
||||||
|
@ -14,10 +14,10 @@ $this->nav[] = array('link'=>"/data/fund",'title'=>'支持项目浏览');
|
||||||
<div class="pagenavi"><?= $this->paginator; ?></div>
|
<div class="pagenavi"><?= $this->paginator; ?></div>
|
||||||
<?php foreach($this->paginator as $md) : ?>
|
<?php foreach($this->paginator as $md) : ?>
|
||||||
<div class="well">
|
<div class="well">
|
||||||
<h4><a href="/data/fund/id/<?php echo $md['id'];?>"><?php echo $this->escape($md['title']);?></a></h4>
|
<h4><a href="/data/fund/id/<?php echo $md['id'];?>"><?php echo $this->escape($md['title_en']);?></a></h4>
|
||||||
编号:<?php echo $md['fund_id']; ?> | 类型:<?php echo $md['fund_type']; ?> | 提供数据集:<?php echo $md['datacount']; ?>条,<?php echo $md['filesize']>5000?(round($md['filesize']/1024,2)).'GB':$md['filesize'].'MB'; ?></div>
|
No. <a href="/data/fund/id/<?php echo $md['id'];?>"><?php echo $md['fund_id']; ?></a> | Type: <?php echo $md['fund_type_en']; ?> | Datasets: <?php echo $md['datacount']; ?>,Total <?php echo $md['filesize']>5000?(round($md['filesize']/1024,2)).'GB':$md['filesize'].'MB'; ?></div>
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
<div class="pagenavi"><?= $this->paginator; ?></div>
|
<div class="pagenavi"><?= $this->paginator; ?></div>
|
||||||
<?php else : ?>
|
<?php else : ?>
|
||||||
暂无对应信息。
|
No metadata.
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
<?php
|
<?php
|
||||||
$this->headTitle($this->config->title->site);
|
$this->headTitle($this->config->title->site);
|
||||||
$this->headTitle($this->config->title->data);
|
$this->headTitle($this->config->title->data);
|
||||||
$this->headTitle('支持项目');
|
$this->headTitle('Funding');
|
||||||
$this->headTitle()->setSeparator(' - ');
|
$this->headTitle()->setSeparator(' - ');
|
||||||
$this->nav[] = array('link'=>"/data/fund",'title'=>'支持项目浏览');
|
$this->nav[] = array('link'=>"/data/fund",'title'=>'Funding');
|
||||||
$this->theme->AppendPlus($this,'colorbox');
|
$this->theme->AppendPlus($this,'colorbox');
|
||||||
?>
|
?>
|
||||||
<div class='row-fluid'>
|
<div class='row-fluid'>
|
||||||
|
@ -11,8 +11,8 @@ $this->theme->AppendPlus($this,'colorbox');
|
||||||
<?= $this->partial('data/tools.phtml'); ?>
|
<?= $this->partial('data/tools.phtml'); ?>
|
||||||
</div>
|
</div>
|
||||||
<div class="well">
|
<div class="well">
|
||||||
<h4><a href="/data/fund/id/<?php echo $this->fund['id'];?>"><?php echo $this->escape($this->fund['title']);?></a></h4>
|
<h4><a href="/data/fund/id/<?php echo $this->fund['id'];?>"><?php echo $this->escape($this->fund['title_en']);?></a></h4>
|
||||||
编号:<?php echo $this->fund['fund_id']; ?> | Type: <?php echo $this->fund['fund_type']; ?>
|
No. <?php echo $this->fund['fund_id']; ?> | Type: <?php echo $this->fund['fund_type_en']; ?>
|
||||||
</div>
|
</div>
|
||||||
<?php if (!empty($this->paginator)) : ?>
|
<?php if (!empty($this->paginator)) : ?>
|
||||||
<hr />
|
<hr />
|
||||||
|
@ -30,7 +30,7 @@ $this->theme->AppendPlus($this,'colorbox');
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
<div class="pagenavi"><?= $this->paginator; ?></div>
|
<div class="pagenavi"><?= $this->paginator; ?></div>
|
||||||
<?php else : ?>
|
<?php else : ?>
|
||||||
暂无对应信息。
|
No information.
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<script type="text/javascript" charset="utf-8">
|
<script type="text/javascript" charset="utf-8">
|
||||||
$(document).ready(function(){
|
$(document).ready(function(){
|
||||||
|
|
|
@ -12,8 +12,6 @@ $this->headTitle()->setSeparator(' - ');
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="span12">
|
<div class="span12">
|
||||||
<h4><i class="icon-folder-open"></i>Data Collection</h4>
|
<h4><i class="icon-folder-open"></i>Data Collection</h4>
|
||||||
<a class="btn btn-info" href="/heihe/"><i class="icon-folder-open"></i>Heihe</a>
|
|
||||||
<a class="btn btn-info" href="/hiwater"><i class="icon-folder-open"></i>HiWATER</a>
|
|
||||||
<a class="btn btn-info" href="/water"><i class="icon-folder-open"></i>WATER</a>
|
<a class="btn btn-info" href="/water"><i class="icon-folder-open"></i>WATER</a>
|
||||||
</div>
|
</div>
|
||||||
<div class="span12">
|
<div class="span12">
|
||||||
|
@ -49,7 +47,7 @@ $this->headTitle()->setSeparator(' - ');
|
||||||
<h4><a href="/data/tag/keytype/theme"><i class="icon-tags"></i><?php echo $keytypezh[$type]; ?></a></h4>
|
<h4><a href="/data/tag/keytype/theme"><i class="icon-tags"></i><?php echo $keytypezh[$type]; ?></a></h4>
|
||||||
<ul class="unstyled inline">
|
<ul class="unstyled inline">
|
||||||
<?php foreach($this->keywords[$type] as $cg) : ?>
|
<?php foreach($this->keywords[$type] as $cg) : ?>
|
||||||
<li><a href='/data/tag/<?php echo $cg['keyword']; ?>'><i class="icon-tag"></i><?php echo $cg['keyword']; ?></a><span class="note">(<?php echo $cg['count']; ?>)</span></li>
|
<li><a href='/data/tag/key/<?php echo urlencode($cg['keyword']); ?>'><i class="icon-tag"></i><?php echo $cg['keyword']; ?></a><span class="note">(<?php echo $cg['count']; ?>)</span></li>
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
@ -63,7 +61,7 @@ $this->headTitle()->setSeparator(' - ');
|
||||||
<h4><a href="/data/tag/keytype/place"><i class="icon-tags"></i><?php echo $keytypezh[$type]; ?></a></h4>
|
<h4><a href="/data/tag/keytype/place"><i class="icon-tags"></i><?php echo $keytypezh[$type]; ?></a></h4>
|
||||||
<ul class="unstyled inline">
|
<ul class="unstyled inline">
|
||||||
<?php foreach($this->keywords[$type] as $cg) : ?>
|
<?php foreach($this->keywords[$type] as $cg) : ?>
|
||||||
<li><a href='/data/tag/<?php echo $cg['keyword']; ?>'><i class="icon-tag"></i><?php echo $cg['keyword']; ?></a><span class="note">(<?php echo $cg['count']; ?>)</span></li>
|
<li><a href='/data/tag/<?php echo urlencode($cg['keyword']); ?>'><i class="icon-tag"></i><?php echo $cg['keyword']; ?></a><span class="note">(<?php echo $cg['count']; ?>)</span></li>
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
@ -74,7 +72,7 @@ $this->headTitle()->setSeparator(' - ');
|
||||||
<h4><a href="/data/tag/keytype/temporal"><i class="icon-tags"></i><?php echo $keytypezh[$type]; ?></a></h4>
|
<h4><a href="/data/tag/keytype/temporal"><i class="icon-tags"></i><?php echo $keytypezh[$type]; ?></a></h4>
|
||||||
<ul class="unstyled inline">
|
<ul class="unstyled inline">
|
||||||
<?php foreach($this->keywords[$type] as $cg) : ?>
|
<?php foreach($this->keywords[$type] as $cg) : ?>
|
||||||
<li><a href='/data/tag/<?php echo $cg['keyword']; ?>'><i class="icon-tag"></i><?php echo $cg['keyword']; ?></a><span class="note">(<?php echo $cg['count']; ?>)</span></li>
|
<li><a href='/data/tag/<?php echo urlencode($cg['keyword']); ?>'><i class="icon-tag"></i><?php echo $cg['keyword']; ?></a><span class="note">(<?php echo $cg['count']; ?>)</span></li>
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -1,13 +1,13 @@
|
||||||
<?php
|
<?php
|
||||||
$this->headTitle($this->config->title->site);
|
$this->headTitle($this->config->title->site);
|
||||||
$this->headTitle($this->config->title->data);
|
$this->headTitle($this->config->title->data);
|
||||||
$this->headTitle("空间浏览");
|
$this->headTitle("Extent Map Browse");
|
||||||
$this->headTitle()->setSeparator(' - ');
|
$this->headTitle()->setSeparator(' - ');
|
||||||
$this->theme->AppendPlus($this,'jquery_ui');
|
$this->theme->AppendPlus($this,'jquery_ui');
|
||||||
//$this->theme->AppendPlus($this,'google_map_v3');
|
//$this->theme->AppendPlus($this,'google_map_v3');
|
||||||
$this->theme->AppendPlus($this,'colorbox');
|
$this->theme->AppendPlus($this,'colorbox');
|
||||||
$this->headLink()->appendStylesheet('/js/theme/default/style.css');
|
$this->headLink()->appendStylesheet('/js/theme/default/style.css');
|
||||||
$this->nav[] = array('link'=>"/data/map",'title'=>'空间导航');
|
$this->nav[] = array('link'=>"/data/map",'title'=>'Extent Map Browse');
|
||||||
?>
|
?>
|
||||||
<style type="text/css">
|
<style type="text/css">
|
||||||
#data_canvas .well {background:#FFF;}
|
#data_canvas .well {background:#FFF;}
|
||||||
|
@ -22,18 +22,18 @@ $this->nav[] = array('link'=>"/data/map",'title'=>'空间导航');
|
||||||
<button type="button" class="btn" onclick="mapmethods.action(map,1);">Search</button>
|
<button type="button" class="btn" onclick="mapmethods.action(map,1);">Search</button>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
<h4>将地图中范围调整至要搜索数据的范围,然后点击“搜索数据”按钮查看当前范围的所有数据</h4>
|
<h4>Zoom the map to an extent, then click "Search Data" to view the data that locate in the current map extent.</h4>
|
||||||
</div>
|
</div>
|
||||||
<hr />
|
<hr />
|
||||||
<div class="row-fluid">
|
<div class="row-fluid">
|
||||||
<div class="span6">
|
<div class="span6">
|
||||||
<div><button class="btn btn-large btn-block" type="button" id="searchbtn" onclick="mapmethods.action(map,1);">查看数据</button></div>
|
<div><button class="btn btn-large btn-block" type="button" id="searchbtn" onclick="mapmethods.action(map,1);">View data</button></div>
|
||||||
<hr />
|
<hr />
|
||||||
<div id="map_canvas" style="height:500px;">
|
<div id="map_canvas" style="height:500px;">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="span6">
|
<div class="span6">
|
||||||
<div><button class="btn btn-large btn-block" type="button" onclick="$('#data_canvas').html('');">清除列表</button></div>
|
<div><button class="btn btn-large btn-block" type="button" onclick="$('#data_canvas').html('');">Clear list</button></div>
|
||||||
<hr />
|
<hr />
|
||||||
<div class="well well-small" style="height:500px;overflow-y:scroll;">
|
<div class="well well-small" style="height:500px;overflow-y:scroll;">
|
||||||
<ul id="data_canvas" class="unstyled">
|
<ul id="data_canvas" class="unstyled">
|
||||||
|
@ -144,7 +144,7 @@ var mapmethods = {
|
||||||
},
|
},
|
||||||
action : function(map,ajax){
|
action : function(map,ajax){
|
||||||
range = mapmethods.getbounds(map);
|
range = mapmethods.getbounds(map);
|
||||||
$('#searchbtn').html("搜索数据:(" + range['east'] + "," + range['north'] + ") to (" + range['west'] + "," + range['south'] + ")");
|
$('#searchbtn').html("Search Data: (" + range['east'] + "," + range['north'] + ") to (" + range['west'] + "," + range['south'] + ")");
|
||||||
if(ajax == 1)
|
if(ajax == 1)
|
||||||
mapmethods.ajax(range);
|
mapmethods.ajax(range);
|
||||||
//return range;
|
//return range;
|
||||||
|
@ -178,12 +178,12 @@ var mapmethods = {
|
||||||
mapmethods.list(data);
|
mapmethods.list(data);
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
alert('此区域无数据');
|
alert('No data in current extent');
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
'timeout': 15000,
|
'timeout': 15000,
|
||||||
'error': function(){
|
'error': function(){
|
||||||
alert('处理中出现错误,请刷新页面后重试');
|
alert('Errors found!');
|
||||||
},
|
},
|
||||||
'beforeSend':function(){
|
'beforeSend':function(){
|
||||||
btn.attr('onclick','');
|
btn.attr('onclick','');
|
||||||
|
@ -205,8 +205,8 @@ var mapmethods = {
|
||||||
html += '<li class="well well-small">'
|
html += '<li class="well well-small">'
|
||||||
+ '<p><a href="/data/'+data[i].uuid+'">'+data[i].title+'</a></p>'
|
+ '<p><a href="/data/'+data[i].uuid+'">'+data[i].title+'</a></p>'
|
||||||
+ '<div class="input-append">'
|
+ '<div class="input-append">'
|
||||||
+ '<a class="btn" href="javascript:void(0);" onclick="setRectangle('+data[i].east+','+data[i].west+','+data[i].south+','+data[i].north+')" title="在地图上查看数据范围"><i class="icon-eye-open"></i></a>'
|
+ '<a class="btn" href="javascript:void(0);" onclick="setRectangle('+data[i].east+','+data[i].west+','+data[i].south+','+data[i].north+')" title="View the extent of data"><i class="icon-eye-open"></i></a>'
|
||||||
+ '<a class="btn" href="/data/'+data[i].uuid+'" title="查看数据信息"><i class="icon-search"></i></a>'
|
+ '<a class="btn" href="/data/'+data[i].uuid+'" title="View Data"><i class="icon-search"></i></a>'
|
||||||
+ '</div>'
|
+ '</div>'
|
||||||
+ '</li>';
|
+ '</li>';
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,16 +1,16 @@
|
||||||
<div id="upload-form" class="modal hide fade" tabindex="-1" aria-hidden="true">
|
<div id="upload-form" class="modal hide fade" tabindex="-1" aria-hidden="true">
|
||||||
<div class="modal-header">
|
<div class="modal-header">
|
||||||
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
|
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
|
||||||
<h3 id="myModalLabel">申请表上传</h3>
|
<h3 id="myModalLabel">Upload your application(pdf)</h3>
|
||||||
</div>
|
</div>
|
||||||
<div class="modal-body">
|
<div class="modal-body">
|
||||||
<form id="application-form">
|
<form id="application-form">
|
||||||
<div id="fsUploadProgress">允许上传20M以内的 PDF 文件</div>
|
<div id="fsUploadProgress">Please make sure your pdf is less than 20M.</div>
|
||||||
<input type="file" name="Filedata" id="file_upload" />
|
<input type="file" name="Filedata" id="file_upload" />
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
<div class="modal-footer">
|
<div class="modal-footer">
|
||||||
<button class="btn" data-dismiss="modal" aria-hidden="true">取消上传</button>
|
<button class="btn" data-dismiss="modal" aria-hidden="true">Cancel</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<script>
|
<script>
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
<?php
|
<?php
|
||||||
$this->headTitle($this->config->title->site);
|
$this->headTitle($this->config->title->site);
|
||||||
$this->headTitle($this->config->title->data);
|
$this->headTitle($this->config->title->data);
|
||||||
$this->headTitle('离线数据浏览');
|
$this->headTitle('Offline Data Browse');
|
||||||
$this->headTitle($this->codename);
|
$this->headTitle($this->codename);
|
||||||
$this->headTitle()->setSeparator(' - ');
|
$this->headTitle()->setSeparator(' - ');
|
||||||
$this->headLink()->appendStylesheet('/css/metadata.css');
|
$this->headLink()->appendStylesheet('/css/metadata.css');
|
||||||
$this->nav[] = array('link'=>"/data/offline",'title'=>'离线数据浏览');
|
$this->nav[] = array('link'=>"/data/offline",'title'=>'Offline Data Browse');
|
||||||
?>
|
?>
|
||||||
<div class="row-fluid">
|
<div class="row-fluid">
|
||||||
<?= $this->render('breadcrumbs.phtml'); ?>
|
<?= $this->render('breadcrumbs.phtml'); ?>
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
$this->headTitle($this->config->title->site);
|
$this->headTitle($this->config->title->site);
|
||||||
$this->headTitle('我的账户');
|
$this->headTitle('My account');
|
||||||
$this->headTitle()->setSeparator(' - ');
|
$this->headTitle()->setSeparator(' - ');
|
||||||
$this->theme->AppendPlus($this,'jquery');
|
$this->theme->AppendPlus($this,'jquery');
|
||||||
$this->theme->AppendPlus($this,'colorbox');
|
$this->theme->AppendPlus($this,'colorbox');
|
||||||
|
@ -12,7 +12,7 @@
|
||||||
</div><!--/.well -->
|
</div><!--/.well -->
|
||||||
</div><!--/span-->
|
</div><!--/span-->
|
||||||
<div class="span9">
|
<div class="span9">
|
||||||
<h3>在线数据下载申请</h3>
|
<h3>Online data Download</h3>
|
||||||
<hr />
|
<hr />
|
||||||
<?php if(!empty($this->msg)) { ?>
|
<?php if(!empty($this->msg)) { ?>
|
||||||
<?php if(!empty($this->jump_url)) {?>
|
<?php if(!empty($this->jump_url)) {?>
|
||||||
|
@ -21,7 +21,7 @@
|
||||||
<?php echo $this->msg ?>
|
<?php echo $this->msg ?>
|
||||||
</div>
|
</div>
|
||||||
<?php if(!empty($this->jump_url)) { ?>
|
<?php if(!empty($this->jump_url)) { ?>
|
||||||
<br /><a href="<?= $this->jump_url ?>">如果页面没有自动跳转请点击这里</a>
|
<br /><a href="<?= $this->jump_url ?>">Please click this url if your browser is not support auto jump.</a>
|
||||||
<script language="javascript">setTimeout("self.location='<?php echo $this->jump_url ?>'",3000);</script>
|
<script language="javascript">setTimeout("self.location='<?php echo $this->jump_url ?>'",3000);</script>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
|
@ -40,43 +40,43 @@
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
<form action="/data/todownload/" method="post" class="form-horizontal">
|
<form action="/data/todownload/" method="post" class="form-horizontal">
|
||||||
<div class="control-group ">
|
<div class="control-group ">
|
||||||
<label class="control-label">真实姓名</label>
|
<label class="control-label">Real Name</label>
|
||||||
<div class="controls">
|
<div class="controls">
|
||||||
<input type="text" name="realname" value="<?php echo empty($this->info['realname']) ? "":$this->info['realname']; ?>" />
|
<input type="text" name="realname" value="<?php echo empty($this->info['realname']) ? "":$this->info['realname']; ?>" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="control-group ">
|
<div class="control-group ">
|
||||||
<label class="control-label">工作单位</label>
|
<label class="control-label">Company/Organization</label>
|
||||||
<div class="controls">
|
<div class="controls">
|
||||||
<input class="input-block-level" type="text" name="unit" value="<?php echo empty($this->info['unit']) ? "":$this->info['unit']; ?>" />
|
<input class="input-block-level" type="text" name="unit" value="<?php echo empty($this->info['unit']) ? "":$this->info['unit']; ?>" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="control-group ">
|
<div class="control-group ">
|
||||||
<label class="control-label">联系地址</label>
|
<label class="control-label">Address</label>
|
||||||
<div class="controls">
|
<div class="controls">
|
||||||
<input class="input-block-level" type="text" name="address" value="<?php echo empty($this->info['address']) ? "":$this->info['address']; ?>" />
|
<input class="input-block-level" type="text" name="address" value="<?php echo empty($this->info['address']) ? "":$this->info['address']; ?>" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="control-group ">
|
<div class="control-group ">
|
||||||
<label class="control-label">联系电话</label>
|
<label class="control-label">Phone</label>
|
||||||
<div class="controls">
|
<div class="controls">
|
||||||
<input type="text" name="phone" value="<?php echo empty($this->info['phone']) ? "":$this->info['phone']; ?>" />
|
<input type="text" name="phone" value="<?php echo empty($this->info['phone']) ? "":$this->info['phone']; ?>" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="control-group ">
|
<div class="control-group ">
|
||||||
<label class="control-label">邮编</label>
|
<label class="control-label">Postcode</label>
|
||||||
<div class="controls">
|
<div class="controls">
|
||||||
<input type="text" name="postcode" value="<?php echo empty($this->info['postcode']) ? "":$this->info['postcode']; ?>" />
|
<input type="text" name="postcode" value="<?php echo empty($this->info['postcode']) ? "":$this->info['postcode']; ?>" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="control-group ">
|
<div class="control-group ">
|
||||||
<label class="control-label">电子邮箱</label>
|
<label class="control-label">Email</label>
|
||||||
<div class="controls">
|
<div class="controls">
|
||||||
<input type="email" name="email" value="<?php echo empty($this->info['email']) ? "":$this->info['email']; ?>" required />
|
<input type="email" name="email" value="<?php echo empty($this->info['email']) ? "":$this->info['email']; ?>" required />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="control-group ">
|
<div class="control-group ">
|
||||||
<label class="control-label">项目类型</label>
|
<label class="control-label">Fund</label>
|
||||||
<div class="controls">
|
<div class="controls">
|
||||||
<select id="project_type" name="project_type">
|
<select id="project_type" name="project_type">
|
||||||
<?php if(!empty($this->projectType)) { ?>
|
<?php if(!empty($this->projectType)) { ?>
|
||||||
|
@ -100,51 +100,34 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="control-group ">
|
<div class="control-group ">
|
||||||
<label class="control-label">项目编号</label>
|
<label class="control-label">Fund number</label>
|
||||||
<div class="controls">
|
<div class="controls">
|
||||||
<input type="text" name="project_id" value="<?php echo empty($this->info['project_id']) ? "":$this->info['project_id']; ?>" />
|
<input type="text" name="project_id" value="<?php echo empty($this->info['project_id']) ? "":$this->info['project_id']; ?>" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="control-group ">
|
<div class="control-group ">
|
||||||
<label class="control-label">项目名称</label>
|
<label class="control-label">Fund title</label>
|
||||||
<div class="controls">
|
<div class="controls">
|
||||||
<input class="input-block-level" type="text" name="project_title" value="<?php echo empty($this->info['project_title']) ? "":$this->info['project_title']; ?>" />
|
<input class="input-block-level" type="text" name="project_title" value="<?php echo empty($this->info['project_title']) ? "":$this->info['project_title']; ?>" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="control-group ">
|
<div class="control-group ">
|
||||||
<label class="control-label">项目负责人</label>
|
<label class="control-label">Fund PI</label>
|
||||||
<div class="controls">
|
<div class="controls">
|
||||||
<input class="input-block-level" type="text" name="project_leader" value="<?php echo empty($this->info['project_leader']) ? "":$this->info['project_leader']; ?>" />
|
<input class="input-block-level" type="text" name="project_leader" value="<?php echo empty($this->info['project_leader']) ? "":$this->info['project_leader']; ?>" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="control-group ">
|
<div class="control-group ">
|
||||||
<label class="control-label">数据用途</label>
|
<label class="control-label">Data Usage</label>
|
||||||
<div class="controls">
|
<div class="controls">
|
||||||
<textarea name="project" rows="3" class="input-block-level"><?php echo empty($this->info['project']) ? "":$this->info['project']; ?></textarea>
|
<textarea name="project" rows="3" class="input-block-level"><?php echo empty($this->info['project']) ? "":$this->info['project']; ?></textarea>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="control-group ">
|
|
||||||
<label class="control-label">填写说明</label>
|
|
||||||
<div class="controls">
|
|
||||||
请您填写完整的数据用途信息,包括项目类型、编号、题目、负责人等信息;若仅用于论文写作,请告知研究题目或主要内容,并注明导师姓名;其他用途如实注明即可。清晰明确的数据用途有助于我们更快得审核和通过申请,也会使您更快获得数据!
|
|
||||||
<br />
|
|
||||||
<br />
|
|
||||||
例一:<br />
|
|
||||||
项目类型:973<br />
|
|
||||||
项目名称:飞行终端区复杂场景建模的理论与方法子课题:基于多源遥感影像的目标和场景三维重建研究<br />
|
|
||||||
项目编号:2010CB731801<br />
|
|
||||||
项目负责人:邵振峰<br />
|
|
||||||
使用目的:用于模拟基于多源遥感影像的目标和场景<br />
|
|
||||||
<br />
|
|
||||||
例二:<br />
|
|
||||||
硕士毕业论文:《全波形激光雷达数据处理研究》,导师:李传荣研究员。<br />
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="form-actions">
|
<div class="form-actions">
|
||||||
<input type="hidden" name="uuid" value="<?= $this->uuid ?>" />
|
<input type="hidden" name="uuid" value="<?= $this->uuid ?>" />
|
||||||
<input type="hidden" name="submit" value="submit" />
|
<input type="hidden" name="submit" value="submit" />
|
||||||
<button type="submit" class="btn btn-primary">确定</button>
|
<button type="submit" class="btn btn-primary">Submit</button>
|
||||||
<a class="btn" href="/data/<?= $this->uuid ?>">取消</a>
|
<a class="btn" href="/data/<?= $this->uuid ?>">Cancel</a>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
<?php }?>
|
<?php }?>
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
<?php
|
<?php
|
||||||
$this->headTitle($this->config->title->site);
|
$this->headTitle($this->config->title->site);
|
||||||
$this->headTitle($this->config->title->data);
|
$this->headTitle($this->config->title->data);
|
||||||
$this->headTitle('在线数据浏览');
|
$this->headTitle('Online Data Browse');
|
||||||
$this->headTitle($this->codename);
|
$this->headTitle($this->codename);
|
||||||
$this->headTitle()->setSeparator(' - ');
|
$this->headTitle()->setSeparator(' - ');
|
||||||
$this->headLink()->appendStylesheet('/css/metadata.css');
|
$this->headLink()->appendStylesheet('/css/metadata.css');
|
||||||
$this->nav[] = array('link'=>"/data/offline",'title'=>'在线数据浏览');
|
$this->nav[] = array('link'=>"/data/online",'title'=>'Online Data Browse');
|
||||||
?>
|
?>
|
||||||
<div>
|
<div>
|
||||||
<?= $this->render('breadcrumbs.phtml'); ?>
|
<?= $this->render('breadcrumbs.phtml'); ?>
|
||||||
|
|
|
@ -1,13 +1,13 @@
|
||||||
<?php
|
<?php
|
||||||
$this->headTitle($this->config->title->site);
|
$this->headTitle($this->config->title->site);
|
||||||
$this->headTitle($this->config->title->data);
|
$this->headTitle($this->config->title->data);
|
||||||
$this->headTitle('离线申请');
|
$this->headTitle('Offline Order');
|
||||||
$this->headTitle()->setSeparator(' - ');
|
$this->headTitle()->setSeparator(' - ');
|
||||||
$this->breadcrumb('<a href="/">首页</a>');
|
$this->breadcrumb('<a href="/">Home</a>');
|
||||||
$this->breadcrumb('<a href="/data">'.$this->config->title->data.'</a>');
|
$this->breadcrumb('<a href="/data">'.$this->config->title->data.'</a>');
|
||||||
$this->breadcrumb('离线申请');
|
$this->breadcrumb('Offline Order');
|
||||||
$this->breadcrumb()->setSeparator(' > ');
|
$this->breadcrumb()->setSeparator(' > ');
|
||||||
$this->nav[] = array('link'=>"/data/order",'title'=>'数据蓝');
|
$this->nav[] = array('link'=>"/data/order",'title'=>'Data cart');
|
||||||
?>
|
?>
|
||||||
<?= $this->render('breadcrumbs.phtml') ?>
|
<?= $this->render('breadcrumbs.phtml') ?>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
|
@ -18,7 +18,7 @@ $this->nav[] = array('link'=>"/data/order",'title'=>'数据蓝');
|
||||||
</div><!--/.well -->
|
</div><!--/.well -->
|
||||||
</div><!--/span-->
|
</div><!--/span-->
|
||||||
<div class="span9">
|
<div class="span9">
|
||||||
<h3>数据篮</h3>
|
<h3>Data cart</h3>
|
||||||
<hr />
|
<hr />
|
||||||
<?php
|
<?php
|
||||||
if(!empty($this->msg))
|
if(!empty($this->msg))
|
||||||
|
@ -26,7 +26,7 @@ $this->nav[] = array('link'=>"/data/order",'title'=>'数据蓝');
|
||||||
echo $this->msg;
|
echo $this->msg;
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
<h2>请选择要下载的数据</h2>
|
<h2>Please choose dataset.</h2>
|
||||||
<!-- /content -->
|
<!-- /content -->
|
||||||
</div><!--/span-->
|
</div><!--/span-->
|
||||||
</div><!--/row-->
|
</div><!--/row-->
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
<?php
|
<?php
|
||||||
$this->headTitle($this->config->title->site);
|
$this->headTitle($this->config->title->site);
|
||||||
$this->headTitle($this->config->title->data);
|
$this->headTitle($this->config->title->data);
|
||||||
$this->headTitle('分单位浏览');
|
$this->headTitle('Organization Browse');
|
||||||
if (!empty($this->codename)) $this->headTitle($this->codename);
|
if (!empty($this->codename)) $this->headTitle($this->codename);
|
||||||
$this->headTitle()->setSeparator(' - ');
|
$this->headTitle()->setSeparator(' - ');
|
||||||
$this->nav[] = array('link'=>"/data/organization",'title'=>'分单位浏览');
|
$this->nav[] = array('link'=>"/data/organization",'title'=>'Organization Browse');
|
||||||
$this->theme->AppendPlus($this,'colorbox');
|
$this->theme->AppendPlus($this,'colorbox');
|
||||||
?>
|
?>
|
||||||
<div class="row-fluid">
|
<div class="row-fluid">
|
||||||
|
@ -13,7 +13,7 @@ $this->theme->AppendPlus($this,'colorbox');
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<?php if (!empty($this->paginator)) : ?>
|
<?php if (!empty($this->paginator)) : ?>
|
||||||
<h3>当前浏览:<?php echo $this->codename; ?></h3>
|
<h3>Current Browse: <?php echo $this->codename; ?></h3>
|
||||||
<div class="pagenavi"><?= $this->paginator; ?></div>
|
<div class="pagenavi"><?= $this->paginator; ?></div>
|
||||||
<ul id="datalist">
|
<ul id="datalist">
|
||||||
<?php foreach($this->paginator as $md) : ?>
|
<?php foreach($this->paginator as $md) : ?>
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
<?php
|
<?php
|
||||||
$this->headTitle($this->config->title->site);
|
$this->headTitle($this->config->title->site);
|
||||||
$this->headTitle($this->config->title->data);
|
$this->headTitle($this->config->title->data);
|
||||||
$this->headTitle('离线申请');
|
$this->headTitle('Offline Order');
|
||||||
$this->headTitle()->setSeparator(' - ');
|
$this->headTitle()->setSeparator(' - ');
|
||||||
$this->breadcrumb('<a href="/">首页</a>');
|
$this->breadcrumb('<a href="/">Home</a>');
|
||||||
$this->breadcrumb('<a href="/data">'.$this->config->title->data.'</a>');
|
$this->breadcrumb('<a href="/data">'.$this->config->title->data.'</a>');
|
||||||
$this->breadcrumb('<a href="/data/order">离线申请</a>');
|
$this->breadcrumb('<a href="/data/order">Offline Order</a>');
|
||||||
$this->breadcrumb('生成离线申请表');
|
$this->breadcrumb('Offline Order PDF generate');
|
||||||
$this->breadcrumb()->setSeparator(' > ');
|
$this->breadcrumb()->setSeparator(' > ');
|
||||||
?>
|
?>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
|
@ -16,8 +16,8 @@
|
||||||
</div><!--/.well -->
|
</div><!--/.well -->
|
||||||
</div><!--/span-->
|
</div><!--/span-->
|
||||||
<div class="span9">
|
<div class="span9">
|
||||||
<h3>离线申请提交</h3>
|
<h3>Submit Offline Order</h3>
|
||||||
<h4>数据清单</h4>
|
<h4>Dataset list</h4>
|
||||||
<blockquote>
|
<blockquote>
|
||||||
<ul class="unstyled">
|
<ul class="unstyled">
|
||||||
<?php foreach ($this->data2 as $i=>$md) : ?>
|
<?php foreach ($this->data2 as $i=>$md) : ?>
|
||||||
|
@ -25,11 +25,7 @@
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
</ul></blockquote>
|
</ul></blockquote>
|
||||||
<hr />
|
<hr />
|
||||||
<h4>申请表填写说明</h4>
|
<h4>Offline PDF form</h4>
|
||||||
<blockquote>
|
|
||||||
<p class="text-info">其中用途部分,请填写您的详细使用目的;项目类型请从列表中选择,若无对应的项目支持,请选择其他项目工程;如项目无编号信息,则填写“无”;硕博论文请在用途中注明。</p>
|
|
||||||
<p class="text-success">详细准确的信息能使您更快通过申请。(数据提供者会根据您提供的信息来进行决策判断)</p></blockquote>
|
|
||||||
<h4>申请表(请务必填写真实信息以便审核通过)</h4>
|
|
||||||
<?php if ($this->messages): foreach($this->messages as $msg): ?>
|
<?php if ($this->messages): foreach($this->messages as $msg): ?>
|
||||||
<div class="alert"><?php echo $msg; ?></div>
|
<div class="alert"><?php echo $msg; ?></div>
|
||||||
<?php endforeach;endif; ?>
|
<?php endforeach;endif; ?>
|
||||||
|
@ -41,7 +37,7 @@
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<form id="OfflinePdf" enctype="application/x-www-form-urlencoded" class="form-horizontal" action="" method="post">
|
<form id="OfflinePdf" enctype="application/x-www-form-urlencoded" class="form-horizontal" action="" method="post">
|
||||||
<div class="control-group">
|
<div class="control-group">
|
||||||
<label class="control-label" name="realname">真实姓名</label>
|
<label class="control-label" name="realname">Name</label>
|
||||||
<div class="controls">
|
<div class="controls">
|
||||||
<input type="text" name="realname" id="realname" value="<?= empty($this->formData['realname']) ? "":$this->formData['realname']?>" helper="formText"> </div>
|
<input type="text" name="realname" id="realname" value="<?= empty($this->formData['realname']) ? "":$this->formData['realname']?>" helper="formText"> </div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -53,40 +49,40 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="control-group">
|
<div class="control-group">
|
||||||
<label class="control-label" name="phone">电话</label>
|
<label class="control-label" name="phone">Phone</label>
|
||||||
<div class="controls">
|
<div class="controls">
|
||||||
<input type="text" name="phone" id="phone" value="<?= empty($this->formData['phone']) ? "":$this->formData['phone']?>" helper="formText"> </div>
|
<input type="text" name="phone" id="phone" value="<?= empty($this->formData['phone']) ? "":$this->formData['phone']?>" helper="formText"> </div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="control-group">
|
<div class="control-group">
|
||||||
<label class="control-label" name="unit">单位</label>
|
<label class="control-label" name="unit">Company/Organization</label>
|
||||||
<div class="controls">
|
<div class="controls">
|
||||||
<input type="text" name="unit" id="unit" value="<?= empty($this->formData['unit']) ? "":$this->formData['unit']?>" helper="formText" class="input-block-level"> </div>
|
<input type="text" name="unit" id="unit" value="<?= empty($this->formData['unit']) ? "":$this->formData['unit']?>" helper="formText" class="input-block-level"> </div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="control-group">
|
<div class="control-group">
|
||||||
<label class="control-label" name="address">联系地址</label>
|
<label class="control-label" name="address">Address</label>
|
||||||
<div class="controls">
|
<div class="controls">
|
||||||
<input type="text" name="address" id="address" value="<?= empty($this->formData['address']) ? "":$this->formData['address']?>" helper="formText" class="input-block-level"> </div>
|
<input type="text" name="address" id="address" value="<?= empty($this->formData['address']) ? "":$this->formData['address']?>" helper="formText" class="input-block-level"> </div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="control-group">
|
<div class="control-group">
|
||||||
<label class="control-label" name="postcode">邮编</label>
|
<label class="control-label" name="postcode">Postcode</label>
|
||||||
<div class="controls">
|
<div class="controls">
|
||||||
<input type="text" name="postcode" id="postcode" value="<?= empty($this->formData['postcode']) ? "":$this->formData['postcode']?>" helper="formText"> </div>
|
<input type="text" name="postcode" id="postcode" value="<?= empty($this->formData['postcode']) ? "":$this->formData['postcode']?>" helper="formText"> </div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="control-group">
|
<div class="control-group">
|
||||||
<label class="control-label" name="project_id">项目编号</label>
|
<label class="control-label" name="project_id">Fund number</label>
|
||||||
<div class="controls">
|
<div class="controls">
|
||||||
<input type="text" name="project_id" id="project_id" value="<?= empty($this->formData['project_id']) ? "":$this->formData['project_id']?>" helper="formText"> </div>
|
<input type="text" name="project_id" id="project_id" value="<?= empty($this->formData['project_id']) ? "":$this->formData['project_id']?>" helper="formText"> </div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="control-group">
|
<div class="control-group">
|
||||||
<label class="control-label" name="project_type">项目类型</label>
|
<label class="control-label" name="project_type">Fund type</label>
|
||||||
<div class="controls">
|
<div class="controls">
|
||||||
<select name="project_type" id="project_type" helper="formSelect">
|
<select name="project_type" id="project_type" helper="formSelect">
|
||||||
<option value="" label="请选择项目类型" <?= empty($this->formData['project_type']) ? 'selected="selected"':"" ?>>请选择项目类型</option>
|
<option value="" label="Fund type" <?= empty($this->formData['project_type']) ? 'selected="selected"':"" ?>>Fund type</option>
|
||||||
<?php foreach($this->projectType as $k=>$v) {?>
|
<?php foreach($this->projectType as $k=>$v) {?>
|
||||||
<option value="<?= $v ?>" <?= $this->formData['project_type'] == $v ? 'selected="selected"':"" ?>><?= $k ?></option>
|
<option value="<?= $v ?>" <?= $this->formData['project_type'] == $v ? 'selected="selected"':"" ?>><?= $k ?></option>
|
||||||
<?php }?>
|
<?php }?>
|
||||||
|
@ -95,21 +91,21 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="control-group">
|
<div class="control-group">
|
||||||
<label class="control-label" name="project_title">项目名称</label>
|
<label class="control-label" name="project_title">Fund title</label>
|
||||||
<div class="controls">
|
<div class="controls">
|
||||||
<input type="text" name="project_title" id="project_title" value="<?= empty($this->formData['project_title']) ? "":$this->formData['project_title']?>" helper="formText" class="input-block-level">
|
<input type="text" name="project_title" id="project_title" value="<?= empty($this->formData['project_title']) ? "":$this->formData['project_title']?>" helper="formText" class="input-block-level">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="control-group">
|
<div class="control-group">
|
||||||
<label class="control-label" name="leader">项目负责人</label>
|
<label class="control-label" name="leader">Fund PI</label>
|
||||||
<div class="controls">
|
<div class="controls">
|
||||||
<input type="text" name="project_leader" id="leader" value="<?= empty($this->formData['project_leader']) ? "":$this->formData['project_leader']?>" helper="formText" class="input">
|
<input type="text" name="project_leader" id="leader" value="<?= empty($this->formData['project_leader']) ? "":$this->formData['project_leader']?>" helper="formText" class="input">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="control-group">
|
<div class="control-group">
|
||||||
<label class="control-label" name="project">用途<br/>(请详细描述使用目的)</label>
|
<label class="control-label" name="project">Data Usage<br/>(Please write about 50-100 words)</label>
|
||||||
<div class="controls">
|
<div class="controls">
|
||||||
<textarea name="project" id="project" helper="formTextarea" rows="3" class="input-block-level" cols="80"><?= empty($this->formData['project']) ? "":$this->formData['project']?></textarea> </div>
|
<textarea name="project" id="project" helper="formTextarea" rows="3" class="input-block-level" cols="80"><?= empty($this->formData['project']) ? "":$this->formData['project']?></textarea> </div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -118,15 +114,15 @@
|
||||||
<div class="controls">
|
<div class="controls">
|
||||||
<input type="hidden" name="id" value="8018" helper="formHidden" id="id">
|
<input type="hidden" name="id" value="8018" helper="formHidden" id="id">
|
||||||
|
|
||||||
<input type="submit" name="save" id="savebutton" value="预览PDF" class="btn">
|
<input type="submit" name="save" id="savebutton" value="PDF Preview" class="btn">
|
||||||
|
|
||||||
<input type="submit" name="submit" id="submitbutton" value="生成并下载PDF" class="btn btn-primary">
|
<input type="submit" name="submit" id="submitbutton" value="Download PDF" class="btn btn-primary">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="control-group">
|
<div class="control-group">
|
||||||
<div class="controls">
|
<div class="controls">
|
||||||
<div class="alert alert-success">生成PDF并下载后,打印并签字,之后将申请表制作成PDF文件,并且<a href="/data/order/ac/offline2">在线上传PDF</a>,通过Email或者邮寄方式提交的申请将被拒绝</div>
|
<div class="alert alert-success">When download the PDF, please sign your name, and re-generate the PDF and <a href="/data/order/ac/offline2">upload PDF</a></div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
|
|
|
@ -1,25 +1,25 @@
|
||||||
<?php
|
<?php
|
||||||
$this->headTitle($this->config->title->site);
|
$this->headTitle($this->config->title->site);
|
||||||
$this->headTitle($this->config->title->data);
|
$this->headTitle($this->config->title->data);
|
||||||
$this->headTitle('数据集序列序列');
|
$this->headTitle('Data Series');
|
||||||
$this->headTitle($this->codename);
|
$this->headTitle($this->codename);
|
||||||
$this->headTitle()->setSeparator(' - ');
|
$this->headTitle()->setSeparator(' - ');
|
||||||
$this->headLink()->appendStylesheet('/css/metadata.css');
|
$this->headLink()->appendStylesheet('/css/metadata.css');
|
||||||
$this->nav[] = array('link'=>"/data/series",'title'=>'数据集序列浏览');
|
$this->nav[] = array('link'=>"/data/series",'title'=>'Data Series');
|
||||||
?>
|
?>
|
||||||
<div class="row-fluid">
|
<div class="row-fluid">
|
||||||
<?= $this->render('breadcrumbs.phtml'); ?>
|
<?= $this->render('breadcrumbs.phtml'); ?>
|
||||||
<?= $this->partial('data/tools.phtml'); ?>
|
<?= $this->partial('data/tools.phtml'); ?>
|
||||||
</div>
|
</div>
|
||||||
<div id='leftnav'>
|
<div id='leftnav'>
|
||||||
<fieldset><legend>数据集序列</legend>
|
<fieldset><legend>Data Series</legend>
|
||||||
<ul>
|
<ul>
|
||||||
<?php foreach($this->serie as $cg) : ?>
|
<?php foreach($this->serie as $cg) : ?>
|
||||||
<li><a href='/data/series/<?php echo $cg['name']; ?>'><?php echo $cg['name']; ?></a>(<?php echo $cg['count']; ?>)</li>
|
<li><a href='/data/series/<?php echo $cg['name']; ?>'><?php echo $cg['name']; ?></a>(<?php echo $cg['count']; ?>)</li>
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
</ul></fieldset>
|
</ul></fieldset>
|
||||||
<?php if ($this->showtools) : ?>
|
<?php if ($this->showtools) : ?>
|
||||||
<fieldset><legend>本序列中常用地点关键词</legend>
|
<fieldset><legend>Place tags:</legend>
|
||||||
<ul>
|
<ul>
|
||||||
<?php foreach($this->places as $place) : ?>
|
<?php foreach($this->places as $place) : ?>
|
||||||
<li><a href='/data/series/<?php echo $this->seriesid; ?>/<?php echo urlencode($place['keyword']); ?>'><?php echo $place['keyword']; ?></a><span class="note">(<?php echo $place['count']; ?>)</span></li>
|
<li><a href='/data/series/<?php echo $this->seriesid; ?>/<?php echo urlencode($place['keyword']); ?>'><?php echo $place['keyword']; ?></a><span class="note">(<?php echo $place['count']; ?>)</span></li>
|
||||||
|
@ -30,7 +30,7 @@ $this->nav[] = array('link'=>"/data/series",'title'=>'数据集序列浏览');
|
||||||
</div>
|
</div>
|
||||||
<?php if (!empty($this->metadata)) : ?>
|
<?php if (!empty($this->metadata)) : ?>
|
||||||
<div id='metacontent'>
|
<div id='metacontent'>
|
||||||
<h1>当前浏览数据集序列:<?php echo $this->codename; ?></h1>
|
<h1>Current series: <?php echo $this->codename; ?></h1>
|
||||||
<?php echo $this->page->getNavigation(); ?>
|
<?php echo $this->page->getNavigation(); ?>
|
||||||
<hr />
|
<hr />
|
||||||
<?php foreach($this->metadata as $md) : ?>
|
<?php foreach($this->metadata as $md) : ?>
|
||||||
|
|
|
@ -1,59 +1,50 @@
|
||||||
<?php
|
<?php
|
||||||
$this->headTitle($this->config->title->site);
|
$this->headTitle($this->config->title->site);
|
||||||
$this->headTitle($this->config->title->data);
|
$this->headTitle($this->config->title->data);
|
||||||
if (!empty($this->codename)) $this->headTitle($this->codename);
|
|
||||||
$this->headTitle()->setSeparator(' - ');
|
$this->headTitle()->setSeparator(' - ');
|
||||||
$this->headLink()->appendStylesheet('/css/metadata.css');
|
$this->headLink()->appendStylesheet('/css/water.css');
|
||||||
$this->nav[] = array('link'=>"/data/tag",'title'=>'关键词浏览');
|
$this->nav[] = array('link'=>"/data/tag",'title'=>'Tags Browse');
|
||||||
$this->theme->AppendPlus($this,'colorbox');
|
|
||||||
?>
|
?>
|
||||||
<div id='row-fluid'>
|
<?= $this->render('breadcrumbs.phtml'); ?>
|
||||||
<?= $this->render('breadcrumbs.phtml') ?>
|
<div class="row">
<div class="span12">
|
||||||
<?= $this->partial('data/tools.phtml'); ?>
|
<?php if (!empty($this->metadata)) : ?>
|
||||||
</div>
|
<div id='mdlist'>
|
||||||
<?php if (!empty($this->metadata)) : ?>
|
<h1>Tags: <?php echo $this->codename; ?> [<a href="/data/tag/">All tags</a>]</h1>
|
||||||
<div id='metacontent'>
|
<?php echo $this->page->getNavigation(); ?>
|
||||||
<h1>当前浏览:<?php echo $this->codename; ?></h1>
|
<hr />
|
||||||
<?php echo $this->page->getNavigation(); ?>
|
<div class="md-list">
|
||||||
<hr />
|
<ol start="<?php echo $this->offset; ?>">
|
||||||
<?php foreach($this->metadata as $md) : ?>
|
<?php foreach($this->metadata as $md) : ?>
|
||||||
<div class="mditem">
|
<li><a href="/data/view/uuid/<?php echo $md['uuid']; ?>" title="<?php echo mb_strlen($md['description'])>400?$this->escape(mb_substr($md['description'],0,400,'UTF-8').'...'):$this->escape($md['description']);?>"><?php echo $md['title']; ?></a></li>
|
||||||
<div class="thumb">
|
<?php endforeach; ?>
|
||||||
<a href="/service/bigthumb/uuid/<?= $md['uuid'] ?>" class="colorbox">
|
</ol>
|
||||||
<img src="/service/thumb/id/<?php echo $md['id'];?>" />
|
|
||||||
</a>
|
|
||||||
</div>
|
</div>
|
||||||
<h2><a href="/data/<?php echo $md['uuid']; ?>"><?php echo $this->escape($md['title']);?></a></h2>
|
<hr />
|
||||||
<span><?php echo mb_strlen($md['description'])>400?$this->escape(mb_substr($md['description'],0,400,'UTF-8').'...'):$this->escape($md['description']);?></span>
|
<?php echo $this->page->getNavigation(); ?>
|
||||||
</div>
|
</div>
|
||||||
<?php endforeach; ?>
|
<?php else : ?>
|
||||||
<?php echo $this->page->getNavigation(); ?>
|
|
||||||
</div>
|
<div>
|
||||||
<?php else : ?>
|
<?php
|
||||||
<div id='leftnav'>
|
$keytypezh=array('place'=>'Place','theme'=>'Theme','discipline'=>'Discipline','stratum'=>'Stratum','temporal'=>'Temporal');
|
||||||
<?php
|
$type='';
|
||||||
$keytypezh=array('place'=>'地点关键词','theme'=>'主题关键词','discipline'=>'学科关键词','stratum'=>'地层关键词','temporal'=>'时间关键词');
|
|
||||||
$type='';
|
|
||||||
foreach($this->keywords as $cg) :
|
foreach($this->keywords as $cg) :
|
||||||
if ($type!=$cg['keytype']) :
|
if ($type!=$cg['keytype']) :
|
||||||
if ($type!='') : ?>
|
if ($type!='') : ?>
|
||||||
</ul></fieldset>
|
</ul>
|
||||||
<?php endif;
|
<?php endif;
|
||||||
$type=$cg['keytype'];
|
$type=$cg['keytype'];
|
||||||
?>
|
?>
|
||||||
<fieldset><legend><?php echo $keytypezh[$type]; ?></legend>
|
<h4><a href="/data/tag/keytype/<?php echo $type; ?>"><?php echo $keytypezh[$type]; ?></a>
|
||||||
<ul>
|
<?php if ($this->keytype) : ?><a class="pull-right" href="/data/tag"><i class="icon-tags"></i>All tags</a> <?php endif; ?></h4>
|
||||||
<li><a href='/data/tag/<?php echo urlencode($cg['keyword']); ?>'><?php echo $cg['keyword']; ?></a><span class="note">(<?php echo $cg['count']; ?>)</span></li>
|
<ul class="inline">
|
||||||
|
<li><a href='/data/tag/key/<?php echo urlencode($cg['keyword']); ?>'><i class="icon-tag"></i><?php echo $cg['keyword']; ?></a><span class="note">(<?php echo $cg['count']; ?>)</span></li>
|
||||||
<?php else : ?>
|
<?php else : ?>
|
||||||
<li><a href='/data/tag/<?php echo urlencode($cg['keyword']); ?>'><?php echo $cg['keyword']; ?></a><span class="note">(<?php echo $cg['count']; ?>)</span></li>
|
<li><a href='/data/tag/key/<?php echo urlencode($cg['keyword']); ?>'><i class="icon-tag"></i><?php echo $cg['keyword']; ?></a><span class="note">(<?php echo $cg['count']; ?>)</span></li>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
</ul>
|
</ul>
|
||||||
</fieldset></div>
|
</fieldset></div>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<script>
|
</div>
|
||||||
$(document).ready(function(){
|
</div>
|
||||||
$(".colorbox").colorbox({rel:"colorbox",photo:"true",transition:"fade"});
|
|
||||||
$(".colorbox").colorbox({photo:"true"});
|
|
||||||
});
|
|
||||||
</script>
|
|
|
@ -1,10 +1,10 @@
|
||||||
<?php
|
<?php
|
||||||
$this->headTitle($this->config->title->site);
|
$this->headTitle($this->config->title->site);
|
||||||
$this->headTitle($this->config->title->data);
|
$this->headTitle($this->config->title->data);
|
||||||
$this->headTitle('缩略图浏览');
|
$this->headTitle('Thumbnail Browse');
|
||||||
$this->headTitle()->setSeparator(' - ');
|
$this->headTitle()->setSeparator(' - ');
|
||||||
$this->headLink()->appendStylesheet('/css/water.css');
|
$this->headLink()->appendStylesheet('/css/water.css');
|
||||||
$this->nav[] = array('link'=>"/data/thumb",'title'=>'缩略图浏览');
|
$this->nav[] = array('link'=>"/data/thumb",'title'=>'Thumbnail Browse');
|
||||||
$this->theme->AppendPlus($this,'masonry');
|
$this->theme->AppendPlus($this,'masonry');
|
||||||
$this->theme->AppendPlus($this,'colorbox');
|
$this->theme->AppendPlus($this,'colorbox');
|
||||||
?>
|
?>
|
||||||
|
@ -23,7 +23,7 @@ $this->theme->AppendPlus($this,'colorbox');
|
||||||
<?php echo mb_strlen($md['description'])>120?$this->escape(mb_substr($md['description'],0,120,'UTF-8').'...'):$this->escape($md['description']);?>
|
<?php echo mb_strlen($md['description'])>120?$this->escape(mb_substr($md['description'],0,120,'UTF-8').'...'):$this->escape($md['description']);?>
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
<span class="pull-right"><a href="/data/<?php echo $md['uuid'];?>" class="btn"><i class="icon-zoom-in"></i>查看</a></span>
|
<span class="pull-right"><a href="/data/<?php echo $md['uuid'];?>" class="btn"><i class="icon-zoom-in"></i>Detail</a></span>
|
||||||
</li>
|
</li>
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
|
@ -1,13 +1,13 @@
|
||||||
<?php
|
<?php
|
||||||
$this->headTitle($this->config->title->site);
|
$this->headTitle($this->config->title->site);
|
||||||
$this->headTitle($this->config->title->data);
|
$this->headTitle($this->config->title->data);
|
||||||
$this->headTitle('时间轴导航');
|
$this->headTitle('Timeline');
|
||||||
$this->headTitle()->setSeparator(' - ');
|
$this->headTitle()->setSeparator(' - ');
|
||||||
$this->headLink()->appendStylesheet('/css/metadata.css');
|
$this->headLink()->appendStylesheet('/css/metadata.css');
|
||||||
$this->headScript()->appendFile('/js/timeline_var.js');
|
$this->headScript()->appendFile('/js/timeline_var.js');
|
||||||
$this->headScript()->appendFile('/js/timeline_js/timeline-api.js?bundle=true');
|
$this->headScript()->appendFile('/js/timeline_js/timeline-api.js?bundle=true');
|
||||||
$this->headScript()->appendFile('/js/time.js');
|
$this->headScript()->appendFile('/js/time.js');
|
||||||
$this->nav[] = array('link'=>"/data/timeline",'title'=>'时间轴导航');
|
$this->nav[] = array('link'=>"/data/timeline",'title'=>'Timeline');
|
||||||
?>
|
?>
|
||||||
<div class="row-fluid"><?= $this->render('breadcrumbs.phtml'); ?><?= $this->partial('data/tools.phtml'); ?></div>
|
<div class="row-fluid"><?= $this->render('breadcrumbs.phtml'); ?><?= $this->partial('data/tools.phtml'); ?></div>
|
||||||
<div id="tl" class="timeline-default" style="clear:left;height: 400px;"> </div>
|
<div id="tl" class="timeline-default" style="clear:left;height: 400px;"> </div>
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<?php
|
<?php
|
||||||
$this->headTitle($this->config->title->site);
|
$this->headTitle($this->config->title->site);
|
||||||
$this->headTitle($this->config->title->data);
|
$this->headTitle($this->config->title->data);
|
||||||
$this->headTitle('时空导航');
|
$this->headTitle('Timemap');
|
||||||
$this->headTitle()->setSeparator(' - ');
|
$this->headTitle()->setSeparator(' - ');
|
||||||
//$this->headLink()->appendStylesheet('/css/metadata.css');
|
//$this->headLink()->appendStylesheet('/css/metadata.css');
|
||||||
$this->theme->AppendPlus($this,'google_map_v3');
|
$this->theme->AppendPlus($this,'google_map_v3');
|
||||||
|
@ -10,7 +10,7 @@ $this->headScript()->appendFile('/js/timeline_var.js');
|
||||||
$this->headScript()->appendFile('/js/timeline_js/timeline-api.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/lib/mxn/mxn.js?(googlev3)');
|
||||||
$this->headScript()->appendFile('/js/timemap.2.0.1/timemap.pack.js');
|
$this->headScript()->appendFile('/js/timemap.2.0.1/timemap.pack.js');
|
||||||
$this->nav[] = array('link'=>"/data/timemap",'title'=>'时空导航');
|
$this->nav[] = array('link'=>"/data/timemap",'title'=>'Timemap');
|
||||||
?>
|
?>
|
||||||
<style>
|
<style>
|
||||||
img{max-width:none}
|
img{max-width:none}
|
||||||
|
|
Loading…
Reference in New Issue