merge heihedata branch from r4067 to r4462.
This commit is contained in:
parent
758a254ec9
commit
045d50424c
|
@ -4000,6 +4000,11 @@ class Admin_DataController extends Zend_Controller_Action
|
|||
}else{
|
||||
$this->view->data['doi'] = $metadata['doi'];
|
||||
$this->view->data['info'] = $doi->data_process_out($this->view->data);
|
||||
if(empty($this->view->data['ts_published']))
|
||||
{
|
||||
$this->view->data['title'] = $metadata['title'];
|
||||
$this->view->data['title_en'] = $metadata['title_en'];
|
||||
}
|
||||
}
|
||||
}else{
|
||||
$this->view->data = $doi->view($uuid);
|
||||
|
|
|
@ -375,8 +375,8 @@ class Admin_DownController extends Zend_Controller_Action
|
|||
$mail->setSubject($mailtp->getSubject());
|
||||
$addrs=array();
|
||||
$addrs[] = 'nztong@lzb.ac.cn';
|
||||
$addrs[] = 'wjian@lzb.ac.cn';
|
||||
$addrs[] = 'lixin@lzb.ac.cn';
|
||||
$addrs[] = 'wangliangxu@lzb.ac.cn';
|
||||
$addrs[] = 'wulizong@lzb.ac.cn';
|
||||
$mail->addTo($addrs);
|
||||
$mail->addCc($this->view->config->service->email,'西部数据中心服务组');
|
||||
$mail->createAttachment($filecontent,'application/octet-stream',Zend_Mime::DISPOSITION_ATTACHMENT, Zend_Mime::ENCODING_BASE64, 'offlineapp.pdf');
|
||||
|
@ -875,8 +875,10 @@ class Admin_DownController extends Zend_Controller_Action
|
|||
if ($form->isValid($formdata)) {
|
||||
$uploadedData = $form->getValues();
|
||||
$pdf = basename($form->pdf->getFileName());
|
||||
$sql="insert into offlineapp (username,email,unit,phone,address,postcode,project,pdflink,datalist,ts_created,ts_approved) values(?,?,?,?,?,?,?,?,?,?,now())";
|
||||
$this->db->query($sql,array($formdata['username'],$formdata['email'],$formdata['unit'],$formdata['phone'],$formdata['address'],$formdata['postcode'],$formdata['project'],$pdf,$formdata['datalist'],$formdata['ts_approved']));
|
||||
$sql="insert into offlineapp (username,email,unit,phone,address,postcode,project,pdflink,datalist,ts_created,ts_approved,project_id,project_title,project_type) values(?,?,?,?,?,?,?,?,?,?,?,?,?,?)";
|
||||
$this->db->query($sql,array($formdata['username'],$formdata['email'],$formdata['unit'],$formdata['phone'],$formdata['address'],$formdata['postcode'],
|
||||
$formdata['project'],$pdf,$formdata['datalist'],$formdata['ts_approved']),$formdata['ts_approved'],
|
||||
$formdata['project_id'],$formdata['project_title'],$formdata['project_type']);
|
||||
$this->messenger->addMessage('提示信息:您已经成功添加该离线服务记录。');
|
||||
$this->_redirect('/admin/down/offline');
|
||||
} else {
|
||||
|
@ -897,11 +899,14 @@ class Admin_DownController extends Zend_Controller_Action
|
|||
$pdf = basename($form->pdf->getFileName());
|
||||
$sql="update offlineapp set username=?,email=?,unit=?,phone=?,address=?,postcode=?,project=?,";
|
||||
if ($form->pdf->isUploaded()) $sql.="pdflink=?,";
|
||||
$sql.="datalist=?,ts_approved=? where id=?";
|
||||
$sql.="datalist=?,ts_approved=?,project_id=?,project_title=?,project_type=? where id=?";
|
||||
$param=array($formdata['username'],$formdata['email'],$formdata['unit'],$formdata['phone'],$formdata['address'],$formdata['postcode'],$formdata['project']);
|
||||
if ($form->pdf->isUploaded()) $param[]=$pdf;
|
||||
$param[]=$formdata['datalist'];
|
||||
$param[]=$formdata['ts_approved'];
|
||||
$param[]=$formdata['project_id'];
|
||||
$param[]=$formdata['project_title'];
|
||||
$param[]=$formdata['project_type'];
|
||||
$param[]=$edit;
|
||||
$this->db->query($sql,$param);
|
||||
$this->messenger->addMessage('提示信息:您已经编辑添加该记录。');
|
||||
|
@ -1050,9 +1055,15 @@ class Admin_DownController extends Zend_Controller_Action
|
|||
|
||||
//设置当前活动sheet的名称
|
||||
$objActSheet->setTitle('离线服务记录');
|
||||
if (date('m')==1)
|
||||
{
|
||||
$ym=(date('Y')-1).'-12-1';
|
||||
} else {
|
||||
$ym=date('Y-').(date('m')-1).'-1';
|
||||
}
|
||||
$sql="select o.username,o.unit,o.phone,o.address,o.postcode,o.project,regexp_replace(o.datalist,'\(.+?MB\)','','g') as datalist,date(o.ts_approved) as date,o.email,o.project_id,o.project_type,o.project_title,sum(m.filesize) as filesize
|
||||
from offlineapp o left join dataorder d on o.id=d.offlineappid left join metadata m on d.uuid=m.uuid
|
||||
where o.ts_approved>='".date('Y-').(date('m')-1)."-1' and o.ts_approved<'".date('Y-m')."-1' and o.pdflink is not null and o.ts_approved is not null and d.status=5 group by o.id order by o. ts_approved
|
||||
where o.ts_approved>='".$ym."' and o.ts_approved<'".date('Y-m')."-1' and o.pdflink is not null and o.ts_approved is not null and d.status=5 group by o.id order by o. ts_approved
|
||||
";
|
||||
$re = $this->db->query($sql);
|
||||
$rows = $re->fetchAll();
|
||||
|
@ -1081,7 +1092,7 @@ class Admin_DownController extends Zend_Controller_Action
|
|||
$objActSheet->setTitle('在线服务记录');
|
||||
$sql="select o.username,o.unit,o.phone,o.address,o.postcode,o.project,date(o.ts_created) as date,o.email,o.project_id,o.project_type,o.project_title,m.filesize,m.title
|
||||
from onlineapp o left join dataorder d on o.id=d.onlineappid left join metadata m on d.uuid=m.uuid
|
||||
where o.ts_created>='".date('Y-').(date('m')-1)."-1' and o.ts_created<'".date('Y-m')."-1' and d.status=0 order by o. ts_created
|
||||
where o.ts_created>='".$ym."' and o.ts_created<'".date('Y-m')."-1' and d.status=0 order by o. ts_created
|
||||
";
|
||||
$re = $this->db->query($sql);
|
||||
$rows = $re->fetchAll();
|
||||
|
@ -1364,7 +1375,7 @@ class Admin_DownController extends Zend_Controller_Action
|
|||
$sql = "select distinct u.email
|
||||
from dataorder d
|
||||
LEFT JOIN users u on d.userid = u.id
|
||||
WHERE u.email IS NOT NULL
|
||||
WHERE u.email IS NOT NULL and d.status in (0,5) and d.ts_approved is not null
|
||||
AND d.uuid=?
|
||||
GROUP BY u.email";
|
||||
|
||||
|
|
|
@ -119,6 +119,7 @@ class Admin_NewsController extends Zend_Controller_Action
|
|||
$data['code'] = $this->_request->getParam('code');
|
||||
$data['fid'] = $this->_request->getParam('fid');
|
||||
$data['ptype'] = $this->_request->getParam('ptype');
|
||||
$data['title_en'] = $this->_request->getParam('title_en');
|
||||
|
||||
$data['is_pub'] = 1;
|
||||
|
||||
|
@ -193,6 +194,7 @@ class Admin_NewsController extends Zend_Controller_Action
|
|||
$data['fid'] = $this->_request->getParam('fid');
|
||||
$data['ptype'] = $this->_request->getParam('ptype');
|
||||
$data['is_pub'] = $this->_request->getParam('is_pub');
|
||||
$data['title_en'] = $this->_request->getParam('title_en');
|
||||
|
||||
$this->view->info = $data;
|
||||
|
||||
|
@ -380,7 +382,8 @@ class Admin_NewsController extends Zend_Controller_Action
|
|||
'pubtimer',
|
||||
'pubtime',
|
||||
'description',
|
||||
'keyword'
|
||||
'keyword',
|
||||
'language'
|
||||
);
|
||||
foreach($_POST as $k=>$v)
|
||||
{
|
||||
|
@ -435,7 +438,8 @@ class Admin_NewsController extends Zend_Controller_Action
|
|||
'source' => $source,
|
||||
'ts_published' => $pubtime,
|
||||
'is_pub' => $pub,
|
||||
'body' => $body
|
||||
'body' => $body,
|
||||
'language' => $language
|
||||
);
|
||||
|
||||
$update = $this->_getParam('update');
|
||||
|
|
|
@ -761,7 +761,7 @@ class Admin_ReviewController extends Zend_Controller_Action
|
|||
if (is_numeric($ids))
|
||||
{
|
||||
$sql="select distinct u.email,m.title,m.uuid from mdstatus s left join metadata m on s.uuid=m.uuid
|
||||
left join mdauthor a on s.uuid=a.uuid left join users u on a.userid=u.id where s.id=? order by u.email";
|
||||
right join mdauthor a on s.uuid=a.uuid left join users u on a.userid=u.id where s.id=? order by u.email";
|
||||
$rs=$this->db->query($sql,array($ids));
|
||||
$rows=$rs->fetchAll();
|
||||
if ($rows)
|
||||
|
@ -805,9 +805,10 @@ class Admin_ReviewController extends Zend_Controller_Action
|
|||
$this->view->keyword = $keyword;
|
||||
}
|
||||
|
||||
$sql = "select m.id,md.title,md.uuid,u.username,u.realname,m.status,m.ts_created from mdstatus m
|
||||
$sql = "select m.id,md.title,md.uuid,u.username,u.realname,m.status,m.ts_created,gn.id as gnid from mdstatus m
|
||||
right join metadata md on md.uuid=m.uuid
|
||||
left join users u on u.id=m.userid
|
||||
left join geonetworkmetadata gn on m.uuid=gn.uuid
|
||||
where status=0 $searchjoin order by m.ts_created desc";
|
||||
|
||||
$re = $this->db->query($sql);
|
||||
|
@ -909,7 +910,7 @@ class Admin_ReviewController extends Zend_Controller_Action
|
|||
$sql = "select m.id,md.title,md.uuid,u.username,u.realname,m.status,m.ts_finished from mdstatus m
|
||||
right join metadata md on md.uuid=m.uuid
|
||||
left join users u on u.id=m.userid
|
||||
where status=5 $searchjoin";
|
||||
where status=5 $searchjoin order by m.ts_finished desc";
|
||||
|
||||
$re = $this->db->query($sql);
|
||||
$rows = $re->fetchAll();
|
||||
|
|
|
@ -195,7 +195,32 @@ class Admin_StatController extends Zend_Controller_Action
|
|||
//按用户统计
|
||||
function userAction(){
|
||||
|
||||
$ac = $this->_getParam('ac');
|
||||
$this->view->ac = $ac = $this->_getParam('ac');
|
||||
|
||||
if($ac == "new")
|
||||
{
|
||||
$this->_helper->viewRenderer('user-new');
|
||||
$this->view->year = $year = !empty($this->_getParam('year')) ? $this->_getParam('year'):date("Y");
|
||||
$this->view->by = $by = !empty($this->_getParam('by')) ? $this->_getParam('by'):"month";
|
||||
$userStatistics = new \Statistics\User();
|
||||
|
||||
if($by == "month")
|
||||
{
|
||||
$this->view->data = $userStatistics->getNewUsersByMonth($year);
|
||||
}
|
||||
|
||||
if($by == "year")
|
||||
{
|
||||
$this->view->data = $userStatistics->getNewUsersByYear($year);
|
||||
}
|
||||
|
||||
if($by == "monthavg")
|
||||
{
|
||||
$this->view->data = $userStatistics->getAverageSingupByMonth($year);
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
if($ac == "get")
|
||||
{
|
||||
|
|
|
@ -29,41 +29,47 @@ $this->theme->AppendPlus($this,'colorbox');
|
|||
<?php if(!empty($this->msg)) { ?>
|
||||
<?= $this->msg ?>
|
||||
<?php } else{ ?>
|
||||
<div class="alert alert-info">
|
||||
<button type="button" class="close" data-dismiss="alert">×</button>
|
||||
<h4>提示</h4>
|
||||
如果元数据中标题发生了变更,在DOI中也需要变更时需要在这里点击“提交”按钮才能生效
|
||||
</div>
|
||||
<form class="form-horizontal" method="post">
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="doi">doi</label>
|
||||
<div class="controls">
|
||||
<input type="text" id="doi" name="doi" readonly="readonly" value="<?= (isset($this->data['doi'])&&!empty($this->data['doi'])) ? $this->data['doi']:"doi:10.3972/westdc.x.2013.db" ?>" />
|
||||
<input type="text" id="doi" name="doi" readonly="readonly" class="input-block-level"
|
||||
value="<?= (isset($this->data['doi'])&&!empty($this->data['doi'])) ? $this->data['doi']:"doi:10.3972/westdc.x.2013.db" ?>" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="uuid">uuid</label>
|
||||
<div class="controls">
|
||||
<input type="text" id="uuid" name="uuid" readonly="readonly" value="<?= isset($this->data['uuid']) ? $this->data['uuid']:"" ?>" />
|
||||
<input type="text" id="uuid" name="uuid" readonly="readonly" value="<?= isset($this->data['uuid']) ? $this->data['uuid']:"" ?>" class="input-block-level" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="publisher">发布者</label>
|
||||
<div class="controls">
|
||||
<input type="text" id="publisher" name="publisher" value="<?= isset($this->data['publisher']) ? $this->data['publisher']:"" ?>" />
|
||||
<input type="text" id="publisher" name="publisher" value="<?= isset($this->data['publisher']) ? $this->data['publisher']:"" ?>" class="input-block-level" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="url">url</label>
|
||||
<div class="controls">
|
||||
<input type="text" id="url" name="url" value="<?= isset($this->data['url']) ? $this->data['url']:"" ?>" />
|
||||
<input type="text" id="url" name="url" value="<?= isset($this->data['url']) ? $this->data['url']:"" ?>" class="input-block-level"/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="title">标题</label>
|
||||
<div class="controls">
|
||||
<input type="text" id="title" name="title" readonly="readonly" value="<?= isset($this->data['title']) ? $this->data['title']:"" ?>" />
|
||||
<input type="text" id="title" name="title" readonly="readonly" value="<?= isset($this->data['title']) ? $this->data['title']:"" ?>" class="input-block-level"/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="title_en">英文标题</label>
|
||||
<div class="controls">
|
||||
<input type="text" id="title_en" name="title_en" readonly="readonly" value="<?= isset($this->data['title_en']) ? $this->data['title_en']:"" ?>" />
|
||||
<input type="text" id="title_en" name="title_en" readonly="readonly" value="<?= isset($this->data['title_en']) ? $this->data['title_en']:"" ?>" class="input-block-level" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<ul>
|
||||
<li class="title">数据管理</li>
|
||||
<ul class="nav nav-pills nav-stacked well">
|
||||
<span class="label"><h4>数据管理</h4></span>
|
||||
<li><a href="/admin/data/md">元数据管理</a></li>
|
||||
<li><a href="/admin/data/newdata">新建元数据</a></li>
|
||||
<li><a href="/admin/data/author">数据作者管理</a></li>
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
<ul>
|
||||
<li class="title">申请管理与在线下载记录</li>
|
||||
<ul class="nav nav-pills nav-stacked well">
|
||||
<span class="label"><h4>申请管理与在线下载记录</h4></span>
|
||||
<li><a href="/admin/down/offlineapp">离线数据申请管理</a></li>
|
||||
<li><a href="/admin/down/offlineapps">离线数据申请管理(新)</a></li>
|
||||
<li><a href="/admin/down/offline">离线数据服务记录</a></li>
|
||||
<li><a href="/admin/down/fixoffline">手动同步离线申请用户与网站帐号</a></li>
|
||||
<li><a href="/admin/down/online">在线数据下载记录(从20110908开始)</a></li>
|
||||
|
|
|
@ -2,36 +2,43 @@
|
|||
$this->headTitle($this->config->title->site);
|
||||
$this->headTitle('后台管理');
|
||||
$this->headTitle()->setSeparator(' - ');
|
||||
$this->headLink()->appendStylesheet('/css/admin.css');
|
||||
$this->breadcrumb('<a href="/">首页</a>');
|
||||
$this->breadcrumb('<a href="/admin">后台首页</a>');
|
||||
$this->breadcrumb('<a href="/admin/down">申请管理</a>');
|
||||
$this->headScript()->appendFile('/js/jquery-1.7.min.js');
|
||||
$this->headScript()->appendFile('/js/jquery.colorbox-min.js');
|
||||
$this->headLink()->appendStylesheet('/css/author.css');
|
||||
$this->headLink()->appendStylesheet('/css/colorbox.css');
|
||||
$this->Theme->AppendPlus($this,'colorbox');
|
||||
$this->Theme->AppendPlus($this,'uploadify');
|
||||
$this->breadcrumb('离线数据申请管理</a>');
|
||||
$this->breadcrumb()->setSeparator(' > ');
|
||||
?>
|
||||
<div id="leftPanel">
|
||||
<?= $this->partial('down/left.phtml'); ?>
|
||||
</div>
|
||||
<div id="rightPanel">
|
||||
<?php if ($this->msg or $this->messages) :?>
|
||||
<div id="message">
|
||||
<?php if ($this->msg) : ?>
|
||||
<style>
|
||||
table thead tr th {background:#EBF2F6;color:#444;}
|
||||
.high{background:#444;color:#FFF;}
|
||||
</style>
|
||||
<div class="row-fluid">
|
||||
<div class="span3">
|
||||
<?= $this->partial('down/left.phtml'); ?>
|
||||
</div>
|
||||
<div class="span9">
|
||||
<?php if ($this->msg or $this->messages) :?>
|
||||
<div id="message">
|
||||
<?php if ($this->msg) : ?>
|
||||
<p><?php echo $this->msg; ?></p>
|
||||
<?php endif; if ($this->messages): foreach($this->messages as $msg): ?>
|
||||
<?php endif; if ($this->messages): foreach($this->messages as $msg): ?>
|
||||
<p><?php echo $msg; ?></p>
|
||||
<?php endforeach;endif; ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<div class="right_title">离线数据服务记录</div>
|
||||
<a href="/admin/down/offline/add/1">添加新的离线服务记录</a> | <a href="/admin/down/offline/down/1">下载所有离线服务记录</a> | <a href="/admin/down/offline/update/1" onclick="return confirm('该操作需要较长时间,请不要中途刷新页面,是否确定继续?')">自动匹配离线下载用户与网站用户</a> | <a href="/admin/down/offline/emaillist/1">下载服务用户邮箱列表</a>
|
||||
| <a href="/admin/down/offline/monthreport/1">下载上月服务记录(科技部上报)</a>
|
||||
<?php endforeach;endif; ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<div>
|
||||
<div class="input-append">
|
||||
<h4>离线数据服务记录</h4>
|
||||
|
||||
<div class="pull-left">
|
||||
<a href="/admin/down/offline/add/1" class="btn btn-info">添加新的离线服务记录</a>
|
||||
<a href="/admin/down/offline/down/1" class="btn btn-info">下载所有离线服务记录</a>
|
||||
<a href="/admin/down/offline/update/1" class="btn btn-info" onclick="return confirm('该操作需要较长时间,请不要中途刷新页面,是否确定继续?')">自动匹配离线下载用户与网站用户</a>
|
||||
<a href="/admin/down/offline/emaillist/1" class="btn btn-info">下载服务用户邮箱列表</a>
|
||||
<a href="/admin/down/offline/monthreport/1" class="btn btn-info">下载上月服务记录(科技部上报)</a>
|
||||
</div>
|
||||
<div class="input-append pull-right">
|
||||
<form id="datasearch" class="search_form" action="">
|
||||
<input type="text" id="keyword" name="q" value="<?php if(!empty($this->q)) echo $this->q; ?>" />
|
||||
<input type="hidden" name="order" value="<?php if(!empty($this->search_order)) echo $this->search_order; ?>" />
|
||||
|
@ -39,38 +46,41 @@
|
|||
<button type="submit" class="btn" id="search_btn">搜索</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php if (count($this->paginator)): ?>
|
||||
<table>
|
||||
<thead><tr>
|
||||
<th width='70'>姓名</th>
|
||||
<th width='150'>单位</th>
|
||||
<th width='150'>地址</th>
|
||||
<th width='50'>邮编</th>
|
||||
<th width='300'>用途</th>
|
||||
<th width='300'>数据清单</th>
|
||||
<th width='120'>申请时间</th>
|
||||
<th width='100'>操作</th>
|
||||
<table class="table table-bordered table-hover">
|
||||
<thead>
|
||||
<tr>
|
||||
<th width="52">姓名</th>
|
||||
<th>单位</th>
|
||||
<th>地址</th>
|
||||
<th>邮编</th>
|
||||
<th>用途</th>
|
||||
<th>数据清单</th>
|
||||
<th>申请时间</th>
|
||||
<th>操作</th>
|
||||
</tr></thead>
|
||||
<tbody>
|
||||
<?php $autoindex=0;?>
|
||||
<?php foreach ($this->paginator as $item): ?>
|
||||
<?php $autoindex++;?>
|
||||
<tr class="<?php if($autoindex%2 == 0) echo 'even'; else echo 'odd'; ?>">
|
||||
<td><a href="/admin/user/show/id/<?php echo $item['userid'];?>"><img src="/images/user.gif" /></a> <a href="/admin/down/user/show/<?php echo $item['userid'];?>"><?= $item['username']?></a> </td>
|
||||
<td><a href="/admin/down/user/show/<?php echo $item['userid'];?>"><?= $item['username']?></a></td>
|
||||
<td><?= $item['unit']; ?></td>
|
||||
<td><?= $item['address']; ?></td>
|
||||
<td><?= $item['postcode']; ?></td>
|
||||
<td><textarea readonly="readonly" style="width:300px;height:100px;border:none;font-size:12px;<?php if($autoindex%2 == 0) echo 'background:#CCCCCC;'; else echo 'background:#FFF;'; ?>"><?= $item['project'].'['.$item['project_title'].' | '.$item['project_type'].' | '.$item['project_id'].']'; ?></textarea></td>
|
||||
<td><textarea readonly="readonly" style="width:300px;height:100px;border:none;font-size:12px;<?php if($autoindex%2 == 0) echo 'background:#CCCCCC;'; else echo 'background:#FFF;'; ?>"><?= $item['datalist']; ?></textarea></td>
|
||||
<td><textarea readonly="readonly" style="width:280px;height:100px;border:none;font-size:12px;"><?= $item['project'].'['.$item['project_title'].' | '.$item['project_type'].' | '.$item['project_id'].']'; ?></textarea></td>
|
||||
<td><textarea readonly="readonly" style="width:280px;height:100px;border:none;font-size:12px;"><?= $item['datalist']; ?></textarea></td>
|
||||
<td><?= date('Y-m-d',strtotime($item['ts_created'])); ?></td>
|
||||
<td>
|
||||
<a href="/admin/down/offline/edit/<?= $item['id']; ?><?php if(empty($this->page)) "" ; else echo "/page/".$this->page; ?>">编辑</a> |
|
||||
<a href="/admin/down/offline/delete/<?= $item['id']; ?>" title="该操作将删除此记录并且删除与此记录有关的申请记录!请谨慎操作" onclick="return confirm('请仅删除测试用途的离线服务记录!')">删除</a> |
|
||||
<a href="/admin/down/offlineapp/view/<?= $item['id']; ?>">PDF</a> |
|
||||
<a href="/admin/down/offline/show/<?= $item['id']; ?>">详细</a> |
|
||||
<a href="javascript:action('finish',<?= $item['id']; ?>);" onclick="return confirm('确定确定重新通过该申请?')">重新通过</a>
|
||||
<a href="javascript:action('finish',<?= $item['id']; ?>);" onclick="return confirm('确定确定重新通过该申请?')">重新通过</a> |
|
||||
<a href="javascript:void(0);" onclick="upload.showUploadForm(<?= $item['id'] ?>);">上传签字申请表</a>
|
||||
<?php if(!empty($item['applicationform'])) { ?>
|
||||
| <a href="/admin/down/applicationform/ac/view/?link=<?= urlencode($item['applicationform'])?>">查看签字申请表</a>
|
||||
<?php }?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
|
@ -78,6 +88,64 @@
|
|||
<?php endif; ?>
|
||||
<div class="pagenavi"><?= $this->paginator; ?></div>
|
||||
</div>
|
||||
</div><!-- row -->
|
||||
<div id="upload-form" class="modal hide fade" tabindex="-1" aria-hidden="true">
|
||||
<div class="modal-header">
|
||||
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
|
||||
<h3 id="myModalLabel">申请表上传</h3>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<form id="application-form">
|
||||
<div id="fsUploadProgress">允许上传30M以内的 PDF 文件</div>
|
||||
<input type="file" name="Filedata" id="file_upload" />
|
||||
</form>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button class="btn" data-dismiss="modal" aria-hidden="true">取消上传</button>
|
||||
<button class="btn btn-primary">上传完成</button>
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
//var param = {};
|
||||
//var upload_count = 0;
|
||||
var uploader;
|
||||
var param;
|
||||
$(function() {
|
||||
$('#file_upload').uploadify({
|
||||
'swf' : '/js/lib/uploadify/uploadify.swf',
|
||||
'uploader' : '/admin/down/uploadapplicationform',
|
||||
'multi' : false,
|
||||
'auto' : true,
|
||||
'fileTypeExts' : '*.pdf; *.jpg',
|
||||
'onUploadSuccess' : function(file, data, response) {
|
||||
upload.onsuccess(file, data, response);
|
||||
},
|
||||
'onUploadStart' : function(file) {
|
||||
$('#file_upload').uploadify('settings','formData',param);
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
var upload = {
|
||||
onsuccess : function(file, data, response){
|
||||
_data = $.parseJSON(data);
|
||||
if(!$.isEmptyObject(_data.error))
|
||||
{
|
||||
alert(_data.error);
|
||||
}else{
|
||||
$('#upload-form').modal('hide');
|
||||
window.location = window.location;
|
||||
}
|
||||
},
|
||||
showUploadForm : function(id){
|
||||
$('#upload-form').modal('show');
|
||||
param = {
|
||||
"PHPSESSID" : "<?php echo session_id(); ?>",
|
||||
'orderid' : id
|
||||
};
|
||||
}
|
||||
};
|
||||
</script>
|
||||
<script>
|
||||
function action(name,id){
|
||||
var url;
|
||||
|
|
|
@ -2,55 +2,58 @@
|
|||
$this->headTitle($this->config->title->site);
|
||||
$this->headTitle('后台管理');
|
||||
$this->headTitle()->setSeparator(' - ');
|
||||
$this->headLink()->appendStylesheet('/css/admin.css');
|
||||
$this->breadcrumb('<a href="/">首页</a>');
|
||||
$this->breadcrumb('<a href="/admin">后台首页</a>');
|
||||
$this->breadcrumb('<a href="/admin/down">申请管理</a>');
|
||||
$this->Theme->AppendPlus($this,'colorbox');
|
||||
$this->Theme->AppendPlus($this,'uploadify');
|
||||
$this->headLink()->appendStylesheet('/css/author.css');
|
||||
$this->breadcrumb('离线数据申请管理</a>');
|
||||
$this->breadcrumb()->setSeparator(' > ');
|
||||
?>
|
||||
<div id="leftPanel">
|
||||
<?= $this->partial('down/left.phtml'); ?>
|
||||
</div>
|
||||
<div id="rightPanel">
|
||||
|
||||
<?php if ($this->msg or $this->messages) :?>
|
||||
<div id="message">
|
||||
<?php if ($this->msg) : ?>
|
||||
<div class="row-fluid">
|
||||
<div class="span3">
|
||||
<?= $this->partial('down/left.phtml'); ?>
|
||||
</div>
|
||||
<div class="span9">
|
||||
<?php if ($this->msg or $this->messages) :?>
|
||||
<div id="message">
|
||||
<?php if ($this->msg) : ?>
|
||||
<p><?php echo $this->msg; ?></p>
|
||||
<?php endif; if ($this->messages): foreach($this->messages as $msg): ?>
|
||||
<?php endif; if ($this->messages): foreach($this->messages as $msg): ?>
|
||||
<p><?php echo $msg; ?></p>
|
||||
<?php endforeach;endif; ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php endforeach;endif; ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<div class="right_title">离线数据申请管理</div>
|
||||
<h4>离线数据申请管理</h4>
|
||||
|
||||
<a href="/admin/down/offlineapp/reset/-1" onclick="return confirm('是否重置该申请?')">重置1年前的所有未收到申请表的记录</a>
|
||||
| <a href="/admin/down/offlineapp/status/4">已收到的申请</a>
|
||||
| <a href="/admin/down/offlineapp/status/-1">已拒绝的申请</a>
|
||||
| <a href="/admin/down/offlineapp/ac/pending">待处理的申请</a>
|
||||
| <a href="/admin/down/offline">已通过的申请(离线服务记录)</a>
|
||||
<div class="search">
|
||||
<form action="/admin/down/offlineapp" method="get">
|
||||
<input name="search" value="1" type="hidden">
|
||||
<ul>
|
||||
<li><input name="q" value="" type="text" placeholder="搜索关键字"></li>
|
||||
<li><input class="searchbtn" value="搜索" type="submit"></li>
|
||||
</ul>
|
||||
<div style="overflow:hidden">
|
||||
<div class="pull-left">
|
||||
<a href="/admin/down/offlineapp/reset/-1" onclick="return confirm('是否重置该申请?')" class="btn btn-info">重置1年前的所有未收到申请表的记录</a>
|
||||
<a href="/admin/down/offlineapp/status/4" class="btn btn-info">已收到的申请</a>
|
||||
<a href="/admin/down/offlineapp/status/-1" class="btn btn-info">已拒绝的申请</a>
|
||||
<a href="/admin/down/offlineapp/ac/pending" class="btn btn-info">待处理的申请</a>
|
||||
<a href="/admin/down/offline" class="btn btn-info">已通过的申请(离线服务记录)</a>
|
||||
</div>
|
||||
|
||||
<div class="input-append pull-right">
|
||||
<form id="datasearch" class="search_form" action="">
|
||||
<input type="text" id="keyword" name="q" value="<?php if(!empty($this->q)) echo $this->q; ?>" />
|
||||
<input type="hidden" name="order" value="<?php if(!empty($this->search_order)) echo $this->search_order; ?>" />
|
||||
<input type="hidden" name="sort" value="<?php if(!empty($this->search_sort)) echo $this->search_sort; ?>" />
|
||||
<button type="submit" class="btn" id="search_btn">搜索</button>
|
||||
</form>
|
||||
</div>
|
||||
<div id="datalist">
|
||||
</div>
|
||||
|
||||
<div id="datalist" style="overflow:hidden">
|
||||
<?php
|
||||
if (count($this->paginator)):
|
||||
echo "<ul>";
|
||||
echo '<ul class="unstyled">';
|
||||
$autoindex=0;
|
||||
foreach ($this->paginator as $item):
|
||||
$autoindex++;?>
|
||||
<li id="list_<?php echo $item['id'];?>">
|
||||
<li id="list_<?php echo $item['id'];?>" class="well well-small">
|
||||
<p>
|
||||
<?= $autoindex ?>.
|
||||
<a href="mailto:<?= $item['email']; ?>?subject=答复数据申请问题"><?= $item['username']; ?></a> |
|
||||
|
@ -91,6 +94,7 @@
|
|||
<div class="pagenavi"><?= $this->paginator; ?></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="upload-form" class="modal hide fade" tabindex="-1" aria-hidden="true">
|
||||
<div class="modal-header">
|
||||
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
|
||||
|
|
|
@ -81,6 +81,12 @@
|
|||
<small>如填写: technology 则前台访问地址为: http://westdc.westgis.ac.cn/news/technology </small>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<label class="required" for="code">英文标题</label><br/>
|
||||
<input type="text" id="title_en" class="half" value="<?php if(!empty($this->info['title_en'])) echo $this->info['title_en'];?>" name="title_en" />
|
||||
<small></small>
|
||||
</p>
|
||||
|
||||
<input type="hidden" name="submit" value="1" />
|
||||
|
||||
<p class="box"><input type="submit" class="btn btn-green big" value="提交"/> or <input type="reset" class="btn" value="重置"/></p>
|
||||
|
|
|
@ -95,6 +95,12 @@
|
|||
</select>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<label class="required" for="code">英文标题</label><br/>
|
||||
<input type="text" id="title_en" class="half" value="<?php if(!empty($this->info['title_en'])) echo $this->info['title_en'];?>" name="title_en" />
|
||||
<small></small>
|
||||
</p>
|
||||
|
||||
<input type="hidden" name="submit" value="1" />
|
||||
<input type="hidden" name="edit" value="<?= $this->info['id']?>"? />
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<ul class="nav nav-list">
|
||||
<li class="title">新闻中心</li>
|
||||
<ul class="nav nav-pills nav-stacked well">
|
||||
<span class="label"><h4>新闻中心</h4></span>
|
||||
<li><a href="/admin/news">新闻中心首页</a></li>
|
||||
<li><a href="/admin/news/catlog">栏目管理</a></li>
|
||||
<li><a href="/admin/news/catlog/add/1">栏目添加</a></li>
|
||||
|
|
|
@ -76,6 +76,20 @@ $(document).ready(function(){
|
|||
<input type="text" id="producttitle" class="span12" name="title" value="<?= isset($this->data['title']) ? $this->data['title']:"" ?>" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="source">语言</label>
|
||||
<div class="controls">
|
||||
<label class="radio inline">
|
||||
<input type="radio" id="inlineCheckbox1" name="language" value="zh"
|
||||
<?= isset($this->data['language']) && $this->data['language'] =='zh' ? 'checked="checked"':"" ?>
|
||||
<?= !isset($this->data['language']) || empty($this->data['language']) ? 'checked="checked"':"" ?>
|
||||
> zh
|
||||
</label>
|
||||
<label class="radio inline">
|
||||
<input type="radio" id="inlineCheckbox1" name="language" value="en" <?= isset($this->data['language']) && $this->data['language'] =='en' ? 'checked="checked"':"" ?>> en
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="source">来源</label>
|
||||
<div class="controls">
|
||||
|
|
|
@ -77,7 +77,6 @@ $(document).ready(function(){
|
|||
<section class="column width6">
|
||||
|
||||
<h3>发布新闻</h3>
|
||||
|
||||
<form name="form" id="archivesadd" method="post" action="#">
|
||||
|
||||
<fieldset>
|
||||
|
@ -87,7 +86,20 @@ $(document).ready(function(){
|
|||
<label class="required" for="producttitle">标题</label><br/>
|
||||
<input type="text" id="producttitle" class="half title" value="<?php echo $this->ev['title']; ?>" name="title"/>
|
||||
</p>
|
||||
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="source">语言</label>
|
||||
<div class="controls">
|
||||
<label class="radio inline">
|
||||
<input type="radio" id="inlineCheckbox1" name="language" value="zh"
|
||||
<?= isset($this->ev['language']) && $this->ev['language'] =='zh' ? 'checked="checked"':"" ?>
|
||||
<?= !isset($this->ev['language']) || empty($this->ev['language']) ? 'checked="checked"':"" ?>
|
||||
> zh
|
||||
</label>
|
||||
<label class="radio inline">
|
||||
<input type="radio" id="inlineCheckbox1" name="language" value="en" <?= isset($this->ev['language']) && $this->ev['language'] =='en' ? 'checked="checked"':"" ?>> en
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
<p>
|
||||
<label for="source" class="required">来源</label><br/>
|
||||
<input type="text" id="source" class="half title" value="<?php echo $this->ev['source']; ?>" name="source"/>
|
||||
|
|
|
@ -44,9 +44,10 @@ table thead tr th {background:#EBF2F6;color:#444;}
|
|||
<?php foreach ($this->paginator as $item): ?>
|
||||
<tr>
|
||||
<td><input type="checkbox" name="update[]" value="<?php echo $item['id']; ?>"/></td>
|
||||
<td><a href="/data/<?php echo $item['uuid'];?>"><?php echo $item['title']; ?></a></td>
|
||||
<td><?php echo $item['title']; ?>【<a href="/service/geonetwork?url=metadata.show?id=<?php echo $item['gnid'];?>">GeoNetwork查看</a>】</td>
|
||||
<td><?php echo date("Y-m-d H:i",strtotime($item['ts_created']));?></td>
|
||||
<td><a href="/admin/review/draft/update/<?php echo $item['id']; ?>">接收</a>
|
||||
<td><a href="/admin/review/draft/update/<?php echo $item['id']; ?>">接收</a> |
|
||||
<a href="/admin/review/accept/cancel/<?php echo $item['id']; ?>">取消评审</a>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<ul>
|
||||
<li class="title">信息统计</li>
|
||||
<ul class="nav nav-pills nav-stacked well">
|
||||
<span class="label"><h4>信息统计</h4></span>
|
||||
<li><a href="/admin/stat/">统计概况</a></li>
|
||||
<li><a href="/admin/stat/unit">分单位统计</a></li>
|
||||
<li><a href="/admin/stat/month">分月统计</a></li>
|
||||
|
|
|
@ -40,6 +40,9 @@
|
|||
<a href="/admin/stat/month/y/2010">2010</a>
|
||||
<a href="/admin/stat/month/y/2011">2011</a>
|
||||
<a href="/admin/stat/month/y/2012">2012</a>
|
||||
<a href="/admin/stat/month/y/2013">2013</a>
|
||||
<a href="/admin/stat/month/y/2014">2014</a>
|
||||
<a href="/admin/stat/month/y/2015">2015</a>
|
||||
</div>
|
||||
<div class="charts">
|
||||
<div class="title" id="title_online"><?php echo $this->y.'年按月在线下载条数(有用途记录,且无数据重复)统计';?></div>
|
||||
|
|
|
@ -0,0 +1,4 @@
|
|||
<ul class="nav nav-tabs">
|
||||
<li <?= empty($this->ac) ? 'class="active"':"" ?>><a href="/admin/stat/user">概况</a></li>
|
||||
<li <?= $this->ac == "new" ? 'class="active"':"" ?>><a href="/admin/stat/user/ac/new">新用户</a></li>
|
||||
</ul>
|
|
@ -0,0 +1,190 @@
|
|||
<?php
|
||||
$this->headTitle($this->config->title->site);
|
||||
$this->headTitle('后台管理');
|
||||
$this->headTitle()->setSeparator(' - ');
|
||||
$this->theme->AppendPlus($this,'jquery');
|
||||
$this->theme->AppendPlus($this,'colorbox');
|
||||
$this->headLink()->appendStylesheet('/css/jquery.jqplot.css');
|
||||
$this->breadcrumb('<a href="/">首页</a>');
|
||||
$this->breadcrumb('<a href="/admin">后台首页</a>');
|
||||
$this->breadcrumb()->setSeparator(' > ');
|
||||
?>
|
||||
<script language="javascript" type="text/javascript" src="/static/js/plot/jquery.jqplot.js"></script>
|
||||
<script language="javascript" type="text/javascript" src="/static/js/plot/plugins/jqplot.barRenderer.js"></script>
|
||||
<script language="javascript" type="text/javascript" src="/static/js/plot/plugins/jqplot.pieRenderer.js"></script>
|
||||
<script language="javascript" type="text/javascript" src="/static/js/plot/plugins/jqplot.categoryAxisRenderer.js"></script>
|
||||
<script language="javascript" type="text/javascript" src="/static/js/plot/plugins/jqplot.highlighter.js"></script>
|
||||
<script language="javascript" type="text/javascript" src="/static/js/plot/plugins/jqplot.pointLabels.js"></script>
|
||||
<div class="row-fluid">
|
||||
<div class="span2">
|
||||
<?= $this->partial('stat/left.phtml'); ?>
|
||||
</div>
|
||||
<div class="span10">
|
||||
|
||||
<?= $this->partial('stat/user-nav.phtml',array('ac'=>$this->ac)); ?>
|
||||
|
||||
<div class="cp">
|
||||
方式:
|
||||
<a href="/admin/stat/user/ac/new/by/month<?= $this->year ? "/year/".$this->year:"" ?>" class="btn btn-info <?= $this->by == "month" ? "disabled":"" ?>">按月</a>
|
||||
<a href="/admin/stat/user/ac/new/by/year<?= $this->year ? "/year/".$this->year:"" ?>" class="btn btn-info <?= $this->by == "year" ? "disabled":"" ?>">按年</a>
|
||||
<a href="/admin/stat/user/ac/new/by/monthavg<?= $this->year ? "/year/".$this->year:"" ?>" class="btn btn-info <?= $this->by == "monthavg" ? "disabled":"" ?>">月均值</a>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
年份:
|
||||
<?php if(in_array($this->by,array("year","monthavg") )) {?><a href="/admin/stat/user/ac/new/by/<?= $this->by ?>/year/-1" class="btn btn-info">所有</a><?php } ?>
|
||||
<?php for($i = (int)date("Y");$i>=2004 ;$i--)
|
||||
{
|
||||
$active = $this->year == $i ? "disabled":"";
|
||||
echo '<a href="/admin/stat/user/ac/new/by/'.$this->by.'/year/'.$i.'" class="btn btn-info '.$active.'">'.$i.'</a>';
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
|
||||
<?php if($this->by == 'month' && !empty($this->data)){ ?>
|
||||
|
||||
<hr />
|
||||
<h4><?= $this->year ?>的按月新用户注册量统计</h4>
|
||||
<div class="row-fluid">
|
||||
<div class="span3">
|
||||
<table class="table table-bordered table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>月份</th>
|
||||
<th>增量</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php foreach($this->data as $k=>$v) {?>
|
||||
<tr><td><?= $v['date_part'] ?></td><td><?= $v['count'] ?></td></tr>
|
||||
<?php } ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div class="span9">
|
||||
<!-- 统计图表 -->
|
||||
<script type="text/javascript">
|
||||
$(function () {
|
||||
<?php
|
||||
$vars = array();
|
||||
$month = array();
|
||||
foreach ($this->data as $v)
|
||||
{
|
||||
$vars[] = $v['count'];
|
||||
$month[]= "'".$v['date_part']."'";
|
||||
}
|
||||
?>
|
||||
var s1 = [<?php echo join(',',$vars); ?>];
|
||||
var ticks = [<?php echo join(',',$month); ?>];
|
||||
|
||||
plot1 = $.jqplot('chart_div_year_seq', [s1], {
|
||||
seriesDefaults:{
|
||||
renderer:$.jqplot.BarRenderer,
|
||||
pointLabels: { show: true }
|
||||
},
|
||||
axes: {
|
||||
xaxis: {
|
||||
renderer: $.jqplot.CategoryAxisRenderer,
|
||||
ticks: ticks
|
||||
}
|
||||
},
|
||||
highlighter: { show: false }
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
<div class="content" id="chart_div_year_seq"></div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php } ?>
|
||||
|
||||
<?php if($this->by == 'year' && !empty($this->data)){ ?>
|
||||
|
||||
<hr />
|
||||
<h4><?= $this->year == -1 ? "所有":$this->year ?>的新用户注册量统计</h4>
|
||||
<div class="row-fluid">
|
||||
<div class="span3">
|
||||
<table class="table table-bordered table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>年份</th>
|
||||
<th>增量</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php foreach($this->data as $k=>$v) {?>
|
||||
<tr><td><?= $v['date_part'] ?></td><td><?= $v['count'] ?></td></tr>
|
||||
<?php } ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div class="span9">
|
||||
<!-- 统计图表 -->
|
||||
<script type="text/javascript">
|
||||
$(function () {
|
||||
<?php
|
||||
$vars = array();
|
||||
$month = array();
|
||||
foreach ($this->data as $v)
|
||||
{
|
||||
$vars[] = $v['count'];
|
||||
$month[]= "'".$v['date_part']."'";
|
||||
}
|
||||
?>
|
||||
var s1 = [<?php echo join(',',$vars); ?>];
|
||||
var ticks = [<?php echo join(',',$month); ?>];
|
||||
|
||||
plot1 = $.jqplot('chart_div_year_seq', [s1], {
|
||||
seriesDefaults:{
|
||||
renderer:$.jqplot.BarRenderer,
|
||||
pointLabels: { show: true }
|
||||
},
|
||||
axes: {
|
||||
xaxis: {
|
||||
renderer: $.jqplot.CategoryAxisRenderer,
|
||||
ticks: ticks
|
||||
}
|
||||
},
|
||||
highlighter: { show: false }
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
<div class="content" id="chart_div_year_seq"></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php } ?>
|
||||
|
||||
<?php if($this->by == 'monthavg' && !empty($this->data)){ ?>
|
||||
|
||||
<hr />
|
||||
<h4><?= $this->year ?>的月均用户注册量</h4>
|
||||
<div class="row-fluid">
|
||||
<div class="span3">
|
||||
<table class="table table-bordered table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>年份</th>
|
||||
<th>月均</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php foreach($this->data as $k=>$v) {?>
|
||||
<tr><td><?= $v['date_part'] ?></td><td><?= $v['count'] ?></td></tr>
|
||||
<?php } ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div class="span9">
|
||||
<!-- 统计图表 -->
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php } ?>
|
||||
|
||||
</div>
|
||||
</div>
|
|
@ -10,33 +10,22 @@
|
|||
$this->breadcrumb('<a href="/admin">后台首页</a>');
|
||||
$this->breadcrumb()->setSeparator(' > ');
|
||||
?>
|
||||
<style>
|
||||
.charts{margin:30px 0px;}
|
||||
.charts .title{color:#003366;}
|
||||
.cp {line-height:24px;}
|
||||
.cp ul li{float:left;margin:0px 0px;}
|
||||
.cp a{color:#4bb2c5;line-height:24px;padding:5px;}
|
||||
.cp a.active,.cp a:hover{color:#FFF;background:#4bb2c5;}
|
||||
</style>
|
||||
<div id="leftPanel">
|
||||
<?= $this->partial('stat/left.phtml'); ?>
|
||||
</div>
|
||||
<div id="rightPanel">
|
||||
<div class="row-fluid">
|
||||
<div class="span2">
|
||||
<?= $this->partial('stat/left.phtml'); ?>
|
||||
</div>
|
||||
<div class="span10">
|
||||
|
||||
<div class="cp">
|
||||
<ul>
|
||||
<li>
|
||||
<a href="/admin/stat/user/ac/get/down/csv">导出csv格式</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="/admin/stat/user/ac/get/down/json">导出JSON格式</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div id="unitdata">
|
||||
<b>点击列名进行排序</b>
|
||||
</div>
|
||||
<div class="dataTables_wrapper">
|
||||
<?= $this->partial('stat/user-nav.phtml',array('ac'=>$this->ac)); ?>
|
||||
|
||||
<div class="cp">
|
||||
<a href="/admin/stat/user/ac/get/down/csv" class="btn btn-info">导出csv格式</a>
|
||||
<a href="/admin/stat/user/ac/get/down/json" class="btn btn-info">导出JSON格式</a>
|
||||
</div>
|
||||
<div id="unitdata">
|
||||
<b>点击列名进行排序</b>
|
||||
</div>
|
||||
<div class="dataTables_wrapper">
|
||||
<table id="datatable" class="table table-bordered table-striped table_vam dataTable">
|
||||
<thead>
|
||||
<tr>
|
||||
|
@ -51,8 +40,9 @@
|
|||
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<ul>
|
||||
<li class="title">系统管理</li>
|
||||
<ul class="nav nav-pills nav-stacked well">
|
||||
<span class="label"><h4>系统管理</h4></span>
|
||||
<li><a href="/admin/sys/emailtext">邮件模板管理</a></li>
|
||||
<!--<li><a href="/admin/sys/seekspace">文献平台同步</a></li>-->
|
||||
<li><a href="/admin/sys/message">管理消息</a></li>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<ul>
|
||||
<li class="title">用户管理</li>
|
||||
<ul class="nav nav-pills nav-stacked well">
|
||||
<span class="label"><h4>用户管理</h4></span>
|
||||
<li><a href="/admin/user/">用户管理首页</a></li>
|
||||
<li><a href="/admin/user/list">普通用户列表</a></li>
|
||||
<li><a href="/admin/user/adminlist">管理员列表</a></li>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
<ul>
|
||||
<ul class="nav nav-pills nav-stacked well">
|
||||
<li><a href="/admin/watermd/replace">正则替换工具</a></li>
|
||||
<li><a href="/admin/watermd/citetitle">引用的标题替换</a></li>
|
||||
<li><a href="/admin/watermd/filesize">文件大小处理</a></li>
|
||||
|
|
|
@ -90,7 +90,7 @@ class AboutController extends Zend_Controller_Action
|
|||
$siteid="e31f5ea7-a4af-4ae3-9ac1-1a84132c4338";//site uuid from geonetowrk
|
||||
if(empty($ac))
|
||||
{
|
||||
$sql="select * from mdref mr left join reference r on mr.refid=r.id where mr.uuid=? order by r.id desc";
|
||||
$sql="select * from mdref mr left join reference r on mr.refid=r.id where mr.uuid=? and mr.reftype=0 order by r.year desc,r.title asc";
|
||||
$sth = $this->db->prepare($sql);
|
||||
$sth->execute(array($siteid));
|
||||
$rows = $sth->fetchAll();
|
||||
|
|
|
@ -244,9 +244,11 @@ class AccountController extends Zend_Controller_Action
|
|||
|
||||
function registerAction()
|
||||
{
|
||||
$submit = $this->_getParam("submit");
|
||||
$order = new \Order\Order();
|
||||
|
||||
$captcha = new Captcha();
|
||||
$this->view->projectType = array_merge(array("None"=>""),$order->projectType);
|
||||
|
||||
$submit = $this->_getParam("submit");
|
||||
|
||||
if(!empty($submit))
|
||||
{
|
||||
|
@ -261,22 +263,16 @@ class AccountController extends Zend_Controller_Action
|
|||
{
|
||||
$this->view->place = $status['place'];
|
||||
}
|
||||
$this->view->captcha = $captcha->setCaptcha();
|
||||
}else{
|
||||
view::Post($this,"Thank you for registering at our site.","/");
|
||||
view::Post($this,"Successful register.","/");
|
||||
return true;
|
||||
}
|
||||
}else{
|
||||
$this->view->captcha = $captcha->setCaptcha();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
function loginAction()
|
||||
{
|
||||
|
||||
$success=false;
|
||||
|
||||
$options = array(
|
||||
'module' => $this->_request->getModuleName(),
|
||||
'controller' => $this->_request->getControllerName(),
|
||||
|
@ -286,20 +282,17 @@ class AccountController extends Zend_Controller_Action
|
|||
$auth = Zend_Auth::getInstance();
|
||||
if ($auth->hasIdentity())
|
||||
{
|
||||
view::Post($this,"You are login now.",-1);
|
||||
view::Post($this,"You are login now.","/index");
|
||||
return true;
|
||||
}
|
||||
|
||||
$tohref = $this->_request->getParam('href');
|
||||
|
||||
if(($options['module']=="default" && $options['controller'] == "account" && $options['action'] == "login"))
|
||||
if($_SERVER['REQUEST_URI'] !== "/account/login")
|
||||
{
|
||||
$this->view->href = $_SERVER['REQUEST_URI'];
|
||||
}
|
||||
|
||||
if($tohref == "/account/login")
|
||||
{
|
||||
$this->view->href = $tohref = "/";
|
||||
}else{
|
||||
$this->view->href = "/";
|
||||
}
|
||||
|
||||
if(!empty($tohref))
|
||||
|
@ -307,7 +300,7 @@ class AccountController extends Zend_Controller_Action
|
|||
$this->view->href = $tohref;
|
||||
}
|
||||
|
||||
$captcha = $this->loadCaptcha();
|
||||
$captcha = new Captcha();
|
||||
|
||||
$submit = $this->_getParam("submit");
|
||||
if(!empty($submit))
|
||||
|
@ -316,89 +309,34 @@ class AccountController extends Zend_Controller_Action
|
|||
$password = trim($this->_request->getParam('password'));
|
||||
$captchaword = trim($this->_request->getParam('captcha'));
|
||||
|
||||
if(empty($username))
|
||||
if($captcha->isValid($captchaword) !== true)
|
||||
{
|
||||
$this->setCaptcha($captcha);
|
||||
$this->view->error = "Please input the username";
|
||||
$this->view->error = view::Error("Wrong captcha.");
|
||||
$this->view->captcha = $captcha->setCaptcha();
|
||||
return true;
|
||||
}
|
||||
|
||||
if(empty($password))
|
||||
{
|
||||
$this->setCaptcha($captcha);
|
||||
$this->view->error = "Please input the password.";
|
||||
return true;
|
||||
}
|
||||
|
||||
if(empty($captchaword))
|
||||
{
|
||||
$this->setCaptcha($captcha);
|
||||
$this->view->error = "Please input captcha.";
|
||||
return true;
|
||||
}
|
||||
|
||||
if(!isset($_SESSION['captcha']))
|
||||
{
|
||||
$_SESSION['captcha'] = md5(time());
|
||||
}
|
||||
|
||||
if ($captchaword != $_SESSION['captcha']) {
|
||||
$this->setCaptcha($captcha);
|
||||
$this->view->error = "Wrong captcha.";
|
||||
return true;
|
||||
}
|
||||
|
||||
if (!$this->login($username,$password))
|
||||
{
|
||||
$this->setCaptcha($captcha);
|
||||
$this->view->error = "Wrong username or password.";
|
||||
$this->view->userid = $username;
|
||||
return true;
|
||||
}
|
||||
else
|
||||
{
|
||||
if(!empty($tohref))
|
||||
{
|
||||
view::Post($this,"Login success, jumping. ",$tohref);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}else{
|
||||
$this->setCaptcha($captcha);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
function loadCaptcha()
|
||||
{
|
||||
$captcha = new Zend_Captcha_Image(array(
|
||||
'captcha' => 'Image',
|
||||
'wordLen' => 4,
|
||||
'fontsize'=>16,
|
||||
'width' => 100,
|
||||
'height' => 38,
|
||||
'dotNoiseLevel'=>2,
|
||||
'lineNoiseLevel'=>1,
|
||||
'timeout' => 300,
|
||||
'font' => '../data/fonts/ggbi.ttf',
|
||||
'imgDir' => 'vdimg/',
|
||||
'imgUrl' => '/vdimg',
|
||||
$account = new Account();
|
||||
$status = $account->login(array(
|
||||
'username' => $username,
|
||||
'password' => $password
|
||||
));
|
||||
return $captcha;
|
||||
|
||||
if(isset($status['error']))
|
||||
{
|
||||
$this->view->error = view::Error($status['error']);
|
||||
$this->view->captcha = $captcha->setCaptcha();
|
||||
return true;
|
||||
}
|
||||
|
||||
function setCaptcha(Zend_Captcha_Image $captcha,$ajax = false){
|
||||
$captcha->generate();
|
||||
$_SESSION['captcha'] = $captcha->getWord();
|
||||
$url = $captcha->getImgUrl()
|
||||
.$captcha->getId()
|
||||
.$captcha->getSuffix();
|
||||
if(!$ajax)
|
||||
{
|
||||
$this->view->captcha = $url;
|
||||
|
||||
view::Post($this,"Login successful, jumping...",$tohref);
|
||||
return true;
|
||||
}else{
|
||||
return $url;
|
||||
$this->view->captcha = $captcha->setCaptcha();
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
public function captchaAction()
|
||||
|
@ -415,168 +353,120 @@ class AccountController extends Zend_Controller_Action
|
|||
}
|
||||
}
|
||||
|
||||
function logoutAction()
|
||||
|
||||
public function logoutAction()
|
||||
{
|
||||
$auth = Zend_Auth::getInstance();
|
||||
$auth->clearIdentity();
|
||||
require_once 'member.php';
|
||||
$mb=new member();
|
||||
member::flushcookie();
|
||||
Member::flushcookie();
|
||||
$this->_redirect('/');
|
||||
}
|
||||
|
||||
private function default_login($u,$p)
|
||||
public function fetchpwdAction()
|
||||
{
|
||||
$auth = Zend_Auth::getInstance();
|
||||
$db=Zend_Registry::get('db');
|
||||
|
||||
$authAdapter = new Zend_Auth_Adapter_DbTable($db);
|
||||
$authAdapter->setTableName('users')
|
||||
->setIdentityColumn('username')
|
||||
->setCredentialColumn('password');
|
||||
$authAdapter->setIdentity($u)->setCredential(md5($p));
|
||||
$result = $auth->authenticate($authAdapter);
|
||||
if ($result->isValid()) {
|
||||
// success: store database row to auth's storage
|
||||
$data = $authAdapter->getResultRowObject(null,'password');
|
||||
|
||||
//头像
|
||||
include_once("Avatar.php");
|
||||
$avatar = new Avatar();
|
||||
$data->avatar = $avatar->Get($data->email,40);
|
||||
|
||||
//组ID
|
||||
include_once("Users.php");
|
||||
$usr = new Users($db);
|
||||
$data->gid = $usr->getGroup($data->id);
|
||||
|
||||
$auth->getStorage()->write($data);
|
||||
$db->query("update users set ts_last_login=now() where username=?",array($u));
|
||||
|
||||
if ($this->_request->getParam('remember')) {
|
||||
$sql="select usertype from users where username='$u'";
|
||||
$rs=$db->query($sql);
|
||||
$row=$rs->fetch();
|
||||
//if($row['usertype']!='administrator')
|
||||
$salt = trim($this->_getParam('salt'));
|
||||
$submit = $this->_getParam('submit');
|
||||
if(empty($salt))
|
||||
{
|
||||
require_once 'member.php';
|
||||
$mb = new member();
|
||||
$mb -> putcookie($u,md5($p));
|
||||
}
|
||||
}
|
||||
$captcha = new Captcha();
|
||||
|
||||
if(!empty($submit))
|
||||
{
|
||||
$email = trim($this->_request->getParam('email'));
|
||||
$captchaword = trim($this->_request->getParam('captcha'));
|
||||
|
||||
if(!$captcha->isValid($captchaword))
|
||||
{
|
||||
$this->view->error = view::Error("Wrong captcha.");
|
||||
$this->view->captcha = $captcha->setCaptcha();
|
||||
return true;
|
||||
}else
|
||||
}
|
||||
|
||||
$account = new Account();
|
||||
$status = $account->getMyPassword($email);
|
||||
|
||||
if(isset($status['error']))
|
||||
{
|
||||
return false;
|
||||
$this->view->error = view::Error($status['error']);
|
||||
$this->view->captcha = $captcha->setCaptcha();
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
|
||||
view::Post($this,"Please check the activation link in your email.");
|
||||
return true;
|
||||
}else{
|
||||
$this->view->captcha = $captcha->setCaptcha();
|
||||
}//提交密码重置申请
|
||||
}
|
||||
private function aspnet_login($p,$salt,$password)
|
||||
|
||||
else{
|
||||
$this->_helper->viewRenderer('account-resetpassword');
|
||||
$this->view->salt = $salt;
|
||||
if(!empty($submit))
|
||||
{
|
||||
$p1=implode("\x00",str_split($p))."\x00";
|
||||
$ball=base64_decode($salt).$p1;
|
||||
return trim($password)==base64_encode(sha1($ball,true));
|
||||
}
|
||||
// 首先判断是否存在salt
|
||||
// 若有salt,则按照aspnet membership加密算法进行判断
|
||||
function login($u,$p)
|
||||
$username = trim($this->_request->getParam('username'));
|
||||
$password = trim($this->_request->getParam('password'));
|
||||
$confirm_password = trim($this->_request->getParam('confirm_password'));
|
||||
|
||||
$account = new Account();
|
||||
$status = $account->resetPassword(array(
|
||||
'username' => $username,
|
||||
'password' => $password,
|
||||
'confirm_password' => $confirm_password,
|
||||
'salt' => $salt
|
||||
));
|
||||
|
||||
if(isset($status['error']))
|
||||
{
|
||||
$ut= new UsersTable();
|
||||
$db=$ut->getAdapter();
|
||||
$sql="select password,salt from users where username=?";
|
||||
$uq=$db->query($sql,array($u));
|
||||
if ($urow=$uq->fetchObject())
|
||||
{
|
||||
if (empty($urow->salt))
|
||||
return $this->default_login($u,$p);
|
||||
else {
|
||||
//进行判断并进行转换到默认
|
||||
if ($this->aspnet_login($p,$urow->salt,$urow->password))
|
||||
{
|
||||
$sql="update users set password=md5(?),salt='' where username=?";
|
||||
$db->query($sql,array($p,$u));
|
||||
return $this->default_login($u,$p);
|
||||
} else
|
||||
return false;
|
||||
}
|
||||
} else {
|
||||
//没有对应的用户,登录失败
|
||||
return false;
|
||||
}
|
||||
}
|
||||
function fetchpwdAction()
|
||||
{
|
||||
$ut= new UsersTable();
|
||||
$db=$ut->getAdapter();
|
||||
$form = new LostpwdForm();
|
||||
$key=$this->_request->getParam('key');
|
||||
$login=$this->_request->getParam('login');
|
||||
if (empty($key) && empty($login)) {
|
||||
$this->view->form = $form;
|
||||
if ($this->_request->isPost()) {
|
||||
$formData = $this->_request->getPost();
|
||||
if ($form->isValid($formData)) {
|
||||
$sql="select * from users where email=?";
|
||||
$uq=$db->query($sql,array($formData['email']));
|
||||
if ($urow=$uq->fetchObject())
|
||||
{
|
||||
//email the url to user
|
||||
$username=$urow->username;
|
||||
$sql="update users set activation=? where email=?";
|
||||
$uid=uniqid();
|
||||
$db->query($sql,array($uid,$formData['email']));
|
||||
|
||||
//发邮件
|
||||
$mail_template = "users-changepassword";
|
||||
$mail_data = array(
|
||||
'name'=>$username,
|
||||
'url' => view::getHostLink()."/account/fetchpwd/".$username."/".$uid
|
||||
);
|
||||
|
||||
$mail = new Mail();
|
||||
|
||||
$mail->loadTemplate($mail_template,$mail_data);
|
||||
$mail->addTo($formData['email'],$username);
|
||||
$mail->send();
|
||||
|
||||
|
||||
$this->view->messages[]='Please check the activation link in your email.';
|
||||
$this->view->form=false;//do not echo form
|
||||
} else
|
||||
$this->messenger->addMessage('Sorry, the email could not find.');
|
||||
}
|
||||
} else
|
||||
$this->view->messages[]='Please input your eamil, you will get the password in your email.';
|
||||
} else {
|
||||
$sql="select * from users where username=? and activation=?";
|
||||
$uq=$db->query($sql,array($login,$key));
|
||||
$tmp_pwd=uniqid();
|
||||
if ($urow=$uq->fetchObject())
|
||||
{
|
||||
$sql="update users set salt='',activation='',password=md5('".$tmp_pwd."') where username=? and activation=?";
|
||||
$db->query($sql,array($login,$key));
|
||||
|
||||
//发邮件
|
||||
$mail_template = "users-changepassword";
|
||||
$mail_data = array(
|
||||
'name'=>$login,
|
||||
'tmp_pwd' => $tmp_pwd
|
||||
);
|
||||
|
||||
$mail = new Mail();
|
||||
|
||||
$mail->loadTemplate($mail_template,$mail_data);
|
||||
$mail->addTo($urow->email,$login);
|
||||
$mail->send();
|
||||
|
||||
$this->view->messages[]='Pleae chech the new password in your mail box.';
|
||||
$this->view->form=false;//do not echo form
|
||||
|
||||
$this->view->error = view::Error($status['error']);
|
||||
return true;
|
||||
}
|
||||
|
||||
view::Post($this,"Password change successful, please use the password log in.","/account/login");
|
||||
return true;
|
||||
}
|
||||
}//修改密码
|
||||
|
||||
} //找回密码
|
||||
|
||||
//OAuth2登录跳转页面
|
||||
public function oauth2loginAction()
|
||||
{
|
||||
$type = $this->_getParam('type');
|
||||
$client = new Client();
|
||||
$url = $client->makeRequestCodeUrl($type);
|
||||
|
||||
view::Post($this,"为您转入科技网登录入口",$url);
|
||||
}
|
||||
|
||||
//oauth2登录回调地址
|
||||
public function callbackAction()
|
||||
{
|
||||
$type = $this->_getParam('type');
|
||||
$code = $this->_getParam('code');
|
||||
|
||||
$client = new Client($type);
|
||||
|
||||
$client->initSource();
|
||||
$target = $client->getSource()->getTarget($type);
|
||||
$this->view->target_name = $target['name'];
|
||||
|
||||
$token = $client->requestToken($code);
|
||||
|
||||
if(is_string($token))
|
||||
{
|
||||
view::Post($this,$token,'/account/login');
|
||||
}
|
||||
|
||||
$status = $client->storageTokenData($type,$token);
|
||||
|
||||
if($status === true)
|
||||
{
|
||||
echo "<script>self.location='/index'</script>";
|
||||
}else{
|
||||
echo $status;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -424,7 +424,7 @@ class DataController extends Zend_Controller_Action
|
|||
$sql=$this->db->quoteInto($sql,$uuid);
|
||||
$this->view->themeref=$this->db->fetchAll($sql);
|
||||
//用户发表文献
|
||||
$sql="select r.* from reference r left join mdref m on m.refid=r.id where m.uuid=? and m.reftype=1 and r.language<>'zh'";
|
||||
$sql="select r.* from reference r left join mdref m on m.refid=r.id where m.uuid=? and m.reftype=1 and r.language<>'zh' order by r.year desc,r.ts_created desc limit 15";
|
||||
$sql=$this->db->quoteInto($sql,$uuid);
|
||||
$this->view->userref=$this->db->fetchAll($sql);
|
||||
//多篇引用形式:hiwater
|
||||
|
|
|
@ -25,8 +25,8 @@ class GlacierController extends DataController
|
|||
|
||||
function indexAction()
|
||||
{
|
||||
$sql="select m.uuid,m.title,m.id,m.description from normalmetadata m left join thumbnail t on m.id=t.id where m.uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='glacier') and length(t.data)>2 order by random() limit 3";
|
||||
$this->view->meatdata=$this->db->fetchAll($sql);
|
||||
$archive = new Archive($this->db);
|
||||
$this->view->info = $archive->getOneArchive('中国冰川资源及其变化调查-项目简介','about');
|
||||
}
|
||||
|
||||
/*
|
||||
|
@ -78,187 +78,148 @@ class GlacierController extends DataController
|
|||
|
||||
function geobaseAction()
|
||||
{
|
||||
$page=(int)$this->_request->getParam('page');
|
||||
if (empty($page)) $page=1;
|
||||
$offset=$this->limit*($page-1);
|
||||
$state=$this->db->query("select count(*) from normalmetadata where uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='glacier') and id in (select id from keyword where keytype='theme' and (keyword='遥感影像' or keyword='DEM'))");
|
||||
$row=$state->fetchAll();
|
||||
$sum=$row[0]['count'];
|
||||
$sql="select uuid,title from normalmetadata where uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='glacier') and id in (select id from keyword where keytype='theme' and (keyword='遥感影像' or keyword='DEM')) order by timebegin,title limit ? offset ?";
|
||||
$this->view->metadata=$this->db->fetchAll($sql,array($this->limit,$offset));
|
||||
$this->view->page=new Pagination($sum,$page,$this->limit);
|
||||
$this->view->offset=$offset+1;
|
||||
$archive = new Archive($this->db);
|
||||
$this->view->info = $archive->getOneArchive('中国冰川资源及其变化调查-基础数据','about');
|
||||
$this->getmd(array('遥感影像','DEM'));
|
||||
$this->_helper->viewRenderer('base');
|
||||
}
|
||||
|
||||
function demAction()
|
||||
{
|
||||
$this->getmd('DEM');
|
||||
$archive = new Archive($this->db);
|
||||
$this->view->info = $archive->getOneArchive('中国冰川资源及其变化调查-DEM','about');
|
||||
$this->_helper->viewRenderer('base');
|
||||
}
|
||||
|
||||
function rsAction()
|
||||
{
|
||||
$this->getmd('遥感影像');
|
||||
$archive = new Archive($this->db);
|
||||
$this->view->info = $archive->getOneArchive('中国冰川资源及其变化调查-遥感影像','about');
|
||||
$this->_helper->viewRenderer('base');
|
||||
}
|
||||
|
||||
function inventoryAction()
|
||||
{
|
||||
$page=(int)$this->_request->getParam('page');
|
||||
if (empty($page)) $page=1;
|
||||
$offset=$this->limit*($page-1);
|
||||
$state=$this->db->query("select count(*) from normalmetadata where uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='glacier') and id in (select id from keyword where keytype='theme' and (keyword='冰川编目' or keyword='冰湖编目'))");
|
||||
$row=$state->fetchAll();
|
||||
$sum=$row[0]['count'];
|
||||
$sql="select uuid,title from normalmetadata where uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='glacier') and id in (select id from keyword where keytype='theme' and (keyword='冰川编目' or keyword='冰湖编目')) order by timebegin,title limit ? offset ?";
|
||||
$this->view->metadata=$this->db->fetchAll($sql,array($this->limit,$offset));
|
||||
$this->view->page=new Pagination($sum,$page,$this->limit);
|
||||
$this->view->offset=$offset+1;
|
||||
$this->getmd(array('冰川编目','冰湖编目'));
|
||||
$archive = new Archive($this->db);
|
||||
$this->view->info = $archive->getOneArchive('中国冰川资源及其变化调查-冰川冰湖编目','about');
|
||||
$this->_helper->viewRenderer('base');
|
||||
}
|
||||
|
||||
function glacierAction()
|
||||
{
|
||||
$this->getmd('冰川编目');
|
||||
$archive = new Archive($this->db);
|
||||
$this->view->info = $archive->getOneArchive('中国冰川资源及其变化调查-冰川编目','about');
|
||||
$this->_helper->viewRenderer('base');
|
||||
}
|
||||
|
||||
function lakeAction()
|
||||
{
|
||||
$this->getmd('冰湖编目');
|
||||
$archive = new Archive($this->db);
|
||||
$this->view->info = $archive->getOneArchive('中国冰川资源及其变化调查-冰湖编目','about');
|
||||
$this->_helper->viewRenderer('base');
|
||||
}
|
||||
|
||||
function fieldAction()
|
||||
{
|
||||
$page=(int)$this->_request->getParam('page');
|
||||
if (empty($page)) $page=1;
|
||||
$offset=$this->limit*($page-1);
|
||||
$state=$this->db->query("select count(*) from normalmetadata where uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='glacier') and id in (select id from keyword where keytype='theme'
|
||||
and (keyword='水文' or keyword='流量' or keyword='水质' or keyword='同位素' or keyword='径流' or keyword='水位' or keyword='气象' or keyword='雨量' or keyword='GPS'
|
||||
or keyword='雷达' or keyword='雷达测厚' or keyword='冰川厚度' or keyword='物质平衡' or keyword='花杆' or keyword='运动速度' or keyword='花杆消融观测' or keyword='冰舌'
|
||||
or keyword='冰雪物理过程' or keyword='冰温' or keyword='摄影测量' or keyword='照片' or keyword='第四纪' or keyword='冻土' or keyword='植被' ))");
|
||||
$row=$state->fetchAll();
|
||||
$sum=$row[0]['count'];
|
||||
$sql="select uuid,title from normalmetadata where uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='glacier') and id in (select id from keyword where keytype='theme' and (keyword='水文' or keyword='流量' or keyword='水质' or keyword='同位素' or keyword='径流' or keyword='水位' or keyword='气象' or keyword='雨量' or keyword='GPS'
|
||||
or keyword='雷达' or keyword='雷达测厚' or keyword='冰川厚度' or keyword='物质平衡' or keyword='花杆' or keyword='运动速度' or keyword='花杆消融观测' or keyword='冰舌'
|
||||
or keyword='冰雪物理过程' or keyword='冰温' or keyword='摄影测量' or keyword='照片' or keyword='第四纪' or keyword='冻土' or keyword='植被' )) order by timebegin,title limit ? offset ?";
|
||||
$this->view->metadata=$this->db->fetchAll($sql,array($this->limit,$offset));
|
||||
$this->view->page=new Pagination($sum,$page,$this->limit);
|
||||
$this->view->offset=$offset+1;
|
||||
$this->getmd(array('水文','流量','水质','同位素','径流','水位','气象','雨量','GPS',
|
||||
'雷达','雷达测厚','冰川厚度','物质平衡','花杆','运动速度','花杆消融观测','冰舌',
|
||||
'冰雪物理过程','冰温','摄影测量','照片','第四纪','冻土','植被'));
|
||||
$archive = new Archive($this->db);
|
||||
$this->view->info = $archive->getOneArchive('中国冰川资源及其变化调查-野外考察与定位观测','about');
|
||||
$this->_helper->viewRenderer('base');
|
||||
}
|
||||
|
||||
function meteoAction()
|
||||
{
|
||||
$page=(int)$this->_request->getParam('page');
|
||||
if (empty($page)) $page=1;
|
||||
$offset=$this->limit*($page-1);
|
||||
$state=$this->db->query("select count(*) from normalmetadata where uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='glacier') and id in (select id from keyword where keytype='theme' and (keyword='气象' or keyword='雨量'))");
|
||||
$row=$state->fetchAll();
|
||||
$sum=$row[0]['count'];
|
||||
$sql="select uuid,title from normalmetadata where uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='glacier') and id in (select id from keyword where keytype='theme' and (keyword='气象' or keyword='雨量')) order by timebegin,title limit ? offset ?";
|
||||
$this->view->metadata=$this->db->fetchAll($sql,array($this->limit,$offset));
|
||||
$this->view->page=new Pagination($sum,$page,$this->limit);
|
||||
$this->view->offset=$offset+1;
|
||||
$this->getmd(array('气象','雨量'));
|
||||
$archive = new Archive($this->db);
|
||||
$this->view->info = $archive->getOneArchive('中国冰川资源及其变化调查-气象','about');
|
||||
$this->_helper->viewRenderer('base');
|
||||
}
|
||||
|
||||
function hydroAction()
|
||||
{
|
||||
$page=(int)$this->_request->getParam('page');
|
||||
if (empty($page)) $page=1;
|
||||
$offset=$this->limit*($page-1);
|
||||
$state=$this->db->query("select count(*) from normalmetadata where uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='glacier') and id in (select id from keyword where keytype='theme' and (keyword='水文' or keyword='流量' or keyword='水质' or keyword='同位素' or keyword='径流' or keyword='水位'))");
|
||||
$row=$state->fetchAll();
|
||||
$sum=$row[0]['count'];
|
||||
$sql="select uuid,title from normalmetadata where uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='glacier') and id in (select id from keyword where keytype='theme' and (keyword='水文' or keyword='流量' or keyword='水质' or keyword='同位素' or keyword='径流' or keyword='水位')) order by timebegin,title limit ? offset ?";
|
||||
$this->view->metadata=$this->db->fetchAll($sql,array($this->limit,$offset));
|
||||
$this->view->page=new Pagination($sum,$page,$this->limit);
|
||||
$this->view->offset=$offset+1;
|
||||
$this->getmd(array('水文','流量','水质','同位素','径流','水位'));
|
||||
$archive = new Archive($this->db);
|
||||
$this->view->info = $archive->getOneArchive('中国冰川资源及其变化调查-水文','about');
|
||||
$this->_helper->viewRenderer('base');
|
||||
}
|
||||
|
||||
function gpsAction()
|
||||
{
|
||||
$this->getmd('GPS','theme');
|
||||
$archive = new Archive($this->db);
|
||||
$this->view->info = $archive->getOneArchive('中国冰川资源及其变化调查-GPS','about');
|
||||
$this->_helper->viewRenderer('base');
|
||||
}
|
||||
|
||||
function lidarAction()
|
||||
{
|
||||
$page=(int)$this->_request->getParam('page');
|
||||
if (empty($page)) $page=1;
|
||||
$offset=$this->limit*($page-1);
|
||||
$state=$this->db->query("select count(*) from normalmetadata where uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='glacier') and id in (select id from keyword where keytype='theme' and (keyword='雷达' or keyword='雷达测厚' or keyword='冰川厚度'))");
|
||||
$row=$state->fetchAll();
|
||||
$sum=$row[0]['count'];
|
||||
$sql="select uuid,title from normalmetadata where uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='glacier') and id in (select id from keyword where keytype='theme' and (keyword='雷达' or keyword='雷达测厚' or keyword='冰川厚度')) order by timebegin,title limit ? offset ?";
|
||||
$this->view->metadata=$this->db->fetchAll($sql,array($this->limit,$offset));
|
||||
$this->view->page=new Pagination($sum,$page,$this->limit);
|
||||
$this->view->offset=$offset+1;
|
||||
$this->getmd(array('雷达','雷达测厚','冰川厚度'));
|
||||
$archive = new Archive($this->db);
|
||||
$this->view->info = $archive->getOneArchive('中国冰川资源及其变化调查-雷达测厚','about');
|
||||
$this->_helper->viewRenderer('base');
|
||||
}
|
||||
|
||||
function materialAction()
|
||||
{
|
||||
$page=(int)$this->_request->getParam('page');
|
||||
if (empty($page)) $page=1;
|
||||
$offset=$this->limit*($page-1);
|
||||
$state=$this->db->query("select count(*) from normalmetadata where uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='glacier') and id in (select id from keyword where keytype='theme' and (keyword='物质平衡' or keyword='花杆'))");
|
||||
$row=$state->fetchAll();
|
||||
$sum=$row[0]['count'];
|
||||
$sql="select uuid,title from normalmetadata where uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='glacier') and id in (select id from keyword where keytype='theme' and (keyword='物质平衡' or keyword='花杆')) order by timebegin,title limit ? offset ?";
|
||||
$this->view->metadata=$this->db->fetchAll($sql,array($this->limit,$offset));
|
||||
$this->view->page=new Pagination($sum,$page,$this->limit);
|
||||
$this->view->offset=$offset+1;
|
||||
$this->getmd(array('物质平衡','花杆'));
|
||||
$archive = new Archive($this->db);
|
||||
$this->view->info = $archive->getOneArchive('中国冰川资源及其变化调查-物质平衡','about');
|
||||
$this->_helper->viewRenderer('base');
|
||||
}
|
||||
|
||||
function movementAction()
|
||||
{
|
||||
$page=(int)$this->_request->getParam('page');
|
||||
if (empty($page)) $page=1;
|
||||
$offset=$this->limit*($page-1);
|
||||
$state=$this->db->query("select count(*) from normalmetadata where uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='glacier') and id in (select id from keyword where keytype='theme' and (keyword='运动速度' or keyword='花杆消融观测' or keyword='冰舌'))");
|
||||
$row=$state->fetchAll();
|
||||
$sum=$row[0]['count'];
|
||||
$sql="select uuid,title from normalmetadata where uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='glacier') and id in (select id from keyword where keytype='theme' and (keyword='运动速度' or keyword='花杆消融观测' or keyword='冰舌')) order by timebegin,title limit ? offset ?";
|
||||
$this->view->metadata=$this->db->fetchAll($sql,array($this->limit,$offset));
|
||||
$this->view->page=new Pagination($sum,$page,$this->limit);
|
||||
$this->view->offset=$offset+1;
|
||||
$this->getmd(array('运动速度','花杆消融观测','冰舌'));
|
||||
$archive = new Archive($this->db);
|
||||
$this->view->info = $archive->getOneArchive('中国冰川资源及其变化调查-冰川运动','about');
|
||||
$this->_helper->viewRenderer('base');
|
||||
}
|
||||
|
||||
function physicalAction()
|
||||
{
|
||||
$page=(int)$this->_request->getParam('page');
|
||||
if (empty($page)) $page=1;
|
||||
$offset=$this->limit*($page-1);
|
||||
$state=$this->db->query("select count(*) from normalmetadata where uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='glacier') and id in (select id from keyword where keytype='theme' and (keyword='冰雪物理过程' or keyword='冰温'))");
|
||||
$row=$state->fetchAll();
|
||||
$sum=$row[0]['count'];
|
||||
$sql="select uuid,title from normalmetadata where uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='glacier') and id in (select id from keyword where keytype='theme' and (keyword='冰雪物理过程' or keyword='冰温')) order by timebegin,title limit ? offset ?";
|
||||
$this->view->metadata=$this->db->fetchAll($sql,array($this->limit,$offset));
|
||||
$this->view->page=new Pagination($sum,$page,$this->limit);
|
||||
$this->view->offset=$offset+1;
|
||||
$this->getmd(array('冰雪物理过程','冰温'));
|
||||
$archive = new Archive($this->db);
|
||||
$this->view->info = $archive->getOneArchive('中国冰川资源及其变化调查-冰雪物理过程','about');
|
||||
$this->_helper->viewRenderer('base');
|
||||
}
|
||||
|
||||
function photogrammetryAction()
|
||||
{
|
||||
$page=(int)$this->_request->getParam('page');
|
||||
if (empty($page)) $page=1;
|
||||
$offset=$this->limit*($page-1);
|
||||
$state=$this->db->query("select count(*) from normalmetadata where uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='glacier') and id in (select id from keyword where keytype='theme' and (keyword='摄影测量' or keyword='照片'))");
|
||||
$row=$state->fetchAll();
|
||||
$sum=$row[0]['count'];
|
||||
$sql="select uuid,title from normalmetadata where uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='glacier') and id in (select id from keyword where keytype='theme' and (keyword='摄影测量' or keyword='照片')) order by timebegin,title limit ? offset ?";
|
||||
$this->view->metadata=$this->db->fetchAll($sql,array($this->limit,$offset));
|
||||
$this->view->page=new Pagination($sum,$page,$this->limit);
|
||||
$this->view->offset=$offset+1;
|
||||
$this->getmd(array('摄影测量','照片'));
|
||||
$archive = new Archive($this->db);
|
||||
$this->view->info = $archive->getOneArchive('中国冰川资源及其变化调查-近景摄影测量','about');
|
||||
$this->_helper->viewRenderer('base');
|
||||
}
|
||||
|
||||
function vegetationAction()
|
||||
{
|
||||
$this->getmd('植被');
|
||||
$archive = new Archive($this->db);
|
||||
$this->view->info = $archive->getOneArchive('中国冰川资源及其变化调查-植被调查','about');
|
||||
$this->_helper->viewRenderer('base');
|
||||
}
|
||||
|
||||
function frozensoilAction()
|
||||
{
|
||||
$this->getmd('冻土');
|
||||
$archive = new Archive($this->db);
|
||||
$this->view->info = $archive->getOneArchive('中国冰川资源及其变化调查-冻土调查','about');
|
||||
$this->_helper->viewRenderer('base');
|
||||
}
|
||||
|
||||
function quatemaryAction()
|
||||
{
|
||||
$this->getmd('第四纪');
|
||||
$archive = new Archive($this->db);
|
||||
$this->view->info = $archive->getOneArchive('中国冰川资源及其变化调查-第四纪','about');
|
||||
$this->_helper->viewRenderer('base');
|
||||
}
|
||||
|
||||
function listAction()
|
||||
|
@ -270,12 +231,13 @@ class GlacierController extends DataController
|
|||
function tagAction()
|
||||
{
|
||||
$key = $this->_request->getParam('key');
|
||||
$keytype = $this->_request->getParam('keytype');
|
||||
$page=(int)$this->_request->getParam('page');
|
||||
if (empty($page)) $page=1;
|
||||
$offset=$this->limit*($page-1);
|
||||
if (!empty($key)) {
|
||||
$this->view->codename=$key;
|
||||
$sql=$this->db->quoteInto('select count(id) from keyword where keyword=?',$key);
|
||||
$sql=$this->db->quoteInto("select count(k.id) from keyword k left join normalmetadata m on k.id=m.id where m.uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='glaicer') and k.keyword=?",$key);
|
||||
$state=$this->db->query($sql);
|
||||
$row=$state->fetchAll();
|
||||
$sum=$row[0]['count'];
|
||||
|
@ -283,17 +245,12 @@ class GlacierController extends DataController
|
|||
$this->view->metadata=$this->db->fetchAll($sql,array($this->limit,$offset));
|
||||
$this->view->page=new Pagination($sum,$page,$this->limit);
|
||||
} else {
|
||||
$state=$this->db->query("select keyword.keyword,count(*) from keyword left join normalmetadata m on keyword.id=m.id where keyword.keytype='place' and m.uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='glacier') group by keyword.keyword order by count desc");
|
||||
$k1=$state->fetchAll();
|
||||
$state=$this->db->query("select k.keyword,count(k.keyword) from keyword k left join normalmetadata m on k.id=m.id where k.keytype='theme' and m.uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='glacier') group by k.keyword order by k.keyword");
|
||||
$k2=$state->fetchAll();
|
||||
$state=$this->db->query("select k.keyword,count(k.keyword) from keyword k left join normalmetadata m on k.id=m.id where k.keytype='discipline' and m.uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='glacier') group by k.keyword order by k.keyword");
|
||||
$k3=$state->fetchAll();
|
||||
$state=$this->db->query("select k.keyword,count(k.keyword) from keyword k left join normalmetadata m on k.id=m.id where k.keytype='stratum' and m.uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='glacier') group by k.keyword order by k.keyword");
|
||||
$k4=$state->fetchAll();
|
||||
$state=$this->db->query("select keyword.keyword,count(*) from keyword left join normalmetadata m on keyword.id=m.id where keyword.keytype='temporal' and m.uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='glacier') group by keyword.keyword order by keyword.keyword");
|
||||
$k5=$state->fetchAll();
|
||||
$this->view->keywords=array('place'=>$k1,'theme'=>$k2,'discipline'=>$k3,'stratum'=>$k4,'temporal'=>$k5);
|
||||
$sql="select k.keyword,count(*),k.keytype from keyword k left join normalmetadata m on k.id=m.id where length(k.keyword)>0 and m.uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='glacier') ";
|
||||
if (!empty($keytype) && ($keytype=='place' || $keytype=='theme' || $keytype=='discipline'||$keytype=='temporal')) $sql.=" and k.keytype='".$keytype."'";
|
||||
$sql.=' group by k.keyword,k.keytype order by k.keytype,k.keyword,count desc';
|
||||
$state=$this->db->query($sql);
|
||||
$this->view->keytype=$keytype;
|
||||
$this->view->keywords=$state->fetchAll();
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -379,11 +336,55 @@ class GlacierController extends DataController
|
|||
$page=(int)$this->_request->getParam('page');
|
||||
if (empty($page)) $page=1;
|
||||
$offset=$this->limit*($page-1);
|
||||
$state=$this->db->query("select count(m.*) from normalmetadata m left join datasource d on m.uuid=d.uuid left join source s on d.sourceid=s.id where s.code='glacier' and m.id in (select id from keyword where keytype='".$type."' and keyword='".$keyword."')");
|
||||
if (!is_array($keyword))
|
||||
{
|
||||
$keyword=array($keyword);
|
||||
}
|
||||
$key="(";
|
||||
foreach($keyword as $k)
|
||||
{
|
||||
$key.="'".$k."',";
|
||||
}
|
||||
$key=substr($key,0,-1);
|
||||
$key.=")";
|
||||
$keyword=$key;
|
||||
|
||||
$state=$this->db->query("select count(m.*) from normalmetadata m left join datasource d on m.uuid=d.uuid left join source s on d.sourceid=s.id where s.code='glacier' and m.id in (select id from keyword where keytype='".$type."' and keyword in ".$keyword.")");
|
||||
$row=$state->fetchAll();
|
||||
$sum=$row[0]['count'];
|
||||
//@todo: add order with title
|
||||
$sql="select uuid,title from normalmetadata where uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='glacier') and id in (select id from keyword where keytype='".$type."' and keyword='".$keyword."') order by timebegin,title limit ? offset ?";
|
||||
$sql="select uuid,title from normalmetadata where uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='glacier') and id in (select id from keyword where keytype='".$type."' and keyword in ".$keyword.") order by timebegin,title limit ? offset ?";
|
||||
$this->view->metadata=$this->db->fetchAll($sql,array($this->limit,$offset));
|
||||
$this->view->page=new Pagination($sum,$page,$this->limit);
|
||||
$this->view->offset=$offset+1;
|
||||
}
|
||||
|
||||
//获取多项条件并列关系的数据并必须满足limited条件
|
||||
//$keyword:字符串或字符串数组
|
||||
//$limited:限制字符串
|
||||
private function getmdlimited($keyword,$limited)
|
||||
{
|
||||
$page=(int)$this->_request->getParam('page');
|
||||
if (empty($page)) $page=1;
|
||||
$offset=$this->limit*($page-1);
|
||||
if (!is_array($keyword))
|
||||
{
|
||||
$keyword=array($keyword);
|
||||
}
|
||||
$key="(";
|
||||
foreach($keyword as $k)
|
||||
{
|
||||
$key.="'".$k."',";
|
||||
}
|
||||
$key=substr($key,0,-1);
|
||||
$key.=")";
|
||||
$keyword=$key;
|
||||
|
||||
$state=$this->db->query("select count(m.*) from normalmetadata m left join datasource d on m.uuid=d.uuid left join source s on d.sourceid=s.id where s.code='glacier' and m.id in (select id from keyword where keyword='".$limited."') and m.id in (select id from keyword where keyword in ".$keyword.")");
|
||||
$row=$state->fetchAll();
|
||||
$sum=$row[0]['count'];
|
||||
//@todo: add order with title
|
||||
$sql="select uuid,title from normalmetadata where uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='glacier') and id in (select id from keyword where keyword='".$limited."') and id in (select id from keyword where keyword in ".$keyword.") order by title limit ? offset ?";
|
||||
$this->view->metadata=$this->db->fetchAll($sql,array($this->limit,$offset));
|
||||
$this->view->page=new Pagination($sum,$page,$this->limit);
|
||||
$this->view->offset=$offset+1;
|
||||
|
|
|
@ -0,0 +1,85 @@
|
|||
<?php
|
||||
class HaiheController extends DataController
|
||||
{
|
||||
private $limit=20;
|
||||
|
||||
function preDispatch()
|
||||
{
|
||||
parent::preDispatch();
|
||||
$this->debug = 1;
|
||||
$acName = $this->_request->getActionName();
|
||||
$this->view->pageID = "haihe-".$acName;
|
||||
//$this->_helper->layout->setLayout('heihe');
|
||||
}
|
||||
|
||||
function indexAction()
|
||||
{
|
||||
$archive = new Archive($this->db);
|
||||
$this->view->info = $archive->getOneArchive('海河流域多尺度地表通量与气象要素观测数据集','about');
|
||||
}
|
||||
|
||||
function documentAction()
|
||||
{
|
||||
$page=(int)$this->_request->getParam('page');
|
||||
if (empty($page)) $page=1;
|
||||
$offset=$this->limit*($page-1);
|
||||
$row=$this->db->fetchAll("select count(*) from reference where id in (select refid from mdref where uuid in (select uuid from normalmetadata where uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='haihe') ))");
|
||||
$sum=$row[0]['count'];
|
||||
$sql="select * from reference where id in (select refid from mdref where uuid in (select uuid from normalmetadata where uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='haihe') )) order by reference limit ? offset ?";
|
||||
$this->view->refs=$this->db->fetchAll($sql,array($this->limit,$offset));
|
||||
$this->view->page=new Pagination($sum,$page,$this->limit,"文献");
|
||||
$this->view->offset=$offset+1;
|
||||
}
|
||||
|
||||
function daxingAction()
|
||||
{
|
||||
$this->getmd(array('大兴区'),'place');
|
||||
$this->_helper->viewRenderer('base');
|
||||
}
|
||||
|
||||
function miyunAction()
|
||||
{
|
||||
$this->getmd(array('密云'),'place');
|
||||
$this->_helper->viewRenderer('base');
|
||||
}
|
||||
|
||||
function guantaoAction()
|
||||
{
|
||||
$this->getmd(array('馆陶县'),'place');
|
||||
$this->_helper->viewRenderer('base');
|
||||
}
|
||||
|
||||
function viewAction()
|
||||
{
|
||||
parent::viewAction();
|
||||
$this->_helper->viewRenderer('haihe/view');
|
||||
}
|
||||
|
||||
private function getmd($keyword,$type='theme')
|
||||
{
|
||||
$page=(int)$this->_request->getParam('page');
|
||||
if (empty($page)) $page=1;
|
||||
$offset=$this->limit*($page-1);
|
||||
if (!is_array($keyword))
|
||||
{
|
||||
$keyword=array($keyword);
|
||||
}
|
||||
$key="(";
|
||||
foreach($keyword as $k)
|
||||
{
|
||||
$key.="'".$k."',";
|
||||
}
|
||||
$key=substr($key,0,-1);
|
||||
$key.=")";
|
||||
$keyword=$key;
|
||||
|
||||
$state=$this->db->query("select count(m.*) from normalmetadata m left join datasource d on m.uuid=d.uuid left join source s on d.sourceid=s.id where s.code='haihe' and m.id in (select id from keyword where keytype='".$type."' and keyword in ".$keyword.")");
|
||||
$row=$state->fetchAll();
|
||||
$sum=$row[0]['count'];
|
||||
//@todo: add order with title
|
||||
$sql="select uuid,title from normalmetadata where uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='haihe') and id in (select id from keyword where keytype='".$type."' and keyword in ".$keyword.") order by title limit ? offset ?";
|
||||
$this->view->metadata=$this->db->fetchAll($sql,array($this->limit,$offset));
|
||||
$this->view->page=new Pagination($sum,$page,$this->limit);
|
||||
$this->view->offset=$offset+1;
|
||||
}
|
||||
}
|
|
@ -1167,7 +1167,10 @@ class HeiheController extends DataController
|
|||
}
|
||||
} else {
|
||||
//提供全部分类列表
|
||||
$sql="select f.id,f.title,f.fund_id,f.fund_type,f.ts_created,count(m.id) as datacount,sum(md.filesize) as filesize from fund f left join mdfund m on f.id=m.fid left join metadata md on m.uuid=md.uuid left join heiheproject hp on f.fund_id=hp.code where hp.id is not null and m.uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='heihe') group by f.id,f.title,f.fund_id,f.fund_type,f.ts_created order by f.ts_created desc";
|
||||
$sql="select f.id,f.title,f.fund_id,f.fund_type,f.ts_created,count(m.id) as datacount,sum(md.filesize) as filesize
|
||||
from fund f left join mdfund m on f.id=m.fid left join metadata md on m.uuid=md.uuid left join heiheproject hp on f.fund_id=hp.code
|
||||
where hp.id is not null and m.uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='heihe')
|
||||
group by f.id,f.title,f.fund_id,f.fund_type,f.ts_created order by f.fund_id asc";
|
||||
$sth = $this->db->prepare($sql);
|
||||
$sth->execute();
|
||||
$rows = $sth->fetchAll();
|
||||
|
|
|
@ -71,14 +71,31 @@ class KnowledgeController extends Zend_Controller_Action
|
|||
Zend_View_Helper_PaginationControl::setDefaultViewPartial('pagination_param.phtml');
|
||||
$this->view->paginator=$paginator;
|
||||
}
|
||||
|
||||
|
||||
function westplanAction()
|
||||
{
|
||||
$sql="select distinct array_to_string(array(select author from knl_author t where t.item_id=c.item_id order by place asc),'; ') as author,c.title,c.publisher,c.ts_created,c.ts_issued,c.item_id,c.url from knl_article c where c.url <>'' order by 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;
|
||||
}
|
||||
|
||||
function searchAction()
|
||||
{
|
||||
$key=$this->_request->getParam('q');
|
||||
$author = (int)$this->_request->getParam('author');
|
||||
$place = (int)$this->_request->getParam('place');
|
||||
$source=$this->_request->getParam('searchsource');
|
||||
if(preg_match("/\"|'|<|>/",$key))
|
||||
{
|
||||
$data=array('<'=>'<','>'=>'>', "\'"=>'’', "\""=>'”');
|
||||
|
||||
$patterns = array();
|
||||
$replacements = array();
|
||||
foreach($data as $k=>$v)
|
||||
|
@ -94,7 +111,10 @@ class KnowledgeController extends Zend_Controller_Action
|
|||
if (!empty($key)) {
|
||||
$search=new SimpleSearch($key);
|
||||
$where=$search->sql_expr(array("reference"));
|
||||
$sql="select * from reference where ".$where." order by id desc";
|
||||
$sql="select * from reference where ".$where." order by year desc, reference desc";
|
||||
} else if ($author && $place) {
|
||||
$sql="select * from reference where id in (select a1.id from ref_author a1,ref_author a2 where a1.firstname=a2.firstname and a1.lastname=a2.lastname and a2.id=$author and a2.place=$place)";
|
||||
}
|
||||
$sth = $this->db->prepare($sql);
|
||||
$sth->execute();
|
||||
$rows = $sth->fetchAll();
|
||||
|
@ -108,7 +128,6 @@ class KnowledgeController extends Zend_Controller_Action
|
|||
$this->view->source=$source;
|
||||
$this->_helper->viewRenderer('search-data');
|
||||
}
|
||||
}
|
||||
function paperAction()
|
||||
{
|
||||
$id = (int)$this->_request->getParam('id');
|
||||
|
|
|
@ -0,0 +1,165 @@
|
|||
<?php
|
||||
use \Helpers\View as view;
|
||||
use \Open\App;
|
||||
use \Open\Open;
|
||||
use \Open\OAuth2\Server;
|
||||
|
||||
class OpenController extends \Zend_Controller_Action
|
||||
{
|
||||
private $config = NULL;
|
||||
private $db = NULL;
|
||||
private $open = NULL;
|
||||
|
||||
function preDispatch()
|
||||
{
|
||||
$this->view->config = $this->config = \Zend_Registry::get('config');
|
||||
$this->db = \Zend_Registry::get('db');
|
||||
$this->view->theme = new Theme();
|
||||
$this->_helper->layout->setLayout('layout-open');
|
||||
}
|
||||
|
||||
function indexAction()
|
||||
{
|
||||
$this->view->pageID = "open-index";
|
||||
}
|
||||
|
||||
//我的应用
|
||||
function myappAction()
|
||||
{
|
||||
$this->view->pageID = "open-myapp";
|
||||
|
||||
$app = new App();
|
||||
|
||||
$user_state = $app->checkinfo();
|
||||
if( $user_state !== true)
|
||||
{
|
||||
view::post($this,$user_state,"/account/edit");
|
||||
}
|
||||
|
||||
$ac = $this->_getParam('ac');
|
||||
$id = $this->_getParam('id');
|
||||
$submit = $this->_getParam('submit');
|
||||
|
||||
if(empty($ac))
|
||||
{
|
||||
$this->view->myapp = $app->getUserApp();
|
||||
return true;
|
||||
}
|
||||
|
||||
if($ac == "create")
|
||||
{
|
||||
$this->_helper->viewRenderer('myapp-create');
|
||||
|
||||
$this->view->appStatus = $app->appStatus();
|
||||
|
||||
if(!empty($id))
|
||||
{
|
||||
$this->view->info = $app->getAppInfo($id);
|
||||
}
|
||||
|
||||
if(!empty($submit))
|
||||
{
|
||||
if(empty($id))
|
||||
{
|
||||
$status = $app->appCreate();
|
||||
}else{
|
||||
$this->view->info = $app->getAppCreateParam();
|
||||
$status = $app->appCreate($id);
|
||||
}
|
||||
|
||||
if($status !== true && !is_numeric($status))
|
||||
{
|
||||
$this->view->error = view::Error($status);
|
||||
}else{
|
||||
if(!empty($id))
|
||||
view::Post($this,"修改成功!",'/open/myapp/ac/view/id/'.$id);
|
||||
else
|
||||
view::Post($this,"添加成功!","/open/myapp/ac/view/id/".$status);
|
||||
}
|
||||
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
if($ac == "delete")
|
||||
{
|
||||
$status = $app->delete($id);
|
||||
if($status !== true)
|
||||
{
|
||||
view::Post($this,$status,"/open/myapp");
|
||||
}else{
|
||||
view::Post($this,'删除成功',"/open/myapp");
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
if($ac == "view")
|
||||
{
|
||||
$this->_helper->viewRenderer('myapp-view');
|
||||
$this->view->data = $app->getAppInfo($id);
|
||||
$this->view->appStatus = $app->appStatus();
|
||||
return true;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
function authenticateAction()
|
||||
{
|
||||
$this->_helper->layout->disableLayout();
|
||||
$this->_helper->viewRenderer->setNoRender();
|
||||
|
||||
$data = array(
|
||||
'client_id' => $this->_getParam('client_id'),
|
||||
'redirect_uri' => $this->_getParam('redirect_uri'),
|
||||
'client_secret' => $this->_getParam('client_secret'),
|
||||
'host' => $_SERVER['HTTP_HOST'],
|
||||
'ip' => $_SERVER['REMOTE_ADDR']
|
||||
);
|
||||
|
||||
$server = new Server();
|
||||
|
||||
$status = $server->clientCredentials($data['client_id'],$data['client_secret']);
|
||||
|
||||
if($status !== true)
|
||||
{
|
||||
echo $status;
|
||||
}else{
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
function authorizeAction()
|
||||
{
|
||||
$submit = $this->_getParam('submit');
|
||||
|
||||
if(empty($submit))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
$sv = new open\server();
|
||||
$server = $sv->bootstrap();
|
||||
|
||||
$request = OAuth2\Request::createFromGlobals();
|
||||
$response = new OAuth2\Response();
|
||||
|
||||
// validate the authorize request
|
||||
if (!$server->validateAuthorizeRequest($request, $response)) {
|
||||
$response->send();
|
||||
die;
|
||||
}
|
||||
|
||||
// print the authorization code if the user has authorized your client
|
||||
$is_authorized = ($_POST['authorized'] === 'yes');
|
||||
$server->handleAuthorizeRequest($request, $response, $is_authorized);
|
||||
if ($is_authorized) {
|
||||
// this is only here so that you get to see your code in the cURL request. Otherwise, we'd redirect back to the client
|
||||
$code = substr($response->getHttpHeader('Location'), strpos($response->getHttpHeader('Location'), 'code=')+5, 40);
|
||||
exit("SUCCESS! Authorization Code: $code");
|
||||
}
|
||||
$response->send();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -313,12 +313,9 @@ class ServiceController extends Zend_Controller_Action
|
|||
{
|
||||
$citation=$row['mcitation'];
|
||||
} else if ($row['citation'])
|
||||
{
|
||||
if (empty($row['datadoi']))
|
||||
{
|
||||
$citation=$row['citation'];
|
||||
}
|
||||
elseif (!strpos($row['citation'],$row['datadoi']))
|
||||
if (!empty($row['datadoi']) && !strpos($row['citation'],$row['datadoi']))
|
||||
{
|
||||
$citation='<li>Paper Citation'.$row['citation'].'</li>';
|
||||
$citation.="<li>Data Citation";
|
||||
|
@ -725,12 +722,9 @@ class ServiceController extends Zend_Controller_Action
|
|||
{
|
||||
$cit=$row['mcitation'];
|
||||
} else if ($row['citation'])
|
||||
{
|
||||
if (empty($row['datadoi']))
|
||||
{
|
||||
$cit=$row['citation'];
|
||||
}
|
||||
elseif (!strpos($row['citation'],$row['datadoi']))
|
||||
if (!empty($row['datadoi']) && !strpos($row['citation'],$row['datadoi']))
|
||||
{
|
||||
$cit='文章引用:'.$row['citation'];
|
||||
$cit.="\r\n数据的引用:";
|
||||
|
@ -1110,7 +1104,7 @@ class ServiceController extends Zend_Controller_Action
|
|||
$q = $this->_request->getParam('q');
|
||||
$rez = $this->google_search_api(array(
|
||||
'q' => $q, // 查询内容
|
||||
'key' => $this->config->google->maps->api,
|
||||
'key' => 'ABQIAAAACD-MqkkoOm60o_dvwdcKVhQZ6FKmpkjmtV0YgdpDmHkvWF4pMRRbrl4iUSDP3HkLNg5iOMge8vdOvg',//$this->config->google->maps->api,
|
||||
'userip' => $_SERVER['REMOTE_ADDR'],
|
||||
'rsz' => 5
|
||||
));
|
||||
|
@ -1411,7 +1405,7 @@ class ServiceController extends Zend_Controller_Action
|
|||
|
||||
$pageSize = 10;//每页容量
|
||||
|
||||
$sql = "select md.title,md.uuid from mdref mr
|
||||
$sql = "select distinct md.title,md.uuid from mdref mr
|
||||
right join en.normalmetadata md on md.uuid=mr.uuid
|
||||
where mr.refid=$id";
|
||||
$pagnation="";
|
||||
|
@ -1469,7 +1463,7 @@ class ServiceController extends Zend_Controller_Action
|
|||
echo 0;
|
||||
return;
|
||||
}
|
||||
$sql = "select count(md.id) as total from mdref mr
|
||||
$sql = "select count(distinct md.id) as total from mdref mr
|
||||
right join normalmetadata md on md.uuid=mr.uuid
|
||||
where mr.refid=$id";
|
||||
$rs = $this->db->query($sql);
|
||||
|
@ -1673,6 +1667,8 @@ class ServiceController extends Zend_Controller_Action
|
|||
$this->_helper->layout->disableLayout();
|
||||
$this->_helper->viewRenderer->setNoRender();
|
||||
$uuid=$this->_request->getParam('uuid');
|
||||
//文献id
|
||||
$id=(int)$this->_request->getParam('id');
|
||||
$lang=$this->_request->getParam('lang');
|
||||
$ris='';
|
||||
if ($lang=='cn' && !empty($uuid))
|
||||
|
@ -1714,6 +1710,10 @@ class ServiceController extends Zend_Controller_Action
|
|||
$ris.='M3 - doi:'.$row['doi']."\r\n";
|
||||
$ris.='DO - doi:'.$row['doi']."\r\n";
|
||||
$ris.='ER -'."\r\n";
|
||||
} else if ($id) {
|
||||
$sql="select ris from reference where id=$id";
|
||||
$row=$this->db->fetchRow($sql);
|
||||
$ris=$row['ris'];
|
||||
}
|
||||
if (!empty($ris))
|
||||
{
|
||||
|
@ -1905,5 +1905,4 @@ class ServiceController extends Zend_Controller_Action
|
|||
$this->getResponse()->setHeader('Content-Type', 'text/xml')
|
||||
->setBody($xml);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -0,0 +1,41 @@
|
|||
<?php
|
||||
$this->headTitle($this->config->title->site);
|
||||
$this->headTitle('Login');
|
||||
$this->headTitle()->setSeparator(' - ');
|
||||
$this->breadcrumb('<a href="/">Home</a>');
|
||||
$this->breadcrumb('<a href="/account/login">Login</a>');
|
||||
$this->breadcrumb()->setSeparator(' > ');
|
||||
?>
|
||||
<div class="row-fluid">
|
||||
<?php if(!empty($this->error)) { ?>
|
||||
<?= $this->error ?>
|
||||
<?php } ?>
|
||||
<form method="post" class="form-horizontal">
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="username">Username</label>
|
||||
<div class="controls">
|
||||
<input id="username" type="text" value="" name="username" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="password">Password</label>
|
||||
<div class="controls">
|
||||
<input id="password" type="password" value="" name="password" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="confirm_password">Confirm password</label>
|
||||
<div class="controls">
|
||||
<input id="confirm_password" type="password" value="" name="confirm_password" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<div class="controls">
|
||||
<input type="hidden" name="submit" value="1" />
|
||||
<input type="hidden" name="salt" value="<?= $this->salt ?>" />
|
||||
<button type="submit" class="btn">Submit</button>
|
||||
<a href="/account/login">Login</a> <a href="/account/register">Register new username</a>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
|
@ -0,0 +1,43 @@
|
|||
<?php
|
||||
$this->headTitle($this->config->title->site);
|
||||
$this->headTitle('Website connection');
|
||||
$this->headTitle()->setSeparator(' - ');
|
||||
?>
|
||||
<div class="row">
|
||||
<div class="span3">
|
||||
<div class="well sidebar-nav">
|
||||
<?= $this->partial('/account/left.phtml'); ?>
|
||||
</div><!--/.well -->
|
||||
</div><!--/span-->
|
||||
<div class="span9">
|
||||
<h3>Application connection</h3>
|
||||
<hr />
|
||||
<?php if(!empty($this->msg)) { ?>
|
||||
<?= $this->msg ?>
|
||||
<?php }else{?>
|
||||
<?php if(!empty($this->error)) { ?>
|
||||
<?= $this->error ?>
|
||||
<?php } ?>
|
||||
<form action="" method="post" class="form-horizontal">
|
||||
<div class="control-group ">
|
||||
<label class="control-label" for="name">Name</label>
|
||||
<div class="controls">
|
||||
<input type="text" id="name" name="name" value="<?php echo empty($this->info['name']) ? "":$this->info['name']; ?>" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group ">
|
||||
<label class="control-label" for="name">Redirect address</label>
|
||||
<div class="controls">
|
||||
<input type="text" id="uri" name="uri" value="<?php echo empty($this->info['uri']) ? "":$this->info['uri']; ?>" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-actions">
|
||||
<input type="hidden" name="submit" value="submit" />
|
||||
<button type="submit" class="btn btn-primary">OK</button>
|
||||
<button type="button" class="btn">Cancel</button>
|
||||
</div>
|
||||
</form>
|
||||
<?php }?>
|
||||
</div><!--/span-->
|
||||
</div><!--/row-->
|
|
@ -0,0 +1,25 @@
|
|||
<?php
|
||||
$this->headTitle($this->config->title->site);
|
||||
$this->headTitle('My account');
|
||||
$this->headTitle()->setSeparator(' - ');
|
||||
?>
|
||||
<div class="row">
|
||||
<div class="span3">
|
||||
<div class="well sidebar-nav">
|
||||
<?= $this->partial('account/left.phtml'); ?>
|
||||
</div><!--/.well -->
|
||||
</div><!--/span-->
|
||||
<div class="span9">
|
||||
<a href="/account/application/ac/add" class="btn btn-info pull-right">Application connection</a>
|
||||
<h3>Manage application</h3>
|
||||
<hr />
|
||||
<?php if(!empty($this->msg)) { ?>
|
||||
<?= $this->msg ?>
|
||||
<?php }else{?>
|
||||
<?php if(!empty($this->error)) { ?>
|
||||
<?= $this->error ?>
|
||||
<?php } ?>
|
||||
|
||||
<?php }?>
|
||||
</div><!--/span-->
|
||||
</div><!--/row-->
|
|
@ -0,0 +1,46 @@
|
|||
<?php
|
||||
$this->headTitle($this->config->title->site);
|
||||
$this->headTitle('Login');
|
||||
$this->headTitle()->setSeparator(' - ');
|
||||
$this->breadcrumb('<a href="/">Home</a>');
|
||||
$this->breadcrumb('<a href="/account/login">Login</a>');
|
||||
$this->breadcrumb()->setSeparator(' > ');
|
||||
?>
|
||||
<style>
|
||||
.login_box {
|
||||
max-width: 300px;
|
||||
padding: 19px 29px 29px;
|
||||
margin: 0 auto 20px;
|
||||
background-color: #fff;
|
||||
border: 1px solid #e5e5e5;
|
||||
-webkit-border-radius: 5px;
|
||||
-moz-border-radius: 5px;
|
||||
border-radius: 5px;
|
||||
-webkit-box-shadow: 0 1px 2px rgba(0,0,0,.05);
|
||||
-moz-box-shadow: 0 1px 2px rgba(0,0,0,.05);
|
||||
box-shadow: 0 1px 2px rgba(0,0,0,.05);
|
||||
}
|
||||
</style>
|
||||
<div class="row-fluid">
|
||||
<div class="span12">
|
||||
<?= empty($this->target_name) ? "":"YOu have use the <strong>".$this->target_name."</strong> account logged in.<hr />" ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row-fluid">
|
||||
|
||||
|
||||
</div>
|
||||
<script>
|
||||
$('#captcha_img').click(function(e) {
|
||||
changecaptcha();
|
||||
});
|
||||
function changecaptcha(){
|
||||
$.ajax({
|
||||
url:"/account/captcha",
|
||||
data:"<?= time() ?>",
|
||||
success: function(src){
|
||||
document.getElementById('captcha_img').src = src;
|
||||
}
|
||||
});
|
||||
}
|
||||
</script>
|
|
@ -54,13 +54,13 @@
|
|||
<div class="control-group ">
|
||||
<label class="control-label">Organization</label>
|
||||
<div class="controls">
|
||||
<input type="text" name="unit" value="<?php echo empty($this->info['unit']) ? "":$this->info['unit']; ?>" class="span8" />
|
||||
<input type="text" name="unit" value="<?php echo empty($this->info['unit']) ? "":$this->info['unit']; ?>" class="input-block-level" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group ">
|
||||
<label class="control-label">Address</label>
|
||||
<div class="controls">
|
||||
<input type="text" name="address" value="<?php echo empty($this->info['address']) ? "":$this->info['address']; ?>" class="span8" />
|
||||
<input type="text" name="address" value="<?php echo empty($this->info['address']) ? "":$this->info['address']; ?>" class="input-block-level" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group ">
|
||||
|
@ -108,13 +108,13 @@
|
|||
<div class="control-group ">
|
||||
<label class="control-label">Funt name</label>
|
||||
<div class="controls">
|
||||
<input type="text" name="project_title" value="<?php echo empty($this->info['project_title']) ? "":$this->info['project_title']; ?>" class="span8" />
|
||||
<input type="text" name="project_title" value="<?php echo empty($this->info['project_title']) ? "":$this->info['project_title']; ?>" class="input-block-level" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group ">
|
||||
<label class="control-label">Last Data Usage</label>
|
||||
<div class="controls">
|
||||
<textarea name="project" class="span8"><?php echo empty($this->info['project']) ? "":$this->info['project']; ?></textarea>
|
||||
<textarea name="project" class="input-block-level"><?php echo empty($this->info['project']) ? "":$this->info['project']; ?></textarea>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-actions">
|
||||
|
|
|
@ -7,18 +7,49 @@
|
|||
$this->breadcrumb('<a href="/account/fetchpwd">Fetch password</a>');
|
||||
$this->breadcrumb()->setSeparator(' > ');
|
||||
?>
|
||||
<?php if (!empty($this->messages)) : ?>
|
||||
<div id="message">
|
||||
<?php
|
||||
foreach ($this->messages as $info)echo $info;
|
||||
?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php if ($this->form) : ?>
|
||||
<div id="info">
|
||||
<?php echo $this->form;?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<div id="tool">
|
||||
<a href="/account/login">Login </a> <a href="/account/register">Register new user</a>
|
||||
<div class="row-fluid">
|
||||
<?php if(!empty($this->error)) { ?>
|
||||
<?= $this->error ?>
|
||||
<?php } ?>
|
||||
<form method="post" class="form-horizontal">
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="email">E-mail</label>
|
||||
<div class="controls">
|
||||
<input id="email" type="text" value="" name="email" />
|
||||
<span class="help-block">Your email address</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="captcha">Captcha</label>
|
||||
<div class="controls">
|
||||
<input id="captcha" type="text" value="" name="captcha" />
|
||||
<img id="captcha_img" src="<?php echo $this->captcha ?>" style="cursor:pointer" />
|
||||
<a href="javascript:void(0);" onclick="changecaptcha()">Not clear?</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<div class="controls">
|
||||
<input type="hidden" name="submit" value="1" />
|
||||
<?php if(!empty($this->href)){?>
|
||||
<input type="hidden" name="href" value="<?= $this->href ?>" />
|
||||
<?php }?>
|
||||
<button type="submit" class="btn">submit</button>
|
||||
<a href="/account/register">Register new username</a>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<script>
|
||||
$('#captcha_img').click(function(e) {
|
||||
changecaptcha();
|
||||
});
|
||||
function changecaptcha(){
|
||||
$.ajax({
|
||||
url:"/account/captcha",
|
||||
data:"<?= time() ?>",
|
||||
success: function(src){
|
||||
document.getElementById('captcha_img').src = src;
|
||||
}
|
||||
});
|
||||
}
|
||||
</script>
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<ul class="nav nav-list">
|
||||
<li class="nav-header">App</li>
|
||||
<li id="Nav-account-dataorder"><a href="/data/order">Data Cart</a></li>
|
||||
<!-- <li id="Nav-account-myfav"><a href="/account/myfav">我的收藏</a></li> -->
|
||||
<!-- <li id="Nav-account-myfav"><a href="/account/myfav">Favorite</a></li> -->
|
||||
<li class="nav-header">Account</li>
|
||||
<li id="Nav-account-index"><a href="/account">Account info</a></li>
|
||||
<li id="Nav-account-secure"><a href="/account/secure">Security</a></li>
|
||||
|
|
|
@ -6,21 +6,6 @@
|
|||
$this->breadcrumb('<a href="/account/login">Login</a>');
|
||||
$this->breadcrumb()->setSeparator(' > ');
|
||||
?>
|
||||
<style>
|
||||
.login_box {
|
||||
max-width: 300px;
|
||||
padding: 19px 29px 29px;
|
||||
margin: 0 auto 20px;
|
||||
background-color: #fff;
|
||||
border: 1px solid #e5e5e5;
|
||||
-webkit-border-radius: 5px;
|
||||
-moz-border-radius: 5px;
|
||||
border-radius: 5px;
|
||||
-webkit-box-shadow: 0 1px 2px rgba(0,0,0,.05);
|
||||
-moz-box-shadow: 0 1px 2px rgba(0,0,0,.05);
|
||||
box-shadow: 0 1px 2px rgba(0,0,0,.05);
|
||||
}
|
||||
</style>
|
||||
<div class="row-fluid">
|
||||
<form class="form-horizontal" method="post">
|
||||
<?php if(empty($this->error)) { ?>
|
||||
|
@ -28,9 +13,7 @@
|
|||
Please input your username and password
|
||||
</div>
|
||||
<? }else{ ?>
|
||||
<div class="alert alert-error alert-login">
|
||||
<?= $this->error ?>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="username">Username</label>
|
||||
|
|
|
@ -15,12 +15,13 @@ h3.gs_rt{font-size:110%;}
|
|||
#file-list li li:hover {background-color: #dedede;}
|
||||
#file-list li li li:hover {background-color: #eeeeee;}
|
||||
</style>
|
||||
<?= $this->render('breadcrumbs.phtml'); ?>
|
||||
<?php $md=$this->metadata;if ($md):?>
|
||||
<h3><?php echo $this->escape($md->title);
|
||||
if ($md->title_en) echo '<br />'.$this->escape($md->title_en);
|
||||
echo '<a href="http://westdc.westgis.ac.cn/data/'.$md->uuid.'"><img src="/images/china.png" alt="Chinese Version"></a>';?>
|
||||
</h3>
|
||||
<hr />
|
||||
<h3><?php echo $this->escape($md->title);
|
||||
if ($md->title_en) echo '<br />'.$this->escape($md->title_en);
|
||||
echo '<a href="http://westdc.westgis.ac.cn/data/'.$md->uuid.'"><img src="/images/china.png" alt="Chinese Version"></a>';?>
|
||||
</h3>
|
||||
<hr />
|
||||
<div class="row">
|
||||
<div class="span8">
|
||||
<div>
|
||||
|
@ -33,57 +34,82 @@ echo '<a href="http://westdc.westgis.ac.cn/data/'.$md->uuid.'"><img src="/images
|
|||
<?php if ($md->citation) : ?>
|
||||
<hr />
|
||||
<h4><i class="icon-quote-left muted"></i>Citation<a class="btn btn-danger pull-right" href="/archives/help/platform/archive-107.html" ><i class="icon-comment"></i>Help</a></h4>
|
||||
<p><?php if (empty($md->datadoi) || !strpos($md->citation,$md->datadoi)) : ?><span class="label label-info">Paper Cite</span>
|
||||
<?php endif; echo $this->escape($md->citation);if (strpos($md->citation,$md->datadoi)) : ?>
|
||||
(Download: <a href="/service/ris/lang/en/uuid/<?php echo $md->uuid; ?>">RIS</a> |
|
||||
<a href="/service/bibtex/lang/en/uuid/<?php echo $md->uuid; ?>">Bibtex</a>)
|
||||
<?php endif; ?>
|
||||
</p>
|
||||
<?php if (!empty($md->datadoi) && !strpos($md->citation,$md->datadoi)) : ?>
|
||||
<p><span class="label label-info">Dataset Cite</span><?php
|
||||
echo str_replace('"','',substr($md->author_en,1,-1)).'. '.$md->title_en.'. '.$md->publisher_en.', '.(empty($md->ts_published)?$md->publish_year:date('Y',strtotime($md->ts_published))).'. doi:'.$md->doi;
|
||||
?> (Download: <a href="/service/ris/lang/en/uuid/<?php echo $md->uuid; ?>">RIS</a> |
|
||||
<a href="/service/bibtex/lang/en/uuid/<?php echo $md->uuid; ?>">Bibtex</a>)</p>
|
||||
<?php endif; endif; if ($this->ref) : ?>
|
||||
|
||||
<p><span class="label label-info">Data Citation</span>
|
||||
<?php
|
||||
echo $this->escape($md->citation);
|
||||
?> </p>
|
||||
<?php endif; if ($this->ref) : ?>
|
||||
<hr />
|
||||
<h4><i class="icon-eye-open text-success"></i>Recommended References</h4>
|
||||
<h4><i class="icon-eye-open text-success"></i>Related publications (Recommended by Author)</h4>
|
||||
<ol>
|
||||
<?php foreach($this->ref as $ref) :
|
||||
echo '<li>'.$ref->reference;
|
||||
echo '<a href="/knowledge/paper/id/'.$ref->id.'"><i class="icon-info-sign text-success"></i>Detail</a>';
|
||||
if (empty($ref->link))
|
||||
echo '<li>'.$ref->reference.'</li>';
|
||||
else
|
||||
echo '<li>'.$ref->reference.' <a href="'.$ref->link.'"><i class="icon-download text-success"></i>Download</a></li>';
|
||||
{
|
||||
if(!empty($ref->attid))
|
||||
echo ' <a href="/service/attach/id/'.$ref->attid.'"><i class="icon-download text-success"></i>Download</a>';
|
||||
}else{
|
||||
echo ' <a href="'.$ref->link.'"><i class="icon-download text-success"></i>Download</a>';
|
||||
}
|
||||
echo "</li>";
|
||||
endforeach;
|
||||
?>
|
||||
</ol>
|
||||
<?php endif; ?>
|
||||
<?php if ($this->userref) : ?>
|
||||
<?php endif; if ($this->themeref) :?>
|
||||
|
||||
<hr />
|
||||
<h4>Data User's Publication</h4>
|
||||
<h4><i class="icon-eye-open text-success"></i>Special Publications</h4>
|
||||
<ol>
|
||||
<?php foreach($this->themeref as $ref) :
|
||||
echo '<li>'.$ref->reference;
|
||||
echo '<a href="/knowledge/paper/id/'.$ref->id.'"><i class="icon-info-sign text-success"></i>Detail</a>';
|
||||
if (empty($ref->link))
|
||||
{
|
||||
if(!empty($ref->attid))
|
||||
echo ' | <a href="/service/attach/id/'.$ref->attid.'"><i class="icon-download text-success"></i>Download</a>';
|
||||
}else{
|
||||
echo ' | <a href="'.$ref->link.'"><i class="icon-download text-success"></i>Download</a>';
|
||||
}
|
||||
echo "</li>";
|
||||
endforeach;
|
||||
?>
|
||||
</ol>
|
||||
<?php endif; if ($this->userref) : ?>
|
||||
<hr />
|
||||
<h4><i class="icon-eye-open text-success"></i>Cited By</h4>
|
||||
<ol>
|
||||
<?php foreach($this->userref as $ref) :
|
||||
echo '<li>'.$ref->reference;
|
||||
echo '<a href="/knowledge/paper/id/'.$ref->id.'"><i class="icon-info-sign text-success"></i>Detail</a>';
|
||||
if (empty($ref->link))
|
||||
echo '<li>'.$ref->reference.'</li>';
|
||||
else
|
||||
echo '<li>'.$ref->reference.' <a href="'.$ref->link.'"><i class="icon-download text-success"></i>Download</a></li>';
|
||||
{
|
||||
if(!empty($ref->attid))
|
||||
echo ' <a href="/service/attach/id/'.$ref->attid.'"><i class="icon-download text-success"></i>Download</a>';
|
||||
}else{
|
||||
echo ' <a href="'.$ref->link.'"><i class="icon-download text-success"></i>Download</a>';
|
||||
}
|
||||
echo "</li>";
|
||||
endforeach;
|
||||
if (count($this->userref)==15)
|
||||
{
|
||||
echo '<a class="btn btn-success pull-right" href="/knowledge/user/uuid/'.$md->uuid.'" ><i class="icon-info-sign"></i>More</a>';
|
||||
}
|
||||
?>
|
||||
</ol>
|
||||
<?php endif; ?>
|
||||
<hr />
|
||||
<h4><i class="icon-legal text-warning"></i>Use Limits</h4>
|
||||
<h4><i class="icon-legal text-warning"></i>Limitations</h4>
|
||||
<?php
|
||||
if ($this->uselimits) :
|
||||
foreach($this->uselimits as $uselimit) :
|
||||
echo '<p>'.str_replace(array("\r\n", "\n", "\r"),'</p><p>',$this->escape($uselimit->uselimit)).'</p>';
|
||||
endforeach;
|
||||
?>
|
||||
<?php else : ?>
|
||||
<p>Please acknowledge the data center with: The data set is provided by Cold and Arid Regions Science Data Center at Lanzhou (http://card.westgis.ac.cn)</p>
|
||||
<?php endif; ?>
|
||||
<?php if($this->data_archives){ ?>
|
||||
<h4>Related News</h4>
|
||||
<h4>Dataset News</h4>
|
||||
<ul>
|
||||
<?php
|
||||
foreach($this->data_archives as $v){?>
|
||||
|
@ -133,58 +159,33 @@ echo '<a href="http://westdc.westgis.ac.cn/data/'.$md->uuid.'"><img src="/images
|
|||
?>
|
||||
<div class="tabbable"> <!-- Only required for left/right tabs -->
|
||||
<ul class="nav nav-tabs">
|
||||
<li class="active"><a href="#related" data-toggle="tab" id="related_t">Related Datasets</a></li>
|
||||
<li><a href="#literature" data-toggle="tab" id="literature_t">Related Publications</a></li>
|
||||
<li><a href="#gsearch" data-toggle="tab" id="gsearch_t">Related Search</a></li>
|
||||
<li><a href="#service" data-toggle="tab">Service Records</a></li>
|
||||
<li><a href="#recommend" data-toggle="tab" id="recommend_t">Recommended Dataset</a></li>
|
||||
<li class="active"><a href="#related" data-toggle="tab" id="related_t">Related Dataset</a></li>
|
||||
<li><a href="#literature" data-toggle="tab" id="literature_t">Related Literatures</a></li>
|
||||
<li><a href="#gsearch" data-toggle="tab" id="gsearch_t">Searching</a></li>
|
||||
<li><a href="#recommend" data-toggle="tab" id="recommend_t">Recommendation</a></li>
|
||||
</ul>
|
||||
<div class="tab-content">
|
||||
<div id="related" class="tab-pane active">
|
||||
</div>
|
||||
<div id="literature" class="tab-pane">
|
||||
<div class="">
|
||||
<ul class="nav nav-pills lit-nav">
|
||||
<li><a href="javascript:;" class="scholar lit-nav-btn">Google Scholar</a></li>
|
||||
<li><a href="javascript:;" class="cnkiSearch lit-nav-btn">CNKI</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div id="literature-list">
|
||||
</div>
|
||||
</div>
|
||||
<div id="gsearch" class="tab-pane">
|
||||
<ul id="searchlist" class="unstyled well well-small"></ul>
|
||||
</div>
|
||||
<div id="service" class="tab-pane">
|
||||
<?php if ($this->downhistory) : ?>
|
||||
<p>Latest 10 Records:</p>
|
||||
<ol start="1">
|
||||
<?php
|
||||
foreach($this->downhistory as $v){
|
||||
echo '<li>'.date("Y-m-d",strtotime($v->ts_created))." ".$v->unit." ".$v->realname;
|
||||
if (!empty($v->offlineproject))
|
||||
echo ' Usage:'.$v->offlineproject;
|
||||
elseif (!empty($v->onlineproject))
|
||||
echo ' Usage:'.$v->onlineproject;
|
||||
echo '</li>';
|
||||
}
|
||||
?>
|
||||
</ol>
|
||||
<?php else : ?>
|
||||
You are welcomed to use this dataset.
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<div id="recommend" class="tab-pane">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!--
|
||||
<hr />
|
||||
<div id="comments">
|
||||
<?php if ($md->status>0 and $md->status<5) : ?>
|
||||
<p class="strong">此数据还在评审过程中,我们真切地邀请您参加此数据的评审,以便我们能尽快发布此数据!<a class="btn btn-primary" href="/review/review/uuid/<?php echo $md->uuid; ?>">评审</a></p>
|
||||
<p class="strong">This data is not published yet. You are invited to review this dataset, to make the data released as soon as possible.<a class="btn btn-primary" href="/review/review/uuid/<?php echo $md->uuid; ?>">评审</a></p>
|
||||
<?php else : ?>
|
||||
<h4>Comments</h4>
|
||||
<h4>Comment</h4>
|
||||
<div id="allcomments">
|
||||
<div id="loading"><img src="/images/loading.gif" />Loading</div>
|
||||
</div>
|
||||
|
@ -221,7 +222,7 @@ echo '<a href="http://westdc.westgis.ac.cn/data/'.$md->uuid.'"><img src="/images
|
|||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="control-label">Contents</label>
|
||||
<label class="control-label">Content</label>
|
||||
<div class="controls">
|
||||
<textarea name="content" class="span5"></textarea>
|
||||
</div>
|
||||
|
@ -242,12 +243,12 @@ echo '<a href="http://westdc.westgis.ac.cn/data/'.$md->uuid.'"><img src="/images
|
|||
</form>
|
||||
<div id="infobox"></div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div> -->
|
||||
</div>
|
||||
</div>
|
||||
<div class="span4">
|
||||
<ul class="well well-small inline unstyled">
|
||||
<li><a href="/data/category"><i class="icon-th text-warning"></i>Category</a></li>
|
||||
<li><a href="/data/category"><i class="icon-th text-warning"></i>Category: </a></li>
|
||||
<?php foreach($this->category as $cat): ?>
|
||||
<li><a href="/data/category/code/<?php echo $cat->code;?>"><i class="icon-th-large"></i><?php echo $this->escape($cat->name);?></a></li>
|
||||
<?php endforeach; ?>
|
||||
|
@ -274,20 +275,20 @@ foreach($this->keys as $cg) :
|
|||
endforeach;
|
||||
?></ul>
|
||||
<?php if ($md->doi) : ?>
|
||||
<ul class="well well-small inline unstyled"><li><span class="label label-success">DOI: </span><?php echo $md->doi; ?></li></ul>
|
||||
<ul class="well well-small inline unstyled"><li><span class="label label-success">DOI</span> <?php echo $md->doi; ?></li></ul>
|
||||
<?php endif; ?>
|
||||
<div>
|
||||
<hr />
|
||||
<h4>Information<a class="btn pull-right" href="javascript:void(0);" id="show-list" rel="<?= $md->uuid ?>"><i class="icon-file"></i>Files List</a></h4>
|
||||
<h4>Information<a class="btn pull-right" href="javascript:void(0);" id="show-list" title="" rel="<?= $md->uuid;?>"><i class="icon-file"></i>File list</a></h4>
|
||||
<ul class="inline unstyled well">
|
||||
<?php if ($md->fileformat) : ?>
|
||||
<li><strong>Format: </strong><?php echo $md->fileformat; ?></li>
|
||||
<li><strong>File Format: </strong><?php echo $md->fileformat; ?></li>
|
||||
<?php endif; ?>
|
||||
<li><strong>Size: </strong><?php echo $md->filesize; ?>MB</li>
|
||||
<?php if ($this->downloaded>9) :?>
|
||||
<li><strong>Download:</strong><?php echo $this->downloaded; ?> times</li>
|
||||
<li><strong>Downloaded: </strong><?php echo $this->downloaded; ?></li>
|
||||
<?php endif; ?>
|
||||
<li><strong>Viewed:</strong><?php echo $this->viewed; ?> times</li>
|
||||
<li><strong>Viewed: </strong><?php echo $this->viewed; ?></li>
|
||||
<!--
|
||||
<?php if ($md->projection) : ?>
|
||||
<li id="projection" title="<?= $this->projection; ?>">数据投影:
|
||||
|
@ -305,53 +306,48 @@ endforeach;
|
|||
<?php endif; ?>
|
||||
-->
|
||||
<?php if (!empty($md->timebegin)) : ?>
|
||||
<li id="datatimes"><strong>Temporal Range:</strong><?php echo date('Y-m-d',strtotime($md->timebegin));if (!empty($md->timeend)) echo " to ".date('Y-m-d',strtotime($md->timeend)); ?></li>
|
||||
<?php endif; ?>
|
||||
<?php if (!empty($this->doc)) : ?>
|
||||
<!-- <li id="datadoc"><a href="<?php $wikiTitle = $this->doc;
|
||||
if(strpos($wikiTitle,'http://wiki.westgis.ac.cn/index.php/')!==false){
|
||||
$title=str_replace('http://wiki.westgis.ac.cn/index.php/','',$wikiTitle);
|
||||
echo "/data/wiki/$title";
|
||||
}else{
|
||||
echo $this->doc;
|
||||
}?>">数据说明文档</a></li> -->
|
||||
<li id="datatimes"><strong>Temporal Range: </strong><?php echo date('Y-m-d',strtotime($md->timebegin));if (!empty($md->timeend)) echo " to ".date('Y-m-d',strtotime($md->timeend)); ?></li>
|
||||
<?php endif; ?>
|
||||
<?php if ($this->attachments) : ?>
|
||||
<li id="attach"><span>Documents:</span>
|
||||
<li id="attach"><span>Documents: </span>
|
||||
<?php foreach ($this->attachments as $k=>$a) : ?>
|
||||
<a href="/service/attach/id/<?php echo $a->id; ?>" title="<?php echo $a->realname; ?>"><img src="/images/document.png"></a>
|
||||
<?php endforeach; ?>
|
||||
<a href="/service/attach/zip/<?php echo $md->uuid; ?>"><img src="/images/zip_icon.gif" title="zip download"/></a>
|
||||
<a href="/service/attach/zip/<?php echo $md->uuid; ?>"><img src="/images/zip_icon.gif" title="打包下载"/></a>
|
||||
</li>
|
||||
<?php endif; ?>
|
||||
<li id="datatype"><strong>Sharing type:</strong><?php if ($md->datatype) print "Offline"; else print "Online";?> </li>
|
||||
<li id="datatype"><strong>Sharing: </strong><?php if ($md->datatype) print "Offline"; else print "Online";?> </li>
|
||||
</ul>
|
||||
<div id="linkurl">
|
||||
<?php if ($md->status>0 and $md->status<5) : ?>
|
||||
<a href="/review/review/uuid/<?php echo $md->uuid; ?>" class="btn btn-primary btn-large btn-block" title="此数据正在评审中,我们邀请您对此数据进行评审,以便其能尽快发布!">数据评审</a>
|
||||
<a href="/review/review/uuid/<?php echo $md->uuid; ?>" class="btn btn-primary btn-large btn-block" title="You are invited to review this dataset.">Reviewing</a>
|
||||
<?php else : if (!$md->datatype) : ?>
|
||||
<a href="/data/todownload/?uuid=<?= $md->uuid?>" class="btn btn-primary btn-large btn-block" title="Download">
|
||||
Download
|
||||
</a>
|
||||
<?php else: ?>
|
||||
<a href="/data/order/uuid/<?php echo $md->uuid; ?>" class="btn btn-primary btn-large btn-block" title="Free!">
|
||||
Put in the CART
|
||||
<?php
|
||||
if(!empty($this->dataService)) { ?>
|
||||
<?php $this->theme->AppendPlus($this,'datepicker'); ?>
|
||||
<a href="javascript:void(0);" class="btn btn-primary btn-large btn-block" title="Select the subset" onclick="westdc.dataservice.choiceData('<?= $md->uuid ?>',this);">
|
||||
<?php }else{ ?>
|
||||
<a href="/data/order/uuid/<?php echo $md->uuid; ?>" class="btn btn-primary btn-large btn-block" title="Free of Charge!">
|
||||
<?php } ?>
|
||||
Put in the Basket
|
||||
</a>
|
||||
<?php endif;endif; ?>
|
||||
<a href="javascript:void(0);" class="btn btn-block" title="喜欢此数据可以将它放到收藏夹中下次浏览">
|
||||
收藏此数据
|
||||
</a>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<hr />
|
||||
<h4>Location</h4>
|
||||
<h4>Google Maps</h4>
|
||||
<div id='watermap' style="width:100%;height:300px;"></div>
|
||||
<hr />
|
||||
<h4>Contacts</h4>
|
||||
<div id="authors">
|
||||
<ul class="unstyled">
|
||||
<?php
|
||||
$party_zh=array('resourceProvider'=>'Resource Provider','custodian'=>'Custodian','owner'=>'Owner','user'=>'User','distributor'=>'Distributor','originator'=>'Originator','pointOfContact'=>'Point Of Contact','principalInvestigator'=>'Principal Investigator','processor'=>'Process','publisher'=>'Publisher','author'=>'Author');
|
||||
$party_zh=array('resourceProvider'=>'Resource Provider','custodian'=>'Custodian','owner'=>'Owner','user'=>'User','distributor'=>'Distributor','originator'=>'Originator','pointOfContact'=>'Point Of Contact','principalInvestigator'=>'Principal Investigator','processor'=>'Processor','publisher'=>'Publisher','author'=>'Author');
|
||||
$r='';
|
||||
$i=0;
|
||||
foreach($this->authors as $k=>$author) :
|
||||
|
@ -379,8 +375,8 @@ endforeach;
|
|||
</ul>
|
||||
<hr />
|
||||
<ul class="unstyled">
|
||||
<li>Latest Update:<?php print date('Y-m-d',strtotime($md->ts_created)); ?></li>
|
||||
<li><strong>Get the Metadata:</strong>
|
||||
<li>Last update: <?php print date('Y-m-d',strtotime($md->ts_created)); ?></li>
|
||||
<li><strong>Download Metadata:</strong>
|
||||
<a href="/service/pdf/uuid/<?php echo $md->uuid; ?>"><img src="/images/pdf_icon.gif" alt="Adobe PDF" title="Adobe PDF"></a>
|
||||
<a href="/service/odt/uuid/<?php echo $md->uuid; ?>"><img src="/images/odt_icon.gif" alt="OpenOffice odt" title="OpenOffice odt"></a>
|
||||
<a href="/service/doc/uuid/<?php echo $md->uuid; ?>"><img src="/images/doc_icon.gif" alt="Word doc" title="Word doc"></a>
|
||||
|
@ -388,10 +384,12 @@ endforeach;
|
|||
</li>
|
||||
<!--<li><a href="/data/detail/id/<?php echo $md->id;?>">详细元数据</a></li>-->
|
||||
<?php if($this->version->c>0):?>
|
||||
<li id="dataversion">Changelog:<a href="javascript:void(0);" onclick="dataVersion('<?php echo $md->uuid;?>')" title=""><?= $this->version->c ?> 个 <img src="/images/list_extensions.gif" style="vertical-align:middle" /></a></li>
|
||||
<li id="dataversion">Version: <a href="javascript:void(0);" onclick="dataVersion('<?php echo $md->uuid;?>')" title=""><?= $this->version->c ?> 个 <img src="/images/list_extensions.gif" style="vertical-align:middle" /></a></li>
|
||||
<?php endif;?>
|
||||
</ul>
|
||||
</div>
|
||||
<hr />
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<script src="/js/metadata-view.js"></script>
|
||||
|
@ -405,7 +403,7 @@ $(function() {
|
|||
$('.scholar').click(function(){scholarSearch('<?php echo $ev;?>');});
|
||||
$('#related_t').click(function(){related(1);});
|
||||
$('#recommend_t').click(function(){recommend(0);});
|
||||
$('#literature_t').click(function(){literature(1);$('.literatures').parent('li').addClass('active')});
|
||||
$('#literature_t').click(function(){scholarSearch('<?php echo $ev;?>');$('.literatures').parent('li').addClass('active')});
|
||||
$('.literatures').click(function(){literature(1);});
|
||||
ajaxpage(0);
|
||||
related(1);
|
||||
|
@ -442,6 +440,10 @@ function recommend(page){
|
|||
recommend_get(page,'<?= $md->uuid; ?>');
|
||||
}
|
||||
|
||||
function getFileList(){
|
||||
getFileList_h('<?php echo $md->uuid;?>');
|
||||
}
|
||||
|
||||
function ajaxpage(page){
|
||||
ajaxpage_get(page,'<?= $md->uuid; ?>');
|
||||
}
|
||||
|
@ -454,27 +456,13 @@ var zoomlevel = 1;
|
|||
var bound = {
|
||||
lat:<?= ($md->south+$md->north)/2; ?>,
|
||||
lng:<?= ($md->east+$md->west)/2; ?>,
|
||||
zoom:<?php if ($md->north==$md->south) { ?> 10 <?php }else {?> 6 <?php }?>,
|
||||
zoom:<?php if ($md->north==$md->south) { ?> 10 <?php }else {?> 16 <?php }?>,
|
||||
east:<?= $md->east; ?>,
|
||||
west:<?= $md->west; ?>,
|
||||
south:<?= $md->south; ?>,
|
||||
north:<?= $md->north; ?>
|
||||
}
|
||||
|
||||
function addfavorite(url,title){
|
||||
var fav_url = url;
|
||||
var fav_title = title;
|
||||
if (document.all && window.external){
|
||||
window.external.AddFavorite(fav_url,fav_title);
|
||||
}else if (window.sidebar){
|
||||
window.sidebar.addPanel(fav_title,fav_url,"");
|
||||
}else{
|
||||
alert("浏览器不支持,请手动CTRL+D加入收藏夹");
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<?php else: ?>
|
||||
<p>Cannot find the metadata.</p>
|
||||
<p>没有找到对应的元数据。</p>
|
||||
<?php endif;?>
|
||||
|
||||
|
|
|
@ -0,0 +1,30 @@
|
|||
<?php
|
||||
$this->headTitle($this->config->title->site);
|
||||
$this->headTitle($this->config->title->data);
|
||||
$this->headTitle()->setSeparator(' - ');
|
||||
$this->headLink()->appendStylesheet('/css/water.css');
|
||||
$this->nav[] = array('link'=>"/glacier",'title'=>$this->config->title->glacier);
|
||||
?>
|
||||
<?= $this->render('breadcrumbs.phtml'); ?>
|
||||
<div class="row">
|
||||
<div class="span2">
|
||||
<?= $this->partial('glacier/navi.phtml'); ?>
|
||||
</div>
|
||||
<div class="span10">
|
||||
<?php if ($this->info) : ?>
|
||||
<div class="well">
|
||||
<?php if(!empty($this->info['body'])) echo $this->info['body'];?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php if ($this->metadata) : ?>
|
||||
<?php echo $this->page->getNavigation(); ?>
|
||||
<div id="mdlist">
|
||||
<ol start="<?php echo $this->offset; ?>">
|
||||
<?php foreach($this->metadata as $md) : ?>
|
||||
<li><a href="/glacier/view/uuid/<?php echo $md['uuid']; ?>"><?php echo $md['title']; ?></a></li>
|
||||
<?php endforeach; ?>
|
||||
</ol>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
|
@ -11,10 +11,10 @@ $this->breadcrumb('浏览');
|
|||
$this->breadcrumb()->setSeparator(' > ');
|
||||
?>
|
||||
<div class="row">
|
||||
<div class="span3">
|
||||
<div class="span2">
|
||||
<?= $this->partial('glacier/navi.phtml'); ?>
|
||||
</div>
|
||||
<div class="span9">
|
||||
<div class="span10">
|
||||
<?php echo $this->page->getNavigation(); ?>
|
||||
<hr />
|
||||
<div id="mdlist">
|
||||
|
|
|
@ -1,43 +0,0 @@
|
|||
<?php
|
||||
$this->headTitle($this->config->title->site);
|
||||
$this->headTitle($this->config->title->data);
|
||||
$this->headTitle('分类浏览');
|
||||
if (!empty($this->codename)) $this->headTitle($this->codename);
|
||||
$this->headTitle()->setSeparator(' - ');
|
||||
$this->headLink()->appendStylesheet('/css/water.css');
|
||||
$this->breadcrumb('<a href="/">首页</a>');
|
||||
$this->breadcrumb('<a href="/data">'.$this->config->title->data.'</a>');
|
||||
$this->breadcrumb('<a href="/glacier/">'.$this->config->title->glacier.'</a>');
|
||||
$this->breadcrumb('分类浏览:'.$this->codename);
|
||||
$this->breadcrumb()->setSeparator(' > ');
|
||||
?>
|
||||
<div class="row">
|
||||
<div class="span3">
|
||||
<?= $this->partial('glacier/navi.phtml'); ?>
|
||||
</div>
|
||||
<div class="span9">
|
||||
<div id='links'>
|
||||
<ul>
|
||||
<?php foreach($this->category as $cg) : ?>
|
||||
<li><a href='/glacier/category/code/<?php echo $cg['code']; ?>'><?php (empty($cg['name_zh']))?print($cg['name']):print($cg['name_zh']); ?></a><span class="note">(<?php echo $cg['count']; ?>)</span></li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<?php if (!empty($this->metadata)) : ?>
|
||||
<div id='mdlist'>
|
||||
<?php echo $this->page->getNavigation(); ?>
|
||||
<hr />
|
||||
<div id="mdlist">
|
||||
<ol start="<?php echo $this->offset; ?>">
|
||||
<?php foreach($this->metadata as $md) : ?>
|
||||
<li><a href="/glacier/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>
|
||||
<?php endforeach; ?>
|
||||
</ol>
|
||||
</div>
|
||||
<hr />
|
||||
<?php echo $this->page->getNavigation(); ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
|
@ -1,33 +0,0 @@
|
|||
<?php
|
||||
$this->headTitle($this->config->title->site);
|
||||
$this->headTitle($this->config->title->data);
|
||||
$this->headTitle()->setSeparator(' - ');
|
||||
$this->headLink()->appendStylesheet('/css/water.css');
|
||||
$this->breadcrumb('<a href="/">首页</a>');
|
||||
$this->breadcrumb('<a href="/data">'.$this->config->title->data.'</a>');
|
||||
$this->breadcrumb('<a href="/glacier/">'.$this->config->title->glacier.'</a>');
|
||||
$this->breadcrumb('珠穆朗玛峰北坡');
|
||||
$this->breadcrumb()->setSeparator(' > ');
|
||||
?>
|
||||
|
||||
<div id='sidebar'>
|
||||
<div id='leftnavi'>
|
||||
<?= $this->partial('glacier/navi.phtml'); ?>
|
||||
</div>
|
||||
</div>
|
||||
<div id='right'>
|
||||
<div> </div>
|
||||
<div id="intro">
|
||||
</div>
|
||||
<hr />
|
||||
<?php if ($this->metadata) : ?>
|
||||
<?php echo $this->page->getNavigation(); ?>
|
||||
<div id="mdlist">
|
||||
<ol start="<?php echo $this->offset; ?>">
|
||||
<?php foreach($this->metadata as $md) : ?>
|
||||
<li><a href="/glacier/view/uuid/<?php echo $md['uuid']; ?>"><?php echo $md['title']; ?></a></li>
|
||||
<?php endforeach; ?>
|
||||
</ol>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
|
@ -1,33 +0,0 @@
|
|||
<?php
|
||||
$this->headTitle($this->config->title->site);
|
||||
$this->headTitle($this->config->title->data);
|
||||
$this->headTitle()->setSeparator(' - ');
|
||||
$this->headLink()->appendStylesheet('/css/water.css');
|
||||
$this->breadcrumb('<a href="/">首页</a>');
|
||||
$this->breadcrumb('<a href="/data">'.$this->config->title->data.'</a>');
|
||||
$this->breadcrumb('<a href="/glacier/">'.$this->config->title->glacier.'</a>');
|
||||
$this->breadcrumb('冰湖编目数据');
|
||||
$this->breadcrumb()->setSeparator(' > ');
|
||||
?>
|
||||
<div class="row">
|
||||
<div class="span3">
|
||||
<?= $this->partial('glacier/navi.phtml'); ?>
|
||||
</div>
|
||||
<div class="span9">
|
||||
<div id="intro">
|
||||
<p>为了对冰川编目结果进行验证并获得更多的冰川环境信息,项目开展了大量的野外考察。考察范围包括:祁连山、昆仑山-唐古拉山、喜马拉雅山、青藏高原腹地冰川考察、黄河源-念青唐古拉山中段北坡-喜马拉雅山中段。考察内容包括GPS测量、冰川厚度测量、冰川区地形摄影测量、冰川物质平衡测量、冰川区气象水文要素测量、冰湖水位和温度测量等。</p>
|
||||
<img src="/images/glacier/field1.png" />
|
||||
</div>
|
||||
<hr />
|
||||
<?php if ($this->metadata) : ?>
|
||||
<?php echo $this->page->getNavigation(); ?>
|
||||
<div id="mdlist">
|
||||
<ol start="<?php echo $this->offset; ?>">
|
||||
<?php foreach($this->metadata as $md) : ?>
|
||||
<li><a href="/glacier/view/uuid/<?php echo $md['uuid']; ?>"><?php echo $md['title']; ?></a></li>
|
||||
<?php endforeach; ?>
|
||||
</ol>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
|
@ -1,33 +0,0 @@
|
|||
<?php
|
||||
$this->headTitle($this->config->title->site);
|
||||
$this->headTitle($this->config->title->data);
|
||||
$this->headTitle()->setSeparator(' - ');
|
||||
$this->headLink()->appendStylesheet('/css/water.css');
|
||||
$this->breadcrumb('<a href="/">首页</a>');
|
||||
$this->breadcrumb('<a href="/data">'.$this->config->title->data.'</a>');
|
||||
$this->breadcrumb('<a href="/glacier/">'.$this->config->title->glacier.'</a>');
|
||||
$this->breadcrumb('冻土数据');
|
||||
$this->breadcrumb()->setSeparator(' > ');
|
||||
?>
|
||||
<div class="row">
|
||||
<div class="span3">
|
||||
<?= $this->partial('glacier/navi.phtml'); ?>
|
||||
</div>
|
||||
<div class="span9">
|
||||
<div id="intro">
|
||||
<p>与多年冻土相关的测量数据,包括探地雷达测量的地下冰厚度、冻土层上限等。
|
||||
</p>
|
||||
</div>
|
||||
<hr />
|
||||
<?php if ($this->metadata) : ?>
|
||||
<?php echo $this->page->getNavigation(); ?>
|
||||
<div id="mdlist">
|
||||
<ol start="<?php echo $this->offset; ?>">
|
||||
<?php foreach($this->metadata as $md) : ?>
|
||||
<li><a href="/glacier/view/uuid/<?php echo $md['uuid']; ?>"><?php echo $md['title']; ?></a></li>
|
||||
<?php endforeach; ?>
|
||||
</ol>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
|
@ -1,34 +0,0 @@
|
|||
<?php
|
||||
$this->headTitle($this->config->title->site);
|
||||
$this->headTitle($this->config->title->data);
|
||||
$this->headTitle()->setSeparator(' - ');
|
||||
$this->headLink()->appendStylesheet('/css/water.css');
|
||||
$this->breadcrumb('<a href="/">首页</a>');
|
||||
$this->breadcrumb('<a href="/data">'.$this->config->title->data.'</a>');
|
||||
$this->breadcrumb('<a href="/glacier/">'.$this->config->title->glacier.'</a>');
|
||||
$this->breadcrumb('基础数据');
|
||||
$this->breadcrumb()->setSeparator(' > ');
|
||||
?>
|
||||
<div class="row">
|
||||
<div class="span3">
|
||||
<?= $this->partial('glacier/navi.phtml'); ?>
|
||||
</div>
|
||||
<div class="span9">
|
||||
<div id="intro">
|
||||
<p>基础数据是指用于开展冰川和冰湖编目的遥感影像、地形图和数字地形模型,由于地形图属国家保密数据,不在共享范围内。</p>
|
||||
<p>地形图主要用来地第一次冰川编目数据进行校正,并辅助第二次冰川编目中冰川边界和山脊线的判断。冰川编目中使用和参考的地形图约1105幅,其中1:50,000地形图546幅(航摄制图512幅,陆地摄影测量成果15幅,平板仪测绘及其他地图19幅),1:100,000地形图572幅(航摄制图558幅,平板仪测绘及其他地图14幅),另外还参考了1975年左右的MSS遥感数据地形图7幅。</p>
|
||||
<img src="/images/glacier/topographic.png" />
|
||||
</div>
|
||||
<hr />
|
||||
<?php if ($this->metadata) : ?>
|
||||
<?php echo $this->page->getNavigation(); ?>
|
||||
<div id="mdlist">
|
||||
<ol start="<?php echo $this->offset; ?>">
|
||||
<?php foreach($this->metadata as $md) : ?>
|
||||
<li><a href="/glacier/view/uuid/<?php echo $md['uuid']; ?>"><?php echo $md['title']; ?></a></li>
|
||||
<?php endforeach; ?>
|
||||
</ol>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
|
@ -1,33 +0,0 @@
|
|||
<?php
|
||||
$this->headTitle($this->config->title->site);
|
||||
$this->headTitle($this->config->title->data);
|
||||
$this->headTitle()->setSeparator(' - ');
|
||||
$this->headLink()->appendStylesheet('/css/water.css');
|
||||
$this->breadcrumb('<a href="/">首页</a>');
|
||||
$this->breadcrumb('<a href="/data">'.$this->config->title->data.'</a>');
|
||||
$this->breadcrumb('<a href="/glacier/">'.$this->config->title->glacier.'</a>');
|
||||
$this->breadcrumb('冰川编目数据');
|
||||
$this->breadcrumb()->setSeparator(' > ');
|
||||
?>
|
||||
<div class="row">
|
||||
<div class="span3">
|
||||
<?= $this->partial('glacier/navi.phtml'); ?>
|
||||
</div>
|
||||
<div class="span9">
|
||||
<div id="intro">
|
||||
<p>冰川编目数据:基于遥感影像解译获得的反应我国2005年前后冰川现状的冰川分布图及其基本属性。除了包括中国全境的冰川编目数据外,还包括祁连山、天山、贡嘎山、纳木错流域、长江源区、年楚河流域和珠穆朗玛峰北坡等典型地区的多年代冰川分布数据。
|
||||
</p>
|
||||
</div>
|
||||
<hr />
|
||||
<?php if ($this->metadata) : ?>
|
||||
<?php echo $this->page->getNavigation(); ?>
|
||||
<div id="mdlist">
|
||||
<ol start="<?php echo $this->offset; ?>">
|
||||
<?php foreach($this->metadata as $md) : ?>
|
||||
<li><a href="/glacier/view/uuid/<?php echo $md['uuid']; ?>"><?php echo $md['title']; ?></a></li>
|
||||
<?php endforeach; ?>
|
||||
</ol>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
|
@ -1,33 +0,0 @@
|
|||
<?php
|
||||
$this->headTitle($this->config->title->site);
|
||||
$this->headTitle($this->config->title->data);
|
||||
$this->headTitle()->setSeparator(' - ');
|
||||
$this->headLink()->appendStylesheet('/css/water.css');
|
||||
$this->breadcrumb('<a href="/">首页</a>');
|
||||
$this->breadcrumb('<a href="/data">'.$this->config->title->data.'</a>');
|
||||
$this->breadcrumb('<a href="/glacier/">'.$this->config->title->glacier.'</a>');
|
||||
$this->breadcrumb('贡嘎山');
|
||||
$this->breadcrumb()->setSeparator(' > ');
|
||||
?>
|
||||
|
||||
<div id='sidebar'>
|
||||
<div id='leftnavi'>
|
||||
<?= $this->partial('glacier/navi.phtml'); ?>
|
||||
</div>
|
||||
</div>
|
||||
<div id='right'>
|
||||
<div> </div>
|
||||
<div id="intro">
|
||||
</div>
|
||||
<hr />
|
||||
<?php if ($this->metadata) : ?>
|
||||
<?php echo $this->page->getNavigation(); ?>
|
||||
<div id="mdlist">
|
||||
<ol start="<?php echo $this->offset; ?>">
|
||||
<?php foreach($this->metadata as $md) : ?>
|
||||
<li><a href="/glacier/view/uuid/<?php echo $md['uuid']; ?>"><?php echo $md['title']; ?></a></li>
|
||||
<?php endforeach; ?>
|
||||
</ol>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
|
@ -1,33 +0,0 @@
|
|||
<?php
|
||||
$this->headTitle($this->config->title->site);
|
||||
$this->headTitle($this->config->title->data);
|
||||
$this->headTitle()->setSeparator(' - ');
|
||||
$this->headLink()->appendStylesheet('/css/water.css');
|
||||
$this->breadcrumb('<a href="/">首页</a>');
|
||||
$this->breadcrumb('<a href="/data">'.$this->config->title->data.'</a>');
|
||||
$this->breadcrumb('<a href="/glacier/">'.$this->config->title->glacier.'</a>');
|
||||
$this->breadcrumb('GPS测量数据');
|
||||
$this->breadcrumb()->setSeparator(' > ');
|
||||
?>
|
||||
<div class="row">
|
||||
<div class="span3">
|
||||
<?= $this->partial('glacier/navi.phtml'); ?>
|
||||
</div>
|
||||
<div class="span9">
|
||||
<div id="intro">
|
||||
<p>采用高精度GPS设备在冰川表面或周边地区测量获得的数据,可用来获得冰川高程信息,也可与以前的观测数据相比较获得冰川流动和物质平衡变化信息。</p>
|
||||
<img src="/images/glacier/gps.png" />
|
||||
</div>
|
||||
<hr />
|
||||
<?php if ($this->metadata) : ?>
|
||||
<?php echo $this->page->getNavigation(); ?>
|
||||
<div id="mdlist">
|
||||
<ol start="<?php echo $this->offset; ?>">
|
||||
<?php foreach($this->metadata as $md) : ?>
|
||||
<li><a href="/glacier/view/uuid/<?php echo $md['uuid']; ?>"><?php echo $md['title']; ?></a></li>
|
||||
<?php endforeach; ?>
|
||||
</ol>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
|
@ -1,33 +0,0 @@
|
|||
<?php
|
||||
$this->headTitle($this->config->title->site);
|
||||
$this->headTitle($this->config->title->data);
|
||||
$this->headTitle()->setSeparator(' - ');
|
||||
$this->headLink()->appendStylesheet('/css/water.css');
|
||||
$this->breadcrumb('<a href="/">首页</a>');
|
||||
$this->breadcrumb('<a href="/data">'.$this->config->title->data.'</a>');
|
||||
$this->breadcrumb('<a href="/glacier/">'.$this->config->title->glacier.'</a>');
|
||||
$this->breadcrumb('水文数据');
|
||||
$this->breadcrumb()->setSeparator(' > ');
|
||||
?>
|
||||
<div class="row">
|
||||
<div class="span3">
|
||||
<?= $this->partial('glacier/navi.phtml'); ?>
|
||||
</div>
|
||||
<div class="span9">
|
||||
<div id="intro">
|
||||
<p>在冰川下游观测获得的水文数据,观测要素包括径流、水质和水文化学等,也包括部分冰湖的观测数据。</p>
|
||||
<img src="/images/glacier/hydro.png" />
|
||||
</div>
|
||||
<hr />
|
||||
<?php if ($this->metadata) : ?>
|
||||
<?php echo $this->page->getNavigation(); ?>
|
||||
<div id="mdlist">
|
||||
<ol start="<?php echo $this->offset; ?>">
|
||||
<?php foreach($this->metadata as $md) : ?>
|
||||
<li><a href="/glacier/view/uuid/<?php echo $md['uuid']; ?>"><?php echo $md['title']; ?></a></li>
|
||||
<?php endforeach; ?>
|
||||
</ol>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
|
@ -3,73 +3,20 @@ $this->headTitle($this->config->title->site);
|
|||
$this->headTitle($this->config->title->data);
|
||||
$this->headTitle()->setSeparator(' - ');
|
||||
$this->headLink()->appendStylesheet('/css/water.css');
|
||||
$this->breadcrumb('<a href="/">首页</a>');
|
||||
$this->breadcrumb('<a href="/data">'.$this->config->title->data.'</a>');
|
||||
$this->breadcrumb($this->config->title->glacier);
|
||||
$this->breadcrumb()->setSeparator(' > ');
|
||||
$this->nav[] = array('link'=>"/glacier",'title'=>$this->config->title->glacier);
|
||||
?>
|
||||
<?= $this->render('breadcrumbs.phtml'); ?>
|
||||
<div class="row">
|
||||
<div class="span3">
|
||||
<div class="span2">
|
||||
<?= $this->partial('glacier/navi.phtml'); ?>
|
||||
</div>
|
||||
<div class="span9">
|
||||
|
||||
<div class="span10">
|
||||
<div id="intro">
|
||||
<h1>“中国冰川资源及其变化调查”项目简介</h1>
|
||||
<p>
|
||||
冰川是最敏感、最直接、最易于辩识、长纪录、高分辨的气候变化信息指示器和储存体,冰川变化信息是全球变化中的重要基础性资源。我国是中、低纬度山 地冰川面积最多的国家(占52%),是两极冰盖之外最重要的冰川集结地,冰川变化信息的挖掘、调查、监测、编目是十分重要的基础性工作。
|
||||
</p>
|
||||
<p>
|
||||
始于1978年的第一次冰川编目历时24年,查清了截止到第一次全国航空测量时(西部冰川区约为1960s-1980s)中国冰川资源的基本情况。第一次冰川清查工作在国际和国内产生了重大影响,被国际冰川学会主席誉为建立了一座“冰川和气候变化研究的金矿”。
|
||||
本次冰川资源调查是在中国科技部和中国科学院的联合支持下开展的一次大规模冰川普查,其目标以第一次冰川编目为参考,以2005-2006年为现状 年,以高分辨率遥感数据与地理信息系统技术为基础,深入研究基于遥感的冰川制图方法,结合冰川野外考察考察,获取我国冰川的分布状况,对有观测历史的典型 冰川进行重点监测;并与第一次冰川编目数据进行比较,查明我国冰川资源变化情况;同时,以此调查数据为基础,综合定位监测与相关资料,评估冰川变化对水资 源的影响,为西部水资源开发利用提供决策依据 。
|
||||
</p>
|
||||
<h2>《中国冰川资源及其变化调查》主要研究内容</h2>
|
||||
<ol>
|
||||
<li>第一次冰川编目的数字化:重点开展第一次冰川编目时期冰川及冰湖分布的数字化,为冰川遥感监测提供基础数据。</li>
|
||||
<li>现状年(2005-2006年)西北干旱区和其它典型区冰川(湖)分布遥感调查:重点开展现状年基于高分辨率遥感影像的冰川与冰湖分布调查,同时,开展研究区部分冰川表面高程和运动速度信息的提取。</li>
|
||||
<li>遥感冰川制图地面验证、典型冰川厚度测量与冰川变化野外调查:重点开展代表性区域野外调查和典型冰川定位观测,验证遥感解译结果,获取典型监测冰川过程观测数据;开展代表性冰川厚度的雷达测量。</li>
|
||||
<li>冰川变化对水资源的影响评估:以现有定位观测冰川和区域冰川变化遥感调查数据为基础,评估西北干旱区和其它典型区冰川变化特征及其对水资源的影响。</li>
|
||||
<li>冰川资源及其变化调查信息共享平台建设:建立冰川资源管理及共享信息系统,为资源共享服务。</li>
|
||||
</ol>
|
||||
<h2>《西部冰川变化监测及其影响评估方法研究》主要研究内容</h2>
|
||||
<ol>
|
||||
<li>各类冰川参数的遥感提取方法研究:针对西部三类冰川特点,综合运用现有卫星遥感数据,建立冰川几何尺寸、特征要素、物理特征、表面高程等信息的提取算法,为大范围冰川调查提供适合各类冰川下垫面状况和气候条件的参数提取方法集,提高遥感获取冰川信息的自动化程度。</li>
|
||||
<li>冰川储量估算与冰川参数遥感提取精度评估:研制或改进冰川厚度测量雷达,对不同类型典型冰川流域不同规模的代表性冰川进行冰川厚度测量,建立适 合不同规模冰川的储量计算公式;开展各典型监测冰川区遥感冰川制图的野外验证、控制点采集与冰川变化的调查,进行遥感提取参数的误差分析与方法验证研究。</li>
|
||||
<li>流域冰川融水径流估算方法研究:以典型监测冰川长期观测资料为基础,并进行加强观测,同时收集流域出山口径流长期水文气象观测数据,建立适合不同资料条件的简单和复杂冰川融水径流模型,在对比分析基础上,提出适合西部流域尺度的冰川融水径流计算方案。</li>
|
||||
<li>冰川变化对水资源影响的评估方法及其应用研究:分析典型冰川流域冰川变化的空间特征及其差异;以典型冰川融水径流过程和流域尺度冰川动力响应研 究为基础,研究不同融水径流计算方案、基于冰川动力响应和基于冰川几何尺度转换关系模型对于不同性质冰川流域融水径流年际变化的模拟能力;根据流域融水径 流模型集,剖析冰川变化对冰川径流临界转变的影响及其强度。</li>
|
||||
</ol>
|
||||
<h1><?php if(!empty($this->info['title'])) echo $this->info['title']; ?></h1>
|
||||
<table>
|
||||
<tr><td><?php if(!empty($this->info['body'])) echo $this->info['body'];?></td></tr>
|
||||
</table>
|
||||
</div>
|
||||
<!--
|
||||
<div id="heihe_ad">
|
||||
<h2>已整理数据展示</h2>
|
||||
<ul id="heihe_list">
|
||||
<?php foreach($this->meatdata as $md) : ?>
|
||||
<li>
|
||||
<a href="/heihe/view/uuid/<?php echo $md['uuid']; ?>"><span><?php echo $md['title']; ?></span>
|
||||
<img src="/service/thumb/id/<?php echo $md['id']; ?>" alt="Data Thumbnail" title="<?php echo mb_strlen($md['description'])>400?$this->escape(mb_substr($md['description'],0,400,'UTF-8').'...'):$this->escape($md['description']);?>" />
|
||||
</a>
|
||||
</li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
<img class="next" src="/images/next.png" onclick="changetlist()" />
|
||||
</div>
|
||||
-->
|
||||
</div>
|
||||
</div>
|
||||
<script type="text/javascript" language="javascript">
|
||||
function changetlist(){
|
||||
$.getJSON("/service/mdjson/source/heihe", function(data){
|
||||
$('#heihe_list').html('');
|
||||
if(data.length>0)
|
||||
{
|
||||
$.each(data, function(key, val) {
|
||||
var a = '<a href="/data/'+val['uuid']+'"><span>'+val['title']+'</span>';
|
||||
var img = '<img src="/service/thumb/id/'+val['id']+'" alt="Data Thumbnail" title="'+val['description']+'" />';
|
||||
$('<li/>', {
|
||||
//"class":'list_img',
|
||||
"html": a+img+'</a>'
|
||||
}).appendTo('#heihe_list');
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
</script>
|
|
@ -1,35 +0,0 @@
|
|||
<?php
|
||||
$this->headTitle($this->config->title->site);
|
||||
$this->headTitle($this->config->title->data);
|
||||
$this->headTitle()->setSeparator(' - ');
|
||||
$this->headLink()->appendStylesheet('/css/water.css');
|
||||
$this->breadcrumb('<a href="/">首页</a>');
|
||||
$this->breadcrumb('<a href="/data">'.$this->config->title->data.'</a>');
|
||||
$this->breadcrumb('<a href="/glacier/">'.$this->config->title->glacier.'</a>');
|
||||
$this->breadcrumb('冰川冰湖编目数据');
|
||||
$this->breadcrumb()->setSeparator(' > ');
|
||||
?>
|
||||
<div class="row">
|
||||
<div class="span3">
|
||||
<?= $this->partial('glacier/navi.phtml'); ?>
|
||||
</div>
|
||||
<div class="span9">
|
||||
<div id="intro">
|
||||
<p>冰川编目数据:基于遥感影像解译获得的反应我国2005年前后冰川现状的冰川分布图及其基本属性。除了包括中国全境的冰川编目数据外,还包括祁连山、天山、贡嘎山、纳木错流域、长江源区、年楚河流域和珠穆朗玛峰北坡等典型地区的多年代冰川分布数据。
|
||||
</p>
|
||||
<p>冰湖编目数据:
|
||||
冰湖是指在冰川前端、表面或内部形成的湖泊。冰湖编目是指利用地形图和遥感数据等资料对位于冰川前端和表面的湖泊进行登记的调查行为。</p>
|
||||
</div>
|
||||
<hr />
|
||||
<?php if ($this->metadata) : ?>
|
||||
<?php echo $this->page->getNavigation(); ?>
|
||||
<div id="mdlist">
|
||||
<ol start="<?php echo $this->offset; ?>">
|
||||
<?php foreach($this->metadata as $md) : ?>
|
||||
<li><a href="/glacier/view/uuid/<?php echo $md['uuid']; ?>"><?php echo $md['title']; ?></a></li>
|
||||
<?php endforeach; ?>
|
||||
</ol>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
|
@ -1,34 +0,0 @@
|
|||
<?php
|
||||
$this->headTitle($this->config->title->site);
|
||||
$this->headTitle($this->config->title->data);
|
||||
$this->headTitle()->setSeparator(' - ');
|
||||
$this->headLink()->appendStylesheet('/css/water.css');
|
||||
$this->breadcrumb('<a href="/">首页</a>');
|
||||
$this->breadcrumb('<a href="/data">'.$this->config->title->data.'</a>');
|
||||
$this->breadcrumb('<a href="/glacier/">'.$this->config->title->glacier.'</a>');
|
||||
$this->breadcrumb('冰湖编目数据');
|
||||
$this->breadcrumb()->setSeparator(' > ');
|
||||
?>
|
||||
<div class="row">
|
||||
<div class="span3">
|
||||
<?= $this->partial('glacier/navi.phtml'); ?>
|
||||
</div>
|
||||
<div class="span9">
|
||||
<div id="intro">
|
||||
<p>冰湖编目数据:
|
||||
冰湖是指在冰川前端、表面或内部形成的湖泊。冰湖编目是指利用地形图和遥感数据等资料对位于冰川前端和表面的湖泊进行登记的调查行为。</p>
|
||||
<img src="/images/glacier/lake.png" />
|
||||
</div>
|
||||
<hr />
|
||||
<?php if ($this->metadata) : ?>
|
||||
<?php echo $this->page->getNavigation(); ?>
|
||||
<div id="mdlist">
|
||||
<ol start="<?php echo $this->offset; ?>">
|
||||
<?php foreach($this->metadata as $md) : ?>
|
||||
<li><a href="/glacier/view/uuid/<?php echo $md['uuid']; ?>"><?php echo $md['title']; ?></a></li>
|
||||
<?php endforeach; ?>
|
||||
</ol>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
|
@ -1,35 +0,0 @@
|
|||
<?php
|
||||
$this->headTitle($this->config->title->site);
|
||||
$this->headTitle($this->config->title->data);
|
||||
$this->headTitle()->setSeparator(' - ');
|
||||
$this->headLink()->appendStylesheet('/css/water.css');
|
||||
$this->breadcrumb('<a href="/">首页</a>');
|
||||
$this->breadcrumb('<a href="/data">'.$this->config->title->data.'</a>');
|
||||
$this->breadcrumb('<a href="/glacier/">'.$this->config->title->glacier.'</a>');
|
||||
$this->breadcrumb('雷达测厚数据');
|
||||
$this->breadcrumb()->setSeparator(' > ');
|
||||
?>
|
||||
<div class="row">
|
||||
<div class="span3">
|
||||
<?= $this->partial('glacier/navi.phtml'); ?>
|
||||
</div>
|
||||
<div class="span9">
|
||||
<div id="intro">
|
||||
<p>
|
||||
利用冰川测厚雷达获得的反应冰川厚度和冰下地形的野外测量数据,可为冰川厚度分布图和冰下地形图等提供重要的基础资料。同时,利用这些测量资料可以估算冰川的冰储量,为冰川变化响应气候变化提供定量科学依据,而且可以为各种水文模型提供重要的冰下地形参数。
|
||||
</p>
|
||||
<img src="/images/glacier/lidar.png" />
|
||||
</div>
|
||||
<hr />
|
||||
<?php if ($this->metadata) : ?>
|
||||
<?php echo $this->page->getNavigation(); ?>
|
||||
<div id="mdlist">
|
||||
<ol start="<?php echo $this->offset; ?>">
|
||||
<?php foreach($this->metadata as $md) : ?>
|
||||
<li><a href="/glacier/view/uuid/<?php echo $md['uuid']; ?>"><?php echo $md['title']; ?></a></li>
|
||||
<?php endforeach; ?>
|
||||
</ol>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
|
@ -1,35 +0,0 @@
|
|||
<?php
|
||||
$this->headTitle($this->config->title->site);
|
||||
$this->headTitle($this->config->title->data);
|
||||
$this->headTitle()->setSeparator(' - ');
|
||||
$this->headLink()->appendStylesheet('/css/water.css');
|
||||
$this->breadcrumb('<a href="/">首页</a>');
|
||||
$this->breadcrumb('<a href="/data">'.$this->config->title->data.'</a>');
|
||||
$this->breadcrumb('<a href="/glacier/">'.$this->config->title->glacier.'</a>');
|
||||
$this->breadcrumb('物质平衡观测数据');
|
||||
$this->breadcrumb()->setSeparator(' > ');
|
||||
?>
|
||||
<div class="row">
|
||||
<div class="span3">
|
||||
<?= $this->partial('glacier/navi.phtml'); ?>
|
||||
</div>
|
||||
<div class="span9">
|
||||
<div id="intro">
|
||||
<p>
|
||||
冰川在一定时间内的物质变化即积累与消融之差。积累大于消融为正平衡,消融大于积累为负平衡。冰川物质平衡野外观测一般包括利用雪坑剖面观测冰川积累量和花杆观测冰川消融量。
|
||||
</p>
|
||||
<img src="/images/glacier/material.png" />
|
||||
</div>
|
||||
<hr />
|
||||
<?php if ($this->metadata) : ?>
|
||||
<?php echo $this->page->getNavigation(); ?>
|
||||
<div id="mdlist">
|
||||
<ol start="<?php echo $this->offset; ?>">
|
||||
<?php foreach($this->metadata as $md) : ?>
|
||||
<li><a href="/glacier/view/uuid/<?php echo $md['uuid']; ?>"><?php echo $md['title']; ?></a></li>
|
||||
<?php endforeach; ?>
|
||||
</ol>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
|
@ -1,33 +0,0 @@
|
|||
<?php
|
||||
$this->headTitle($this->config->title->site);
|
||||
$this->headTitle($this->config->title->data);
|
||||
$this->headTitle()->setSeparator(' - ');
|
||||
$this->headLink()->appendStylesheet('/css/water.css');
|
||||
$this->breadcrumb('<a href="/">首页</a>');
|
||||
$this->breadcrumb('<a href="/data">'.$this->config->title->data.'</a>');
|
||||
$this->breadcrumb('<a href="/glacier/">'.$this->config->title->glacier.'</a>');
|
||||
$this->breadcrumb('气象数据');
|
||||
$this->breadcrumb()->setSeparator(' > ');
|
||||
?>
|
||||
<div class="row">
|
||||
<div class="span3">
|
||||
<?= $this->partial('glacier/navi.phtml'); ?>
|
||||
</div>
|
||||
<div class="span9">
|
||||
<div id="intro">
|
||||
<p>在冰川区观测的气象数据,观测要素包括温度、风速、风向、降水等。受观测条件的限制,观测要素和观测时段不能保持完全一致。</p>
|
||||
<img src="/images/glacier/metro.png" />
|
||||
</div>
|
||||
<hr />
|
||||
<?php if ($this->metadata) : ?>
|
||||
<?php echo $this->page->getNavigation(); ?>
|
||||
<div id="mdlist">
|
||||
<ol start="<?php echo $this->offset; ?>">
|
||||
<?php foreach($this->metadata as $md) : ?>
|
||||
<li><a href="/glacier/view/uuid/<?php echo $md['uuid']; ?>"><?php echo $md['title']; ?></a></li>
|
||||
<?php endforeach; ?>
|
||||
</ol>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
|
@ -1,33 +0,0 @@
|
|||
<?php
|
||||
$this->headTitle($this->config->title->site);
|
||||
$this->headTitle($this->config->title->data);
|
||||
$this->headTitle()->setSeparator(' - ');
|
||||
$this->headLink()->appendStylesheet('/css/water.css');
|
||||
$this->breadcrumb('<a href="/">首页</a>');
|
||||
$this->breadcrumb('<a href="/data">'.$this->config->title->data.'</a>');
|
||||
$this->breadcrumb('<a href="/glacier/">'.$this->config->title->glacier.'</a>');
|
||||
$this->breadcrumb('冰川运动数据');
|
||||
$this->breadcrumb()->setSeparator(' > ');
|
||||
?>
|
||||
<div class="row">
|
||||
<div class="span3">
|
||||
<?= $this->partial('glacier/navi.phtml'); ?>
|
||||
</div>
|
||||
<div class="span9">
|
||||
<div id="intro">
|
||||
<p>冰川运动观测一般分为冰川表面运动观测和冰川内部运动观测。前者一般采用GPS和花杆等测量方法,后者一般采用挖坑法、冰隧道法和钻孔法。
|
||||
</p>
|
||||
</div>
|
||||
<hr />
|
||||
<?php if ($this->metadata) : ?>
|
||||
<?php echo $this->page->getNavigation(); ?>
|
||||
<div id="mdlist">
|
||||
<ol start="<?php echo $this->offset; ?>">
|
||||
<?php foreach($this->metadata as $md) : ?>
|
||||
<li><a href="/glacier/view/uuid/<?php echo $md['uuid']; ?>"><?php echo $md['title']; ?></a></li>
|
||||
<?php endforeach; ?>
|
||||
</ol>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
|
@ -1,33 +0,0 @@
|
|||
<?php
|
||||
$this->headTitle($this->config->title->site);
|
||||
$this->headTitle($this->config->title->data);
|
||||
$this->headTitle()->setSeparator(' - ');
|
||||
$this->headLink()->appendStylesheet('/css/water.css');
|
||||
$this->breadcrumb('<a href="/">首页</a>');
|
||||
$this->breadcrumb('<a href="/data">'.$this->config->title->data.'</a>');
|
||||
$this->breadcrumb('<a href="/glacier/">'.$this->config->title->glacier.'</a>');
|
||||
$this->breadcrumb('纳木错流域');
|
||||
$this->breadcrumb()->setSeparator(' > ');
|
||||
?>
|
||||
|
||||
<div id='sidebar'>
|
||||
<div id='leftnavi'>
|
||||
<?= $this->partial('glacier/navi.phtml'); ?>
|
||||
</div>
|
||||
</div>
|
||||
<div id='right'>
|
||||
<div> </div>
|
||||
<div id="intro">
|
||||
</div>
|
||||
<hr />
|
||||
<?php if ($this->metadata) : ?>
|
||||
<?php echo $this->page->getNavigation(); ?>
|
||||
<div id="mdlist">
|
||||
<ol start="<?php echo $this->offset; ?>">
|
||||
<?php foreach($this->metadata as $md) : ?>
|
||||
<li><a href="/glacier/view/uuid/<?php echo $md['uuid']; ?>"><?php echo $md['title']; ?></a></li>
|
||||
<?php endforeach; ?>
|
||||
</ol>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
|
@ -70,13 +70,6 @@
|
|||
</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="accordion-group heihe-accordion-title">
|
||||
<div class="accordion-heading" id="Nav-glacier-category">
|
||||
<a class="accordion-toggle" href="/glacier/category">
|
||||
ISO19115分类
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="accordion-group heihe-accordion-title">
|
||||
<div class="accordion-heading" id="Nav-glacier-thumb">
|
||||
<a class="accordion-toggle" href="/glacier/thumb">
|
||||
|
@ -108,10 +101,8 @@
|
|||
</div>
|
||||
<!--<li><a href="/glacier/document">项目文档</a></li>-->
|
||||
<!--<li><a href="/glacier/list">数据列表</a></li>-->
|
||||
<!-- <li>WebGIS地图浏览</li>
|
||||
<li>数据使用协议</li> -->
|
||||
<form id="search" enctype="application/x-www-form-urlencoded" action="/glacier/search" method="post">
|
||||
<input type="text" name="q" id="q" value="<?php echo (empty($this->key))?'回车搜索标题和摘要':$this->key; ?>" onfocus="myfocus(this);" onblur="myblur(this);">
|
||||
<input type="text" name="q" id="q" value="<?php echo (empty($this->key))?'回车搜索标题和摘要':$this->key; ?>" onfocus="myfocus(this);" onblur="myblur(this);" style="width:100%;">
|
||||
<input type="hidden" name="submit" value="submit">
|
||||
</form>
|
||||
<script>
|
||||
|
|
|
@ -1,33 +0,0 @@
|
|||
<?php
|
||||
$this->headTitle($this->config->title->site);
|
||||
$this->headTitle($this->config->title->data);
|
||||
$this->headTitle()->setSeparator(' - ');
|
||||
$this->headLink()->appendStylesheet('/css/water.css');
|
||||
$this->breadcrumb('<a href="/">首页</a>');
|
||||
$this->breadcrumb('<a href="/data">'.$this->config->title->data.'</a>');
|
||||
$this->breadcrumb('<a href="/glacier/">'.$this->config->title->glacier.'</a>');
|
||||
$this->breadcrumb('年楚河流域');
|
||||
$this->breadcrumb()->setSeparator(' > ');
|
||||
?>
|
||||
|
||||
<div id='sidebar'>
|
||||
<div id='leftnavi'>
|
||||
<?= $this->partial('glacier/navi.phtml'); ?>
|
||||
</div>
|
||||
</div>
|
||||
<div id='right'>
|
||||
<div> </div>
|
||||
<div id="intro">
|
||||
</div>
|
||||
<hr />
|
||||
<?php if ($this->metadata) : ?>
|
||||
<?php echo $this->page->getNavigation(); ?>
|
||||
<div id="mdlist">
|
||||
<ol start="<?php echo $this->offset; ?>">
|
||||
<?php foreach($this->metadata as $md) : ?>
|
||||
<li><a href="/glacier/view/uuid/<?php echo $md['uuid']; ?>"><?php echo $md['title']; ?></a></li>
|
||||
<?php endforeach; ?>
|
||||
</ol>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
|
@ -1,33 +0,0 @@
|
|||
<?php
|
||||
$this->headTitle($this->config->title->site);
|
||||
$this->headTitle($this->config->title->data);
|
||||
$this->headTitle()->setSeparator(' - ');
|
||||
$this->headLink()->appendStylesheet('/css/water.css');
|
||||
$this->breadcrumb('<a href="/">首页</a>');
|
||||
$this->breadcrumb('<a href="/data">'.$this->config->title->data.'</a>');
|
||||
$this->breadcrumb('<a href="/glacier/">'.$this->config->title->glacier.'</a>');
|
||||
$this->breadcrumb('近景摄影测量数据');
|
||||
$this->breadcrumb()->setSeparator(' > ');
|
||||
?>
|
||||
<div class="row">
|
||||
<div class="span3">
|
||||
<?= $this->partial('glacier/navi.phtml'); ?>
|
||||
</div>
|
||||
<div class="span9">
|
||||
<div id="intro">
|
||||
<p>利用相机拍摄的冰川近景相片,可对冰川遥感解译进行验证,也与历史照片比较用于冰川变化研究。
|
||||
</p>
|
||||
</div>
|
||||
<hr />
|
||||
<?php if ($this->metadata) : ?>
|
||||
<?php echo $this->page->getNavigation(); ?>
|
||||
<div id="mdlist">
|
||||
<ol start="<?php echo $this->offset; ?>">
|
||||
<?php foreach($this->metadata as $md) : ?>
|
||||
<li><a href="/glacier/view/uuid/<?php echo $md['uuid']; ?>"><?php echo $md['title']; ?></a></li>
|
||||
<?php endforeach; ?>
|
||||
</ol>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
|
@ -1,33 +0,0 @@
|
|||
<?php
|
||||
$this->headTitle($this->config->title->site);
|
||||
$this->headTitle($this->config->title->data);
|
||||
$this->headTitle()->setSeparator(' - ');
|
||||
$this->headLink()->appendStylesheet('/css/water.css');
|
||||
$this->breadcrumb('<a href="/">首页</a>');
|
||||
$this->breadcrumb('<a href="/data">'.$this->config->title->data.'</a>');
|
||||
$this->breadcrumb('<a href="/glacier/">'.$this->config->title->glacier.'</a>');
|
||||
$this->breadcrumb('冰雪物理过程数据');
|
||||
$this->breadcrumb()->setSeparator(' > ');
|
||||
?>
|
||||
<div class="row">
|
||||
<div class="span3">
|
||||
<?= $this->partial('glacier/navi.phtml'); ?>
|
||||
</div>
|
||||
<div class="span9">
|
||||
<div id="intro">
|
||||
<p>包括冰雪物理过程和冰温等观测数据。
|
||||
</p>
|
||||
</div>
|
||||
<hr />
|
||||
<?php if ($this->metadata) : ?>
|
||||
<?php echo $this->page->getNavigation(); ?>
|
||||
<div id="mdlist">
|
||||
<ol start="<?php echo $this->offset; ?>">
|
||||
<?php foreach($this->metadata as $md) : ?>
|
||||
<li><a href="/glacier/view/uuid/<?php echo $md['uuid']; ?>"><?php echo $md['title']; ?></a></li>
|
||||
<?php endforeach; ?>
|
||||
</ol>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
|
@ -1,33 +0,0 @@
|
|||
<?php
|
||||
$this->headTitle($this->config->title->site);
|
||||
$this->headTitle($this->config->title->data);
|
||||
$this->headTitle()->setSeparator(' - ');
|
||||
$this->headLink()->appendStylesheet('/css/water.css');
|
||||
$this->breadcrumb('<a href="/">首页</a>');
|
||||
$this->breadcrumb('<a href="/data">'.$this->config->title->data.'</a>');
|
||||
$this->breadcrumb('<a href="/glacier/">'.$this->config->title->glacier.'</a>');
|
||||
$this->breadcrumb('祁连山');
|
||||
$this->breadcrumb()->setSeparator(' > ');
|
||||
?>
|
||||
|
||||
<div id='sidebar'>
|
||||
<div id='leftnavi'>
|
||||
<?= $this->partial('glacier/navi.phtml'); ?>
|
||||
</div>
|
||||
</div>
|
||||
<div id='right'>
|
||||
<div> </div>
|
||||
<div id="intro">
|
||||
</div>
|
||||
<hr />
|
||||
<?php if ($this->metadata) : ?>
|
||||
<?php echo $this->page->getNavigation(); ?>
|
||||
<div id="mdlist">
|
||||
<ol start="<?php echo $this->offset; ?>">
|
||||
<?php foreach($this->metadata as $md) : ?>
|
||||
<li><a href="/glacier/view/uuid/<?php echo $md['uuid']; ?>"><?php echo $md['title']; ?></a></li>
|
||||
<?php endforeach; ?>
|
||||
</ol>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
|
@ -1,33 +0,0 @@
|
|||
<?php
|
||||
$this->headTitle($this->config->title->site);
|
||||
$this->headTitle($this->config->title->data);
|
||||
$this->headTitle()->setSeparator(' - ');
|
||||
$this->headLink()->appendStylesheet('/css/water.css');
|
||||
$this->breadcrumb('<a href="/">首页</a>');
|
||||
$this->breadcrumb('<a href="/data">'.$this->config->title->data.'</a>');
|
||||
$this->breadcrumb('<a href="/glacier/">'.$this->config->title->glacier.'</a>');
|
||||
$this->breadcrumb('第四纪数据');
|
||||
$this->breadcrumb()->setSeparator(' > ');
|
||||
?>
|
||||
<div class="row">
|
||||
<div class="span3">
|
||||
<?= $this->partial('glacier/navi.phtml'); ?>
|
||||
</div>
|
||||
<div class="span9">
|
||||
<div id="intro">
|
||||
<p>冰川区附件开展的第四纪调查,包括地貌描述,土壤年代等,可以获取冰川的第四纪相关信息,并可结合其他相关获得冰川的状态与变化信息
|
||||
</p>
|
||||
</div>
|
||||
<hr />
|
||||
<?php if ($this->metadata) : ?>
|
||||
<?php echo $this->page->getNavigation(); ?>
|
||||
<div id="mdlist">
|
||||
<ol start="<?php echo $this->offset; ?>">
|
||||
<?php foreach($this->metadata as $md) : ?>
|
||||
<li><a href="/glacier/view/uuid/<?php echo $md['uuid']; ?>"><?php echo $md['title']; ?></a></li>
|
||||
<?php endforeach; ?>
|
||||
</ol>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
|
@ -1,33 +0,0 @@
|
|||
<?php
|
||||
$this->headTitle($this->config->title->site);
|
||||
$this->headTitle($this->config->title->data);
|
||||
$this->headTitle()->setSeparator(' - ');
|
||||
$this->headLink()->appendStylesheet('/css/water.css');
|
||||
$this->breadcrumb('<a href="/">首页</a>');
|
||||
$this->breadcrumb('<a href="/data">'.$this->config->title->data.'</a>');
|
||||
$this->breadcrumb('<a href="/glacier/">'.$this->config->title->glacier.'</a>');
|
||||
$this->breadcrumb('遥感影像');
|
||||
$this->breadcrumb()->setSeparator(' > ');
|
||||
?>
|
||||
<div class="row">
|
||||
<div class="span3">
|
||||
<?= $this->partial('glacier/navi.phtml'); ?>
|
||||
</div>
|
||||
<div class="span9">
|
||||
<div id="intro">
|
||||
<img src="/images/glacier/landsat.png" class="pull-right" />
|
||||
系统收集了可用于冰川编目的各种遥感数据,包括Landsat TM/ETM+、ASTER、SPOT、ALOS,其中Landsat TM/ETM+基本覆盖全部冰川区,其他遥感数据仅覆盖部分冰川区。
|
||||
</div>
|
||||
<hr />
|
||||
<?php if ($this->metadata) : ?>
|
||||
<?php echo $this->page->getNavigation(); ?>
|
||||
<div id="mdlist">
|
||||
<ol start="<?php echo $this->offset; ?>">
|
||||
<?php foreach($this->metadata as $md) : ?>
|
||||
<li><a href="/glacier/view/uuid/<?php echo $md['uuid']; ?>"><?php echo $md['title']; ?></a></li>
|
||||
<?php endforeach; ?>
|
||||
</ol>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
|
@ -11,13 +11,15 @@ $this->breadcrumb('<a href="/data">'.$this->config->title->data.'</a>');
|
|||
$this->breadcrumb('<a href="/glacier/">'.$this->config->title->glacier.'</a>');
|
||||
$this->breadcrumb('快速搜索');
|
||||
$this->breadcrumb()->setSeparator(' > ');
|
||||
$this->nav[] = array('link'=>"/glacier/",'title'=>$this->config->title->glacier);
|
||||
$this->nav[] = array('link'=>"",'title'=>'快速搜索');
|
||||
?>
|
||||
<?= $this->render('breadcrumbs.phtml'); ?>
|
||||
<div class='row'>
|
||||
<div class='span3'>
|
||||
<div class='span2'>
|
||||
<?= $this->partial('glacier/navi.phtml',array('key'=>$this->key)); ?>
|
||||
</div>
|
||||
<div class='span9'>
|
||||
<div><?= $this->breadcrumb() ?> </div>
|
||||
<div class='span10'>
|
||||
<?php if (!empty($this->metadata)) : ?>
|
||||
<?php echo $this->page->getNavigation(); ?>
|
||||
<hr />
|
||||
|
|
|
@ -4,23 +4,21 @@ $this->headTitle($this->config->title->data);
|
|||
if (!empty($this->codename)) $this->headTitle($this->codename);
|
||||
$this->headTitle()->setSeparator(' - ');
|
||||
$this->headLink()->appendStylesheet('/css/water.css');
|
||||
$this->breadcrumb('<a href="/">首页</a>');
|
||||
$this->breadcrumb('<a href="/data">'.$this->config->title->data.'</a>');
|
||||
$this->breadcrumb('<a href="/glacier/">'.$this->config->title->glacier.'</a>');
|
||||
$this->breadcrumb('关键词导航'.(($this->codename)?':'.$this->codename:''));
|
||||
$this->breadcrumb()->setSeparator(' > ');
|
||||
$this->nav[] = array('link'=>"/glacier/",'title'=>$this->config->title->glacier);
|
||||
$this->nav[] = array('link'=>"/glacier/tag",'title'=>'关键词浏览');
|
||||
?>
|
||||
<?= $this->render('breadcrumbs.phtml'); ?>
|
||||
<div class="row">
|
||||
<div class="span3">
|
||||
<div class="span2">
|
||||
<?= $this->partial('glacier/navi.phtml'); ?>
|
||||
</div>
|
||||
<div class="span9">
|
||||
<div class="span10">
|
||||
<?php if (!empty($this->metadata)) : ?>
|
||||
<div id='mdlist'>
|
||||
<h1>关键词:<?php echo $this->codename; ?> 【<a href="/glacier/tag/">全部关键词</a>】</h1>
|
||||
<h1>关键词:<?php echo $this->codename; ?> 【<a href="/heihe/tag/">全部关键词</a>】</h1>
|
||||
<?php echo $this->page->getNavigation(); ?>
|
||||
<hr />
|
||||
<div id="mdlist">
|
||||
<div class="md-list">
|
||||
<ol start="<?php echo $this->offset; ?>">
|
||||
<?php foreach($this->metadata as $md) : ?>
|
||||
<li><a href="/glacier/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>
|
||||
|
@ -32,22 +30,27 @@ $this->breadcrumb()->setSeparator(' > ');
|
|||
</div>
|
||||
<?php else : ?>
|
||||
|
||||
<div id='links'>
|
||||
<div>
|
||||
<?php
|
||||
$keytypezh=array('place'=>'地点关键词','theme'=>'主题关键词','discipline'=>'学科关键词','stratum'=>'地层关键词','temporal'=>'时间关键词');
|
||||
foreach($this->keywords as $type=>$kcg) :
|
||||
if (is_array($kcg) && count($kcg)>0 ) :
|
||||
?>
|
||||
<fieldset><legend><?php echo $keytypezh[$type]; ?></legend>
|
||||
<ul>
|
||||
<?php foreach($kcg as $cg) : ?>
|
||||
<li><a href='/glacier/tag/key/<?php echo urlencode($cg['keyword']); ?>'><?php echo $cg['keyword']; ?></a><span class="note">(<?php echo $cg['count']; ?>)</span></li>
|
||||
<?php endforeach; ?>
|
||||
|
||||
$type='';
|
||||
foreach($this->keywords as $cg) :
|
||||
if ($type!=$cg['keytype']) :
|
||||
if ($type!='') : ?>
|
||||
</ul>
|
||||
</fieldset>
|
||||
<?php endif;endforeach; ?>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif;
|
||||
$type=$cg['keytype'];
|
||||
?>
|
||||
<h4><a href="/glacier/tag/keytype/<?php echo $type; ?>"><?php echo $keytypezh[$type]; ?></a>
|
||||
<?php if ($this->keytype) : ?><a class="pull-right" href="/heihe/tag"><i class="icon-tags"></i>全部关键词</a> <?php endif; ?></h4>
|
||||
<ul class="inline">
|
||||
<li><a href='/glacier/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 : ?>
|
||||
<li><a href='/glacier/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 endforeach; ?>
|
||||
</ul>
|
||||
</fieldset></div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
|
@ -1,40 +1,51 @@
|
|||
<?php
|
||||
$this->headTitle($this->config->title->site);
|
||||
$this->headTitle($this->config->title->data);
|
||||
$this->headTitle('全部浏览');
|
||||
$this->headTitle('缩略图浏览');
|
||||
$this->headTitle()->setSeparator(' - ');
|
||||
$this->headLink()->appendStylesheet('/css/water.css');
|
||||
$this->breadcrumb('<a href="/">首页</a>');
|
||||
$this->breadcrumb('<a href="/data">'.$this->config->title->data.'</a>');
|
||||
$this->breadcrumb('<a href="/glacier/">'.$this->config->title->glacier.'</a>');
|
||||
$this->breadcrumb('缩略图浏览');
|
||||
$this->breadcrumb()->setSeparator(' > ');
|
||||
$this->theme->AppendPlus($this,'colorbox');
|
||||
$this->theme->AppendPlus($this,'masonry');
|
||||
$this->nav[] = array('link'=>"/glacier/",'title'=>$this->config->title->glacier);
|
||||
$this->nav[] = array('link'=>"/glacier/thumb",'title'=>'缩略图浏览');
|
||||
?>
|
||||
<?= $this->render('breadcrumbs.phtml') ?>
|
||||
<div class="row">
|
||||
<div class="span3">
|
||||
<div class="span2">
|
||||
<?= $this->partial('glacier/navi.phtml'); ?>
|
||||
</div>
|
||||
<div class="span9">
|
||||
<div class="span10">
|
||||
<?php echo $this->page->getNavigation(); ?>
|
||||
<hr />
|
||||
<div id="mdlist">
|
||||
<div>
|
||||
<ul class="thumb water-thumb unstyled" id="container">
|
||||
<?php foreach($this->metadata as $md) : ?>
|
||||
<div class="thumb">
|
||||
|
||||
<div class="thumbtitle">
|
||||
<a href="/glacier/view/uuid/<?php echo $md['uuid'];?>"><?php echo $this->escape($md['title']); ?> </a>
|
||||
</div>
|
||||
<a class="colorbox" href="/service/bigthumb/id/<?php echo $md['id'];?>" title="<?php echo $this->escape($md['title']); ?>">
|
||||
<img src="/service/thumb/id/<?php echo $md['id'];?>" alt="<?php echo $this->escape($md['title']);?>" title="<?php echo mb_strlen($md['description'])>400?$this->escape(mb_substr($md['description'],0,400,'UTF-8').'...'):$this->escape($md['description']);?>" />
|
||||
<li class="items">
|
||||
<h4><a href="/glacier/view/uuid/<?php echo $md['uuid'];?>"><?= $this->escape($md['title']);?></a></h4>
|
||||
<a href="/service/bigthumb/uuid/<?= $md['uuid'] ?>" class="thumbnail colorbox">
|
||||
<img src="/service/thumb/id/<?php echo $md['id'];?>" alt="">
|
||||
</a>
|
||||
<div class="caption">
|
||||
<p>
|
||||
<?php echo mb_strlen($md['description'])>120?$this->escape(mb_substr($md['description'],0,120,'UTF-8').'...'):$this->escape($md['description']);?>
|
||||
</p>
|
||||
</div>
|
||||
<span class="pull-right"><a href="/data/<?php echo $md['uuid'];?>" class="btn"><i class="icon-zoom-in"></i>查看</a></span>
|
||||
</li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
</div>
|
||||
<hr style="clear:left;"/>
|
||||
<hr class="clearfix" />
|
||||
<?php echo $this->page->getNavigation(); ?>
|
||||
</div>
|
||||
</div>
|
||||
<script type="text/javascript" charset="utf-8">
|
||||
$(document).ready(function(){$(".colorbox").colorbox({rel:"colorbox",photo:"true",transition:"fade"});});
|
||||
$(document).ready(function(){
|
||||
$(".colorbox").colorbox({rel:"colorbox",photo:"true",transition:"fade"});
|
||||
$(".colorbox").colorbox({photo:"true"});
|
||||
});
|
||||
$('#container').masonry({
|
||||
itemSelector : '.items',
|
||||
});
|
||||
</script>
|
|
@ -1,33 +0,0 @@
|
|||
<?php
|
||||
$this->headTitle($this->config->title->site);
|
||||
$this->headTitle($this->config->title->data);
|
||||
$this->headTitle()->setSeparator(' - ');
|
||||
$this->headLink()->appendStylesheet('/css/water.css');
|
||||
$this->breadcrumb('<a href="/">首页</a>');
|
||||
$this->breadcrumb('<a href="/data">'.$this->config->title->data.'</a>');
|
||||
$this->breadcrumb('<a href="/glacier/">'.$this->config->title->glacier.'</a>');
|
||||
$this->breadcrumb('天山');
|
||||
$this->breadcrumb()->setSeparator(' > ');
|
||||
?>
|
||||
|
||||
<div id='sidebar'>
|
||||
<div id='leftnavi'>
|
||||
<?= $this->partial('glacier/navi.phtml'); ?>
|
||||
</div>
|
||||
</div>
|
||||
<div id='right'>
|
||||
<div> </div>
|
||||
<div id="intro">
|
||||
</div>
|
||||
<hr />
|
||||
<?php if ($this->metadata) : ?>
|
||||
<?php echo $this->page->getNavigation(); ?>
|
||||
<div id="mdlist">
|
||||
<ol start="<?php echo $this->offset; ?>">
|
||||
<?php foreach($this->metadata as $md) : ?>
|
||||
<li><a href="/glacier/view/uuid/<?php echo $md['uuid']; ?>"><?php echo $md['title']; ?></a></li>
|
||||
<?php endforeach; ?>
|
||||
</ol>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
|
@ -12,12 +12,14 @@ $this->breadcrumb()->setSeparator(' > ');
|
|||
$this->headScript()->appendFile('/js/timeline_var.js');
|
||||
$this->headScript()->appendFile('/js/timeline_js/timeline-api.js');
|
||||
$this->headScript()->appendFile('/js/glaciertime.js');
|
||||
$this->nav[] = array('link'=>"/glacier/",'title'=>$this->config->title->glacier);
|
||||
$this->nav[] = array('link'=>"/glacier/timeline",'title'=>'时间轴导航');
|
||||
?>
|
||||
<div class="row">
|
||||
<div class="span3">
|
||||
<div class="span2">
|
||||
<?= $this->partial('glacier/navi.phtml'); ?>
|
||||
</div>
|
||||
<div class="span9">
|
||||
<div class="span10">
|
||||
<div id="tl" class="timeline-default" style="height:600px;"> </div>
|
||||
</div>
|
||||
</div>
|
|
@ -15,15 +15,17 @@ $this->headScript()->appendFile('/js/timeline_var.js');
|
|||
$this->headScript()->appendFile('/js/timeline_js/timeline-api.js');
|
||||
$this->headScript()->appendFile('/js/timemap.2.0.1/lib/mxn/mxn.js?(googlev3)');
|
||||
$this->headScript()->appendFile('/js/timemap.2.0.1/timemap.pack.js');
|
||||
$this->nav[] = array('link'=>"/glacier/",'title'=>$this->config->title->glacier);
|
||||
$this->nav[] = array('link'=>"/glaicer/timemap",'title'=>'时空导航');
|
||||
?>
|
||||
<style>
|
||||
img{max-width:none}
|
||||
</style>
|
||||
<div class="row">
|
||||
<div class="span3">
|
||||
<div class="span2">
|
||||
<?= $this->partial('glacier/navi.phtml'); ?>
|
||||
</div>
|
||||
<div class="span9">
|
||||
<div class="span10">
|
||||
<div><?= $this->breadcrumb() ?> </div>
|
||||
<div id="timemap">
|
||||
<div id="map" style="height:500px;width:40%;float:right;"></div>
|
||||
|
|
|
@ -1,33 +0,0 @@
|
|||
<?php
|
||||
$this->headTitle($this->config->title->site);
|
||||
$this->headTitle($this->config->title->data);
|
||||
$this->headTitle()->setSeparator(' - ');
|
||||
$this->headLink()->appendStylesheet('/css/water.css');
|
||||
$this->breadcrumb('<a href="/">首页</a>');
|
||||
$this->breadcrumb('<a href="/data">'.$this->config->title->data.'</a>');
|
||||
$this->breadcrumb('<a href="/glacier/">'.$this->config->title->glacier.'</a>');
|
||||
$this->breadcrumb('植被数据');
|
||||
$this->breadcrumb()->setSeparator(' > ');
|
||||
?>
|
||||
<div class="row">
|
||||
<div class="span3">
|
||||
<?= $this->partial('glacier/navi.phtml'); ?>
|
||||
</div>
|
||||
<div class="span9">
|
||||
<div id="intro">
|
||||
<p>冰川区附近的植被分布情况调查
|
||||
</p>
|
||||
</div>
|
||||
<hr />
|
||||
<?php if ($this->metadata) : ?>
|
||||
<?php echo $this->page->getNavigation(); ?>
|
||||
<div id="mdlist">
|
||||
<ol start="<?php echo $this->offset; ?>">
|
||||
<?php foreach($this->metadata as $md) : ?>
|
||||
<li><a href="/glacier/view/uuid/<?php echo $md['uuid']; ?>"><?php echo $md['title']; ?></a></li>
|
||||
<?php endforeach; ?>
|
||||
</ol>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
|
@ -4,25 +4,27 @@
|
|||
$this->headTitle($this->metadata->title);
|
||||
$this->headTitle()->setSeparator(' - ');
|
||||
$this->headLink()->appendStylesheet('/css/water.css');
|
||||
$this->breadcrumb('<a href="/">首页</a>');
|
||||
$this->breadcrumb('<a href="/data">'.$this->config->title->data.'</a>');
|
||||
$this->breadcrumb('<a href="/glacier/">'.$this->config->title->glacier.'</a>');
|
||||
$this->breadcrumb('查看元数据');
|
||||
$this->breadcrumb()->setSeparator(' > ');
|
||||
$this->headLink()->appendStylesheet('/css/water.css');
|
||||
$this->theme->AppendPlus($this,'google_map_v3');
|
||||
$this->theme->AppendPlus($this,'colorbox');
|
||||
if(!empty($this->dataService)) {
|
||||
$this->theme->AppendModel($this,"dataservice");
|
||||
}
|
||||
$this->nav[] = array('link'=>"/glacier/",'title'=>$this->config->title->glacier);
|
||||
$this->nav[] = array('link'=>"",'title'=>'查看元数据');
|
||||
?>
|
||||
<style>
|
||||
h3.gs_rt{font-size:110%;}
|
||||
#file-list li:hover {background-color: #f5f5f5;}
|
||||
#file-list li li:hover {background-color: #dedede;}
|
||||
#file-list li li li:hover {background-color: #eeeeee;}
|
||||
</style>
|
||||
<?= $this->render('breadcrumbs.phtml'); ?>
|
||||
<?php $md=$this->metadata;if ($md):?>
|
||||
<div class="row">
|
||||
<div class="span3">
|
||||
<div class="span2">
|
||||
<?= $this->partial('glacier/navi.phtml'); ?>
|
||||
</div>
|
||||
<div class="span9">
|
||||
<div><?= $this->breadcrumb() ?> </div>
|
||||
<div class="span10">
|
||||
<h3><?php echo $this->escape($md->title);
|
||||
if ($md->title_en) echo '<br />'.$this->escape($md->title_en);?>
|
||||
</h3>
|
||||
|
@ -37,21 +39,11 @@ if ($md->title_en) echo '<br />'.$this->escape($md->title_en);?>
|
|||
</p>
|
||||
</div>
|
||||
<div>
|
||||
<?php if ($md->citation) : ?>
|
||||
<?php if ($this->mcitation) : ?>
|
||||
<hr />
|
||||
<h4><i class="icon-quote-left muted"></i>本数据引用方式<a class="btn btn-danger pull-right" href="/archives/help/dataplatformhelp/archive-23.html" ><i class="icon-comment"></i>数据引用帮助</a></h4>
|
||||
<p><?php if (empty($md->datadoi) || !strpos($md->citation,$md->datadoi)) : ?><span class="label label-info">文章的引用</span>
|
||||
<?php endif; echo $this->escape($md->citation);?></p>
|
||||
<?php if (!empty($md->datadoi) && !strpos($md->citation,$md->datadoi)) : ?>
|
||||
<p><span class="label label-info">数据的引用</span><?php
|
||||
echo substr($md->authors,1,-1).'. '.$md->title.'. '.$md->publisher.', '.$md->publish_year.'. doi:'.$md->doi;
|
||||
echo ' ['.substr($md->author_en,1,-1).'. '.$md->title_en.'. '.$md->publisher_en.', '.$md->publish_year.'. doi:'.$md->doi.']';
|
||||
?> (下载引用:<a href="/service/ris/lang/cn/uuid/<?php echo $md->uuid; ?>">RIS格式</a> | <a href="/service/ris/lang/en/uuid/<?php echo $md->uuid; ?>">RIS英文格式</a> | <a href="/service/bibtex/lang/cn/uuid/<?php echo $md->uuid; ?>">Bibtex格式</a> | <a href="/service/bibtex/lang/en/uuid/<?php echo $md->uuid; ?>">Bibtex英文格式</a>)</p>
|
||||
<?php endif; endif; if ($this->ref) : ?>
|
||||
<hr />
|
||||
<h4><i class="icon-eye-open text-success"></i>建议参考文献</h4>
|
||||
<h4><i class="icon-eye-open text-success"></i>本数据要求的多篇文献引用</h4>
|
||||
<ol>
|
||||
<?php foreach($this->ref as $ref) :
|
||||
<?php foreach($this->mcitation as $ref) :
|
||||
if (empty($ref->link))
|
||||
echo '<li>'.$ref->reference.'</li>';
|
||||
else
|
||||
|
@ -59,17 +51,78 @@ if ($md->title_en) echo '<br />'.$this->escape($md->title_en);?>
|
|||
endforeach;
|
||||
?>
|
||||
</ol>
|
||||
<?php endif; ?>
|
||||
<?php if ($this->userref) : ?>
|
||||
<?php else: ?>
|
||||
|
||||
<?php if ($md->citation) : ?>
|
||||
<hr />
|
||||
<h4>数据用户发表文献</h4>
|
||||
<h4><i class="icon-quote-left muted"></i>本数据引用方式<a class="btn btn-danger pull-right" href="/archives/help/platform/archive-23.html" ><i class="icon-comment"></i>数据引用帮助</a></h4>
|
||||
<p><?php if (empty($md->datadoi) || !strpos($md->citation,$md->datadoi)) : ?><span class="label label-info">文章的引用</span>
|
||||
<?php endif; echo $this->escape($md->citation);if (strpos($md->citation,$md->datadoi)) : ?>
|
||||
(下载引用:<a href="/service/ris/lang/cn/uuid/<?php echo $md->uuid; ?>">RIS格式</a> | <a href="/service/ris/lang/en/uuid/<?php echo $md->uuid; ?>">RIS英文格式</a> | <a href="/service/bibtex/lang/cn/uuid/<?php echo $md->uuid; ?>">Bibtex格式</a> | <a href="/service/bibtex/lang/en/uuid/<?php echo $md->uuid; ?>">Bibtex英文格式</a>)
|
||||
<?php endif; ?>
|
||||
</p>
|
||||
<?php if (!empty($md->datadoi) && !strpos($md->citation,$md->datadoi)) : ?>
|
||||
<p><span class="label label-info">数据的引用</span><?php
|
||||
echo substr($md->authors,1,-1).'. '.$md->title.'. '.$md->publisher.', '.(empty($md->ts_published)?$md->publish_year:date('Y',strtotime($md->ts_published))).'. doi:'.$md->doi;
|
||||
echo ' ['.str_replace('"','',substr($md->author_en,1,-1)).'. '.$md->title_en.'. '.$md->publisher_en.', '.(empty($md->ts_published)?$md->publish_year:date('Y',strtotime($md->ts_published))).'. doi:'.$md->doi.']';
|
||||
?> (下载引用:<a href="/service/ris/lang/cn/uuid/<?php echo $md->uuid; ?>">RIS格式</a> | <a href="/service/ris/lang/en/uuid/<?php echo $md->uuid; ?>">RIS英文格式</a> | <a href="/service/bibtex/lang/cn/uuid/<?php echo $md->uuid; ?>">Bibtex格式</a> | <a href="/service/bibtex/lang/en/uuid/<?php echo $md->uuid; ?>">Bibtex英文格式</a>)</p>
|
||||
<?php endif; endif; endif; if ($this->ref) : ?>
|
||||
<hr />
|
||||
<h4><i class="icon-eye-open text-success"></i>相关文献(作者推荐)</h4>
|
||||
<ol>
|
||||
<?php foreach($this->ref as $ref) :
|
||||
echo '<li>'.$ref->reference;
|
||||
echo '<a href="/knowledge/paper/id/'.$ref->id.'"><i class="icon-info-sign text-success"></i>查看</a>';
|
||||
if (empty($ref->link))
|
||||
{
|
||||
if(!empty($ref->attid))
|
||||
echo '<a href="/service/attach/id/'.$ref->attid.'"><i class="icon-download text-success"></i>下载</a>';
|
||||
}else{
|
||||
echo '<a href="'.$ref->link.'"><i class="icon-download text-success"></i>下载</a>';
|
||||
}
|
||||
echo "</li>";
|
||||
endforeach;
|
||||
?>
|
||||
</ol>
|
||||
<?php endif; if ($this->themeref) :?>
|
||||
|
||||
<hr />
|
||||
<h4><i class="icon-eye-open text-success"></i>专题文献</h4>
|
||||
<ol>
|
||||
<?php foreach($this->themeref as $ref) :
|
||||
echo '<li>'.$ref->reference;
|
||||
echo '<a href="/knowledge/paper/id/'.$ref->id.'"><i class="icon-info-sign text-success"></i>查看</a>';
|
||||
if (empty($ref->link))
|
||||
{
|
||||
if(!empty($ref->attid))
|
||||
echo ' | <a href="/service/attach/id/'.$ref->attid.'"><i class="icon-download text-success"></i>下载</a>';
|
||||
}else{
|
||||
echo ' | <a href="'.$ref->link.'"><i class="icon-download text-success"></i>下载</a>';
|
||||
}
|
||||
echo "</li>";
|
||||
endforeach;
|
||||
?>
|
||||
</ol>
|
||||
<?php endif; if ($this->userref) : ?>
|
||||
<hr />
|
||||
<h4><i class="icon-eye-open text-success"></i>数据施引文献</h4>
|
||||
<ol>
|
||||
<?php foreach($this->userref as $ref) :
|
||||
echo '<li>'.$ref->reference;
|
||||
echo '<a href="/knowledge/paper/id/'.$ref->id.'"><i class="icon-info-sign text-success"></i>查看</a>';
|
||||
if (empty($ref->link))
|
||||
echo '<li>'.$ref->reference.'</li>';
|
||||
else
|
||||
echo '<li>'.$ref->reference.' <a href="'.$ref->link.'"><i class="icon-download text-success"></i>下载</a></li>';
|
||||
{
|
||||
if(!empty($ref->attid))
|
||||
echo '<a href="/service/attach/id/'.$ref->attid.'"><i class="icon-download text-success"></i>下载</a>';
|
||||
}else{
|
||||
echo '<a href="'.$ref->link.'"><i class="icon-download text-success"></i>下载</a>';
|
||||
}
|
||||
echo "</li>";
|
||||
endforeach;
|
||||
if (count($this->userref)==15)
|
||||
{
|
||||
echo '<a class="btn btn-success pull-right" href="/knowledge/user/uuid/'.$md->uuid.'" ><i class="icon-info-sign"></i>更多施引文献</a>';
|
||||
}
|
||||
?>
|
||||
</ol>
|
||||
<?php endif; ?>
|
||||
|
@ -83,8 +136,8 @@ if ($md->title_en) echo '<br />'.$this->escape($md->title_en);?>
|
|||
?>
|
||||
<?php else : ?>
|
||||
<p>为尊重知识产权、保障数据作者的权益、扩展数据中心的服务、评估数据的应用潜力,请数据使用者在使用数据所产生的研究成果中(包括公开发表的论文、论著、数据产品和未公开发表的研究报告、数据产品等成果),明确注明数据来源和数据作者。对于转载(二次或多次发布)的数据,作者还须注明原始数据来源。</p>
|
||||
<p>中文发表的成果参考以下规范注明: 数据来源于国家自然科学基金委员会"中国西部环境与生态科学数据中心"(http://westdc.westgis.ac.cn)</p>
|
||||
<p>英文发表的成果依据以下规范注明: The data set is provided by Environmental and Ecological Science Data Center for West China,National Natural Science Foundation of China (http://westdc.westgis.ac.cn)</p>
|
||||
<p>中文发表的成果参考以下规范注明: 数据来源于黑河计划数据管理中心、寒区旱区科学数据中心(http://westdc.westgis.ac.cn)</p>
|
||||
<p>英文发表的成果依据以下规范注明: The data set is provided by Cold and Arid Regions Sciences Data Center at Lanzhou (http://westdc.westgis.ac.cn)</p>
|
||||
</p>
|
||||
<?php endif; ?>
|
||||
<?php if($this->data_archives){ ?>
|
||||
|
@ -102,7 +155,7 @@ if ($md->title_en) echo '<br />'.$this->escape($md->title_en);?>
|
|||
<?php if(!empty($this->fund)) : ?>
|
||||
<ul>
|
||||
<?php foreach($this->fund as $k=>$v) : ?>
|
||||
<li><?= $v['fund_type'] ?>:<?= $v['title'] ?>(项目编号:<?= $v['fund_id']?>) [<?= $v['fund_type_en'] ?>(No. <?= $v['fund_id']?>)]</li>
|
||||
<li><?= $v['fund_type'] ?>:<a href="/data/fund/id/<?= $v['id'] ?>"><?= $v['title'] ?></a>(项目编号:<?= $v['fund_id']?>) [<?= $v['fund_type_en'] ?>(No. <?= $v['fund_id']?>)]</li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
<?php elseif(!empty($md->suppinfo)) : ?>
|
||||
|
@ -251,7 +304,7 @@ if ($md->title_en) echo '<br />'.$this->escape($md->title_en);?>
|
|||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="span3">
|
||||
<div class="span4">
|
||||
<ul class="well well-small inline unstyled">
|
||||
<li><a href="/data/category"><i class="icon-th text-warning"></i>类别:</a></li>
|
||||
<?php foreach($this->category as $cat): ?>
|
||||
|
@ -273,10 +326,10 @@ foreach($this->keys as $cg) :
|
|||
if ($i==0) {
|
||||
?>
|
||||
<ul class="well well-small inline unstyled">
|
||||
<li><a href="/data/tag/keytype/<?php echo $kt; ?>"><i class="icon-tags text-warning"></i><?php echo $kw[$kt]; ?></a></li>
|
||||
<li><a href="/glaicer/tag/keytype/<?php echo $kt; ?>"><i class="icon-tags text-warning"></i><?php echo $kw[$kt]; ?></a></li>
|
||||
<?
|
||||
}
|
||||
echo '<li><a href="/data/tag/key/'.urlencode($cg['keyword']).'"><i class="icon-tag"></i>'.$cg['keyword'].'</a></li>';
|
||||
echo '<li><a href="/glaicer/tag/key/'.urlencode($cg['keyword']).'"><i class="icon-tag"></i>'.$cg['keyword'].'</a></li>';
|
||||
endforeach;
|
||||
?></ul>
|
||||
<?php if ($md->doi) : ?>
|
||||
|
@ -285,7 +338,7 @@ endforeach;
|
|||
|
||||
<div>
|
||||
<hr />
|
||||
<h4>数据细节<a class="btn pull-right" href="javascript:void(0);" id="show-list" onclick="getFileList()" title=""><i class="icon-file"></i>文件列表</a></h4>
|
||||
<h4>数据细节<a class="btn pull-right" href="javascript:void(0);" id="show-list" rel="<?= $md->uuid ?>"><i class="icon-file"></i>文件列表</a></h4>
|
||||
<ul class="inline unstyled well">
|
||||
<?php if ($md->fileformat) : ?>
|
||||
<li><strong>格式:</strong><?php echo $md->fileformat; ?></li>
|
||||
|
@ -341,10 +394,21 @@ endforeach;
|
|||
在线下载
|
||||
</a>
|
||||
<?php else: ?>
|
||||
<?php
|
||||
if(!empty($this->dataService)) { ?>
|
||||
<?php $this->theme->AppendPlus($this,'datepicker'); ?>
|
||||
<a href="javascript:void(0);" class="btn btn-primary btn-large btn-block" title="此数据需要选择要下载的子集" onclick="westdc.dataservice.choiceData('<?= $md->uuid ?>',this);">
|
||||
<?php }else{ ?>
|
||||
<a href="/data/order/uuid/<?php echo $md->uuid; ?>" class="btn btn-primary btn-large btn-block" title="免费!离线申请此数据(在线数据和离线数据都可申请)">
|
||||
离线申请
|
||||
<?php } ?>
|
||||
放入数据篮
|
||||
</a>
|
||||
<?php endif;endif; ?>
|
||||
<!--
|
||||
<a href="javascript:void(0);" onclick="method.like('<?php echo $md->uuid; ?>',this)" class="btn btn-block" title="喜欢此数据可以将它放到收藏夹中下次浏览">
|
||||
收藏此数据
|
||||
</a>
|
||||
-->
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
@ -412,7 +476,7 @@ endforeach;
|
|||
<a class="jiathis_counter_style"></a>
|
||||
</div>
|
||||
<!-- JiaThis Button END -->
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<script src="/js/metadata-view.js"></script>
|
||||
|
@ -444,6 +508,9 @@ $(function() {
|
|||
googleSearch('<?php echo $ev;?>');
|
||||
}
|
||||
});
|
||||
$('#show-list').click(function(e) {
|
||||
method.filelist.get($(this).attr('rel'));
|
||||
});
|
||||
});
|
||||
//ajax literature
|
||||
function literature(page){
|
||||
|
@ -460,10 +527,6 @@ function recommend(page){
|
|||
recommend_get(page,'<?= $md->uuid; ?>');
|
||||
}
|
||||
|
||||
function getFileList(){
|
||||
getFileList_h('<?php echo $md->uuid;?>');
|
||||
}
|
||||
|
||||
function ajaxpage(page){
|
||||
ajaxpage_get(page,'<?= $md->uuid; ?>');
|
||||
}
|
||||
|
|
|
@ -1,33 +0,0 @@
|
|||
<?php
|
||||
$this->headTitle($this->config->title->site);
|
||||
$this->headTitle($this->config->title->data);
|
||||
$this->headTitle()->setSeparator(' - ');
|
||||
$this->headLink()->appendStylesheet('/css/water.css');
|
||||
$this->breadcrumb('<a href="/">首页</a>');
|
||||
$this->breadcrumb('<a href="/data">'.$this->config->title->data.'</a>');
|
||||
$this->breadcrumb('<a href="/glacier/">'.$this->config->title->glacier.'</a>');
|
||||
$this->breadcrumb('长江源区');
|
||||
$this->breadcrumb()->setSeparator(' > ');
|
||||
?>
|
||||
|
||||
<div id='sidebar'>
|
||||
<div id='leftnavi'>
|
||||
<?= $this->partial('glacier/navi.phtml'); ?>
|
||||
</div>
|
||||
</div>
|
||||
<div id='right'>
|
||||
<div> </div>
|
||||
<div id="intro">
|
||||
</div>
|
||||
<hr />
|
||||
<?php if ($this->metadata) : ?>
|
||||
<?php echo $this->page->getNavigation(); ?>
|
||||
<div id="mdlist">
|
||||
<ol start="<?php echo $this->offset; ?>">
|
||||
<?php foreach($this->metadata as $md) : ?>
|
||||
<li><a href="/glacier/view/uuid/<?php echo $md['uuid']; ?>"><?php echo $md['title']; ?></a></li>
|
||||
<?php endforeach; ?>
|
||||
</ol>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
|
@ -0,0 +1,30 @@
|
|||
<?php
|
||||
$this->headTitle($this->config->title->site);
|
||||
$this->headTitle($this->config->title->data);
|
||||
$this->headTitle()->setSeparator(' - ');
|
||||
$this->headLink()->appendStylesheet('/css/water.css');
|
||||
$this->nav[] = array('link'=>"/haihe",'title'=>'海河流域观测数据集');
|
||||
?>
|
||||
<?= $this->render('breadcrumbs.phtml'); ?>
|
||||
<div class="row">
|
||||
<div class="span2">
|
||||
<?= $this->partial('haihe/navi.phtml'); ?>
|
||||
</div>
|
||||
<div class="span10">
|
||||
<?php if ($this->info) : ?>
|
||||
<div class="well">
|
||||
<?php if(!empty($this->info['body'])) echo $this->info['body'];?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php if ($this->metadata) : ?>
|
||||
<?php echo $this->page->getNavigation(); ?>
|
||||
<div id="mdlist">
|
||||
<ol start="<?php echo $this->offset; ?>">
|
||||
<?php foreach($this->metadata as $md) : ?>
|
||||
<li><a href="/haihe/view/uuid/<?php echo $md['uuid']; ?>"><?php echo $md['title']; ?></a></li>
|
||||
<?php endforeach; ?>
|
||||
</ol>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
|
@ -0,0 +1,51 @@
|
|||
<?php
|
||||
$this->headTitle($this->config->title->site);
|
||||
$this->headTitle($this->config->title->data);
|
||||
$this->headTitle()->setSeparator(' - ');
|
||||
$this->headLink()->appendStylesheet('/css/water.css');
|
||||
$this->breadcrumb('<a href="/">首页</a>');
|
||||
$this->breadcrumb()->setSeparator(' > ');
|
||||
$this->theme->AppendPlus($this,'colorbox');
|
||||
$this->nav[] = array('link'=>"/haihe",'title'=>'海河流域观测数据集');
|
||||
?>
|
||||
<?= $this->render('breadcrumbs.phtml'); ?>
|
||||
<div class="row">
|
||||
<div class="span2">
|
||||
<?= $this->partial('haihe/navi.phtml'); ?>
|
||||
</div>
|
||||
|
||||
<div class="span10">
|
||||
<h3>数据相关文献</h3>
|
||||
<?php if ($this->refs) : ?>
|
||||
<?php echo $this->page->getNavigation(); ?>
|
||||
<div id="mdlist">
|
||||
<ol start="<?php echo $this->offset; ?>">
|
||||
<?php foreach($this->refs as $md) : ?>
|
||||
<li><?php echo $md['reference'];
|
||||
echo ' [<a href="/knowledge/paper/id/'.$md['id'].'"><i class="icon-info-sign text-success"></i>查看</a>';
|
||||
if (!empty($md['link'])) :
|
||||
echo ' <a href="'.$md['link'].'">下载</a>';
|
||||
else :
|
||||
if (!empty($md['attid'])) echo ' <a href="/service/attach/id/'.$md['attid'].'"><i class="icon-download text-success"></i>下载</a>';
|
||||
endif;
|
||||
?>
|
||||
<a href="javascript:;" onclick="showdata('<?php echo $md['id'];?>',0)"><i class="icon-external-link text-success"></i>相关数据</a>]
|
||||
</li>
|
||||
<?php endforeach; ?>
|
||||
</ol>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
function showdata(id,page){
|
||||
var url="/service/refdatalist/id/"+id;
|
||||
$.ajax({
|
||||
'type':"GET",
|
||||
'url':url,
|
||||
'data':'page='+page,
|
||||
'dataType':'html',
|
||||
'success':function(html){$.colorbox({'html':html,'innerHeight':230});}
|
||||
});
|
||||
}
|
||||
</script>
|
|
@ -0,0 +1,22 @@
|
|||
<?php
|
||||
$this->headTitle($this->config->title->site);
|
||||
$this->headTitle($this->config->title->data);
|
||||
$this->headTitle()->setSeparator(' - ');
|
||||
$this->headLink()->appendStylesheet('/css/water.css');
|
||||
$this->nav[] = array('link'=>"/haihe",'title'=>'海河流域观测数据集');
|
||||
?>
|
||||
<?= $this->render('breadcrumbs.phtml'); ?>
|
||||
<div class="row">
|
||||
<div class="span2">
|
||||
<?= $this->partial('haihe/navi.phtml'); ?>
|
||||
</div>
|
||||
|
||||
<div class="span10">
|
||||
<div id="intro">
|
||||
<h1><?php if(!empty($this->info['title'])) echo $this->info['title']; ?></h1>
|
||||
<table>
|
||||
<tr><td><?php if(!empty($this->info['body'])) echo $this->info['body'];?></td></tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
|
@ -0,0 +1,38 @@
|
|||
<div id="side_accordion" class="accordion">
|
||||
<div class="accordion-group heihe-accordion-title">
|
||||
<div class="accordion-heading" id="Nav-haihe-index">
|
||||
<a class="accordion-toggle" href="/haihe/">
|
||||
介绍
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="accordion-group heihe-accordion-title">
|
||||
<div class="accordion-heading" id="Nav-haihe-daxing">
|
||||
<a class="accordion-toggle" href="/haihe/daxing">
|
||||
大兴站
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="accordion-group heihe-accordion-title">
|
||||
<div class="accordion-heading" id="Nav-haihe-miyun">
|
||||
<a class="accordion-toggle" href="/haihe/miyun">
|
||||
密云站
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="accordion-group heihe-accordion-title">
|
||||
<div class="accordion-heading" id="Nav-haihe-guantao">
|
||||
<a class="accordion-toggle" href="/haihe/guantao">
|
||||
馆陶站
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="accordion-group heihe-accordion-title">
|
||||
<div class="accordion-heading" id="Nav-haihe-document">
|
||||
<a class="accordion-toggle" href="/haihe/document">
|
||||
数据文献
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
|
@ -0,0 +1,578 @@
|
|||
<?php
|
||||
$this->headTitle($this->config->title->site);
|
||||
$this->headTitle($this->config->title->data);
|
||||
$this->headTitle($this->metadata->title);
|
||||
$this->headTitle()->setSeparator(' - ');
|
||||
$this->breadcrumb('<a href="/">首页</a>');
|
||||
$this->breadcrumb('<a href="/data">'.$this->config->title->data.'</a>');
|
||||
$this->breadcrumb('查看元数据');
|
||||
$this->breadcrumb()->setSeparator(' > ');
|
||||
$this->theme->AppendPlus($this,'google_map_v3');
|
||||
$this->theme->AppendPlus($this,'colorbox');
|
||||
if(!empty($this->dataService)) {
|
||||
$this->theme->AppendModel($this,"dataservice");
|
||||
}
|
||||
$this->nav[] = array('link'=>"/haihe",'title'=>'海河流域观测数据集');
|
||||
?>
|
||||
<style>
|
||||
h3.gs_rt{font-size:110%;}
|
||||
#file-list li:hover {background-color: #f5f5f5;}
|
||||
#file-list li li:hover {background-color: #dedede;}
|
||||
#file-list li li li:hover {background-color: #eeeeee;}
|
||||
</style>
|
||||
<?= $this->render('breadcrumbs.phtml'); ?>
|
||||
<?php $md=$this->metadata;if ($md):?>
|
||||
<h3><?php echo $this->escape($md->title);
|
||||
if ($md->title_en) echo '<br />'.$this->escape($md->title_en);?>
|
||||
</h3>
|
||||
<hr />
|
||||
<div class="row">
|
||||
<div class="span8">
|
||||
<div>
|
||||
<a class="colorbox pull-right" title="<?php echo $md->title; ?>" href="/service/bigthumb/uuid/<?php echo $md->uuid; ?>"><img src="/service/thumb/uuid/<?php echo $md->uuid;?>"/></a>
|
||||
<p style="word-break:break-all;word-wrap:break-word;overflow:hidden;">
|
||||
<?php echo str_replace(array("\r\n", "\n", "\r"),'</p><p>',$md->description);?>
|
||||
</p>
|
||||
</div>
|
||||
<div>
|
||||
<?php if ($this->mcitation) : ?>
|
||||
<hr />
|
||||
<h4><i class="icon-eye-open text-success"></i>本数据要求的多篇文献引用</h4>
|
||||
<ol>
|
||||
<?php foreach($this->mcitation as $ref) :
|
||||
echo '<li>'.$ref->reference;
|
||||
echo '<a href="/knowledge/paper/id/'.$ref->id.'"><i class="icon-info-sign text-success"></i>查看</a>';
|
||||
if (empty($ref->link))
|
||||
{
|
||||
if(!empty($ref->attid))
|
||||
echo '<a href="/service/attach/id/'.$ref->attid.'"><i class="icon-download text-success"></i>下载</a>';
|
||||
}else{
|
||||
echo '<a href="'.$ref->link.'"><i class="icon-download text-success"></i>下载</a>';
|
||||
}
|
||||
echo "</li>";
|
||||
endforeach;
|
||||
?>
|
||||
</ol>
|
||||
<?php endif; ?>
|
||||
<?php if ($md->citation) : ?>
|
||||
<hr />
|
||||
<h4><i class="icon-quote-left muted"></i>本数据引用方式<a class="btn btn-danger pull-right" href="/archives/help/platform/archive-23.html" ><i class="icon-comment"></i>数据引用帮助</a></h4>
|
||||
<p><?php if (empty($md->datadoi) || !strpos($md->citation,$md->datadoi)) : ?><span class="label label-info">文章的引用</span>
|
||||
<?php endif; echo $this->escape($md->citation);if (strpos($md->citation,$md->datadoi)) : ?>
|
||||
(下载引用:<a href="/service/ris/lang/cn/uuid/<?php echo $md->uuid; ?>">RIS格式</a> | <a href="/service/ris/lang/en/uuid/<?php echo $md->uuid; ?>">RIS英文格式</a> | <a href="/service/bibtex/lang/cn/uuid/<?php echo $md->uuid; ?>">Bibtex格式</a> | <a href="/service/bibtex/lang/en/uuid/<?php echo $md->uuid; ?>">Bibtex英文格式</a>)
|
||||
<?php endif; ?>
|
||||
</p>
|
||||
<?php if (!empty($md->datadoi) && !strpos($md->citation,$md->datadoi)) : ?>
|
||||
<p><span class="label label-info">数据的引用</span><?php
|
||||
echo substr($md->authors,1,-1).'. '.$md->title.'. '.$md->publisher.', '.(empty($md->ts_published)?$md->publish_year:date('Y',strtotime($md->ts_published))).'. doi:'.$md->doi;
|
||||
echo ' ['.str_replace('"','',substr($md->author_en,1,-1)).'. '.$md->title_en.'. '.$md->publisher_en.', '.(empty($md->ts_published)?$md->publish_year:date('Y',strtotime($md->ts_published))).'. doi:'.$md->doi.']';
|
||||
?> (下载引用:<a href="/service/ris/lang/cn/uuid/<?php echo $md->uuid; ?>">RIS格式</a> | <a href="/service/ris/lang/en/uuid/<?php echo $md->uuid; ?>">RIS英文格式</a> | <a href="/service/bibtex/lang/cn/uuid/<?php echo $md->uuid; ?>">Bibtex格式</a> | <a href="/service/bibtex/lang/en/uuid/<?php echo $md->uuid; ?>">Bibtex英文格式</a>)</p>
|
||||
<?php endif; endif; if ($this->ref) : ?>
|
||||
<hr />
|
||||
<h4><i class="icon-eye-open text-success"></i>相关文献(作者推荐)</h4>
|
||||
<ol>
|
||||
<?php foreach($this->ref as $ref) :
|
||||
echo '<li>'.$ref->reference;
|
||||
echo '<a href="/knowledge/paper/id/'.$ref->id.'"><i class="icon-info-sign text-success"></i>查看</a>';
|
||||
if (empty($ref->link))
|
||||
{
|
||||
if(!empty($ref->attid))
|
||||
echo '<a href="/service/attach/id/'.$ref->attid.'"><i class="icon-download text-success"></i>下载</a>';
|
||||
}else{
|
||||
echo '<a href="'.$ref->link.'"><i class="icon-download text-success"></i>下载</a>';
|
||||
}
|
||||
echo "</li>";
|
||||
endforeach;
|
||||
?>
|
||||
</ol>
|
||||
<?php endif; if ($this->themeref) :?>
|
||||
|
||||
<hr />
|
||||
<h4><i class="icon-eye-open text-success"></i>专题文献</h4>
|
||||
<ol>
|
||||
<?php foreach($this->themeref as $ref) :
|
||||
echo '<li>'.$ref->reference;
|
||||
echo '<a href="/knowledge/paper/id/'.$ref->id.'"><i class="icon-info-sign text-success"></i>查看</a>';
|
||||
if (empty($ref->link))
|
||||
{
|
||||
if(!empty($ref->attid))
|
||||
echo ' | <a href="/service/attach/id/'.$ref->attid.'"><i class="icon-download text-success"></i>下载</a>';
|
||||
}else{
|
||||
echo ' | <a href="'.$ref->link.'"><i class="icon-download text-success"></i>下载</a>';
|
||||
}
|
||||
echo "</li>";
|
||||
endforeach;
|
||||
?>
|
||||
</ol>
|
||||
<?php endif; if ($this->userref) : ?>
|
||||
<hr />
|
||||
<h4><i class="icon-eye-open text-success"></i>数据施引文献</h4>
|
||||
<ol>
|
||||
<?php foreach($this->userref as $ref) :
|
||||
echo '<li>'.$ref->reference;
|
||||
echo '<a href="/knowledge/paper/id/'.$ref->id.'"><i class="icon-info-sign text-success"></i>查看</a>';
|
||||
if (empty($ref->link))
|
||||
{
|
||||
if(!empty($ref->attid))
|
||||
echo '<a href="/service/attach/id/'.$ref->attid.'"><i class="icon-download text-success"></i>下载</a>';
|
||||
}else{
|
||||
echo '<a href="'.$ref->link.'"><i class="icon-download text-success"></i>下载</a>';
|
||||
}
|
||||
echo "</li>";
|
||||
endforeach;
|
||||
if (count($this->userref)==15)
|
||||
{
|
||||
echo '<a class="btn btn-success pull-right" href="/knowledge/user/uuid/'.$md->uuid.'" ><i class="icon-info-sign"></i>更多施引文献</a>';
|
||||
}
|
||||
?>
|
||||
</ol>
|
||||
<?php endif; ?>
|
||||
<hr />
|
||||
<h4><i class="icon-legal text-warning"></i>数据使用声明</h4>
|
||||
<?php
|
||||
if ($this->uselimits) :
|
||||
foreach($this->uselimits as $uselimit) :
|
||||
echo '<p>'.str_replace(array("\r\n", "\n", "\r"),'</p><p>',$this->escape($uselimit->uselimit)).'</p>';
|
||||
endforeach;
|
||||
?>
|
||||
<?php else : ?>
|
||||
<p>为尊重知识产权、保障数据作者的权益、扩展数据中心的服务、评估数据的应用潜力,请数据使用者在使用数据所产生的研究成果中(包括公开发表的论文、论著、数据产品和未公开发表的研究报告、数据产品等成果),明确注明数据来源和数据作者。对于转载(二次或多次发布)的数据,作者还须注明原始数据来源。</p>
|
||||
<p>中文发表的成果参考以下规范注明: 数据来源于黑河计划数据管理中心、寒区旱区科学数据中心(http://westdc.westgis.ac.cn)</p>
|
||||
<p>英文发表的成果依据以下规范注明: The data set is provided by Cold and Arid Regions Sciences Data Center at Lanzhou (http://westdc.westgis.ac.cn)</p>
|
||||
</p>
|
||||
<?php endif; ?>
|
||||
<?php if($this->data_archives){ ?>
|
||||
<h4>数据相关新闻</h4>
|
||||
<ul>
|
||||
<?php
|
||||
foreach($this->data_archives as $v){?>
|
||||
<li><a href="<?= $v['url']['archive_url']?>"><?= $v['title']?></a></li>
|
||||
<?php } ?>
|
||||
</ul>
|
||||
<hr />
|
||||
<?php }?>
|
||||
<?php if ($md->suppinfo || $this->fund) : ?>
|
||||
<h4><i class="icon-money text-info"></i>资助项目</h4>
|
||||
<?php if(!empty($this->fund)) : ?>
|
||||
<ul>
|
||||
<?php foreach($this->fund as $k=>$v) : ?>
|
||||
<li><?= $v['fund_type'] ?>:<a href="/data/fund/id/<?= $v['id'] ?>"><?= $v['title'] ?></a>(项目编号:<?= $v['fund_id']?>) [<?= $v['fund_type_en'] ?>(No. <?= $v['fund_id']?>)]</li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
<?php elseif(!empty($md->suppinfo)) : ?>
|
||||
<?php echo '<p>'.str_replace(array("\r\n", "\n", "\r"),'</p><p>',$this->escape($md->suppinfo)).'</p>';?>
|
||||
<?php endif; ?>
|
||||
<hr />
|
||||
<?php endif; ?>
|
||||
<?php if ($this->resources) : ?>
|
||||
<h4><i class="icon-bolt text-warning"></i>相关资源</h4>
|
||||
<ul class="unstyled inline"><?php foreach($this->resources as $link) : ?>
|
||||
<li><a class="label" href="<?php echo $link->linkage; ?>" title="<?php echo $link->description; ?>">
|
||||
<?php
|
||||
if (!empty($link->name))
|
||||
echo $link->name;
|
||||
elseif (!empty($link->description))
|
||||
echo $link->description;
|
||||
else
|
||||
echo $link->linkage;
|
||||
?></a></li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
<hr />
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<div>
|
||||
<?php
|
||||
$keywords = array();
|
||||
foreach($this->keys as $cg){
|
||||
if($cg['keytype']=="theme")
|
||||
$keywords[]=$cg['keyword'];
|
||||
}
|
||||
$ev = join(" ",$keywords);
|
||||
?>
|
||||
<div class="tabbable"> <!-- Only required for left/right tabs -->
|
||||
<ul class="nav nav-tabs">
|
||||
<li class="active"><a href="#related" data-toggle="tab" id="related_t">相关数据</a></li>
|
||||
<li><a href="#literature" data-toggle="tab" id="literature_t">相关文献</a></li>
|
||||
<li><a href="#gsearch" data-toggle="tab" id="gsearch_t">相关搜索</a></li>
|
||||
<li><a href="#service" data-toggle="tab">服务记录</a></li>
|
||||
<li><a href="#recommend" data-toggle="tab" id="recommend_t">给我推荐</a></li>
|
||||
</ul>
|
||||
<div class="tab-content">
|
||||
<div id="related" class="tab-pane active">
|
||||
</div>
|
||||
<div id="literature" class="tab-pane">
|
||||
<div class="">
|
||||
<ul class="nav nav-pills lit-nav">
|
||||
<li><a href="javascript:;" class="literatures lit-nav-btn">西部计划知识库</a></li>
|
||||
<li><a href="javascript:;" class="scholar lit-nav-btn">Google学术搜索</a></li>
|
||||
<li><a href="javascript:;" class="cnkiSearch lit-nav-btn">CNKI学术搜索</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div id="literature-list">
|
||||
</div>
|
||||
</div>
|
||||
<div id="gsearch" class="tab-pane">
|
||||
<ul id="searchlist" class="unstyled well well-small"></ul>
|
||||
</div>
|
||||
<div id="service" class="tab-pane">
|
||||
<?php if ($this->downhistory) : ?>
|
||||
<p>最近10条服务记录如下:</p>
|
||||
<ol start="1">
|
||||
<?php
|
||||
foreach($this->downhistory as $v){
|
||||
echo '<li>'.date("Y-m-d",strtotime($v->ts_created))." ".$v->unit." ".$v->realname;
|
||||
if (!empty($v->offlineproject))
|
||||
echo ' 用途:'.$v->offlineproject;
|
||||
elseif (!empty($v->onlineproject))
|
||||
echo ' 用途:'.$v->onlineproject;
|
||||
echo '</li>';
|
||||
}
|
||||
?>
|
||||
</ol>
|
||||
<?php else : ?>
|
||||
暂时没有服务记录,欢迎您下载使用!
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<div id="recommend" class="tab-pane">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<hr />
|
||||
<div id="comments">
|
||||
<?php if ($md->status>0 and $md->status<5) : ?>
|
||||
<p class="strong">此数据还在评审过程中,我们真切地邀请您参加此数据的评审,以便我们能尽快发布此数据!<a class="btn btn-primary" href="/review/review/uuid/<?php echo $md->uuid; ?>">评审</a></p>
|
||||
<?php else : ?>
|
||||
<h4>数据评论</h4>
|
||||
<div id="allcomments">
|
||||
<div id="loading"><img src="/images/loading.gif" />评论加载中</div>
|
||||
</div>
|
||||
<?php
|
||||
$auth = Zend_Auth::getInstance();
|
||||
if($auth->hasIdentity())
|
||||
{
|
||||
$user = $auth->getIdentity();
|
||||
$name = $user->realname;
|
||||
$email = $user->email;
|
||||
}else
|
||||
{
|
||||
$name = "";
|
||||
$email = "";
|
||||
}
|
||||
?>
|
||||
<form class="form-horizontal" id="postcommentform">
|
||||
<div class="control-group">
|
||||
<label class="control-label">姓名</label>
|
||||
<div class="controls">
|
||||
<input type="text" name="author" value="<?php echo $name;?>" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="control-label">Email</label>
|
||||
<div class="controls">
|
||||
<input type="text" name="email" value="<?php echo $email;?>" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="control-label">Website</label>
|
||||
<div class="controls">
|
||||
<input type="text" name="url" value="" /> <span class="help-block">e.g. http://westdc.westgis.ac.cn/</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="control-label">内容</label>
|
||||
<div class="controls">
|
||||
<textarea name="content" class="span5"></textarea>
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="control-label">验证码</label>
|
||||
<div class="controls">
|
||||
<img id="imgcode" style="margin-bottom:-10px;cursor:pointer;border:0px;" src="/service/imgcode/" onClick="this.src=this.src+'?'"><input type="text" name="vdcode" id="vdcode" maxlength="4" value="" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<div class="controls">
|
||||
<input type="hidden" name="mdtitle" value="<?php echo $md->title;?>" />
|
||||
<input type="hidden" name="uuid" value="<?php echo $md->uuid;?>" />
|
||||
<a class="btn btn-primary" id="postcomment" href="javascript:;" onclick="postcomment();">提交</a><button type="reset" id="reset" class="btn">重置</button><span id="returninfo"></span>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
<div id="infobox"></div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="span4">
|
||||
<ul class="well well-small inline unstyled">
|
||||
<li><a href="/data/category"><i class="icon-th text-warning"></i>类别:</a></li>
|
||||
<?php foreach($this->category as $cat): ?>
|
||||
<li><a href="/data/category/code/<?php echo $cat->code;?>"><i class="icon-th-large"></i><?php echo $this->escape($cat->name_zh);?></a></li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
<?php
|
||||
$kw=array('discipline'=>'学科','place'=>'地点','theme'=>'主题','temporal'=>'时间词','stratum'=>'地层');
|
||||
$kt='';
|
||||
$i=0;
|
||||
foreach($this->keys as $cg) :
|
||||
if ($kt==$cg['keytype']) :
|
||||
$i+=1;
|
||||
else :
|
||||
if (!empty($kt)) echo '</ul>';
|
||||
$kt=$cg['keytype'];
|
||||
$i=0;
|
||||
endif;
|
||||
if ($i==0) {
|
||||
?>
|
||||
<ul class="well well-small inline unstyled">
|
||||
<li><a href="/data/tag/keytype/<?php echo $kt; ?>"><i class="icon-tags text-warning"></i><?php echo $kw[$kt]; ?></a></li>
|
||||
<?
|
||||
}
|
||||
echo '<li><a href="/data/tag/key/'.urlencode($cg['keyword']).'"><i class="icon-tag"></i>'.$cg['keyword'].'</a></li>';
|
||||
endforeach;
|
||||
?></ul>
|
||||
<?php if ($md->doi) : ?>
|
||||
<ul class="well well-small inline unstyled"><li><span class="label label-success">数据DOI:</span><?php echo $md->doi; ?></li></ul>
|
||||
<?php endif; ?>
|
||||
<div>
|
||||
<hr />
|
||||
<h4>数据细节<a class="btn pull-right" href="javascript:void(0);" id="show-list" rel="<?= $md->uuid ?>"><i class="icon-file"></i>文件列表</a></h4>
|
||||
<ul class="inline unstyled well">
|
||||
<?php if ($md->fileformat) : ?>
|
||||
<li><strong>格式:</strong><?php echo $md->fileformat; ?></li>
|
||||
<?php endif; ?>
|
||||
<li><strong>大小:</strong><?php echo $md->filesize; ?>MB</li>
|
||||
<?php if ($this->downloaded>9) :?>
|
||||
<li><strong>下载:</strong><?php echo $this->downloaded; ?>次</li>
|
||||
<?php endif; ?>
|
||||
<li><strong>浏览:</strong><?php echo $this->viewed; ?>次</li>
|
||||
<!--
|
||||
<?php if ($md->projection) : ?>
|
||||
<li id="projection" title="<?= $this->projection; ?>">数据投影:
|
||||
<?php
|
||||
$p=explode(" ",$this->projection);
|
||||
$p=explode("=",$p[0]);
|
||||
if (!empty($p[1]))
|
||||
echo $p[1];
|
||||
else
|
||||
{
|
||||
if (is_numeric($md->projection)) echo 'EPSG_CODE_';
|
||||
echo $md->projection;
|
||||
}
|
||||
?></li>
|
||||
<?php endif; ?>
|
||||
-->
|
||||
<?php if (!empty($md->timebegin)) : ?>
|
||||
<li id="datatimes"><strong>数据时间范围:</strong><?php echo date('Y-m-d',strtotime($md->timebegin));if (!empty($md->timeend)) echo " 至 ".date('Y-m-d',strtotime($md->timeend)); ?></li>
|
||||
<?php endif; ?>
|
||||
<?php if (!empty($this->doc)) : ?>
|
||||
<!-- <li id="datadoc"><a href="<?php $wikiTitle = $this->doc;
|
||||
if(strpos($wikiTitle,'http://wiki.westgis.ac.cn/index.php/')!==false){
|
||||
$title=str_replace('http://wiki.westgis.ac.cn/index.php/','',$wikiTitle);
|
||||
echo "/data/wiki/$title";
|
||||
}else{
|
||||
echo $this->doc;
|
||||
}?>">数据说明文档</a></li> -->
|
||||
<?php endif; ?>
|
||||
<?php if ($this->attachments) : ?>
|
||||
<li id="attach"><span>相关文档:</span>
|
||||
<?php foreach ($this->attachments as $k=>$a) : ?>
|
||||
<a href="/service/attach/id/<?php echo $a->id; ?>" title="<?php echo $a->realname; ?>"><img src="/images/document.png"></a>
|
||||
<?php endforeach; ?>
|
||||
<a href="/service/attach/zip/<?php echo $md->uuid; ?>"><img src="/images/zip_icon.gif" title="打包下载"/></a>
|
||||
</li>
|
||||
<?php endif; ?>
|
||||
<li id="datatype"><strong>数据共享方式:</strong><?php if ($md->datatype) print "离线"; else print "在线(可直接下载)";?> </li>
|
||||
</ul>
|
||||
<div id="linkurl">
|
||||
<?php if ($md->status>0 and $md->status<5) : ?>
|
||||
<a href="/review/review/uuid/<?php echo $md->uuid; ?>" class="btn btn-primary btn-large btn-block" title="此数据正在评审中,我们邀请您对此数据进行评审,以便其能尽快发布!">数据评审</a>
|
||||
<?php else : if (!$md->datatype) : ?>
|
||||
<a href="/data/todownload/?uuid=<?= $md->uuid?>" class="btn btn-primary btn-large btn-block" title="直接下载">
|
||||
在线下载
|
||||
</a>
|
||||
<?php else: ?>
|
||||
<?php
|
||||
if(!empty($this->dataService)) { ?>
|
||||
<?php $this->theme->AppendPlus($this,'datepicker'); ?>
|
||||
<a href="javascript:void(0);" class="btn btn-primary btn-large btn-block" title="此数据需要选择要下载的子集" onclick="westdc.dataservice.choiceData('<?= $md->uuid ?>',this);">
|
||||
<?php }else{ ?>
|
||||
<a href="/data/order/uuid/<?php echo $md->uuid; ?>" class="btn btn-primary btn-large btn-block" title="免费!离线申请此数据(在线数据和离线数据都可申请)">
|
||||
<?php } ?>
|
||||
放入数据篮
|
||||
</a>
|
||||
<?php endif;endif; ?>
|
||||
<a href="javascript:void(0);" class="btn btn-block" title="喜欢此数据可以将它放到收藏夹中下次浏览">
|
||||
收藏此数据
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
<hr />
|
||||
<h4>空间位置</h4>
|
||||
<div id='watermap' style="width:100%;height:300px;"></div>
|
||||
<hr />
|
||||
<h4>联系信息</h4>
|
||||
<div id="authors">
|
||||
<ul class="unstyled">
|
||||
<?php
|
||||
$party_zh=array('resourceProvider'=>'资源提供者','custodian'=>'维护者','owner'=>'拥有者','user'=>'用户','distributor'=>'数据服务联系人','originator'=>'创建者','pointOfContact'=>'联系人','principalInvestigator'=>'数据调查与处理者','processor'=>'处理者','publisher'=>'元数据发布者','author'=>'元数据作者');
|
||||
$r='';
|
||||
$i=0;
|
||||
foreach($this->authors as $k=>$author) :
|
||||
if ($author->role!=$r)
|
||||
{
|
||||
$r=$author->role;
|
||||
$i=0;
|
||||
if ($k>0) echo '</li>';
|
||||
echo '<li>'.$party_zh[$author->role].':';
|
||||
}
|
||||
if ($i>0) echo ',';
|
||||
$i+=1;
|
||||
if (!empty($author->email) && $r!='principalInvestigator')
|
||||
echo '<a href="mailto:'.$author->email.'">';
|
||||
echo '<strong title="'.$author->organisation.'">';
|
||||
if (!empty($author->individual))
|
||||
echo $author->individual;
|
||||
else
|
||||
echo $author->organisation;
|
||||
echo '</strong>';
|
||||
if (!empty($author->email)) echo '</a>';
|
||||
if ($k+1==count($this->authors)) echo '</li>';
|
||||
endforeach;
|
||||
?>
|
||||
</ul>
|
||||
<hr />
|
||||
<ul class="unstyled">
|
||||
<li>元数据更新时间:<?php print date('Y-m-d',strtotime($md->ts_created)); ?></li>
|
||||
<li><strong>下载元数据:</strong>
|
||||
<a href="/service/pdf/uuid/<?php echo $md->uuid; ?>"><img src="/images/pdf_icon.gif" alt="Adobe PDF格式" title="Adobe PDF格式"></a>
|
||||
<a href="/service/odt/uuid/<?php echo $md->uuid; ?>"><img src="/images/odt_icon.gif" alt="OpenOffice odt格式" title="OpenOffice odt格式"></a>
|
||||
<a href="/service/doc/uuid/<?php echo $md->uuid; ?>"><img src="/images/doc_icon.gif" alt="Word doc格式" title="Word doc格式"></a>
|
||||
<a href="/service/xml/uuid/<?php echo $md->uuid;?>"><img src="/images/xml_icon.gif" alt="查看XML源文件" title="查看XML源文件"></a>
|
||||
</li>
|
||||
<!--<li><a href="/data/detail/id/<?php echo $md->id;?>">详细元数据</a></li>-->
|
||||
<?php if($this->version->c>0):?>
|
||||
<li id="dataversion">版本历史:<a href="javascript:void(0);" onclick="dataVersion('<?php echo $md->uuid;?>')" title=""><?= $this->version->c ?> 个 <img src="/images/list_extensions.gif" style="vertical-align:middle" /></a></li>
|
||||
<?php endif;?>
|
||||
</ul>
|
||||
</div>
|
||||
<!--
|
||||
<hr />
|
||||
<div class="row-fluit">
|
||||
<a href="javascript:void(0);" id="fav" class="btn" title="收藏到网站收藏夹">
|
||||
<i class="icon-heart"></i> 喜欢
|
||||
</a>
|
||||
<a href="javascript:void(0);" class="btn" title="收藏到浏览器收藏夹">
|
||||
<i class="icon-bookmark"></i> 收藏
|
||||
</a>
|
||||
<a href="/data/todownload/?uuid=<?= $md->uuid?>" class="btn" title="扫描地址二维码">
|
||||
<i class="icon-qrcode"></i> 扫码转发
|
||||
</a>
|
||||
</div>
|
||||
-->
|
||||
<hr />
|
||||
<div class="row-fluit">
|
||||
<div class="pull-left">分享到</div>
|
||||
<!-- JiaThis Button BEGIN -->
|
||||
<div class="jiathis_style" style="margin-left:10px;">
|
||||
<a class="jiathis_button_tsina"></a>
|
||||
<a class="jiathis_button_qzone"></a>
|
||||
<a class="jiathis_button_tqq"></a>
|
||||
<a class="jiathis_button_renren"></a>
|
||||
<a class="jiathis_button_douban"></a>
|
||||
<a class="jiathis_button_tsohu"></a>
|
||||
<a class="jiathis_button_t163"></a>
|
||||
<a href="http://www.jiathis.com/share" class="jiathis jiathis_txt jtico jtico_jiathis" target="_blank"></a>
|
||||
<a class="jiathis_counter_style"></a>
|
||||
</div>
|
||||
<!-- JiaThis Button END -->
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script src="/js/metadata-view.js"></script>
|
||||
<script type="text/javascript" charset="utf-8">
|
||||
$(function() {
|
||||
google.maps.event.addDomListener(window, 'load', initialize);
|
||||
$(".colorbox").colorbox({photo:"true"});
|
||||
$('.googlesearch').click(function(){googleSearch('<?php echo $ev;?>');});
|
||||
$('.bingsearch').click(function(){bingSearch('<?php echo $ev;?>');});
|
||||
$('.cnkiSearch').click(function(){cnkiSearch('<?php echo $ev;?>');});
|
||||
$('.scholar').click(function(){scholarSearch('<?php echo $ev;?>');});
|
||||
$('#related_t').click(function(){related(1);});
|
||||
$('#recommend_t').click(function(){recommend(0);});
|
||||
$('#literature_t').click(function(){literature(1);$('.literatures').parent('li').addClass('active')});
|
||||
$('.literatures').click(function(){literature(1);});
|
||||
ajaxpage(0);
|
||||
related(1);
|
||||
$('.lit-nav-btn').each(function(index, element) {
|
||||
$(this).click(function(){
|
||||
$('.lit-nav').children('li').each(function(index, element) {
|
||||
$(this).removeClass('active');
|
||||
});
|
||||
$(this).parent('li').addClass('active');
|
||||
});
|
||||
});
|
||||
$('#gsearch_t').click(function(){
|
||||
if($('#searchlist').children('li').length<1)
|
||||
{
|
||||
googleSearch('<?php echo $ev;?>');
|
||||
}
|
||||
});
|
||||
$('#show-list').click(function(e) {
|
||||
method.filelist.get($(this).attr('rel'));
|
||||
});
|
||||
});
|
||||
//ajax literature
|
||||
function literature(page){
|
||||
literature_get(page,'<?= $md->uuid; ?>');
|
||||
}
|
||||
|
||||
//ajax related
|
||||
function related(page){
|
||||
related_get(page,'<?= $md->uuid; ?>');
|
||||
}
|
||||
|
||||
//ajax recommend
|
||||
function recommend(page){
|
||||
recommend_get(page,'<?= $md->uuid; ?>');
|
||||
}
|
||||
|
||||
function ajaxpage(page){
|
||||
ajaxpage_get(page,'<?= $md->uuid; ?>');
|
||||
}
|
||||
|
||||
var map = null;
|
||||
var mapElementID = "watermap";
|
||||
var bounds = null;
|
||||
var rectangle = null;
|
||||
var zoomlevel = 1;
|
||||
var bound = {
|
||||
lat:<?= ($md->south+$md->north)/2; ?>,
|
||||
lng:<?= ($md->east+$md->west)/2; ?>,
|
||||
zoom:<?php if ($md->north==$md->south) { ?> 10 <?php }else {?> 6 <?php }?>,
|
||||
east:<?= $md->east; ?>,
|
||||
west:<?= $md->west; ?>,
|
||||
south:<?= $md->south; ?>,
|
||||
north:<?= $md->north; ?>
|
||||
}
|
||||
|
||||
function addfavorite(url,title){
|
||||
var fav_url = url;
|
||||
var fav_title = title;
|
||||
if (document.all && window.external){
|
||||
window.external.AddFavorite(fav_url,fav_title);
|
||||
}else if (window.sidebar){
|
||||
window.sidebar.addPanel(fav_title,fav_url,"");
|
||||
}else{
|
||||
alert("浏览器不支持,请手动CTRL+D加入收藏夹");
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<?php else: ?>
|
||||
<p>Cannot find the metadata.</p>
|
||||
<p>没有找到对应的元数据。</p>
|
||||
<?php endif;?>
|
||||
<script type="text/javascript" src="http://v3.jiathis.com/code_mini/jia.js?uid=1336100079460458" charset="utf-8"></script>
|
||||
|
|
@ -71,10 +71,11 @@ if ($md->title_en) echo '<br />'.$this->escape($md->title_en);?>
|
|||
?> (下载引用:<a href="/service/ris/lang/cn/uuid/<?php echo $md->uuid; ?>">RIS格式</a> | <a href="/service/ris/lang/en/uuid/<?php echo $md->uuid; ?>">RIS英文格式</a> | <a href="/service/bibtex/lang/cn/uuid/<?php echo $md->uuid; ?>">Bibtex格式</a> | <a href="/service/bibtex/lang/en/uuid/<?php echo $md->uuid; ?>">Bibtex英文格式</a>)</p>
|
||||
<?php endif; endif; endif; if ($this->ref) : ?>
|
||||
<hr />
|
||||
<h4><i class="icon-eye-open text-success"></i>建议参考文献</h4>
|
||||
<h4><i class="icon-eye-open text-success"></i>相关文献(作者推荐)</h4>
|
||||
<ol>
|
||||
<?php foreach($this->ref as $ref) :
|
||||
echo '<li>'.$ref->reference;
|
||||
echo '<a href="/knowledge/paper/id/'.$ref->id.'"><i class="icon-info-sign text-success"></i>查看</a>';
|
||||
if (empty($ref->link))
|
||||
{
|
||||
if(!empty($ref->attid))
|
||||
|
@ -86,17 +87,45 @@ if ($md->title_en) echo '<br />'.$this->escape($md->title_en);?>
|
|||
endforeach;
|
||||
?>
|
||||
</ol>
|
||||
<?php endif; ?>
|
||||
<?php if ($this->userref) : ?>
|
||||
<?php endif; if ($this->themeref) :?>
|
||||
|
||||
<hr />
|
||||
<h4>数据用户发表文献</h4>
|
||||
<h4><i class="icon-eye-open text-success"></i>专题文献</h4>
|
||||
<ol>
|
||||
<?php foreach($this->themeref as $ref) :
|
||||
echo '<li>'.$ref->reference;
|
||||
echo '<a href="/knowledge/paper/id/'.$ref->id.'"><i class="icon-info-sign text-success"></i>查看</a>';
|
||||
if (empty($ref->link))
|
||||
{
|
||||
if(!empty($ref->attid))
|
||||
echo ' | <a href="/service/attach/id/'.$ref->attid.'"><i class="icon-download text-success"></i>下载</a>';
|
||||
}else{
|
||||
echo ' | <a href="'.$ref->link.'"><i class="icon-download text-success"></i>下载</a>';
|
||||
}
|
||||
echo "</li>";
|
||||
endforeach;
|
||||
?>
|
||||
</ol>
|
||||
<?php endif; if ($this->userref) : ?>
|
||||
<hr />
|
||||
<h4><i class="icon-eye-open text-success"></i>数据施引文献</h4>
|
||||
<ol>
|
||||
<?php foreach($this->userref as $ref) :
|
||||
echo '<li>'.$ref->reference;
|
||||
echo '<a href="/knowledge/paper/id/'.$ref->id.'"><i class="icon-info-sign text-success"></i>查看</a>';
|
||||
if (empty($ref->link))
|
||||
echo '<li>'.$ref->reference.'</li>';
|
||||
else
|
||||
echo '<li>'.$ref->reference.' <a href="'.$ref->link.'"><i class="icon-download text-success"></i>下载</a></li>';
|
||||
{
|
||||
if(!empty($ref->attid))
|
||||
echo '<a href="/service/attach/id/'.$ref->attid.'"><i class="icon-download text-success"></i>下载</a>';
|
||||
}else{
|
||||
echo '<a href="'.$ref->link.'"><i class="icon-download text-success"></i>下载</a>';
|
||||
}
|
||||
echo "</li>";
|
||||
endforeach;
|
||||
if (count($this->userref)==15)
|
||||
{
|
||||
echo '<a class="btn btn-success pull-right" href="/knowledge/user/uuid/'.$md->uuid.'" ><i class="icon-info-sign"></i>更多施引文献</a>';
|
||||
}
|
||||
?>
|
||||
</ol>
|
||||
<?php endif; ?>
|
||||
|
@ -129,7 +158,7 @@ if ($md->title_en) echo '<br />'.$this->escape($md->title_en);?>
|
|||
<?php if(!empty($this->fund)) : ?>
|
||||
<ul>
|
||||
<?php foreach($this->fund as $k=>$v) : ?>
|
||||
<li><?= $v['fund_type'] ?>:<?= $v['title'] ?>(项目编号:<?= $v['fund_id']?>) [<?= $v['fund_type_en'] ?>(No. <?= $v['fund_id']?>)]</li>
|
||||
<li><?= $v['fund_type'] ?>:<a href="/heihe/fund/id/<?= $v['id'] ?>"><?= $v['title'] ?></a>(项目编号:<?= $v['fund_id']?>) [<?= $v['fund_type_en'] ?>(No. <?= $v['fund_id']?>)]</li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
<?php elseif(!empty($md->suppinfo)) : ?>
|
||||
|
@ -450,7 +479,7 @@ endforeach;
|
|||
<a class="jiathis_counter_style"></a>
|
||||
</div>
|
||||
<!-- JiaThis Button END -->
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<script src="/js/metadata-view.js"></script>
|
||||
|
@ -525,4 +554,4 @@ var bound = {
|
|||
<p>没有找到对应的元数据。</p>
|
||||
<?php endif;?>
|
||||
</div>
|
||||
<!--<script type="text/javascript" src="http://v3.jiathis.com/code_mini/jia.js?uid=1336100079460458" charset="utf-8"></script>-->
|
||||
<script type="text/javascript" src="http://v3.jiathis.com/code_mini/jia.js?uid=1336100079460458" charset="utf-8"></script>
|
|
@ -5,16 +5,16 @@ $this->headTitle()->setSeparator(' - ');
|
|||
$this->headLink()->appendStylesheet('/css/water.css');
|
||||
$this->breadcrumb('<a href="/">首页</a>');
|
||||
$this->breadcrumb('<a href="/data">'.$this->config->title->data.'</a>');
|
||||
$this->breadcrumb('<a href="/heihe/">'.$this->config->title->heihe.'</a>');
|
||||
$this->breadcrumb('<a href="/hiwater/">'.$this->config->title->hiwater.'</a>');
|
||||
$this->breadcrumb('数据列表');
|
||||
$this->breadcrumb()->setSeparator(' > ');
|
||||
$this->theme->AppendPlus($this,'colorbox');
|
||||
?>
|
||||
<div class="row">
|
||||
<div class="span2">
|
||||
<div class="span3">
|
||||
<?= $this->partial('hiwater/navi.phtml'); ?>
|
||||
</div>
|
||||
<div class="span10">
|
||||
<div class="span9">
|
||||
<div><?= $this->breadcrumb() ?> </div>
|
||||
<div id="intro"></div>
|
||||
<?php if ($this->metadata) : ?>
|
||||
|
@ -22,12 +22,12 @@ $this->theme->AppendPlus($this,'colorbox');
|
|||
<ol class="md-list">
|
||||
<?php foreach($this->metadata as $md) : ?>
|
||||
<li>
|
||||
<a href="/heihe/view/uuid/<?php echo $md['uuid']; ?>"><?php echo $md['title']; ?></a>
|
||||
<a href="/hiwater/view/uuid/<?php echo $md['uuid']; ?>"><?php echo $md['title']; ?></a>
|
||||
<span class="pull-right">
|
||||
[<a class="colorbox" href="/service/bigthumb/uuid/<?php echo $md['uuid']; ?>" title="<?php echo $md['title']; ?>"><i class="icon-facetime-video"></i>缩略图幻灯片</a>]
|
||||
[<a href="/service/pdf/review/1/uuid/<?php echo $md['uuid']; ?>"><i class="icon-file"></i>PDF版本下载</a>]
|
||||
[<a href="/service/odt/review/1/uuid/<?php echo $md['uuid']; ?>"><i class="icon-book"></i>ODT版本下载</a>]
|
||||
[<a href="/service/doc/review/1/uuid/<?php echo $md['uuid']; ?>"><i class="icon-list-alt"></i>DOC版本下载</a>]
|
||||
[<a href="/service/pdf/uuid/<?php echo $md['uuid']; ?>"><i class="icon-file"></i>PDF版本下载</a>]
|
||||
[<a href="/service/odt/uuid/<?php echo $md['uuid']; ?>"><i class="icon-book"></i>ODT版本下载</a>]
|
||||
[<a href="/service/doc/uuid/<?php echo $md['uuid']; ?>"><i class="icon-list-alt"></i>DOC版本下载</a>]
|
||||
</span>
|
||||
</li>
|
||||
<?php endforeach; ?>
|
||||
|
|
|
@ -46,9 +46,16 @@ if ($md->title_en) echo '<br />'.$this->escape($md->title_en);?>
|
|||
<ol>
|
||||
<?php foreach($this->mcitation as $ref) :
|
||||
if (empty($ref->link))
|
||||
echo '<li>'.$ref->reference.'</li>';
|
||||
{
|
||||
echo '<li>'.$ref->reference;
|
||||
echo '<a href="/knowledge/paper/id/'.$ref->id.'"><i class="icon-info-sign text-success"></i>查看</a>';
|
||||
if(!empty($ref->attid)) {
|
||||
echo ' <a href="/service/attach/id/'.$ref->attid.'"><i class="icon-download text-success"></i>下载</a>';
|
||||
}
|
||||
echo "</li>";
|
||||
}
|
||||
else
|
||||
echo '<li>'.$ref->reference.' <a href="'.$ref->link.'"><i class="icon-download text-success"></i>下载</a></li>';
|
||||
echo '<li>'.$ref->reference.'<a href="/knowledge/paper/id/'.$ref->id.'"><i class="icon-info-sign text-success"></i>查看</a> <a href="'.$ref->link.'"><i class="icon-download text-success"></i>下载</a></li>';
|
||||
endforeach;
|
||||
?>
|
||||
</ol>
|
||||
|
@ -69,10 +76,11 @@ if ($md->title_en) echo '<br />'.$this->escape($md->title_en);?>
|
|||
?> (下载引用:<a href="/service/ris/lang/cn/uuid/<?php echo $md->uuid; ?>">RIS格式</a> | <a href="/service/ris/lang/en/uuid/<?php echo $md->uuid; ?>">RIS英文格式</a> | <a href="/service/bibtex/lang/cn/uuid/<?php echo $md->uuid; ?>">Bibtex格式</a> | <a href="/service/bibtex/lang/en/uuid/<?php echo $md->uuid; ?>">Bibtex英文格式</a>)</p>
|
||||
<?php endif; endif; endif; if ($this->ref) : ?>
|
||||
<hr />
|
||||
<h4><i class="icon-eye-open text-success"></i>建议参考文献</h4>
|
||||
<h4><i class="icon-eye-open text-success"></i>相关文献(作者推荐)</h4>
|
||||
<ol>
|
||||
<?php foreach($this->ref as $ref) :
|
||||
echo '<li>'.$ref->reference;
|
||||
echo '<a href="/knowledge/paper/id/'.$ref->id.'"><i class="icon-info-sign text-success"></i>查看</a>';
|
||||
if (empty($ref->link))
|
||||
{
|
||||
if(!empty($ref->attid))
|
||||
|
@ -84,17 +92,45 @@ if ($md->title_en) echo '<br />'.$this->escape($md->title_en);?>
|
|||
endforeach;
|
||||
?>
|
||||
</ol>
|
||||
<?php endif; ?>
|
||||
<?php if ($this->userref) : ?>
|
||||
<?php endif; if ($this->themeref) :?>
|
||||
|
||||
<hr />
|
||||
<h4>数据用户发表文献</h4>
|
||||
<h4><i class="icon-eye-open text-success"></i>专题文献</h4>
|
||||
<ol>
|
||||
<?php foreach($this->themeref as $ref) :
|
||||
echo '<li>'.$ref->reference;
|
||||
echo '<a href="/knowledge/paper/id/'.$ref->id.'"><i class="icon-info-sign text-success"></i>查看</a>';
|
||||
if (empty($ref->link))
|
||||
{
|
||||
if(!empty($ref->attid))
|
||||
echo ' | <a href="/service/attach/id/'.$ref->attid.'"><i class="icon-download text-success"></i>下载</a>';
|
||||
}else{
|
||||
echo ' | <a href="'.$ref->link.'"><i class="icon-download text-success"></i>下载</a>';
|
||||
}
|
||||
echo "</li>";
|
||||
endforeach;
|
||||
?>
|
||||
</ol>
|
||||
<?php endif; if ($this->userref) : ?>
|
||||
<hr />
|
||||
<h4><i class="icon-eye-open text-success"></i>数据施引文献</h4>
|
||||
<ol>
|
||||
<?php foreach($this->userref as $ref) :
|
||||
echo '<li>'.$ref->reference;
|
||||
echo '<a href="/knowledge/paper/id/'.$ref->id.'"><i class="icon-info-sign text-success"></i>查看</a>';
|
||||
if (empty($ref->link))
|
||||
echo '<li>'.$ref->reference.'</li>';
|
||||
else
|
||||
echo '<li>'.$ref->reference.' <a href="'.$ref->link.'"><i class="icon-download text-success"></i>下载</a></li>';
|
||||
{
|
||||
if(!empty($ref->attid))
|
||||
echo '<a href="/service/attach/id/'.$ref->attid.'"><i class="icon-download text-success"></i>下载</a>';
|
||||
}else{
|
||||
echo '<a href="'.$ref->link.'"><i class="icon-download text-success"></i>下载</a>';
|
||||
}
|
||||
echo "</li>";
|
||||
endforeach;
|
||||
if (count($this->userref)==15)
|
||||
{
|
||||
echo '<a class="btn btn-success pull-right" href="/knowledge/user/uuid/'.$md->uuid.'" ><i class="icon-info-sign"></i>更多施引文献</a>';
|
||||
}
|
||||
?>
|
||||
</ol>
|
||||
<?php endif; ?>
|
||||
|
@ -127,7 +163,7 @@ if ($md->title_en) echo '<br />'.$this->escape($md->title_en);?>
|
|||
<?php if(!empty($this->fund)) : ?>
|
||||
<ul>
|
||||
<?php foreach($this->fund as $k=>$v) : ?>
|
||||
<li><?= $v['fund_type'] ?>:<?= $v['title'] ?>(项目编号:<?= $v['fund_id']?>) [<?= $v['fund_type_en'] ?>(No. <?= $v['fund_id']?>)]</li>
|
||||
<li><?= $v['fund_type'] ?>:<a href="/data/fund/id/<?= $v['id'] ?>"><?= $v['title'] ?></a>(项目编号:<?= $v['fund_id']?>) [<?= $v['fund_type_en'] ?>(No. <?= $v['fund_id']?>)]</li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
<?php elseif(!empty($md->suppinfo)) : ?>
|
||||
|
|
|
@ -19,7 +19,7 @@ $this->headLink()->appendStylesheet('/css/colorbox.css');
|
|||
<h2>Publicated by CARD</h2>
|
||||
<div>
|
||||
<?php if (count($this->paginator)): ?>
|
||||
<ul>
|
||||
<ol start="<?php echo ($this->paginator->getCurrentPageNumber() - 1) * $this->paginator->getItemCountPerPage()+1; ?>">
|
||||
<?php foreach ($this->paginator as $item): ?>
|
||||
<li>
|
||||
<?php
|
||||
|
@ -31,7 +31,7 @@ $this->headLink()->appendStylesheet('/css/colorbox.css');
|
|||
?>
|
||||
</li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
</ol>
|
||||
<div class="pagenavi"><?= $this->paginator; ?></div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
|
|
|
@ -20,15 +20,15 @@ $this->headLink()->appendStylesheet('/css/colorbox.css');
|
|||
<h3><?php echo $this->paper['title']; ?></h3>
|
||||
<hr />
|
||||
<?php } ?>
|
||||
<?php if(count($this->author) > 0) {?>
|
||||
<?php if($this->author) : ?>
|
||||
<h4>Authors</h4>
|
||||
<ul>
|
||||
<?php foreach($this->author as $a) : ?>
|
||||
<li><?php echo $a['lastname'];if (!empty($a['firstname'])) echo ', '.$a['firstname']; ?></li>
|
||||
<li><?php echo $a['lastname'];if (!empty($a['firstname'])) echo ', '.$a['firstname']; ?> [<a href="/knowledge/search/author/<?php echo $a['id']; ?>/place/<?php echo $a['place']; ?>">All publications</a>]</li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
<hr />
|
||||
<?php } ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($this->paper['abstract']){ ?>
|
||||
<h4>Abstract</h4>
|
||||
|
@ -79,7 +79,7 @@ $this->headLink()->appendStylesheet('/css/colorbox.css');
|
|||
</div>
|
||||
</div>
|
||||
<script type="text/javascript" >
|
||||
$('#Nav-knowledge-author').addClass('active');
|
||||
$('#Nav-knowledge-user').addClass('active');
|
||||
</script>
|
||||
<script>
|
||||
function showdata(id,page){
|
||||
|
|
|
@ -43,7 +43,7 @@ $('#Nav-knowledge-westplan').addClass('active');
|
|||
</script>
|
||||
<script>
|
||||
function showdata(id,page){
|
||||
var url="/service/tagdatalist/id/"+id;
|
||||
var url="/service/refdatalist/id/"+id;
|
||||
$.ajax({
|
||||
'type':"GET",
|
||||
'url':url,
|
||||
|
|
|
@ -19,7 +19,7 @@ $this->headLink()->appendStylesheet('/css/colorbox.css');
|
|||
<h2>Cited By</h2>
|
||||
<div>
|
||||
<?php if (count($this->paginator)): ?>
|
||||
<ul>
|
||||
<ol start="<?php echo ($this->paginator->getCurrentPageNumber() - 1) * $this->paginator->getItemCountPerPage()+1; ?>">
|
||||
<?php foreach ($this->paginator as $item): ?>
|
||||
<li>
|
||||
<?php
|
||||
|
@ -32,7 +32,7 @@ $this->headLink()->appendStylesheet('/css/colorbox.css');
|
|||
<a class="btn btn-mini btn-info" href="javascript:;" onclick="showdata('<?php echo $item['id'];?>',0)">Related data</a>
|
||||
</li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
</ol>
|
||||
<div class="pagenavi"><?= $this->paginator; ?></div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
|
|
|
@ -55,9 +55,9 @@ h3.gs_rt{font-size:110%;}
|
|||
if (empty($ref->link))
|
||||
{
|
||||
if(!empty($ref->attid))
|
||||
echo '<a href="/service/attach/id/'.$ref->attid.'"><i class="icon-download text-success"></i>Download</a>';
|
||||
echo ' <a href="/service/attach/id/'.$ref->attid.'"><i class="icon-download text-success"></i>Download</a>';
|
||||
}else{
|
||||
echo '<a href="'.$ref->link.'"><i class="icon-download text-success"></i>Download</a>';
|
||||
echo ' <a href="'.$ref->link.'"><i class="icon-download text-success"></i>Download</a>';
|
||||
}
|
||||
echo "</li>";
|
||||
endforeach;
|
||||
|
@ -92,12 +92,16 @@ h3.gs_rt{font-size:110%;}
|
|||
if (empty($ref->link))
|
||||
{
|
||||
if(!empty($ref->attid))
|
||||
echo '<a href="/service/attach/id/'.$ref->attid.'"><i class="icon-download text-success"></i>Download</a>';
|
||||
echo ' <a href="/service/attach/id/'.$ref->attid.'"><i class="icon-download text-success"></i>Download</a>';
|
||||
}else{
|
||||
echo '<a href="'.$ref->link.'"><i class="icon-download text-success"></i>Download</a>';
|
||||
echo ' <a href="'.$ref->link.'"><i class="icon-download text-success"></i>Download</a>';
|
||||
}
|
||||
echo "</li>";
|
||||
endforeach;
|
||||
if (count($this->userref)==15)
|
||||
{
|
||||
echo '<a class="btn btn-success pull-right" href="/knowledge/user/uuid/'.$md->uuid.'" ><i class="icon-info-sign"></i>More</a>';
|
||||
}
|
||||
?>
|
||||
</ol>
|
||||
<?php endif; ?>
|
||||
|
@ -170,12 +174,6 @@ h3.gs_rt{font-size:110%;}
|
|||
<div id="related" class="tab-pane active">
|
||||
</div>
|
||||
<div id="literature" class="tab-pane">
|
||||
<div class="">
|
||||
<ul class="nav nav-pills lit-nav">
|
||||
<li><a href="javascript:;" class="scholar lit-nav-btn">Google Scholar</a></li>
|
||||
<li><a href="javascript:;" class="cnkiSearch lit-nav-btn">CNKI</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div id="literature-list">
|
||||
</div>
|
||||
</div>
|
||||
|
@ -385,10 +383,10 @@ endforeach;
|
|||
<ul class="unstyled">
|
||||
<li>Last update: <?php print date('Y-m-d',strtotime($md->ts_created)); ?></li>
|
||||
<li><strong>Download Metadata:</strong>
|
||||
<a href="/service/pdf/uuid/<?php echo $md->uuid; ?>"><img src="/images/pdf_icon.gif" alt="Adobe PDF格式" title="Adobe PDF"></a>
|
||||
<a href="/service/odt/uuid/<?php echo $md->uuid; ?>"><img src="/images/odt_icon.gif" alt="OpenOffice odt格式" title="OpenOffice odt"></a>
|
||||
<a href="/service/doc/uuid/<?php echo $md->uuid; ?>"><img src="/images/doc_icon.gif" alt="Word doc格式" title="Word doc"></a>
|
||||
<a href="/service/xml/uuid/<?php echo $md->uuid;?>"><img src="/images/xml_icon.gif" alt="查看XML源文件" title="XML"></a>
|
||||
<a href="/service/pdf/uuid/<?php echo $md->uuid; ?>"><img src="/images/pdf_icon.gif" alt="Adobe PDF" title="Adobe PDF"></a>
|
||||
<a href="/service/odt/uuid/<?php echo $md->uuid; ?>"><img src="/images/odt_icon.gif" alt="OpenOffice odt" title="OpenOffice odt"></a>
|
||||
<a href="/service/doc/uuid/<?php echo $md->uuid; ?>"><img src="/images/doc_icon.gif" alt="Word doc" title="Word doc"></a>
|
||||
<a href="/service/xml/uuid/<?php echo $md->uuid;?>"><img src="/images/xml_icon.gif" alt="XML" title="XML"></a>
|
||||
</li>
|
||||
<!--<li><a href="/data/detail/id/<?php echo $md->id;?>">详细元数据</a></li>-->
|
||||
<?php if($this->version->c>0):?>
|
||||
|
@ -411,7 +409,7 @@ $(function() {
|
|||
$('.scholar').click(function(){scholarSearch('<?php echo $ev;?>');});
|
||||
$('#related_t').click(function(){related(1);});
|
||||
$('#recommend_t').click(function(){recommend(0);});
|
||||
$('#literature_t').click(function(){literature(1);$('.literatures').parent('li').addClass('active')});
|
||||
$('#literature_t').click(function(){scholarSearch('<?php echo $ev;?>');$('.literatures').parent('li').addClass('active')});
|
||||
$('.literatures').click(function(){literature(1);});
|
||||
ajaxpage(0);
|
||||
related(1);
|
||||
|
@ -473,7 +471,4 @@ var bound = {
|
|||
</script>
|
||||
<?php else: ?>
|
||||
<p>Cannot find the metadata.</p>
|
||||
<p>没有找到对应的元数据。</p>
|
||||
<?php endif;?>
|
||||
<script type="text/javascript" src="http://v3.jiathis.com/code_mini/jia.js?uid=1336100079460458" charset="utf-8"></script>
|
||||
|
|
@ -1,4 +1,8 @@
|
|||
<?php
|
||||
|
||||
use Users\Member;
|
||||
use Users\Account;
|
||||
use Helpers\View as view;
|
||||
class CustomControllerAclManager extends Zend_Controller_Plugin_Abstract
|
||||
{
|
||||
// default user role if not logged or (or invalid role found)
|
||||
|
@ -32,7 +36,7 @@
|
|||
$this->acl->deny(null, 'author');
|
||||
// add an exception so guests can log in or register
|
||||
// in order to gain privilege
|
||||
$this->acl->allow('guest', 'account', array('login',
|
||||
$this->acl->allow('guest', 'account', array('login','oauth2login','callback',
|
||||
'logout',
|
||||
'captcha',
|
||||
'fetchpwd',
|
||||
|
@ -72,31 +76,23 @@
|
|||
|
||||
if(!$this->auth->hasIdentity())
|
||||
{
|
||||
$mb = new member();
|
||||
$mb->db=$this->db;
|
||||
if($mb->checkcookie())
|
||||
$member = new Member();
|
||||
|
||||
if($member->checkcookie())
|
||||
{
|
||||
$data = array(
|
||||
'username' => $member->user,
|
||||
'password' => $member->srpwd
|
||||
);
|
||||
|
||||
$account = new Account();
|
||||
$status = $account->storeLogin($data,false);
|
||||
|
||||
if(isset($status['error']))
|
||||
{
|
||||
$auth = Zend_Auth::getInstance();
|
||||
$authAdapter = new Zend_Auth_Adapter_DbTable($this->db);
|
||||
$authAdapter->setTableName('users')
|
||||
->setIdentityColumn('username')
|
||||
->setCredentialColumn('password');
|
||||
$authAdapter->setIdentity($mb->user)->setCredential($mb->srpwd);
|
||||
$result = $auth->authenticate($authAdapter);
|
||||
if ($result->isValid()) {
|
||||
$data = $authAdapter->getResultRowObject(null,'password');
|
||||
//头像
|
||||
include_once("Avatar.php");
|
||||
$avatar = new Avatar();
|
||||
$data->avatar = $avatar->Get($data->email,40);
|
||||
|
||||
//组ID
|
||||
include_once("Users.php");
|
||||
$usr = new Users($this->db);
|
||||
$data->gid = $usr->getGroup($data->id);
|
||||
|
||||
$auth->getStorage()->write($data);
|
||||
$this->db->query("update users set ts_last_login=now() where username=?",array($mb->user));
|
||||
$auth->clearIdentity();
|
||||
Member::flushcookie();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -175,7 +175,6 @@ class ISO19115
|
|||
//删除所有未用到的responsible数据
|
||||
$sql="delete from en.responsible where id not in (select distinct(resid) from role)";
|
||||
$db->query($sql);
|
||||
$this->view->config = Zend_Registry::get('config');
|
||||
|
||||
//if (!empty($this->doi)) $row->doi=$this->doi;
|
||||
//生成空白统计数据,可以转移到数据库端处理(todo)
|
||||
|
@ -210,6 +209,8 @@ class ISO19115
|
|||
if ($this->onlineresource) foreach($this->onlineresource as $resource)
|
||||
{
|
||||
$sql="insert into en.onlineresource (uuid,linkage,protocol,name,description) values(?,?,?,?,?)";
|
||||
if (!isset($resource['name'])) $resource['name']='';
|
||||
if (!isset($resource['description'])) $resource['description']='';
|
||||
$db->query($sql,array($this->uuid,$resource['linkage'],$resource['protocol'],$resource['name'],$resource['description']));
|
||||
}
|
||||
//处理缩略图
|
||||
|
@ -222,10 +223,7 @@ class ISO19115
|
|||
$r=$db->fetchRow($sql,array($this->uuid));
|
||||
if ($r)
|
||||
{
|
||||
if ($this->view->config)
|
||||
$geonetwork=$this->view->config->geonetwork->url;
|
||||
else
|
||||
$geonetwork='http://card.westgis.ac.cn/geonetwork/';
|
||||
$geonetwork='http://'.$_SERVER['HTTP_HOST'].'/geonetwork/';
|
||||
$thumb=base64_encode(file_get_contents($geonetwork.'srv/cn/resources.get?access=public&id='.$r->gid.'&fname='.urlencode($this->graph['filename'])));
|
||||
$sql="insert into en.thumbnail (id,data,filetype,filedesc,filename) values(?,?,?,?,?)";
|
||||
$db->query($sql,array($id,$thumb,$this->graph['filetype'],$this->graph['filedesc'],$this->graph['filename']));
|
||||
|
@ -425,7 +423,7 @@ class ISO19115
|
|||
$this->author[$cnt+$j]['postal']=$author->getElementsByTagName('postCode')->item(0)->nodeValue;
|
||||
$this->author[$cnt+$j]['city']=$author->getElementsByTagName('city')->item(0)->nodeValue;
|
||||
$this->author[$cnt+$j]['administrative']=$author->getElementsByTagName('adminArea')->item(0)->nodeValue;
|
||||
$this->author[$cnt+$j]['country']=$author->getElementsByTagName('country')->item(0)->nodeValue;
|
||||
@$this->author[$cnt+$j]['country']=$author->getElementsByTagName('country')->item(0)->nodeValue;
|
||||
$this->author[$cnt+$j]['role']=$author->getElementsByTagName('RoleCd')->item(0)->attributes->getNamedItem('value')->nodeValue;
|
||||
}
|
||||
$cnt+=$j+1;
|
||||
|
@ -434,7 +432,7 @@ class ISO19115
|
|||
{
|
||||
$this->author[$cnt+$m]['individual']=$author->getElementsByTagName('rpIndName')->item(0)->nodeValue;
|
||||
$this->author[$cnt+$m]['organisation']=$author->getElementsByTagName('rpOrgName')->item(0)->nodeValue;
|
||||
$this->author[$cnt+$m]['position']=$author->getElementsByTagName('rpPosName')->item(0)->nodeValue;
|
||||
@$this->author[$cnt+$m]['position']=$author->getElementsByTagName('rpPosName')->item(0)->nodeValue;
|
||||
$this->author[$cnt+$m]['delivery']=$author->getElementsByTagName('delPoint')->item(0)->nodeValue;
|
||||
$this->author[$cnt+$m]['phone']=$author->getElementsByTagName('voiceNum')->item(0)->nodeValue;
|
||||
$this->author[$cnt+$m]['email']=$author->getElementsByTagName('eMailAdd')->item(0)->nodeValue;
|
||||
|
@ -572,8 +570,8 @@ class ISO19115
|
|||
foreach($ds as $k=>$dataset)
|
||||
{
|
||||
$this->datasetSeries[$k]['seriesName']=$dataset->getElementsByTagName('seriesName')->item(0)->nodeValue;
|
||||
$this->datasetSeries[$k]['issId']=$dataset->getElementsByTagName('issId')->item(0)->nodeValue;
|
||||
$this->datasetSeries[$k]['artPage']=$dataset->getElementsByTagName('artPage')->item(0)->nodeValue;
|
||||
@$this->datasetSeries[$k]['issId']=$dataset->getElementsByTagName('issId')->item(0)->nodeValue;
|
||||
@$this->datasetSeries[$k]['artPage']=$dataset->getElementsByTagName('artPage')->item(0)->nodeValue;
|
||||
}
|
||||
//unsure which one.
|
||||
$ds=$this->dom->getElementsByTagName('Series');
|
||||
|
|
|
@ -26,6 +26,23 @@ class OfflinelogForm extends Zend_Form
|
|||
$address->setLabel('联系地址')->setRequired(true);
|
||||
$project=new Zend_Form_Element_Textarea('project');
|
||||
$project->setLabel('用途')->setRequired(true)->setAttrib('rows',2);
|
||||
$project_id=new Zend_Form_Element_Text('project_id');
|
||||
$project_id->setLabel('项目编号');
|
||||
$project_title=new Zend_Form_Element_Text('project_title');
|
||||
$project_title->setLabel('项目名称');
|
||||
$project_type=new Zend_Form_Element_Select('project_type');
|
||||
$project_type->setLabel('项目类型');
|
||||
$project_type->addMultiOption('','请选择项目类型');
|
||||
$project_type->addMultiOption('国家973计划项目课题','国家973计划项目课题');
|
||||
$project_type->addMultiOption('国家863计划课题','国家863计划课题');
|
||||
$project_type->addMultiOption('国家级科技支撑课题','国家级科技支撑课题');
|
||||
$project_type->addMultiOption('国家级科技重大专项','国家级科技重大专项');
|
||||
$project_type->addMultiOption('国家级国家重大工程','国家级国家重大工程');
|
||||
$project_type->addMultiOption('国家级国家自然科学基金','国家级国家自然科学基金');
|
||||
$project_type->addMultiOption('国际合作项目','国际合作项目');
|
||||
$project_type->addMultiOption('省部级项目','省部级项目');
|
||||
$project_type->addMultiOption('其他项目工程','其他项目工程');
|
||||
|
||||
$datalist=new Zend_Form_Element_Textarea('datalist');
|
||||
$datalist->setLabel('数据清单')->setRequired(true)->setAttrib('rows',2);
|
||||
$pdf=new Zend_Form_Element_File('pdf');
|
||||
|
@ -42,6 +59,6 @@ class OfflinelogForm extends Zend_Form
|
|||
$submit = new Zend_Form_Element_Submit('submit');
|
||||
$submit->setAttrib('id', 'submitbutton')->setLabel('添加');
|
||||
$this->setAttrib('enctype', 'multipart/form-data');
|
||||
$this->addElements(array($username,$email,$phone,$unit,$address,$postcode,$pdf,$ts_approved,$project,$datalist,$id,$submit));
|
||||
$this->addElements(array($username,$email,$phone,$unit,$address,$postcode,$pdf,$ts_approved,$project_id,$project_title,$project_type,$project,$datalist,$id,$submit));
|
||||
}
|
||||
}
|
|
@ -151,7 +151,7 @@ class Files{
|
|||
|
||||
$msg['file_url'] = $file_url;
|
||||
$msg['file_size'] = $file_size;
|
||||
$msg['db_path'] = $this->config->upload . $dbsave;
|
||||
$msg['db_path'] = $dbsave;
|
||||
$msg['realname'] = $file_name;
|
||||
$msg['file_ext'] = $file_ext;
|
||||
$msg['file_mime'] = $this->getFileMime($file_path);
|
||||
|
@ -383,6 +383,15 @@ class Files{
|
|||
header("Content-Length: ".$fsize);
|
||||
ob_clean();
|
||||
flush();
|
||||
|
||||
if($fsize > 5*1024*1024)
|
||||
{
|
||||
$fp = fopen($fullPath, "r");
|
||||
while(!feof($fp)) {
|
||||
echo fgets($fp, 4096);
|
||||
}
|
||||
}
|
||||
|
||||
if(readfile($fullPath))
|
||||
return true;
|
||||
else
|
||||
|
|
|
@ -47,6 +47,7 @@ class Thumbnail {
|
|||
'image/gif' => 'imagegif'
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* 文件方式加载图片
|
||||
* @param string $image 源图片
|
||||
|
@ -71,6 +72,7 @@ class Thumbnail {
|
|||
trigger_error('不支持'.$dims['mime']."图片类型");
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 字符串方式加载图片
|
||||
* @param string $image 字符串
|
||||
|
@ -92,6 +94,7 @@ class Thumbnail {
|
|||
trigger_error("不支持".$mime."图片格式");
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 生成缩略图
|
||||
* @param string $file 文件名。如果不为空则储存为文件,否则直接输出到浏览器
|
||||
|
@ -104,6 +107,7 @@ class Thumbnail {
|
|||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 处理缩放
|
||||
*/
|
||||
|
@ -157,6 +161,73 @@ class Thumbnail {
|
|||
return $this->thumbHeight;
|
||||
}
|
||||
|
||||
static function cut($source_path, $target_width, $target_height){
|
||||
$source_info = getimagesize($source_path);
|
||||
$source_width = $source_info[0];
|
||||
$source_height = $source_info[1];
|
||||
$source_mime = $source_info['mime'];
|
||||
$source_ratio = $source_height / $source_width;
|
||||
$target_ratio = $target_height / $target_width;
|
||||
|
||||
// 源图过高
|
||||
if ($source_ratio > $target_ratio)
|
||||
{
|
||||
$cropped_width = $source_width;
|
||||
$cropped_height = $source_width * $target_ratio;
|
||||
$source_x = 0;
|
||||
$source_y = ($source_height - $cropped_height) / 2;
|
||||
}
|
||||
// 源图过宽
|
||||
elseif ($source_ratio < $target_ratio)
|
||||
{
|
||||
$cropped_width = $source_height / $target_ratio;
|
||||
$cropped_height = $source_height;
|
||||
$source_x = ($source_width - $cropped_width) / 2;
|
||||
$source_y = 0;
|
||||
}
|
||||
// 源图适中
|
||||
else
|
||||
{
|
||||
$cropped_width = $source_width;
|
||||
$cropped_height = $source_height;
|
||||
$source_x = 0;
|
||||
$source_y = 0;
|
||||
}
|
||||
|
||||
switch ($source_mime)
|
||||
{
|
||||
case 'image/gif':
|
||||
$source_image = imagecreatefromgif($source_path);
|
||||
break;
|
||||
|
||||
case 'image/jpeg':
|
||||
$source_image = imagecreatefromjpeg($source_path);
|
||||
break;
|
||||
|
||||
case 'image/png':
|
||||
$source_image = imagecreatefrompng($source_path);
|
||||
break;
|
||||
|
||||
default:
|
||||
return false;
|
||||
break;
|
||||
}
|
||||
|
||||
$target_image = imagecreatetruecolor($target_width, $target_height);
|
||||
$cropped_image = imagecreatetruecolor($cropped_width, $cropped_height);
|
||||
|
||||
// 裁剪
|
||||
imagecopy($cropped_image, $source_image, 0, 0, $source_x, $source_y, $cropped_width, $cropped_height);
|
||||
// 缩放
|
||||
imagecopyresampled($target_image, $cropped_image, 0, 0, 0, 0, $target_width, $target_height, $cropped_width, $cropped_height);
|
||||
|
||||
header('Content-Type: image/jpeg');
|
||||
imagejpeg($target_image);
|
||||
imagedestroy($source_image);
|
||||
imagedestroy($target_image);
|
||||
imagedestroy($cropped_image);
|
||||
}//cute
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -4,19 +4,25 @@ namespace Helpers;
|
|||
class Curl
|
||||
{
|
||||
private $options;
|
||||
public $port = 80;
|
||||
public $H;
|
||||
|
||||
public function __construct($options = array())
|
||||
{
|
||||
$this->initOptions($options);
|
||||
}
|
||||
|
||||
public function initOptions($options = array())
|
||||
{
|
||||
$this->options = array_merge(array(
|
||||
'debug' => false,
|
||||
'http_port' => '80',
|
||||
'http_port' => $this->port,
|
||||
'user_agent' => 'Westdc DataService',
|
||||
'timeout' => 20,
|
||||
'curlopts' => null,
|
||||
'verifyssl' => true,
|
||||
), $options);
|
||||
}
|
||||
|
||||
/**
|
||||
* Send a request to the server, receive a response
|
||||
*
|
||||
|
@ -70,6 +76,11 @@ class Curl
|
|||
$headers[] = 'Content-Length: 0';
|
||||
}
|
||||
|
||||
if(!empty($this->H) && is_array($this->H) && count($this->H) > 0)
|
||||
{
|
||||
$headers = array_merge($headers,$this->H);
|
||||
}
|
||||
|
||||
$this->debug('send '.$httpMethod.' request: '.$url);
|
||||
|
||||
$curlOptions += array(
|
||||
|
@ -82,6 +93,16 @@ class Curl
|
|||
CURLOPT_SSL_VERIFYPEER => $options['verifyssl'],
|
||||
);
|
||||
|
||||
if($this->port === 443)
|
||||
{
|
||||
/*$curlOptions += array(
|
||||
CURLOPT_SSLVERSION => 3,
|
||||
CURLOPT_SSLCERT => "../application/module/Open/apache.pem",
|
||||
CURLOPT_SSLKEY => "../application/module/Open/apache.key",
|
||||
CURLOPT_CAINFO => "../application/module/Open/apache.pem"
|
||||
);*/
|
||||
}
|
||||
|
||||
if (ini_get('open_basedir') == '' && ini_get('safe_mode') != 'On') {
|
||||
$curlOptions[CURLOPT_FOLLOWLOCATION] = true;
|
||||
}
|
||||
|
|
|
@ -26,5 +26,6 @@ class Table
|
|||
|
||||
//开放平台
|
||||
public $oauth_clients = "oauth_clients";
|
||||
public $oauth_token = "oauth_login_token";
|
||||
public $oauth_access_tokens = "oauth_access_tokens";
|
||||
}
|
|
@ -55,7 +55,7 @@ class View extends \Zend_Controller_Plugin_Abstract
|
|||
$html = '<div class="alert alert-block fade in '.$AlertType.'" id="Alert-error-box">'."\r\n";
|
||||
$html.= '<a class="close" data-dismiss="alert" href="#">×</a>'."\r\n";
|
||||
if(!is_array($content)) {
|
||||
$html.= '<h4 class="alert-heading">'.$content.'</h4>'."\r\n";
|
||||
$html.= ''.$content.''."\r\n";
|
||||
}else{
|
||||
$html.= '<ul>'."\r\n";
|
||||
foreach($content as $v) {
|
||||
|
|
|
@ -121,7 +121,12 @@ class Mail
|
|||
|
||||
$this->subject = $subject;
|
||||
$this->body = $body;
|
||||
if(isset($row['type']))
|
||||
{
|
||||
$this->type = $row['type'];
|
||||
}else{
|
||||
$this->type = "text";
|
||||
}
|
||||
|
||||
}//加载模板
|
||||
|
||||
|
|
|
@ -0,0 +1,172 @@
|
|||
<?php
|
||||
namespace Open;
|
||||
|
||||
use \Helpers\View as view;
|
||||
use \Helpers\Curl;
|
||||
use \Open\Source;
|
||||
use \Open\Listener\ClientListener as Listener;
|
||||
|
||||
class Client extends \Zend_Controller_Plugin_Abstract
|
||||
{
|
||||
public $db;
|
||||
public $config;
|
||||
public $table;
|
||||
private $source = NULL;
|
||||
private $target;
|
||||
|
||||
public $events;
|
||||
|
||||
public function __construct($target = NULL){
|
||||
if(empty($db))
|
||||
{
|
||||
$this->db = \Zend_Registry::get('db');
|
||||
}else{
|
||||
$this->db = $db;
|
||||
}
|
||||
|
||||
$this->config = \Zend_Registry::get('config');
|
||||
|
||||
$this->table = new \Helpers\Table();
|
||||
|
||||
$this->target = $target;
|
||||
|
||||
$Listener = new Listener();
|
||||
@$this->events()->attachAggregate($Listener);
|
||||
}
|
||||
|
||||
public function events(\Zend_EventManager_EventCollection $events = NULL)
|
||||
{
|
||||
if ($events !== NULL) {
|
||||
$this->events = $events;
|
||||
} elseif ($this->events === NULL) {
|
||||
$this->events = new \Zend_EventManager_EventManager(__CLASS__);
|
||||
}
|
||||
return $this->events;
|
||||
}
|
||||
|
||||
public function initSource()
|
||||
{
|
||||
$this->source = new Source('heihedata');
|
||||
}
|
||||
|
||||
public function getSource()
|
||||
{
|
||||
return $this->source;
|
||||
}
|
||||
|
||||
//创建获取Code的URL
|
||||
public function makeRequestCodeUrl($target = NULL)
|
||||
{
|
||||
if(empty($this->source))
|
||||
{
|
||||
$this->initSource();
|
||||
}
|
||||
|
||||
if(empty($target))
|
||||
{
|
||||
$target = $this->target;
|
||||
}
|
||||
|
||||
$main_target = $this->source->getTarget($target);
|
||||
|
||||
if($main_target === false)
|
||||
{
|
||||
return "此登录接口可能不存在";
|
||||
}
|
||||
|
||||
$source = $this->source->getSource($target);
|
||||
|
||||
if($source === false)
|
||||
{
|
||||
return "此登录接口暂不可用";
|
||||
}
|
||||
|
||||
$main_url = $main_target['code'];
|
||||
|
||||
$param = array(
|
||||
$source->param['id'] => $source->config['id'],
|
||||
$source->param['secret'] => $source->config['secret'],
|
||||
$source->param['callback'] => $source->config['callback'],
|
||||
$source->param['code_response'] => $main_target['code_response']
|
||||
);
|
||||
|
||||
if(isset($source->config['other']))
|
||||
{
|
||||
$param = array_merge($param,$source->config['other']);
|
||||
}
|
||||
|
||||
$url = $main_url."?".http_build_query($param);
|
||||
|
||||
return $url;
|
||||
|
||||
}
|
||||
|
||||
//获得token
|
||||
public function requestToken($code,$target = NULL)
|
||||
{
|
||||
if(empty($target))
|
||||
{
|
||||
$target = $this->target;
|
||||
}
|
||||
|
||||
if(empty($code))
|
||||
{
|
||||
return "未获得您的授权码";
|
||||
}
|
||||
|
||||
$main_target = $this->source->getTarget($target);
|
||||
$client = $this->source->getSource($target);
|
||||
|
||||
if($client === false)
|
||||
{
|
||||
return "请求发生错误,登录接口不存在或者可能不再适用";
|
||||
}
|
||||
|
||||
$main_url = $main_target['token'];
|
||||
$param = array(
|
||||
$client->param['id'] => $client->config['id'],
|
||||
$client->param['secret'] => $client->config['secret'],
|
||||
$client->param['grant_type'] => $main_target['grant_type'],
|
||||
$client->param['callback'] => $client->config['callback'],
|
||||
$client->param['code'] => $code
|
||||
);
|
||||
|
||||
$curl = new Curl();
|
||||
$curl->port = 443;
|
||||
$curl->initOptions(array('verifyssl'=>false));
|
||||
$data = $curl->request($main_url,$param,"POST");
|
||||
|
||||
$cache_data = json_decode($data['response'],true);
|
||||
|
||||
if(!isset($cache_data['expires_in']))
|
||||
{
|
||||
return "未获得授权信息,请重试链接";
|
||||
}
|
||||
|
||||
return $cache_data;
|
||||
|
||||
}
|
||||
|
||||
//储存token信息
|
||||
public function storageTokenData($type,$token)
|
||||
{
|
||||
if(empty($type))
|
||||
{
|
||||
return "接口类型错误";
|
||||
}
|
||||
|
||||
if(empty($token))
|
||||
{
|
||||
return "登录信息有误,请重新登录";
|
||||
}
|
||||
|
||||
$param = compact("type","token");
|
||||
|
||||
$results = $this->events()->trigger('tokenStorage', $this, $param);
|
||||
return $cache_data = $results->bottom();
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue