merge sanjiangyuan branch r4109 - r4535 to sanjiangyuan-sub
This commit is contained in:
commit
b55e23cf2e
|
@ -1,6 +1,9 @@
|
||||||
<?php
|
<?php
|
||||||
use Helpers\View as view;
|
use Helpers\View as view;
|
||||||
use Reference\Reference;
|
use Reference\Reference;
|
||||||
|
use Reference\Ris;
|
||||||
|
use Reference\RisOutput;
|
||||||
|
use Helpers\dbh;
|
||||||
use \Files\Files;
|
use \Files\Files;
|
||||||
|
|
||||||
class Admin_DataController extends Zend_Controller_Action
|
class Admin_DataController extends Zend_Controller_Action
|
||||||
|
@ -553,9 +556,9 @@ class Admin_DataController extends Zend_Controller_Action
|
||||||
if ($host=='ftp1.westgis.ac.cn')
|
if ($host=='ftp1.westgis.ac.cn')
|
||||||
{
|
{
|
||||||
file_get_contents("http://ftp1.westgis.ac.cn/proftp_upload.php?uuid=".$uuid."&filelist=1");
|
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)
|
if($ds)
|
||||||
|
@ -596,9 +599,9 @@ class Admin_DataController extends Zend_Controller_Action
|
||||||
if ($host=='ftp1.westgis.ac.cn')
|
if ($host=='ftp1.westgis.ac.cn')
|
||||||
{
|
{
|
||||||
file_get_contents("http://ftp1.westgis.ac.cn/proftp_upload.php?uuid=".$uuid."&filelist=1");
|
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)
|
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");
|
file_get_contents("http://ftp1.westgis.ac.cn/proftp_upload.php?uuid=".$uuid."&filelist=1");
|
||||||
echo '<h1>数据目录成功导入!</h1>';
|
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>';
|
echo '<h1>数据目录成功导入!</h1>';
|
||||||
} else {
|
} else {
|
||||||
echo '<h1>数据目录未导入!</h1>';
|
echo '<h1>数据目录未导入!</h1>';
|
||||||
|
@ -1126,6 +1129,7 @@ class Admin_DataController extends Zend_Controller_Action
|
||||||
$keyword = $this->view->q = trim($this->_getParam('q'));
|
$keyword = $this->view->q = trim($this->_getParam('q'));
|
||||||
$order = $this->view->search_order = trim($this->_getParam('order'));
|
$order = $this->view->search_order = trim($this->_getParam('order'));
|
||||||
$sort = $this->view->search_sort = trim($this->_getParam('sort'));
|
$sort = $this->view->search_sort = trim($this->_getParam('sort'));
|
||||||
|
$field = $this->view->search_field = $this->_getParam('field');
|
||||||
|
|
||||||
$reference = new Reference();
|
$reference = new Reference();
|
||||||
|
|
||||||
|
@ -1134,6 +1138,11 @@ class Admin_DataController extends Zend_Controller_Action
|
||||||
$reference->keyword = $keyword;
|
$reference->keyword = $keyword;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(!empty($field))
|
||||||
|
{
|
||||||
|
$reference->field = $field;
|
||||||
|
}
|
||||||
|
|
||||||
if(!empty($order))
|
if(!empty($order))
|
||||||
{
|
{
|
||||||
$reference->order = $order;
|
$reference->order = $order;
|
||||||
|
@ -1144,19 +1153,40 @@ class Admin_DataController extends Zend_Controller_Action
|
||||||
$reference->sort = $sort;
|
$reference->sort = $sort;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$this->view->reference = $reference;
|
||||||
|
$this->view->page = $this->_getParam('page');
|
||||||
|
$this->view->pagelimit = 12;
|
||||||
|
|
||||||
//文献首页
|
//文献首页
|
||||||
if(empty($ac))
|
if(empty($ac))
|
||||||
{
|
{
|
||||||
$this->view->referenceType = $reference->referenceType();
|
$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;
|
return true;
|
||||||
}
|
}
|
||||||
else if ($ac == "water")
|
else if ($ac == "water")
|
||||||
{
|
{
|
||||||
$this->view->referenceType = $reference->referenceType();
|
$this->view->referenceType = $reference->referenceType();
|
||||||
view::addPaginator($reference->fetchThemeReferences('water'),$this,10);
|
view::addPaginator($reference->fetchThemeReferences('water'),$this,$this->view->pagelimit);
|
||||||
return true;
|
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")
|
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()
|
}//文献管理 refAction()
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -1788,8 +1893,8 @@ class Admin_DataController extends Zend_Controller_Action
|
||||||
|
|
||||||
$id = $this->_getParam('attupdate');
|
$id = $this->_getParam('attupdate');
|
||||||
|
|
||||||
$files=new files();
|
$files=new Files();
|
||||||
$msg = $files -> upload($this->view->config->upload,$_FILES['Filedata'],empty($uuid)?'file':'md');
|
$msg = $files -> upload($_FILES['Filedata'],empty($uuid)?'file/':'md/',true);
|
||||||
|
|
||||||
if(empty($msg['error']))
|
if(empty($msg['error']))
|
||||||
{
|
{
|
||||||
|
@ -1797,7 +1902,7 @@ class Admin_DataController extends Zend_Controller_Action
|
||||||
$filename = $msg['db_path'];
|
$filename = $msg['db_path'];
|
||||||
$filesize = $msg['file_size'];
|
$filesize = $msg['file_size'];
|
||||||
$filedesc = $this->_request->getParam('filedesc');
|
$filedesc = $this->_request->getParam('filedesc');
|
||||||
$filetype = $msg['file_type'];
|
$filetype = 'md';
|
||||||
$realname = $msg['realname'];
|
$realname = $msg['realname'];
|
||||||
|
|
||||||
|
|
||||||
|
@ -2116,8 +2221,8 @@ class Admin_DataController extends Zend_Controller_Action
|
||||||
exit();
|
exit();
|
||||||
}
|
}
|
||||||
|
|
||||||
$files=new files();
|
$files=new Files();
|
||||||
$msg = $files -> upload($this->view->config->upload,$_FILES['Filedata'],empty($uuid)?'file':'md');
|
$msg = $files -> upload($_FILES['Filedata'],empty($uuid)?'file/':'md/',true);
|
||||||
|
|
||||||
if(empty($msg['error']))
|
if(empty($msg['error']))
|
||||||
{
|
{
|
||||||
|
@ -2125,7 +2230,7 @@ class Admin_DataController extends Zend_Controller_Action
|
||||||
$filename = $msg['db_path'];
|
$filename = $msg['db_path'];
|
||||||
$filesize = $msg['file_size'];
|
$filesize = $msg['file_size'];
|
||||||
$filedesc = $this->_request->getParam('filedesc');
|
$filedesc = $this->_request->getParam('filedesc');
|
||||||
$filetype = $msg['file_type'];
|
$filetype = 'md';
|
||||||
$realname = $msg['realname'];
|
$realname = $msg['realname'];
|
||||||
|
|
||||||
|
|
||||||
|
@ -2184,10 +2289,6 @@ class Admin_DataController extends Zend_Controller_Action
|
||||||
$rs = $this->db->query($sql);
|
$rs = $this->db->query($sql);
|
||||||
$atts = $rs->fetchAll();
|
$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);
|
echo Zend_Json::encode($atts);
|
||||||
exit();
|
exit();
|
||||||
}else
|
}else
|
||||||
|
@ -2209,6 +2310,7 @@ class Admin_DataController extends Zend_Controller_Action
|
||||||
|
|
||||||
$ac = $this->_request->getParam('ac');
|
$ac = $this->_request->getParam('ac');
|
||||||
$uuid = $this->_request->getParam('uuid');
|
$uuid = $this->_request->getParam('uuid');
|
||||||
|
set_time_limit(0);
|
||||||
|
|
||||||
$auth = Zend_Auth::getInstance();
|
$auth = Zend_Auth::getInstance();
|
||||||
if($auth->hasIdentity())
|
if($auth->hasIdentity())
|
||||||
|
@ -2566,7 +2668,7 @@ class Admin_DataController extends Zend_Controller_Action
|
||||||
unset($mailtp);
|
unset($mailtp);
|
||||||
//email to author
|
//email to author
|
||||||
$mail=new WestdcMailer($this->view->config->smtp);
|
$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(
|
$mailtp=new EmailText($this->db,"version-commit-author",array(
|
||||||
'user' => $user->username,
|
'user' => $user->username,
|
||||||
'uuid' => $row['uuid'],
|
'uuid' => $row['uuid'],
|
||||||
|
@ -2620,7 +2722,7 @@ class Admin_DataController extends Zend_Controller_Action
|
||||||
unset($mailtp);
|
unset($mailtp);
|
||||||
//email to author
|
//email to author
|
||||||
$mail=new WestdcMailer($this->view->config->smtp);
|
$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(
|
$mailtp=new EmailText($this->db,"version-commit-author",array(
|
||||||
'user' => $user->username,
|
'user' => $user->username,
|
||||||
'uuid' => $row['uuid'],
|
'uuid' => $row['uuid'],
|
||||||
|
@ -2686,7 +2788,7 @@ class Admin_DataController extends Zend_Controller_Action
|
||||||
|
|
||||||
//email to admin & author
|
//email to admin & author
|
||||||
$mail=new WestdcMailer($this->view->config->smtp);
|
$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(
|
$mailtp=new EmailText($this->db,"metadata-release",array(
|
||||||
'user' => $user->username,
|
'user' => $user->username,
|
||||||
'uuid' => $row['uuid'],
|
'uuid' => $row['uuid'],
|
||||||
|
@ -3837,6 +3939,22 @@ class Admin_DataController extends Zend_Controller_Action
|
||||||
|
|
||||||
}//fund
|
}//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()
|
public function doiAction()
|
||||||
{
|
{
|
||||||
$ac = $this->_getParam('ac');
|
$ac = $this->_getParam('ac');
|
||||||
|
@ -3899,6 +4017,11 @@ class Admin_DataController extends Zend_Controller_Action
|
||||||
}else{
|
}else{
|
||||||
$this->view->data['doi'] = $metadata['doi'];
|
$this->view->data['doi'] = $metadata['doi'];
|
||||||
$this->view->data['info'] = $doi->data_process_out($this->view->data);
|
$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{
|
}else{
|
||||||
$this->view->data = $doi->view($uuid);
|
$this->view->data = $doi->view($uuid);
|
||||||
|
|
|
@ -4,6 +4,7 @@ use Files\Files;
|
||||||
use Files\Output;
|
use Files\Output;
|
||||||
use Files\Listener\FileListener;
|
use Files\Listener\FileListener;
|
||||||
use Order\Manager\Offlineapp;
|
use Order\Manager\Offlineapp;
|
||||||
|
use Order\Manager\Application;
|
||||||
use data\DataService;
|
use data\DataService;
|
||||||
use Mail\Mail;
|
use Mail\Mail;
|
||||||
|
|
||||||
|
@ -374,8 +375,8 @@ class Admin_DownController extends Zend_Controller_Action
|
||||||
$mail->setSubject($mailtp->getSubject());
|
$mail->setSubject($mailtp->getSubject());
|
||||||
$addrs=array();
|
$addrs=array();
|
||||||
$addrs[] = 'nztong@lzb.ac.cn';
|
$addrs[] = 'nztong@lzb.ac.cn';
|
||||||
$addrs[] = 'wjian@lzb.ac.cn';
|
$addrs[] = 'wangliangxu@lzb.ac.cn';
|
||||||
$addrs[] = 'lixin@lzb.ac.cn';
|
$addrs[] = 'wulizong@lzb.ac.cn';
|
||||||
$mail->addTo($addrs);
|
$mail->addTo($addrs);
|
||||||
$mail->addCc($this->view->config->service->email,'西部数据中心服务组');
|
$mail->addCc($this->view->config->service->email,'西部数据中心服务组');
|
||||||
$mail->createAttachment($filecontent,'application/octet-stream',Zend_Mime::DISPOSITION_ATTACHMENT, Zend_Mime::ENCODING_BASE64, 'offlineapp.pdf');
|
$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) {
|
foreach($rs as $data) {
|
||||||
if ($data['host']=='ftp1.westgis.ac.cn')
|
if ($data['host']=='ftp1.westgis.ac.cn')
|
||||||
$has_ftp1=true;
|
$has_ftp1=true;
|
||||||
if ($data['host']=='ftp2.westgis.ac.cn')
|
if ($data['host']=='ftp.sanjiangyuan.org.cn')
|
||||||
$has_ftp2=true;
|
$has_ftp2=true;
|
||||||
|
|
||||||
// deal with ftp.westgis.ac.cn, use g6 to add path
|
// 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)
|
if ($has_ftp1)
|
||||||
{
|
{
|
||||||
$user=(object)array("id"=>$row['userid'],
|
$user=(object)array("id"=>$row['userid'],
|
||||||
"username"=>"westdc_".$row['userid'],
|
"username"=>"sjy_".$row['userid'],
|
||||||
"password"=>$password,
|
"password"=>$password,
|
||||||
"time"=>date('Y-m-d H:i:s', strtotime('+2 week')),
|
"time"=>date('Y-m-d H:i:s', strtotime('+2 week')),
|
||||||
//"path"=>$path,
|
//"path"=>$path,
|
||||||
|
@ -621,12 +622,12 @@ class Admin_DownController extends Zend_Controller_Action
|
||||||
if ($has_ftp2)
|
if ($has_ftp2)
|
||||||
{
|
{
|
||||||
$user=(object)array("id"=>$row['userid'],
|
$user=(object)array("id"=>$row['userid'],
|
||||||
"username"=>"westdc_".$row['userid'],
|
"username"=>"sjy_".$row['userid'],
|
||||||
"password"=>$password,
|
"password"=>$password,
|
||||||
"time"=>date('Y-m-d H:i:s', strtotime('+2 week')),
|
"time"=>date('Y-m-d H:i:s', strtotime('+2 week')),
|
||||||
//"path"=>$path,
|
//"path"=>$path,
|
||||||
"param"=>"offlineappid=".$finish,
|
"param"=>"offlineappid=".$finish,
|
||||||
"host"=>'ftp2.westgis.ac.cn',
|
"host"=>'ftp.sanjiangyuan.org.cn',
|
||||||
"maxdata"=>$this->view->config->download->max,
|
"maxdata"=>$this->view->config->download->max,
|
||||||
"datacount"=>1 //represent one offline application
|
"datacount"=>1 //represent one offline application
|
||||||
);
|
);
|
||||||
|
@ -649,10 +650,10 @@ class Admin_DownController extends Zend_Controller_Action
|
||||||
$ftphost='ftp://ftp1.westgis.ac.cn';
|
$ftphost='ftp://ftp1.westgis.ac.cn';
|
||||||
} else if (!$has_ftp1 && $has_ftp2)
|
} else if (!$has_ftp1 && $has_ftp2)
|
||||||
{
|
{
|
||||||
$ftphost='ftp://ftp2.westgis.ac.cn';
|
$ftphost='ftp://ftp.sanjiangyuan.org.cn';
|
||||||
} else if ($has_ftp1 && $has_ftp2)
|
} 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);
|
$mail = new WestdcMailer($this->view->config->smtp);
|
||||||
|
@ -874,8 +875,10 @@ class Admin_DownController extends Zend_Controller_Action
|
||||||
if ($form->isValid($formdata)) {
|
if ($form->isValid($formdata)) {
|
||||||
$uploadedData = $form->getValues();
|
$uploadedData = $form->getValues();
|
||||||
$pdf = basename($form->pdf->getFileName());
|
$pdf = basename($form->pdf->getFileName());
|
||||||
$sql="insert into offlineapp (username,email,unit,phone,address,postcode,project,pdflink,datalist,ts_created,ts_approved) values(?,?,?,?,?,?,?,?,?,?,now())";
|
$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']));
|
$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->messenger->addMessage('提示信息:您已经成功添加该离线服务记录。');
|
||||||
$this->_redirect('/admin/down/offline');
|
$this->_redirect('/admin/down/offline');
|
||||||
} else {
|
} else {
|
||||||
|
@ -896,11 +899,14 @@ class Admin_DownController extends Zend_Controller_Action
|
||||||
$pdf = basename($form->pdf->getFileName());
|
$pdf = basename($form->pdf->getFileName());
|
||||||
$sql="update offlineapp set username=?,email=?,unit=?,phone=?,address=?,postcode=?,project=?,";
|
$sql="update offlineapp set username=?,email=?,unit=?,phone=?,address=?,postcode=?,project=?,";
|
||||||
if ($form->pdf->isUploaded()) $sql.="pdflink=?,";
|
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']);
|
$param=array($formdata['username'],$formdata['email'],$formdata['unit'],$formdata['phone'],$formdata['address'],$formdata['postcode'],$formdata['project']);
|
||||||
if ($form->pdf->isUploaded()) $param[]=$pdf;
|
if ($form->pdf->isUploaded()) $param[]=$pdf;
|
||||||
$param[]=$formdata['datalist'];
|
$param[]=$formdata['datalist'];
|
||||||
$param[]=$formdata['ts_approved'];
|
$param[]=$formdata['ts_approved'];
|
||||||
|
$param[]=$formdata['project_id'];
|
||||||
|
$param[]=$formdata['project_title'];
|
||||||
|
$param[]=$formdata['project_type'];
|
||||||
$param[]=$edit;
|
$param[]=$edit;
|
||||||
$this->db->query($sql,$param);
|
$this->db->query($sql,$param);
|
||||||
$this->messenger->addMessage('提示信息:您已经编辑添加该记录。');
|
$this->messenger->addMessage('提示信息:您已经编辑添加该记录。');
|
||||||
|
@ -1049,9 +1055,15 @@ class Admin_DownController extends Zend_Controller_Action
|
||||||
|
|
||||||
//设置当前活动sheet的名称
|
//设置当前活动sheet的名称
|
||||||
$objActSheet->setTitle('离线服务记录');
|
$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
|
$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
|
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);
|
$re = $this->db->query($sql);
|
||||||
$rows = $re->fetchAll();
|
$rows = $re->fetchAll();
|
||||||
|
@ -1080,7 +1092,7 @@ class Admin_DownController extends Zend_Controller_Action
|
||||||
$objActSheet->setTitle('在线服务记录');
|
$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
|
$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
|
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);
|
$re = $this->db->query($sql);
|
||||||
$rows = $re->fetchAll();
|
$rows = $re->fetchAll();
|
||||||
|
@ -1137,16 +1149,15 @@ class Admin_DownController extends Zend_Controller_Action
|
||||||
->setBody($objWriter->save('php://output'));*/
|
->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');
|
$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开始记录。
|
//在线数据下载情况,仅针对onlineapp表,自2011-9-8开始记录。
|
||||||
function onlineAction()
|
function onlineAction()
|
||||||
|
@ -1364,7 +1375,7 @@ class Admin_DownController extends Zend_Controller_Action
|
||||||
$sql = "select distinct u.email
|
$sql = "select distinct u.email
|
||||||
from dataorder d
|
from dataorder d
|
||||||
LEFT JOIN users u on d.userid = u.id
|
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=?
|
AND d.uuid=?
|
||||||
GROUP BY u.email";
|
GROUP BY u.email";
|
||||||
|
|
||||||
|
|
|
@ -761,7 +761,7 @@ class Admin_ReviewController extends Zend_Controller_Action
|
||||||
if (is_numeric($ids))
|
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
|
$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));
|
$rs=$this->db->query($sql,array($ids));
|
||||||
$rows=$rs->fetchAll();
|
$rows=$rs->fetchAll();
|
||||||
if ($rows)
|
if ($rows)
|
||||||
|
@ -805,9 +805,10 @@ class Admin_ReviewController extends Zend_Controller_Action
|
||||||
$this->view->keyword = $keyword;
|
$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
|
right join metadata md on md.uuid=m.uuid
|
||||||
left join users u on u.id=m.userid
|
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";
|
where status=0 $searchjoin order by m.ts_created desc";
|
||||||
|
|
||||||
$re = $this->db->query($sql);
|
$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
|
$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
|
right join metadata md on md.uuid=m.uuid
|
||||||
left join users u on u.id=m.userid
|
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);
|
$re = $this->db->query($sql);
|
||||||
$rows = $re->fetchAll();
|
$rows = $re->fetchAll();
|
||||||
|
|
|
@ -1,437 +1,456 @@
|
||||||
<?php
|
<?php
|
||||||
class Admin_StatController extends Zend_Controller_Action
|
class Admin_StatController extends Zend_Controller_Action
|
||||||
{
|
{
|
||||||
function preDispatch()
|
function preDispatch()
|
||||||
{
|
{
|
||||||
$this->db=Zend_Registry::get('db');
|
$this->db=Zend_Registry::get('db');
|
||||||
$this->view->config = Zend_Registry::get('config');
|
$this->view->config = Zend_Registry::get('config');
|
||||||
$this->messenger=$this->_helper->getHelper('FlashMessenger');
|
$this->messenger=$this->_helper->getHelper('FlashMessenger');
|
||||||
$this->view->messages = $this->messenger->getMessages();
|
$this->view->messages = $this->messenger->getMessages();
|
||||||
$this->view->theme = new Theme();
|
$this->view->theme = new Theme();
|
||||||
$this->_helper->layout->setLayout('administry');
|
$this->_helper->layout->setLayout('administry');
|
||||||
}
|
}
|
||||||
function postDispatch()
|
function postDispatch()
|
||||||
{
|
{
|
||||||
$this->view->messages = $this->messenger->getMessages();
|
$this->view->messages = $this->messenger->getMessages();
|
||||||
}
|
}
|
||||||
function indexAction()
|
function indexAction()
|
||||||
{
|
{
|
||||||
$sql="select (select count(id) from users) as alluser,
|
$sql="select (select count(id) from users) as alluser,
|
||||||
(select count(id) from normalmetadata) as alldata,
|
(select count(id) from normalmetadata) as alldata,
|
||||||
(select count(id) as num from dataorder where status=0) as onlinedown,
|
(select count(id) as num from dataorder where status=0) as onlinedown,
|
||||||
(select count(id) as num from dataorder where status=5) as offlinedown,
|
(select count(id) as num from dataorder where status=5) as offlinedown,
|
||||||
(select count(id) as num from offlineapp where ts_approved is not null) as offlinepass,
|
(select count(id) as num from offlineapp where ts_approved is not null) as offlinepass,
|
||||||
(select count(id) as num from offlineapp where ts_approved is null) as offlineunfinished,
|
(select count(id) as num from offlineapp where ts_approved is null) as offlineunfinished,
|
||||||
(select count(id) as num from dataorder where offlineappid>0 and status=-1) as offlinedenied,
|
(select count(id) as num from dataorder where offlineappid>0 and status=-1) as offlinedenied,
|
||||||
(select count(id) as num from onlineapp) as onlineapp";
|
(select count(id) as num from onlineapp) as onlineapp";
|
||||||
$this->view->stat=$this->db->fetchRow($sql);
|
$this->view->stat=$this->db->fetchRow($sql);
|
||||||
|
|
||||||
//下载量统计
|
//下载量统计
|
||||||
$sql = "select sum(num) as num from (select m.filesize/1024 as num,m.title,d.userid from dataorder d left join metadata m on d.uuid=m.uuid where (d.status=0 or d.status=5) and m.filesize>0 group by m.title,d.userid,m.filesize) as t";
|
$sql = "select sum(num) as num from (select m.filesize/1024 as num,m.title,d.userid from dataorder d left join metadata m on d.uuid=m.uuid where (d.status=0 or d.status=5) and m.filesize>0 group by m.title,d.userid,m.filesize) as t";
|
||||||
$res = $this->db->query($sql);
|
$res = $this->db->query($sql);
|
||||||
$allsize = $res->fetch();
|
$allsize = $res->fetch();
|
||||||
$this->view->allsize = $allsize;
|
$this->view->allsize = $allsize;
|
||||||
|
|
||||||
$sql = "select sum(num) as num from (select m.filesize/1024 as num,m.title,d.userid from dataorder d left join metadata m on d.uuid=m.uuid where d.status=5 and m.filesize>0 group by m.title,d.userid,m.filesize) as t";
|
$sql = "select sum(num) as num from (select m.filesize/1024 as num,m.title,d.userid from dataorder d left join metadata m on d.uuid=m.uuid where d.status=5 and m.filesize>0 group by m.title,d.userid,m.filesize) as t";
|
||||||
$res = $this->db->query($sql);
|
$res = $this->db->query($sql);
|
||||||
$offlinesize = $res->fetch();
|
$offlinesize = $res->fetch();
|
||||||
$this->view->offlinesize = $offlinesize;
|
$this->view->offlinesize = $offlinesize;
|
||||||
|
|
||||||
$sql = "select sum(num) as num from (select m.filesize/1024 as num,m.title,d.userid from dataorder d left join metadata m on d.uuid=m.uuid where d.status=0 and m.filesize>0 group by m.title,d.userid,m.filesize) as t";
|
$sql = "select sum(num) as num from (select m.filesize/1024 as num,m.title,d.userid from dataorder d left join metadata m on d.uuid=m.uuid where d.status=0 and m.filesize>0 group by m.title,d.userid,m.filesize) as t";
|
||||||
$res = $this->db->query($sql);
|
$res = $this->db->query($sql);
|
||||||
$onlinesize = $res->fetch();
|
$onlinesize = $res->fetch();
|
||||||
$this->view->onlinesize = $onlinesize;
|
$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'";
|
}//indexAction 首页
|
||||||
$res = $this->db->query($sql);
|
|
||||||
$onlinesize = $res->fetch();
|
function unitAction()
|
||||||
$this->view->onlineg6size = $onlinesize;
|
{
|
||||||
|
$ac = $this->_getParam('ac');
|
||||||
|
$y = (int)$this->_request->getParam('y');
|
||||||
}//indexAction 首页
|
|
||||||
|
if(!empty($y))
|
||||||
function unitAction()
|
{
|
||||||
{
|
$n = date("Y",time());
|
||||||
$ac = $this->_getParam('ac');
|
if($y<2004 || $y>$n)
|
||||||
$y = (int)$this->_request->getParam('y');
|
{
|
||||||
|
$y=$n;
|
||||||
if(!empty($y))
|
}
|
||||||
{
|
}
|
||||||
$n = date("Y",time());
|
$this->view->y = $y;
|
||||||
if($y<2004 || $y>$n)
|
|
||||||
{
|
//各单位下载情况,统计的离线申请数据条数,需要有对应的dataorder记录
|
||||||
$y=$n;
|
/*$sql = "select count(d.id) as num,o.unit from dataorder d
|
||||||
}
|
left join offlineapp o on o.id=d.offlineappid
|
||||||
}
|
where d.offlineappid>0 and o.unit is not null and d.status>4";*/
|
||||||
$this->view->y = $y;
|
//各单位下载情况,统计的离线申请数据次数
|
||||||
|
$sql = "select count(o.id) as num,o.unit from offlineapp o
|
||||||
//各单位下载情况,统计的离线申请数据条数,需要有对应的dataorder记录
|
where o.unit is not null ";
|
||||||
/*$sql = "select count(d.id) as num,o.unit from dataorder d
|
if ($y)
|
||||||
left join offlineapp o on o.id=d.offlineappid
|
$sql.=" and extract(year from o.ts_created)='$y'";
|
||||||
where d.offlineappid>0 and o.unit is not null and d.status>4";*/
|
$sql.=" group by o.unit";
|
||||||
//各单位下载情况,统计的离线申请数据次数
|
$fe = $this->db->query($sql);
|
||||||
$sql = "select count(o.id) as num,o.unit from offlineapp o
|
$unitoffline = $fe->fetchAll();
|
||||||
where o.unit is not null ";
|
|
||||||
if ($y)
|
//各单位在线下载情况
|
||||||
$sql.=" and extract(year from o.ts_created)='$y'";
|
$sql = "select count(d.id) as num,o.unit from dataorder d
|
||||||
$sql.=" group by o.unit";
|
left join onlineapp o on o.id=d.onlineappid
|
||||||
$fe = $this->db->query($sql);
|
where d.onlineappid>0 and o.unit is not null";
|
||||||
$unitoffline = $fe->fetchAll();
|
if ($y)
|
||||||
|
$sql.=" and extract(year from o.ts_created)='$y'";
|
||||||
//各单位在线下载情况
|
$sql.=" group by o.unit";
|
||||||
$sql = "select count(d.id) as num,o.unit from dataorder d
|
$fe = $this->db->query($sql);
|
||||||
left join onlineapp o on o.id=d.onlineappid
|
$unitonline = $fe->fetchAll();
|
||||||
where d.onlineappid>0 and o.unit is not null";
|
|
||||||
if ($y)
|
$units = array();
|
||||||
$sql.=" and extract(year from o.ts_created)='$y'";
|
|
||||||
$sql.=" group by o.unit";
|
foreach($unitonline as $k=>$v)
|
||||||
$fe = $this->db->query($sql);
|
{
|
||||||
$unitonline = $fe->fetchAll();
|
if(isset($v['num']))
|
||||||
|
{
|
||||||
$units = array();
|
$units[$v['unit']]['online'] = $v['num'];
|
||||||
|
}
|
||||||
foreach($unitonline as $k=>$v)
|
}
|
||||||
{
|
|
||||||
if(isset($v['num']))
|
foreach($unitoffline as $k=>$v)
|
||||||
{
|
{
|
||||||
$units[$v['unit']]['online'] = $v['num'];
|
if(isset($v['num']))
|
||||||
}
|
{
|
||||||
}
|
$units[$v['unit']]['offline'] = $v['num'];
|
||||||
|
}
|
||||||
foreach($unitoffline as $k=>$v)
|
}
|
||||||
{
|
|
||||||
if(isset($v['num']))
|
$index = 1;
|
||||||
{
|
|
||||||
$units[$v['unit']]['offline'] = $v['num'];
|
foreach($units as $k=>$v)
|
||||||
}
|
{
|
||||||
}
|
if(!isset($v['online']))
|
||||||
|
{
|
||||||
$index = 1;
|
$units[$k]['online'] = 0;
|
||||||
|
}
|
||||||
foreach($units as $k=>$v)
|
|
||||||
{
|
if(!isset($v['offline']))
|
||||||
if(!isset($v['online']))
|
{
|
||||||
{
|
$units[$k]['offline'] = 0;
|
||||||
$units[$k]['online'] = 0;
|
}
|
||||||
}
|
|
||||||
|
$units[$k]['total'] = $units[$k]['online'] + $units[$k]['offline'];
|
||||||
if(!isset($v['offline']))
|
|
||||||
{
|
$units[$k]['index'] = $index++;
|
||||||
$units[$k]['offline'] = 0;
|
}
|
||||||
}
|
|
||||||
|
if($ac == "out")
|
||||||
$units[$k]['total'] = $units[$k]['online'] + $units[$k]['offline'];
|
{
|
||||||
|
$type = $this->_getParam('type');
|
||||||
$units[$k]['index'] = $index++;
|
|
||||||
}
|
if(empty($type) || $type == "csv")
|
||||||
|
{
|
||||||
if($ac == "out")
|
$this->_helper->layout->disableLayout();
|
||||||
{
|
$this->_helper->viewRenderer->setNoRender();
|
||||||
$type = $this->_getParam('type');
|
|
||||||
|
include_once("Stat.php");
|
||||||
if(empty($type) || $type == "csv")
|
$stat = new Stat($this->db);
|
||||||
{
|
|
||||||
$this->_helper->layout->disableLayout();
|
$head = array("id","单位名称","离线申请次数","在线申请次数","总申请次数");
|
||||||
$this->_helper->viewRenderer->setNoRender();
|
|
||||||
|
$content = array();
|
||||||
include_once("Stat.php");
|
|
||||||
$stat = new Stat($this->db);
|
foreach($units as $k=>$v)
|
||||||
|
{
|
||||||
$head = array("id","单位名称","离线申请次数","在线申请次数","总申请次数");
|
$content[] = array(
|
||||||
|
$v['index'],
|
||||||
$content = array();
|
$k,
|
||||||
|
$v['offline'],
|
||||||
foreach($units as $k=>$v)
|
$v['online'],
|
||||||
{
|
$v['total']
|
||||||
$content[] = array(
|
);
|
||||||
$v['index'],
|
unset($units[$k]);
|
||||||
$k,
|
}
|
||||||
$v['offline'],
|
|
||||||
$v['online'],
|
array_unshift($content,$head);
|
||||||
$v['total']
|
|
||||||
);
|
$stat->Download("westdc-download-status.csv",$content,"csv");
|
||||||
unset($units[$k]);
|
exit();
|
||||||
}
|
}
|
||||||
|
|
||||||
array_unshift($content,$head);
|
if($type == "json")
|
||||||
|
{
|
||||||
$stat->Download("westdc-download-status.csv",$content,"csv");
|
$this->_helper->layout->disableLayout();
|
||||||
exit();
|
$this->_helper->viewRenderer->setNoRender();
|
||||||
}
|
|
||||||
|
include_once("Stat.php");
|
||||||
if($type == "json")
|
$stat = new Stat($this->db);
|
||||||
{
|
|
||||||
$this->_helper->layout->disableLayout();
|
$content = array();
|
||||||
$this->_helper->viewRenderer->setNoRender();
|
|
||||||
|
foreach($units as $k=>$v)
|
||||||
include_once("Stat.php");
|
{
|
||||||
$stat = new Stat($this->db);
|
$content[] = array(
|
||||||
|
'index'=>$v['index'],
|
||||||
$content = array();
|
'unit'=>$k,
|
||||||
|
'offline'=>$v['offline'],
|
||||||
foreach($units as $k=>$v)
|
'online'=>$v['online'],
|
||||||
{
|
'total'=>$v['total']
|
||||||
$content[] = array(
|
);
|
||||||
'index'=>$v['index'],
|
unset($units[$k]);
|
||||||
'unit'=>$k,
|
}
|
||||||
'offline'=>$v['offline'],
|
|
||||||
'online'=>$v['online'],
|
$stat->Download("westdc-download-status.json",$content,"json");
|
||||||
'total'=>$v['total']
|
exit();
|
||||||
);
|
}
|
||||||
unset($units[$k]);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
$stat->Download("westdc-download-status.json",$content,"json");
|
$this->view->units = $units;
|
||||||
exit();
|
|
||||||
}
|
|
||||||
|
}//分单位统计
|
||||||
}
|
|
||||||
|
//按用户统计
|
||||||
$this->view->units = $units;
|
function userAction(){
|
||||||
|
|
||||||
|
$this->view->ac = $ac = $this->_getParam('ac');
|
||||||
}//分单位统计
|
|
||||||
|
if($ac == "new")
|
||||||
//按用户统计
|
{
|
||||||
function userAction(){
|
$this->_helper->viewRenderer('user-new');
|
||||||
|
$this->view->year = $year = !empty($this->_getParam('year')) ? $this->_getParam('year'):date("Y");
|
||||||
$ac = $this->_getParam('ac');
|
$this->view->by = $by = !empty($this->_getParam('by')) ? $this->_getParam('by'):"month";
|
||||||
|
$userStatistics = new \Statistics\User();
|
||||||
if($ac == "get")
|
|
||||||
{
|
if($by == "month")
|
||||||
$this->_helper->layout->disableLayout();
|
{
|
||||||
$this->_helper->viewRenderer->setNoRender();
|
$this->view->data = $userStatistics->getNewUsersByMonth($year);
|
||||||
|
}
|
||||||
include_once("Stat.php");
|
|
||||||
$stat = new Stat($this->db);
|
if($by == "year")
|
||||||
|
{
|
||||||
$rows = $stat->UserDataorder();
|
$this->view->data = $userStatistics->getNewUsersByYear($year);
|
||||||
|
}
|
||||||
$down = $this->_getParam('down');
|
|
||||||
if(empty($down))
|
if($by == "monthavg")
|
||||||
{
|
{
|
||||||
$this->jsonexit(array("aaData"=>$rows));
|
$this->view->data = $userStatistics->getAverageSingupByMonth($year);
|
||||||
return true;
|
}
|
||||||
}
|
|
||||||
|
return true;
|
||||||
if($down == "csv")
|
}
|
||||||
{
|
|
||||||
|
if($ac == "get")
|
||||||
$this->_helper->layout->disableLayout();
|
{
|
||||||
$this->_helper->viewRenderer->setNoRender();
|
$this->_helper->layout->disableLayout();
|
||||||
|
$this->_helper->viewRenderer->setNoRender();
|
||||||
$head = array("id","姓名","离线申请次数","在线申请次数","总申请次数");
|
|
||||||
|
include_once("Stat.php");
|
||||||
array_unshift($rows,$head);
|
$stat = new Stat($this->db);
|
||||||
|
|
||||||
$stat->Download("westdc-download-status.csv",$rows,"csv");
|
$rows = $stat->UserDataorder();
|
||||||
exit();
|
|
||||||
|
$down = $this->_getParam('down');
|
||||||
}
|
if(empty($down))
|
||||||
|
{
|
||||||
if($down == "json")
|
$this->jsonexit(array("aaData"=>$rows));
|
||||||
{
|
return true;
|
||||||
|
}
|
||||||
$this->_helper->layout->disableLayout();
|
|
||||||
$this->_helper->viewRenderer->setNoRender();
|
if($down == "csv")
|
||||||
|
{
|
||||||
/*
|
|
||||||
$head = array("id","姓名","离线申请次数","在线申请次数","总申请次数");
|
$this->_helper->layout->disableLayout();
|
||||||
|
$this->_helper->viewRenderer->setNoRender();
|
||||||
array_unshift($rows,$head);
|
|
||||||
*/
|
$head = array("id","姓名","离线申请次数","在线申请次数","总申请次数");
|
||||||
|
|
||||||
$stat->Download("westdc-download-status.json",$rows,"json");
|
array_unshift($rows,$head);
|
||||||
exit();
|
|
||||||
}
|
$stat->Download("westdc-download-status.csv",$rows,"csv");
|
||||||
|
exit();
|
||||||
}
|
|
||||||
|
}
|
||||||
}//userAction()
|
|
||||||
|
if($down == "json")
|
||||||
function monthAction(){
|
{
|
||||||
|
|
||||||
$y = (int)$this->_request->getParam('y');
|
$this->_helper->layout->disableLayout();
|
||||||
|
$this->_helper->viewRenderer->setNoRender();
|
||||||
if(!empty($y))
|
|
||||||
{
|
/*
|
||||||
$n = date("Y",time());
|
$head = array("id","姓名","离线申请次数","在线申请次数","总申请次数");
|
||||||
if($y<2004 || $y>$n)
|
|
||||||
{
|
array_unshift($rows,$head);
|
||||||
$y=$n;
|
*/
|
||||||
}
|
|
||||||
}
|
$stat->Download("westdc-download-status.json",$rows,"json");
|
||||||
$this->view->y = $y;
|
exit();
|
||||||
$sql = "select count(extract(month from ts_created)) as c,extract(month from ts_created) as m,extract(year from ts_created) as y from onlineapp
|
}
|
||||||
where id in (select distinct(onlineappid) from dataorder)";
|
|
||||||
if ($y)
|
}
|
||||||
$sql.=" and extract(year from ts_created)='$y' ";
|
|
||||||
$sql.=" group by extract(month from ts_created),extract(year from ts_created)
|
}//userAction()
|
||||||
order by extract(year from ts_created),extract(month from ts_created)";
|
|
||||||
$rs = $this->db->query($sql);
|
function monthAction(){
|
||||||
$rows = $rs->fetchAll();
|
|
||||||
|
$y = (int)$this->_request->getParam('y');
|
||||||
$this->view->data = $rows;
|
|
||||||
|
if(!empty($y))
|
||||||
$sql = "select count(extract(month from ts_created)) as c,extract(month from ts_created) as m,extract(year from ts_created) as y from dataorder
|
{
|
||||||
where status=0";
|
$n = date("Y",time());
|
||||||
if ($y)
|
if($y<2004 || $y>$n)
|
||||||
$sql.=" and extract(year from ts_created)='$y' ";
|
{
|
||||||
$sql.=" group by extract(month from ts_created),extract(year from ts_created)
|
$y=$n;
|
||||||
order by extract(year from ts_created),extract(month from ts_created)";
|
}
|
||||||
$rs = $this->db->query($sql);
|
}
|
||||||
$rows = $rs->fetchAll();
|
$this->view->y = $y;
|
||||||
$this->view->online = $rows;
|
$sql = "select count(extract(month from ts_created)) as c,extract(month from ts_created) as m,extract(year from ts_created) as y from onlineapp
|
||||||
|
where id in (select distinct(onlineappid) from dataorder)";
|
||||||
$sql = "select count(extract(month from ts_created)) as c,extract(month from ts_created) as m,extract(year from ts_created) as y from offlineapp
|
if ($y)
|
||||||
where ts_approved is not null";
|
$sql.=" and extract(year from ts_created)='$y' ";
|
||||||
if ($y)
|
$sql.=" group by extract(month from ts_created),extract(year from ts_created)
|
||||||
$sql.=" and extract(year from ts_created)='$y' ";
|
order by extract(year from ts_created),extract(month from ts_created)";
|
||||||
$sql.=" group by extract(month from ts_created),extract(year from ts_created)
|
$rs = $this->db->query($sql);
|
||||||
order by extract(year from ts_created),extract(month from ts_created)";
|
$rows = $rs->fetchAll();
|
||||||
$rs = $this->db->query($sql);
|
|
||||||
$rows = $rs->fetchAll();
|
$this->view->data = $rows;
|
||||||
|
|
||||||
if(count($rows)<=0)
|
$sql = "select count(extract(month from ts_created)) as c,extract(month from ts_created) as m,extract(year from ts_created) as y from dataorder
|
||||||
{
|
where status=0";
|
||||||
$this->view->offline="";
|
if ($y)
|
||||||
}
|
$sql.=" and extract(year from ts_created)='$y' ";
|
||||||
|
$sql.=" group by extract(month from ts_created),extract(year from ts_created)
|
||||||
$this->view->offline = $rows;
|
order by extract(year from ts_created),extract(month from ts_created)";
|
||||||
|
$rs = $this->db->query($sql);
|
||||||
$sql = "select count(extract(month from ts_created)) as c,extract(month from ts_created) as m,extract(year from ts_created) as y from users";
|
$rows = $rs->fetchAll();
|
||||||
if ($y)
|
$this->view->online = $rows;
|
||||||
$sql.=" where extract(year from ts_created)='$y' ";
|
|
||||||
$sql.=" group by extract(month from ts_created),extract(year from ts_created)
|
$sql = "select count(extract(month from ts_created)) as c,extract(month from ts_created) as m,extract(year from ts_created) as y from offlineapp
|
||||||
order by extract(year from ts_created),extract(month from ts_created)";
|
where ts_approved is not null";
|
||||||
$rs = $this->db->query($sql);
|
if ($y)
|
||||||
$rows = $rs->fetchAll();
|
$sql.=" and extract(year from ts_created)='$y' ";
|
||||||
if(count($rows)<=0)
|
$sql.=" group by extract(month from ts_created),extract(year from ts_created)
|
||||||
{
|
order by extract(year from ts_created),extract(month from ts_created)";
|
||||||
$this->view->newuser="";
|
$rs = $this->db->query($sql);
|
||||||
}
|
$rows = $rs->fetchAll();
|
||||||
|
|
||||||
$this->view->newuser = $rows;
|
if(count($rows)<=0)
|
||||||
|
{
|
||||||
|
$this->view->offline="";
|
||||||
|
}
|
||||||
}//按月份统计
|
|
||||||
|
$this->view->offline = $rows;
|
||||||
function awstatswebAction()
|
|
||||||
{
|
$sql = "select count(extract(month from ts_created)) as c,extract(month from ts_created) as m,extract(year from ts_created) as y from users";
|
||||||
|
if ($y)
|
||||||
}//awstats web 统计
|
$sql.=" where extract(year from ts_created)='$y' ";
|
||||||
|
$sql.=" group by extract(month from ts_created),extract(year from ts_created)
|
||||||
function awstatsweb2Action()
|
order by extract(year from ts_created),extract(month from ts_created)";
|
||||||
{
|
$rs = $this->db->query($sql);
|
||||||
|
$rows = $rs->fetchAll();
|
||||||
}//awstats web 统计
|
if(count($rows)<=0)
|
||||||
|
{
|
||||||
function awstatsftpAction()
|
$this->view->newuser="";
|
||||||
{
|
}
|
||||||
|
|
||||||
}//awstats ftp 统计
|
$this->view->newuser = $rows;
|
||||||
|
|
||||||
function awstatsftp2Action()
|
|
||||||
{
|
|
||||||
|
}//按月份统计
|
||||||
}//awstats ftp 统计
|
|
||||||
|
function awstatswebAction()
|
||||||
function webalizerAction()
|
{
|
||||||
{
|
|
||||||
|
}//awstats web 统计
|
||||||
}//webalizer 统计
|
|
||||||
|
function awstatsweb2Action()
|
||||||
function waterAction()
|
{
|
||||||
{
|
|
||||||
|
}//awstats web 统计
|
||||||
$sql="select count(k.keyword) as num,d.status,k.keyword from dataorder d left join metadata m on d.uuid=m.uuid
|
|
||||||
left join keyword k on m.id=k.id
|
function awstatsftpAction()
|
||||||
where (d.status=5 or d.status=-1) and m.source='0595169a-279e-4b95-819f-129d0ba4280d'
|
{
|
||||||
and (k.keyword='航空遥感' or k.keyword='卫星遥感' or k.keyword='气象水文' or k.keyword='上游寒区水文试验区' or k.keyword='森林水文试验区' or k.keyword='中游干旱区水文试验区')
|
|
||||||
group by k.keyword,d.status order by k.keyword desc,d.status desc";
|
}//awstats ftp 统计
|
||||||
|
|
||||||
$re =$this->db->query($sql);
|
function awstatsftp2Action()
|
||||||
$type =$re->fetchAll();//按分类
|
{
|
||||||
|
|
||||||
$this->view->type = $type;
|
}//awstats ftp 统计
|
||||||
|
|
||||||
$sql="select count(extract(month from o.ts_created)) as c,extract(month from o.ts_created) as m,extract(year from o.ts_created) as y
|
function webalizerAction()
|
||||||
from offlineapp o left join dataorder d on d.offlineappid=o.id left join metadata m on m.uuid=d.uuid
|
{
|
||||||
where m.source='0595169a-279e-4b95-819f-129d0ba4280d' and (d.status=3 or d.status=5 or d.status=-1)
|
|
||||||
group by extract(month from o.ts_created),extract(year from o.ts_created)
|
}//webalizer 统计
|
||||||
order by extract(year from o.ts_created),extract(month from o.ts_created)";
|
|
||||||
|
function waterAction()
|
||||||
$re=$this->db->query($sql);
|
{
|
||||||
$month=$re->fetchAll();
|
|
||||||
|
$sql="select count(k.keyword) as num,d.status,k.keyword from dataorder d left join metadata m on d.uuid=m.uuid
|
||||||
$this->view->month = $month;
|
left join keyword k on m.id=k.id
|
||||||
|
where (d.status=5 or d.status=-1) and m.source='0595169a-279e-4b95-819f-129d0ba4280d'
|
||||||
$sql = "select
|
and (k.keyword='航空遥感' or k.keyword='卫星遥感' or k.keyword='气象水文' or k.keyword='上游寒区水文试验区' or k.keyword='森林水文试验区' or k.keyword='中游干旱区水文试验区')
|
||||||
extract(year from o.ts_created) as y,extract(month from o.ts_created) as m,
|
group by k.keyword,d.status order by k.keyword desc,d.status desc";
|
||||||
count(extract(month from o.ts_created)) as c
|
|
||||||
from
|
$re =$this->db->query($sql);
|
||||||
(select distinct(o.id),o.ts_created
|
$type =$re->fetchAll();//按分类
|
||||||
from offlineapp o where o.datalist like '%黑河综合遥感联合试验%') as o
|
|
||||||
group by extract(month from o.ts_created),extract(year from o.ts_created)
|
$this->view->type = $type;
|
||||||
order by extract(year from o.ts_created),extract(month from o.ts_created)";
|
|
||||||
|
$sql="select count(extract(month from o.ts_created)) as c,extract(month from o.ts_created) as m,extract(year from o.ts_created) as y
|
||||||
$re=$this->db->query($sql);
|
from offlineapp o left join dataorder d on d.offlineappid=o.id left join metadata m on m.uuid=d.uuid
|
||||||
$order=$re->fetchAll();
|
where m.source='0595169a-279e-4b95-819f-129d0ba4280d' and (d.status=3 or d.status=5 or d.status=-1)
|
||||||
|
group by extract(month from o.ts_created),extract(year from o.ts_created)
|
||||||
$this->view->order = $order;
|
order by extract(year from o.ts_created),extract(month from o.ts_created)";
|
||||||
|
|
||||||
$sql = "select (sum(m.filesize)/1024) as n from dataorder d left join metadata m on d.uuid=m.uuid
|
$re=$this->db->query($sql);
|
||||||
where d.status=5 and m.source='0595169a-279e-4b95-819f-129d0ba4280d'";
|
$month=$re->fetchAll();
|
||||||
|
|
||||||
$re=$this->db->query($sql);
|
$this->view->month = $month;
|
||||||
$num=$re->fetchAll();
|
|
||||||
|
$sql = "select
|
||||||
$this->view->num=$num;
|
extract(year from o.ts_created) as y,extract(month from o.ts_created) as m,
|
||||||
|
count(extract(month from o.ts_created)) as c
|
||||||
|
from
|
||||||
$sql = "select count(lower(o.unit)) as c,lower(o.unit) as u
|
(select distinct(o.id),o.ts_created
|
||||||
from offlineapp o left join dataorder d on d.offlineappid=o.id left join metadata m on m.uuid=d.uuid
|
from offlineapp o where o.datalist like '%黑河综合遥感联合试验%') as o
|
||||||
where m.source='0595169a-279e-4b95-819f-129d0ba4280d' and (d.status=5)
|
group by extract(month from o.ts_created),extract(year from o.ts_created)
|
||||||
group by lower(o.unit)
|
order by extract(year from o.ts_created),extract(month from o.ts_created)";
|
||||||
order by lower(o.unit)";
|
|
||||||
|
$re=$this->db->query($sql);
|
||||||
$re=$this->db->query($sql);
|
$order=$re->fetchAll();
|
||||||
$units=$re->fetchAll();
|
|
||||||
|
$this->view->order = $order;
|
||||||
$this->view->units=$units;
|
|
||||||
|
$sql = "select (sum(m.filesize)/1024) as n from dataorder d left join metadata m on d.uuid=m.uuid
|
||||||
|
where d.status=5 and m.source='0595169a-279e-4b95-819f-129d0ba4280d'";
|
||||||
$sql = "select count(t.unit) as c,t.unit from
|
|
||||||
(select distinct(o.id),o.unit
|
$re=$this->db->query($sql);
|
||||||
from offlineapp o left join dataorder d on d.offlineappid=o.id left join metadata m on m.uuid=d.uuid
|
$num=$re->fetchAll();
|
||||||
where m.source='0595169a-279e-4b95-819f-129d0ba4280d' and (d.status=5)
|
|
||||||
) as t
|
$this->view->num=$num;
|
||||||
group by t.unit";
|
|
||||||
|
|
||||||
$re = $this->db->query($sql);
|
$sql = "select count(lower(o.unit)) as c,lower(o.unit) as u
|
||||||
$ounit= $re->fetchAll();
|
from offlineapp o left join dataorder d on d.offlineappid=o.id left join metadata m on m.uuid=d.uuid
|
||||||
|
where m.source='0595169a-279e-4b95-819f-129d0ba4280d' and (d.status=5)
|
||||||
$this->view->ounit = $ounit;
|
group by lower(o.unit)
|
||||||
|
order by lower(o.unit)";
|
||||||
//water 项目按月统计下载量
|
|
||||||
$sql = "select (sum(m.filesize)/1024) as n,extract(month from d.ts_created) as m,extract(year from d.ts_created) as y from dataorder d left join metadata m on d.uuid=m.uuid
|
$re=$this->db->query($sql);
|
||||||
where d.status=5 and m.source='0595169a-279e-4b95-819f-129d0ba4280d'
|
$units=$re->fetchAll();
|
||||||
group by extract(month from d.ts_created),extract(year from d.ts_created)
|
|
||||||
order by extract(year from d.ts_created),extract(month from d.ts_created)";
|
$this->view->units=$units;
|
||||||
|
|
||||||
$re = $this->db->query($sql);
|
|
||||||
$dm = $re->fetchAll();
|
$sql = "select count(t.unit) as c,t.unit from
|
||||||
|
(select distinct(o.id),o.unit
|
||||||
$this->view->dm = $dm;
|
from offlineapp o left join dataorder d on d.offlineappid=o.id left join metadata m on m.uuid=d.uuid
|
||||||
|
where m.source='0595169a-279e-4b95-819f-129d0ba4280d' and (d.status=5)
|
||||||
|
) as t
|
||||||
}//WATER项目
|
group by t.unit";
|
||||||
|
|
||||||
public function jsonexit($data){
|
$re = $this->db->query($sql);
|
||||||
$this->getResponse()->setHeader('Content-Type', 'application/json')->appendBody(json_encode($data,JSON_NUMERIC_CHECK));
|
$ounit= $re->fetchAll();
|
||||||
return true;
|
|
||||||
}//jsonexit() 退出并返回json数据
|
$this->view->ounit = $ounit;
|
||||||
|
|
||||||
}
|
//water 项目按月统计下载量
|
||||||
|
$sql = "select (sum(m.filesize)/1024) as n,extract(month from d.ts_created) as m,extract(year from d.ts_created) as y from dataorder d left join metadata m on d.uuid=m.uuid
|
||||||
|
where d.status=5 and m.source='0595169a-279e-4b95-819f-129d0ba4280d'
|
||||||
|
group by extract(month from d.ts_created),extract(year from d.ts_created)
|
||||||
|
order by extract(year from d.ts_created),extract(month from d.ts_created)";
|
||||||
|
|
||||||
|
$re = $this->db->query($sql);
|
||||||
|
$dm = $re->fetchAll();
|
||||||
|
|
||||||
|
$this->view->dm = $dm;
|
||||||
|
|
||||||
|
|
||||||
|
}//WATER项目
|
||||||
|
|
||||||
|
public function jsonexit($data){
|
||||||
|
$this->getResponse()->setHeader('Content-Type', 'application/json')->appendBody(json_encode($data,JSON_NUMERIC_CHECK));
|
||||||
|
return true;
|
||||||
|
}//jsonexit() 退出并返回json数据
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
|
use Helpers\View as view;
|
||||||
|
|
||||||
class Admin_SysController extends Zend_Controller_Action
|
class Admin_SysController extends Zend_Controller_Action
|
||||||
{
|
{
|
||||||
function preDispatch()
|
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))
|
else if($ac=='test'&& !empty($id))
|
||||||
{
|
{
|
||||||
if(!empty($submit))
|
if(!empty($submit))
|
||||||
|
@ -424,10 +435,10 @@ class Admin_SysController extends Zend_Controller_Action
|
||||||
if ($ac=='' || $ac=='online')
|
if ($ac=='' || $ac=='online')
|
||||||
{
|
{
|
||||||
$sql = "SELECT m.title,m.uuid,ds.host,ds.path,
|
$sql = "SELECT m.title,m.uuid,ds.host,ds.path,
|
||||||
floor(t.filesize/1024/1024*100)/100 as filesize,
|
floor(t.filesize/1024/1024*100)/100 as filesize,
|
||||||
t.filecount from metadata m
|
t.filecount from metadata m
|
||||||
LEFT JOIN mdstatus s ON m.uuid=s.uuid
|
LEFT JOIN mdstatus s ON m.uuid=s.uuid
|
||||||
LEFT JOIN dataset ds ON m.uuid=ds.uuid
|
LEFT JOIN dataset ds ON m.uuid=ds.uuid
|
||||||
left join (select dsid,count(id) as filecount,sum(filesize) as filesize from datafile group by dsid) as t on ds.id=t.dsid
|
left join (select dsid,count(id) as filecount,sum(filesize) as filesize from datafile group by dsid) as t on ds.id=t.dsid
|
||||||
where s.status>4 and m.datatype=0 and ds.host='ftp1.westgis.ac.cn'
|
where s.status>4 and m.datatype=0 and ds.host='ftp1.westgis.ac.cn'
|
||||||
ORDER BY m.id DESC";
|
ORDER BY m.id DESC";
|
||||||
|
@ -440,15 +451,15 @@ class Admin_SysController extends Zend_Controller_Action
|
||||||
$paginator->setItemCountPerPage($pages);
|
$paginator->setItemCountPerPage($pages);
|
||||||
$paginator->setView($this->view);
|
$paginator->setView($this->view);
|
||||||
Zend_View_Helper_PaginationControl::setDefaultViewPartial('pagination.phtml');
|
Zend_View_Helper_PaginationControl::setDefaultViewPartial('pagination.phtml');
|
||||||
$this->view->paginator=$paginator;
|
$this->view->paginator=$paginator;
|
||||||
$ac='online';
|
$ac='online';
|
||||||
} else if ($ac=='heihe')
|
} else if ($ac=='heihe')
|
||||||
{
|
{
|
||||||
$sql = "SELECT m.title,m.uuid,ds.host,ds.path,
|
$sql = "SELECT m.title,m.uuid,ds.host,ds.path,
|
||||||
floor(t.filesize/1024/1024*100)/100 as filesize,
|
floor(t.filesize/1024/1024*100)/100 as filesize,
|
||||||
t.filecount from metadata m
|
t.filecount from metadata m
|
||||||
LEFT JOIN mdstatus s ON m.uuid=s.uuid
|
LEFT JOIN mdstatus s ON m.uuid=s.uuid
|
||||||
LEFT JOIN dataset ds ON m.uuid=ds.uuid
|
LEFT JOIN dataset ds ON m.uuid=ds.uuid
|
||||||
left join (select dsid,count(id) as filecount,sum(filesize) as filesize from datafile group by dsid) as t on ds.id=t.dsid
|
left join (select dsid,count(id) as filecount,sum(filesize) as filesize from datafile group by dsid) as t on ds.id=t.dsid
|
||||||
left join datasource on datasource.uuid=m.uuid
|
left join datasource on datasource.uuid=m.uuid
|
||||||
left join source on datasource.sourceid=source.id
|
left join source on datasource.sourceid=source.id
|
||||||
|
@ -466,15 +477,15 @@ class Admin_SysController extends Zend_Controller_Action
|
||||||
$this->view->paginator=$paginator;
|
$this->view->paginator=$paginator;
|
||||||
} else if ($ac=='water')
|
} else if ($ac=='water')
|
||||||
{
|
{
|
||||||
$sql = "SELECT m.title,m.uuid,ds.host,ds.path,
|
$sql = "SELECT m.title,m.uuid,ds.host,ds.path,
|
||||||
floor(t.filesize/1024/1024*100)/100 as filesize,
|
floor(t.filesize/1024/1024*100)/100 as filesize,
|
||||||
t.filecount from metadata m
|
t.filecount from metadata m
|
||||||
LEFT JOIN mdstatus s ON m.uuid=s.uuid
|
LEFT JOIN mdstatus s ON m.uuid=s.uuid
|
||||||
LEFT JOIN dataset ds ON m.uuid=ds.uuid
|
LEFT JOIN dataset ds ON m.uuid=ds.uuid
|
||||||
left join (select dsid,count(id) as filecount,sum(filesize) as filesize from datafile group by dsid) as t on ds.id=t.dsid
|
left join (select dsid,count(id) as filecount,sum(filesize) as filesize from datafile group by dsid) as t on ds.id=t.dsid
|
||||||
left join datasource on datasource.uuid=m.uuid
|
left join datasource on datasource.uuid=m.uuid
|
||||||
left join source on datasource.sourceid=source.id
|
left join source on datasource.sourceid=source.id
|
||||||
where s.status>4 and m.datatype=1 and ds.host='ftp1.westgis.ac.cn' and source.code='water'
|
where s.status>4 and m.datatype=1 and ds.host='ftp1.westgis.ac.cn' and source.code='water'
|
||||||
ORDER BY m.title DESC";
|
ORDER BY m.title DESC";
|
||||||
$sth = $this->db->prepare($sql);
|
$sth = $this->db->prepare($sql);
|
||||||
$sth->execute();
|
$sth->execute();
|
||||||
|
@ -489,7 +500,7 @@ class Admin_SysController extends Zend_Controller_Action
|
||||||
} else if ($ac=='heihe1')
|
} else if ($ac=='heihe1')
|
||||||
{
|
{
|
||||||
$sql = "SELECT m.title,m.uuid,ds.host,ds.path,
|
$sql = "SELECT m.title,m.uuid,ds.host,ds.path,
|
||||||
floor(t.filesize/1024/1024*100)/100 as filesize,
|
floor(t.filesize/1024/1024*100)/100 as filesize,
|
||||||
t.filecount from metadata m
|
t.filecount from metadata m
|
||||||
LEFT JOIN mdstatus s ON m.uuid=s.uuid
|
LEFT JOIN mdstatus s ON m.uuid=s.uuid
|
||||||
LEFT JOIN dataset ds ON m.uuid=ds.uuid
|
LEFT JOIN dataset ds ON m.uuid=ds.uuid
|
||||||
|
@ -511,11 +522,11 @@ class Admin_SysController extends Zend_Controller_Action
|
||||||
} else if ($ac=='hiwater')
|
} else if ($ac=='hiwater')
|
||||||
{
|
{
|
||||||
$sql = "SELECT m.title,m.uuid,ds.host,ds.path,
|
$sql = "SELECT m.title,m.uuid,ds.host,ds.path,
|
||||||
floor(t.filesize/1024/1024*100)/100 as filesize,
|
floor(t.filesize/1024/1024*100)/100 as filesize,
|
||||||
t.filecount from metadata m
|
t.filecount from metadata m
|
||||||
LEFT JOIN mdstatus s ON m.uuid=s.uuid
|
LEFT JOIN mdstatus s ON m.uuid=s.uuid
|
||||||
LEFT JOIN dataset ds ON m.uuid=ds.uuid
|
LEFT JOIN dataset ds ON m.uuid=ds.uuid
|
||||||
left join (select dsid,count(id) as filecount,sum(filesize) as filesize from datafile group by dsid) as t on ds.id=t.dsid
|
left join (select dsid,count(id) as filecount,sum(filesize) as filesize from datafile group by dsid) as t on ds.id=t.dsid
|
||||||
left join datasource on datasource.uuid=m.uuid
|
left join datasource on datasource.uuid=m.uuid
|
||||||
left join source on datasource.sourceid=source.id
|
left join source on datasource.sourceid=source.id
|
||||||
where ds.host='ftp1.westgis.ac.cn' and source.code='hiwater'
|
where ds.host='ftp1.westgis.ac.cn' and source.code='hiwater'
|
||||||
|
@ -533,10 +544,10 @@ class Admin_SysController extends Zend_Controller_Action
|
||||||
}else if ($ac=='westee')
|
}else if ($ac=='westee')
|
||||||
{
|
{
|
||||||
$sql = "SELECT m.title,m.uuid,ds.host,ds.path,
|
$sql = "SELECT m.title,m.uuid,ds.host,ds.path,
|
||||||
floor(t.filesize/1024/1024*100)/100 as filesize,
|
floor(t.filesize/1024/1024*100)/100 as filesize,
|
||||||
t.filecount from metadata m
|
t.filecount from metadata m
|
||||||
LEFT JOIN mdstatus s ON m.uuid=s.uuid
|
LEFT JOIN mdstatus s ON m.uuid=s.uuid
|
||||||
LEFT JOIN dataset ds ON m.uuid=ds.uuid
|
LEFT JOIN dataset ds ON m.uuid=ds.uuid
|
||||||
left join (select dsid,count(id) as filecount,sum(filesize) as filesize from datafile group by dsid) as t on ds.id=t.dsid
|
left join (select dsid,count(id) as filecount,sum(filesize) as filesize from datafile group by dsid) as t on ds.id=t.dsid
|
||||||
where ds.host='ftp1.westgis.ac.cn' and m.uuid in (select uuid from westeemd)
|
where ds.host='ftp1.westgis.ac.cn' and m.uuid in (select uuid from westeemd)
|
||||||
ORDER BY m.title DESC";
|
ORDER BY m.title DESC";
|
||||||
|
@ -553,10 +564,10 @@ class Admin_SysController extends Zend_Controller_Action
|
||||||
}else if ($ac=='other')
|
}else if ($ac=='other')
|
||||||
{
|
{
|
||||||
$sql = "SELECT m.title,m.uuid,ds.host,ds.path,
|
$sql = "SELECT m.title,m.uuid,ds.host,ds.path,
|
||||||
floor(t.filesize/1024/1024*100)/100 as filesize,
|
floor(t.filesize/1024/1024*100)/100 as filesize,
|
||||||
t.filecount from metadata m
|
t.filecount from metadata m
|
||||||
LEFT JOIN mdstatus s ON m.uuid=s.uuid
|
LEFT JOIN mdstatus s ON m.uuid=s.uuid
|
||||||
LEFT JOIN dataset ds ON m.uuid=ds.uuid
|
LEFT JOIN dataset ds ON m.uuid=ds.uuid
|
||||||
left join (select dsid,count(id) as filecount,sum(filesize) as filesize from datafile group by dsid) as t on ds.id=t.dsid
|
left join (select dsid,count(id) as filecount,sum(filesize) as filesize from datafile group by dsid) as t on ds.id=t.dsid
|
||||||
where ds.host='ftp1.westgis.ac.cn' and m.uuid not in (select uuid from datasource) and m.uuid not in (select uuid from westeemd)
|
where ds.host='ftp1.westgis.ac.cn' and m.uuid not in (select uuid from datasource) and m.uuid not in (select uuid from westeemd)
|
||||||
ORDER BY m.title DESC";
|
ORDER BY m.title DESC";
|
||||||
|
@ -573,7 +584,7 @@ class Admin_SysController extends Zend_Controller_Action
|
||||||
}
|
}
|
||||||
$this->view->activeID="btn-".$ac;
|
$this->view->activeID="btn-".$ac;
|
||||||
}
|
}
|
||||||
|
|
||||||
function problemAction()
|
function problemAction()
|
||||||
{
|
{
|
||||||
$pages=20;
|
$pages=20;
|
||||||
|
@ -581,7 +592,7 @@ class Admin_SysController extends Zend_Controller_Action
|
||||||
if ($ac=='' || $ac=='ref')
|
if ($ac=='' || $ac=='ref')
|
||||||
{
|
{
|
||||||
$sql = "SELECT m.title,m.uuid,m.citation,g.id as gid from metadata m
|
$sql = "SELECT m.title,m.uuid,m.citation,g.id as gid from metadata m
|
||||||
LEFT JOIN mdstatus s ON m.uuid=s.uuid
|
LEFT JOIN mdstatus s ON m.uuid=s.uuid
|
||||||
left join geonetworkmetadata g on g.uuid=m.uuid
|
left join geonetworkmetadata g on g.uuid=m.uuid
|
||||||
where s.status>4 and m.citation like '%??%'
|
where s.status>4 and m.citation like '%??%'
|
||||||
ORDER BY m.id DESC";
|
ORDER BY m.id DESC";
|
||||||
|
@ -594,16 +605,16 @@ class Admin_SysController extends Zend_Controller_Action
|
||||||
$paginator->setItemCountPerPage($pages);
|
$paginator->setItemCountPerPage($pages);
|
||||||
$paginator->setView($this->view);
|
$paginator->setView($this->view);
|
||||||
Zend_View_Helper_PaginationControl::setDefaultViewPartial('pagination.phtml');
|
Zend_View_Helper_PaginationControl::setDefaultViewPartial('pagination.phtml');
|
||||||
$this->view->paginator=$paginator;
|
$this->view->paginator=$paginator;
|
||||||
$this->_helper->viewRenderer('problem-ref');
|
$this->_helper->viewRenderer('problem-ref');
|
||||||
$ac='ref';
|
$ac='ref';
|
||||||
} else if ($ac=='file')
|
} else if ($ac=='file')
|
||||||
{
|
{
|
||||||
$sql = "SELECT m.title,m.uuid,m.filesize,ds.host,ds.path from metadata m
|
$sql = "SELECT m.title,m.uuid,m.filesize,ds.host,ds.path from metadata m
|
||||||
LEFT JOIN mdstatus s ON m.uuid=s.uuid
|
LEFT JOIN mdstatus s ON m.uuid=s.uuid
|
||||||
LEFT JOIN dataset ds ON m.uuid=ds.uuid
|
LEFT JOIN dataset ds ON m.uuid=ds.uuid
|
||||||
where s.status>4 and ds.id not in (select distinct dsid from datafile)
|
where s.status>4 and ds.id not in (select distinct dsid from datafile)
|
||||||
group by m.title,m.uuid,ds.host,ds.path,m.filesize
|
group by m.title,m.uuid,ds.host,ds.path,m.filesize
|
||||||
ORDER BY m.title DESC;";
|
ORDER BY m.title DESC;";
|
||||||
$sth = $this->db->prepare($sql);
|
$sth = $this->db->prepare($sql);
|
||||||
$sth->execute();
|
$sth->execute();
|
||||||
|
@ -617,18 +628,18 @@ class Admin_SysController extends Zend_Controller_Action
|
||||||
$this->view->paginator=$paginator;
|
$this->view->paginator=$paginator;
|
||||||
} else if ($ac=='tiny')
|
} else if ($ac=='tiny')
|
||||||
{
|
{
|
||||||
$sql = "SELECT m.title,m.uuid,ds.host,ds.path,
|
$sql = "SELECT m.title,m.uuid,ds.host,ds.path,
|
||||||
floor(sum(datafile.filesize)/1024/1024*100)/100 as filesize,
|
floor(sum(datafile.filesize)/1024/1024*100)/100 as filesize,
|
||||||
count(datafile.id) as filecount
|
count(datafile.id) as filecount
|
||||||
from metadata m
|
from metadata m
|
||||||
LEFT JOIN mdstatus s ON m.uuid=s.uuid
|
LEFT JOIN mdstatus s ON m.uuid=s.uuid
|
||||||
LEFT JOIN dataset ds ON m.uuid=ds.uuid
|
LEFT JOIN dataset ds ON m.uuid=ds.uuid
|
||||||
left join datasource on datasource.uuid=m.uuid
|
left join datasource on datasource.uuid=m.uuid
|
||||||
left join datafile on ds.id=datafile.dsid
|
left join datafile on ds.id=datafile.dsid
|
||||||
left join source on datasource.sourceid=source.id
|
left join source on datasource.sourceid=source.id
|
||||||
where s.status>4 and ds.id in (select t.dsid from (select dsid,count(id) as filecount,sum(filesize) as filesize from datafile group by dsid) as t
|
where s.status>4 and ds.id in (select t.dsid from (select dsid,count(id) as filecount,sum(filesize) as filesize from datafile group by dsid) as t
|
||||||
where t.filesize<1024*5)
|
where t.filesize<1024*5)
|
||||||
group by m.title,m.uuid,ds.host,ds.path
|
group by m.title,m.uuid,ds.host,ds.path
|
||||||
ORDER BY m.title DESC;";
|
ORDER BY m.title DESC;";
|
||||||
$sth = $this->db->prepare($sql);
|
$sth = $this->db->prepare($sql);
|
||||||
$sth->execute();
|
$sth->execute();
|
||||||
|
@ -642,14 +653,14 @@ where t.filesize<1024*5)
|
||||||
$this->view->paginator=$paginator;
|
$this->view->paginator=$paginator;
|
||||||
} else if ($ac=='heihefund')
|
} else if ($ac=='heihefund')
|
||||||
{
|
{
|
||||||
$sql = "SELECT m.title,m.uuid,g.id as gid
|
$sql = "SELECT m.title,m.uuid,g.id as gid
|
||||||
from metadata m
|
from metadata m
|
||||||
LEFT JOIN mdstatus s ON m.uuid=s.uuid
|
LEFT JOIN mdstatus s ON m.uuid=s.uuid
|
||||||
left join datasource on datasource.uuid=m.uuid
|
left join datasource on datasource.uuid=m.uuid
|
||||||
left join source on datasource.sourceid=source.id
|
left join source on datasource.sourceid=source.id
|
||||||
left join mdfund mf on mf.uuid=m.uuid
|
left join mdfund mf on mf.uuid=m.uuid
|
||||||
left join geonetworkmetadata g on m.uuid=g.uuid
|
left join geonetworkmetadata g on m.uuid=g.uuid
|
||||||
where s.status>4 and source.code='heihe' and mf.fid is null
|
where s.status>4 and source.code='heihe' and mf.fid is null
|
||||||
ORDER BY m.title DESC;";
|
ORDER BY m.title DESC;";
|
||||||
$sth = $this->db->prepare($sql);
|
$sth = $this->db->prepare($sql);
|
||||||
$sth->execute();
|
$sth->execute();
|
||||||
|
@ -660,19 +671,19 @@ left join geonetworkmetadata g on m.uuid=g.uuid
|
||||||
$paginator->setItemCountPerPage($pages);
|
$paginator->setItemCountPerPage($pages);
|
||||||
$paginator->setView($this->view);
|
$paginator->setView($this->view);
|
||||||
Zend_View_Helper_PaginationControl::setDefaultViewPartial('pagination.phtml');
|
Zend_View_Helper_PaginationControl::setDefaultViewPartial('pagination.phtml');
|
||||||
$this->view->paginator=$paginator;
|
$this->view->paginator=$paginator;
|
||||||
$this->_helper->viewRenderer('problem-md');
|
$this->_helper->viewRenderer('problem-md');
|
||||||
} else if ($ac=='noemail')
|
} else if ($ac=='noemail')
|
||||||
{
|
{
|
||||||
$sql = "SELECT distinct m.title,m.uuid,g.id as gid
|
$sql = "SELECT distinct m.title,m.uuid,g.id as gid
|
||||||
from metadata m
|
from metadata m
|
||||||
LEFT JOIN mdstatus s ON m.uuid=s.uuid
|
LEFT JOIN mdstatus s ON m.uuid=s.uuid
|
||||||
left join role on role.uuid=m.uuid
|
left join role on role.uuid=m.uuid
|
||||||
left join geonetworkmetadata g on m.uuid=g.uuid
|
left join geonetworkmetadata g on m.uuid=g.uuid
|
||||||
where m.datatype=1 and s.status>4 and m.uuid not in (
|
where m.datatype=1 and s.status>4 and m.uuid not in (
|
||||||
select role.uuid from role left join responsible res on role.resid=res.id
|
select role.uuid from role left join responsible res on role.resid=res.id
|
||||||
where res.email is not null and role.role in ('resourceProvider','owner','pointOfContact','custodian')
|
where res.email is not null and role.role in ('resourceProvider','owner','pointOfContact','custodian')
|
||||||
)
|
)
|
||||||
ORDER BY m.title DESC;";
|
ORDER BY m.title DESC;";
|
||||||
$sth = $this->db->prepare($sql);
|
$sth = $this->db->prepare($sql);
|
||||||
$sth->execute();
|
$sth->execute();
|
||||||
|
@ -683,16 +694,16 @@ where res.email is not null and role.role in ('resourceProvider','owner','pointO
|
||||||
$paginator->setItemCountPerPage($pages);
|
$paginator->setItemCountPerPage($pages);
|
||||||
$paginator->setView($this->view);
|
$paginator->setView($this->view);
|
||||||
Zend_View_Helper_PaginationControl::setDefaultViewPartial('pagination.phtml');
|
Zend_View_Helper_PaginationControl::setDefaultViewPartial('pagination.phtml');
|
||||||
$this->view->paginator=$paginator;
|
$this->view->paginator=$paginator;
|
||||||
$this->_helper->viewRenderer('problem-md');
|
$this->_helper->viewRenderer('problem-md');
|
||||||
} else if ($ac=='unmoved')
|
} else if ($ac=='unmoved')
|
||||||
{
|
{
|
||||||
$sql = "SELECT distinct m.title,m.uuid,g.id as gid
|
$sql = "SELECT distinct m.title,m.uuid,g.id as gid
|
||||||
from metadata m
|
from metadata m
|
||||||
LEFT JOIN mdstatus s ON m.uuid=s.uuid
|
LEFT JOIN mdstatus s ON m.uuid=s.uuid
|
||||||
left join geonetworkmetadata g on m.uuid=g.uuid
|
left join geonetworkmetadata g on m.uuid=g.uuid
|
||||||
left join dataset ds on ds.uuid=m.uuid
|
left join dataset ds on ds.uuid=m.uuid
|
||||||
where s.status>4 and ds.path like '%upload%'
|
where s.status>4 and ds.path like '%upload%'
|
||||||
ORDER BY m.title DESC;";
|
ORDER BY m.title DESC;";
|
||||||
$sth = $this->db->prepare($sql);
|
$sth = $this->db->prepare($sql);
|
||||||
$sth->execute();
|
$sth->execute();
|
||||||
|
@ -703,7 +714,7 @@ left join dataset ds on ds.uuid=m.uuid
|
||||||
$paginator->setItemCountPerPage($pages);
|
$paginator->setItemCountPerPage($pages);
|
||||||
$paginator->setView($this->view);
|
$paginator->setView($this->view);
|
||||||
Zend_View_Helper_PaginationControl::setDefaultViewPartial('pagination.phtml');
|
Zend_View_Helper_PaginationControl::setDefaultViewPartial('pagination.phtml');
|
||||||
$this->view->paginator=$paginator;
|
$this->view->paginator=$paginator;
|
||||||
$this->_helper->viewRenderer('problem-md');
|
$this->_helper->viewRenderer('problem-md');
|
||||||
}
|
}
|
||||||
$this->view->activeID="btn-".$ac;
|
$this->view->activeID="btn-".$ac;
|
||||||
|
|
|
@ -2,7 +2,6 @@
|
||||||
use Helpers\View as view;
|
use Helpers\View as view;
|
||||||
use \Users\Local;
|
use \Users\Local;
|
||||||
use Helpers\dbh;
|
use Helpers\dbh;
|
||||||
|
|
||||||
class Admin_UserController extends Zend_Controller_Action
|
class Admin_UserController extends Zend_Controller_Action
|
||||||
{
|
{
|
||||||
function preDispatch()
|
function preDispatch()
|
||||||
|
@ -157,12 +156,46 @@ class Admin_UserController extends Zend_Controller_Action
|
||||||
$select->from('users')
|
$select->from('users')
|
||||||
->where('usertype = ?', 'administrator')
|
->where('usertype = ?', 'administrator')
|
||||||
->order('users.id desc');
|
->order('users.id desc');
|
||||||
|
|
||||||
|
|
||||||
$paginator = Zend_Paginator::factory($select);
|
$paginator = Zend_Paginator::factory($select);
|
||||||
$paginator->setCurrentPageNumber($this->_getParam('page'));
|
$paginator->setCurrentPageNumber($this->_getParam('page'));
|
||||||
$paginator->setItemCountPerPage(30);
|
$paginator->setItemCountPerPage(30);
|
||||||
$paginator->setView($this->view);
|
$paginator->setView($this->view);
|
||||||
Zend_View_Helper_PaginationControl::setDefaultViewPartial('pagination.phtml');
|
Zend_View_Helper_PaginationControl::setDefaultViewPartial('pagination.phtml');
|
||||||
$this->view->paginator=$paginator;
|
$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()
|
function showAction()
|
||||||
|
|
|
@ -7,12 +7,7 @@
|
||||||
$this->breadcrumb('<a href="/admin">后台首页</a>');
|
$this->breadcrumb('<a href="/admin">后台首页</a>');
|
||||||
$this->breadcrumb('数据管理');
|
$this->breadcrumb('数据管理');
|
||||||
$this->breadcrumb()->setSeparator(' > ');
|
$this->breadcrumb()->setSeparator(' > ');
|
||||||
$this->headLink()->appendStylesheet('/static/js/uploadify/uploadify.css');
|
$this->theme->AppendPlus($this,"uploadify");
|
||||||
$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');
|
|
||||||
?>
|
?>
|
||||||
<div id="leftPanel">
|
<div id="leftPanel">
|
||||||
<?= $this->partial('data/left.phtml'); ?>
|
<?= $this->partial('data/left.phtml'); ?>
|
||||||
|
@ -21,7 +16,7 @@
|
||||||
|
|
||||||
<div class="ctrlplan">
|
<div class="ctrlplan">
|
||||||
<a href="/admin/data/md/att/1/uuid/<?php echo $this->uuid;?>">返回元数据附件列表</a>
|
<a href="/admin/data/md/att/1/uuid/<?php echo $this->uuid;?>">返回元数据附件列表</a>
|
||||||
<a href="/data/<?php echo $this->uuid; ?>">查看元数据</a>
|
<a href="/data/<?php echo $this->uuid; ?>">查看元数据</a>
|
||||||
<a href="/admin/data/attachments/">返回附件管理</a>
|
<a href="/admin/data/attachments/">返回附件管理</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -30,73 +25,87 @@
|
||||||
<input type="hidden" name="submit" value="1" />
|
<input type="hidden" name="submit" value="1" />
|
||||||
|
|
||||||
<p>注:可选择多个文件<br />
|
<p>注:可选择多个文件<br />
|
||||||
<ul id="datalist"></ul>
|
<div id="datalist">
|
||||||
|
</div>
|
||||||
<input id="file_upload" name="Filedata" type="file" />
|
<input id="file_upload" name="Filedata" type="file" />
|
||||||
<input type="button" class="btn btn-small" onclick="$('#file_upload').uploadifyUpload();" value="上传" />
|
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
<script>
|
<script>
|
||||||
$(document).ready(function() {
|
var _this = {
|
||||||
$('#file_upload').uploadify({
|
SessionID : '<?php echo session_id(); ?>'
|
||||||
'uploader' : '/static/js/uploadify/uploadify.swf',
|
};
|
||||||
'scriptData': {'PHPSESSID' : '<?php echo session_id(); ?>'},
|
var uploader;
|
||||||
'script' : '/admin/data/upload/<?php if(!empty($this->uuid)) echo "uuid/".$this->uuid; ?>',
|
var param;
|
||||||
'cancelImg' : '/static/js/uploadify/cancel.png',
|
param = {
|
||||||
'folder' : '/uploads',
|
"PHPSESSID" : _this.SessionID,
|
||||||
'multi' : true,
|
"multi" : 'yes'
|
||||||
'auto' : false,
|
};
|
||||||
'displayData' : 'speed',
|
$(function() {
|
||||||
'buttonImg' : '/static/js/uploadify/selectfile.gif',
|
$('#file_upload').uploadify({
|
||||||
'onComplete' : function(event, ID, fileObj, response, data) {
|
'swf' : '/js/lib/uploadify/uploadify.swf',
|
||||||
var obj = jQuery.parseJSON(response);
|
'uploader' : '/admin/data/upload/<?php if(!empty($this->uuid)) echo "uuid/".$this->uuid; ?>',
|
||||||
var html;
|
'multi' : true,
|
||||||
if(obj.error=='')
|
'auto' : true,
|
||||||
{html = obj.html;}else{html = obj.error;}
|
'fileTypeExts' : '*',
|
||||||
$('<li/>', {
|
'onUploadSuccess' : function(file, data, response) {
|
||||||
"id":'uploadedItem_'+obj.attid,
|
upload.onsuccess(file, data, response);
|
||||||
"class":'uploadifyQueueItem',
|
},
|
||||||
"html": html
|
'onUploadStart' : function(file) {
|
||||||
}).appendTo('#datalist');
|
$('#file_upload').uploadify('settings','formData',param);
|
||||||
$('#deletebtn_'+obj.attid).bind('click', function() {
|
}
|
||||||
deleteatt(obj.attid);
|
});
|
||||||
});
|
});
|
||||||
},
|
var upload = {
|
||||||
'onError' : function (event,ID,fileObj,errorObj) {
|
onsuccess : function(file, data, response){
|
||||||
alert(errorObj.type + ' Error: ' + errorObj.info);
|
_data = $.parseJSON(data);
|
||||||
}
|
if(!$.isEmptyObject(_data.error))
|
||||||
});
|
{
|
||||||
function deleteatt(id){
|
alert(_data.error);
|
||||||
$.ajax({
|
}else{
|
||||||
'type': "POST",
|
$('#datalist').append(upload.makeFileHtml(_data));
|
||||||
'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");}
|
|
||||||
},
|
|
||||||
'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) {
|
$.getJSON("/admin/data/getatts/uuid/<?php echo $this->uuid;?>", function(data) {
|
||||||
if(data)
|
if(data)
|
||||||
{
|
{
|
||||||
$.each(data, function(key, val) {
|
$.each(data, function(key, val) {
|
||||||
$('<li/>', {
|
$('#datalist').append(upload.makeFileHtml(val));
|
||||||
"id":'uploadedItem_'+val['id'],
|
|
||||||
"class":'uploadifyQueueItem',
|
|
||||||
"html": val['html']
|
|
||||||
}).appendTo('#datalist');
|
|
||||||
$('#deletebtn_'+val['id']).bind('click', function() {
|
|
||||||
deleteatt(val['id']);
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
@ -29,41 +29,47 @@ $this->theme->AppendPlus($this,'colorbox');
|
||||||
<?php if(!empty($this->msg)) { ?>
|
<?php if(!empty($this->msg)) { ?>
|
||||||
<?= $this->msg ?>
|
<?= $this->msg ?>
|
||||||
<?php } else{ ?>
|
<?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">
|
<form class="form-horizontal" method="post">
|
||||||
<div class="control-group">
|
<div class="control-group">
|
||||||
<label class="control-label" for="doi">doi</label>
|
<label class="control-label" for="doi">doi</label>
|
||||||
<div class="controls">
|
<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>
|
</div>
|
||||||
<div class="control-group">
|
<div class="control-group">
|
||||||
<label class="control-label" for="uuid">uuid</label>
|
<label class="control-label" for="uuid">uuid</label>
|
||||||
<div class="controls">
|
<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>
|
</div>
|
||||||
<div class="control-group">
|
<div class="control-group">
|
||||||
<label class="control-label" for="publisher">发布者</label>
|
<label class="control-label" for="publisher">发布者</label>
|
||||||
<div class="controls">
|
<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>
|
</div>
|
||||||
<div class="control-group">
|
<div class="control-group">
|
||||||
<label class="control-label" for="url">url</label>
|
<label class="control-label" for="url">url</label>
|
||||||
<div class="controls">
|
<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>
|
</div>
|
||||||
<div class="control-group">
|
<div class="control-group">
|
||||||
<label class="control-label" for="title">标题</label>
|
<label class="control-label" for="title">标题</label>
|
||||||
<div class="controls">
|
<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>
|
</div>
|
||||||
<div class="control-group">
|
<div class="control-group">
|
||||||
<label class="control-label" for="title_en">英文标题</label>
|
<label class="control-label" for="title_en">英文标题</label>
|
||||||
<div class="controls">
|
<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>
|
</div>
|
||||||
<div class="control-group">
|
<div class="control-group">
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<ul>
|
<ul class="nav nav-pills nav-stacked well">
|
||||||
<li class="title">数据管理</li>
|
<span class="label"><h4>数据管理</h4></span>
|
||||||
<li><a href="/admin/data/md">元数据管理</a></li>
|
<li><a href="/admin/data/md">元数据管理</a></li>
|
||||||
<li><a href="/admin/data/newdata">新建元数据</a></li>
|
<li><a href="/admin/data/newdata">新建元数据</a></li>
|
||||||
<li><a href="/admin/data/author">数据作者管理</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/newsletter">数据中心通讯管理</a></li>
|
||||||
<li><a href="/admin/data/feature">特色推荐</a></li> -->
|
<li><a href="/admin/data/feature">特色推荐</a></li> -->
|
||||||
<li><a href="/admin/data/source">专题管理</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/fund">支持项目</a></li>
|
||||||
<li><a href="/admin/data/doi">DOI</a></li>
|
<li><a href="/admin/data/visual">可视化数据</a></li>
|
||||||
</ul>
|
</ul>
|
|
@ -66,7 +66,8 @@
|
||||||
<?php endif;?>
|
<?php endif;?>
|
||||||
<a href="/admin/down/sendmail/uuid/<?php echo $item['uuid'];?>" title="向数据下载者发送通知邮件">邮件通知</a> |
|
<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/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>
|
</p>
|
||||||
<?php if($item['author']) :?>
|
<?php if($item['author']) :?>
|
||||||
<p>数据贡献者:<?= $item['author']; ?></p>
|
<p>数据贡献者:<?= $item['author']; ?></p>
|
||||||
|
|
|
@ -15,6 +15,7 @@
|
||||||
<label class="control-label" for="inputUuid">元数据UUID</label>
|
<label class="control-label" for="inputUuid">元数据UUID</label>
|
||||||
<div class="controls">
|
<div class="controls">
|
||||||
<input type="text" name="uuid" id="inputUuid" placeholder="UUID">
|
<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>
|
</div>
|
||||||
<div class="control-group">
|
<div class="control-group">
|
||||||
|
|
|
@ -1,8 +1,11 @@
|
||||||
<ul class="nav nav-tabs">
|
<ul class="nav nav-tabs">
|
||||||
<li <?= empty($this->ac) ? 'class="active"':"" ?>><a href="/admin/data/ref">浏览所有</a></li>
|
<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=="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=="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=="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=="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=="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>
|
</ul>
|
|
@ -39,7 +39,7 @@ table thead tr th {background:#EBF2F6;}
|
||||||
<div class="control-group">
|
<div class="control-group">
|
||||||
<label class="control-label" for="inputPassword">RIS文本</label>
|
<label class="control-label" for="inputPassword">RIS文本</label>
|
||||||
<div class="controls">
|
<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>
|
</div>
|
||||||
<div class="form-actions">
|
<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)) { ?>
|
<?php if(!empty($this->msg)) { ?>
|
||||||
<?= $this->msg ?>
|
<?= $this->msg ?>
|
||||||
<?php } else{ ?>
|
<?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">
|
<div id="datalist">
|
||||||
<?php if (count($this->paginator)): ?>
|
<?php if (count($this->paginator)): ?>
|
||||||
<table class="table table-bordered table-striped">
|
<table class="table table-bordered table-striped">
|
||||||
|
@ -45,8 +56,7 @@ table thead tr th {background:#EBF2F6;}
|
||||||
<th>标题
|
<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=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>
|
<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=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>
|
<a href="?order=year&sort=DESC&q=<?php if(!empty($this->q)) echo $this->q; ?>"><i class="icon-arrow-down"></i></a>
|
||||||
</th>
|
</th>
|
||||||
|
@ -58,35 +68,36 @@ table thead tr th {background:#EBF2F6;}
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
<?php $autoindex=0;
|
<?php
|
||||||
|
if($this->page > 1)
|
||||||
|
{
|
||||||
|
$autoindex = ($this->page - 1) * $this->pagelimit;
|
||||||
|
}else{
|
||||||
|
$autoindex=0;
|
||||||
|
}
|
||||||
foreach ($this->paginator as $item):
|
foreach ($this->paginator as $item):
|
||||||
$autoindex++;?>
|
$autoindex++;?>
|
||||||
<tr id="DataLine_<?= $item['id']?>">
|
<tr id="DataLine_<?= $item['id']?>">
|
||||||
<?php if(!empty($item['title']) || !empty($item['year'])) { ?>
|
<td>
|
||||||
|
[<?= $autoindex ?>]
|
||||||
<td><?= $item['title'] ?></td>
|
<?php if ($item['ris']) :
|
||||||
<td><?= $item['year'] ?></td>
|
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><?= 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/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/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>
|
<a href="/admin/data/ref/ac/deleteref/id/<?= $item['id']?>">删除</a>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</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; ?>
|
<?php endforeach; ?>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</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>
|
<ul class="nav nav-pills nav-stacked well">
|
||||||
<li class="title">申请管理与在线下载记录</li>
|
<span class="label"><h4>申请管理与记录</h4></span>
|
||||||
<li><a href="/admin/down/offlineapp">离线数据申请管理</a></li>
|
<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/offline">离线数据服务记录</a></li>
|
||||||
<li><a href="/admin/down/fixoffline">手动同步离线申请用户与网站帐号</a></li>
|
<li><a href="/admin/down/online">在线数据下载记录</a></li>
|
||||||
<li><a href="/admin/down/online">在线数据下载记录(从20110908开始)</a></li>
|
|
||||||
<li><a href="/admin/down/user">用户下载记录</a></li>
|
<li><a href="/admin/down/user">用户下载记录</a></li>
|
||||||
<li><a href="/admin/down/data">数据下载记录</a></li>
|
<li><a href="/admin/down/data">数据下载记录</a></li>
|
||||||
</ul>
|
</ul>
|
|
@ -2,63 +2,85 @@
|
||||||
$this->headTitle($this->config->title->site);
|
$this->headTitle($this->config->title->site);
|
||||||
$this->headTitle('后台管理');
|
$this->headTitle('后台管理');
|
||||||
$this->headTitle()->setSeparator(' - ');
|
$this->headTitle()->setSeparator(' - ');
|
||||||
$this->headLink()->appendStylesheet('/css/admin.css');
|
|
||||||
$this->breadcrumb('<a href="/">首页</a>');
|
$this->breadcrumb('<a href="/">首页</a>');
|
||||||
$this->breadcrumb('<a href="/admin">后台首页</a>');
|
$this->breadcrumb('<a href="/admin">后台首页</a>');
|
||||||
$this->breadcrumb('<a href="/admin/down">申请管理</a>');
|
$this->breadcrumb('<a href="/admin/down">申请管理</a>');
|
||||||
$this->headScript()->appendFile('/js/jquery-1.7.min.js');
|
$this->Theme->AppendPlus($this,'colorbox');
|
||||||
$this->headScript()->appendFile('/js/jquery.colorbox-min.js');
|
$this->Theme->AppendPlus($this,'uploadify');
|
||||||
$this->headLink()->appendStylesheet('/css/author.css');
|
|
||||||
$this->headLink()->appendStylesheet('/css/colorbox.css');
|
|
||||||
$this->breadcrumb('离线数据申请管理</a>');
|
$this->breadcrumb('离线数据申请管理</a>');
|
||||||
$this->breadcrumb()->setSeparator(' > ');
|
$this->breadcrumb()->setSeparator(' > ');
|
||||||
?>
|
?>
|
||||||
<div id="leftPanel">
|
<style>
|
||||||
<?= $this->partial('down/left.phtml'); ?>
|
table thead tr th {background:#EBF2F6;color:#444;}
|
||||||
</div>
|
.high{background:#444;color:#FFF;}
|
||||||
<div id="rightPanel">
|
</style>
|
||||||
<?php if ($this->msg or $this->messages) :?>
|
<div class="row-fluid">
|
||||||
<div id="message">
|
<div class="span3">
|
||||||
<?php if ($this->msg) : ?>
|
<?= $this->partial('down/left.phtml'); ?>
|
||||||
<p><?php echo $this->msg; ?></p>
|
</div>
|
||||||
<?php endif; if ($this->messages): foreach($this->messages as $msg): ?>
|
<div class="span9">
|
||||||
<p><?php echo $msg; ?></p>
|
<?php if ($this->msg or $this->messages) :?>
|
||||||
<?php endforeach;endif; ?>
|
<div id="message">
|
||||||
</div>
|
<?php if ($this->msg) : ?>
|
||||||
<?php endif; ?>
|
<p><?php echo $this->msg; ?></p>
|
||||||
<div class="right_title">离线数据服务记录</div>
|
<?php endif; if ($this->messages): foreach($this->messages as $msg): ?>
|
||||||
<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>
|
<p><?php echo $msg; ?></p>
|
||||||
| <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)): ?>
|
<?php if (count($this->paginator)): ?>
|
||||||
<table>
|
<table class="table table-bordered table-hover">
|
||||||
<thead><tr>
|
<thead>
|
||||||
<th width='70'>姓名</th>
|
<tr>
|
||||||
<th width='150'>单位</th>
|
<th width="52">姓名</th>
|
||||||
<th width='150'>地址</th>
|
<th>单位</th>
|
||||||
<th width='50'>邮编</th>
|
<th>地址</th>
|
||||||
<th width='300'>用途</th>
|
<th>邮编</th>
|
||||||
<th width='300'>数据清单</th>
|
<th>用途</th>
|
||||||
<th width='120'>申请时间</th>
|
<th>数据清单</th>
|
||||||
<th width='100'>操作</th>
|
<th>申请时间</th>
|
||||||
|
<th>操作</th>
|
||||||
</tr></thead>
|
</tr></thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
<?php $autoindex=0;?>
|
<?php $autoindex=0;?>
|
||||||
<?php foreach ($this->paginator as $item): ?>
|
<?php foreach ($this->paginator as $item): ?>
|
||||||
<?php $autoindex++;?>
|
<?php $autoindex++;?>
|
||||||
<tr class="<?php if($autoindex%2 == 0) echo 'even'; else echo 'odd'; ?>">
|
<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['unit']; ?></td>
|
||||||
<td><?= $item['address']; ?></td>
|
<td><?= $item['address']; ?></td>
|
||||||
<td><?= $item['postcode']; ?></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: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: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['datalist']; ?></textarea></td>
|
||||||
<td><?= date('Y-m-d',strtotime($item['ts_created'])); ?></td>
|
<td><?= date('Y-m-d',strtotime($item['ts_created'])); ?></td>
|
||||||
<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/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/offline/delete/<?= $item['id']; ?>" title="该操作将删除此记录并且删除与此记录有关的申请记录!请谨慎操作" onclick="return confirm('请仅删除测试用途的离线服务记录!')">删除</a> |
|
||||||
<a href="/admin/down/offlineapp/view/<?= $item['id']; ?>">PDF</a> |
|
<a href="/admin/down/offlineapp/view/<?= $item['id']; ?>">PDF</a> |
|
||||||
<a href="/admin/down/offline/show/<?= $item['id']; ?>">详细</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>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
|
@ -66,6 +88,64 @@
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<div class="pagenavi"><?= $this->paginator; ?></div>
|
<div class="pagenavi"><?= $this->paginator; ?></div>
|
||||||
</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>
|
<script>
|
||||||
function action(name,id){
|
function action(name,id){
|
||||||
var url;
|
var url;
|
||||||
|
|
|
@ -2,55 +2,58 @@
|
||||||
$this->headTitle($this->config->title->site);
|
$this->headTitle($this->config->title->site);
|
||||||
$this->headTitle('后台管理');
|
$this->headTitle('后台管理');
|
||||||
$this->headTitle()->setSeparator(' - ');
|
$this->headTitle()->setSeparator(' - ');
|
||||||
$this->headLink()->appendStylesheet('/css/admin.css');
|
|
||||||
$this->breadcrumb('<a href="/">首页</a>');
|
$this->breadcrumb('<a href="/">首页</a>');
|
||||||
$this->breadcrumb('<a href="/admin">后台首页</a>');
|
$this->breadcrumb('<a href="/admin">后台首页</a>');
|
||||||
$this->breadcrumb('<a href="/admin/down">申请管理</a>');
|
$this->breadcrumb('<a href="/admin/down">申请管理</a>');
|
||||||
$this->Theme->AppendPlus($this,'colorbox');
|
$this->Theme->AppendPlus($this,'colorbox');
|
||||||
$this->Theme->AppendPlus($this,'uploadify');
|
$this->Theme->AppendPlus($this,'uploadify');
|
||||||
$this->headLink()->appendStylesheet('/css/author.css');
|
|
||||||
$this->breadcrumb('离线数据申请管理</a>');
|
$this->breadcrumb('离线数据申请管理</a>');
|
||||||
$this->breadcrumb()->setSeparator(' > ');
|
$this->breadcrumb()->setSeparator(' > ');
|
||||||
?>
|
?>
|
||||||
<div id="leftPanel">
|
<div class="row-fluid">
|
||||||
<?= $this->partial('down/left.phtml'); ?>
|
<div class="span3">
|
||||||
</div>
|
<?= $this->partial('down/left.phtml'); ?>
|
||||||
<div id="rightPanel">
|
</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): ?>
|
||||||
|
<p><?php echo $msg; ?></p>
|
||||||
|
<?php endforeach;endif; ?>
|
||||||
|
</div>
|
||||||
|
<?php endif; ?>
|
||||||
|
|
||||||
<?php if ($this->msg or $this->messages) :?>
|
<h4>离线数据申请管理</h4>
|
||||||
<div id="message">
|
|
||||||
<?php if ($this->msg) : ?>
|
<div style="overflow:hidden">
|
||||||
<p><?php echo $this->msg; ?></p>
|
<div class="pull-left">
|
||||||
<?php endif; if ($this->messages): foreach($this->messages as $msg): ?>
|
<a href="/admin/down/offlineapp/reset/-1" onclick="return confirm('是否重置该申请?')" class="btn btn-info">重置1年前的所有未收到申请表的记录</a>
|
||||||
<p><?php echo $msg; ?></p>
|
<a href="/admin/down/offlineapp/status/4" class="btn btn-info">已收到的申请</a>
|
||||||
<?php endforeach;endif; ?>
|
<a href="/admin/down/offlineapp/status/-1" class="btn btn-info">已拒绝的申请</a>
|
||||||
</div>
|
<a href="/admin/down/offlineapp/ac/pending" class="btn btn-info">待处理的申请</a>
|
||||||
<?php endif; ?>
|
<a href="/admin/down/offline" class="btn btn-info">已通过的申请(离线服务记录)</a>
|
||||||
|
</div>
|
||||||
<div class="right_title">离线数据申请管理</div>
|
|
||||||
|
<div class="input-append pull-right">
|
||||||
<a href="/admin/down/offlineapp/reset/-1" onclick="return confirm('是否重置该申请?')">重置1年前的所有未收到申请表的记录</a>
|
<form id="datasearch" class="search_form" action="">
|
||||||
| <a href="/admin/down/offlineapp/status/4">已收到的申请</a>
|
<input type="text" id="keyword" name="q" value="<?php if(!empty($this->q)) echo $this->q; ?>" />
|
||||||
| <a href="/admin/down/offlineapp/status/-1">已拒绝的申请</a>
|
<input type="hidden" name="order" value="<?php if(!empty($this->search_order)) echo $this->search_order; ?>" />
|
||||||
| <a href="/admin/down/offlineapp/ac/pending">待处理的申请</a>
|
<input type="hidden" name="sort" value="<?php if(!empty($this->search_sort)) echo $this->search_sort; ?>" />
|
||||||
| <a href="/admin/down/offline">已通过的申请(离线服务记录)</a>
|
<button type="submit" class="btn" id="search_btn">搜索</button>
|
||||||
<div class="search">
|
</form>
|
||||||
<form action="/admin/down/offlineapp" method="get">
|
</div>
|
||||||
<input name="search" value="1" type="hidden">
|
</div>
|
||||||
<ul>
|
|
||||||
<li><input name="q" value="" type="text" placeholder="搜索关键字"></li>
|
<div id="datalist" style="overflow:hidden">
|
||||||
<li><input class="searchbtn" value="搜索" type="submit"></li>
|
|
||||||
</ul>
|
|
||||||
</form>
|
|
||||||
</div>
|
|
||||||
<div id="datalist">
|
|
||||||
<?php
|
<?php
|
||||||
if (count($this->paginator)):
|
if (count($this->paginator)):
|
||||||
echo "<ul>";
|
echo '<ul class="unstyled">';
|
||||||
$autoindex=0;
|
$autoindex=0;
|
||||||
foreach ($this->paginator as $item):
|
foreach ($this->paginator as $item):
|
||||||
$autoindex++;?>
|
$autoindex++;?>
|
||||||
<li id="list_<?php echo $item['id'];?>">
|
<li id="list_<?php echo $item['id'];?>" class="well well-small">
|
||||||
<p>
|
<p>
|
||||||
<?= $autoindex ?>.
|
<?= $autoindex ?>.
|
||||||
<a href="mailto:<?= $item['email']; ?>?subject=答复数据申请问题"><?= $item['username']; ?></a> |
|
<a href="mailto:<?= $item['email']; ?>?subject=答复数据申请问题"><?= $item['username']; ?></a> |
|
||||||
|
@ -90,6 +93,7 @@
|
||||||
endif; ?>
|
endif; ?>
|
||||||
<div class="pagenavi"><?= $this->paginator; ?></div>
|
<div class="pagenavi"><?= $this->paginator; ?></div>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div id="upload-form" class="modal hide fade" tabindex="-1" aria-hidden="true">
|
<div id="upload-form" class="modal hide fade" tabindex="-1" aria-hidden="true">
|
||||||
<div class="modal-header">
|
<div class="modal-header">
|
||||||
|
|
|
@ -54,7 +54,7 @@ table thead tr th {background:#EBF2F6;color:#444;}
|
||||||
<td>
|
<td>
|
||||||
<a href="/admin/down/offlineapps/ac/view/?offlineappid=<?= $item['id'] ?>">查看详细</a>
|
<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/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="javascript:void(0);" onclick="upload.showUploadForm(<?= $item['id'] ?>);">上传申请表</a>
|
||||||
<a href="/admin/down/offlineapps/ac/resetappform/?offlineappid=<?= $item['id'] ?>" onclick="return confirm('是否确认重置该用户的申请表?')">重置申请表</a>
|
<a href="/admin/down/offlineapps/ac/resetappform/?offlineappid=<?= $item['id'] ?>" onclick="return confirm('是否确认重置该用户的申请表?')">重置申请表</a>
|
||||||
</td>
|
</td>
|
||||||
|
|
|
@ -18,11 +18,6 @@
|
||||||
<?= $this->partial('news/left.phtml'); ?>
|
<?= $this->partial('news/left.phtml'); ?>
|
||||||
<?= $this->partial('stat/left.phtml'); ?>
|
<?= $this->partial('stat/left.phtml'); ?>
|
||||||
<?= $this->partial('sys/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>
|
</div>
|
||||||
<!--
|
<!--
|
||||||
<script>
|
<script>
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<ul class="nav nav-list">
|
<ul class="nav nav-pills nav-stacked well">
|
||||||
<li class="title">新闻中心</li>
|
<span class="label"><h4>新闻中心</h4></span>
|
||||||
<li><a href="/admin/news">新闻中心首页</a></li>
|
<li><a href="/admin/news">新闻中心首页</a></li>
|
||||||
<li><a href="/admin/news/catlog">栏目管理</a></li>
|
<li><a href="/admin/news/catlog">栏目管理</a></li>
|
||||||
<li><a href="/admin/news/catlog/add/1">栏目添加</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): ?>
|
<?php foreach ($this->paginator as $item): ?>
|
||||||
<tr>
|
<tr>
|
||||||
<td><input type="checkbox" name="update[]" value="<?php echo $item['id']; ?>"/></td>
|
<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><?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>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
|
|
|
@ -11,19 +11,46 @@
|
||||||
?>
|
?>
|
||||||
<div id="leftPanel">
|
<div id="leftPanel">
|
||||||
<?= $this->partial('stat/left.phtml'); ?>
|
<?= $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>
|
||||||
<div id="rightPanel">
|
<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="tables">
|
||||||
<div class="stitle">数据下载量概况</div>
|
<div class="stitle">数据下载量概况</div>
|
||||||
<table>
|
<table>
|
||||||
|
@ -31,23 +58,19 @@
|
||||||
<tr><td width="200"></td><td width="100">单位:GB</td></tr>
|
<tr><td width="200"></td><td width="100">单位:GB</td></tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tr>
|
<tr>
|
||||||
<td>总下载数据量(估计量,偏大)</td>
|
<td>总下载数据量</td>
|
||||||
<td><?php echo round($this->allsize['num'],2);?></td>
|
<td><?php echo round($this->allsize['num'],2);?></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>离线下载数据量(从09年4月)</td>
|
<td>离线下载数据量</td>
|
||||||
<td><?php echo round($this->offlinesize['num'],2);?></td>
|
<td><?php echo round($this->offlinesize['num'],2);?></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>在线下载数据量(估计量,偏大)</td>
|
<td>在线下载数据量</td>
|
||||||
<td><?php echo round($this->onlinesize['num'],2);?></td>
|
<td><?php echo round($this->onlinesize['num'],2);?></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
|
||||||
<td>G6在线下载数据量(精确量)</td>
|
|
||||||
<td><?php echo round($this->onlineg6size['num'],2);?></td>
|
|
||||||
</tr>
|
|
||||||
|
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -1,13 +1,9 @@
|
||||||
<ul>
|
<ul class="nav nav-pills nav-stacked well">
|
||||||
<li class="title">信息统计</li>
|
<span class="label"><h4>信息统计</h4></span>
|
||||||
<li><a href="/admin/stat/">统计概况</a></li>
|
<li><a href="/admin/stat/">统计概况</a></li>
|
||||||
<li><a href="/admin/stat/unit">分单位统计</a></li>
|
<li><a href="/admin/stat/unit">分单位统计</a></li>
|
||||||
<li><a href="/admin/stat/month">分月统计</a></li>
|
<li><a href="/admin/stat/month">分月统计</a></li>
|
||||||
<li><a href="/admin/stat/user">按用户统计</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/awstatsweb">awstats web统计</a></li>
|
||||||
<li><a href="/admin/stat/awstatsweb2">awstats geodata统计</a></li>
|
<li><a href="/admin/stat/awstatsftp">awstats ftp统计</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>
|
|
||||||
</ul>
|
</ul>
|
|
@ -31,15 +31,9 @@
|
||||||
<div class="cp">
|
<div class="cp">
|
||||||
<span>选择年份:</span>
|
<span>选择年份:</span>
|
||||||
<a href="/admin/stat/month/">所有年份</a>
|
<a href="/admin/stat/month/">所有年份</a>
|
||||||
<a href="/admin/stat/month/y/2004">2004</a>
|
<a href="/admin/stat/month/y/2013">2013</a>
|
||||||
<a href="/admin/stat/month/y/2005">2005</a>
|
<a href="/admin/stat/month/y/2014">2014</a>
|
||||||
<a href="/admin/stat/month/y/2006">2006</a>
|
<a href="/admin/stat/month/y/2015">2015</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>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="charts">
|
<div class="charts">
|
||||||
<div class="title" id="title_online"><?php echo $this->y.'年按月在线下载条数(有用途记录,且无数据重复)统计';?></div>
|
<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>
|
|
@ -1,72 +1,62 @@
|
||||||
<?php
|
<?php
|
||||||
$this->headTitle($this->config->title->site);
|
$this->headTitle($this->config->title->site);
|
||||||
$this->headTitle('后台管理');
|
$this->headTitle('后台管理');
|
||||||
$this->headTitle()->setSeparator(' - ');
|
$this->headTitle()->setSeparator(' - ');
|
||||||
$this->headLink()->appendStylesheet('/css/admin.css');
|
$this->headLink()->appendStylesheet('/css/admin.css');
|
||||||
$this->theme->AppendPlus($this,'jquery');
|
$this->theme->AppendPlus($this,'jquery');
|
||||||
$this->theme->AppendPlus($this,'colorbox');
|
$this->theme->AppendPlus($this,'colorbox');
|
||||||
$this->theme->AppendPlus($this,'datatable');
|
$this->theme->AppendPlus($this,'datatable');
|
||||||
$this->breadcrumb('<a href="/">首页</a>');
|
$this->breadcrumb('<a href="/">首页</a>');
|
||||||
$this->breadcrumb('<a href="/admin">后台首页</a>');
|
$this->breadcrumb('<a href="/admin">后台首页</a>');
|
||||||
$this->breadcrumb()->setSeparator(' > ');
|
$this->breadcrumb()->setSeparator(' > ');
|
||||||
?>
|
?>
|
||||||
<style>
|
<div class="row-fluid">
|
||||||
.charts{margin:30px 0px;}
|
<div class="span2">
|
||||||
.charts .title{color:#003366;}
|
<?= $this->partial('stat/left.phtml'); ?>
|
||||||
.cp {line-height:24px;}
|
</div>
|
||||||
.cp ul li{float:left;margin:0px 0px;}
|
<div class="span10">
|
||||||
.cp a{color:#4bb2c5;line-height:24px;padding:5px;}
|
|
||||||
.cp a.active,.cp a:hover{color:#FFF;background:#4bb2c5;}
|
<?= $this->partial('stat/user-nav.phtml',array('ac'=>$this->ac)); ?>
|
||||||
</style>
|
|
||||||
<div id="leftPanel">
|
<div class="cp">
|
||||||
<?= $this->partial('stat/left.phtml'); ?>
|
<a href="/admin/stat/user/ac/get/down/csv" class="btn btn-info">导出csv格式</a>
|
||||||
</div>
|
<a href="/admin/stat/user/ac/get/down/json" class="btn btn-info">导出JSON格式</a>
|
||||||
<div id="rightPanel">
|
</div>
|
||||||
|
<div id="unitdata">
|
||||||
<div class="cp">
|
<b>点击列名进行排序</b>
|
||||||
<ul>
|
</div>
|
||||||
<li>
|
<div class="dataTables_wrapper">
|
||||||
<a href="/admin/stat/user/ac/get/down/csv">导出csv格式</a>
|
<table id="datatable" class="table table-bordered table-striped table_vam dataTable">
|
||||||
</li>
|
<thead>
|
||||||
<li>
|
<tr>
|
||||||
<a href="/admin/stat/user/ac/get/down/json">导出JSON格式</a>
|
<th>ID</th>
|
||||||
</li>
|
<th>用户</th>
|
||||||
</ul>
|
<th>离线申请次数</th>
|
||||||
</div>
|
<th>在线申请次数</th>
|
||||||
<div id="unitdata">
|
<th>总申请次数</th>
|
||||||
<b>点击列名进行排序</b>
|
</tr>
|
||||||
</div>
|
</thead>
|
||||||
<div class="dataTables_wrapper">
|
<tbody>
|
||||||
<table id="datatable" class="table table-bordered table-striped table_vam dataTable">
|
|
||||||
<thead>
|
</tbody>
|
||||||
<tr>
|
</table>
|
||||||
<th>ID</th>
|
</div>
|
||||||
<th>用户</th>
|
|
||||||
<th>离线申请次数</th>
|
</div>
|
||||||
<th>在线申请次数</th>
|
</div>
|
||||||
<th>总申请次数</th>
|
<script>
|
||||||
</tr>
|
$(document).ready(function() {
|
||||||
</thead>
|
$('#datatable').dataTable( {
|
||||||
<tbody>
|
"bProcessing": true,
|
||||||
|
"sAjaxSource": "/admin/stat/user/ac/get",
|
||||||
</tbody>
|
"aoColumns": [
|
||||||
</table>
|
{ "mData": "userid" },
|
||||||
</div>
|
{ "mData": "realname" },
|
||||||
|
{ "mData": "offline" },
|
||||||
</div>
|
{ "mData": "online" },
|
||||||
<script>
|
{ "mData": "total" }
|
||||||
$(document).ready(function() {
|
],
|
||||||
$('#datatable').dataTable( {
|
"sPaginationType": "full_numbers"
|
||||||
"bProcessing": true,
|
});
|
||||||
"sAjaxSource": "/admin/stat/user/ac/get",
|
} );
|
||||||
"aoColumns": [
|
|
||||||
{ "mData": "userid" },
|
|
||||||
{ "mData": "realname" },
|
|
||||||
{ "mData": "offline" },
|
|
||||||
{ "mData": "online" },
|
|
||||||
{ "mData": "total" }
|
|
||||||
],
|
|
||||||
"sPaginationType": "full_numbers"
|
|
||||||
});
|
|
||||||
} );
|
|
||||||
</script>
|
</script>
|
|
@ -1,10 +1,6 @@
|
||||||
<ul>
|
<ul class="nav nav-pills nav-stacked well">
|
||||||
<li class="title">系统管理</li>
|
<span class="label"><h4>系统管理</h4></span>
|
||||||
<li><a href="/admin/sys/emailtext">邮件模板管理</a></li>
|
<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/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>
|
<li><a href="/admin/sys/regions">GN地点管理</a></li>
|
||||||
</ul>
|
</ul>
|
|
@ -7,4 +7,5 @@
|
||||||
<li><a href="/admin/user/group">用户组管理</a></li>
|
<li><a href="/admin/user/group">用户组管理</a></li>
|
||||||
<li><a href="/admin/review/experts">元数据评审专家库</a></li>
|
<li><a href="/admin/review/experts">元数据评审专家库</a></li>
|
||||||
<li><a href="/admin/user/sendmail/">长时间未登录用户</a></li>
|
<li><a href="/admin/user/sendmail/">长时间未登录用户</a></li>
|
||||||
|
<li><a href="/admin/user/sendmail/ac/holiday">节日祝贺邮件</a></li>
|
||||||
</ul>
|
</ul>
|
|
@ -1,8 +1,8 @@
|
||||||
<ul>
|
<ul class="nav nav-pills nav-stacked well">
|
||||||
<li><a href="/admin/watermd/replace">正则替换工具</a></li>
|
<li><a href="/admin/watermd/replace">正则替换工具</a></li>
|
||||||
<li><a href="/admin/watermd/citetitle">引用的标题替换</a></li>
|
<li><a href="/admin/watermd/citetitle">引用的标题替换</a></li>
|
||||||
<li><a href="/admin/watermd/filesize">文件大小处理</a></li>
|
<li><a href="/admin/watermd/filesize">文件大小处理</a></li>
|
||||||
<li><a href="/admin/watermd/uselimit">使用声明处理</a></li>
|
<li><a href="/admin/watermd/uselimit">使用声明处理</a></li>
|
||||||
<li><a href="/admin/watermd/contact">联系人替换</a></li>
|
<li><a href="/admin/watermd/contact">联系人替换</a></li>
|
||||||
<li><a href="/admin/watermd/keyword">关键词替换</a></li>
|
<li><a href="/admin/watermd/keyword">关键词替换</a></li>
|
||||||
</ul>
|
</ul>
|
|
@ -1,161 +1,158 @@
|
||||||
[general]
|
[general]
|
||||||
db.adapter = PDO_PGSQL
|
db.adapter = PDO_PGSQL
|
||||||
db.params.host = localhost
|
db.params.host = localhost
|
||||||
db.params.username = gis
|
db.params.username = gis
|
||||||
db.params.password = gispassword
|
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.adapter = PDO_PGSQL
|
||||||
geonetwork.params.host = localhost
|
geonetwork.params.host = localhost
|
||||||
geonetwork.params.username = gis
|
geonetwork.params.username = gis
|
||||||
geonetwork.params.password = gispassword
|
geonetwork.params.password = gispassword
|
||||||
geonetwork.params.dbname = geonetwork
|
geonetwork.params.dbname = geonetwork
|
||||||
|
|
||||||
google.maps.api=ABQIAAAACD-MqkkoOm60o_dvwdcKVhRBSKpgcP88GYi6r2Of16IkMX_4YhSBQsywCi4J2_fh4nBuWmK7gyRjLg
|
google.maps.api=ABQIAAAACD-MqkkoOm60o_dvwdcKVhRBSKpgcP88GYi6r2Of16IkMX_4YhSBQsywCi4J2_fh4nBuWmK7gyRjLg
|
||||||
bing.api=4BC90E1E9ED351ECE0D9FB71509BC3CC1264340C
|
bing.api=4BC90E1E9ED351ECE0D9FB71509BC3CC1264340C
|
||||||
bigthumb.path=../geonetwork/data/
|
bigthumb.path=../geonetwork/data/
|
||||||
temp.path=/tmp/
|
temp.path=/tmp/
|
||||||
upload=../data/upload/
|
upload=../data/upload/
|
||||||
|
|
||||||
paths.newsletter=images/newsletter/
|
paths.newsletter=images/newsletter/
|
||||||
logging.file = /var/www/test.westgis.ac.cn/data/logs/debug.log
|
logging.file = /var/www/test.westgis.ac.cn/data/logs/debug.log
|
||||||
page.limit=10
|
page.limit=10
|
||||||
import.dir=../data/import
|
import.dir=../data/import
|
||||||
title.site=三江源自然保护区数据管理中心
|
title.site=三江源生态监测综合数据服务平台
|
||||||
title.data=数据产品与服务
|
title.data=数据产品与服务
|
||||||
title.heihe=黑河计划数据管理中心
|
title.review=数据评审
|
||||||
title.yrnmr=黄河上游宁蒙河段综合数据平台
|
title.author=数据作者
|
||||||
title.glacier=中国冰川资源及其变化调查
|
title.knowledge=知识积累
|
||||||
title.review=数据评审
|
supportemail=sjy@mygis.org
|
||||||
title.author=数据作者
|
reportemail=westdc-report-subscribe@lists.westgis.ac.cn
|
||||||
title.knowledge=知识积累
|
|
||||||
supportemail=westdc@lzb.ac.cn
|
smtp.username=sjy@mygis.org
|
||||||
reportemail=westdc-report-subscribe@lists.westgis.ac.cn
|
smtp.password=qherc@123
|
||||||
|
smtp.host=smtp.gmail.com
|
||||||
smtp.username=westdc@lzb.ac.cn
|
smtp.ssl=SSL
|
||||||
smtp.password=ilovewestdc
|
smtp.auth=login
|
||||||
smtp.host=smtp.cstnet.cn
|
smtp.name=三江源生态监测综合数据服务平台
|
||||||
smtp.ssl=TLS
|
|
||||||
smtp.auth=login
|
ftp.user=newwestdc
|
||||||
smtp.name=数据中心服务组
|
ftp.password=westdcforsmall
|
||||||
|
download.max=5 //最多同时申请下载个数
|
||||||
ftp.user=newwestdc
|
page.max=10 //每页显示条目数
|
||||||
ftp.password=westdcforsmall
|
offline.template=../data/offline.pdf
|
||||||
download.max=5 //最多同时申请下载个数
|
offline.heihetemplate=../data/heihe.pdf
|
||||||
page.max=10 //每页显示条目数
|
offline.security=../data/security.pdf
|
||||||
offline.template=../data/offline.pdf
|
offline.water_template=../data/water_offline.pdf
|
||||||
offline.heihetemplate=../data/heihe.pdf
|
offline.font=../data/simhei.ttf
|
||||||
offline.security=../data/security.pdf
|
offline.savepath=../data/offlineapp
|
||||||
offline.water_template=../data/water_offline.pdf
|
service.email=sjy@mygis.org
|
||||||
offline.font=../data/simhei.ttf
|
offline.email.template=../data/offline-email.txt
|
||||||
offline.savepath=../data/offlineapp
|
offline.email.start_template=../data/offline-start-email.txt
|
||||||
service.email=westdc@lzb.ac.cn
|
offline.email.finish_template=../data/offline-finish-email.txt
|
||||||
offline.email.template=../data/offline-email.txt
|
offline.email.deny_template=../data/offline-deny-email.txt
|
||||||
offline.email.start_template=../data/offline-start-email.txt
|
register.email.template=../data/register-email.txt
|
||||||
offline.email.finish_template=../data/offline-finish-email.txt
|
westdc.xsl=../data/ISO19115.xsl
|
||||||
offline.email.deny_template=../data/offline-deny-email.txt
|
|
||||||
register.email.template=../data/register-email.txt
|
routes.accout.route = "account/fetchpwd/:login/:key"
|
||||||
westdc.xsl=../data/ISO19115.xsl
|
routes.accout.defaults.controller = "account"
|
||||||
|
routes.accout.defaults.action = "fetchpwd"
|
||||||
routes.accout.route = "account/fetchpwd/:login/:key"
|
|
||||||
routes.accout.defaults.controller = "account"
|
routes.tag.route = "data/tag/:key"
|
||||||
routes.accout.defaults.action = "fetchpwd"
|
routes.tag.defaults.controller = "data"
|
||||||
|
routes.tag.defaults.action = "tag"
|
||||||
routes.tag.route = "data/tag/:key"
|
|
||||||
routes.tag.defaults.controller = "data"
|
routes.netkites1.type = "Zend_Controller_Router_Route_Static"
|
||||||
routes.tag.defaults.action = "tag"
|
routes.netkites1.route = "knowledge/netkites"
|
||||||
|
routes.netkites1.defaults.controller = netkites
|
||||||
routes.netkites1.type = "Zend_Controller_Router_Route_Static"
|
routes.netkites1.defaults.action = index
|
||||||
routes.netkites1.route = "knowledge/netkites"
|
|
||||||
routes.netkites1.defaults.controller = netkites
|
routes.netkites.route = "knowledge/netkites/:action/*"
|
||||||
routes.netkites1.defaults.action = index
|
routes.netkites.defaults.controller = netkites
|
||||||
|
|
||||||
routes.netkites.route = "knowledge/netkites/:action/*"
|
routes.dataid.route = "data/:id"
|
||||||
routes.netkites.defaults.controller = netkites
|
routes.dataid.defaults.controller = "data"
|
||||||
|
routes.dataid.defaults.action = "view"
|
||||||
routes.dataid.route = "data/:id"
|
routes.dataid.reqs.id = "\d+"
|
||||||
routes.dataid.defaults.controller = "data"
|
|
||||||
routes.dataid.defaults.action = "view"
|
routes.dataxmluuid.route = "data/xml/:uuid"
|
||||||
routes.dataid.reqs.id = "\d+"
|
routes.dataxmluuid.defaults.controller = "data"
|
||||||
|
routes.dataxmluuid.defaults.action = "xml"
|
||||||
routes.dataxmluuid.route = "data/xml/:uuid"
|
routes.dataxmluuid.reqs.uuid = "[[:xdigit:]]{8}(-[[:xdigit:]]{4}){3}-[[:xdigit:]]{12}"
|
||||||
routes.dataxmluuid.defaults.controller = "data"
|
|
||||||
routes.dataxmluuid.defaults.action = "xml"
|
routes.datauuid.route = "data/:uuid"
|
||||||
routes.dataxmluuid.reqs.uuid = "[[:xdigit:]]{8}(-[[:xdigit:]]{4}){3}-[[:xdigit:]]{12}"
|
routes.datauuid.defaults.controller = "data"
|
||||||
|
routes.datauuid.defaults.action = "view"
|
||||||
routes.datauuid.route = "data/:uuid"
|
routes.datauuid.reqs.uuid = "[[:xdigit:]]{8}(-[[:xdigit:]]{4}){3}-[[:xdigit:]]{12}"
|
||||||
routes.datauuid.defaults.controller = "data"
|
|
||||||
routes.datauuid.defaults.action = "view"
|
routes.datacat.route = "data/category/:code"
|
||||||
routes.datauuid.reqs.uuid = "[[:xdigit:]]{8}(-[[:xdigit:]]{4}){3}-[[:xdigit:]]{12}"
|
routes.datacat.defaults.controller = "data"
|
||||||
|
routes.datacat.defaults.action = "category"
|
||||||
routes.datacat.route = "data/category/:code"
|
routes.datacat.reqs.code = "\d+"
|
||||||
routes.datacat.defaults.controller = "data"
|
|
||||||
routes.datacat.defaults.action = "category"
|
routes.dataseriesplace.route = "data/series/:id/:keyword"
|
||||||
routes.datacat.reqs.code = "\d+"
|
routes.dataseriesplace.defaults.controller = "data"
|
||||||
|
routes.dataseriesplace.defaults.action = "series"
|
||||||
routes.dataseriesplace.route = "data/series/:id/:keyword"
|
//routes.dataseries.reqs.code = "\d+"
|
||||||
routes.dataseriesplace.defaults.controller = "data"
|
|
||||||
routes.dataseriesplace.defaults.action = "series"
|
routes.dataseries.route = "data/series/:id"
|
||||||
//routes.dataseries.reqs.code = "\d+"
|
routes.dataseries.defaults.controller = "data"
|
||||||
|
routes.dataseries.defaults.action = "series"
|
||||||
routes.dataseries.route = "data/series/:id"
|
|
||||||
routes.dataseries.defaults.controller = "data"
|
routes.wateruuid.route = "water/:uuid"
|
||||||
routes.dataseries.defaults.action = "series"
|
routes.wateruuid.defaults.controller = "water"
|
||||||
|
routes.wateruuid.defaults.action = "view"
|
||||||
routes.wateruuid.route = "water/:uuid"
|
routes.wateruuid.reqs.uuid = "[[:xdigit:]]{8}(-[[:xdigit:]]{4}){3}-[[:xdigit:]]{12}"
|
||||||
routes.wateruuid.defaults.controller = "water"
|
|
||||||
routes.wateruuid.defaults.action = "view"
|
routes.watertag.route = "water/tag/:key"
|
||||||
routes.wateruuid.reqs.uuid = "[[:xdigit:]]{8}(-[[:xdigit:]]{4}){3}-[[:xdigit:]]{12}"
|
routes.watertag.defaults.controller = "water"
|
||||||
|
routes.watertag.defaults.action = "tag"
|
||||||
routes.watertag.route = "water/tag/:key"
|
|
||||||
routes.watertag.defaults.controller = "water"
|
routes.mddoc.route = "data/wiki/:title"
|
||||||
routes.watertag.defaults.action = "tag"
|
routes.mddoc.defaults.controller = "metainfo"
|
||||||
|
routes.mddoc.defaults.action = "index"
|
||||||
routes.mddoc.route = "data/wiki/:title"
|
|
||||||
routes.mddoc.defaults.controller = "metainfo"
|
routes.mdfile.route = "filelist/uuid/:uuid"
|
||||||
routes.mddoc.defaults.action = "index"
|
routes.mdfile.defaults.controller = "filelist"
|
||||||
|
routes.mdfile.defaults.action = "index"
|
||||||
routes.mdfile.route = "filelist/uuid/:uuid"
|
|
||||||
routes.mdfile.defaults.controller = "filelist"
|
routes.adminofflineapp.route = admin/down/offlineapp/:page
|
||||||
routes.mdfile.defaults.action = "index"
|
routes.adminofflineapp.defaults.module = admin
|
||||||
|
routes.adminofflineapp.defaults.controller = down
|
||||||
routes.adminofflineapp.route = admin/down/offlineapp/:page
|
routes.adminofflineapp.defaults.action = offlineapp
|
||||||
routes.adminofflineapp.defaults.module = admin
|
routes.adminofflineapp.defaults.page = 1
|
||||||
routes.adminofflineapp.defaults.controller = down
|
routes.adminofflineapp.reqs.page = \d+
|
||||||
routes.adminofflineapp.defaults.action = offlineapp
|
|
||||||
routes.adminofflineapp.defaults.page = 1
|
routes.admindatasetcd.route = admin/data/datasetcd/:page
|
||||||
routes.adminofflineapp.reqs.page = \d+
|
routes.admindatasetcd.defaults.module = admin
|
||||||
|
routes.admindatasetcd.defaults.controller = data
|
||||||
routes.admindatasetcd.route = admin/data/datasetcd/:page
|
routes.admindatasetcd.defaults.action = datasetcd
|
||||||
routes.admindatasetcd.defaults.module = admin
|
routes.admindatasetcd.defaults.page = 1
|
||||||
routes.admindatasetcd.defaults.controller = data
|
routes.admindatasetcd.reqs.page = \d+
|
||||||
routes.admindatasetcd.defaults.action = datasetcd
|
|
||||||
routes.admindatasetcd.defaults.page = 1
|
routes.adminmd.route = admin/data/md/:page
|
||||||
routes.admindatasetcd.reqs.page = \d+
|
routes.adminmd.defaults.module = admin
|
||||||
|
routes.adminmd.defaults.controller = data
|
||||||
routes.adminmd.route = admin/data/md/:page
|
routes.adminmd.defaults.action = md
|
||||||
routes.adminmd.defaults.module = admin
|
routes.adminmd.defaults.page = 1
|
||||||
routes.adminmd.defaults.controller = data
|
routes.adminmd.reqs.page = \d+
|
||||||
routes.adminmd.defaults.action = md
|
|
||||||
routes.adminmd.defaults.page = 1
|
routes.admincomment.route = admin/data/comment/:page
|
||||||
routes.adminmd.reqs.page = \d+
|
routes.admincomment.defaults.module = admin
|
||||||
|
routes.admincomment.defaults.controller = data
|
||||||
routes.admincomment.route = admin/data/comment/:page
|
routes.admincomment.defaults.action = comment
|
||||||
routes.admincomment.defaults.module = admin
|
routes.admincomment.defaults.page = 1
|
||||||
routes.admincomment.defaults.controller = data
|
routes.admincomment.reqs.page = \d+
|
||||||
routes.admincomment.defaults.action = comment
|
|
||||||
routes.admincomment.defaults.page = 1
|
routes.adminoffline.route = admin/data/offline/:page
|
||||||
routes.admincomment.reqs.page = \d+
|
routes.adminoffline.defaults.module = admin
|
||||||
|
routes.adminoffline.defaults.controller = data
|
||||||
routes.adminoffline.route = admin/data/offline/:page
|
routes.adminoffline.defaults.action = offline
|
||||||
routes.adminoffline.defaults.module = admin
|
routes.adminoffline.defaults.page = 1
|
||||||
routes.adminoffline.defaults.controller = data
|
routes.adminoffline.reqs.page = \d+
|
||||||
routes.adminoffline.defaults.action = offline
|
|
||||||
routes.adminoffline.defaults.page = 1
|
routes.news.route = archives/:ptype/:type/:page
|
||||||
routes.adminoffline.reqs.page = \d+
|
routes.news.defaults.controller = archives
|
||||||
|
routes.news.defaults.action = list
|
||||||
routes.news.route = archives/:ptype/:type/:page
|
routes.news.defaults.page = 1
|
||||||
routes.news.defaults.controller = archives
|
|
||||||
routes.news.defaults.action = list
|
|
||||||
routes.news.defaults.page = 1
|
|
||||||
|
|
|
@ -86,7 +86,7 @@ class AboutController extends Zend_Controller_Action
|
||||||
$siteid="e31f5ea7-a4af-4ae3-9ac1-1a84132c4338";//site uuid from geonetowrk
|
$siteid="e31f5ea7-a4af-4ae3-9ac1-1a84132c4338";//site uuid from geonetowrk
|
||||||
if(empty($ac))
|
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 = $this->db->prepare($sql);
|
||||||
$sth->execute(array($siteid));
|
$sth->execute(array($siteid));
|
||||||
$rows = $sth->fetchAll();
|
$rows = $sth->fetchAll();
|
||||||
|
|
|
@ -2376,7 +2376,7 @@ class AuthorController extends Zend_Controller_Action
|
||||||
// 2. 保存变化记录 save changelog & userid for the latest version
|
// 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)";
|
$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']));
|
$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. 保存数据评审状态
|
// 3. 保存数据评审状态
|
||||||
//导入元数据
|
//导入元数据
|
||||||
@$iso->saveDB($this->db);
|
@$iso->saveDB($this->db);
|
||||||
|
@ -2472,10 +2472,10 @@ class AuthorController extends Zend_Controller_Action
|
||||||
}
|
}
|
||||||
|
|
||||||
//ftp 用户名
|
//ftp 用户名
|
||||||
$uname = 'westdc'.$u_id.'upload';
|
$uname = 'sjy'.$u_id.'upload';
|
||||||
|
|
||||||
//ftp路径
|
//ftp路径
|
||||||
$homedir = "/disk1/WestDC/upload/".$uuid."/";
|
$homedir = "/data/upload/".$uuid."/";
|
||||||
//ftp用户表
|
//ftp用户表
|
||||||
$ftptable=' pureftp ';//ftp2.westgis.ac.cn
|
$ftptable=' pureftp ';//ftp2.westgis.ac.cn
|
||||||
$uid = 1002;
|
$uid = 1002;
|
||||||
|
@ -2491,7 +2491,7 @@ class AuthorController extends Zend_Controller_Action
|
||||||
//$old=umask(0);
|
//$old=umask(0);
|
||||||
//@mkdir($homedir,0777);
|
//@mkdir($homedir,0777);
|
||||||
//umask($old);
|
//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
|
if (!empty($page)) die($page);//there are errors in visit ftp page
|
||||||
|
|
||||||
|
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -25,8 +25,8 @@ class GlacierController extends DataController
|
||||||
|
|
||||||
function indexAction()
|
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";
|
$archive = new Archive($this->db);
|
||||||
$this->view->meatdata=$this->db->fetchAll($sql);
|
$this->view->info = $archive->getOneArchive('中国冰川资源及其变化调查-项目简介','about');
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -78,187 +78,148 @@ class GlacierController extends DataController
|
||||||
|
|
||||||
function geobaseAction()
|
function geobaseAction()
|
||||||
{
|
{
|
||||||
$page=(int)$this->_request->getParam('page');
|
$archive = new Archive($this->db);
|
||||||
if (empty($page)) $page=1;
|
$this->view->info = $archive->getOneArchive('中国冰川资源及其变化调查-基础数据','about');
|
||||||
$offset=$this->limit*($page-1);
|
$this->getmd(array('遥感影像','DEM'));
|
||||||
$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'))");
|
$this->_helper->viewRenderer('base');
|
||||||
$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;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function demAction()
|
function demAction()
|
||||||
{
|
{
|
||||||
$this->getmd('DEM');
|
$this->getmd('DEM');
|
||||||
|
$archive = new Archive($this->db);
|
||||||
|
$this->view->info = $archive->getOneArchive('中国冰川资源及其变化调查-DEM','about');
|
||||||
|
$this->_helper->viewRenderer('base');
|
||||||
}
|
}
|
||||||
|
|
||||||
function rsAction()
|
function rsAction()
|
||||||
{
|
{
|
||||||
$this->getmd('遥感影像');
|
$this->getmd('遥感影像');
|
||||||
|
$archive = new Archive($this->db);
|
||||||
|
$this->view->info = $archive->getOneArchive('中国冰川资源及其变化调查-遥感影像','about');
|
||||||
|
$this->_helper->viewRenderer('base');
|
||||||
}
|
}
|
||||||
|
|
||||||
function inventoryAction()
|
function inventoryAction()
|
||||||
{
|
{
|
||||||
$page=(int)$this->_request->getParam('page');
|
$this->getmd(array('冰川编目','冰湖编目'));
|
||||||
if (empty($page)) $page=1;
|
$archive = new Archive($this->db);
|
||||||
$offset=$this->limit*($page-1);
|
$this->view->info = $archive->getOneArchive('中国冰川资源及其变化调查-冰川冰湖编目','about');
|
||||||
$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='冰湖编目'))");
|
$this->_helper->viewRenderer('base');
|
||||||
$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;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function glacierAction()
|
function glacierAction()
|
||||||
{
|
{
|
||||||
$this->getmd('冰川编目');
|
$this->getmd('冰川编目');
|
||||||
|
$archive = new Archive($this->db);
|
||||||
|
$this->view->info = $archive->getOneArchive('中国冰川资源及其变化调查-冰川编目','about');
|
||||||
|
$this->_helper->viewRenderer('base');
|
||||||
}
|
}
|
||||||
|
|
||||||
function lakeAction()
|
function lakeAction()
|
||||||
{
|
{
|
||||||
$this->getmd('冰湖编目');
|
$this->getmd('冰湖编目');
|
||||||
|
$archive = new Archive($this->db);
|
||||||
|
$this->view->info = $archive->getOneArchive('中国冰川资源及其变化调查-冰湖编目','about');
|
||||||
|
$this->_helper->viewRenderer('base');
|
||||||
}
|
}
|
||||||
|
|
||||||
function fieldAction()
|
function fieldAction()
|
||||||
{
|
{
|
||||||
$page=(int)$this->_request->getParam('page');
|
$this->getmd(array('水文','流量','水质','同位素','径流','水位','气象','雨量','GPS',
|
||||||
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'
|
$archive = new Archive($this->db);
|
||||||
and (keyword='水文' or keyword='流量' or keyword='水质' or keyword='同位素' or keyword='径流' or keyword='水位' or keyword='气象' or keyword='雨量' or keyword='GPS'
|
$this->view->info = $archive->getOneArchive('中国冰川资源及其变化调查-野外考察与定位观测','about');
|
||||||
or keyword='雷达' or keyword='雷达测厚' or keyword='冰川厚度' or keyword='物质平衡' or keyword='花杆' or keyword='运动速度' or keyword='花杆消融观测' or keyword='冰舌'
|
$this->_helper->viewRenderer('base');
|
||||||
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;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function meteoAction()
|
function meteoAction()
|
||||||
{
|
{
|
||||||
$page=(int)$this->_request->getParam('page');
|
$this->getmd(array('气象','雨量'));
|
||||||
if (empty($page)) $page=1;
|
$archive = new Archive($this->db);
|
||||||
$offset=$this->limit*($page-1);
|
$this->view->info = $archive->getOneArchive('中国冰川资源及其变化调查-气象','about');
|
||||||
$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='雨量'))");
|
$this->_helper->viewRenderer('base');
|
||||||
$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;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function hydroAction()
|
function hydroAction()
|
||||||
{
|
{
|
||||||
$page=(int)$this->_request->getParam('page');
|
$this->getmd(array('水文','流量','水质','同位素','径流','水位'));
|
||||||
if (empty($page)) $page=1;
|
$archive = new Archive($this->db);
|
||||||
$offset=$this->limit*($page-1);
|
$this->view->info = $archive->getOneArchive('中国冰川资源及其变化调查-水文','about');
|
||||||
$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='水位'))");
|
$this->_helper->viewRenderer('base');
|
||||||
$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;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function gpsAction()
|
function gpsAction()
|
||||||
{
|
{
|
||||||
$this->getmd('GPS','theme');
|
$this->getmd('GPS','theme');
|
||||||
|
$archive = new Archive($this->db);
|
||||||
|
$this->view->info = $archive->getOneArchive('中国冰川资源及其变化调查-GPS','about');
|
||||||
|
$this->_helper->viewRenderer('base');
|
||||||
}
|
}
|
||||||
|
|
||||||
function lidarAction()
|
function lidarAction()
|
||||||
{
|
{
|
||||||
$page=(int)$this->_request->getParam('page');
|
$this->getmd(array('雷达','雷达测厚','冰川厚度'));
|
||||||
if (empty($page)) $page=1;
|
$archive = new Archive($this->db);
|
||||||
$offset=$this->limit*($page-1);
|
$this->view->info = $archive->getOneArchive('中国冰川资源及其变化调查-雷达测厚','about');
|
||||||
$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='冰川厚度'))");
|
$this->_helper->viewRenderer('base');
|
||||||
$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;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function materialAction()
|
function materialAction()
|
||||||
{
|
{
|
||||||
$page=(int)$this->_request->getParam('page');
|
$this->getmd(array('物质平衡','花杆'));
|
||||||
if (empty($page)) $page=1;
|
$archive = new Archive($this->db);
|
||||||
$offset=$this->limit*($page-1);
|
$this->view->info = $archive->getOneArchive('中国冰川资源及其变化调查-物质平衡','about');
|
||||||
$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='花杆'))");
|
$this->_helper->viewRenderer('base');
|
||||||
$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;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function movementAction()
|
function movementAction()
|
||||||
{
|
{
|
||||||
$page=(int)$this->_request->getParam('page');
|
$this->getmd(array('运动速度','花杆消融观测','冰舌'));
|
||||||
if (empty($page)) $page=1;
|
$archive = new Archive($this->db);
|
||||||
$offset=$this->limit*($page-1);
|
$this->view->info = $archive->getOneArchive('中国冰川资源及其变化调查-冰川运动','about');
|
||||||
$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='冰舌'))");
|
$this->_helper->viewRenderer('base');
|
||||||
$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;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function physicalAction()
|
function physicalAction()
|
||||||
{
|
{
|
||||||
$page=(int)$this->_request->getParam('page');
|
$this->getmd(array('冰雪物理过程','冰温'));
|
||||||
if (empty($page)) $page=1;
|
$archive = new Archive($this->db);
|
||||||
$offset=$this->limit*($page-1);
|
$this->view->info = $archive->getOneArchive('中国冰川资源及其变化调查-冰雪物理过程','about');
|
||||||
$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='冰温'))");
|
$this->_helper->viewRenderer('base');
|
||||||
$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;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function photogrammetryAction()
|
function photogrammetryAction()
|
||||||
{
|
{
|
||||||
$page=(int)$this->_request->getParam('page');
|
$this->getmd(array('摄影测量','照片'));
|
||||||
if (empty($page)) $page=1;
|
$archive = new Archive($this->db);
|
||||||
$offset=$this->limit*($page-1);
|
$this->view->info = $archive->getOneArchive('中国冰川资源及其变化调查-近景摄影测量','about');
|
||||||
$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='照片'))");
|
$this->_helper->viewRenderer('base');
|
||||||
$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;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function vegetationAction()
|
function vegetationAction()
|
||||||
{
|
{
|
||||||
$this->getmd('植被');
|
$this->getmd('植被');
|
||||||
|
$archive = new Archive($this->db);
|
||||||
|
$this->view->info = $archive->getOneArchive('中国冰川资源及其变化调查-植被调查','about');
|
||||||
|
$this->_helper->viewRenderer('base');
|
||||||
}
|
}
|
||||||
|
|
||||||
function frozensoilAction()
|
function frozensoilAction()
|
||||||
{
|
{
|
||||||
$this->getmd('冻土');
|
$this->getmd('冻土');
|
||||||
|
$archive = new Archive($this->db);
|
||||||
|
$this->view->info = $archive->getOneArchive('中国冰川资源及其变化调查-冻土调查','about');
|
||||||
|
$this->_helper->viewRenderer('base');
|
||||||
}
|
}
|
||||||
|
|
||||||
function quatemaryAction()
|
function quatemaryAction()
|
||||||
{
|
{
|
||||||
$this->getmd('第四纪');
|
$this->getmd('第四纪');
|
||||||
|
$archive = new Archive($this->db);
|
||||||
|
$this->view->info = $archive->getOneArchive('中国冰川资源及其变化调查-第四纪','about');
|
||||||
|
$this->_helper->viewRenderer('base');
|
||||||
}
|
}
|
||||||
|
|
||||||
function listAction()
|
function listAction()
|
||||||
|
@ -270,12 +231,13 @@ class GlacierController extends DataController
|
||||||
function tagAction()
|
function tagAction()
|
||||||
{
|
{
|
||||||
$key = $this->_request->getParam('key');
|
$key = $this->_request->getParam('key');
|
||||||
|
$keytype = $this->_request->getParam('keytype');
|
||||||
$page=(int)$this->_request->getParam('page');
|
$page=(int)$this->_request->getParam('page');
|
||||||
if (empty($page)) $page=1;
|
if (empty($page)) $page=1;
|
||||||
$offset=$this->limit*($page-1);
|
$offset=$this->limit*($page-1);
|
||||||
if (!empty($key)) {
|
if (!empty($key)) {
|
||||||
$this->view->codename=$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);
|
$state=$this->db->query($sql);
|
||||||
$row=$state->fetchAll();
|
$row=$state->fetchAll();
|
||||||
$sum=$row[0]['count'];
|
$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->metadata=$this->db->fetchAll($sql,array($this->limit,$offset));
|
||||||
$this->view->page=new Pagination($sum,$page,$this->limit);
|
$this->view->page=new Pagination($sum,$page,$this->limit);
|
||||||
} else {
|
} 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");
|
$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') ";
|
||||||
$k1=$state->fetchAll();
|
if (!empty($keytype) && ($keytype=='place' || $keytype=='theme' || $keytype=='discipline'||$keytype=='temporal')) $sql.=" and k.keytype='".$keytype."'";
|
||||||
$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");
|
$sql.=' group by k.keyword,k.keytype order by k.keytype,k.keyword,count desc';
|
||||||
$k2=$state->fetchAll();
|
$state=$this->db->query($sql);
|
||||||
$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");
|
$this->view->keytype=$keytype;
|
||||||
$k3=$state->fetchAll();
|
$this->view->keywords=$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);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -376,14 +333,58 @@ class GlacierController extends DataController
|
||||||
|
|
||||||
private function getmd($keyword,$type='theme')
|
private function getmd($keyword,$type='theme')
|
||||||
{
|
{
|
||||||
$page=(int)$this->_request->getParam('page');
|
$page=(int)$this->_request->getParam('page');
|
||||||
if (empty($page)) $page=1;
|
if (empty($page)) $page=1;
|
||||||
$offset=$this->limit*($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();
|
$row=$state->fetchAll();
|
||||||
$sum=$row[0]['count'];
|
$sum=$row[0]['count'];
|
||||||
//@todo: add order with title
|
//@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->metadata=$this->db->fetchAll($sql,array($this->limit,$offset));
|
||||||
$this->view->page=new Pagination($sum,$page,$this->limit);
|
$this->view->page=new Pagination($sum,$page,$this->limit);
|
||||||
$this->view->offset=$offset+1;
|
$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 {
|
} 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 = $this->db->prepare($sql);
|
||||||
$sth->execute();
|
$sth->execute();
|
||||||
$rows = $sth->fetchAll();
|
$rows = $sth->fetchAll();
|
||||||
|
|
|
@ -153,12 +153,12 @@ class HiwaterController extends DataController
|
||||||
|
|
||||||
function demdsmAction()
|
function demdsmAction()
|
||||||
{
|
{
|
||||||
$this->getmd(array('DEM','DSM','DOM'),"数据产品");
|
$this->getmdlimited(array('DEM','DSM','DOM'),"数据产品");
|
||||||
$this->_helper->viewRenderer('base');
|
$this->_helper->viewRenderer('base');
|
||||||
}
|
}
|
||||||
function reflectanceAction()
|
function reflectanceAction()
|
||||||
{
|
{
|
||||||
$this->getmd(array('地表反照率','地表反射率'),"数据产品");
|
$this->getmdlimited(array('地表反照率','地表反射率'),"数据产品");
|
||||||
$this->_helper->viewRenderer('base');
|
$this->_helper->viewRenderer('base');
|
||||||
}
|
}
|
||||||
function vegtypeairAction()
|
function vegtypeairAction()
|
||||||
|
@ -168,17 +168,17 @@ class HiwaterController extends DataController
|
||||||
}
|
}
|
||||||
function vegparamAction()
|
function vegparamAction()
|
||||||
{
|
{
|
||||||
$this->getmd(array("",'植被结构参数'),"数据产品");
|
$this->getmdlimited(array("",'植被结构参数'),"数据产品");
|
||||||
$this->_helper->viewRenderer('base');
|
$this->_helper->viewRenderer('base');
|
||||||
}
|
}
|
||||||
function soilmoistureAction()
|
function soilmoistureAction()
|
||||||
{
|
{
|
||||||
$this->getmd(array('','土壤水分'),"数据产品");
|
$this->getmdlimited(array('','土壤水分'),"数据产品");
|
||||||
$this->_helper->viewRenderer('base');
|
$this->_helper->viewRenderer('base');
|
||||||
}
|
}
|
||||||
function temperatureAction()
|
function temperatureAction()
|
||||||
{
|
{
|
||||||
$this->getmd(array('','地表温度'),"数据产品");
|
$this->getmdlimited(array('','地表温度'),"数据产品");
|
||||||
$this->_helper->viewRenderer('base');
|
$this->_helper->viewRenderer('base');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -197,7 +197,8 @@ class HiwaterController extends DataController
|
||||||
}
|
}
|
||||||
function normalAction()
|
function normalAction()
|
||||||
{
|
{
|
||||||
$this->getmdlimited(array('西支','黄藏寺','黄草沟','峨堡','景阳岭','阿柔阳坡','阿柔阴坡','戈壁站','神沙窝沙漠站','花寨子荒漠站','张掖湿地站'),'水文气象');
|
$this->getmdlimited(array('景阳岭站','峨堡站','黄草沟站','阿柔阴坡站','阿柔阳坡站','黄藏寺站','大沙龙站','寺大隆站','排露沟林前气象站','水源涵养林研究院观测站','巴吉滩戈壁站','神沙窝沙漠站','张掖湿地站',
|
||||||
|
'花寒子荒漠站','五里墩气象站','四道桥混合林站','四道桥胡杨林站','四道桥裸地站','四道桥农田站','黑河上游生态-水文试验研究站','临泽内陆河流域研究站','阿拉善荒漠生态-水文实验研究站'),'水文气象');
|
||||||
$this->_helper->viewRenderer('base');
|
$this->_helper->viewRenderer('base');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -18,7 +18,7 @@ class IndexController extends Zend_Controller_Action
|
||||||
$name=basename($this->view->newsletter,'.pdf');
|
$name=basename($this->view->newsletter,'.pdf');
|
||||||
list(,$this->view->newsletterno)=explode("_",$name);
|
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);
|
$row=$this->db->fetchRow($sql);
|
||||||
$this->view->usernum=$row['usernum'];
|
$this->view->usernum=$row['usernum'];
|
||||||
$this->view->metanum=$row['metanum'];
|
$this->view->metanum=$row['metanum'];
|
||||||
|
@ -26,7 +26,7 @@ class IndexController extends Zend_Controller_Action
|
||||||
/*$sql='select count(*) from metadata';
|
/*$sql='select count(*) from metadata';
|
||||||
$row=$this->db->fetchRow($sql);
|
$row=$this->db->fetchRow($sql);
|
||||||
$this->view->metanum=$row['count'];*/
|
$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);
|
$rows=$this->db->fetchAll($sql);
|
||||||
foreach($rows as $row)
|
foreach($rows as $row)
|
||||||
{
|
{
|
||||||
|
@ -42,12 +42,12 @@ class IndexController extends Zend_Controller_Action
|
||||||
$sql="select * from datasetcd order by random()";
|
$sql="select * from datasetcd order by random()";
|
||||||
$this->view->datasetcd=$this->db->fetchRow($sql);
|
$this->view->datasetcd=$this->db->fetchRow($sql);
|
||||||
//下载最多数据(top 5)
|
//下载最多数据(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->db->setFetchMode(Zend_Db::FETCH_OBJ);
|
||||||
$this->view->mdtop=$this->db->fetchAll($sql);
|
$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);
|
$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->mdrandom=$this->db->fetchRow($sql);
|
||||||
//搜索
|
//搜索
|
||||||
$this->view->addHelperPath('helper','Zend_View_Helper_');
|
$this->view->addHelperPath('helper','Zend_View_Helper_');
|
||||||
|
@ -85,7 +85,7 @@ class IndexController extends Zend_Controller_Action
|
||||||
|
|
||||||
$this->view->list_news = $rows;
|
$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);
|
$sth = $this->db->query($sql);
|
||||||
$this->view->dois = $sth->fetchAll();
|
$this->view->dois = $sth->fetchAll();
|
||||||
|
|
||||||
|
|
|
@ -1,81 +1,107 @@
|
||||||
<?php
|
<?php
|
||||||
class KnowledgeController extends Zend_Controller_Action
|
class KnowledgeController extends Zend_Controller_Action
|
||||||
{
|
{
|
||||||
function indexAction()
|
function indexAction()
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
function preDispatch()
|
function preDispatch()
|
||||||
{
|
{
|
||||||
$this->db=Zend_Registry::get('db');
|
$this->db=Zend_Registry::get('db');
|
||||||
$this->view->config = Zend_Registry::get('config');
|
$this->view->config = Zend_Registry::get('config');
|
||||||
$this->messenger=$this->_helper->getHelper('FlashMessenger');
|
$this->messenger=$this->_helper->getHelper('FlashMessenger');
|
||||||
$this->view->messages = $this->messenger->getMessages();
|
$this->view->messages = $this->messenger->getMessages();
|
||||||
$this->view->theme=new Theme();
|
$this->view->theme=new Theme();
|
||||||
}
|
}
|
||||||
function datacenterAction()
|
function datacenterAction()
|
||||||
{
|
{
|
||||||
$siteid="e31f5ea7-a4af-4ae3-9ac1-1a84132c4338";//site uuid from geonetowrk
|
$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 = $this->db->prepare($sql);
|
||||||
$sth->execute(array($siteid));
|
$sth->execute(array($siteid));
|
||||||
$rows = $sth->fetchAll();
|
$rows = $sth->fetchAll();
|
||||||
$paginator = Zend_Paginator::factory($rows);
|
$paginator = Zend_Paginator::factory($rows);
|
||||||
$paginator->setCurrentPageNumber($this->_getParam('page'));
|
$paginator->setCurrentPageNumber($this->_getParam('page'));
|
||||||
$paginator->setItemCountPerPage(10);
|
$paginator->setItemCountPerPage(10);
|
||||||
$paginator->setView($this->view);
|
$paginator->setView($this->view);
|
||||||
Zend_View_Helper_PaginationControl::setDefaultViewPartial('pagination_param.phtml');
|
Zend_View_Helper_PaginationControl::setDefaultViewPartial('pagination_param.phtml');
|
||||||
$this->view->paginator=$paginator;
|
$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 = $this->db->prepare($sql);
|
||||||
$sth->execute();
|
$sth->execute();
|
||||||
$rows = $sth->fetchAll();
|
$rows = $sth->fetchAll();
|
||||||
$paginator = Zend_Paginator::factory($rows);
|
$paginator = Zend_Paginator::factory($rows);
|
||||||
$paginator->setCurrentPageNumber($this->_getParam('page'));
|
$paginator->setCurrentPageNumber($this->_getParam('page'));
|
||||||
$paginator->setItemCountPerPage(10);
|
$paginator->setItemCountPerPage(10);
|
||||||
$paginator->setView($this->view);
|
$paginator->setView($this->view);
|
||||||
Zend_View_Helper_PaginationControl::setDefaultViewPartial('pagination_param.phtml');
|
Zend_View_Helper_PaginationControl::setDefaultViewPartial('pagination_param.phtml');
|
||||||
$this->view->paginator=$paginator;
|
$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";
|
|
||||||
$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 westplanAction()
|
|
||||||
{
|
|
||||||
$sql="select distinct array_to_string(array(select author from knl_author t where t.item_id=c.item_id order by place asc),'; ') as author,c.title,c.publisher,c.ts_created,c.ts_issued,c.item_id,c.url from knl_article c where c.url <>'' order by ts_created desc";
|
|
||||||
$sth = $this->db->prepare($sql);
|
|
||||||
$sth->execute();
|
|
||||||
$rows = $sth->fetchAll();
|
|
||||||
$paginator = Zend_Paginator::factory($rows);
|
|
||||||
$paginator->setCurrentPageNumber($this->_getParam('page'));
|
|
||||||
$paginator->setItemCountPerPage(10);
|
|
||||||
$paginator->setView($this->view);
|
|
||||||
Zend_View_Helper_PaginationControl::setDefaultViewPartial('pagination_param.phtml');
|
|
||||||
$this->view->paginator=$paginator;
|
|
||||||
}
|
|
||||||
function searchAction()
|
|
||||||
{
|
|
||||||
$key=$this->_request->getParam('q');
|
|
||||||
$source=$this->_request->getParam('searchsource');
|
|
||||||
if(preg_match("/\"|'|<|>/",$key))
|
|
||||||
{
|
|
||||||
$data=array('<'=>'<','>'=>'>', "\'"=>'’', "\""=>'”');
|
|
||||||
|
|
||||||
$patterns = array();
|
function userAction()
|
||||||
$replacements = array();
|
{
|
||||||
|
$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 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 westplanAction()
|
||||||
|
{
|
||||||
|
$sql="select distinct array_to_string(array(select author from knl_author t where t.item_id=c.item_id order by place asc),'; ') as author,c.title,c.publisher,c.ts_created,c.ts_issued,c.item_id,c.url from knl_article c where c.url <>'' order by ts_created desc";
|
||||||
|
$sth = $this->db->prepare($sql);
|
||||||
|
$sth->execute();
|
||||||
|
$rows = $sth->fetchAll();
|
||||||
|
$paginator = Zend_Paginator::factory($rows);
|
||||||
|
$paginator->setCurrentPageNumber($this->_getParam('page'));
|
||||||
|
$paginator->setItemCountPerPage(10);
|
||||||
|
$paginator->setView($this->view);
|
||||||
|
Zend_View_Helper_PaginationControl::setDefaultViewPartial('pagination_param.phtml');
|
||||||
|
$this->view->paginator=$paginator;
|
||||||
|
}
|
||||||
|
|
||||||
|
function searchAction()
|
||||||
|
{
|
||||||
|
$key=$this->_request->getParam('q');
|
||||||
|
$author = (int)$this->_request->getParam('author');
|
||||||
|
$place = (int)$this->_request->getParam('place');
|
||||||
|
$source=$this->_request->getParam('searchsource');
|
||||||
|
if(preg_match("/\"|'|<|>/",$key))
|
||||||
|
{
|
||||||
|
$data=array('<'=>'<','>'=>'>', "\'"=>'’', "\""=>'”');
|
||||||
|
$patterns = array();
|
||||||
|
$replacements = array();
|
||||||
foreach($data as $k=>$v)
|
foreach($data as $k=>$v)
|
||||||
{
|
{
|
||||||
$patterns[]='/'.$k.'/i';
|
$patterns[]='/'.$k.'/i';
|
||||||
|
@ -86,39 +112,44 @@ class KnowledgeController extends Zend_Controller_Action
|
||||||
$key=preg_replace($patterns, $replacements, $key);
|
$key=preg_replace($patterns, $replacements, $key);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!empty($key) && $source=='datasource') {
|
if (!empty($key)) {
|
||||||
$search=new SimpleSearch($key);
|
$search=new SimpleSearch($key);
|
||||||
$where=$search->sql_expr(array("reference"));
|
$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 = $this->db->prepare($sql);
|
||||||
$sth->execute();
|
$sth->execute();
|
||||||
$rows = $sth->fetchAll();
|
$rows = $sth->fetchAll();
|
||||||
$paginator = Zend_Paginator::factory($rows);
|
$paginator = Zend_Paginator::factory($rows);
|
||||||
$paginator->setCurrentPageNumber($this->_getParam('page'));
|
$paginator->setCurrentPageNumber($this->_getParam('page'));
|
||||||
$paginator->setItemCountPerPage(10);
|
$paginator->setItemCountPerPage(10);
|
||||||
$paginator->setView($this->view);
|
$paginator->setView($this->view);
|
||||||
Zend_View_Helper_PaginationControl::setDefaultViewPartial('pagination_param.phtml');
|
Zend_View_Helper_PaginationControl::setDefaultViewPartial('pagination_param.phtml');
|
||||||
$this->view->paginator=$paginator;
|
$this->view->paginator=$paginator;
|
||||||
$this->view->key=$key;
|
$this->view->key=$key;
|
||||||
$this->view->source=$source;
|
$this->view->source=$source;
|
||||||
$this->_helper->viewRenderer('search-data');
|
$this->_helper->viewRenderer('search-data');
|
||||||
}
|
|
||||||
else if (!empty($key) && $source=='westsource') {
|
}
|
||||||
$search=new SimpleSearch($key);
|
|
||||||
$where=$search->sql_expr(array("c.title","a.author"));
|
function paperAction()
|
||||||
$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";
|
{
|
||||||
$sth = $this->db->prepare($sql);
|
$id = (int)$this->_request->getParam('id');
|
||||||
$sth->execute();
|
$sql="select * from reference where id=$id";
|
||||||
$rows = $sth->fetchAll();
|
$sth = $this->db->prepare($sql);
|
||||||
$paginator = Zend_Paginator::factory($rows);
|
$sth->execute();
|
||||||
$paginator->setCurrentPageNumber($this->_getParam('page'));
|
$this->view->paper = $sth->fetch();
|
||||||
$paginator->setItemCountPerPage(10);
|
|
||||||
$paginator->setView($this->view);
|
$sql="select * from ref_author where id=$id order by place";
|
||||||
Zend_View_Helper_PaginationControl::setDefaultViewPartial('pagination_param.phtml');
|
$sth = $this->db->prepare($sql);
|
||||||
$this->view->paginator=$paginator;
|
$sth->execute();
|
||||||
$this->view->key=$key;
|
$this->view->author = $sth->fetchAll();
|
||||||
$this->view->source=$source;
|
|
||||||
//$this->_helper->viewRenderer('search-data');
|
$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();
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
|
@ -314,11 +314,8 @@ class ServiceController extends Zend_Controller_Action
|
||||||
$citation=$row['mcitation'];
|
$citation=$row['mcitation'];
|
||||||
} else if ($row['citation'])
|
} else if ($row['citation'])
|
||||||
{
|
{
|
||||||
if (empty($row['datadoi']))
|
$citation=$row['citation'];
|
||||||
{
|
if (!empty($row['datadoi']) && !strpos($row['citation'],$row['datadoi']))
|
||||||
$citation=$row['citation'];
|
|
||||||
}
|
|
||||||
elseif (!strpos($row['citation'],$row['datadoi']))
|
|
||||||
{
|
{
|
||||||
$citation='<li>文章引用:'.$row['citation'].'</li>';
|
$citation='<li>文章引用:'.$row['citation'].'</li>';
|
||||||
$citation.="<li>数据的引用:";
|
$citation.="<li>数据的引用:";
|
||||||
|
@ -722,11 +719,8 @@ class ServiceController extends Zend_Controller_Action
|
||||||
$cit=$row['mcitation'];
|
$cit=$row['mcitation'];
|
||||||
} else if ($row['citation'])
|
} else if ($row['citation'])
|
||||||
{
|
{
|
||||||
if (empty($row['datadoi']))
|
$cit=$row['citation'];
|
||||||
{
|
if (!empty($row['datadoi']) && !strpos($row['citation'],$row['datadoi']))
|
||||||
$cit=$row['citation'];
|
|
||||||
}
|
|
||||||
elseif (!strpos($row['citation'],$row['datadoi']))
|
|
||||||
{
|
{
|
||||||
$cit='文章引用:'.$row['citation'];
|
$cit='文章引用:'.$row['citation'];
|
||||||
$cit.="\r\n数据的引用:";
|
$cit.="\r\n数据的引用:";
|
||||||
|
@ -1405,7 +1399,7 @@ class ServiceController extends Zend_Controller_Action
|
||||||
|
|
||||||
$pageSize = 10;//每页容量
|
$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
|
right join normalmetadata md on md.uuid=mr.uuid
|
||||||
where mr.refid=$id";
|
where mr.refid=$id";
|
||||||
$pagnation="";
|
$pagnation="";
|
||||||
|
@ -1453,6 +1447,24 @@ class ServiceController extends Zend_Controller_Action
|
||||||
echo '</ul>';
|
echo '</ul>';
|
||||||
echo $pagnation;
|
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(){
|
function tagdatalistAction(){
|
||||||
|
|
||||||
|
@ -1649,6 +1661,8 @@ class ServiceController extends Zend_Controller_Action
|
||||||
$this->_helper->layout->disableLayout();
|
$this->_helper->layout->disableLayout();
|
||||||
$this->_helper->viewRenderer->setNoRender();
|
$this->_helper->viewRenderer->setNoRender();
|
||||||
$uuid=$this->_request->getParam('uuid');
|
$uuid=$this->_request->getParam('uuid');
|
||||||
|
//文献id
|
||||||
|
$id=(int)$this->_request->getParam('id');
|
||||||
$lang=$this->_request->getParam('lang');
|
$lang=$this->_request->getParam('lang');
|
||||||
$ris='';
|
$ris='';
|
||||||
if ($lang=='cn' && !empty($uuid))
|
if ($lang=='cn' && !empty($uuid))
|
||||||
|
@ -1690,6 +1704,10 @@ class ServiceController extends Zend_Controller_Action
|
||||||
$ris.='M3 - doi:'.$row['doi']."\r\n";
|
$ris.='M3 - doi:'.$row['doi']."\r\n";
|
||||||
$ris.='DO - doi:'.$row['doi']."\r\n";
|
$ris.='DO - doi:'.$row['doi']."\r\n";
|
||||||
$ris.='ER -'."\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))
|
if (!empty($ris))
|
||||||
{
|
{
|
||||||
|
@ -1787,6 +1805,98 @@ class ServiceController extends Zend_Controller_Action
|
||||||
public function jsonexit($data){
|
public function jsonexit($data){
|
||||||
$this->getResponse()->setHeader('Content-Type', 'application/json')->appendBody(json_encode($data,JSON_NUMERIC_CHECK));
|
$this->getResponse()->setHeader('Content-Type', 'application/json')->appendBody(json_encode($data,JSON_NUMERIC_CHECK));
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
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 ">
|
<div class="control-group ">
|
||||||
<label class="control-label">工作单位</label>
|
<label class="control-label">工作单位</label>
|
||||||
<div class="controls">
|
<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>
|
</div>
|
||||||
<div class="control-group ">
|
<div class="control-group ">
|
||||||
<label class="control-label">联系地址</label>
|
<label class="control-label">联系地址</label>
|
||||||
<div class="controls">
|
<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>
|
</div>
|
||||||
<div class="control-group ">
|
<div class="control-group ">
|
||||||
|
@ -107,13 +107,13 @@
|
||||||
<div class="control-group ">
|
<div class="control-group ">
|
||||||
<label class="control-label">项目名称</label>
|
<label class="control-label">项目名称</label>
|
||||||
<div class="controls">
|
<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>
|
</div>
|
||||||
<div class="control-group ">
|
<div class="control-group ">
|
||||||
<label class="control-label">项目简介</label>
|
<label class="control-label">项目简介</label>
|
||||||
<div class="controls">
|
<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>
|
</div>
|
||||||
<div class="form-actions">
|
<div class="form-actions">
|
||||||
|
|
|
@ -1,24 +1,55 @@
|
||||||
<?php
|
<?php
|
||||||
$this->headTitle($this->config->title->site);
|
$this->headTitle($this->config->title->site);
|
||||||
$this->headTitle('用户登录');
|
$this->headTitle('用户登录');
|
||||||
$this->headTitle()->setSeparator(' - ');
|
$this->headTitle()->setSeparator(' - ');
|
||||||
$this->headLink()->appendStylesheet('/css/register.css');
|
$this->headLink()->appendStylesheet('/css/register.css');
|
||||||
$this->breadcrumb('<a href="/">首页</a>');
|
$this->breadcrumb('<a href="/">首页</a>');
|
||||||
$this->breadcrumb('<a href="/account/fetchpwd">找回密码</a>');
|
$this->breadcrumb('<a href="/account/fetchpwd">找回密码</a>');
|
||||||
$this->breadcrumb()->setSeparator(' > ');
|
$this->breadcrumb()->setSeparator(' > ');
|
||||||
?>
|
?>
|
||||||
<?php if (!empty($this->messages)) : ?>
|
<div class="row-fluid">
|
||||||
<div id="message">
|
<?php if(!empty($this->error)) { ?>
|
||||||
<?php
|
<?= $this->error ?>
|
||||||
foreach ($this->messages as $info)echo $info;
|
<?php } ?>
|
||||||
?>
|
<form method="post" class="form-horizontal">
|
||||||
</div>
|
<div class="control-group">
|
||||||
<?php endif; ?>
|
<label class="control-label" for="email">E-mail</label>
|
||||||
<?php if ($this->form) : ?>
|
<div class="controls">
|
||||||
<div id="info">
|
<input id="email" type="text" value="" name="email" />
|
||||||
<?php echo $this->form;?>
|
<span class="help-block">请输入注册时填写的Email地址</span>
|
||||||
</div>
|
</div>
|
||||||
<?php endif; ?>
|
</div>
|
||||||
<div id="tool">
|
<div class="control-group">
|
||||||
<a href="/account/login">登录 </a> <a href="/account/register">注册新用户</a>
|
<label class="control-label" for="captcha">验证码</label>
|
||||||
</div>
|
<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 class="nav-header">应用</li>
|
||||||
<li id="Nav-account-dataorder"><a href="/data/order">数据篮</a></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-myfav"><a href="/account/myfav">我的收藏</a></li> -->
|
||||||
|
<!--<li id="Nav-account-application"><a href="/account/application">我的应用</a></li>-->
|
||||||
<li class="nav-header">账户</li>
|
<li class="nav-header">账户</li>
|
||||||
<li id="Nav-account-index"><a href="/account">账户信息</a></li>
|
<li id="Nav-account-index"><a href="/account">账户信息</a></li>
|
||||||
<li id="Nav-account-secure"><a href="/account/secure">安全性</a></li>
|
<li id="Nav-account-secure"><a href="/account/secure">安全性</a></li>
|
||||||
|
|
|
@ -1,19 +1,81 @@
|
||||||
<?php
|
<?php
|
||||||
$this->headTitle($this->config->title->site);
|
$this->headTitle($this->config->title->site);
|
||||||
$this->headTitle('用户注册');
|
$this->headTitle('用户注册');
|
||||||
$this->headTitle()->setSeparator(' - ');
|
$this->headTitle()->setSeparator(' - ');
|
||||||
$this->headLink()->appendStylesheet('/css/register.css');
|
$this->headLink()->appendStylesheet('/css/register.css');
|
||||||
$this->breadcrumb('<a href="/">首页</a>');
|
$this->breadcrumb('<a href="/">首页</a>');
|
||||||
$this->breadcrumb('<a href="/account/register">用户注册</a>');
|
$this->breadcrumb('<a href="/account/register">用户注册</a>');
|
||||||
$this->breadcrumb()->setSeparator(' > ');
|
$this->breadcrumb()->setSeparator(' > ');
|
||||||
?>
|
?>
|
||||||
<div class="row-fluit">
|
<div class="row-fluit">
|
||||||
<div class="span12">
|
<div class="form-login">
|
||||||
<img src="/images/pass_login1.gif" /> 确认服务条款
|
<div class="form-signin-heading">
|
||||||
<img src="/images/pass_pic_arrowhead_2.gif" />
|
<h2>用户注册</h2>
|
||||||
<img src="/images/pass_login2.gif" /> 填写基本信息
|
</div>
|
||||||
<img src="/images/pass_pic_arrowhead_2.gif" />
|
<?php if(empty($this->error)) { ?>
|
||||||
<img src="/images/pass_login3.gif" /> 注册完成
|
<div class="alert alert-info">
|
||||||
<?php echo $this->form;?>
|
请输入身份信息注册系统
|
||||||
</div>
|
</div>
|
||||||
</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)
|
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>用户名:'+data.user+
|
||||||
'</p><p>密码:'+data.passwd+'</p>'
|
'</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);
|
Alert(html);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,81 +8,81 @@ $this->headTitle()->setSeparator(' - ');
|
||||||
.fieldlist ul li:hover{color:#FFF;background:#0088CC;border-radius: 6px 6px 6px 6px;}
|
.fieldlist ul li:hover{color:#FFF;background:#0088CC;border-radius: 6px 6px 6px 6px;}
|
||||||
.fieldlist ul li:hover a{color:#FFF; text-decoration:none;}
|
.fieldlist ul li:hover a{color:#FFF; text-decoration:none;}
|
||||||
.news_list ul li{line-height:24px;}
|
.news_list ul li{line-height:24px;}
|
||||||
</style>
|
</style>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="span12">
|
<div class="span12">
|
||||||
<h4><i class="icon-flag"></i>特色导航</h4>
|
<h4><i class="icon-flag"></i>特色导航</h4>
|
||||||
|
|
||||||
<form method="get" action="/search" id="search" class="form-search">
|
<form method="get" action="/search" id="search" class="form-search">
|
||||||
<div class="input-append">
|
<div class="input-append">
|
||||||
<input type="text" value="" id="q" name="q" class="span2 search-query" placeholder="全文搜索">
|
<input type="text" value="" id="q" name="q" class="span2 search-query" placeholder="全文搜索">
|
||||||
<button type="submit" class="btn"><i class="icon-search"></i>搜索</button>
|
<button type="submit" class="btn"><i class="icon-search"></i>搜索</button>
|
||||||
</div>
|
</div>
|
||||||
<a class="btn" href="/search/advance"><i class="icon-search"></i>高级搜索</a>
|
<a class="btn" href="/search/advance"><i class="icon-search"></i>高级搜索</a>
|
||||||
<a class="btn" href="/data/browse"><i class="icon-reorder"></i>数据列表浏览</a>
|
<a class="btn" href="/data/browse"><i class="icon-reorder"></i>数据列表浏览</a>
|
||||||
<a class="btn" href="/data/onlinelist"><i class="icon-th"></i>在线数据清单</a>
|
<a class="btn" href="/data/onlinelist"><i class="icon-th"></i>在线数据清单</a>
|
||||||
<a class="btn" href="/data/offlinelist"><i class="icon-th"></i>离线数据清单</a>
|
<a class="btn" href="/data/offlinelist"><i class="icon-th"></i>离线数据清单</a>
|
||||||
|
|
||||||
</form>
|
</form>
|
||||||
<ul class="unstyled inline">
|
<ul class="unstyled inline">
|
||||||
<li><a class="btn" href="/data/thumb"><i class="icon-picture"></i>缩略图浏览</a></li>
|
<li><a class="btn" href="/data/thumb"><i class="icon-picture"></i>缩略图浏览</a></li>
|
||||||
<li><a class="btn" href="/data/timeline"><i class="icon-calendar"></i>时间轴浏览</a></li>
|
<li><a class="btn" href="/data/timeline"><i class="icon-calendar"></i>时间轴浏览</a></li>
|
||||||
<li><a class="btn" href="/data/map"><i class="icon-globe"></i>空间浏览</a></li>
|
<li><a class="btn" href="/data/map"><i class="icon-globe"></i>空间浏览</a></li>
|
||||||
<li><a class="btn" href="/data/timemap"><i class="icon-film"></i>时空浏览</a></li>
|
<li><a class="btn" href="/data/timemap"><i class="icon-film"></i>时空浏览</a></li>
|
||||||
<li><a class="btn" href="/data/organization"><i class="icon-filter"></i>单位浏览</a></li>
|
<li><a class="btn" href="/data/organization"><i class="icon-filter"></i>单位浏览</a></li>
|
||||||
<li><a class="btn" href="/data/fund"><i class="icon-money"></i>项目浏览</a></li>
|
<li><a class="btn" href="/data/fund"><i class="icon-money"></i>项目浏览</a></li>
|
||||||
<li><a class="btn" href="/data/author"><i class="icon-user-md"></i>作者浏览</a></li>
|
<li><a class="btn" href="/data/author"><i class="icon-user-md"></i>作者浏览</a></li>
|
||||||
<li><a class="btn" href="/knowledge"><i class="icon-exchange"></i>文献浏览</a></li>
|
<li><a class="btn" href="/knowledge"><i class="icon-exchange"></i>文献浏览</a></li>
|
||||||
<li><a class="btn" href="/data/doi"><i class="icon-paper-clip"></i>DOI浏览</a></li>
|
<li><a class="btn" href="/data/doi"><i class="icon-paper-clip"></i>DOI浏览</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
<?php
|
<?php
|
||||||
$keytypezh=array('place'=>'地点关键词','theme'=>'主题关键词','discipline'=>'学科关键词','stratum'=>'地层关键词','temporal'=>'时间关键词');
|
$keytypezh=array('place'=>'地点关键词','theme'=>'主题关键词','discipline'=>'学科关键词','stratum'=>'地层关键词','temporal'=>'时间关键词');
|
||||||
$type='theme';
|
$type='theme';
|
||||||
?>
|
?>
|
||||||
<div class="span6">
|
<div class="span6">
|
||||||
<h4><a href="/data/tag/keytype/theme"><i class="icon-tags"></i><?php echo $keytypezh[$type]; ?></a></h4>
|
<h4><a href="/data/tag/keytype/theme"><i class="icon-tags"></i><?php echo $keytypezh[$type]; ?></a></h4>
|
||||||
<ul class="unstyled inline">
|
<ul class="unstyled inline">
|
||||||
<?php foreach($this->keywords[$type] as $cg) : ?>
|
<?php foreach($this->keywords[$type] as $cg) : ?>
|
||||||
<li><a href='/data/tag/<?php echo $cg['keyword']; ?>'><i class="icon-tag"></i><?php echo $cg['keyword']; ?></a><span class="note">(<?php echo $cg['count']; ?>)</span></li>
|
<li><a href='/data/tag/<?php echo $cg['keyword']; ?>'><i class="icon-tag"></i><?php echo $cg['keyword']; ?></a><span class="note">(<?php echo $cg['count']; ?>)</span></li>
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
<?php
|
<?php
|
||||||
$type='discipline';
|
$type='discipline';
|
||||||
?>
|
?>
|
||||||
<div class="span6">
|
<div class="span6">
|
||||||
<h4><a href="/data/tag/keytype/discipline"><i class="icon-tags"></i><?php echo $keytypezh[$type]; ?></a></h4>
|
<h4><a href="/data/tag/keytype/discipline"><i class="icon-tags"></i><?php echo $keytypezh[$type]; ?></a></h4>
|
||||||
<ul class="unstyled inline">
|
<ul class="unstyled inline">
|
||||||
<?php foreach($this->keywords[$type] as $cg) : ?>
|
<?php foreach($this->keywords[$type] as $cg) : ?>
|
||||||
<li><a href='/data/tag/<?php echo $cg['keyword']; ?>'><i class="icon-tag"></i><?php echo $cg['keyword']; ?></a><span class="note">(<?php echo $cg['count']; ?>)</span></li>
|
<li><a href='/data/tag/<?php echo $cg['keyword']; ?>'><i class="icon-tag"></i><?php echo $cg['keyword']; ?></a><span class="note">(<?php echo $cg['count']; ?>)</span></li>
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<?php
|
<?php
|
||||||
$type='place';
|
$type='place';
|
||||||
?>
|
?>
|
||||||
<div class="span6">
|
<div class="span6">
|
||||||
<h4><a href="/data/tag/keytype/place"><i class="icon-tags"></i><?php echo $keytypezh[$type]; ?></a></h4>
|
<h4><a href="/data/tag/keytype/place"><i class="icon-tags"></i><?php echo $keytypezh[$type]; ?></a></h4>
|
||||||
<ul class="unstyled inline">
|
<ul class="unstyled inline">
|
||||||
<?php foreach($this->keywords[$type] as $cg) : ?>
|
<?php foreach($this->keywords[$type] as $cg) : ?>
|
||||||
<li><a href='/data/tag/<?php echo $cg['keyword']; ?>'><i class="icon-tag"></i><?php echo $cg['keyword']; ?></a><span class="note">(<?php echo $cg['count']; ?>)</span></li>
|
<li><a href='/data/tag/<?php echo $cg['keyword']; ?>'><i class="icon-tag"></i><?php echo $cg['keyword']; ?></a><span class="note">(<?php echo $cg['count']; ?>)</span></li>
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
<?php
|
<?php
|
||||||
$type='temporal';
|
$type='temporal';
|
||||||
?>
|
?>
|
||||||
<div class="span6">
|
<div class="span6">
|
||||||
<h4><a href="/data/tag/keytype/temporal"><i class="icon-tags"></i><?php echo $keytypezh[$type]; ?></a></h4>
|
<h4><a href="/data/tag/keytype/temporal"><i class="icon-tags"></i><?php echo $keytypezh[$type]; ?></a></h4>
|
||||||
<ul class="unstyled inline">
|
<ul class="unstyled inline">
|
||||||
<?php foreach($this->keywords[$type] as $cg) : ?>
|
<?php foreach($this->keywords[$type] as $cg) : ?>
|
||||||
<li><a href='/data/tag/<?php echo $cg['keyword']; ?>'><i class="icon-tag"></i><?php echo $cg['keyword']; ?></a><span class="note">(<?php echo $cg['count']; ?>)</span></li>
|
<li><a href='/data/tag/<?php echo $cg['keyword']; ?>'><i class="icon-tag"></i><?php echo $cg['keyword']; ?></a><span class="note">(<?php echo $cg['count']; ?>)</span></li>
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="span6">
|
<div class="span6">
|
||||||
|
@ -94,7 +94,7 @@ $this->headTitle()->setSeparator(' - ');
|
||||||
<li><a href='/data/category/code/<?php echo $cg['code']; ?>'><i class="icon-th-large"></i><?php (empty($cg['name_zh']))?print($cg['name']):print($cg['name_zh']); ?></a><span class="note">(<?php echo $cg['count']; ?>)</span></li>
|
<li><a href='/data/category/code/<?php echo $cg['code']; ?>'><i class="icon-th-large"></i><?php (empty($cg['name_zh']))?print($cg['name']):print($cg['name_zh']); ?></a><span class="note">(<?php echo $cg['count']; ?>)</span></li>
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
</ul></fieldset>
|
</ul></fieldset>
|
||||||
</div>
|
</div>
|
||||||
<h4><img src="/images/Project24x24_24-bit.png" align="absmiddle" /> 数据服务</h4>
|
<h4><img src="/images/Project24x24_24-bit.png" align="absmiddle" /> 数据服务</h4>
|
||||||
<div class="items">
|
<div class="items">
|
||||||
<div class="item">
|
<div class="item">
|
||||||
|
@ -102,6 +102,7 @@ $this->headTitle()->setSeparator(' - ');
|
||||||
<li>- <a href="/data/offlineapp">离线数据服务记录(最近20个)</a></li>
|
<li>- <a href="/data/offlineapp">离线数据服务记录(最近20个)</a></li>
|
||||||
<li>- <a href="/data/request">如何从数据中心申请数据</a></li>
|
<li>- <a href="/data/request">如何从数据中心申请数据</a></li>
|
||||||
<li>- <a href="/data/submit">如何在数据中心发布数据</a></li>
|
<li>- <a href="/data/submit">如何在数据中心发布数据</a></li>
|
||||||
|
<li>- <a href="/visual">数据可视化</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
|
@ -19,6 +19,7 @@ h3.gs_rt{font-size:110%;}
|
||||||
#file-list li li:hover {background-color: #dedede;}
|
#file-list li li:hover {background-color: #dedede;}
|
||||||
#file-list li li li:hover {background-color: #eeeeee;}
|
#file-list li li li:hover {background-color: #eeeeee;}
|
||||||
</style>
|
</style>
|
||||||
|
<?= $this->render('breadcrumbs.phtml'); ?>
|
||||||
<?php $md=$this->metadata;if ($md):?>
|
<?php $md=$this->metadata;if ($md):?>
|
||||||
<h3><?php echo $this->escape($md->title);
|
<h3><?php echo $this->escape($md->title);
|
||||||
if ($md->title_en) echo '<br />'.$this->escape($md->title_en);?>
|
if ($md->title_en) echo '<br />'.$this->escape($md->title_en);?>
|
||||||
|
@ -32,7 +33,26 @@ if ($md->title_en) echo '<br />'.$this->escape($md->title_en);?>
|
||||||
<?php echo str_replace(array("\r\n", "\n", "\r"),'</p><p>',$md->description);?>
|
<?php echo str_replace(array("\r\n", "\n", "\r"),'</p><p>',$md->description);?>
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
<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) : ?>
|
<?php if ($md->citation) : ?>
|
||||||
<hr />
|
<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>
|
<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>
|
||||||
|
@ -46,29 +66,63 @@ if ($md->title_en) echo '<br />'.$this->escape($md->title_en);?>
|
||||||
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 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.']';
|
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>
|
?> (下载引用:<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) : ?>
|
<?php endif; endif; if ($this->ref) : ?>
|
||||||
<hr />
|
<hr />
|
||||||
<h4><i class="icon-eye-open text-success"></i>建议参考文献</h4>
|
<h4><i class="icon-eye-open text-success"></i>相关文献(作者推荐)</h4>
|
||||||
<ol>
|
<ol>
|
||||||
<?php foreach($this->ref as $ref) :
|
<?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->link))
|
||||||
echo '<li>'.$ref->reference.'</li>';
|
{
|
||||||
else
|
if(!empty($ref->attid))
|
||||||
echo '<li>'.$ref->reference.' <a href="'.$ref->link.'"><i class="icon-download text-success"></i>下载</a></li>';
|
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;
|
endforeach;
|
||||||
?>
|
?>
|
||||||
</ol>
|
</ol>
|
||||||
<?php endif; ?>
|
<?php endif; if ($this->themeref) :?>
|
||||||
<?php if ($this->userref) : ?>
|
|
||||||
<hr />
|
<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>
|
<ol>
|
||||||
<?php foreach($this->userref as $ref) :
|
<?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->link))
|
||||||
echo '<li>'.$ref->reference.'</li>';
|
{
|
||||||
else
|
if(!empty($ref->attid))
|
||||||
echo '<li>'.$ref->reference.' <a href="'.$ref->link.'"><i class="icon-download text-success"></i>下载</a></li>';
|
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;
|
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>
|
</ol>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
@ -101,7 +155,7 @@ if ($md->title_en) echo '<br />'.$this->escape($md->title_en);?>
|
||||||
<?php if(!empty($this->fund)) : ?>
|
<?php if(!empty($this->fund)) : ?>
|
||||||
<ul>
|
<ul>
|
||||||
<?php foreach($this->fund as $k=>$v) : ?>
|
<?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; ?>
|
<?php endforeach; ?>
|
||||||
</ul>
|
</ul>
|
||||||
<?php elseif(!empty($md->suppinfo)) : ?>
|
<?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(' > ');
|
$this->breadcrumb()->setSeparator(' > ');
|
||||||
?>
|
?>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="span3">
|
<div class="span2">
|
||||||
<?= $this->partial('glacier/navi.phtml'); ?>
|
<?= $this->partial('glacier/navi.phtml'); ?>
|
||||||
</div>
|
</div>
|
||||||
<div class="span9">
|
<div class="span10">
|
||||||
<?php echo $this->page->getNavigation(); ?>
|
<?php echo $this->page->getNavigation(); ?>
|
||||||
<hr />
|
<hr />
|
||||||
<div id="mdlist">
|
<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($this->config->title->data);
|
||||||
$this->headTitle()->setSeparator(' - ');
|
$this->headTitle()->setSeparator(' - ');
|
||||||
$this->headLink()->appendStylesheet('/css/water.css');
|
$this->headLink()->appendStylesheet('/css/water.css');
|
||||||
$this->breadcrumb('<a href="/">首页</a>');
|
$this->nav[] = array('link'=>"/glacier",'title'=>$this->config->title->glacier);
|
||||||
$this->breadcrumb('<a href="/data">'.$this->config->title->data.'</a>');
|
|
||||||
$this->breadcrumb($this->config->title->glacier);
|
|
||||||
$this->breadcrumb()->setSeparator(' > ');
|
|
||||||
?>
|
?>
|
||||||
|
<?= $this->render('breadcrumbs.phtml'); ?>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="span3">
|
<div class="span2">
|
||||||
<?= $this->partial('glacier/navi.phtml'); ?>
|
<?= $this->partial('glacier/navi.phtml'); ?>
|
||||||
</div>
|
</div>
|
||||||
<div class="span9">
|
|
||||||
|
<div class="span10">
|
||||||
<div id="intro">
|
<div id="intro">
|
||||||
<h1>“中国冰川资源及其变化调查”项目简介</h1>
|
<h1><?php if(!empty($this->info['title'])) echo $this->info['title']; ?></h1>
|
||||||
<p>
|
<table>
|
||||||
冰川是最敏感、最直接、最易于辩识、长纪录、高分辨的气候变化信息指示器和储存体,冰川变化信息是全球变化中的重要基础性资源。我国是中、低纬度山 地冰川面积最多的国家(占52%),是两极冰盖之外最重要的冰川集结地,冰川变化信息的挖掘、调查、监测、编目是十分重要的基础性工作。
|
<tr><td><?php if(!empty($this->info['body'])) echo $this->info['body'];?></td></tr>
|
||||||
</p>
|
</table>
|
||||||
<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>
|
|
||||||
</div>
|
</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>
|
||||||
</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>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
</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-group heihe-accordion-title">
|
||||||
<div class="accordion-heading" id="Nav-glacier-thumb">
|
<div class="accordion-heading" id="Nav-glacier-thumb">
|
||||||
<a class="accordion-toggle" href="/glacier/thumb">
|
<a class="accordion-toggle" href="/glacier/thumb">
|
||||||
|
@ -108,10 +101,8 @@
|
||||||
</div>
|
</div>
|
||||||
<!--<li><a href="/glacier/document">项目文档</a></li>-->
|
<!--<li><a href="/glacier/document">项目文档</a></li>-->
|
||||||
<!--<li><a href="/glacier/list">数据列表</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">
|
<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">
|
<input type="hidden" name="submit" value="submit">
|
||||||
</form>
|
</form>
|
||||||
<script>
|
<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('<a href="/glacier/">'.$this->config->title->glacier.'</a>');
|
||||||
$this->breadcrumb('快速搜索');
|
$this->breadcrumb('快速搜索');
|
||||||
$this->breadcrumb()->setSeparator(' > ');
|
$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='row'>
|
||||||
<div class='span3'>
|
<div class='span2'>
|
||||||
<?= $this->partial('glacier/navi.phtml',array('key'=>$this->key)); ?>
|
<?= $this->partial('glacier/navi.phtml',array('key'=>$this->key)); ?>
|
||||||
</div>
|
</div>
|
||||||
<div class='span9'>
|
<div class='span10'>
|
||||||
<div><?= $this->breadcrumb() ?> </div>
|
|
||||||
<?php if (!empty($this->metadata)) : ?>
|
<?php if (!empty($this->metadata)) : ?>
|
||||||
<?php echo $this->page->getNavigation(); ?>
|
<?php echo $this->page->getNavigation(); ?>
|
||||||
<hr />
|
<hr />
|
||||||
|
|
|
@ -4,23 +4,21 @@ $this->headTitle($this->config->title->data);
|
||||||
if (!empty($this->codename)) $this->headTitle($this->codename);
|
if (!empty($this->codename)) $this->headTitle($this->codename);
|
||||||
$this->headTitle()->setSeparator(' - ');
|
$this->headTitle()->setSeparator(' - ');
|
||||||
$this->headLink()->appendStylesheet('/css/water.css');
|
$this->headLink()->appendStylesheet('/css/water.css');
|
||||||
$this->breadcrumb('<a href="/">首页</a>');
|
$this->nav[] = array('link'=>"/glacier/",'title'=>$this->config->title->glacier);
|
||||||
$this->breadcrumb('<a href="/data">'.$this->config->title->data.'</a>');
|
$this->nav[] = array('link'=>"/glacier/tag",'title'=>'关键词浏览');
|
||||||
$this->breadcrumb('<a href="/glacier/">'.$this->config->title->glacier.'</a>');
|
|
||||||
$this->breadcrumb('关键词导航'.(($this->codename)?':'.$this->codename:''));
|
|
||||||
$this->breadcrumb()->setSeparator(' > ');
|
|
||||||
?>
|
?>
|
||||||
|
<?= $this->render('breadcrumbs.phtml'); ?>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="span3">
|
<div class="span2">
|
||||||
<?= $this->partial('glacier/navi.phtml'); ?>
|
<?= $this->partial('glacier/navi.phtml'); ?>
|
||||||
</div>
|
</div>
|
||||||
<div class="span9">
|
<div class="span10">
|
||||||
<?php if (!empty($this->metadata)) : ?>
|
<?php if (!empty($this->metadata)) : ?>
|
||||||
<div id='mdlist'>
|
<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(); ?>
|
<?php echo $this->page->getNavigation(); ?>
|
||||||
<hr />
|
<hr />
|
||||||
<div id="mdlist">
|
<div class="md-list">
|
||||||
<ol start="<?php echo $this->offset; ?>">
|
<ol start="<?php echo $this->offset; ?>">
|
||||||
<?php foreach($this->metadata as $md) : ?>
|
<?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>
|
<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>
|
</div>
|
||||||
<?php else : ?>
|
<?php else : ?>
|
||||||
|
|
||||||
<div id='links'>
|
<div>
|
||||||
<?php
|
<?php
|
||||||
$keytypezh=array('place'=>'地点关键词','theme'=>'主题关键词','discipline'=>'学科关键词','stratum'=>'地层关键词','temporal'=>'时间关键词');
|
$keytypezh=array('place'=>'地点关键词','theme'=>'主题关键词','discipline'=>'学科关键词','stratum'=>'地层关键词','temporal'=>'时间关键词');
|
||||||
foreach($this->keywords as $type=>$kcg) :
|
$type='';
|
||||||
if (is_array($kcg) && count($kcg)>0 ) :
|
foreach($this->keywords as $cg) :
|
||||||
?>
|
if ($type!=$cg['keytype']) :
|
||||||
<fieldset><legend><?php echo $keytypezh[$type]; ?></legend>
|
if ($type!='') : ?>
|
||||||
<ul>
|
</ul>
|
||||||
<?php foreach($kcg as $cg) : ?>
|
<?php endif;
|
||||||
<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>
|
$type=$cg['keytype'];
|
||||||
<?php endforeach; ?>
|
?>
|
||||||
|
<h4><a href="/glacier/tag/keytype/<?php echo $type; ?>"><?php echo $keytypezh[$type]; ?></a>
|
||||||
</ul>
|
<?php if ($this->keytype) : ?><a class="pull-right" href="/heihe/tag"><i class="icon-tags"></i>全部关键词</a> <?php endif; ?></h4>
|
||||||
</fieldset>
|
<ul class="inline">
|
||||||
<?php endif;endforeach; ?>
|
<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>
|
||||||
</div>
|
<?php else : ?>
|
||||||
</div>
|
<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; ?>
|
<?php endif; ?>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
|
@ -1,40 +1,51 @@
|
||||||
<?php
|
<?php
|
||||||
$this->headTitle($this->config->title->site);
|
$this->headTitle($this->config->title->site);
|
||||||
$this->headTitle($this->config->title->data);
|
$this->headTitle($this->config->title->data);
|
||||||
$this->headTitle('全部浏览');
|
$this->headTitle('缩略图浏览');
|
||||||
$this->headTitle()->setSeparator(' - ');
|
$this->headTitle()->setSeparator(' - ');
|
||||||
$this->headLink()->appendStylesheet('/css/water.css');
|
$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->breadcrumb()->setSeparator(' > ');
|
||||||
$this->theme->AppendPlus($this,'colorbox');
|
$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="row">
|
||||||
<div class="span3">
|
<div class="span2">
|
||||||
<?= $this->partial('glacier/navi.phtml'); ?>
|
<?= $this->partial('glacier/navi.phtml'); ?>
|
||||||
</div>
|
</div>
|
||||||
<div class="span9">
|
<div class="span10">
|
||||||
<?php echo $this->page->getNavigation(); ?>
|
<?php echo $this->page->getNavigation(); ?>
|
||||||
<hr />
|
<hr />
|
||||||
<div id="mdlist">
|
<div>
|
||||||
|
<ul class="thumb water-thumb unstyled" id="container">
|
||||||
<?php foreach($this->metadata as $md) : ?>
|
<?php foreach($this->metadata as $md) : ?>
|
||||||
<div class="thumb">
|
<li class="items">
|
||||||
|
<h4><a href="/glacier/view/uuid/<?php echo $md['uuid'];?>"><?= $this->escape($md['title']);?></a></h4>
|
||||||
<div class="thumbtitle">
|
<a href="/service/bigthumb/uuid/<?= $md['uuid'] ?>" class="thumbnail colorbox">
|
||||||
<a href="/glacier/view/uuid/<?php echo $md['uuid'];?>"><?php echo $this->escape($md['title']); ?> </a>
|
<img src="/service/thumb/id/<?php echo $md['id'];?>" alt="">
|
||||||
</div>
|
</a>
|
||||||
<a class="colorbox" href="/service/bigthumb/id/<?php echo $md['id'];?>" title="<?php echo $this->escape($md['title']); ?>">
|
<div class="caption">
|
||||||
<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']);?>" />
|
<p>
|
||||||
</a>
|
<?php echo mb_strlen($md['description'])>120?$this->escape(mb_substr($md['description'],0,120,'UTF-8').'...'):$this->escape($md['description']);?>
|
||||||
</div>
|
</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; ?>
|
<?php endforeach; ?>
|
||||||
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
<hr style="clear:left;"/>
|
<hr class="clearfix" />
|
||||||
<?php echo $this->page->getNavigation(); ?>
|
<?php echo $this->page->getNavigation(); ?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<script type="text/javascript" charset="utf-8">
|
<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>
|
</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_var.js');
|
||||||
$this->headScript()->appendFile('/js/timeline_js/timeline-api.js');
|
$this->headScript()->appendFile('/js/timeline_js/timeline-api.js');
|
||||||
$this->headScript()->appendFile('/js/glaciertime.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="row">
|
||||||
<div class="span3">
|
<div class="span2">
|
||||||
<?= $this->partial('glacier/navi.phtml'); ?>
|
<?= $this->partial('glacier/navi.phtml'); ?>
|
||||||
</div>
|
</div>
|
||||||
<div class="span9">
|
<div class="span10">
|
||||||
<div id="tl" class="timeline-default" style="height:600px;"> </div>
|
<div id="tl" class="timeline-default" style="height:600px;"> </div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
|
@ -14,16 +14,18 @@ $this->theme->AppendPlus($this,'colorbox');
|
||||||
$this->headScript()->appendFile('/js/timeline_var.js');
|
$this->headScript()->appendFile('/js/timeline_var.js');
|
||||||
$this->headScript()->appendFile('/js/timeline_js/timeline-api.js');
|
$this->headScript()->appendFile('/js/timeline_js/timeline-api.js');
|
||||||
$this->headScript()->appendFile('/js/timemap.2.0.1/lib/mxn/mxn.js?(googlev3)');
|
$this->headScript()->appendFile('/js/timemap.2.0.1/lib/mxn/mxn.js?(googlev3)');
|
||||||
$this->headScript()->appendFile('/js/timemap.2.0.1/timemap.pack.js');
|
$this->headScript()->appendFile('/js/timemap.2.0.1/timemap.pack.js');
|
||||||
|
$this->nav[] = array('link'=>"/glacier/",'title'=>$this->config->title->glacier);
|
||||||
|
$this->nav[] = array('link'=>"/glaicer/timemap",'title'=>'时空导航');
|
||||||
?>
|
?>
|
||||||
<style>
|
<style>
|
||||||
img{max-width:none}
|
img{max-width:none}
|
||||||
</style>
|
</style>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="span3">
|
<div class="span2">
|
||||||
<?= $this->partial('glacier/navi.phtml'); ?>
|
<?= $this->partial('glacier/navi.phtml'); ?>
|
||||||
</div>
|
</div>
|
||||||
<div class="span9">
|
<div class="span10">
|
||||||
<div><?= $this->breadcrumb() ?> </div>
|
<div><?= $this->breadcrumb() ?> </div>
|
||||||
<div id="timemap">
|
<div id="timemap">
|
||||||
<div id="map" style="height:500px;width:40%;float:right;"></div>
|
<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,32 +4,34 @@
|
||||||
$this->headTitle($this->metadata->title);
|
$this->headTitle($this->metadata->title);
|
||||||
$this->headTitle()->setSeparator(' - ');
|
$this->headTitle()->setSeparator(' - ');
|
||||||
$this->headLink()->appendStylesheet('/css/water.css');
|
$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,'google_map_v3');
|
||||||
$this->theme->AppendPlus($this,'colorbox');
|
$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>
|
<style>
|
||||||
h3.gs_rt{font-size:110%;}
|
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>
|
</style>
|
||||||
|
<?= $this->render('breadcrumbs.phtml'); ?>
|
||||||
<?php $md=$this->metadata;if ($md):?>
|
<?php $md=$this->metadata;if ($md):?>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="span3">
|
<div class="span2">
|
||||||
<?= $this->partial('glacier/navi.phtml'); ?>
|
<?= $this->partial('glacier/navi.phtml'); ?>
|
||||||
</div>
|
</div>
|
||||||
<div class="span9">
|
<div class="span10">
|
||||||
<div><?= $this->breadcrumb() ?> </div>
|
|
||||||
<h3><?php echo $this->escape($md->title);
|
<h3><?php echo $this->escape($md->title);
|
||||||
if ($md->title_en) echo '<br />'.$this->escape($md->title_en);?>
|
if ($md->title_en) echo '<br />'.$this->escape($md->title_en);?>
|
||||||
</h3>
|
</h3>
|
||||||
<hr />
|
<hr />
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="span6">
|
<div class="span6">
|
||||||
<div>
|
<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>
|
<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;">
|
<p style="word-break:break-all;word-wrap:break-word;overflow:hidden;">
|
||||||
|
@ -37,21 +39,11 @@ if ($md->title_en) echo '<br />'.$this->escape($md->title_en);?>
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
<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 />
|
<hr />
|
||||||
<h4><i class="icon-eye-open text-success"></i>建议参考文献</h4>
|
<h4><i class="icon-eye-open text-success"></i>本数据要求的多篇文献引用</h4>
|
||||||
<ol>
|
<ol>
|
||||||
<?php foreach($this->ref as $ref) :
|
<?php foreach($this->mcitation as $ref) :
|
||||||
if (empty($ref->link))
|
if (empty($ref->link))
|
||||||
echo '<li>'.$ref->reference.'</li>';
|
echo '<li>'.$ref->reference.'</li>';
|
||||||
else
|
else
|
||||||
|
@ -59,17 +51,78 @@ if ($md->title_en) echo '<br />'.$this->escape($md->title_en);?>
|
||||||
endforeach;
|
endforeach;
|
||||||
?>
|
?>
|
||||||
</ol>
|
</ol>
|
||||||
<?php endif; ?>
|
<?php else: ?>
|
||||||
<?php if ($this->userref) : ?>
|
|
||||||
|
<?php if ($md->citation) : ?>
|
||||||
<hr />
|
<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>
|
<ol>
|
||||||
<?php foreach($this->userref as $ref) :
|
<?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->link))
|
||||||
echo '<li>'.$ref->reference.'</li>';
|
{
|
||||||
else
|
if(!empty($ref->attid))
|
||||||
echo '<li>'.$ref->reference.' <a href="'.$ref->link.'"><i class="icon-download text-success"></i>下载</a></li>';
|
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;
|
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>
|
</ol>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
@ -83,8 +136,8 @@ if ($md->title_en) echo '<br />'.$this->escape($md->title_en);?>
|
||||||
?>
|
?>
|
||||||
<?php else : ?>
|
<?php else : ?>
|
||||||
<p>为尊重知识产权、保障数据作者的权益、扩展数据中心的服务、评估数据的应用潜力,请数据使用者在使用数据所产生的研究成果中(包括公开发表的论文、论著、数据产品和未公开发表的研究报告、数据产品等成果),明确注明数据来源和数据作者。对于转载(二次或多次发布)的数据,作者还须注明原始数据来源。</p>
|
<p>为尊重知识产权、保障数据作者的权益、扩展数据中心的服务、评估数据的应用潜力,请数据使用者在使用数据所产生的研究成果中(包括公开发表的论文、论著、数据产品和未公开发表的研究报告、数据产品等成果),明确注明数据来源和数据作者。对于转载(二次或多次发布)的数据,作者还须注明原始数据来源。</p>
|
||||||
<p>中文发表的成果参考以下规范注明: 数据来源于国家自然科学基金委员会"中国西部环境与生态科学数据中心"(http://westdc.westgis.ac.cn)</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>英文发表的成果依据以下规范注明: The data set is provided by Cold and Arid Regions Sciences Data Center at Lanzhou (http://westdc.westgis.ac.cn)</p>
|
||||||
</p>
|
</p>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<?php if($this->data_archives){ ?>
|
<?php if($this->data_archives){ ?>
|
||||||
|
@ -97,18 +150,18 @@ if ($md->title_en) echo '<br />'.$this->escape($md->title_en);?>
|
||||||
</ul>
|
</ul>
|
||||||
<hr />
|
<hr />
|
||||||
<?php }?>
|
<?php }?>
|
||||||
<?php if ($md->suppinfo || $this->fund) : ?>
|
<?php if ($md->suppinfo || $this->fund) : ?>
|
||||||
<h4><i class="icon-money text-info"></i>资助项目</h4>
|
<h4><i class="icon-money text-info"></i>资助项目</h4>
|
||||||
<?php if(!empty($this->fund)) : ?>
|
<?php if(!empty($this->fund)) : ?>
|
||||||
<ul>
|
<ul>
|
||||||
<?php foreach($this->fund as $k=>$v) : ?>
|
<?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; ?>
|
<?php endforeach; ?>
|
||||||
</ul>
|
</ul>
|
||||||
<?php elseif(!empty($md->suppinfo)) : ?>
|
<?php elseif(!empty($md->suppinfo)) : ?>
|
||||||
<?php echo '<p>'.str_replace(array("\r\n", "\n", "\r"),'</p><p>',$this->escape($md->suppinfo)).'</p>';?>
|
<?php echo '<p>'.str_replace(array("\r\n", "\n", "\r"),'</p><p>',$this->escape($md->suppinfo)).'</p>';?>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<hr />
|
<hr />
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<?php if ($this->resources) : ?>
|
<?php if ($this->resources) : ?>
|
||||||
<h4><i class="icon-bolt text-warning"></i>相关资源</h4>
|
<h4><i class="icon-bolt text-warning"></i>相关资源</h4>
|
||||||
|
@ -251,7 +304,7 @@ if ($md->title_en) echo '<br />'.$this->escape($md->title_en);?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="span3">
|
<div class="span4">
|
||||||
<ul class="well well-small inline unstyled">
|
<ul class="well well-small inline unstyled">
|
||||||
<li><a href="/data/category"><i class="icon-th text-warning"></i>类别:</a></li>
|
<li><a href="/data/category"><i class="icon-th text-warning"></i>类别:</a></li>
|
||||||
<?php foreach($this->category as $cat): ?>
|
<?php foreach($this->category as $cat): ?>
|
||||||
|
@ -273,19 +326,19 @@ foreach($this->keys as $cg) :
|
||||||
if ($i==0) {
|
if ($i==0) {
|
||||||
?>
|
?>
|
||||||
<ul class="well well-small inline unstyled">
|
<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;
|
endforeach;
|
||||||
?></ul>
|
?></ul>
|
||||||
<?php if ($md->doi) : ?>
|
<?php if ($md->doi) : ?>
|
||||||
<ul class="well well-small inline unstyled"><li><span class="label label-success">数据DOI</span> <?php echo $md->doi; ?></li></ul>
|
<ul class="well well-small inline unstyled"><li><span class="label label-success">数据DOI</span> <?php echo $md->doi; ?></li></ul>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
<hr />
|
<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">
|
<ul class="inline unstyled well">
|
||||||
<?php if ($md->fileformat) : ?>
|
<?php if ($md->fileformat) : ?>
|
||||||
<li><strong>格式:</strong><?php echo $md->fileformat; ?></li>
|
<li><strong>格式:</strong><?php echo $md->fileformat; ?></li>
|
||||||
|
@ -341,10 +394,21 @@ endforeach;
|
||||||
在线下载
|
在线下载
|
||||||
</a>
|
</a>
|
||||||
<?php else: ?>
|
<?php else: ?>
|
||||||
<a href="/data/order/uuid/<?php echo $md->uuid; ?>" class="btn btn-primary btn-large btn-block" title="免费!离线申请此数据(在线数据和离线数据都可申请)">
|
<?php
|
||||||
离线申请
|
if(!empty($this->dataService)) { ?>
|
||||||
</a>
|
<?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; ?>
|
<?php endif;endif; ?>
|
||||||
|
<!--
|
||||||
|
<a href="javascript:void(0);" onclick="method.like('<?php echo $md->uuid; ?>',this)" class="btn btn-block" title="喜欢此数据可以将它放到收藏夹中下次浏览">
|
||||||
|
收藏此数据
|
||||||
|
</a>
|
||||||
|
-->
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
@ -412,7 +476,7 @@ endforeach;
|
||||||
<a class="jiathis_counter_style"></a>
|
<a class="jiathis_counter_style"></a>
|
||||||
</div>
|
</div>
|
||||||
<!-- JiaThis Button END -->
|
<!-- JiaThis Button END -->
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<script src="/js/metadata-view.js"></script>
|
<script src="/js/metadata-view.js"></script>
|
||||||
|
@ -444,6 +508,9 @@ $(function() {
|
||||||
googleSearch('<?php echo $ev;?>');
|
googleSearch('<?php echo $ev;?>');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
$('#show-list').click(function(e) {
|
||||||
|
method.filelist.get($(this).attr('rel'));
|
||||||
|
});
|
||||||
});
|
});
|
||||||
//ajax literature
|
//ajax literature
|
||||||
function literature(page){
|
function literature(page){
|
||||||
|
@ -460,10 +527,6 @@ function recommend(page){
|
||||||
recommend_get(page,'<?= $md->uuid; ?>');
|
recommend_get(page,'<?= $md->uuid; ?>');
|
||||||
}
|
}
|
||||||
|
|
||||||
function getFileList(){
|
|
||||||
getFileList_h('<?php echo $md->uuid;?>');
|
|
||||||
}
|
|
||||||
|
|
||||||
function ajaxpage(page){
|
function ajaxpage(page){
|
||||||
ajaxpage_get(page,'<?= $md->uuid; ?>');
|
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="container">
|
||||||
<div class="masthead">
|
<div class="masthead">
|
||||||
<div class="row banner">
|
<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 class="span6">
|
||||||
|
|
||||||
</div>
|
</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>
|
?> (下载引用:<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) : ?>
|
<?php endif; endif; endif; if ($this->ref) : ?>
|
||||||
<hr />
|
<hr />
|
||||||
<h4><i class="icon-eye-open text-success"></i>建议参考文献</h4>
|
<h4><i class="icon-eye-open text-success"></i>相关文献(作者推荐)</h4>
|
||||||
<ol>
|
<ol>
|
||||||
<?php foreach($this->ref as $ref) :
|
<?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->link))
|
||||||
echo '<li>'.$ref->reference.'</li>';
|
{
|
||||||
else
|
if(!empty($ref->attid))
|
||||||
echo '<li>'.$ref->reference.' <a href="'.$ref->link.'"><i class="icon-download text-success"></i>下载</a></li>';
|
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;
|
endforeach;
|
||||||
?>
|
?>
|
||||||
</ol>
|
</ol>
|
||||||
<?php endif; ?>
|
<?php endif; if ($this->themeref) :?>
|
||||||
<?php if ($this->userref) : ?>
|
|
||||||
<hr />
|
<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>
|
<ol>
|
||||||
<?php foreach($this->userref as $ref) :
|
<?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->link))
|
||||||
echo '<li>'.$ref->reference.'</li>';
|
{
|
||||||
else
|
if(!empty($ref->attid))
|
||||||
echo '<li>'.$ref->reference.' <a href="'.$ref->link.'"><i class="icon-download text-success"></i>下载</a></li>';
|
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;
|
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>
|
</ol>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
@ -124,7 +158,7 @@ if ($md->title_en) echo '<br />'.$this->escape($md->title_en);?>
|
||||||
<?php if(!empty($this->fund)) : ?>
|
<?php if(!empty($this->fund)) : ?>
|
||||||
<ul>
|
<ul>
|
||||||
<?php foreach($this->fund as $k=>$v) : ?>
|
<?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; ?>
|
<?php endforeach; ?>
|
||||||
</ul>
|
</ul>
|
||||||
<?php elseif(!empty($md->suppinfo)) : ?>
|
<?php elseif(!empty($md->suppinfo)) : ?>
|
||||||
|
@ -445,7 +479,7 @@ endforeach;
|
||||||
<a class="jiathis_counter_style"></a>
|
<a class="jiathis_counter_style"></a>
|
||||||
</div>
|
</div>
|
||||||
<!-- JiaThis Button END -->
|
<!-- JiaThis Button END -->
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<script src="/js/metadata-view.js"></script>
|
<script src="/js/metadata-view.js"></script>
|
||||||
|
@ -520,4 +554,4 @@ var bound = {
|
||||||
<p>没有找到对应的元数据。</p>
|
<p>没有找到对应的元数据。</p>
|
||||||
<?php endif;?>
|
<?php endif;?>
|
||||||
</div>
|
</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