merge sanjiangyuan branch r4109 - r4535 to sanjiangyuan-sub
This commit is contained in:
commit
b55e23cf2e
|
@ -1,6 +1,9 @@
|
|||
<?php
|
||||
use Helpers\View as view;
|
||||
use Reference\Reference;
|
||||
use Reference\Ris;
|
||||
use Reference\RisOutput;
|
||||
use Helpers\dbh;
|
||||
use \Files\Files;
|
||||
|
||||
class Admin_DataController extends Zend_Controller_Action
|
||||
|
@ -553,9 +556,9 @@ class Admin_DataController extends Zend_Controller_Action
|
|||
if ($host=='ftp1.westgis.ac.cn')
|
||||
{
|
||||
file_get_contents("http://ftp1.westgis.ac.cn/proftp_upload.php?uuid=".$uuid."&filelist=1");
|
||||
} else if ($host=='ftp2.westgis.ac.cn')
|
||||
} else if ($host=='ftp.sanjiangyuan.org.cn')
|
||||
{
|
||||
file_get_contents("http://ftp2.westgis.ac.cn/proftp_upload.php?uuid=".$uuid."&filelist=1");
|
||||
file_get_contents("http://ftp.sanjiangyuan.org.cn/proftp_upload.php?uuid=".$uuid."&filelist=1");
|
||||
}
|
||||
|
||||
if($ds)
|
||||
|
@ -596,9 +599,9 @@ class Admin_DataController extends Zend_Controller_Action
|
|||
if ($host=='ftp1.westgis.ac.cn')
|
||||
{
|
||||
file_get_contents("http://ftp1.westgis.ac.cn/proftp_upload.php?uuid=".$uuid."&filelist=1");
|
||||
} else if ($host=='ftp2.westgis.ac.cn')
|
||||
} else if ($host=='ftp.sanjiangyuan.org.cn')
|
||||
{
|
||||
file_get_contents("http://ftp2.westgis.ac.cn/proftp_upload.php?uuid=".$uuid."&filelist=1");
|
||||
file_get_contents("http://ftp.sanjiangyuan.org.cn/proftp_upload.php?uuid=".$uuid."&filelist=1");
|
||||
}
|
||||
|
||||
if($ds)
|
||||
|
@ -627,9 +630,9 @@ class Admin_DataController extends Zend_Controller_Action
|
|||
{
|
||||
file_get_contents("http://ftp1.westgis.ac.cn/proftp_upload.php?uuid=".$uuid."&filelist=1");
|
||||
echo '<h1>数据目录成功导入!</h1>';
|
||||
} else if ($row['host']=='ftp2.westgis.ac.cn')
|
||||
} else if ($row['host']=='ftp.sanjiangyuan.org.cn')
|
||||
{
|
||||
file_get_contents("http://ftp2.westgis.ac.cn/proftp_upload.php?uuid=".$uuid."&filelist=1");
|
||||
file_get_contents("http://ftp.sanjiangyuan.org.cn/proftp_upload.php?uuid=".$uuid."&filelist=1");
|
||||
echo '<h1>数据目录成功导入!</h1>';
|
||||
} else {
|
||||
echo '<h1>数据目录未导入!</h1>';
|
||||
|
@ -1126,6 +1129,7 @@ class Admin_DataController extends Zend_Controller_Action
|
|||
$keyword = $this->view->q = trim($this->_getParam('q'));
|
||||
$order = $this->view->search_order = trim($this->_getParam('order'));
|
||||
$sort = $this->view->search_sort = trim($this->_getParam('sort'));
|
||||
$field = $this->view->search_field = $this->_getParam('field');
|
||||
|
||||
$reference = new Reference();
|
||||
|
||||
|
@ -1134,6 +1138,11 @@ class Admin_DataController extends Zend_Controller_Action
|
|||
$reference->keyword = $keyword;
|
||||
}
|
||||
|
||||
if(!empty($field))
|
||||
{
|
||||
$reference->field = $field;
|
||||
}
|
||||
|
||||
if(!empty($order))
|
||||
{
|
||||
$reference->order = $order;
|
||||
|
@ -1144,19 +1153,40 @@ class Admin_DataController extends Zend_Controller_Action
|
|||
$reference->sort = $sort;
|
||||
}
|
||||
|
||||
$this->view->reference = $reference;
|
||||
$this->view->page = $this->_getParam('page');
|
||||
$this->view->pagelimit = 12;
|
||||
|
||||
//文献首页
|
||||
if(empty($ac))
|
||||
{
|
||||
$this->view->referenceType = $reference->referenceType();
|
||||
view::addPaginator($reference->fetchReferences(),$this,12);
|
||||
view::addPaginator($reference->fetchReferences(),$this, $this->view->pagelimit);
|
||||
$this->view->years = $reference->countByYear();
|
||||
return true;
|
||||
}
|
||||
else if ($ac == "water")
|
||||
{
|
||||
$this->view->referenceType = $reference->referenceType();
|
||||
view::addPaginator($reference->fetchThemeReferences('water'),$this,10);
|
||||
view::addPaginator($reference->fetchThemeReferences('water'),$this,$this->view->pagelimit);
|
||||
return true;
|
||||
}
|
||||
else if ($ac == "westdc")
|
||||
{
|
||||
$this->view->referenceType = $reference->referenceType();
|
||||
view::addPaginator($reference->fetchWestdcReferences(),$this,$this->view->pagelimit);
|
||||
return true;
|
||||
}
|
||||
else if ($ac == "todo")
|
||||
{
|
||||
$this->view->referenceType = $reference->referenceType();
|
||||
view::addPaginator($reference->fetchTodoReferences(),$this,$this->view->pagelimit);
|
||||
return true;
|
||||
}
|
||||
|
||||
unset($this->view->reference);
|
||||
unset($this->view->page);
|
||||
unset($this->view->pagelimit);
|
||||
|
||||
//添加
|
||||
if($ac == "add")
|
||||
|
@ -1326,6 +1356,81 @@ class Admin_DataController extends Zend_Controller_Action
|
|||
}
|
||||
}
|
||||
|
||||
//ris更新单篇
|
||||
if($ac == "singleris")
|
||||
{
|
||||
$this->_helper->viewRenderer('ref-singleris');
|
||||
$id = (int)$this->_getParam('id');
|
||||
$this->view->ristext = $this->_getParam('ristext');
|
||||
|
||||
if($id < 1)
|
||||
{
|
||||
view::Post($this,"参数错误!",-1);
|
||||
return true;
|
||||
}
|
||||
|
||||
$this->view->referenceData = $reference->getOneReferenceData($id);
|
||||
|
||||
if(!empty($submit))
|
||||
{
|
||||
$ris = new Ris();
|
||||
$data = $ris->loadout();
|
||||
|
||||
if(count($data) < 1)
|
||||
{
|
||||
view::Post($this,"输入的RIS信息有误".'<a href="/admin/data/ref/ac/add/id/'.$id.'">查看详细</a>',-1);
|
||||
return true;
|
||||
}
|
||||
|
||||
if($ris->updateWithRis($id,$data[0]) === true)
|
||||
{
|
||||
view::Post($this,"编辑成功!".'<a href="/admin/data/ref/ac/add/id/'.$id.'">查看详细</a>',-2);
|
||||
return true;
|
||||
}else{
|
||||
view::Post($this,"编辑失败!".'<a href="/admin/data/ref/ac/add/id/'.$id.'">查看详细</a>',-1);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
return true;
|
||||
}//ris单篇更新
|
||||
|
||||
//ris导出
|
||||
if($ac == "risoutput")
|
||||
{
|
||||
$this->_helper->viewRenderer('ref-risoutput');
|
||||
$this->view->years = $reference->countByYear();
|
||||
|
||||
if(!empty($submit))
|
||||
{
|
||||
$mode = $this->_getParam('mode');
|
||||
|
||||
$risOutput = new RisOutput();
|
||||
$preData = $risOutput->preRead($mode);
|
||||
|
||||
$risData = $risOutput->processArrayDataToRisData($preData);
|
||||
|
||||
$risText = $risOutput->output($risData);
|
||||
|
||||
echo "<pre>";
|
||||
echo $risText;
|
||||
echo "</pre>";
|
||||
}
|
||||
}//ris output
|
||||
|
||||
if($ac == "ristest")
|
||||
{
|
||||
$this->_helper->viewRenderer('ref-ris');
|
||||
$submit = $this->_getParam('submit');
|
||||
|
||||
if(!empty($submit))
|
||||
{
|
||||
$ris = new \Reference\Ris();
|
||||
view::Dump($ris->processRis(NULL,$this->_getParam('ristext')),false);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}//文献管理 refAction()
|
||||
|
||||
/*
|
||||
|
@ -1788,8 +1893,8 @@ class Admin_DataController extends Zend_Controller_Action
|
|||
|
||||
$id = $this->_getParam('attupdate');
|
||||
|
||||
$files=new files();
|
||||
$msg = $files -> upload($this->view->config->upload,$_FILES['Filedata'],empty($uuid)?'file':'md');
|
||||
$files=new Files();
|
||||
$msg = $files -> upload($_FILES['Filedata'],empty($uuid)?'file/':'md/',true);
|
||||
|
||||
if(empty($msg['error']))
|
||||
{
|
||||
|
@ -1797,7 +1902,7 @@ class Admin_DataController extends Zend_Controller_Action
|
|||
$filename = $msg['db_path'];
|
||||
$filesize = $msg['file_size'];
|
||||
$filedesc = $this->_request->getParam('filedesc');
|
||||
$filetype = $msg['file_type'];
|
||||
$filetype = 'md';
|
||||
$realname = $msg['realname'];
|
||||
|
||||
|
||||
|
@ -2116,8 +2221,8 @@ class Admin_DataController extends Zend_Controller_Action
|
|||
exit();
|
||||
}
|
||||
|
||||
$files=new files();
|
||||
$msg = $files -> upload($this->view->config->upload,$_FILES['Filedata'],empty($uuid)?'file':'md');
|
||||
$files=new Files();
|
||||
$msg = $files -> upload($_FILES['Filedata'],empty($uuid)?'file/':'md/',true);
|
||||
|
||||
if(empty($msg['error']))
|
||||
{
|
||||
|
@ -2125,7 +2230,7 @@ class Admin_DataController extends Zend_Controller_Action
|
|||
$filename = $msg['db_path'];
|
||||
$filesize = $msg['file_size'];
|
||||
$filedesc = $this->_request->getParam('filedesc');
|
||||
$filetype = $msg['file_type'];
|
||||
$filetype = 'md';
|
||||
$realname = $msg['realname'];
|
||||
|
||||
|
||||
|
@ -2184,10 +2289,6 @@ class Admin_DataController extends Zend_Controller_Action
|
|||
$rs = $this->db->query($sql);
|
||||
$atts = $rs->fetchAll();
|
||||
|
||||
foreach($atts as $k=>$v)
|
||||
{
|
||||
$atts[$k]['html']= $v['realname'].'['. round($v['filesize']/1024,2) .' kb]<input type="hidden" name="atts[]" value="'.$v['id'].'" /><div class="cancel"><a href="javascript:;" id="deletebtn_'.$v['id'].'"><img border="0" src="/static/js/uploadify/cancel.png" /></a></div>';
|
||||
}
|
||||
echo Zend_Json::encode($atts);
|
||||
exit();
|
||||
}else
|
||||
|
@ -2209,6 +2310,7 @@ class Admin_DataController extends Zend_Controller_Action
|
|||
|
||||
$ac = $this->_request->getParam('ac');
|
||||
$uuid = $this->_request->getParam('uuid');
|
||||
set_time_limit(0);
|
||||
|
||||
$auth = Zend_Auth::getInstance();
|
||||
if($auth->hasIdentity())
|
||||
|
@ -2566,7 +2668,7 @@ class Admin_DataController extends Zend_Controller_Action
|
|||
unset($mailtp);
|
||||
//email to author
|
||||
$mail=new WestdcMailer($this->view->config->smtp);
|
||||
$mail->setFrom($this->view->config->service->email,'西部数据中心服务组');
|
||||
$mail->setFrom($this->view->config->service->email,'数据服务组');
|
||||
$mailtp=new EmailText($this->db,"version-commit-author",array(
|
||||
'user' => $user->username,
|
||||
'uuid' => $row['uuid'],
|
||||
|
@ -2620,7 +2722,7 @@ class Admin_DataController extends Zend_Controller_Action
|
|||
unset($mailtp);
|
||||
//email to author
|
||||
$mail=new WestdcMailer($this->view->config->smtp);
|
||||
$mail->setFrom($this->view->config->service->email,'西部数据中心服务组');
|
||||
$mail->setFrom($this->view->config->service->email,'数据服务组');
|
||||
$mailtp=new EmailText($this->db,"version-commit-author",array(
|
||||
'user' => $user->username,
|
||||
'uuid' => $row['uuid'],
|
||||
|
@ -2686,7 +2788,7 @@ class Admin_DataController extends Zend_Controller_Action
|
|||
|
||||
//email to admin & author
|
||||
$mail=new WestdcMailer($this->view->config->smtp);
|
||||
$mail->setFrom($this->view->config->service->email,'西部数据中心服务组');
|
||||
$mail->setFrom($this->view->config->service->email,'数据服务组');
|
||||
$mailtp=new EmailText($this->db,"metadata-release",array(
|
||||
'user' => $user->username,
|
||||
'uuid' => $row['uuid'],
|
||||
|
@ -3837,6 +3939,22 @@ class Admin_DataController extends Zend_Controller_Action
|
|||
|
||||
}//fund
|
||||
|
||||
public function visualAction()
|
||||
{
|
||||
$uuid = $this->_getParam('uuid');
|
||||
$submit = $this->_getParam('submit');
|
||||
|
||||
if(!empty($uuid))
|
||||
{
|
||||
$this->_helper->viewRenderer('visual-add');
|
||||
$this->view->data = ['uuid' => $uuid];
|
||||
if(empty($submit))
|
||||
return true;
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
public function doiAction()
|
||||
{
|
||||
$ac = $this->_getParam('ac');
|
||||
|
@ -3899,6 +4017,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);
|
||||
|
|
|
@ -4,6 +4,7 @@ use Files\Files;
|
|||
use Files\Output;
|
||||
use Files\Listener\FileListener;
|
||||
use Order\Manager\Offlineapp;
|
||||
use Order\Manager\Application;
|
||||
use data\DataService;
|
||||
use Mail\Mail;
|
||||
|
||||
|
@ -374,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');
|
||||
|
@ -581,7 +582,7 @@ class Admin_DownController extends Zend_Controller_Action
|
|||
foreach($rs as $data) {
|
||||
if ($data['host']=='ftp1.westgis.ac.cn')
|
||||
$has_ftp1=true;
|
||||
if ($data['host']=='ftp2.westgis.ac.cn')
|
||||
if ($data['host']=='ftp.sanjiangyuan.org.cn')
|
||||
$has_ftp2=true;
|
||||
|
||||
// deal with ftp.westgis.ac.cn, use g6 to add path
|
||||
|
@ -594,7 +595,7 @@ class Admin_DownController extends Zend_Controller_Action
|
|||
if ($has_ftp1)
|
||||
{
|
||||
$user=(object)array("id"=>$row['userid'],
|
||||
"username"=>"westdc_".$row['userid'],
|
||||
"username"=>"sjy_".$row['userid'],
|
||||
"password"=>$password,
|
||||
"time"=>date('Y-m-d H:i:s', strtotime('+2 week')),
|
||||
//"path"=>$path,
|
||||
|
@ -621,12 +622,12 @@ class Admin_DownController extends Zend_Controller_Action
|
|||
if ($has_ftp2)
|
||||
{
|
||||
$user=(object)array("id"=>$row['userid'],
|
||||
"username"=>"westdc_".$row['userid'],
|
||||
"username"=>"sjy_".$row['userid'],
|
||||
"password"=>$password,
|
||||
"time"=>date('Y-m-d H:i:s', strtotime('+2 week')),
|
||||
//"path"=>$path,
|
||||
"param"=>"offlineappid=".$finish,
|
||||
"host"=>'ftp2.westgis.ac.cn',
|
||||
"host"=>'ftp.sanjiangyuan.org.cn',
|
||||
"maxdata"=>$this->view->config->download->max,
|
||||
"datacount"=>1 //represent one offline application
|
||||
);
|
||||
|
@ -649,10 +650,10 @@ class Admin_DownController extends Zend_Controller_Action
|
|||
$ftphost='ftp://ftp1.westgis.ac.cn';
|
||||
} else if (!$has_ftp1 && $has_ftp2)
|
||||
{
|
||||
$ftphost='ftp://ftp2.westgis.ac.cn';
|
||||
$ftphost='ftp://ftp.sanjiangyuan.org.cn';
|
||||
} else if ($has_ftp1 && $has_ftp2)
|
||||
{
|
||||
$ftphost='ftp://ftp1.westgis.ac.cn 以及 ftp://ftp2.westgis.ac.cn';
|
||||
$ftphost='ftp://ftp1.westgis.ac.cn 以及 ftp://ftp.sanjiangyuan.org.cn';
|
||||
}
|
||||
//发送用户邮件进行信息提示和说明
|
||||
$mail = new WestdcMailer($this->view->config->smtp);
|
||||
|
@ -874,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 {
|
||||
|
@ -896,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('提示信息:您已经编辑添加该记录。');
|
||||
|
@ -1049,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();
|
||||
|
@ -1080,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();
|
||||
|
@ -1137,16 +1149,15 @@ class Admin_DownController extends Zend_Controller_Action
|
|||
->setBody($objWriter->save('php://output'));*/
|
||||
}
|
||||
|
||||
$select=$this->db->select();
|
||||
$select->from('offlineapp')->where('ts_approved is not null')->where('pdflink is not null')->where('status>=0')->order('ts_created desc');
|
||||
$paginator = Zend_Paginator::factory($select);
|
||||
$paginator->setCurrentPageNumber($this->_getParam('page'));
|
||||
$paginator->setItemCountPerPage($this->view->config->page->max);
|
||||
$paginator->setView($this->view);
|
||||
Zend_View_Helper_PaginationControl::setDefaultViewPartial('pagination.phtml');
|
||||
$this->view->paginator=$paginator;
|
||||
|
||||
$this->view->page = $this->_getParam('page');
|
||||
|
||||
$application = new Application();
|
||||
|
||||
$this->view->q = $application->keyword = $this->_getParam('q');
|
||||
$application->filter = $this->_getParam('filter');
|
||||
view::addPaginator($application->passed(),$this,20);
|
||||
|
||||
return true;
|
||||
}
|
||||
//在线数据下载情况,仅针对onlineapp表,自2011-9-8开始记录。
|
||||
function onlineAction()
|
||||
|
@ -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";
|
||||
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -42,12 +42,6 @@ class Admin_StatController extends Zend_Controller_Action
|
|||
$onlinesize = $res->fetch();
|
||||
$this->view->onlinesize = $onlinesize;
|
||||
|
||||
$sql="select sum(configvalue::real)/1024/1024/1024 as num from g6ftpusersettings where userid in (select id from g6ftpusers where name like 'westdc%' or name='newwestdc') and configname='StatsDownloaded'";
|
||||
$res = $this->db->query($sql);
|
||||
$onlinesize = $res->fetch();
|
||||
$this->view->onlineg6size = $onlinesize;
|
||||
|
||||
|
||||
}//indexAction 首页
|
||||
|
||||
function unitAction()
|
||||
|
@ -195,7 +189,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")
|
||||
{
|
||||
|
|
|
@ -1,4 +1,6 @@
|
|||
<?php
|
||||
use Helpers\View as view;
|
||||
|
||||
class Admin_SysController extends Zend_Controller_Action
|
||||
{
|
||||
function preDispatch()
|
||||
|
@ -86,6 +88,15 @@ class Admin_SysController extends Zend_Controller_Action
|
|||
|
||||
}//模板编辑
|
||||
|
||||
else if($ac=='del'&& !empty($id))
|
||||
{
|
||||
$sql="delete from emailtext where id='$id' ";
|
||||
$rs = $this->db->query($sql);
|
||||
view::Post($this,'模板已删除',-1);
|
||||
return;
|
||||
|
||||
}
|
||||
|
||||
else if($ac=='test'&& !empty($id))
|
||||
{
|
||||
if(!empty($submit))
|
||||
|
|
|
@ -2,7 +2,6 @@
|
|||
use Helpers\View as view;
|
||||
use \Users\Local;
|
||||
use Helpers\dbh;
|
||||
|
||||
class Admin_UserController extends Zend_Controller_Action
|
||||
{
|
||||
function preDispatch()
|
||||
|
@ -157,12 +156,46 @@ class Admin_UserController extends Zend_Controller_Action
|
|||
$select->from('users')
|
||||
->where('usertype = ?', 'administrator')
|
||||
->order('users.id desc');
|
||||
|
||||
|
||||
$paginator = Zend_Paginator::factory($select);
|
||||
$paginator->setCurrentPageNumber($this->_getParam('page'));
|
||||
$paginator->setItemCountPerPage(30);
|
||||
$paginator->setView($this->view);
|
||||
Zend_View_Helper_PaginationControl::setDefaultViewPartial('pagination.phtml');
|
||||
$this->view->paginator=$paginator;
|
||||
|
||||
$ac = $this->_getParam('ac');
|
||||
|
||||
if($ac == 'sync')
|
||||
{
|
||||
$sql = "SELECT id FROM users WHERE usertype='administrator'";
|
||||
$rs = $this->db->query($sql);
|
||||
$ids = $rs->fetchAll();
|
||||
|
||||
$data = array();
|
||||
foreach($ids as $v)
|
||||
{
|
||||
$data[] = $v['id'];
|
||||
}
|
||||
unset($ids);
|
||||
|
||||
$ids = join(",",$data);
|
||||
|
||||
$gn_sql = "update users set profile='Administrator' where id in ($ids)";
|
||||
$gn_db = new PDO(array(
|
||||
'host'=> $this->view->config->geonetwork->params->host,
|
||||
'port' => 5432,
|
||||
'user' => $this->view->config->geonetwork->params->username,
|
||||
'pwd' => $this->view->config->geonetwork->params->password ,
|
||||
'db' => $this->view->config->geonetwork->params->dbname
|
||||
));
|
||||
|
||||
$gn_db->exec("update users set profile='Editor' where id>1 and profile='Administrator'");
|
||||
$gn_db->exec($gn_sql);
|
||||
|
||||
view::Post($this,"同步成功!",-1);
|
||||
}
|
||||
}
|
||||
|
||||
function showAction()
|
||||
|
|
|
@ -7,12 +7,7 @@
|
|||
$this->breadcrumb('<a href="/admin">后台首页</a>');
|
||||
$this->breadcrumb('数据管理');
|
||||
$this->breadcrumb()->setSeparator(' > ');
|
||||
$this->headLink()->appendStylesheet('/static/js/uploadify/uploadify.css');
|
||||
$this->headScript()->appendFile('/static/js/jquery-1.7.2.min.js');
|
||||
$this->headScript()->appendFile('/js/jquery.colorbox-min.js');
|
||||
$this->headLink()->appendStylesheet('/css/colorbox.css');
|
||||
$this->headScript()->appendFile('/static/js/uploadify/swfobject.js');
|
||||
$this->headScript()->appendFile('/static/js/uploadify/jquery.uploadify.v2.1.4.min.js');
|
||||
$this->theme->AppendPlus($this,"uploadify");
|
||||
?>
|
||||
<div id="leftPanel">
|
||||
<?= $this->partial('data/left.phtml'); ?>
|
||||
|
@ -30,73 +25,87 @@
|
|||
<input type="hidden" name="submit" value="1" />
|
||||
|
||||
<p>注:可选择多个文件<br />
|
||||
<ul id="datalist"></ul>
|
||||
<div id="datalist">
|
||||
</div>
|
||||
<input id="file_upload" name="Filedata" type="file" />
|
||||
<input type="button" class="btn btn-small" onclick="$('#file_upload').uploadifyUpload();" value="上传" />
|
||||
</p>
|
||||
|
||||
</form>
|
||||
</div>
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
$('#file_upload').uploadify({
|
||||
'uploader' : '/static/js/uploadify/uploadify.swf',
|
||||
'scriptData': {'PHPSESSID' : '<?php echo session_id(); ?>'},
|
||||
'script' : '/admin/data/upload/<?php if(!empty($this->uuid)) echo "uuid/".$this->uuid; ?>',
|
||||
'cancelImg' : '/static/js/uploadify/cancel.png',
|
||||
'folder' : '/uploads',
|
||||
var _this = {
|
||||
SessionID : '<?php echo session_id(); ?>'
|
||||
};
|
||||
var uploader;
|
||||
var param;
|
||||
param = {
|
||||
"PHPSESSID" : _this.SessionID,
|
||||
"multi" : 'yes'
|
||||
};
|
||||
$(function() {
|
||||
$('#file_upload').uploadify({
|
||||
'swf' : '/js/lib/uploadify/uploadify.swf',
|
||||
'uploader' : '/admin/data/upload/<?php if(!empty($this->uuid)) echo "uuid/".$this->uuid; ?>',
|
||||
'multi' : true,
|
||||
'auto' : false,
|
||||
'displayData' : 'speed',
|
||||
'buttonImg' : '/static/js/uploadify/selectfile.gif',
|
||||
'onComplete' : function(event, ID, fileObj, response, data) {
|
||||
var obj = jQuery.parseJSON(response);
|
||||
var html;
|
||||
if(obj.error=='')
|
||||
{html = obj.html;}else{html = obj.error;}
|
||||
$('<li/>', {
|
||||
"id":'uploadedItem_'+obj.attid,
|
||||
"class":'uploadifyQueueItem',
|
||||
"html": html
|
||||
}).appendTo('#datalist');
|
||||
$('#deletebtn_'+obj.attid).bind('click', function() {
|
||||
deleteatt(obj.attid);
|
||||
});
|
||||
'auto' : true,
|
||||
'fileTypeExts' : '*',
|
||||
'onUploadSuccess' : function(file, data, response) {
|
||||
upload.onsuccess(file, data, response);
|
||||
},
|
||||
'onError' : function (event,ID,fileObj,errorObj) {
|
||||
alert(errorObj.type + ' Error: ' + errorObj.info);
|
||||
'onUploadStart' : function(file) {
|
||||
$('#file_upload').uploadify('settings','formData',param);
|
||||
}
|
||||
});
|
||||
function deleteatt(id){
|
||||
$.ajax({
|
||||
'type': "POST",
|
||||
'url': "/admin/data/attachments/",
|
||||
'data': 'uuid=<?php echo $this->uuid?>&mdattdel='+id,
|
||||
'success': function(data){
|
||||
if(data==null){Alert('遇到错误,请重试');return false;}
|
||||
if(data.error!=null){Alert(data.error);return false;}
|
||||
if(data.status==1){$('#uploadedItem_'+id).fadeOut("slow");}
|
||||
});
|
||||
var upload = {
|
||||
onsuccess : function(file, data, response){
|
||||
_data = $.parseJSON(data);
|
||||
if(!$.isEmptyObject(_data.error))
|
||||
{
|
||||
alert(_data.error);
|
||||
}else{
|
||||
$('#datalist').append(upload.makeFileHtml(_data));
|
||||
}
|
||||
},
|
||||
'beforeSend':function(){},
|
||||
'complete':function(){},
|
||||
'timeout': 20000,
|
||||
'dataType': 'json',
|
||||
'error': function(){Alert('处理中出现问题,请重试');}
|
||||
});
|
||||
makeFileHtml : function(data){
|
||||
return '<div class="alert alert-success">'
|
||||
+ '<button type="button" class="close" data-dismiss="alert" onclick="upload.deleteFile('+data.id+')"><i class="icon-trash icon-white"></i></button>'
|
||||
+ '<a href="/service/attach/id/' + data.id + '">' +data.realname + '</a>'
|
||||
+'<input type="hidden" name="attid" value="'+data.id+'"></input>'
|
||||
+'</div>';
|
||||
},
|
||||
deleteFile : function(id){
|
||||
$.ajax({
|
||||
'type':"POST",
|
||||
'url':'/admin/data/attachments/',
|
||||
'data':'uuid=<?php echo $this->uuid?>&mdattdel='+id,
|
||||
'success':function(data){
|
||||
if(typeof(data) == 'undefined')
|
||||
{
|
||||
alert("数据源错误,请联系管理员");
|
||||
return false;
|
||||
}
|
||||
|
||||
if(!$.isEmptyObject(data.error))
|
||||
{
|
||||
alert(data.error);
|
||||
return false;
|
||||
}
|
||||
},
|
||||
'timeout': 30000,
|
||||
'error': function(){
|
||||
alert('附件删除出错');
|
||||
}
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
$(document).ready(function() {
|
||||
$.getJSON("/admin/data/getatts/uuid/<?php echo $this->uuid;?>", function(data) {
|
||||
if(data)
|
||||
{
|
||||
$.each(data, function(key, val) {
|
||||
$('<li/>', {
|
||||
"id":'uploadedItem_'+val['id'],
|
||||
"class":'uploadifyQueueItem',
|
||||
"html": val['html']
|
||||
}).appendTo('#datalist');
|
||||
$('#deletebtn_'+val['id']).bind('click', function() {
|
||||
deleteatt(val['id']);
|
||||
});
|
||||
$('#datalist').append(upload.makeFileHtml(val));
|
||||
});
|
||||
}
|
||||
});
|
||||
|
|
|
@ -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>
|
||||
|
@ -17,7 +17,6 @@
|
|||
<li><a href="/admin/data/newsletter">数据中心通讯管理</a></li>
|
||||
<li><a href="/admin/data/feature">特色推荐</a></li> -->
|
||||
<li><a href="/admin/data/source">专题管理</a></li>
|
||||
<li><a href="/admin/data/project">汇交计划</a></li>
|
||||
<li><a href="/admin/data/fund">支持项目</a></li>
|
||||
<li><a href="/admin/data/doi">DOI</a></li>
|
||||
<li><a href="/admin/data/visual">可视化数据</a></li>
|
||||
</ul>
|
|
@ -66,7 +66,8 @@
|
|||
<?php endif;?>
|
||||
<a href="/admin/down/sendmail/uuid/<?php echo $item['uuid'];?>" title="向数据下载者发送通知邮件">邮件通知</a> |
|
||||
<a href="/admin/data/fund/uuid/<?php echo $item['uuid'];?>">支持项目</a> |
|
||||
<a href="/admin/data/doi/uuid/<?php echo $item['uuid'];?>">DOI</a>
|
||||
<a href="/admin/data/doi/uuid/<?php echo $item['uuid'];?>">DOI</a> |
|
||||
<a href="/admin/data/visual/uuid/<?php echo $item['uuid'];?>">数据可视化</a>
|
||||
</p>
|
||||
<?php if($item['author']) :?>
|
||||
<p>数据贡献者:<?= $item['author']; ?></p>
|
||||
|
|
|
@ -15,6 +15,7 @@
|
|||
<label class="control-label" for="inputUuid">元数据UUID</label>
|
||||
<div class="controls">
|
||||
<input type="text" name="uuid" id="inputUuid" placeholder="UUID">
|
||||
<span class="help-block"><a href="javascript:void(0);" onclick="$(this).parent('span').prev('input').val('e31f5ea7-a4af-4ae3-9ac1-1a84132c4338')">设为数据中心文献</a></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
|
|
|
@ -1,8 +1,11 @@
|
|||
<ul class="nav nav-tabs">
|
||||
<li <?= empty($this->ac) ? 'class="active"':"" ?>><a href="/admin/data/ref">浏览所有</a></li>
|
||||
<li <?= $this->ac=="water" ? 'class="active"':"" ?>><a href="/admin/data/ref/ac/water">WATER文献</a></li>
|
||||
<li <?= $this->ac=="westdc" ? 'class="active"':"" ?>><a href="/admin/data/ref/ac/westdc">数据中心文献</a></li>
|
||||
<li <?= $this->ac=="todo" ? 'class="active"':"" ?>><a href="/admin/data/ref/ac/todo">待处理文献</a></li>
|
||||
<li <?= $this->ac=="add" ? 'class="active"':"" ?>><a href="/admin/data/ref/ac/add">单篇添加</a></li>
|
||||
<li <?= $this->ac=="multiupload" ? 'class="active"':"" ?>><a href="/admin/data/ref/ac/multiupload">批量上传</a></li>
|
||||
<li <?= $this->ac=="files" ? 'class="active"':"" ?>><a href="/admin/data/ref/ac/files">文件管理</a></li>
|
||||
<li <?= $this->ac=="ris" ? 'class="active"':"" ?>><a href="/admin/data/ref/ac/ris">RIS导入</a></li>
|
||||
<li <?= $this->ac=="risoutput" ? 'class="active"':"" ?>><a href="/admin/data/ref/ac/risoutput">RIS导出</a></li>
|
||||
</ul>
|
|
@ -39,7 +39,7 @@ table thead tr th {background:#EBF2F6;}
|
|||
<div class="control-group">
|
||||
<label class="control-label" for="inputPassword">RIS文本</label>
|
||||
<div class="controls">
|
||||
<textarea class="input-block-level" name="ristest" rows="5"></textarea>
|
||||
<textarea class="input-block-level" name="ristext" rows="5"></textarea>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-actions">
|
||||
|
|
|
@ -0,0 +1,50 @@
|
|||
<?php
|
||||
$this->headTitle($this->config->title->site);
|
||||
$this->headTitle('后台管理');
|
||||
$this->headTitle()->setSeparator(' - ');
|
||||
$this->breadcrumb('<a href="/">首页</a>');
|
||||
$this->breadcrumb('<a href="/admin/data">数据管理</a>');
|
||||
$this->breadcrumb('文献管理');
|
||||
$this->breadcrumb()->setSeparator(' > ');
|
||||
$this->theme->AppendPlus($this,'colorbox');
|
||||
$this->theme->AppendPlus($this,"uploadify");
|
||||
$this->theme->AppendPlus($this,'admin_plugin');
|
||||
?>
|
||||
<style>
|
||||
table thead tr th {background:#EBF2F6;}
|
||||
</style>
|
||||
<div class="row-fluid">
|
||||
<div class="span2">
|
||||
<?= $this->partial('data/left.phtml'); ?>
|
||||
</div>
|
||||
<div class="span10">
|
||||
<div>
|
||||
<?= $this->partial('data/ref-nav.phtml',array('ac'=>$this->ac)); ?>
|
||||
</div>
|
||||
<?php if(!empty($this->error)) { ?>
|
||||
<?= $this->error ?>
|
||||
<?php } ?>
|
||||
<?php if(!empty($this->msg)) { ?>
|
||||
<?= $this->msg ?>
|
||||
<?php } else{ ?>
|
||||
<h3>RIS导出</h3>
|
||||
<hr />
|
||||
|
||||
<div>
|
||||
<?php if(!empty($this->years)) { ?>
|
||||
按年份 :
|
||||
<?php foreach($this->years as $k=>$v){ ?>
|
||||
<a class="btn btn-info" href="?field[year]=<?= $v['year'] ?>"><?= empty($v['year']) ? "未知":$v['year'] ?>(<?= $v['num'] ?>)</a>
|
||||
<?php } ?>
|
||||
<hr />
|
||||
<?php } ?>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
其它方式:<a class="btn btn-info" href="?submit=1&mode=all">全部</a>
|
||||
</div>
|
||||
|
||||
<?php } ?>
|
||||
</div>
|
||||
</div>
|
||||
<!-- //页面内容 -->
|
|
@ -0,0 +1,63 @@
|
|||
<?php
|
||||
$this->headTitle($this->config->title->site);
|
||||
$this->headTitle('后台管理');
|
||||
$this->headTitle()->setSeparator(' - ');
|
||||
$this->breadcrumb('<a href="/">首页</a>');
|
||||
$this->breadcrumb('<a href="/admin/data">数据管理</a>');
|
||||
$this->breadcrumb('文献管理');
|
||||
$this->breadcrumb()->setSeparator(' > ');
|
||||
$this->theme->AppendPlus($this,'colorbox');
|
||||
$this->theme->AppendPlus($this,"uploadify");
|
||||
$this->theme->AppendPlus($this,'admin_plugin');
|
||||
?>
|
||||
<style>
|
||||
table thead tr th {background:#EBF2F6;}
|
||||
</style>
|
||||
<div class="row-fluid">
|
||||
<div class="span2">
|
||||
<?= $this->partial('data/left.phtml'); ?>
|
||||
</div>
|
||||
<div class="span10">
|
||||
<div>
|
||||
<?= $this->partial('data/ref-nav.phtml',array('ac'=>$this->ac)); ?>
|
||||
</div>
|
||||
<?php if(!empty($this->error)) { ?>
|
||||
<?= $this->error ?>
|
||||
<?php } ?>
|
||||
<?php if(!empty($this->msg)) { ?>
|
||||
<?= $this->msg ?>
|
||||
<?php } else{ ?>
|
||||
<h3><?= empty($this->referenceData['title']) ? $this->referenceData['reference'] : $this->referenceData['title'] ?></h3>
|
||||
<hr />
|
||||
<?php if(empty($this->data)) { ?>
|
||||
<form class="form-horizontal" method="post" enctype="multipart/form-data">
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="inputPassword">RIS文本</label>
|
||||
<div class="controls">
|
||||
<textarea class="input-block-level" name="ristext" rows="5"><?= $this->ristext ?></textarea>
|
||||
<span class="help-block">* 此功能是使用单个文献的 RIS 文本导入并覆盖以前填写过的信息</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-actions">
|
||||
<input type="hidden" name="submit" value="1" />
|
||||
<button type="submit" class="btn btn-primary">导入</button>
|
||||
</div>
|
||||
</form>
|
||||
<?php }else{ ?>
|
||||
<?php
|
||||
foreach($this->data as $k=>$ref)
|
||||
{
|
||||
echo '<ul>';
|
||||
foreach($ref as $index=>$value)
|
||||
{
|
||||
$v = is_array($value) ? join("|",$value) : $value;
|
||||
echo '<li>'.$index .":". $v .'</li>';
|
||||
}
|
||||
echo "</ul>";
|
||||
}
|
||||
?>
|
||||
<?php } ?>
|
||||
<?php } ?>
|
||||
</div>
|
||||
</div>
|
||||
<!-- //页面内容 -->
|
|
@ -37,6 +37,17 @@ table thead tr th {background:#EBF2F6;}
|
|||
<?php if(!empty($this->msg)) { ?>
|
||||
<?= $this->msg ?>
|
||||
<?php } else{ ?>
|
||||
|
||||
<?php if($this->ac == 'westdc'){ ?>
|
||||
<button type="button" class="btn btn-success" onclick="$('#mdref')[0].reset();mdref.edit('','','e31f5ea7-a4af-4ae3-9ac1-1a84132c4338',0,0)">添加数据中心文献</button>
|
||||
<?php } ?>
|
||||
|
||||
<?php if(!empty($this->years)) { ?>
|
||||
<?php foreach($this->years as $k=>$v){ ?>
|
||||
<a class="btn btn-info" href="?field[year]=<?= $v['year'] ?>"><?= empty($v['year']) ? "未知":$v['year'] ?>(<?= $v['num'] ?>)</a>
|
||||
<?php } ?>
|
||||
<?php } ?>
|
||||
|
||||
<div id="datalist">
|
||||
<?php if (count($this->paginator)): ?>
|
||||
<table class="table table-bordered table-striped">
|
||||
|
@ -45,8 +56,7 @@ table thead tr th {background:#EBF2F6;}
|
|||
<th>标题
|
||||
<a href="?order=title&sort=ASC&q=<?php if(!empty($this->q)) echo $this->q; ?>"><i class="icon-arrow-up"></i></a>
|
||||
<a href="?order=title&sort=DESC&q=<?php if(!empty($this->q)) echo $this->q; ?>"><i class="icon-arrow-down"></i></a>
|
||||
</th>
|
||||
<th>年份
|
||||
年份
|
||||
<a href="?order=year&sort=ASC&q=<?php if(!empty($this->q)) echo $this->q; ?>"><i class="icon-arrow-up"></i></a>
|
||||
<a href="?order=year&sort=DESC&q=<?php if(!empty($this->q)) echo $this->q; ?>"><i class="icon-arrow-down"></i></a>
|
||||
</th>
|
||||
|
@ -58,35 +68,36 @@ table thead tr th {background:#EBF2F6;}
|
|||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php $autoindex=0;
|
||||
<?php
|
||||
if($this->page > 1)
|
||||
{
|
||||
$autoindex = ($this->page - 1) * $this->pagelimit;
|
||||
}else{
|
||||
$autoindex=0;
|
||||
}
|
||||
foreach ($this->paginator as $item):
|
||||
$autoindex++;?>
|
||||
<tr id="DataLine_<?= $item['id']?>">
|
||||
<?php if(!empty($item['title']) || !empty($item['year'])) { ?>
|
||||
|
||||
<td><?= $item['title'] ?></td>
|
||||
<td><?= $item['year'] ?></td>
|
||||
<td>
|
||||
[<?= $autoindex ?>]
|
||||
<?php if ($item['ris']) :
|
||||
echo $item['reference'];
|
||||
else :
|
||||
?>
|
||||
{<?php $authors = $this->reference->getAuthorByReference($item['id'],true); echo count($authors) ? join(",",$authors):'<font color="#CC0000">未知作者</font>'; ?>}
|
||||
{<?= empty($item['title']) ? '<font color="#CC0000">未知标题</font>':$item['title'] ?>}
|
||||
{<?= empty($item['publisher']) ? '<font color="#CC0000">未知期刊</font>':$item['publisher'] ?>}
|
||||
{<?= empty($item['year']) ? '<font color="#CC0000">未知年份</font>':$item['year'] ?>}
|
||||
<?php endif; ?>
|
||||
</td>
|
||||
<td><?= date("Y-m-d H:i",strtotime($item['ts_created'])) ?></td>
|
||||
<td rowspan="2">
|
||||
<td>
|
||||
<a href="/admin/data/ref/ac/add/id/<?= $item['id']?>">编辑</a>
|
||||
<a href="/admin/data/ref/ac/singleris/id/<?= $item['id'] ?>">RIS编辑</a>
|
||||
<a href="/admin/data/ref/ac/data/id/<?= $item['id'] ?>">数据</a>(<a href="javascript:void(0);" onclick="$('#mdref')[0].reset();mdref.edit('',<?= $item['id']?>,'',0,0)">+</a>)
|
||||
<a href="/admin/data/ref/ac/deleteref/id/<?= $item['id']?>">删除</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2"><?= $item['reference'] ?></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
<?php if(empty($item['title']) && empty($item['year'])) { ?>
|
||||
<td colspan="2"><?= $item['reference'] ?></td>
|
||||
<td><?= date("Y-m-d H:i",strtotime($item['ts_created'])) ?></td>
|
||||
<td>
|
||||
<a href="/admin/data/ref/ac/add/id/<?= $item['id']?>">编辑</a>
|
||||
<a href="/admin/data/ref/ac/data/id/<?= $item['id'] ?>">数据</a>
|
||||
<a href="/admin/data/ref/ac/deleteref/id/<?= $item['id']?>">删除</a>
|
||||
</td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
<?php endforeach; ?>
|
||||
</tbody>
|
||||
</table>
|
||||
|
|
|
@ -0,0 +1,51 @@
|
|||
<?php
|
||||
$this->headTitle($this->config->title->site);
|
||||
$this->headTitle('后台管理');
|
||||
$this->headTitle()->setSeparator(' - ');
|
||||
$this->breadcrumb('<a href="/">首页</a>');
|
||||
$this->breadcrumb('<a href="/admin">后台首页</a>');
|
||||
$this->breadcrumb('<a href="/admin/data">数据管理</a>');
|
||||
$this->breadcrumb('同步GEONETWORK元数据</a>');
|
||||
$this->breadcrumb()->setSeparator(' > ');
|
||||
?>
|
||||
<div class="row">
|
||||
<div class="span3">
|
||||
<?= $this->partial('data/left.phtml'); ?>
|
||||
</div>
|
||||
|
||||
<div class="span9">
|
||||
<h3>添加可视化要素</h3>
|
||||
<hr />
|
||||
<form class="form-horizontal">
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="inputUUID">UUID</label>
|
||||
<div class="controls">
|
||||
<input type="text" id="inputUUID" placeholder="UUID" value="<?= $this->data['uuid'] ?>" class="input-block-level">
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="inputVariable">可视化要素</label>
|
||||
<div class="controls">
|
||||
<input type="text" id="inputVariable" placeholder="Variable" class="input-block-level">
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group" id="last-control-group">
|
||||
<div class="controls">
|
||||
<button type="button" class="btn btn-defualt" id="addVariable">添加要素</button>
|
||||
<button type="submit" class="btn btn-primary">提交</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
$('#addVariable').click(function(e) {
|
||||
html = '<div class="control-group">
|
||||
<label class="control-label" for="inputVariable">可视化要素</label>
|
||||
<div class="controls">
|
||||
<input type="text" id="inputVariable" placeholder="Variable" class="input-block-level">
|
||||
</div>
|
||||
</div>';
|
||||
$('#last-control-group').prepend();
|
||||
});
|
||||
</script>
|
|
@ -0,0 +1,20 @@
|
|||
<?php
|
||||
$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/data">数据管理</a>');
|
||||
$this->breadcrumb('同步GEONETWORK元数据</a>');
|
||||
$this->breadcrumb()->setSeparator(' > ');
|
||||
?>
|
||||
<div class="row">
|
||||
<div class="span3">
|
||||
<?= $this->partial('data/left.phtml'); ?>
|
||||
</div>
|
||||
|
||||
<div class="span9">
|
||||
|
||||
</div>
|
||||
</div>
|
|
@ -1,10 +1,8 @@
|
|||
<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>
|
||||
<li><a href="/admin/down/online">在线数据下载记录</a></li>
|
||||
<li><a href="/admin/down/user">用户下载记录</a></li>
|
||||
<li><a href="/admin/down/data">数据下载记录</a></li>
|
||||
</ul>
|
|
@ -2,63 +2,85 @@
|
|||
$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; ?>
|
||||
|
||||
<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; ?>" />
|
||||
<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>
|
||||
<?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; ?>
|
||||
|
@ -66,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>
|
||||
|
|
|
@ -54,7 +54,7 @@ table thead tr th {background:#EBF2F6;color:#444;}
|
|||
<td>
|
||||
<a href="/admin/down/offlineapps/ac/view/?offlineappid=<?= $item['id'] ?>">查看详细</a>
|
||||
<a href="/admin/down/offlineapps/ac/receive/?offlineappid=<?= $item['id'] ?>">接收</a>
|
||||
<a href="/admin/down/offlineapps/ac/return/?offlineappid=<?= $item['id'] ?>">退回</a>
|
||||
<a href="/admin/down/offlineapps/ac/deny/offlineappid/<?= $item['id'] ?>">退回</a>
|
||||
<a href="javascript:void(0);" onclick="upload.showUploadForm(<?= $item['id'] ?>);">上传申请表</a>
|
||||
<a href="/admin/down/offlineapps/ac/resetappform/?offlineappid=<?= $item['id'] ?>" onclick="return confirm('是否确认重置该用户的申请表?')">重置申请表</a>
|
||||
</td>
|
||||
|
|
|
@ -18,11 +18,6 @@
|
|||
<?= $this->partial('news/left.phtml'); ?>
|
||||
<?= $this->partial('stat/left.phtml'); ?>
|
||||
<?= $this->partial('sys/left.phtml'); ?>
|
||||
<ul>
|
||||
<li class="title">其他工具</a></li>
|
||||
<li><a href="/admin/watermd">WATER元数据处理工具</a></li>
|
||||
<li><a href="/admin/test">数据测试管理</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<!--
|
||||
<script>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -42,9 +42,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; ?>
|
||||
|
|
|
@ -11,19 +11,46 @@
|
|||
?>
|
||||
<div id="leftPanel">
|
||||
<?= $this->partial('stat/left.phtml'); ?>
|
||||
<ul>
|
||||
<li class="title">概况</li>
|
||||
<li>用户总数:<?php echo $this->stat['alluser']; ?>人</li>
|
||||
<li>元数据条数:<?php echo $this->stat['alldata']; ?>条</li>
|
||||
<li>在线数据下载数:<?php echo $this->stat['onlinedown']; ?>条</li>
|
||||
<li>离线数据下载数:<?php echo $this->stat['offlinedown']; ?>条</li>
|
||||
<li>已通过的离线申请:<?php echo $this->stat['offlinepass']; ?>次</li>
|
||||
<li>未完成的离线申请:<?php echo $this->stat['offlineunfinished']; ?>次</li>
|
||||
<li>被拒绝的离线数据:<?php echo $this->stat['offlinedenied']; ?>条</li>
|
||||
<li>有记录的在线下载数:<?php echo $this->stat['onlineapp']; ?>次</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div id="rightPanel">
|
||||
<div class="tables">
|
||||
<div class="stitle">概况</div>
|
||||
<table>
|
||||
<tr>
|
||||
<td>用户总数:</td>
|
||||
<td><?php echo $this->stat['alluser']; ?>人</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>元数据条数:</td>
|
||||
<td><?php echo $this->stat['alldata']; ?>条</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>在线数据下载数:</td>
|
||||
<td><?php echo $this->stat['onlinedown']; ?>条</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>离线数据下载数:</td>
|
||||
<td><?php echo $this->stat['offlinedown']; ?>条</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>已通过的离线申请:</td>
|
||||
<td><?php echo $this->stat['offlinepass']; ?>次</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>未完成的离线申请:</td>
|
||||
<td><?php echo $this->stat['offlineunfinished']; ?>次</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>被拒绝的离线数据:</td>
|
||||
<td><?php echo $this->stat['offlinedenied']; ?>条</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>有记录的在线下载数:</td>
|
||||
<td><?php echo $this->stat['onlineapp']; ?>次</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div class="tables">
|
||||
<div class="stitle">数据下载量概况</div>
|
||||
<table>
|
||||
|
@ -31,21 +58,17 @@
|
|||
<tr><td width="200"></td><td width="100">单位:GB</td></tr>
|
||||
</thead>
|
||||
<tr>
|
||||
<td>总下载数据量(估计量,偏大)</td>
|
||||
<td>总下载数据量</td>
|
||||
<td><?php echo round($this->allsize['num'],2);?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>离线下载数据量(从09年4月)</td>
|
||||
<td>离线下载数据量</td>
|
||||
<td><?php echo round($this->offlinesize['num'],2);?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>在线下载数据量(估计量,偏大)</td>
|
||||
<td>在线下载数据量</td>
|
||||
<td><?php echo round($this->onlinesize['num'],2);?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>G6在线下载数据量(精确量)</td>
|
||||
<td><?php echo round($this->onlineg6size['num'],2);?></td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
</div>
|
||||
|
|
|
@ -1,13 +1,9 @@
|
|||
<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>
|
||||
<li><a href="/admin/stat/user">按用户统计</a></li>
|
||||
<li><a href="/admin/stat/awstatsweb">awstats westdc统计</a></li>
|
||||
<li><a href="/admin/stat/awstatsweb2">awstats geodata统计</a></li>
|
||||
<li><a href="/admin/stat/awstatsftp">awstats ftp1统计</a></li>
|
||||
<li><a href="/admin/stat/awstatsftp2">awstats ftp2统计</a></li>
|
||||
<li><a href="/admin/stat/webalizer">webalizer统计</a></li>
|
||||
<li><a href="/admin/stat/water">WATER项目</a></li>
|
||||
<li><a href="/admin/stat/awstatsweb">awstats web统计</a></li>
|
||||
<li><a href="/admin/stat/awstatsftp">awstats ftp统计</a></li>
|
||||
</ul>
|
|
@ -31,15 +31,9 @@
|
|||
<div class="cp">
|
||||
<span>选择年份:</span>
|
||||
<a href="/admin/stat/month/">所有年份</a>
|
||||
<a href="/admin/stat/month/y/2004">2004</a>
|
||||
<a href="/admin/stat/month/y/2005">2005</a>
|
||||
<a href="/admin/stat/month/y/2006">2006</a>
|
||||
<a href="/admin/stat/month/y/2007">2007</a>
|
||||
<a href="/admin/stat/month/y/2008">2008</a>
|
||||
<a href="/admin/stat/month/y/2009">2009</a>
|
||||
<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,10 +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/sys/emailtext">邮件模板管理</a></li>
|
||||
<!--<li><a href="/admin/sys/seekspace">文献平台同步</a></li>-->
|
||||
<li><a href="/admin/sys/message">管理消息</a></li>
|
||||
<li><a href="/admin/sys/ftptest">数据FTP测试</a></li>
|
||||
<li><a href="/admin/sys/recovery">数据恢复进展</a></li>
|
||||
<li><a href="/admin/sys/problem">问题数据检查</a></li>
|
||||
<li><a href="/admin/sys/regions">GN地点管理</a></li>
|
||||
</ul>
|
|
@ -7,4 +7,5 @@
|
|||
<li><a href="/admin/user/group">用户组管理</a></li>
|
||||
<li><a href="/admin/review/experts">元数据评审专家库</a></li>
|
||||
<li><a href="/admin/user/sendmail/">长时间未登录用户</a></li>
|
||||
<li><a href="/admin/user/sendmail/ac/holiday">节日祝贺邮件</a></li>
|
||||
</ul>
|
|
@ -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>
|
||||
|
|
|
@ -3,9 +3,9 @@ db.adapter = PDO_PGSQL
|
|||
db.params.host = localhost
|
||||
db.params.username = gis
|
||||
db.params.password = gispassword
|
||||
db.params.dbname = sanjiangyuan
|
||||
db.params.dbname = metadata
|
||||
|
||||
geonetwork.url=http://sanjiangyuan.westgis.ac.cn/geonetwork/
|
||||
geonetwork.url=http://www.sanjiangyuan.org.cn/geonetwork/
|
||||
geonetwork.adapter = PDO_PGSQL
|
||||
geonetwork.params.host = localhost
|
||||
geonetwork.params.username = gis
|
||||
|
@ -22,23 +22,20 @@ paths.newsletter=images/newsletter/
|
|||
logging.file = /var/www/test.westgis.ac.cn/data/logs/debug.log
|
||||
page.limit=10
|
||||
import.dir=../data/import
|
||||
title.site=三江源自然保护区数据管理中心
|
||||
title.site=三江源生态监测综合数据服务平台
|
||||
title.data=数据产品与服务
|
||||
title.heihe=黑河计划数据管理中心
|
||||
title.yrnmr=黄河上游宁蒙河段综合数据平台
|
||||
title.glacier=中国冰川资源及其变化调查
|
||||
title.review=数据评审
|
||||
title.author=数据作者
|
||||
title.knowledge=知识积累
|
||||
supportemail=westdc@lzb.ac.cn
|
||||
supportemail=sjy@mygis.org
|
||||
reportemail=westdc-report-subscribe@lists.westgis.ac.cn
|
||||
|
||||
smtp.username=westdc@lzb.ac.cn
|
||||
smtp.password=ilovewestdc
|
||||
smtp.host=smtp.cstnet.cn
|
||||
smtp.ssl=TLS
|
||||
smtp.username=sjy@mygis.org
|
||||
smtp.password=qherc@123
|
||||
smtp.host=smtp.gmail.com
|
||||
smtp.ssl=SSL
|
||||
smtp.auth=login
|
||||
smtp.name=数据中心服务组
|
||||
smtp.name=三江源生态监测综合数据服务平台
|
||||
|
||||
ftp.user=newwestdc
|
||||
ftp.password=westdcforsmall
|
||||
|
@ -50,7 +47,7 @@ offline.security=../data/security.pdf
|
|||
offline.water_template=../data/water_offline.pdf
|
||||
offline.font=../data/simhei.ttf
|
||||
offline.savepath=../data/offlineapp
|
||||
service.email=westdc@lzb.ac.cn
|
||||
service.email=sjy@mygis.org
|
||||
offline.email.template=../data/offline-email.txt
|
||||
offline.email.start_template=../data/offline-start-email.txt
|
||||
offline.email.finish_template=../data/offline-finish-email.txt
|
||||
|
|
|
@ -86,7 +86,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();
|
||||
|
|
|
@ -2376,7 +2376,7 @@ class AuthorController extends Zend_Controller_Action
|
|||
// 2. 保存变化记录 save changelog & userid for the latest version
|
||||
$sql = "UPDATE mdversion SET changelog=?,userid=? WHERE id in (select id from mdversion where uuid=? order by ts_created desc limit 1)";
|
||||
$this->db->query($sql,array($changelog,$u_id,$row['uuid']));
|
||||
file_get_contents("http://ftp2.westgis.ac.cn/proftp_upload.php?uuid=".$row['uuid']."&filelist=1");
|
||||
file_get_contents("http://ftp.sanjiangyuan.org.cn/proftp_upload.php?uuid=".$row['uuid']."&filelist=1");
|
||||
// 3. 保存数据评审状态
|
||||
//导入元数据
|
||||
@$iso->saveDB($this->db);
|
||||
|
@ -2472,10 +2472,10 @@ class AuthorController extends Zend_Controller_Action
|
|||
}
|
||||
|
||||
//ftp 用户名
|
||||
$uname = 'westdc'.$u_id.'upload';
|
||||
$uname = 'sjy'.$u_id.'upload';
|
||||
|
||||
//ftp路径
|
||||
$homedir = "/disk1/WestDC/upload/".$uuid."/";
|
||||
$homedir = "/data/upload/".$uuid."/";
|
||||
//ftp用户表
|
||||
$ftptable=' pureftp ';//ftp2.westgis.ac.cn
|
||||
$uid = 1002;
|
||||
|
@ -2491,7 +2491,7 @@ class AuthorController extends Zend_Controller_Action
|
|||
//$old=umask(0);
|
||||
//@mkdir($homedir,0777);
|
||||
//umask($old);
|
||||
$page=file_get_contents('http://ftp2.westgis.ac.cn/proftp_upload.php?uuid='.$uuid);
|
||||
$page=file_get_contents('http://ftp.sanjiangyuan.org.cn/proftp_upload.php?uuid='.$uuid);
|
||||
if (!empty($page)) die($page);//there are errors in visit ftp page
|
||||
|
||||
|
||||
|
|
|
@ -602,15 +602,23 @@ class DataController extends Zend_Controller_Action
|
|||
$row=$this->db->fetchRow($sql);
|
||||
if ($row) $this->view->doc=$row->linkage;
|
||||
//相关资源
|
||||
$sql="select * from onlineresource where uuid=? and (linkage not like '%ftp.westgis%') and name<>'元数据地址'";
|
||||
$sql="select * from onlineresource where uuid=? and (linkage not like '%sanjiangyuan.org.cn%') and name<>'元数据地址'";
|
||||
$sql=$this->db->quoteInto($sql,$uuid);
|
||||
$this->view->resources=$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=0 order by m.place";
|
||||
$sql=$this->db->quoteInto($sql,$uuid);
|
||||
$this->view->ref=$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=2 order by m.place";
|
||||
$sql=$this->db->quoteInto($sql,$uuid);
|
||||
$this->view->dataref=$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=4 order by m.place";
|
||||
$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";
|
||||
$sql="select r.* from reference r left join mdref m on m.refid=r.id where m.uuid=? and m.reftype=1 order by r.language asc,r.year desc,r.ts_created desc limit 15";
|
||||
$sql=$this->db->quoteInto($sql,$uuid);
|
||||
$this->view->userref=$this->db->fetchAll($sql);
|
||||
//多篇引用形式:hiwater
|
||||
|
@ -689,7 +697,7 @@ class DataController extends Zend_Controller_Action
|
|||
//检查特殊数据服务是否存在
|
||||
private function checkDataService($uuid)
|
||||
{
|
||||
$order = new \Order\mount\OrderOperate();
|
||||
$order = new \Order\Mount\OrderOperate();
|
||||
$service = $order->getDataService($uuid);
|
||||
|
||||
if(empty($service))
|
||||
|
@ -1552,16 +1560,16 @@ class DataController extends Zend_Controller_Action
|
|||
$this->view->userpass=$proftp->pwd;
|
||||
$this->view->ftptime=$proftp->time;
|
||||
}
|
||||
} elseif ($data['host']=='ftp2.westgis.ac.cn')
|
||||
} elseif ($data['host']=='ftp.sanjiangyuan.org.cn')
|
||||
{
|
||||
//添加FTP2帐号信息以及时间控制信息
|
||||
$proftp=new Pureftp();
|
||||
$proftp->db=$this->db;
|
||||
$this->view->username='westdc_'.$userid;
|
||||
$this->view->username='sjy_'.$userid;
|
||||
$uu=(object)array("id"=>$userid,
|
||||
"username"=>$this->view->username,
|
||||
"password"=>$this->view->userpass,
|
||||
"host"=>'ftp2.westgis.ac.cn',
|
||||
"host"=>'ftp.sanjiangyuan.org.cn',
|
||||
"param"=>"onlineappid=".$onlineappid,
|
||||
"maxdata"=>$this->view->config->download->max,
|
||||
"time"=>$this->view->ftptime,
|
||||
|
@ -2113,7 +2121,8 @@ class DataController extends Zend_Controller_Action
|
|||
$this->getResponse()->setHeader('Content-Type', 'application/json')->appendBody(json_encode($data,JSON_NUMERIC_CHECK));
|
||||
return true;
|
||||
}
|
||||
function organizationAction()
|
||||
|
||||
public function organizationAction()
|
||||
{
|
||||
$page = $this->_request->getParam('page');
|
||||
$name = $this->_request->getParam('name');
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -153,12 +153,12 @@ class HiwaterController extends DataController
|
|||
|
||||
function demdsmAction()
|
||||
{
|
||||
$this->getmd(array('DEM','DSM','DOM'),"数据产品");
|
||||
$this->getmdlimited(array('DEM','DSM','DOM'),"数据产品");
|
||||
$this->_helper->viewRenderer('base');
|
||||
}
|
||||
function reflectanceAction()
|
||||
{
|
||||
$this->getmd(array('地表反照率','地表反射率'),"数据产品");
|
||||
$this->getmdlimited(array('地表反照率','地表反射率'),"数据产品");
|
||||
$this->_helper->viewRenderer('base');
|
||||
}
|
||||
function vegtypeairAction()
|
||||
|
@ -168,17 +168,17 @@ class HiwaterController extends DataController
|
|||
}
|
||||
function vegparamAction()
|
||||
{
|
||||
$this->getmd(array("",'植被结构参数'),"数据产品");
|
||||
$this->getmdlimited(array("",'植被结构参数'),"数据产品");
|
||||
$this->_helper->viewRenderer('base');
|
||||
}
|
||||
function soilmoistureAction()
|
||||
{
|
||||
$this->getmd(array('','土壤水分'),"数据产品");
|
||||
$this->getmdlimited(array('','土壤水分'),"数据产品");
|
||||
$this->_helper->viewRenderer('base');
|
||||
}
|
||||
function temperatureAction()
|
||||
{
|
||||
$this->getmd(array('','地表温度'),"数据产品");
|
||||
$this->getmdlimited(array('','地表温度'),"数据产品");
|
||||
$this->_helper->viewRenderer('base');
|
||||
}
|
||||
|
||||
|
@ -197,7 +197,8 @@ class HiwaterController extends DataController
|
|||
}
|
||||
function normalAction()
|
||||
{
|
||||
$this->getmdlimited(array('西支','黄藏寺','黄草沟','峨堡','景阳岭','阿柔阳坡','阿柔阴坡','戈壁站','神沙窝沙漠站','花寨子荒漠站','张掖湿地站'),'水文气象');
|
||||
$this->getmdlimited(array('景阳岭站','峨堡站','黄草沟站','阿柔阴坡站','阿柔阳坡站','黄藏寺站','大沙龙站','寺大隆站','排露沟林前气象站','水源涵养林研究院观测站','巴吉滩戈壁站','神沙窝沙漠站','张掖湿地站',
|
||||
'花寒子荒漠站','五里墩气象站','四道桥混合林站','四道桥胡杨林站','四道桥裸地站','四道桥农田站','黑河上游生态-水文试验研究站','临泽内陆河流域研究站','阿拉善荒漠生态-水文实验研究站'),'水文气象');
|
||||
$this->_helper->viewRenderer('base');
|
||||
}
|
||||
|
||||
|
|
|
@ -18,7 +18,7 @@ class IndexController extends Zend_Controller_Action
|
|||
$name=basename($this->view->newsletter,'.pdf');
|
||||
list(,$this->view->newsletterno)=explode("_",$name);
|
||||
//统计数据
|
||||
$sql='select (select count(*) from users) as usernum,(select count(*) from heihemetadata) as metanum,(select count(*) from offlineapp where ts_approved is not null ) as offlinenum';
|
||||
$sql='select (select count(*) from users) as usernum,(select count(*) from normalmetadata) as metanum,(select count(*) from offlineapp where ts_approved is not null ) as offlinenum';
|
||||
$row=$this->db->fetchRow($sql);
|
||||
$this->view->usernum=$row['usernum'];
|
||||
$this->view->metanum=$row['metanum'];
|
||||
|
@ -26,7 +26,7 @@ class IndexController extends Zend_Controller_Action
|
|||
/*$sql='select count(*) from metadata';
|
||||
$row=$this->db->fetchRow($sql);
|
||||
$this->view->metanum=$row['count'];*/
|
||||
$sql="select sum(filesize) as sum,datatype from heihemetadata group by datatype";
|
||||
$sql="select sum(filesize) as sum,datatype from normalmetadata group by datatype";
|
||||
$rows=$this->db->fetchAll($sql);
|
||||
foreach($rows as $row)
|
||||
{
|
||||
|
@ -42,12 +42,12 @@ class IndexController extends Zend_Controller_Action
|
|||
$sql="select * from datasetcd order by random()";
|
||||
$this->view->datasetcd=$this->db->fetchRow($sql);
|
||||
//下载最多数据(top 5)
|
||||
$sql="select uuid,title,id from heihemetadata where id in (select m.id from heihemetadata m left join dataorder d on m.uuid=d.uuid where m.datatype=0 group by m.id order by count(d.uuid) desc limit 5)";
|
||||
$sql="select uuid,title,id from normalmetadata where id in (select m.id from normalmetadata m left join dataorder d on m.uuid=d.uuid where m.datatype=0 group by m.id order by count(d.uuid) desc limit 5)";
|
||||
$this->db->setFetchMode(Zend_Db::FETCH_OBJ);
|
||||
$this->view->mdtop=$this->db->fetchAll($sql);
|
||||
$sql="select uuid,title,id from heihemetadata where id in (select m.id from heihemetadata m left join dataorder d on m.uuid=d.uuid where m.datatype=1 group by m.id order by count(d.uuid) desc limit 5)";
|
||||
$sql="select uuid,title,id from normalmetadata where id in (select m.id from normalmetadata m left join dataorder d on m.uuid=d.uuid where m.datatype=1 group by m.id order by count(d.uuid) desc limit 5)";
|
||||
$this->view->offlinemdtop=$this->db->fetchAll($sql);
|
||||
$sql="select m.uuid,m.title,m.id,m.description from heihemetadata m left join thumbnail t on m.id=t.id where length(t.data)>2 order by random()";
|
||||
$sql="select m.uuid,m.title,m.id,m.description from normalmetadata m left join thumbnail t on m.id=t.id where length(t.data)>2 order by random()";
|
||||
$this->view->mdrandom=$this->db->fetchRow($sql);
|
||||
//搜索
|
||||
$this->view->addHelperPath('helper','Zend_View_Helper_');
|
||||
|
@ -85,7 +85,7 @@ class IndexController extends Zend_Controller_Action
|
|||
|
||||
$this->view->list_news = $rows;
|
||||
|
||||
$sql="select d.*,m.ts_published as publish_year from datadoi d right join heihemetadata m on d.uuid=m.uuid where d.ts_published is not null order by ts_published desc limit 4";
|
||||
$sql="select d.*,m.ts_published as publish_year from datadoi d right join normalmetadata m on d.uuid=m.uuid where d.ts_published is not null order by ts_published desc limit 4";
|
||||
$sth = $this->db->query($sql);
|
||||
$this->view->dois = $sth->fetchAll();
|
||||
|
||||
|
|
|
@ -15,7 +15,7 @@ class KnowledgeController extends Zend_Controller_Action
|
|||
function datacenterAction()
|
||||
{
|
||||
$siteid="e31f5ea7-a4af-4ae3-9ac1-1a84132c4338";//site uuid from geonetowrk
|
||||
$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=? order by r.year desc, reference desc";
|
||||
$sth = $this->db->prepare($sql);
|
||||
$sth->execute(array($siteid));
|
||||
$rows = $sth->fetchAll();
|
||||
|
@ -26,9 +26,9 @@ class KnowledgeController extends Zend_Controller_Action
|
|||
Zend_View_Helper_PaginationControl::setDefaultViewPartial('pagination_param.phtml');
|
||||
$this->view->paginator=$paginator;
|
||||
}
|
||||
function userAction()
|
||||
function waterAction()
|
||||
{
|
||||
$sql="select * from reference where id in (select refid from mdref where reftype=1 and uuid in (select uuid from normalmetadata)) order by id desc";
|
||||
$sql="select * from reference where id in (select refid from mdref where uuid in (select uuid from en.normalmetadata)) order by year desc, reference desc";
|
||||
$sth = $this->db->prepare($sql);
|
||||
$sth->execute();
|
||||
$rows = $sth->fetchAll();
|
||||
|
@ -39,9 +39,33 @@ class KnowledgeController extends Zend_Controller_Action
|
|||
Zend_View_Helper_PaginationControl::setDefaultViewPartial('pagination_param.phtml');
|
||||
$this->view->paginator=$paginator;
|
||||
}
|
||||
|
||||
function userAction()
|
||||
{
|
||||
$uuid=$this->_request->getParam('uuid');
|
||||
if (preg_match('/([a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})/',$uuid))
|
||||
{
|
||||
$sql="select uuid,title from metadata where uuid='$uuid'";
|
||||
$sth = $this->db->prepare($sql);
|
||||
$sth->execute();
|
||||
$this->view->md = $sth->fetch();
|
||||
$sql="select * from reference where id in (select refid from mdref where reftype=1 and uuid='$uuid') order by year desc, reference desc";
|
||||
} else
|
||||
$sql="select * from reference where id in (select refid from mdref where reftype=1 and uuid in (select uuid from normalmetadata)) order by year desc, reference 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 authorAction()
|
||||
{
|
||||
$sql="select * from reference where id in (select refid from mdref where reftype=0 and uuid in (select uuid from normalmetadata)) order by id desc";
|
||||
$sql="select * from reference where id in (select refid from mdref where reftype=0 and uuid in (select uuid from normalmetadata)) order by year desc, reference desc";
|
||||
$sth = $this->db->prepare($sql);
|
||||
$sth->execute();
|
||||
$rows = $sth->fetchAll();
|
||||
|
@ -66,14 +90,16 @@ class KnowledgeController extends Zend_Controller_Action
|
|||
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)
|
||||
|
@ -86,10 +112,13 @@ class KnowledgeController extends Zend_Controller_Action
|
|||
$key=preg_replace($patterns, $replacements, $key);
|
||||
}
|
||||
|
||||
if (!empty($key) && $source=='datasource') {
|
||||
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();
|
||||
|
@ -102,23 +131,25 @@ class KnowledgeController extends Zend_Controller_Action
|
|||
$this->view->key=$key;
|
||||
$this->view->source=$source;
|
||||
$this->_helper->viewRenderer('search-data');
|
||||
|
||||
}
|
||||
else if (!empty($key) && $source=='westsource') {
|
||||
$search=new SimpleSearch($key);
|
||||
$where=$search->sql_expr(array("c.title","a.author"));
|
||||
$sql="select distinct a.author,c.title,c.publisher,c.ts_created,c.ts_issued,c.item_id,c.url from knl_article c left join knl_author a on c.item_id=a.item_id where c.url <>'' and a.place=1 and $where order by ts_created desc";
|
||||
|
||||
function paperAction()
|
||||
{
|
||||
$id = (int)$this->_request->getParam('id');
|
||||
$sql="select * from reference where id=$id";
|
||||
$sth = $this->db->prepare($sql);
|
||||
$sth->execute();
|
||||
$rows = $sth->fetchAll();
|
||||
$paginator = Zend_Paginator::factory($rows);
|
||||
$paginator->setCurrentPageNumber($this->_getParam('page'));
|
||||
$paginator->setItemCountPerPage(10);
|
||||
$paginator->setView($this->view);
|
||||
Zend_View_Helper_PaginationControl::setDefaultViewPartial('pagination_param.phtml');
|
||||
$this->view->paginator=$paginator;
|
||||
$this->view->key=$key;
|
||||
$this->view->source=$source;
|
||||
//$this->_helper->viewRenderer('search-data');
|
||||
}
|
||||
$this->view->paper = $sth->fetch();
|
||||
|
||||
$sql="select * from ref_author where id=$id order by place";
|
||||
$sth = $this->db->prepare($sql);
|
||||
$sth->execute();
|
||||
$this->view->author = $sth->fetchAll();
|
||||
|
||||
$sql="select * from ref_tag where id=$id";
|
||||
$sth = $this->db->prepare($sql);
|
||||
$sth->execute();
|
||||
$this->view->tag = $sth->fetchAll();
|
||||
}
|
||||
}
|
|
@ -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>文章引用:'.$row['citation'].'</li>';
|
||||
$citation.="<li>数据的引用:";
|
||||
|
@ -721,12 +718,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数据的引用:";
|
||||
|
@ -1405,7 +1399,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 normalmetadata md on md.uuid=mr.uuid
|
||||
where mr.refid=$id";
|
||||
$pagnation="";
|
||||
|
@ -1454,6 +1448,24 @@ class ServiceController extends Zend_Controller_Action
|
|||
echo $pagnation;
|
||||
}//文档页面相关数据
|
||||
|
||||
function refdatacountAction()
|
||||
{
|
||||
if(view::isXmlHttpRequest($this))
|
||||
{
|
||||
$id = (int)$this->_getParam('id');
|
||||
if($id < 1){
|
||||
echo 0;
|
||||
return;
|
||||
}
|
||||
$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);
|
||||
$row = $rs->fetch();
|
||||
echo $row['total'];
|
||||
}
|
||||
}
|
||||
|
||||
function tagdatalistAction(){
|
||||
|
||||
$this->_helper->layout->disableLayout();
|
||||
|
@ -1649,6 +1661,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))
|
||||
|
@ -1690,6 +1704,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))
|
||||
{
|
||||
|
@ -1789,4 +1807,96 @@ class ServiceController extends Zend_Controller_Action
|
|||
return true;
|
||||
}
|
||||
|
||||
public function dciAction()
|
||||
{
|
||||
$this->_helper->layout->disableLayout();
|
||||
$this->_helper->viewRenderer->setNoRender();
|
||||
//must have doi to output dci
|
||||
$uuid=$this->_request->getParam('uuid');
|
||||
|
||||
$xml='<?xml version="1.0" encoding="utf-8"?>
|
||||
<DigitalContentData>
|
||||
<DataRecord>
|
||||
<Header>
|
||||
<DateProvided>'.date("Y-m-d").'</DateProvided>
|
||||
<RepositoryName>Cold and Arid Regions Science Data Center at Lanzhou</RepositoryName>
|
||||
<Owner>CARD-WDS</Owner>
|
||||
<RecordIdentifier>'.$uuid.'</RecordIdentifier>
|
||||
</Header>
|
||||
<BibliographicData>
|
||||
<AuthorList>';
|
||||
|
||||
$sql="select d.title_en,d.doi,author_en,d.ts_published,m.description,m.timebegin,m.timeend
|
||||
from datadoi d left join en.normalmetadata m on d.uuid=m.uuid where d.uuid=".$this->db->quote($uuid);
|
||||
$row=$this->db->fetchRow($sql);
|
||||
$authors=explode(',',str_replace('"','',substr($row['author_en'],1,-1)));
|
||||
$i=0;
|
||||
foreach($authors as $a)
|
||||
{
|
||||
$i=$i+1;
|
||||
$xml.='<Author seq="'.$i.'" AuthorRole="Author">';
|
||||
$xml.='<AuthorName>'.$a.'</AuthorName></Author>';
|
||||
}
|
||||
$xml.='
|
||||
</AuthorList>
|
||||
<TitleList>
|
||||
<ItemTitle TitleType="English title"><![CDATA['.$row['title_en'].']]></ItemTitle>
|
||||
</TitleList>
|
||||
<Source>
|
||||
<SourceURL>http://card.westgis.ac.cn/data/'.$uuid.'</SourceURL>
|
||||
<SourceRepository AbbreviatedRepository="CARD">CARD</SourceRepository>
|
||||
<PublicationYear>'.date('Y',strtotime($row['ts_published'])).'</PublicationYear>
|
||||
</Source>
|
||||
<LanguageList>
|
||||
<Language>English</Language>
|
||||
</LanguageList>
|
||||
</BibliographicData>';
|
||||
$xml.='<Abstract><![CDATA['.$row['description'].']]></Abstract>';
|
||||
$xml.='<DescriptorsData>';
|
||||
$sql="select k.keyword from en.keyword k left join en.normalmetadata m on k.id=m.id where k.keytype='theme' and m.uuid=".$this->db->quote($uuid);
|
||||
$rowk=$this->db->fetchAll($sql);
|
||||
$xml.='<KeywordsList>';
|
||||
foreach ($rowk as $k)
|
||||
{
|
||||
$xml.='<Keyword><![CDATA['.$k['keyword'].']]></Keyword>';
|
||||
}
|
||||
$xml.='
|
||||
</KeywordsList>';
|
||||
if ($row['timebegin'])
|
||||
{
|
||||
$xml.='<TimeperiodList>
|
||||
<TimePeriod TimeSpan="Start">'.date('Y-m-d',strtotime($row['timebegin'])).'</TimePeriod>';
|
||||
if ($row['timeend'] && (date('Y-m-d',strtotime($row['timebegin']))!=date('Y-m-d',strtotime($row['timeend'])))) $xml.='
|
||||
<TimePeriod TimeSpan="End">'.$row['timeend'].'</TimePeriod>';
|
||||
$xml.='</TimeperiodList>';
|
||||
}
|
||||
$xml.='</DescriptorsData>';
|
||||
$sql="select f.* from fund f left join mdfund mf on f.id=mf.fid where mf.uuid=".$this->db->quote($uuid).' order by mf.place asc';
|
||||
$rowf=$this->db->fetchAll($sql);
|
||||
$xml.='<FundingInfo>';
|
||||
foreach ($rowf as $f)
|
||||
{
|
||||
$xml.='
|
||||
<FundingInfoList>
|
||||
<FundingStatement><GrantNumber>'.$f['fund_id'].'</GrantNumber><FundingOrganization>'.$f['fund_type_en'].'</FundingOrganization></FundingStatement>
|
||||
</FundingInfoList>';
|
||||
}
|
||||
$xml.='</FundingInfo>';
|
||||
$sql="select r.* from reference r left join mdref mr on r.id=mr.refid where mr.reftype=1 and r.language<>'zh' and mr.uuid=".$this->db->quote($uuid).' order by mr.place asc';
|
||||
$rowc=$this->db->fetchAll($sql);
|
||||
$xml.='<CitationList>';
|
||||
foreach ($rowc as $c)
|
||||
{
|
||||
$xml.='<Citation CitationType="Citing" CitationSeq="1">
|
||||
<CitationString>'.$c['reference'].'</CitationString>';
|
||||
if ($c['doi'])
|
||||
$xml.='<CitationDOI>'.$c['doi'].'</CitationDOI>';
|
||||
$xml.='</Citation>';
|
||||
}
|
||||
$xml.='</CitationList>
|
||||
</DataRecord>
|
||||
</DigitalContentData>';
|
||||
$this->getResponse()->setHeader('Content-Type', 'text/xml')
|
||||
->setBody($xml);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -0,0 +1,80 @@
|
|||
<?php
|
||||
use Westdc\Visual\Factory;
|
||||
|
||||
class VisualController extends Zend_Controller_Action
|
||||
{
|
||||
|
||||
function preDispatch()
|
||||
{
|
||||
$this->view->config = Zend_Registry::get('config');
|
||||
$this->db=Zend_Registry::get('db');
|
||||
|
||||
$auth = Zend_Auth::getInstance();
|
||||
if($auth->hasIdentity())
|
||||
{
|
||||
$user = $auth->getIdentity();
|
||||
$this->uid = $user->id;
|
||||
}else{
|
||||
$this->_redirect('/account/login?href=/visual');
|
||||
}
|
||||
}
|
||||
|
||||
function indexAction()
|
||||
{
|
||||
$record_type = $this->_getParam("dataset");
|
||||
|
||||
if(empty($record_type))
|
||||
return true;
|
||||
|
||||
$sc = Factory::Bootstrap($record_type);
|
||||
}
|
||||
|
||||
|
||||
//********************************************************
|
||||
|
||||
/*
|
||||
* dataAction() ajax获取数据
|
||||
*
|
||||
* param string $ac //请求的数据类型
|
||||
* param string $dt //请求的数据来源(气象,水文)
|
||||
*
|
||||
* return view
|
||||
*/
|
||||
function dataAction()
|
||||
{
|
||||
$this->_helper->viewRenderer->setNoRender();
|
||||
$this->_helper->layout->disableLayout();
|
||||
|
||||
$record_type = $this->_getParam("dataset");
|
||||
$record_subset = $this->_getParam("subdataset");
|
||||
|
||||
if(empty($record_type))
|
||||
return true;
|
||||
|
||||
$record = Factory::Bootstrap($record_type);
|
||||
|
||||
if(!empty($record_subset))
|
||||
{
|
||||
$record->subset = $record_subset;
|
||||
}
|
||||
$data = $record->outPut();
|
||||
|
||||
$this->jsonexit($data);
|
||||
return true;
|
||||
|
||||
}//dataAction() Ajax获取数据
|
||||
|
||||
|
||||
/*
|
||||
* jsonexit() 退出并返回json数据
|
||||
*
|
||||
* param array $data 要返回的JSON数据,可以是任意数组
|
||||
*
|
||||
* return application/JSON
|
||||
*/
|
||||
public function jsonexit($data){
|
||||
$this->getResponse()->setHeader('Content-Type', 'application/json')->appendBody(json_encode($data,JSON_NUMERIC_CHECK));
|
||||
return true;
|
||||
}//jsonexit() 退出并返回json数据
|
||||
|
||||
}
|
|
@ -0,0 +1,41 @@
|
|||
<?php
|
||||
$this->headTitle($this->config->title->site);
|
||||
$this->headTitle('用户登录');
|
||||
$this->headTitle()->setSeparator(' - ');
|
||||
$this->breadcrumb('<a href="/">首页</a>');
|
||||
$this->breadcrumb('<a href="/account/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">用户名</label>
|
||||
<div class="controls">
|
||||
<input id="username" type="text" value="" name="username" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="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">确认密码</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">提交</button>
|
||||
<a href="/account/login">登录 </a> <a href="/account/register">注册新用户</a>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
|
@ -0,0 +1,43 @@
|
|||
<?php
|
||||
$this->headTitle($this->config->title->site);
|
||||
$this->headTitle('网站接入');
|
||||
$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>应用接入</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">名称</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">重定向地址</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">确定</button>
|
||||
<button type="button" class="btn">取消</button>
|
||||
</div>
|
||||
</form>
|
||||
<?php }?>
|
||||
</div><!--/span-->
|
||||
</div><!--/row-->
|
|
@ -0,0 +1,25 @@
|
|||
<?php
|
||||
$this->headTitle($this->config->title->site);
|
||||
$this->headTitle('我的账户');
|
||||
$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">应用接入</a>
|
||||
<h3>应用管理</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('用户登录');
|
||||
$this->headTitle()->setSeparator(' - ');
|
||||
$this->breadcrumb('<a href="/">首页</a>');
|
||||
$this->breadcrumb('<a href="/account/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) ? "":"您已经使用 <strong>".$this->target_name."</strong> 账号登录<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>
|
|
@ -53,13 +53,13 @@
|
|||
<div class="control-group ">
|
||||
<label class="control-label">工作单位</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">联系地址</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 ">
|
||||
|
@ -107,13 +107,13 @@
|
|||
<div class="control-group ">
|
||||
<label class="control-label">项目名称</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">项目简介</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">找回密码</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">登录 </a> <a href="/account/register">注册新用户</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">请输入注册时填写的Email地址</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="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()">看不清?</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">提交</button>
|
||||
<a href="/account/login">登录 </a> <a href="/account/register">注册新用户</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>
|
|
@ -2,6 +2,7 @@
|
|||
<li class="nav-header">应用</li>
|
||||
<li id="Nav-account-dataorder"><a href="/data/order">数据篮</a></li>
|
||||
<!-- <li id="Nav-account-myfav"><a href="/account/myfav">我的收藏</a></li> -->
|
||||
<!--<li id="Nav-account-application"><a href="/account/application">我的应用</a></li>-->
|
||||
<li class="nav-header">账户</li>
|
||||
<li id="Nav-account-index"><a href="/account">账户信息</a></li>
|
||||
<li id="Nav-account-secure"><a href="/account/secure">安全性</a></li>
|
||||
|
|
|
@ -8,12 +8,74 @@
|
|||
$this->breadcrumb()->setSeparator(' > ');
|
||||
?>
|
||||
<div class="row-fluit">
|
||||
<div class="span12">
|
||||
<img src="/images/pass_login1.gif" /> 确认服务条款
|
||||
<img src="/images/pass_pic_arrowhead_2.gif" />
|
||||
<img src="/images/pass_login2.gif" /> 填写基本信息
|
||||
<img src="/images/pass_pic_arrowhead_2.gif" />
|
||||
<img src="/images/pass_login3.gif" /> 注册完成
|
||||
<?php echo $this->form;?>
|
||||
<div class="form-login">
|
||||
<div class="form-signin-heading">
|
||||
<h2>用户注册</h2>
|
||||
</div>
|
||||
<?php if(empty($this->error)) { ?>
|
||||
<div class="alert alert-info">
|
||||
请输入身份信息注册系统
|
||||
</div>
|
||||
<? }else{ ?>
|
||||
<div class="alert alert-danger">
|
||||
<?= $this->error ?>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<form class="form-horizontal" id="register" role="form" method="post">
|
||||
<div class="control-group">
|
||||
<label for="inputEmail1" class="control-label">用户名</label>
|
||||
<div class="controls">
|
||||
<input type="text" class="form-control" id="inputEmail1" name="username" placeholder="Username" value="<?= isset($this->data['username']) ? $this->data['username']:"" ?>">
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label for="inputPassword1" class="control-label">密码</label>
|
||||
<div class="controls">
|
||||
<input type="password" class="form-control" id="inputPassword1" name="password" placeholder="Password">
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label for="inputPassword1" class="control-label">确认密码</label>
|
||||
<div class="controls">
|
||||
<input type="password" class="form-control" id="inputPassword1" name="confirm_password" placeholder="Type In Password Agian">
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label for="inputPassword1" class="control-label">Email</label>
|
||||
<div class="controls">
|
||||
<input type="email" class="form-control" id="inputPassword1" name="email" placeholder="Email" value="<?= isset($this->data['email']) ? $this->data['email']:"" ?>">
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label for="inputPassword1" class="control-label">真实姓名</label>
|
||||
<div class="controls">
|
||||
<input type="text" class="form-control" id="inputPassword1" name="realname" placeholder="Name" value="<?= isset($this->data['realname']) ? $this->data['realname']:"" ?>">
|
||||
</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 btn-default">注册</button>
|
||||
<a class="" href="/account/login" style="margin-right:10px;">登录</a>
|
||||
<a class="" href="/account/forgotpassword" style="margin-right:10px;">忘记密码</a>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
<?php if(!empty($this->place)){?>
|
||||
<script>
|
||||
$('#register input[name=<?= $this->place ?>]').parent('div').parent('.control-group').addClass('error');
|
||||
$('#register input[name=<?= $this->place ?>]').focus();
|
||||
if($('#register input[name=<?= $this->place ?>]').val() != '')
|
||||
{
|
||||
$('#register input[name=<?= $this->place ?>]').select();
|
||||
}
|
||||
$('#register').children('.control-group').children('.controls').children('input').change(function(e) {
|
||||
$(this).parent('div').parent('.control-group').removeClass('error');
|
||||
});
|
||||
</script>
|
||||
<?php } ?>
|
|
@ -96,10 +96,10 @@ function getFtp(uuid){
|
|||
{
|
||||
if(data.statu > 0)
|
||||
{
|
||||
var html = '<p>临时FTP帐号信息<b>(此帐号仅对应当前数据集!)</b></p><p>ftp://ftp2.westgis.ac.cn/</p>'+
|
||||
var html = '<p>临时FTP帐号信息<b>(此帐号仅对应当前数据集!)</b></p><p>ftp://ftp.sanjiangyuan.org.cn/</p>'+
|
||||
'<p>用户名:'+data.user+
|
||||
'</p><p>密码:'+data.passwd+'</p>'
|
||||
+'<p><a href="ftp://'+data.user+':'+data.passwd+'@ftp1.westgis.ac.cn/">或直接点击此链接</a></p>';
|
||||
+'<p><a href="ftp://'+data.user+':'+data.passwd+'@ftp.sanjiangyuan.org.cn/">或直接点击此链接</a></p>';
|
||||
Alert(html);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -102,6 +102,7 @@ $this->headTitle()->setSeparator(' - ');
|
|||
<li>- <a href="/data/offlineapp">离线数据服务记录(最近20个)</a></li>
|
||||
<li>- <a href="/data/request">如何从数据中心申请数据</a></li>
|
||||
<li>- <a href="/data/submit">如何在数据中心发布数据</a></li>
|
||||
<li>- <a href="/visual">数据可视化</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
|
|
|
@ -19,6 +19,7 @@ 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);?>
|
||||
|
@ -33,6 +34,25 @@ if ($md->title_en) echo '<br />'.$this->escape($md->title_en);?>
|
|||
</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>
|
||||
|
@ -48,27 +68,61 @@ 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; 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))
|
||||
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;
|
||||
?>
|
||||
</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; ?>
|
||||
|
@ -101,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)) : ?>
|
||||
|
|
|
@ -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>
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
<div class="container">
|
||||
<div class="masthead">
|
||||
<div class="row banner">
|
||||
<div class="span6"><h3 class="head-title">三江源生态监测数据的服务管理平台</h3></div>
|
||||
<div class="span6"><h3 class="head-title">三江源生态监测综合数据服务平台</h3></div>
|
||||
<div class="span6">
|
||||
|
||||
</div>
|
||||
|
|
|
@ -71,27 +71,61 @@ 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))
|
||||
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;
|
||||
?>
|
||||
</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; ?>
|
||||
|
@ -124,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)) : ?>
|
||||
|
@ -445,7 +479,7 @@ endforeach;
|
|||
<a class="jiathis_counter_style"></a>
|
||||
</div>
|
||||
<!-- JiaThis Button END -->
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<script src="/js/metadata-view.js"></script>
|
||||
|
@ -520,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>
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue