将heihedata r3433 作为trunk进行开发
This commit is contained in:
commit
be2b253bd9
|
@ -190,15 +190,15 @@ class Admin_DataController extends Zend_Controller_Action
|
|||
$userid = Zend_Auth::getInstance()->getIdentity()->id;
|
||||
$this->db->query("insert into mdstatus (uuid,status,ts_accepted,userid) select uuid,1,now(),?
|
||||
from geonetworkmetadata gn where uuid not in (select uuid from mdstatus) and uuid=?",array($userid,$uuid));
|
||||
$this->view->msg='成功同步元数据:'.$uuid;
|
||||
$this->view->msg='成功同步元数据:'.$uuid;
|
||||
//update search document
|
||||
$search=new Search();
|
||||
$sql="select * from xunsearch where uuid=?";
|
||||
$sth = $this->db->prepare($sql);
|
||||
$sth = $this->db->prepare($sql);
|
||||
$sth->setFetchMode(Zend_Db::FETCH_ASSOC);
|
||||
$sth->execute(array($uuid));
|
||||
$data = $sth->fetch();
|
||||
$search->update($data);
|
||||
$search->update($data);
|
||||
|
||||
} else $this->view->msg='不存在此元数据:'.$uuid;
|
||||
}
|
||||
|
@ -300,6 +300,8 @@ class Admin_DataController extends Zend_Controller_Action
|
|||
{
|
||||
$sql="delete from metadata where uuid=?";
|
||||
try {
|
||||
$this->db->query("delete from mdstatus where uuid=?",array($delete));
|
||||
$this->db->query("delete from mdauthor where uuid=?",array($delete));
|
||||
$this->db->query($sql,array($delete));
|
||||
$this->messenger->addMessage('提示信息:您已经成功删除该数据。');
|
||||
$search=new Search();
|
||||
|
@ -2170,14 +2172,14 @@ class Admin_DataController extends Zend_Controller_Action
|
|||
left join metadata m on s.uuid=m.uuid WHERE v.id=?";
|
||||
$sth = $this->db->prepare($sql);
|
||||
$sth->execute(array($id));
|
||||
$row = $sth->fetch();
|
||||
$row = $sth->fetch();
|
||||
|
||||
$sql="select * from xunsearch where uuid=?";
|
||||
$sth = $this->db->prepare($sql);
|
||||
$sth->execute(array($row['uuid']));
|
||||
$data_search = $sth->fetch();
|
||||
$data_search = $sth->fetch();
|
||||
$search=new Search();
|
||||
$search->update($data_search);
|
||||
$search->update($data_search);
|
||||
|
||||
if (empty($row)) //无对应记录
|
||||
{
|
||||
|
@ -2333,6 +2335,10 @@ class Admin_DataController extends Zend_Controller_Action
|
|||
}
|
||||
else if ($row['status']==2 || $row['status']==3 || $row['status']==4)//已发送过外审邮件,需由编辑告知变化信息
|
||||
{
|
||||
//同步元数据
|
||||
$iso=new ISO19115();
|
||||
$iso->saveDB($this->db,$row['xml']);
|
||||
|
||||
//email to admin
|
||||
$mail=new WestdcMailer($this->view->config->smtp);
|
||||
$mail->setFrom($this->view->config->service->email,'西部数据中心服务组');
|
||||
|
@ -2377,10 +2383,12 @@ class Admin_DataController extends Zend_Controller_Action
|
|||
}
|
||||
@$mail->send();
|
||||
|
||||
//email to experts, sync to database?
|
||||
//todo!!!
|
||||
//should generate new pdf? or user could not commit a new version when it is in the reviewing process?
|
||||
/*
|
||||
//email to experts
|
||||
$sql="select u.username,u.email from mdexpertreview e left join users u on e.id=u.id where e.status in (0,1) and e.uuid=?";
|
||||
$sth = $this->db->prepare($sql);
|
||||
$sth->execute(array($row['uuid']));
|
||||
$experts = $sth->fetchAll();
|
||||
|
||||
unset($mail);
|
||||
unset($mailtp);
|
||||
$mail=new WestdcMailer($this->view->config->smtp);
|
||||
|
@ -2394,15 +2402,19 @@ class Admin_DataController extends Zend_Controller_Action
|
|||
));
|
||||
$mail->setBodyText($mailtp->getBody());
|
||||
$mail->setSubject($mailtp->getSubject());
|
||||
$filecontent=file_get_contents("http://" . $_SERVER['HTTP_HOST'].'/data/doc/review/1/uuid/'.$uuid);
|
||||
$mail->createAttachment($filecontent,'application/octet-stream',Zend_Mime::DISPOSITION_ATTACHMENT, Zend_Mime::ENCODING_BASE64, $row['title'].'.doc');
|
||||
$filecontent=file_get_contents("http://" . $_SERVER['HTTP_HOST'].'/service/pdf/uuid/'.$uuid);
|
||||
$mail->createAttachment($filecontent,'application/octet-stream',Zend_Mime::DISPOSITION_ATTACHMENT, Zend_Mime::ENCODING_BASE64, $row['title'].'.pdf');
|
||||
if($this->debug==0)
|
||||
{
|
||||
$mail->addTo($user->email);
|
||||
foreach ($experts as $expert) $mail->addTo($expert['email']);
|
||||
$mail->addCc($this->view->config->service->email);
|
||||
}else{
|
||||
$mail->addTo($this->debug_email);
|
||||
}
|
||||
@$mail->send();
|
||||
*/
|
||||
|
||||
$data = array("commited"=>1,"error"=>'该版本已经成功提交,请等待数据中心进一步处理!');
|
||||
$this->jsonexit($data);
|
||||
return true;
|
||||
|
@ -2823,7 +2835,7 @@ class Admin_DataController extends Zend_Controller_Action
|
|||
//查看所有的未提交数据列表
|
||||
else if((empty($ac) && empty($uuid))|| $ac=='list')
|
||||
{
|
||||
$sql = "SELECT (regexp_matches(gn.data,'<resTitle>(.*)</resTitle>'))[1] as title,gn.id,gn.uuid FROM geonetworkmetadata gn
|
||||
$sql = "SELECT (regexp_matches(gn.data,'<resTitle>(.*)</resTitle>'))[1] as title,gn.id,gn.uuid,u.username,u.realname FROM geonetworkmetadata gn left join users u on gn.owner=u.id
|
||||
WHERE gn.uuid not in (select uuid from metadata)
|
||||
order by gn.id desc
|
||||
";
|
||||
|
@ -3324,6 +3336,312 @@ class Admin_DataController extends Zend_Controller_Action
|
|||
|
||||
}//projectsAction()
|
||||
|
||||
public function fundAction()
|
||||
{
|
||||
$this->_helper->layout->setLayout('administry');
|
||||
$ac = $this->_getParam('ac');
|
||||
$submit = $this->_getParam('submit');
|
||||
|
||||
include_once("data/Fund.php");
|
||||
$fund = new Fund($this->db);
|
||||
|
||||
$auth = Zend_Auth::getInstance();
|
||||
if($auth->hasIdentity())
|
||||
{
|
||||
$user = $auth->getIdentity();
|
||||
$uid = $user->id;
|
||||
}
|
||||
|
||||
if($ac=='index' || empty($ac))
|
||||
{
|
||||
$uuid = $this->_getParam('uuid');
|
||||
if(empty($uuid))
|
||||
{
|
||||
$rows = $fund->fetch();
|
||||
$fund->addPaginator($rows,$this->view,$this->_request);
|
||||
}else{
|
||||
include('data/Metadata.php');
|
||||
$md = new Metadata($this->db);
|
||||
$this->view->md = $md->view($uuid);
|
||||
$rows = $fund->fetch($uuid);
|
||||
$fund->addPaginator($rows,$this->view,$this->_request);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
if($ac == "add")
|
||||
{
|
||||
$this->_helper->viewRenderer('fund-add');
|
||||
if(!empty($submit))
|
||||
{
|
||||
$data = $fund->_getParams($this->_request);
|
||||
$data['userid'] = $uid;
|
||||
|
||||
if($fund->add($data) == true)
|
||||
{
|
||||
$this->view->AlertType = "alert-success";
|
||||
$this->view->msg = "添加成功!";
|
||||
$this->view->jump_url = "/admin/data/fund/";
|
||||
return true;
|
||||
}else{
|
||||
$this->view->data = $data;
|
||||
$this->view->error = "添加失败,请重试";
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}//add
|
||||
|
||||
if($ac == "edit")
|
||||
{
|
||||
$this->_helper->viewRenderer('fund-add');
|
||||
$id = $this->_getParam('id');
|
||||
|
||||
if(empty($id))
|
||||
{
|
||||
$this->view->AlertType = "alert-error";
|
||||
$this->view->msg = "参数错误";
|
||||
$this->view->jump_url = "/admin/data/fund/";
|
||||
}
|
||||
|
||||
if(!empty($submit))
|
||||
{
|
||||
$data = $fund->_getParams($this->_request);
|
||||
$data['userid'] = $uid;
|
||||
if($fund->update($data,$id) == true)
|
||||
{
|
||||
$this->view->AlertType = "alert-success";
|
||||
$this->view->msg = "修改成功!";
|
||||
$this->view->jump_url = "/admin/data/fund/";
|
||||
return true;
|
||||
}else{
|
||||
$this->view->data = $data;
|
||||
$this->view->error = "修改失败,请重试";
|
||||
return true;
|
||||
}
|
||||
}else{
|
||||
$this->view->data = $fund->view($id);
|
||||
}
|
||||
return true;
|
||||
}//edit
|
||||
|
||||
if($ac == "del")
|
||||
{
|
||||
$this->_helper->layout->disableLayout();
|
||||
$this->_helper->viewRenderer->setNoRender();
|
||||
|
||||
$id = $this->_getParam('id');
|
||||
|
||||
if(empty($id))
|
||||
{
|
||||
$this->jsonexit(array('error'=>'参数错误'));
|
||||
return true;
|
||||
}
|
||||
|
||||
if($fund->delete($id) == true)
|
||||
{
|
||||
$this->jsonexit(array('success'=>$id));
|
||||
return true;
|
||||
}else{
|
||||
$this->jsonexit(array('error'=>'删除失败'));
|
||||
return true;
|
||||
}
|
||||
|
||||
}//del
|
||||
|
||||
if($ac == "formd")
|
||||
{
|
||||
$uuid = $this->_getParam('uuid');
|
||||
|
||||
if(empty($uuid))
|
||||
{
|
||||
$this->view->AlertType = "alert-error";
|
||||
$this->view->msg = "参数错误";
|
||||
$this->view->jump_url = "/admin/data/fund/";
|
||||
}
|
||||
|
||||
$id = $this->_getParam('id');
|
||||
$order = $this->_getParam('order');
|
||||
|
||||
if(!empty($id))
|
||||
{
|
||||
if($fund->addToMdfund($uuid,$id,$order))
|
||||
{
|
||||
$this->view->AlertType = "alert-success";
|
||||
$this->view->error = "添加成功!可以继续选择并添加";
|
||||
}else{
|
||||
$this->view->AlertType = "alert-error";
|
||||
$this->view->error = "添加失败!该数据可能已被添加";
|
||||
}
|
||||
}
|
||||
|
||||
$mfid = $this->_getParam('mfid');
|
||||
|
||||
if(!empty($mfid))
|
||||
{
|
||||
if($fund->changeorder($mfid,$order))
|
||||
{
|
||||
$this->view->AlertType = "alert-success";
|
||||
$this->view->error = "排序修改成功!";
|
||||
}else{
|
||||
$this->view->AlertType = "alert-error";
|
||||
$this->view->error = "排序修改失败!";
|
||||
}
|
||||
$rows = $fund->fetch($uuid);
|
||||
}else{
|
||||
$this->view->ct = "ct";
|
||||
$rows = $fund->fetch($uuid,false);
|
||||
}
|
||||
|
||||
include('data/Metadata.php');
|
||||
$md = new Metadata($this->db);
|
||||
$this->view->md = $md->view($uuid);
|
||||
|
||||
$fund->addPaginator($rows,$this->view,$this->_request);
|
||||
|
||||
return true;
|
||||
}//formd
|
||||
|
||||
if($ac == "mdfunddel")
|
||||
{
|
||||
$this->_helper->layout->disableLayout();
|
||||
$this->_helper->viewRenderer->setNoRender();
|
||||
|
||||
$id = $this->_getParam('id');
|
||||
|
||||
if(empty($id))
|
||||
{
|
||||
$this->jsonexit(array('error'=>'参数错误'));
|
||||
return true;
|
||||
}
|
||||
|
||||
if($fund->mfdelete($id) == true)
|
||||
{
|
||||
$this->jsonexit(array('success'=>$id));
|
||||
return true;
|
||||
}else{
|
||||
$this->jsonexit(array('error'=>'删除失败'));
|
||||
return true;
|
||||
}
|
||||
}//mdfunddel
|
||||
|
||||
}//fund
|
||||
|
||||
public function doiAction()
|
||||
{
|
||||
$this->_helper->layout->setLayout('administry');
|
||||
$ac = $this->_getParam('ac');
|
||||
$submit = $this->_getParam('submit');
|
||||
$uuid = $this->_getParam('uuid');
|
||||
|
||||
include_once("data/Doi.php");
|
||||
$doi = new Doi($this->db);
|
||||
include_once("helper/view.php");
|
||||
|
||||
if( empty($ac) || $ac == "index")
|
||||
{
|
||||
if(empty($uuid))
|
||||
{
|
||||
$rows = $doi->fetch();
|
||||
view::addPaginator($rows,$this->view,$this->_request);
|
||||
}else{
|
||||
$this->_redirect('/admin/data/doi/ac/edit/?uuid='.$uuid);
|
||||
return true;
|
||||
}
|
||||
return true;
|
||||
}//index
|
||||
|
||||
if($ac == "add")
|
||||
{
|
||||
$this->_helper->viewRenderer('doi-add');
|
||||
|
||||
}//add
|
||||
|
||||
if($ac == "edit")
|
||||
{
|
||||
$this->_helper->viewRenderer('doi-add');
|
||||
$id = $this->_getParam('id');
|
||||
if(empty($uuid) && empty($id))
|
||||
{
|
||||
view::Msg('alert-error',"参数错误",-1);
|
||||
return false;
|
||||
}
|
||||
|
||||
if(empty($submit)){
|
||||
if(!empty($uuid))
|
||||
{
|
||||
$this->view->uuid = $uuid;
|
||||
$this->view->data = $doi->view($uuid);
|
||||
if(empty($this->view->data))
|
||||
{
|
||||
include('data/Metadata.php');
|
||||
$md = new Metadata($this->db);
|
||||
$metadata = $md->view($uuid);
|
||||
$this->view->data = array(
|
||||
'uuid'=>$uuid,
|
||||
'title'=>$metadata['title'],
|
||||
'doi'=>$metadata['doi'],
|
||||
'url'=>"http://" . $_SERVER['HTTP_HOST'].'/data/'.$uuid,
|
||||
'publisher'=>view::User('realname'),
|
||||
'title_en'=>$metadata['title_en'],
|
||||
'publisher_en'=>view::User('realname'),
|
||||
);
|
||||
}else{
|
||||
$this->view->data['info'] = $doi->data_process_out($this->view->data);
|
||||
}
|
||||
}else{
|
||||
$this->view->data = $doi->view($uuid);
|
||||
$this->view->data['info'] = $doi->data_process_out($this->view->data);
|
||||
}
|
||||
}else{
|
||||
$data = $doi->_getParams($this->_request);
|
||||
$this->view->data = $data;
|
||||
$info = $doi->checkinfo($data['info']);
|
||||
if(!is_array($info)){
|
||||
$this->view->error = view::Error('alert-error',$info,-1);
|
||||
return true;
|
||||
}else{
|
||||
$data['info'] = $info;
|
||||
$data['info'] = $doi->sksort($data['info'],"order",SORT_DESC);
|
||||
}
|
||||
$state = $doi->update($data,$uuid);
|
||||
if($state)
|
||||
{
|
||||
$this->view->msg = view::Msg('alert-success',"修改成功!",'/admin/data/doi/uuid/'.$uuid);
|
||||
return false;
|
||||
}else{
|
||||
$this->view->error = view::Error('alert-error',"修改失败",-1);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}//edit
|
||||
|
||||
if($ac == "del")
|
||||
{
|
||||
$this->_helper->layout->disableLayout();
|
||||
$this->_helper->viewRenderer->setNoRender();
|
||||
|
||||
$id = $this->_getParam('id');
|
||||
|
||||
if(empty($id))
|
||||
{
|
||||
$this->jsonexit(array('error'=>'参数错误'));
|
||||
return true;
|
||||
}
|
||||
|
||||
if($doi->delete($id) == true)
|
||||
{
|
||||
$this->jsonexit(array('success'=>$id));
|
||||
return true;
|
||||
}else{
|
||||
$this->jsonexit(array('error'=>'删除失败'));
|
||||
return true;
|
||||
}
|
||||
|
||||
}//del
|
||||
|
||||
}//doi
|
||||
|
||||
//发送邀请专家的邮件
|
||||
public function sendMailToExpert($pid,$name,$email,$code,$test=0)
|
||||
{
|
||||
|
|
|
@ -771,7 +771,7 @@ class Admin_DownController extends Zend_Controller_Action
|
|||
$objActSheet->setTitle('离线服务记录');
|
||||
$sql="select o.username,o.unit,o.phone,o.address,o.postcode,o.project,regexp_replace(o.datalist,'\(.+?MB\)','','g') as datalist,date(o.ts_approved) as date,o.email,o.project_id,o.project_type,o.project_title,sum(m.filesize) as filesize
|
||||
from offlineapp o left join dataorder d on o.id=d.offlineappid left join metadata m on d.uuid=m.uuid
|
||||
where o.ts_created>='".date('Y-').(date('m')-1)."-1' and o.ts_created<'".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>='".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
|
||||
";
|
||||
$re = $this->db->query($sql);
|
||||
$rows = $re->fetchAll();
|
||||
|
|
|
@ -192,7 +192,7 @@ class Admin_ReviewController extends Zend_Controller_Action
|
|||
$sql = "select m.*,md.title,u.username,u.realname from mdstatus m
|
||||
right join metadata md on md.uuid=m.uuid
|
||||
left join users u on u.id=m.userid
|
||||
where m.status=1";
|
||||
where m.status=1 order by m.ts_created desc";
|
||||
$re = $this->db->query($sql);
|
||||
$rows = $re->fetchAll();
|
||||
|
||||
|
|
|
@ -0,0 +1,150 @@
|
|||
<?php
|
||||
$this->headTitle($this->config->title->site);
|
||||
$this->headTitle($this->config->title->author);
|
||||
$this->headTitle()->setSeparator(' - ');
|
||||
//$this->headLink()->appendStylesheet('/css/admin.css');
|
||||
$this->breadcrumb('<a href="/">首页</a>');
|
||||
$this->breadcrumb('<a href="/admin/data">数据管理</a>');
|
||||
$this->breadcrumb('DOI');
|
||||
$this->breadcrumb()->setSeparator(' > ');
|
||||
$this->theme->AppendPlus($this,'colorbox');
|
||||
?>
|
||||
<div class="row-fluid">
|
||||
<div class="span2">
|
||||
<?= $this->partial('data/left.phtml'); ?>
|
||||
</div>
|
||||
<div class="span10">
|
||||
<div>
|
||||
<ul class="nav nav-tabs">
|
||||
<li><a href="/admin/data/doi">浏览所有</a></li>
|
||||
<?php if(!empty($this->uuid)) {?>
|
||||
<li class="active"><a href="javascript:void(0);">编辑DOI</a></li>
|
||||
<?php }?>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="">
|
||||
<?php if(!empty($this->error)) { ?>
|
||||
<?= $this->error ?>
|
||||
<?php } ?>
|
||||
<?php if(!empty($this->msg)) { ?>
|
||||
<?= $this->msg ?>
|
||||
<?php } else{ ?>
|
||||
<form class="form-horizontal" method="post">
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="doi">doi</label>
|
||||
<div class="controls">
|
||||
<input type="text" id="doi" name="doi" value="<?= (isset($this->data['doi'])&&!empty($this->data['doi'])) ? $this->data['doi']:"doi:10.3972/westdc.x.2013.db" ?>" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="uuid">uuid</label>
|
||||
<div class="controls">
|
||||
<input type="text" id="uuid" name="uuid" value="<?= isset($this->data['uuid']) ? $this->data['uuid']:"" ?>" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="publisher">发布者</label>
|
||||
<div class="controls">
|
||||
<input type="text" id="publisher" name="publisher" value="<?= isset($this->data['publisher']) ? $this->data['publisher']:"" ?>" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="url">url</label>
|
||||
<div class="controls">
|
||||
<input type="text" id="url" name="url" value="<?= isset($this->data['url']) ? $this->data['url']:"" ?>" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="title">标题</label>
|
||||
<div class="controls">
|
||||
<input type="text" id="title" name="title" value="<?= isset($this->data['title']) ? $this->data['title']:"" ?>" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="title_en">title_en</label>
|
||||
<div class="controls">
|
||||
<input type="text" id="title_en" name="title_en" value="<?= isset($this->data['title_en']) ? $this->data['title_en']:"" ?>" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="publisher_en">发布者英文</label>
|
||||
<div class="controls">
|
||||
<input type="text" id="publisher_en" name="publisher_en" value="<?= isset($this->data['publisher_en']) ? $this->data['publisher_en']:"" ?>" />
|
||||
</div>
|
||||
</div>
|
||||
<?php if(empty($this->data['info']) || !is_array($this->data['info'])) {?>
|
||||
<div class="control-group infocontrol" id="info1">
|
||||
<label class="control-label" for="">info</label>
|
||||
<div class="controls">
|
||||
<input type="text" name="info[1][author]" value="" placeholder="作者" />
|
||||
<input type="text" name="info[1][organization]" value="" placeholder="单位" />
|
||||
<input type="text" name="info[1][author_en]" value="" placeholder="作者英文" />
|
||||
<input type="text" name="info[1][organization_en]" value="" placeholder="单位英文" />
|
||||
<input type="text" name="info[1][order]" value="" placeholder="排序" />
|
||||
</div>
|
||||
</div>
|
||||
<?php }else{ ?>
|
||||
<?php
|
||||
$index = 0;
|
||||
foreach($this->data['info'] as $k=>$v){
|
||||
$index ++;
|
||||
?>
|
||||
<div class="control-group infocontrol">
|
||||
<label class="control-label">info</label>
|
||||
<div class="controls">
|
||||
<input type="text" name="info[<?= $k ?>][author]" value="<?= $v['author'] ?>" placeholder="作者" />
|
||||
<input type="text" name="info[<?= $k ?>][organization]" value="<?= $v['organization'] ?>" placeholder="单位" />
|
||||
<input type="text" name="info[<?= $k ?>][author_en]" value="<?= $v['author_en'] ?>" placeholder="作者英文" />
|
||||
<input type="text" name="info[<?= $k ?>][organization_en]" value="<?= $v['organization_en'] ?>" placeholder="单位英文" />
|
||||
<input type="text" name="info[<?= $k ?>][order]" value="<?= $v['order'] ?>" placeholder="排序" />
|
||||
<?php if($index>1){ ?>
|
||||
<a href="javascript:void(0);" onclick="RmInput(this)"> -删除</a>
|
||||
<?php }?>
|
||||
</div>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<?php } ?>
|
||||
<div class="control-group">
|
||||
<div class="controls">
|
||||
<a href="javascript:void(0);" onclick="addinput()">+添加一条</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<div class="controls">
|
||||
<input type="hidden" name="submit" value="1" />
|
||||
<?php if(!empty($this->id)) { ?>
|
||||
<input type="hidden" name="id" value=" <?=$this->id?> " />
|
||||
<?php } ?>
|
||||
<?php if(!empty($this->uuid)) { ?>
|
||||
<input type="hidden" name="uuid" value=" <?=$this->uuid?>" />
|
||||
<?php } ?>
|
||||
<button type="submit" class="btn btn-primary">提交</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
<?php } ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
function addinput(){
|
||||
var now_index = $('.infocontrol').length;
|
||||
var index = now_index + 1;
|
||||
html = '<div class="control-group infocontrol"><div class="controls">'
|
||||
+ '<input type="text" name="info[' + index + '][author]" placeholder="作者" /> '
|
||||
+ '<input type="text" name="info[' + index + '][organization]" placeholder="单位" /> '
|
||||
+ '<input type="text" name="info[' + index + '][author_en]" placeholder="作者英文" /> '
|
||||
+ '<input type="text" name="info[' + index + '][organization_en]" placeholder="单位英文" /> '
|
||||
+ '<input type="text" name="info[' + index + '][order]" placeholder="排序" /> '
|
||||
+ '<a href="javascript:void(0);" onclick="RmInput(this)"> -删除</a>'
|
||||
+ '</div></div>';
|
||||
now_index = null;
|
||||
index = null;
|
||||
$('.infocontrol').last().after(html);
|
||||
}
|
||||
function RmInput(e){
|
||||
$e = $(e);
|
||||
$e.parent('div').parent('div.infocontrol').remove();
|
||||
}
|
||||
</script>
|
||||
<!-- //页面内容 -->
|
|
@ -0,0 +1,79 @@
|
|||
<?php
|
||||
$this->headTitle($this->config->title->site);
|
||||
$this->headTitle($this->config->title->author);
|
||||
$this->headTitle()->setSeparator(' - ');
|
||||
$this->breadcrumb('<a href="/">首页</a>');
|
||||
$this->breadcrumb('<a href="/admin/data">数据管理</a>');
|
||||
$this->breadcrumb('DOI');
|
||||
$this->breadcrumb()->setSeparator(' > ');
|
||||
$this->theme->AppendPlus($this,'colorbox');
|
||||
$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>
|
||||
<ul class="nav nav-tabs">
|
||||
<li class="active"><a href="/admin/data/doi">浏览所有</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div>
|
||||
<div class="input-append">
|
||||
<form id="datasearch" class="search_form" action="">
|
||||
<input type="text" id="keyword" name="q" value="<?php if(!empty($this->q)) echo $this->q; ?>" />
|
||||
<button type="submit" class="btn" id="search_btn">搜索</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
<?php if(!empty($this->error)) { ?>
|
||||
<?= $this->error ?>
|
||||
<?php } ?>
|
||||
<?php if(!empty($this->msg)) { ?>
|
||||
<?= $this->msg ?>
|
||||
<?php } else{ ?>
|
||||
<div id="datalist">
|
||||
<?php if (count($this->paginator)): ?>
|
||||
<table class="table table-bordered table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>状态</th>
|
||||
<th>元数据</th>
|
||||
<th>DOI</th>
|
||||
<th width="70">操作</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php $autoindex=0;
|
||||
foreach ($this->paginator as $item):
|
||||
$autoindex++;?>
|
||||
<tr id="DataLine_<?= $item['id']?>">
|
||||
<td><?php if (!empty($item['ts_published'])) { echo '已发布'; } else if (!empty($item['ts_submitted'])) { echo '已提交'; } ?></td>
|
||||
<td><a href="/data/<?= $item['uuid'] ?>"><?= $item['title'] ?></a></td>
|
||||
<td><?= $item['doi'] ?></td>
|
||||
<td>
|
||||
<a href="/admin/data/doi/ac/edit/uuid/<?= $item['uuid']?>">编辑</a>
|
||||
<a href="javascript:void(0);" onclick="onedel(<?= $item['id']?>)" id="delbtn_<?= $item['id']?>">删除</a>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
</tbody>
|
||||
</table>
|
||||
<?php endif; ?>
|
||||
<div class="pagenavi"><?= $this->paginator; ?></div>
|
||||
</div>
|
||||
<?php } ?>
|
||||
</div>
|
||||
</div>
|
||||
<!-- //页面内容 -->
|
||||
<script>
|
||||
var info = {
|
||||
btn_prefix : "delbtn_",
|
||||
item_prefix : "DataLine_",
|
||||
url : "/admin/data/doi/ac/del"
|
||||
}
|
||||
</script>
|
|
@ -0,0 +1,90 @@
|
|||
<?php
|
||||
$this->headTitle($this->config->title->site);
|
||||
$this->headTitle($this->config->title->author);
|
||||
$this->headTitle()->setSeparator(' - ');
|
||||
//$this->headLink()->appendStylesheet('/css/admin.css');
|
||||
$this->breadcrumb('<a href="/">首页</a>');
|
||||
$this->breadcrumb('<a href="/admin/data">数据管理</a>');
|
||||
$this->breadcrumb('支持项目');
|
||||
$this->breadcrumb()->setSeparator(' > ');
|
||||
$this->theme->AppendPlus($this,'colorbox');
|
||||
?>
|
||||
<div class="row-fluid">
|
||||
<div class="span2">
|
||||
<?= $this->partial('data/left.phtml'); ?>
|
||||
</div>
|
||||
<div class="span10">
|
||||
<div>
|
||||
<ul class="nav nav-tabs">
|
||||
<li><a href="/admin/data/fund/">所有项目</a></li>
|
||||
<li class="active"><a href="/admin/data/fund/ac/add">添加新项目</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="">
|
||||
<?php if(!empty($this->error)) { ?>
|
||||
<div class="alert alert-block alert-error fade in" id="Alert-error-box">
|
||||
<a class="close" data-dismiss="alert" href="#">×</a>
|
||||
<?php if(!is_array($this->error)) { ?><h4 class="alert-heading"><?= $this->error ?></h4><?php } else { ?>
|
||||
<ul>
|
||||
<?php foreach($this->error as $v) { ?>
|
||||
<li><?= $v ?></li>
|
||||
<?php } ?>
|
||||
</ul>
|
||||
<?php } ?>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<?php if(!empty($this->msg)) { ?>
|
||||
<div class="alert <?= $this->AlertType;?>">
|
||||
<a data-dismiss="alert" class="close">×</a>
|
||||
<?php echo $this->msg ?>
|
||||
</div>
|
||||
<?php if(!empty($this->jump_url)) { ?>
|
||||
<script language="javascript">setTimeout("self.location='<?php echo $this->jump_url ?>'",3000);</script>
|
||||
<?php } ?>
|
||||
<?php } else{ ?>
|
||||
<form class="form-horizontal" method="post">
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="title">项目名称</label>
|
||||
<div class="controls">
|
||||
<input type="text" id="title" name="title" value="<?= isset($this->data['title']) ? $this->data['title']:"" ?>" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="fund_id">编号</label>
|
||||
<div class="controls">
|
||||
<input type="text" id="fund_id" name="fund_id" value="<?= isset($this->data['fund_id']) ? $this->data['fund_id']:"" ?>" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="fund_type">类型</label>
|
||||
<div class="controls">
|
||||
<input type="text" id="fund_type" name="fund_type" value="<?= isset($this->data['fund_type']) ? $this->data['fund_type']:"" ?>" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="title_en">英文名称</label>
|
||||
<div class="controls">
|
||||
<input type="text" id="title_en" name="title_en" value="<?= isset($this->data['title_en']) ? $this->data['title_en']:"" ?>" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="fund_type_en">英文类型</label>
|
||||
<div class="controls">
|
||||
<input type="text" id="fund_type_en" name="fund_type_en" value="<?= isset($this->data['fund_type_en']) ? $this->data['fund_type_en']:"" ?>" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<div class="controls">
|
||||
<input type="hidden" name="submit" value="1" />
|
||||
<?php if(!empty($this->id)) { ?>
|
||||
<input type="hidden" name="id" value=" <?=$this->id?> " />
|
||||
<?php } ?>
|
||||
<button type="submit" class="btn btn-primary">提交</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
<?php } ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- //页面内容 -->
|
|
@ -0,0 +1,164 @@
|
|||
<?php
|
||||
$this->headTitle($this->config->title->site);
|
||||
$this->headTitle($this->config->title->author);
|
||||
$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,'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>
|
||||
<ul class="nav nav-tabs">
|
||||
<li class="active"><a href="/admin/data/fund/">所有项目</a></li>
|
||||
<li><a href="/admin/data/fund/ac/add">添加新项目</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<?php if(!empty($this->md)) { ?>
|
||||
<div>
|
||||
<?php if(empty($this->ct)) { ?>
|
||||
<a class="btn btn-primary pull-right" href="/admin/data/fund/ac/formd/uuid/<?= $this->md['uuid'] ?>"><i class="icon-plus"></i>为此数据添加项目</a>
|
||||
<?php }else{ ?>
|
||||
<a class="pull-right btn" href="/admin/data/fund/uuid/<?= $this->md['uuid'] ?>">返回</a>
|
||||
<div class="pull-right label label-info">点击“添加此项目”即可将项目添加到元数据</div>
|
||||
<?php } ?>
|
||||
<h3>《<?= $this->md['title'] ?>》 的支持项目</h3>
|
||||
<hr />
|
||||
</div>
|
||||
<?php } ?>
|
||||
<div>
|
||||
<div class="input-append">
|
||||
<form id="datasearch" class="search_form" action="">
|
||||
<input type="text" id="keyword" name="q" value="<?php if(!empty($this->q)) echo $this->q; ?>" />
|
||||
<button type="submit" class="btn" id="search_btn">搜索</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
<?php if(!empty($this->error)) { ?>
|
||||
<?php if(empty($this->AlertType)) $AlertType = "alert-error";else $AlertType = $this->AlertType;?>
|
||||
<div class="alert alert-block fade in <?= $AlertType ?>" id="Alert-error-box">
|
||||
<a class="close" data-dismiss="alert" href="#">×</a>
|
||||
<?php if(!is_array($this->error)) { ?><h4 class="alert-heading"><?= $this->error ?></h4><?php } else { ?>
|
||||
<ul>
|
||||
<?php foreach($this->error as $v) { ?>
|
||||
<li><?= $v ?></li>
|
||||
<?php } ?>
|
||||
</ul>
|
||||
<?php } ?>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<?php if(!empty($this->msg)) { ?>
|
||||
<div class="alert <?= $this->AlertType;?>">
|
||||
<a data-dismiss="alert" class="close">×</a>
|
||||
<?php echo $this->msg ?>
|
||||
</div>
|
||||
<?php if(!empty($this->jump_url)) { ?>
|
||||
<script language="javascript">setTimeout("self.location='<?php echo $this->jump_url ?>'",3000);</script>
|
||||
<?php } ?>
|
||||
<?php } else{ ?>
|
||||
<div id="datalist">
|
||||
<?php if (count($this->paginator)): ?>
|
||||
<table class="table table-bordered table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>名称</th>
|
||||
<th>编号</th>
|
||||
<th>类型</th>
|
||||
<?php if($this->md) { ?>
|
||||
<th width="80">排序</th>
|
||||
<?php }else{ ?>
|
||||
<th>英文标题</th>
|
||||
<th>英文类型</th>
|
||||
<?php } ?>
|
||||
<?php if($this->ct) { ?>
|
||||
<th>添加</th>
|
||||
<?php } ?>
|
||||
<th width="70">操作</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php $autoindex=0;
|
||||
foreach ($this->paginator as $item):
|
||||
$autoindex++;?>
|
||||
<?php if(empty($this->md)) { ?>
|
||||
<tr id="DataLine_<?= $item['id']?>">
|
||||
<?php }else{?>
|
||||
<tr id="DataLine_<?= $item['mfid']?>">
|
||||
<?php }?>
|
||||
<td><?= $item['title'] ?></td>
|
||||
<td><?= $item['fund_id'] ?></td>
|
||||
<td><?= $item['fund_type'] ?></td>
|
||||
<?php if($this->md) { ?>
|
||||
<?php if($this->ct) { ?>
|
||||
<td><input type="text" name="order" id="order_<?= $item['id']?>" class="span12" /></td>
|
||||
<?php }else{ ?>
|
||||
<td><input type="text" name="order" id="order_<?= $item['mfid']?>" class="span12" value="<?= $item['place'] ?>" /></td>
|
||||
<?php }?>
|
||||
<?php }else{ ?>
|
||||
<td><?= $item['title_en'] ?></td>
|
||||
<td><?= $item['fund_type_en'] ?></td>
|
||||
<?php } ?>
|
||||
<?php if($this->ct) { ?>
|
||||
<td><a href="javascript:void(0);" class="addtomd" rel="<?= $item['id']?>">添加此项目</a></td>
|
||||
<?php } ?>
|
||||
<td>
|
||||
<?php if(empty($this->md)) { ?>
|
||||
<a href="/admin/data/fund/ac/edit/id/<?= $item['id']?>">编辑</a>
|
||||
<a href="javascript:void(0);" onclick="onedel(<?= $item['id']?>)" id="delbtn_<?= $item['id']?>">删除</a>
|
||||
<?php }else{ ?>
|
||||
<?php if(empty($this->ct)) { ?><a href="javascript:void(0);" class="changeorder" rel="<?= $item['mfid']?>">排序</a> <?php } ?>
|
||||
<a href="javascript:void(0);" onclick="onedel(<?= $item['mfid']?>)" id="delbtn_<?= $item['mfid']?>">移除</a>
|
||||
<?php } ?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
</tbody>
|
||||
</table>
|
||||
<?php endif; ?>
|
||||
<div class="pagenavi"><?= $this->paginator; ?></div>
|
||||
</div>
|
||||
<?php } ?>
|
||||
</div>
|
||||
</div>
|
||||
<!-- //页面内容 -->
|
||||
<script>
|
||||
<?php if(!empty($this->ct)) { ?>
|
||||
$('.addtomd').each(function(index, element) {
|
||||
$(this).click(function(){
|
||||
id = $(this).attr('rel');
|
||||
order = $('#order_'+id).val();
|
||||
self.location='/admin/data/fund/ac/formd/uuid/<?= $this->md['uuid'] ?>/id/'+id+'/order/'+ order
|
||||
});
|
||||
});
|
||||
<?php }else{ ?>
|
||||
$('.changeorder').each(function(index, element) {
|
||||
$(this).click(function(){
|
||||
id = $(this).attr('rel');
|
||||
order = $('#order_'+id).val();
|
||||
self.location='/admin/data/fund/ac/formd/uuid/<?= $this->md['uuid'] ?>/mfid/'+id+'/order/'+ order
|
||||
});
|
||||
});
|
||||
<?php } ?>
|
||||
<?php if(empty($this->md)) { ?>
|
||||
var info = {
|
||||
btn_prefix : "delbtn_",
|
||||
item_prefix : "DataLine_",
|
||||
url : "/admin/data/fund/ac/del"
|
||||
}
|
||||
<?php }else{ ?>
|
||||
var info = {
|
||||
btn_prefix : "delbtn_",
|
||||
item_prefix : "DataLine_",
|
||||
url : "/admin/data/fund/ac/mdfunddel/uuid/<?= $this->md['uuid'] ?>"
|
||||
}
|
||||
<?php } ?>
|
||||
</script>
|
|
@ -1,20 +1,22 @@
|
|||
<ul>
|
||||
<li class="title">数据管理</li>
|
||||
<li><a href="/admin/data/md">元数据管理</a></li>
|
||||
<li><a href="/admin/data/newdata">新建元数据</a></li>
|
||||
<li><a href="/admin/data/author">数据作者管理</a></li>
|
||||
<li><a href="/admin/data/version">数据版本管理</a></li>
|
||||
<li><a href="/admin/data/comment">数据反馈管理</a></li>
|
||||
<li><a href="/admin/data/reference">数据文献管理</a></li>
|
||||
<li><a href="/admin/data/attachments">数据附件管理</a></li>
|
||||
<!--
|
||||
<li><a href="/admin/data/import">上传元数据文件</a></li>
|
||||
<li><a href="/admin/data/batchimport">导入服务器元数据目录</a></li> -->
|
||||
<li><a href="/admin/data/datafileimport">导入数据目录</a></li>
|
||||
<li><a href="/admin/data/sync">同步GeoNetwork元数据</a></li>
|
||||
<li><a href="/admin/data/datasetcd">特色数据集管理</a></li>
|
||||
<li><a href="/admin/data/newsletter">数据中心通讯管理</a></li>
|
||||
<li><a href="/admin/data/feature">特色推荐</a></li>
|
||||
<li><a href="/admin/data/source">项目来源管理</a></li>
|
||||
<li><a href="/admin/data/project">汇交计划</a></li>
|
||||
<ul>
|
||||
<li class="title">数据管理</li>
|
||||
<li><a href="/admin/data/md">元数据管理</a></li>
|
||||
<li><a href="/admin/data/newdata">新建元数据</a></li>
|
||||
<li><a href="/admin/data/author">数据作者管理</a></li>
|
||||
<li><a href="/admin/data/version">数据版本管理</a></li>
|
||||
<li><a href="/admin/data/comment">数据反馈管理</a></li>
|
||||
<li><a href="/admin/data/reference">数据文献管理</a></li>
|
||||
<li><a href="/admin/data/attachments">数据附件管理</a></li>
|
||||
<!--
|
||||
<li><a href="/admin/data/import">上传元数据文件</a></li>
|
||||
<li><a href="/admin/data/batchimport">导入服务器元数据目录</a></li> -->
|
||||
<li><a href="/admin/data/datafileimport">导入数据目录</a></li>
|
||||
<li><a href="/admin/data/sync">同步GeoNetwork元数据</a></li>
|
||||
<li><a href="/admin/data/datasetcd">特色数据集管理</a></li>
|
||||
<li><a href="/admin/data/newsletter">数据中心通讯管理</a></li>
|
||||
<li><a href="/admin/data/feature">特色推荐</a></li>
|
||||
<li><a href="/admin/data/source">项目来源管理</a></li>
|
||||
<li><a href="/admin/data/project">汇交计划</a></li>
|
||||
<li><a href="/admin/data/fund">支持项目</a></li>
|
||||
<li><a href="/admin/data/doi">DOI</a></li>
|
||||
</ul>
|
|
@ -8,9 +8,7 @@
|
|||
$this->breadcrumb('<a href="/admin/data">数据管理</a>');
|
||||
$this->breadcrumb('元数据管理</a>');
|
||||
$this->breadcrumb()->setSeparator(' > ');
|
||||
$this->headScript()->appendFile('/js/jquery-1.7.min.js');
|
||||
$this->headScript()->appendFile('/js/jquery.colorbox-min.js');
|
||||
$this->headLink()->appendStylesheet('/css/colorbox.css');
|
||||
$this->theme->AppendPlus($this,'colorbox');
|
||||
?>
|
||||
<div id="leftPanel">
|
||||
<?= $this->partial('data/left.phtml'); ?>
|
||||
|
@ -30,11 +28,11 @@
|
|||
|
||||
<div class="search">
|
||||
<form action="" method="get">
|
||||
<div class="input-prepend">
|
||||
<input type="hidden" name="search" value='1' />
|
||||
<ul>
|
||||
<li><label>搜索关键字</label><input type="text" name="keyword" value="<?php echo $this->keyword; ?>" /></li>
|
||||
<li><input type="submit" class="searchbtn" value="搜索" /></li>
|
||||
</ul>
|
||||
<input class="span2 search-query" type="text" name="keyword" value="<?php echo $this->keyword; ?>" placeholder="搜索关键字"/>
|
||||
<input type="submit" class="btn" value="搜索" />
|
||||
</div>
|
||||
</form>
|
||||
</div><!-- search DIV -->
|
||||
|
||||
|
@ -43,32 +41,36 @@
|
|||
<div class="datalist">
|
||||
<ul>
|
||||
<?php foreach ($this->paginator as $item): ?>
|
||||
<li><p><a href="/data/<?= $item['uuid']; ?>" class="title"><?= $item['title']; ?></a></p>
|
||||
<p>大小:<?= $item['filesize']; ?>M,创建时间:<?= date('Y-m-d',strtotime($item['ts_created'])); ?>
|
||||
,查看:<?= $item['viewed']; ?>次。 操作:
|
||||
<a href="/service/geonetwork?url=metadata.edit?id=<?= $item['gid']; ?>" target="_blank">编辑</a> |
|
||||
<a href="/admin/data/md/delete/<?= $item['uuid']; ?>">删除</a> |
|
||||
<a href="/admin/data/sync/uuid/<?= $item['uuid']; ?>">同步</a> |
|
||||
<a href="/admin/data/reference/show/<?php echo $item['uuid'];?>">文献管理</a> |
|
||||
<a href="/admin/data/md/att/1/uuid/<?php echo $item['uuid'];?>">附件管理</a> |
|
||||
<a href="/admin/data/comment/uuid/<?php echo $item['uuid'];?>">反馈管理</a> |
|
||||
<a href="/admin/data/author/uuid/<?php echo $item['uuid'];?>">作者管理</a> |
|
||||
<a href="/admin/data/version/uuid/<?php echo $item['uuid'];?>">版本管理</a> |
|
||||
<?php if (@!is_numeric($item['mdstatus'])) : ?>
|
||||
<a href="/admin/review/addon/uuid/<?php echo $item['uuid'];?>">放入元数据评审</a> |
|
||||
<?php endif; ?>
|
||||
<a href="/admin/data/source/do/datasource/uuid/<?php echo $item['uuid'];?>">编辑数据来源</a> |
|
||||
<?php if(!empty($item['datasetid'])):?>
|
||||
<a href="/admin/data/dataset/ac/getdataset/uuid/<?php echo $item['uuid'];?>" class="iframe">存档</a> |
|
||||
<?php else: ?>
|
||||
<a href="/admin/data/dataset/ac/getdataset/uuid/<?php echo $item['uuid'];?>" class="iframe">添加存档</a> |
|
||||
<?php endif;?>
|
||||
<a href="/admin/down/sendmail/uuid/<?php echo $item['uuid'];?>" title="向数据下载者发送通知邮件">邮件通知</a>
|
||||
</p>
|
||||
<?php if($item['author']) :?>
|
||||
<p>数据贡献者:<?= $item['author']; ?></p>
|
||||
<?php endif;?>
|
||||
<p class="content"><?= $item['description']; ?></p>
|
||||
<li class="well well-small">
|
||||
<h4><a href="/data/<?= $item['uuid']; ?>" class="title"><?= $item['title']; ?></a></h4>
|
||||
<p>大小:<?= $item['filesize']; ?>M,创建时间:<?= date('Y-m-d',strtotime($item['ts_created'])); ?>,查看:<?= $item['viewed']; ?>次。</p>
|
||||
<p>
|
||||
操作:
|
||||
<a href="/service/geonetwork?url=metadata.edit?id=<?= $item['gid']; ?>" target="_blank">编辑</a> |
|
||||
<a href="/admin/data/md/delete/<?= $item['uuid']; ?>">删除</a> |
|
||||
<a href="/admin/data/sync/uuid/<?= $item['uuid']; ?>">同步</a> |
|
||||
<a href="/admin/data/reference/show/<?php echo $item['uuid'];?>">文献管理</a> |
|
||||
<a href="/admin/data/md/att/1/uuid/<?php echo $item['uuid'];?>">附件管理</a> |
|
||||
<a href="/admin/data/comment/uuid/<?php echo $item['uuid'];?>">反馈管理</a> |
|
||||
<a href="/admin/data/author/uuid/<?php echo $item['uuid'];?>">作者管理</a> |
|
||||
<a href="/admin/data/version/uuid/<?php echo $item['uuid'];?>">版本管理</a> |
|
||||
<?php if (@!is_numeric($item['mdstatus'])) : ?>
|
||||
<a href="/admin/review/addon/uuid/<?php echo $item['uuid'];?>">放入元数据评审</a> |
|
||||
<?php endif; ?>
|
||||
<a href="/admin/data/source/do/datasource/uuid/<?php echo $item['uuid'];?>">编辑数据来源</a> |
|
||||
<?php if(!empty($item['datasetid'])):?>
|
||||
<a href="/admin/data/dataset/ac/getdataset/uuid/<?php echo $item['uuid'];?>" class="iframe">存档</a> |
|
||||
<?php else: ?>
|
||||
<a href="/admin/data/dataset/ac/getdataset/uuid/<?php echo $item['uuid'];?>" class="iframe">添加存档</a> |
|
||||
<?php endif;?>
|
||||
<a href="/admin/down/sendmail/uuid/<?php echo $item['uuid'];?>" title="向数据下载者发送通知邮件">邮件通知</a> |
|
||||
<a href="/admin/data/fund/uuid/<?php echo $item['uuid'];?>">支持项目</a> |
|
||||
<a href="/admin/data/doi/uuid/<?php echo $item['uuid'];?>">DOI</a>
|
||||
</p>
|
||||
<?php if($item['author']) :?>
|
||||
<p>数据贡献者:<?= $item['author']; ?></p>
|
||||
<?php endif;?>
|
||||
<p class="content"><?= $item['description']; ?></p>
|
||||
</li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
|
|
|
@ -39,10 +39,10 @@ $this->breadcrumb()->setSeparator(' > ');
|
|||
$autoindex++;
|
||||
?>
|
||||
<li>
|
||||
<p><span class="title"><?php echo $item['title'];?></span>
|
||||
【<a href="/service/geonetwork?url=metadata.show?id=<?php echo $item['id']; ?>">在geonetwork里查看</a>
|
||||
| <a href="/service/geonetwork?url=metadata.edit?id=<?php echo $item['id']; ?>">在geonetwork里修改</a>
|
||||
| <a href="/service/geonetwork?url=metadata.delete?id=<?php echo $item['id']; ?>">删除此条数据</a>
|
||||
<p><?php echo $item['username'];?>(<?php echo $item['realname'];?>) <span class="title"><?php echo $item['title'];?></span>
|
||||
【<a href="/service/geonetwork?url=metadata.show?id=<?php echo $item['id']; ?>" target="_blank">在geonetwork里查看</a>
|
||||
| <a href="/service/geonetwork?url=metadata.edit?id=<?php echo $item['id']; ?>" target="_blank">在geonetwork里修改</a>
|
||||
| <a href="/service/geonetwork?url=metadata.delete?id=<?php echo $item['id']; ?>" target="_blank">删除此条数据</a>
|
||||
| <a onclick="validate(<?php echo $item['id'];?>);" class="more inline">检查元数据错误</a>
|
||||
| <a onclick="$('#commit_submit').attr('onclick','commit(\'<?php echo $item['id'];?>\');');" href="#commitform" class="more inline">提交评审发布</a>
|
||||
】</p>
|
||||
|
|
|
@ -1,4 +0,0 @@
|
|||
<div id="divFooter">
|
||||
<span>版权所有©2006-2008,中国西部环境与生态科学数据中心</span> | <a href="/about/contact" >联系我们</a> | <a href="/about/terms">使用条款和免责申明</a>
|
||||
| <a href="http://www.miibeian.gov.cn" target="_blank">陇ICP备05000491号</a>
|
||||
</div>
|
|
@ -1,11 +1,10 @@
|
|||
<div id="divHeader">
|
||||
<div id="divLogo">
|
||||
<a href="/"><img src="/images/westdc-banner.jpg" alt="Westdc Logo" /></a>
|
||||
</div>
|
||||
<div class="nav">
|
||||
<div id="divNavi">
|
||||
<ul>
|
||||
<!-- CSS Tabs -->
|
||||
<div class="masthead">
|
||||
<div class="navbar">
|
||||
<div class="navbar-inner">
|
||||
<div class="container">
|
||||
<ul class="nav" id="mainmenu">
|
||||
<!-- CSS Tabs -->
|
||||
<li><a href="/"><span>前台</span></a></li>
|
||||
<li><a href="/admin"><span>后台首页</span></a></li>
|
||||
<li><a href="/admin/data"><span>数据管理</span></a></li>
|
||||
<li><a href="/admin/down"><span>申请管理</span></a></li>
|
||||
|
@ -15,8 +14,7 @@
|
|||
<li><a href="/admin/stat"><span>统计数据</span></a></li>
|
||||
<li><a href="/admin/sys"><span>系统管理</span></a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div id="userNavi">
|
||||
<p class="navbar-text pull-right">
|
||||
<?php
|
||||
$auth = Zend_Auth::getInstance();
|
||||
if($auth->hasIdentity())
|
||||
|
@ -25,6 +23,8 @@
|
|||
echo '<a href="/account/edit">'.$user->username.'</a> <a href="/account/logout">注销</a>';
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div><!-- /.navbar -->
|
||||
</div>
|
|
@ -81,7 +81,7 @@ $(document).ready(function(){
|
|||
|
||||
<p>
|
||||
<label for="source" class="required">来源</label><br/>
|
||||
<input type="text" id="source" class="half title" value="中国西部环境与生态科学数据中心" name="source"/>
|
||||
<input type="text" id="source" class="half title" value="寒区旱区科学数据中心" name="source"/>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
|
|
|
@ -1,26 +1,28 @@
|
|||
<?php if ($this->pageCount): ?>
|
||||
<div class="paginationControl">
|
||||
<!-- Previous page link -->
|
||||
<?php if (isset($this->previous)): ?>
|
||||
<a href="<?= $this->url(array('page' => $this->previous)); ?>?<?php echo $_SERVER["QUERY_STRING"];?>">< Previous</a>
|
||||
<?php else: ?>
|
||||
<span class="disabled">< Previous</span>
|
||||
<?php endif; ?>
|
||||
|
||||
<!-- Numbered page links -->
|
||||
<?php foreach ($this->pagesInRange as $page): ?>
|
||||
<?php if ($page != $this->current): ?>
|
||||
<a href="<?= $this->url(array('page' => $page)); ?>?<?php echo $_SERVER["QUERY_STRING"];?>"><?= $page; ?></a>
|
||||
<?php else: ?>
|
||||
<span class="current"><?= $page; ?></span>
|
||||
<?php endif; ?>
|
||||
<?php endforeach; ?>
|
||||
|
||||
<!-- Next page link -->
|
||||
<?php if (isset($this->next)): ?>
|
||||
<a href="<?= $this->url(array('page' => $this->next)); ?>?<?php echo $_SERVER["QUERY_STRING"];?>">Next ></a>
|
||||
<?php else: ?>
|
||||
<span class="disabled">Next ></span>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php if ($this->pageCount): ?>
|
||||
<div class="pagination">
|
||||
<ul>
|
||||
<!-- Previous page link -->
|
||||
<?php if (isset($this->previous)): ?>
|
||||
<li><a href="<?= $this->url(array('page' => $this->previous)); ?>?<?php echo $_SERVER["QUERY_STRING"];?>">«</a></li>
|
||||
<?php else: ?>
|
||||
<li class="disabled"><a href="javascript:;">«</a></li>
|
||||
<?php endif; ?>
|
||||
<!-- Numbered page links -->
|
||||
<?php foreach ($this->pagesInRange as $page): ?>
|
||||
<?php if ($page != $this->current): ?>
|
||||
<li><a href="<?= $this->url(array('page' => $page)); ?>?<?php echo $_SERVER["QUERY_STRING"];?>"><?= $page; ?></a></li>
|
||||
<?php else: ?>
|
||||
<li class="active"><a href="javascript:void(0);"><?= $page; ?></a></li>
|
||||
<?php endif; ?>
|
||||
<?php endforeach; ?>
|
||||
|
||||
<!-- Next page link -->
|
||||
<?php if (isset($this->next)): ?>
|
||||
<li><a href="<?= $this->url(array('page' => $this->next)); ?>?<?php echo $_SERVER["QUERY_STRING"];?>">»</a></li>
|
||||
<?php else: ?>
|
||||
<li class="disabled"><a href="javascript:;">»</a></li>
|
||||
<?php endif; ?>
|
||||
</ul>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
|
@ -62,7 +62,7 @@
|
|||
<?php endforeach; ?>
|
||||
<?php endif; ?>
|
||||
</table>
|
||||
<input type="submit" value="邀请选中的专家评审《<?php echo $this->md['title'];?>》" onclick="return confirm('是否确定邀请已选择的专家')" />
|
||||
<input class="btn btn-primary" type="submit" value="邀请选中的专家评审《<?php echo $this->md['title'];?>》" onclick="return confirm('是否确定邀请已选择的专家')" />
|
||||
</form>
|
||||
<div class="pagenavi"><?= $this->paginator; ?></div>
|
||||
</div>
|
||||
|
|
|
@ -5,7 +5,7 @@ db.params.username = gis
|
|||
db.params.password = gispassword
|
||||
db.params.dbname = metadata
|
||||
|
||||
geonetwork.url=http://westdc.westgis.ac.cn/geonetwork/
|
||||
geonetwork.url=http://www.heihedata.org/geonetwork/
|
||||
geonetwork.adapter = PDO_PGSQL
|
||||
geonetwork.params.host = localhost
|
||||
geonetwork.params.username = gis
|
||||
|
@ -167,7 +167,3 @@ routes.news.route = archives/:ptype/:type/:page
|
|||
routes.news.defaults.controller = archives
|
||||
routes.news.defaults.action = list
|
||||
routes.news.defaults.page = 1
|
||||
|
||||
routes.qzr.route = qzr/news/:title
|
||||
routes.qzr.defaults.controller = qzr
|
||||
routes.qzr.defaults.action = news
|
||||
|
|
|
@ -1,104 +1,105 @@
|
|||
<?php
|
||||
|
||||
class AboutController extends Zend_Controller_Action
|
||||
{
|
||||
function indexAction()
|
||||
{
|
||||
}
|
||||
function preDispatch()
|
||||
{
|
||||
$this->view->config = Zend_Registry::get('config');
|
||||
$this->messenger=$this->_helper->getHelper('FlashMessenger');
|
||||
$this->view->messages = $this->messenger->getMessages();
|
||||
$this->db=Zend_Registry::get('db');
|
||||
}
|
||||
function contactAction()
|
||||
{
|
||||
$form=new ContactForm();
|
||||
$this->view->form=$form;
|
||||
$this->view->addHelperPath('helper','Zend_View_Helper_');
|
||||
if ($this->_request->isPost()) {
|
||||
//发送邮件
|
||||
$formData=$this->_request->getPost();
|
||||
include_once("bcspamblock.php");
|
||||
if (bcspamblock_verify() && $form->isValid($formData)) {
|
||||
$mail=new Zend_Mail('utf-8');
|
||||
$mail->setFrom($formData['email'],$formData['username']);
|
||||
$mail->setBodyText($formData['body']);
|
||||
$mail->setSubject($formData['subject']);
|
||||
$mail->addTo($this->view->config->supportemail);
|
||||
$mail->send();
|
||||
$this->messenger->addMessage('发送成功!');
|
||||
$this->_redirect('/about/contact');
|
||||
}
|
||||
} else {
|
||||
$auth = Zend_Auth::getInstance();
|
||||
if ($auth->hasIdentity()) {
|
||||
$user=$auth->getIdentity();
|
||||
$formData['username']=($user->realname)?$user->realname:$user->username;
|
||||
$formData['email']=$user->email;
|
||||
$form->populate($formData);
|
||||
}
|
||||
}
|
||||
}
|
||||
function termsAction()
|
||||
{
|
||||
}
|
||||
function backgroundAction()
|
||||
{
|
||||
$archives=new Archive($this->db);
|
||||
$this->view->item=$archives->getOneArchive('发展历史','about');
|
||||
}
|
||||
function legalAction()
|
||||
{
|
||||
$archives=new Archive($this->db);
|
||||
$this->view->item=$archives->getOneArchive('隐私政策','about');
|
||||
}
|
||||
function supportusAction()
|
||||
{
|
||||
$archives=new Archive($this->db);
|
||||
$this->view->item=$archives->getOneArchive('支持我们','about');
|
||||
}
|
||||
function copyrightAction()
|
||||
{
|
||||
$archives=new Archive($this->db);
|
||||
$this->view->item=$archives->getOneArchive('数据与版权','about');
|
||||
}
|
||||
function linkAction()
|
||||
{
|
||||
$archives=new Archive($this->db);
|
||||
$this->view->item=$archives->getOneArchive('友情链接','about');
|
||||
}
|
||||
function honorAction()
|
||||
{
|
||||
$archives=new Archive($this->db);
|
||||
$this->view->item=$archives->getOneArchive('服务成效','about');
|
||||
}
|
||||
function sponsorsAction()
|
||||
{
|
||||
$archives=new Archive($this->db);
|
||||
$this->view->item=$archives->getOneArchive('支持项目','about');
|
||||
}
|
||||
function publicationAction()
|
||||
{
|
||||
$ac = $this->_request->getParam("ac");
|
||||
$siteid="e31f5ea7-a4af-4ae3-9ac1-1a84132c4338";//site uuid from geonetowrk
|
||||
if(empty($ac))
|
||||
{
|
||||
$sql="select * from mdref mr left join reference r on mr.refid=r.id where mr.uuid=? order by r.id desc";
|
||||
<?php
|
||||
|
||||
class AboutController extends Zend_Controller_Action
|
||||
{
|
||||
function indexAction()
|
||||
{
|
||||
}
|
||||
function preDispatch()
|
||||
{
|
||||
$this->view->config = Zend_Registry::get('config');
|
||||
$this->messenger=$this->_helper->getHelper('FlashMessenger');
|
||||
$this->view->messages = $this->messenger->getMessages();
|
||||
$this->db=Zend_Registry::get('db');
|
||||
$this->view->pageID = "about-".$this->_request->getActionName();
|
||||
}
|
||||
function contactAction()
|
||||
{
|
||||
$form=new ContactForm();
|
||||
$this->view->form=$form;
|
||||
$this->view->addHelperPath('helper','Zend_View_Helper_');
|
||||
if ($this->_request->isPost()) {
|
||||
//发送邮件
|
||||
$formData=$this->_request->getPost();
|
||||
include_once("bcspamblock.php");
|
||||
if (bcspamblock_verify() && $form->isValid($formData)) {
|
||||
$mail=new Zend_Mail('utf-8');
|
||||
$mail->setFrom($formData['email'],$formData['username']);
|
||||
$mail->setBodyText($formData['body']);
|
||||
$mail->setSubject($formData['subject']);
|
||||
$mail->addTo($this->view->config->supportemail);
|
||||
$mail->send();
|
||||
$this->messenger->addMessage('发送成功!');
|
||||
$this->_redirect('/about/contact');
|
||||
}
|
||||
} else {
|
||||
$auth = Zend_Auth::getInstance();
|
||||
if ($auth->hasIdentity()) {
|
||||
$user=$auth->getIdentity();
|
||||
$formData['username']=($user->realname)?$user->realname:$user->username;
|
||||
$formData['email']=$user->email;
|
||||
$form->populate($formData);
|
||||
}
|
||||
}
|
||||
}
|
||||
function termsAction()
|
||||
{
|
||||
}
|
||||
function backgroundAction()
|
||||
{
|
||||
$archives=new Archive($this->db);
|
||||
$this->view->item=$archives->getOneArchive('发展历史','about');
|
||||
}
|
||||
function legalAction()
|
||||
{
|
||||
$archives=new Archive($this->db);
|
||||
$this->view->item=$archives->getOneArchive('隐私政策','about');
|
||||
}
|
||||
function supportusAction()
|
||||
{
|
||||
$archives=new Archive($this->db);
|
||||
$this->view->item=$archives->getOneArchive('支持我们','about');
|
||||
}
|
||||
function copyrightAction()
|
||||
{
|
||||
$archives=new Archive($this->db);
|
||||
$this->view->item=$archives->getOneArchive('数据与版权','about');
|
||||
}
|
||||
function linkAction()
|
||||
{
|
||||
$archives=new Archive($this->db);
|
||||
$this->view->item=$archives->getOneArchive('友情链接','about');
|
||||
}
|
||||
function honorAction()
|
||||
{
|
||||
$archives=new Archive($this->db);
|
||||
$this->view->item=$archives->getOneArchive('服务成效','about');
|
||||
}
|
||||
function sponsorsAction()
|
||||
{
|
||||
$archives=new Archive($this->db);
|
||||
$this->view->item=$archives->getOneArchive('支持项目','about');
|
||||
}
|
||||
function publicationAction()
|
||||
{
|
||||
$ac = $this->_request->getParam("ac");
|
||||
$siteid="e31f5ea7-a4af-4ae3-9ac1-1a84132c4338";//site uuid from geonetowrk
|
||||
if(empty($ac))
|
||||
{
|
||||
$sql="select * from mdref mr left join reference r on mr.refid=r.id where mr.uuid=? order by r.id desc";
|
||||
$sth = $this->db->prepare($sql);
|
||||
$sth->execute(array($siteid));
|
||||
$rows = $sth->fetchAll();
|
||||
} elseif ($ac=='patent' || $ac=='report') {
|
||||
$archives=new Archive($this->db);
|
||||
$rows=$archives->getArchive($ac);
|
||||
$this->_helper->viewRenderer($ac);
|
||||
} elseif ($ac=='patent' || $ac=='report') {
|
||||
$archives=new Archive($this->db);
|
||||
$rows=$archives->getArchive($ac);
|
||||
$this->_helper->viewRenderer($ac);
|
||||
}
|
||||
$paginator = Zend_Paginator::factory($rows);
|
||||
$paginator->setCurrentPageNumber($this->_getParam('page'));
|
||||
$paginator->setItemCountPerPage(10);
|
||||
$paginator->setView($this->view);
|
||||
Zend_View_Helper_PaginationControl::setDefaultViewPartial('pagination_param.phtml');
|
||||
$this->view->paginator=$paginator;
|
||||
}
|
||||
$this->view->paginator=$paginator;
|
||||
}
|
||||
}
|
|
@ -12,7 +12,6 @@ class AccountController extends Zend_Controller_Action
|
|||
|
||||
function indexAction()
|
||||
{
|
||||
$this->_helper->layout->setLayout('layout-bootstrap');
|
||||
$this->view->pageID = "account-index";
|
||||
|
||||
include_once("Users.php");
|
||||
|
@ -34,7 +33,6 @@ class AccountController extends Zend_Controller_Action
|
|||
|
||||
function editAction()
|
||||
{
|
||||
$this->_helper->layout->setLayout('layout-bootstrap');
|
||||
$this->view->pageID = "account-edit";
|
||||
|
||||
include_once("Users.php");
|
||||
|
@ -114,7 +112,6 @@ class AccountController extends Zend_Controller_Action
|
|||
|
||||
function secureAction()
|
||||
{
|
||||
$this->_helper->layout->setLayout('layout-bootstrap');
|
||||
$this->view->pageID = "account-secure";
|
||||
|
||||
include_once("Users.php");
|
||||
|
|
|
@ -8,6 +8,12 @@ class ArchivesController extends Zend_Controller_Action
|
|||
{
|
||||
$this->view->config = Zend_Registry::get('config');
|
||||
$this->db=Zend_Registry::get('db');
|
||||
$this->view->theme = new Theme();
|
||||
}
|
||||
|
||||
function testAction()
|
||||
{
|
||||
$this->_helper->viewRenderer('archive-view-player');
|
||||
}
|
||||
|
||||
function indexAction()
|
||||
|
@ -101,11 +107,12 @@ class ArchivesController extends Zend_Controller_Action
|
|||
else{
|
||||
|
||||
$this->view->url = $row['code'];
|
||||
$this->view->title = $row['title'];
|
||||
$this->view->title = $row['title'];
|
||||
$this->view->type=$type;
|
||||
|
||||
$category = new ArchiveCategory($this->db);
|
||||
|
||||
$types = $category->GetCategory();
|
||||
$types = $category->GetCategory(0,$ptype);
|
||||
foreach($types as $k=>$v)
|
||||
{
|
||||
$parts = array(
|
||||
|
@ -163,7 +170,7 @@ class ArchivesController extends Zend_Controller_Action
|
|||
$News = new Archive($this->db);
|
||||
$category = new ArchiveCategory($this->db);
|
||||
|
||||
$types = $category->GetCategory();
|
||||
$types = $category->GetCategory(0,$ptype);
|
||||
foreach($types as $k=>$v)
|
||||
{
|
||||
$parts = array(
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -10,6 +10,7 @@ class DataController extends Zend_Controller_Action
|
|||
$this->messenger=$this->_helper->getHelper('FlashMessenger');
|
||||
$this->view->messages = $this->messenger->getMessages();
|
||||
$this->view->theme = new Theme();
|
||||
$this->view->main_nav_pageID = "data";
|
||||
}
|
||||
function indexAction()
|
||||
{
|
||||
|
@ -22,15 +23,15 @@ class DataController extends Zend_Controller_Action
|
|||
//关键词
|
||||
$state=$this->db->query("select keyword,count(*) from keyword where keytype='place' group by keyword order by count desc limit 20");
|
||||
$k1=$state->fetchAll();
|
||||
//$state=$db->query("select keyword,count(*) from keyword where keytype='theme' group by keyword order by count desc limit 20");
|
||||
$state=$this->db->query("select k.keyword,count(k.keyword) from keyword k left join normalmetadata m on k.id=m.id where k.keytype='theme' and (m.uuid in (select uuid from dataorder group by uuid order by count(uuid) desc limit 20)) group by k.keyword order by count(k.keyword) desc limit 20");
|
||||
$state=$this->db->query("select keyword,count(*) from keyword where keytype='theme' group by keyword order by count desc limit 20");
|
||||
//$state=$this->db->query("select k.keyword,count(k.keyword) from keyword k left join normalmetadata m on k.id=m.id where k.keytype='theme' and (m.uuid in (select uuid from dataorder group by uuid order by count(uuid) desc limit 20)) group by k.keyword order by count(k.keyword) desc limit 20");
|
||||
$k2=$state->fetchAll();
|
||||
$state=$this->db->query("select keyword,count(*) from keyword where keytype='discipline' group by keyword order by count desc limit 20");
|
||||
$k3=$state->fetchAll();
|
||||
$state=$this->db->query("select keyword,count(*) from keyword where keytype='stratum' group by keyword order by count desc limit 20");
|
||||
$k4=$state->fetchAll();
|
||||
//$state=$db->query("select keyword,count(*) from keyword where keytype='temporal' group by keyword order by count desc limit 20");
|
||||
$state=$this->db->query("select k.keyword,count(k.keyword) from keyword k left join normalmetadata m on k.id=m.id where k.keytype='temporal' and (m.uuid in (select uuid from dataorder group by uuid order by count(uuid) desc limit 20)) group by k.keyword order by count(k.keyword) desc limit 20");
|
||||
$state=$this->db->query("select keyword,count(*) from keyword where keytype='temporal' group by keyword order by count desc limit 20");
|
||||
//$state=$this->db->query("select k.keyword,count(k.keyword) from keyword k left join normalmetadata m on k.id=m.id where k.keytype='temporal' and (m.uuid in (select uuid from dataorder group by uuid order by count(uuid) desc limit 20)) group by k.keyword order by count(k.keyword) desc limit 20");
|
||||
$k5=$state->fetchAll();
|
||||
$this->view->keywords=array('place'=>$k1,'theme'=>$k2,'discipline'=>$k3,'stratum'=>$k4,'temporal'=>$k5);
|
||||
//最新10个入库数据
|
||||
|
@ -190,12 +191,17 @@ class DataController extends Zend_Controller_Action
|
|||
{
|
||||
$id = (int)$this->_request->getParam('id');
|
||||
$key = $this->_request->getParam('key');
|
||||
$keytype = $this->_request->getParam('keytype');
|
||||
$page=(int)$this->_request->getParam('page');
|
||||
if (empty($page)) $page=1;
|
||||
$limit=10;
|
||||
$offset=$limit*($page-1);
|
||||
$state=$this->db->query('select keyword,count(*),keytype from keyword group by keyword,keytype order by keytype,keyword,count desc');
|
||||
$sql='select keyword,count(*),keytype from keyword ';
|
||||
if (!empty($keytype) && ($keytype=='place' || $keytype=='theme' || $keytype=='discipline'||$keytype=='temporal')) $sql.=" where keytype='".$keytype."'";
|
||||
$sql.=' group by keyword,keytype order by keytype,keyword,count desc';
|
||||
$state=$this->db->query($sql);
|
||||
$this->view->keywords=$state->fetchAll();
|
||||
|
||||
if ($id>0 or !empty($key)) {
|
||||
if (empty($key)) {
|
||||
$where=$this->db->quoteInto('id = ?',$id);
|
||||
|
@ -204,6 +210,7 @@ class DataController extends Zend_Controller_Action
|
|||
}
|
||||
$this->view->codename=$key;
|
||||
$sql=$this->db->quoteInto('select count(m.id) from normalmetadata m,keyword k where m.id=k.id and k.keyword=?',$key);
|
||||
|
||||
$state=$this->db->query($sql);
|
||||
$row=$state->fetchAll();
|
||||
$sum=$row[0]['count'];
|
||||
|
@ -555,7 +562,12 @@ class DataController extends Zend_Controller_Action
|
|||
$rs=$this->db->fetchRow($sql,array((int)$row->projection));
|
||||
if ($rs) $this->view->projection=$rs->proj4text;
|
||||
}
|
||||
$this->view->keys=$this->db->fetchAll("select * from keyword where id=? order by keytype,ts_created",array($id));
|
||||
|
||||
$sql = "select * from keyword where id=? order by keytype,ts_created";
|
||||
$sth = $this->db->prepare($sql);
|
||||
$rs = $sth->execute(array($id));
|
||||
$this->view->keys = $sth->fetchAll(PDO::FETCH_BOTH);
|
||||
|
||||
$sql='select c.code,cc.name,cc.name_zh from category c,categorycode cc where c.code=cc.code and c.id= ?';
|
||||
$state=$this->db->query($sql,array($id));
|
||||
$this->view->category=$state->fetchAll();
|
||||
|
@ -603,9 +615,9 @@ class DataController extends Zend_Controller_Action
|
|||
$sql="select a.*,array_to_string(array(select author from knl_author t where t.item_id=a.item_id order by place asc),'; ') as author from knl_article a where (";
|
||||
foreach($this->view->keys as $k)
|
||||
{
|
||||
if ($k->keytype=='theme')
|
||||
if ($k['keytype']=='theme')
|
||||
{
|
||||
$sql.=" a.title like '%".$k->keyword."%' or ";
|
||||
$sql.=" a.title like '%".$k['keyword']."%' or ";
|
||||
}
|
||||
}
|
||||
$sql.=" 1<>1) order by a.ts_created desc limit 10";
|
||||
|
@ -638,6 +650,10 @@ class DataController extends Zend_Controller_Action
|
|||
}
|
||||
}
|
||||
$this->view->data_archives = $data_archives;
|
||||
//支持项目
|
||||
include_once("data/Fund.php");
|
||||
$fund = new Fund($this->db);
|
||||
$this->view->fund = $fund->fetch($uuid);
|
||||
|
||||
//自动跳转
|
||||
$sql="select s.* from datasource d left join source s on d.sourceid=s.id where d.uuid=?";
|
||||
|
@ -914,26 +930,41 @@ class DataController extends Zend_Controller_Action
|
|||
{
|
||||
$color = 'background:'.$color.';color:#FFFFFF;';
|
||||
}
|
||||
$replyhtml .= "
|
||||
<div class='comment-content' style='width:90%;margin:5px auto;'><span class='title' style='$color'>".
|
||||
$v['username']."$usertype 回复于".date('Y-m-d H:i:s',strtotime($v['ts_created']))."</span>
|
||||
<p>".($v['body'])."</p>
|
||||
</div>";
|
||||
$img = $avatar->Get($v['email'],48);
|
||||
$replyhtml .='
|
||||
<div class="media" style="background:#cecece;border-radius:6px 6px 6px 6px;">
|
||||
<a class="pull-left" href="javascript:void(0);">
|
||||
<img class="media-object img-rounded" src="'.$img.'">
|
||||
</a>
|
||||
<div class="media-body">
|
||||
<span class="pull-right">回复于'.date('Y-m-d H:i:s',strtotime($v['ts_created'])).'</span>
|
||||
<h5 class="media-heading">'.$v['username'].' '.$usertype.'</h5>
|
||||
'.$v['body'].'
|
||||
</div>
|
||||
</div>
|
||||
';
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
$img = $avatar->Get($c['email'],30);
|
||||
$img = '<img src="'.$img.'" />';
|
||||
$img = $avatar->Get($c['email'],64);
|
||||
//$img = '<img src="'.$img.'" />';
|
||||
|
||||
$author = $c['author'];
|
||||
$author = ($c['url'])?'<a href="'.$c['url'].'">'.$author.'</a>':$author;
|
||||
$author = '<div class="post_name">'.$author."</div>";
|
||||
$time = '<div class="post_time">发表于'.date('Y-m-d H:i:s',strtotime($c['ts_created'])).'</div>';
|
||||
print "
|
||||
<div class='comment-content'><div class='title'>".$img.$author.$time."</div>
|
||||
<p>".($c['content'])."</p>
|
||||
$replyhtml
|
||||
</div>";
|
||||
$author = ''.$author."";
|
||||
$time = '发表于'.date('Y-m-d H:i:s',strtotime($c['ts_created'])).'';
|
||||
print '
|
||||
<div class="media" style="background:#eee;border-radius:6px 6px 6px 6px;">
|
||||
<img class="media-object img-rounded pull-left" src="'.$img.'">
|
||||
<div class="media-body">
|
||||
<span class="pull-right">'.$time.'</span>
|
||||
<h4 class="media-heading">'.$c['author'].'</h4>
|
||||
'.$c['content'].'
|
||||
'.$replyhtml.'
|
||||
</div>
|
||||
</div>
|
||||
';
|
||||
}
|
||||
echo '<div class="paginator">'.$paginator.'</div>';
|
||||
}//else echo "<li>No comments.</li>";
|
||||
|
@ -946,7 +977,6 @@ class DataController extends Zend_Controller_Action
|
|||
*/
|
||||
function todownloadAction() {
|
||||
|
||||
$this->_helper->layout->setLayout('layout-bootstrap');
|
||||
$this->view->pageID = "account-dataorder";
|
||||
|
||||
$this->_helper->viewRenderer('onlineapp-download');
|
||||
|
@ -1427,6 +1457,7 @@ class DataController extends Zend_Controller_Action
|
|||
*/
|
||||
function orderAction()
|
||||
{
|
||||
$this->view->pageID = "account-dataorder";
|
||||
$uuid=$this->_request->getParam('uuid');
|
||||
$del = $this->_request->getParam('del');
|
||||
$apply = $this->_request->getParam('apply');
|
||||
|
@ -1658,7 +1689,7 @@ class DataController extends Zend_Controller_Action
|
|||
$sum=$row[0]['count'];
|
||||
$select=$this->db->select();
|
||||
$select->from('normalmetadata as m','m.*')
|
||||
->order('m.title desc')->limitPage($page,$this->limit);
|
||||
->order('m.title desc')->limitPage($page,9);
|
||||
$this->view->metadata = $this->db->fetchAll($select);
|
||||
$this->view->page=new Pagination($sum,$page,$this->limit);
|
||||
}
|
||||
|
@ -1914,5 +1945,60 @@ class DataController extends Zend_Controller_Action
|
|||
$this->getResponse()->setHeader('Content-Type', 'application/json')->appendBody(json_encode($data,JSON_NUMERIC_CHECK));
|
||||
return true;
|
||||
}
|
||||
function organizationAction()
|
||||
{
|
||||
$page = $this->_request->getParam('page');
|
||||
$name = $this->_request->getParam('name');
|
||||
$state=$this->db->query("select distinct responsible.organisation from responsible left join role on role.resid=responsible.id where role.role in ('pointOfContact','resourceProvider','owner')");
|
||||
$this->view->organisation=$state->fetchAll();
|
||||
if (!empty($name)) {
|
||||
$this->view->codename=$name;
|
||||
$sql="select distinct m.* from normalmetadata m left join role r on m.uuid=r.uuid left join responsible s on r.resid=s.id where r.role in ('pointOfContact','resourceProvider','owner') and s.organisation=?";
|
||||
$sth = $this->db->prepare($sql);
|
||||
$sth->execute(array($name));
|
||||
$rows = $sth->fetchAll();
|
||||
$paginator = Zend_Paginator::factory($rows);
|
||||
$paginator->setCurrentPageNumber($this->_getParam('page'));
|
||||
$paginator->setItemCountPerPage(10);
|
||||
$paginator->setView($this->view);
|
||||
Zend_View_Helper_PaginationControl::setDefaultViewPartial('pagination_param.phtml');
|
||||
$this->view->paginator=$paginator;
|
||||
} else {
|
||||
//提供全部分类列表
|
||||
}
|
||||
}
|
||||
function fundAction()
|
||||
{
|
||||
$id = (int)$this->_request->getParam('id');
|
||||
if (!empty($id)) {
|
||||
$sql="select * from fund where id=?";
|
||||
$this->view->fund=$this->db->fetchRow($sql,array($id));
|
||||
if ($this->view->fund) {
|
||||
$sql="select distinct m.* from normalmetadata m left join mdfund mf on m.uuid=mf.uuid where mf.fid=?";
|
||||
$sth = $this->db->prepare($sql);
|
||||
$sth->execute(array($id));
|
||||
$rows = $sth->fetchAll();
|
||||
$paginator = Zend_Paginator::factory($rows);
|
||||
$paginator->setCurrentPageNumber($this->_getParam('page'));
|
||||
$paginator->setItemCountPerPage(10);
|
||||
$paginator->setView($this->view);
|
||||
Zend_View_Helper_PaginationControl::setDefaultViewPartial('pagination_param.phtml');
|
||||
$this->view->paginator=$paginator;
|
||||
}
|
||||
} else {
|
||||
//提供全部分类列表
|
||||
$sql="select f.id,f.title,f.fund_id,f.fund_type,f.ts_created,count(m.id) as datacount,sum(md.filesize) as filesize from fund f left join mdfund m on f.id=m.fid left join metadata md on m.uuid=md.uuid group by f.id,f.title,f.fund_id,f.fund_type,f.ts_created order by f.ts_created desc";
|
||||
$sth = $this->db->prepare($sql);
|
||||
$sth->execute();
|
||||
$rows = $sth->fetchAll();
|
||||
$paginator = Zend_Paginator::factory($rows);
|
||||
$paginator->setCurrentPageNumber($this->_getParam('page'));
|
||||
$paginator->setItemCountPerPage(10);
|
||||
$paginator->setView($this->view);
|
||||
Zend_View_Helper_PaginationControl::setDefaultViewPartial('pagination_param.phtml');
|
||||
$this->view->paginator=$paginator;
|
||||
$this->_helper->viewRenderer('fund-list');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -6,7 +6,21 @@ class GlacierController extends DataController
|
|||
function preDispatch()
|
||||
{
|
||||
parent::preDispatch();
|
||||
$this->_helper->layout->setLayout('glacier');
|
||||
//$this->_helper->layout->setLayout('glacier');
|
||||
$acName = $this->_request->getActionName();
|
||||
if(in_array($acName,array("rs","dem")))
|
||||
{
|
||||
$this->view->pageIn = "collapse1";
|
||||
}
|
||||
if(in_array($acName,array("glacier","lake")))
|
||||
{
|
||||
$this->view->pageIn = "collapse2";
|
||||
}
|
||||
if(in_array($acName,array("meteo","hydro","gps",'lidar','material','movement','physical','photogrammetry','frozensoil','vegetation','quatemary')))
|
||||
{
|
||||
$this->view->pageIn = "collapse3";
|
||||
}
|
||||
$this->view->pageID = "glacier-".$acName;
|
||||
}
|
||||
|
||||
function indexAction()
|
||||
|
@ -69,8 +83,8 @@ class GlacierController extends DataController
|
|||
$offset=$this->limit*($page-1);
|
||||
$state=$this->db->query("select count(*) from normalmetadata where uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='glacier') and id in (select id from keyword where keytype='theme' and (keyword='遥感影像' or keyword='DEM'))");
|
||||
$row=$state->fetchAll();
|
||||
$sum=$row[0]['count'];
|
||||
$sql="select uuid,title from normalmetadata where uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='glacier') and id in (select id from keyword where keytype='theme' and (keyword='遥感影像' or keyword='DEM')) order by timebegin,title limit ? offset ?";
|
||||
$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;
|
||||
|
@ -87,48 +101,48 @@ class GlacierController extends DataController
|
|||
}
|
||||
|
||||
function inventoryAction()
|
||||
{
|
||||
{
|
||||
$page=(int)$this->_request->getParam('page');
|
||||
if (empty($page)) $page=1;
|
||||
$offset=$this->limit*($page-1);
|
||||
$state=$this->db->query("select count(*) from normalmetadata where uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='glacier') and id in (select id from keyword where keytype='theme' and (keyword='冰川编目' or keyword='冰湖编目'))");
|
||||
$row=$state->fetchAll();
|
||||
$sum=$row[0]['count'];
|
||||
$sql="select uuid,title from normalmetadata where uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='glacier') and id in (select id from keyword where keytype='theme' and (keyword='冰川编目' or keyword='冰湖编目')) order by timebegin,title limit ? offset ?";
|
||||
$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()
|
||||
{
|
||||
$this->getmd('冰川编目');
|
||||
}
|
||||
}
|
||||
|
||||
function lakeAction()
|
||||
{
|
||||
$this->getmd('冰湖编目');
|
||||
}
|
||||
|
||||
function fieldAction()
|
||||
{
|
||||
}
|
||||
|
||||
function fieldAction()
|
||||
{
|
||||
$page=(int)$this->_request->getParam('page');
|
||||
if (empty($page)) $page=1;
|
||||
$offset=$this->limit*($page-1);
|
||||
$state=$this->db->query("select count(*) from normalmetadata where uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='glacier') and id in (select id from keyword where keytype='theme'
|
||||
and (keyword='水文' or keyword='流量' or keyword='水质' or keyword='同位素' or keyword='径流' or keyword='水位' or keyword='气象' or keyword='雨量' or keyword='GPS'
|
||||
or keyword='雷达' or keyword='雷达测厚' or keyword='冰川厚度' or keyword='物质平衡' or keyword='花杆' or keyword='运动速度' or keyword='花杆消融观测' or keyword='冰舌'
|
||||
$state=$this->db->query("select count(*) from normalmetadata where uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='glacier') and id in (select id from keyword where keytype='theme'
|
||||
and (keyword='水文' or keyword='流量' or keyword='水质' or keyword='同位素' or keyword='径流' or keyword='水位' or keyword='气象' or keyword='雨量' or keyword='GPS'
|
||||
or keyword='雷达' or keyword='雷达测厚' or keyword='冰川厚度' or keyword='物质平衡' or keyword='花杆' or keyword='运动速度' or keyword='花杆消融观测' or keyword='冰舌'
|
||||
or keyword='冰雪物理过程' or keyword='冰温' or keyword='摄影测量' or keyword='照片' or keyword='第四纪' or keyword='冻土' or keyword='植被' ))");
|
||||
$row=$state->fetchAll();
|
||||
$sum=$row[0]['count'];
|
||||
$sql="select uuid,title from normalmetadata where uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='glacier') and id in (select id from keyword where keytype='theme' and (keyword='水文' or keyword='流量' or keyword='水质' or keyword='同位素' or keyword='径流' or keyword='水位' or keyword='气象' or keyword='雨量' or keyword='GPS'
|
||||
or keyword='雷达' or keyword='雷达测厚' or keyword='冰川厚度' or keyword='物质平衡' or keyword='花杆' or keyword='运动速度' or keyword='花杆消融观测' or keyword='冰舌'
|
||||
or keyword='冰雪物理过程' or keyword='冰温' or keyword='摄影测量' or keyword='照片' or keyword='第四纪' or keyword='冻土' or keyword='植被' )) order by timebegin,title limit ? offset ?";
|
||||
$sum=$row[0]['count'];
|
||||
$sql="select uuid,title from normalmetadata where uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='glacier') and id in (select id from keyword where keytype='theme' and (keyword='水文' or keyword='流量' or keyword='水质' or keyword='同位素' or keyword='径流' or keyword='水位' or keyword='气象' or keyword='雨量' or keyword='GPS'
|
||||
or keyword='雷达' or keyword='雷达测厚' or keyword='冰川厚度' or keyword='物质平衡' or keyword='花杆' or keyword='运动速度' or keyword='花杆消融观测' or keyword='冰舌'
|
||||
or keyword='冰雪物理过程' or keyword='冰温' or keyword='摄影测量' or keyword='照片' or keyword='第四纪' or keyword='冻土' or keyword='植被' )) order by timebegin,title limit ? offset ?";
|
||||
$this->view->metadata=$this->db->fetchAll($sql,array($this->limit,$offset));
|
||||
$this->view->page=new Pagination($sum,$page,$this->limit);
|
||||
$this->view->offset=$offset+1;
|
||||
}
|
||||
|
||||
$this->view->offset=$offset+1;
|
||||
}
|
||||
|
||||
function meteoAction()
|
||||
{
|
||||
$page=(int)$this->_request->getParam('page');
|
||||
|
@ -136,8 +150,8 @@ class GlacierController extends DataController
|
|||
$offset=$this->limit*($page-1);
|
||||
$state=$this->db->query("select count(*) from normalmetadata where uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='glacier') and id in (select id from keyword where keytype='theme' and (keyword='气象' or keyword='雨量'))");
|
||||
$row=$state->fetchAll();
|
||||
$sum=$row[0]['count'];
|
||||
$sql="select uuid,title from normalmetadata where uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='glacier') and id in (select id from keyword where keytype='theme' and (keyword='气象' or keyword='雨量')) order by timebegin,title limit ? offset ?";
|
||||
$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;
|
||||
|
@ -150,8 +164,8 @@ class GlacierController extends DataController
|
|||
$offset=$this->limit*($page-1);
|
||||
$state=$this->db->query("select count(*) from normalmetadata where uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='glacier') and id in (select id from keyword where keytype='theme' and (keyword='水文' or keyword='流量' or keyword='水质' or keyword='同位素' or keyword='径流' or keyword='水位'))");
|
||||
$row=$state->fetchAll();
|
||||
$sum=$row[0]['count'];
|
||||
$sql="select uuid,title from normalmetadata where uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='glacier') and id in (select id from keyword where keytype='theme' and (keyword='水文' or keyword='流量' or keyword='水质' or keyword='同位素' or keyword='径流' or keyword='水位')) order by timebegin,title limit ? offset ?";
|
||||
$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;
|
||||
|
@ -169,13 +183,13 @@ class GlacierController extends DataController
|
|||
$offset=$this->limit*($page-1);
|
||||
$state=$this->db->query("select count(*) from normalmetadata where uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='glacier') and id in (select id from keyword where keytype='theme' and (keyword='雷达' or keyword='雷达测厚' or keyword='冰川厚度'))");
|
||||
$row=$state->fetchAll();
|
||||
$sum=$row[0]['count'];
|
||||
$sql="select uuid,title from normalmetadata where uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='glacier') and id in (select id from keyword where keytype='theme' and (keyword='雷达' or keyword='雷达测厚' or keyword='冰川厚度')) order by timebegin,title limit ? offset ?";
|
||||
$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()
|
||||
{
|
||||
$page=(int)$this->_request->getParam('page');
|
||||
|
@ -183,8 +197,8 @@ class GlacierController extends DataController
|
|||
$offset=$this->limit*($page-1);
|
||||
$state=$this->db->query("select count(*) from normalmetadata where uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='glacier') and id in (select id from keyword where keytype='theme' and (keyword='物质平衡' or keyword='花杆'))");
|
||||
$row=$state->fetchAll();
|
||||
$sum=$row[0]['count'];
|
||||
$sql="select uuid,title from normalmetadata where uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='glacier') and id in (select id from keyword where keytype='theme' and (keyword='物质平衡' or keyword='花杆')) order by timebegin,title limit ? offset ?";
|
||||
$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;
|
||||
|
@ -197,56 +211,56 @@ class GlacierController extends DataController
|
|||
$offset=$this->limit*($page-1);
|
||||
$state=$this->db->query("select count(*) from normalmetadata where uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='glacier') and id in (select id from keyword where keytype='theme' and (keyword='运动速度' or keyword='花杆消融观测' or keyword='冰舌'))");
|
||||
$row=$state->fetchAll();
|
||||
$sum=$row[0]['count'];
|
||||
$sql="select uuid,title from normalmetadata where uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='glacier') and id in (select id from keyword where keytype='theme' and (keyword='运动速度' or keyword='花杆消融观测' or keyword='冰舌')) order by timebegin,title limit ? offset ?";
|
||||
$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()
|
||||
{
|
||||
{
|
||||
$page=(int)$this->_request->getParam('page');
|
||||
if (empty($page)) $page=1;
|
||||
$offset=$this->limit*($page-1);
|
||||
$state=$this->db->query("select count(*) from normalmetadata where uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='glacier') and id in (select id from keyword where keytype='theme' and (keyword='冰雪物理过程' or keyword='冰温'))");
|
||||
$row=$state->fetchAll();
|
||||
$sum=$row[0]['count'];
|
||||
$sql="select uuid,title from normalmetadata where uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='glacier') and id in (select id from keyword where keytype='theme' and (keyword='冰雪物理过程' or keyword='冰温')) order by timebegin,title limit ? offset ?";
|
||||
$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()
|
||||
{
|
||||
{
|
||||
$page=(int)$this->_request->getParam('page');
|
||||
if (empty($page)) $page=1;
|
||||
$offset=$this->limit*($page-1);
|
||||
$state=$this->db->query("select count(*) from normalmetadata where uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='glacier') and id in (select id from keyword where keytype='theme' and (keyword='摄影测量' or keyword='照片'))");
|
||||
$row=$state->fetchAll();
|
||||
$sum=$row[0]['count'];
|
||||
$sql="select uuid,title from normalmetadata where uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='glacier') and id in (select id from keyword where keytype='theme' and (keyword='摄影测量' or keyword='照片')) order by timebegin,title limit ? offset ?";
|
||||
$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()
|
||||
{
|
||||
{
|
||||
$this->getmd('植被');
|
||||
}
|
||||
|
||||
function frozensoilAction()
|
||||
{
|
||||
{
|
||||
$this->getmd('冻土');
|
||||
}
|
||||
}
|
||||
|
||||
function quatemaryAction()
|
||||
{
|
||||
{
|
||||
$this->getmd('第四纪');
|
||||
}
|
||||
|
||||
|
||||
function listAction()
|
||||
{
|
||||
$sql="select uuid,title from normalmetadata where uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='glacier') order by timebegin,title";
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -6,8 +6,34 @@ class HiwaterController extends DataController
|
|||
function preDispatch()
|
||||
{
|
||||
parent::preDispatch();
|
||||
$this->_helper->layout->setLayout('hiwater');
|
||||
//$this->_helper->layout->setLayout('hiwater');
|
||||
$this->debug = 1;
|
||||
$acName = $this->_request->getActionName();
|
||||
if(in_array($acName,array("dem","landuse","core","bdk","eb")))
|
||||
{
|
||||
$this->view->pageIn = "collapse1";
|
||||
}
|
||||
if(in_array($acName,array("forest","dyk","plg")))
|
||||
{
|
||||
$this->view->pageIn = "collapse2";
|
||||
}
|
||||
if(in_array($acName,array("arid","hzz","yk",'zy','zynoc','lzg','lzs')))
|
||||
{
|
||||
$this->view->pageIn = "collapse3";
|
||||
}
|
||||
if(in_array($acName,array("meteo","autometeo","mobilemeteo","ec",'las','normalmeteo','regionalmeteo','doppler','hydro','airsounding')))
|
||||
{
|
||||
$this->view->pageIn = "collapse4";
|
||||
}
|
||||
if(in_array($acName,array("radiometer","airebone","lidar","widas",'asd')))
|
||||
{
|
||||
$this->view->pageIn = "collapse5";
|
||||
}
|
||||
if(in_array($acName,array("satellite")))
|
||||
{
|
||||
$this->view->pageIn = "collapse6";
|
||||
}
|
||||
$this->view->pageID = "hiwater-".$acName;
|
||||
}
|
||||
|
||||
function indexAction()
|
||||
|
|
|
@ -7,6 +7,7 @@ class IndexController extends Zend_Controller_Action
|
|||
$this->view->config = Zend_Registry::get('config');
|
||||
$this->db=Zend_Registry::get('db');
|
||||
$this->view->theme = new Theme();
|
||||
$this->view->main_nav_pageID = "index";
|
||||
}
|
||||
|
||||
function indexAction()
|
||||
|
@ -57,7 +58,7 @@ class IndexController extends Zend_Controller_Action
|
|||
$News = new Archive($this->db);
|
||||
|
||||
$time = date("Y-m-d H:i:s",time());
|
||||
$sql = "SELECT * FROM archive WHERE is_pub=true AND ts_published<'$time' AND image!='' order by ts_published desc LIMIT 5";
|
||||
$sql = "SELECT * FROM archive WHERE is_pub=true AND ts_published<'$time' AND image!='' and id in (select ar_catalog.aid from ar_category left join ar_catalog on ar_category.id=ar_catalog.cid where ar_category.code='featured') order by ts_published desc LIMIT 5";
|
||||
$sth = $this->db->query($sql);
|
||||
$rows = $sth->fetchAll(PDO::FETCH_BOTH);
|
||||
|
||||
|
@ -70,7 +71,7 @@ class IndexController extends Zend_Controller_Action
|
|||
$this->view->news = $rows;
|
||||
|
||||
$time = date("Y-m-d H:i:s",time());
|
||||
$sql = "SELECT * FROM archive WHERE is_pub=true AND ts_published<'$time' order by ts_published desc LIMIT 8 ";
|
||||
$sql = "SELECT * FROM archive WHERE is_pub=true AND ts_published<'$time' order by ts_published desc LIMIT 12 ";
|
||||
$sth = $this->db->query($sql);
|
||||
$rows = $sth->fetchAll(PDO::FETCH_BOTH);
|
||||
|
||||
|
|
|
@ -3,9 +3,6 @@ class KnowledgeController extends Zend_Controller_Action
|
|||
{
|
||||
function indexAction()
|
||||
{
|
||||
//$this->_redirect('/metadata');
|
||||
$sql="select a.author,c.* from knl_article c left join knl_author a on c.item_id=a.item_id where c.url <>'' and a.place=1 order by ts_created desc limit 10";
|
||||
$this->view->articles=$this->db->fetchAll($sql);
|
||||
}
|
||||
function preDispatch()
|
||||
{
|
||||
|
@ -13,5 +10,115 @@ class KnowledgeController extends Zend_Controller_Action
|
|||
$this->view->config = Zend_Registry::get('config');
|
||||
$this->messenger=$this->_helper->getHelper('FlashMessenger');
|
||||
$this->view->messages = $this->messenger->getMessages();
|
||||
}
|
||||
$this->view->theme=new Theme();
|
||||
}
|
||||
function datacenterAction()
|
||||
{
|
||||
$siteid="e31f5ea7-a4af-4ae3-9ac1-1a84132c4338";//site uuid from geonetowrk
|
||||
$sql="select * from mdref mr left join reference r on mr.refid=r.id where mr.uuid=? order by r.id desc";
|
||||
$sth = $this->db->prepare($sql);
|
||||
$sth->execute(array($siteid));
|
||||
$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 userAction()
|
||||
{
|
||||
$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";
|
||||
$sth = $this->db->prepare($sql);
|
||||
$sth->execute();
|
||||
$rows = $sth->fetchAll();
|
||||
$paginator = Zend_Paginator::factory($rows);
|
||||
$paginator->setCurrentPageNumber($this->_getParam('page'));
|
||||
$paginator->setItemCountPerPage(10);
|
||||
$paginator->setView($this->view);
|
||||
Zend_View_Helper_PaginationControl::setDefaultViewPartial('pagination_param.phtml');
|
||||
$this->view->paginator=$paginator;
|
||||
}
|
||||
function authorAction()
|
||||
{
|
||||
$sql="select * from reference where id in (select refid from mdref where reftype=0 and uuid in (select uuid from normalmetadata)) order by id desc";
|
||||
$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();
|
||||
$replacements = array();
|
||||
foreach($data as $k=>$v)
|
||||
{
|
||||
$patterns[]='/'.$k.'/i';
|
||||
$replacements[]=$v;
|
||||
}
|
||||
ksort($patterns);
|
||||
ksort($replacements);
|
||||
$key=preg_replace($patterns, $replacements, $key);
|
||||
}
|
||||
|
||||
if (!empty($key) && $source=='datasource') {
|
||||
$search=new SimpleSearch($key);
|
||||
$where=$search->sql_expr(array("reference"));
|
||||
$sql="select * from reference where ".$where." 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;
|
||||
$this->view->key=$key;
|
||||
$this->view->source=$source;
|
||||
$this->_helper->viewRenderer('search-data');
|
||||
}
|
||||
else if (!empty($key) && $source=='westsource') {
|
||||
$search=new SimpleSearch($key);
|
||||
$where=$search->sql_expr(array("c.title","a.author"));
|
||||
$sql="select distinct a.author,c.title,c.publisher,c.ts_created,c.ts_issued,c.item_id,c.url from knl_article c left join knl_author a on c.item_id=a.item_id where c.url <>'' and a.place=1 and $where order by ts_created desc";
|
||||
$sth = $this->db->prepare($sql);
|
||||
$sth->execute();
|
||||
$rows = $sth->fetchAll();
|
||||
$paginator = Zend_Paginator::factory($rows);
|
||||
$paginator->setCurrentPageNumber($this->_getParam('page'));
|
||||
$paginator->setItemCountPerPage(10);
|
||||
$paginator->setView($this->view);
|
||||
Zend_View_Helper_PaginationControl::setDefaultViewPartial('pagination_param.phtml');
|
||||
$this->view->paginator=$paginator;
|
||||
$this->view->key=$key;
|
||||
$this->view->source=$source;
|
||||
//$this->_helper->viewRenderer('search-data');
|
||||
}
|
||||
}
|
||||
}
|
|
@ -48,6 +48,8 @@ class ReviewController extends Zend_Controller_Action
|
|||
* 通过用户ID来获得此列表,未登录用户无权限浏览该页面
|
||||
*/
|
||||
function myreviewAction(){
|
||||
$this->view->pageID = "review-myreview";
|
||||
|
||||
$auth = Zend_Auth::getInstance();
|
||||
if($auth->hasIdentity())
|
||||
{
|
||||
|
@ -79,6 +81,8 @@ class ReviewController extends Zend_Controller_Action
|
|||
* mdstatus 中status 字段值为 0 的元数据为收稿元数据
|
||||
*/
|
||||
function draftAction(){
|
||||
$this->view->pageID = "review-draft";
|
||||
|
||||
$page=@(int)$this->_request->getParam('page');
|
||||
if (empty($page)) $page=1;
|
||||
$offset=$this->limit*($page-1);
|
||||
|
@ -98,6 +102,8 @@ class ReviewController extends Zend_Controller_Action
|
|||
* mdstatus 中 status 字段值为 1 的元数据为进入评审的元数据
|
||||
*/
|
||||
function acceptAction(){
|
||||
$this->view->pageID = "review-accept";
|
||||
|
||||
$page=@(int)$this->_request->getParam('page');
|
||||
if (empty($page)) $page=1;
|
||||
$offset=$this->limit*($page-1);
|
||||
|
@ -117,6 +123,7 @@ class ReviewController extends Zend_Controller_Action
|
|||
* mdstatus 中 status 字段值为 2,3,4 的元数据为正在进行评审的元数据
|
||||
*/
|
||||
function inreviewAction(){
|
||||
$this->view->pageID = "review-inreview";
|
||||
$page=@(int)$this->_request->getParam('page');
|
||||
if (empty($page)) $page=1;
|
||||
$offset=$this->limit*($page-1);
|
||||
|
@ -136,6 +143,7 @@ class ReviewController extends Zend_Controller_Action
|
|||
* mdstatus 中 status 字段值为 5 的元数据为已经通过评审的元数据
|
||||
*/
|
||||
function reviewedAction(){
|
||||
$this->view->pageID = "review-reviewed";
|
||||
$page=@(int)$this->_request->getParam('page');
|
||||
if (empty($page)) $page=1;
|
||||
$offset=$this->limit*($page-1);
|
||||
|
@ -519,7 +527,7 @@ class ReviewController extends Zend_Controller_Action
|
|||
}
|
||||
|
||||
if (!empty($key)) {
|
||||
$search=new Search($key);
|
||||
$search=new SimpleSearch($key);
|
||||
$where=$search->sql_expr(array("m.title","m.description"));
|
||||
$page=@(int)$this->_request->getParam('page');
|
||||
if (empty($page)) $page=1;
|
||||
|
@ -533,12 +541,15 @@ class ReviewController extends Zend_Controller_Action
|
|||
foreach($this->view->metadata as $k=>$v)
|
||||
{
|
||||
$this->view->metadata[$k]['statustext']=$this->rewritestatus($v['status']);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function helpAction()
|
||||
{
|
||||
{
|
||||
$archives=new Archive($this->db);
|
||||
$this->view->item=$archives->getOneArchive('元数据评审说明','help');
|
||||
$this->view->pageID = "review-help";
|
||||
}
|
||||
|
||||
|
||||
|
@ -749,6 +760,50 @@ class ReviewController extends Zend_Controller_Action
|
|||
}
|
||||
|
||||
}// denyinviteAction() 专家拒绝邀请
|
||||
|
||||
|
||||
//parameters are same as denyinviteAction
|
||||
function inviteokAction()
|
||||
{
|
||||
|
||||
$id = $this->_request->getParam('id');
|
||||
$uuid = $this->_request->getParam('uuid');
|
||||
|
||||
if(empty($id) || empty($uuid) || !is_numeric($id) ||!preg_match("/^[0-9A-Za-z]{8}-[0-9A-Za-z]{4}-[0-9A-Za-z]{4}-[0-9A-Za-z]{4}-[0-9A-Za-z]{12}$/",$uuid))
|
||||
{
|
||||
$this->view->message = "参数错误";
|
||||
}else{
|
||||
|
||||
$auth = Zend_Auth::getInstance();
|
||||
if($auth->hasIdentity())
|
||||
{
|
||||
$user = $auth->getIdentity();
|
||||
$userid = $user->id;
|
||||
|
||||
if($id==$userid)
|
||||
{
|
||||
try{
|
||||
$sql = "update mdexpertreview set status=1 where id='$id' and uuid='$uuid'";
|
||||
if($this->db->exec($sql))
|
||||
$this->view->message = "感谢您同意对该数据的评审邀请,如遇到任何问题,请联系数据中心服务人员。";
|
||||
else
|
||||
$this->view->message = "您无权限进行此操作";
|
||||
}catch(Exception $e){
|
||||
$this->view->message = $e->getMessage();
|
||||
}
|
||||
|
||||
}//end if
|
||||
else
|
||||
{
|
||||
$this->view->message = "您无权使用此通知";
|
||||
}//非本人操作,或尝试删除他人信息
|
||||
|
||||
}//end if
|
||||
else
|
||||
{
|
||||
$this->view->message = '请登录后再执行此操作,请<a href="/account/login/?href=/review/inviteok/id/'.$id.'/uuid/'.$uuid.'">点击此处登录</a>';
|
||||
}//未登录
|
||||
}
|
||||
|
||||
}// denyinviteAction() 专家拒绝邀请
|
||||
}
|
||||
|
||||
|
|
|
@ -1065,11 +1065,11 @@ class ServiceController extends Zend_Controller_Action
|
|||
{
|
||||
if($page > 0)
|
||||
{
|
||||
$pre = '<div class="pagnv"><a href="javascript:void(0);" onClick="recommend('. ($page-1) .')" class="pleft"><img src="/images/scroll_left.gif" /></a></div>';
|
||||
$pre = '<li><a href="javascript:void(0);" onClick="recommend('. ($page-1) .')">Prev</a></li>';
|
||||
}
|
||||
if($num > $pageSize*($page+1))
|
||||
{
|
||||
$next = "<div class=\"pagnv\"><a href=\"javascript:void(0);\" onclick=\"recommend(". ($page+1) .")\" class=\"pright\"><img src=\"/images/scroll_right.gif\" /></a></a></div>";
|
||||
$next = '<li><a href="javascript:void(0);" onClick="recommend('. ($page+1) .')">Next</a></li>';
|
||||
}
|
||||
}
|
||||
$sql .=" limit $pageSize offset ".$page*$pageSize;
|
||||
|
@ -1082,14 +1082,23 @@ class ServiceController extends Zend_Controller_Action
|
|||
$rows = $re->fetchAll();
|
||||
if(count($rows>0))
|
||||
{
|
||||
echo $pre;
|
||||
echo '<ul>';
|
||||
|
||||
echo '<ul class="unstyled">';
|
||||
foreach($rows as $c)
|
||||
{
|
||||
echo '<li><a target="_blank" href="/data/'.$c['uuid'].'"><span class="title">'.$c['title'].'</span><img src="/service/thumb/uuid/'.$c['uuid'].'" alt="'.$c['title'].'" title="'.$c['title'].'(推荐指数:'.$c['downtimes'].') "/></a></li>';
|
||||
echo
|
||||
'<li class="well well-small" style="overflow:hidden;">
|
||||
<img src="/service/thumb/uuid/'.$c['uuid'].'" alt="'.$c['title'].'" title="'.$c['title'].'"
|
||||
class="pull-left img-polaroid img-rounded" style="height:80px;"/>
|
||||
<h4><a target="_blank" href="/data/'.$c['uuid'].'"><span class="title">'.$c['title'].'</span></a></h4>
|
||||
<h5>推荐指数:'.$c['downtimes'].'</h5>
|
||||
</li>';
|
||||
}
|
||||
echo '</ul>';
|
||||
echo '<div class="pagination"><ul>';
|
||||
echo $pre;
|
||||
echo $next;
|
||||
echo '</ul></div>';
|
||||
}else
|
||||
{
|
||||
echo "暂无相关数据";
|
||||
|
@ -1228,7 +1237,87 @@ class ServiceController extends Zend_Controller_Action
|
|||
echo '</ul>';
|
||||
echo $pagnation;
|
||||
}//文档页面相关数据
|
||||
|
||||
|
||||
function tagdatalistAction(){
|
||||
|
||||
$this->_helper->layout->disableLayout();
|
||||
$this->_helper->viewRenderer->setNoRender();
|
||||
|
||||
$id = $this->_request->getParam('id');
|
||||
$page = $this->_getParam('page');
|
||||
|
||||
$pageSize = 10;//每页容量
|
||||
$keys=$this->db->fetchAll("select keyword from knl_keyword where item_id=$id");
|
||||
$wheresql = array();
|
||||
$where2sql=array();
|
||||
foreach ($keys as $k=>$v)
|
||||
{
|
||||
//split chinese keyword and english keyword
|
||||
$k1=explode('(',$v['keyword']);
|
||||
if (is_array($k1) && count($k1)>1)
|
||||
{
|
||||
$k2=substr($k1[1],0,-1);
|
||||
$wheresql[] = " a.keyword like '%".$k2."%' ";
|
||||
$where2sql[] = " title like '%".$k2."%' ";
|
||||
$where2sql[] = " description like '%".$k2."%' ";
|
||||
}
|
||||
$wheresql[] = " a.keyword like '%".$k1[0]."%' ";
|
||||
$where2sql[] = " title like '%".$k1[0]."%' ";
|
||||
$where2sql[] = " description like '%".$k1[0]."%' ";
|
||||
}
|
||||
$wheresql[] = " 1<>1 ";
|
||||
$wheresql = join(" or ",$wheresql);
|
||||
$where2sql[] = " 1<>1 ";
|
||||
$where2sql = join(" or ",$where2sql);
|
||||
|
||||
$sql = "select m.title,m.uuid from normalmetadata m where id in (select distinct id from keyword a where $wheresql) or $where2sql";
|
||||
$pagnation="";
|
||||
if(isset($page))
|
||||
{
|
||||
$page=intval($page);
|
||||
if($page<0)
|
||||
{
|
||||
$page=0;
|
||||
}
|
||||
$re = $this->db->query($sql);
|
||||
$rows = $re->fetchAll();
|
||||
$num = count($rows);
|
||||
if( $num > $pageSize)
|
||||
{
|
||||
if($page <= 0)
|
||||
{
|
||||
$pre = '<span class="disabled"><</span>';
|
||||
}else{
|
||||
$pre = '<a href="javascript:void(0);" onClick="showdata('.$id.','. ($page-1) .')"><</a>';
|
||||
}
|
||||
if($num <= $pageSize*($page+1))
|
||||
{
|
||||
$next = '<span class="disabled">></span>';
|
||||
}else{
|
||||
$next = "<a href=\"javascript:void(0);\" onclick=\"showdata(".$id.",". ($page+1) .")\">></a>";
|
||||
}
|
||||
|
||||
$pagnation = '<div class="paginationControl">'.$pre.$next.'<span class="disabled">共 '.$num.' 条</span></div>';
|
||||
}
|
||||
$sql .="limit $pageSize offset ".$page*$pageSize;
|
||||
}
|
||||
else
|
||||
{
|
||||
$sql .="limit $pageSize";
|
||||
}
|
||||
$re = $this->db->query($sql);
|
||||
$rows = $re->fetchAll();
|
||||
|
||||
echo '<strong>数据和文献存在一定的相关性,仅供参考。</strong><ul>';
|
||||
foreach($rows as $c)
|
||||
{
|
||||
echo '<li><a href="/data/'.$c['uuid'].'">'.$c['title'].'</a></li>';
|
||||
}
|
||||
if (!$rows) echo '<li>很抱歉,未找到相关的数据</li>';
|
||||
echo '</ul>';
|
||||
echo $pagnation;
|
||||
}//利用关键词查找的相关数据
|
||||
|
||||
function geonetworkAction()
|
||||
{
|
||||
//$this->_helper->viewRenderer->setNoRender();
|
||||
|
@ -1248,7 +1337,8 @@ class ServiceController extends Zend_Controller_Action
|
|||
$this->view->login=$this->config->geonetwork->url.'srv/en/xml.user.login?username='.$row->username.'&password='.$row->pwd;
|
||||
}
|
||||
$this->view->url = $url;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/*
|
||||
输出验证码
|
||||
|
|
|
@ -1,306 +1,346 @@
|
|||
<?php
|
||||
class WaterController extends DataController
|
||||
{
|
||||
private $limit=20;
|
||||
function indexAction()
|
||||
{
|
||||
}
|
||||
function documentAction()
|
||||
{
|
||||
$page=(int)$this->_request->getParam('page');
|
||||
if (empty($page)) $page=1;
|
||||
$offset=$this->limit*($page-1);
|
||||
$row=$this->db->fetchAll("select count(*) from reference where id in (select refid from mdref where uuid in (select m.uuid from normalmetadata m left join datasource d on m.uuid=d.uuid left join source s on s.id=d.sourceid where s.code='water'))");
|
||||
$sum=$row[0]['count'];
|
||||
$sql="select * from reference where id in (select refid from mdref where uuid in (select m.uuid from normalmetadata m left join datasource d on m.uuid=d.uuid left join source s on s.id=d.sourceid where s.code='water')) order by reference limit ? offset ?";
|
||||
$this->view->refs=$this->db->fetchAll($sql,array($this->limit,$offset));
|
||||
$this->view->page=new Pagination($sum,$page,$this->limit,"文献");
|
||||
$this->view->offset=$offset+1;
|
||||
}
|
||||
function surveystdAction()
|
||||
{
|
||||
}
|
||||
function coldAction()
|
||||
{
|
||||
$this->getmd('上游寒区水文试验区');
|
||||
}
|
||||
function bgAction()
|
||||
{
|
||||
$this->getmd('冰沟流域加密观测区');
|
||||
}
|
||||
function arAction()
|
||||
{
|
||||
$this->getmd('阿柔加密观测区');
|
||||
}
|
||||
function bdkAction()
|
||||
{
|
||||
$this->getmd('扁都口加密观测区');
|
||||
}
|
||||
function ebAction()
|
||||
{
|
||||
$this->getmd('峨堡加密观测区');
|
||||
}
|
||||
function forestAction()
|
||||
{
|
||||
$this->getmd('森林水文试验区');
|
||||
}
|
||||
function dykAction()
|
||||
{
|
||||
$this->getmd('大野口流域加密观测区');
|
||||
}
|
||||
function plgAction()
|
||||
{
|
||||
$this->getmd('排露沟流域加密观测区');
|
||||
}
|
||||
function aridAction()
|
||||
{
|
||||
$this->getmd('中游干旱区水文试验区');
|
||||
}
|
||||
function hzzAction()
|
||||
{
|
||||
$this->getmd('花寨子荒漠加密观测区');
|
||||
}
|
||||
function ykAction()
|
||||
{
|
||||
$this->getmd('盈科绿洲加密观测区');
|
||||
}
|
||||
function zyAction()
|
||||
{
|
||||
$this->getmd('张掖市加密观测区');
|
||||
}
|
||||
function zynocAction()
|
||||
{
|
||||
$this->getmd('观象台加密观测区');
|
||||
}
|
||||
function lzgAction()
|
||||
{
|
||||
$this->getmd('临泽草地加密观测区');
|
||||
}
|
||||
function lzsAction()
|
||||
{
|
||||
$this->getmd('临泽站加密观测区');
|
||||
}
|
||||
function meteoAction()
|
||||
{
|
||||
$this->getmd('气象水文','theme');
|
||||
}
|
||||
function autometeoAction()
|
||||
{
|
||||
$this->getmd('气象观测','theme');
|
||||
}
|
||||
function mobilemeteoAction()
|
||||
{
|
||||
$this->getmd('移动气象观测','theme');
|
||||
}
|
||||
function ecAction()
|
||||
{
|
||||
$this->getmd('涡动相关','theme');
|
||||
}
|
||||
function lasAction()
|
||||
{
|
||||
$this->getmd('大孔径闪烁仪','theme');
|
||||
}
|
||||
function normalmeteoAction()
|
||||
{
|
||||
$this->getmd('常规气象观测','theme');
|
||||
}
|
||||
function regionalmeteoAction()
|
||||
{
|
||||
$this->getmd('区域气象观测','theme');
|
||||
}
|
||||
function dopplerAction()
|
||||
{
|
||||
$this->getmd('降雨','theme');
|
||||
}
|
||||
function hydroAction()
|
||||
{
|
||||
$this->getmd('水文','theme');
|
||||
}
|
||||
function airsoundingAction()
|
||||
{
|
||||
$this->getmd('大气廓线','theme');
|
||||
}
|
||||
function aireboneAction()
|
||||
{
|
||||
$this->getmd('航空遥感','theme');
|
||||
}
|
||||
function radiometerAction()
|
||||
{
|
||||
$page=(int)$this->_request->getParam('page');
|
||||
if (empty($page)) $page=1;
|
||||
$offset=$this->limit*($page-1);
|
||||
$state=$this->db->query("select count(*) from normalmetadata where uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='water') and id in (select id from keyword where keytype='theme' and keyword ilike '%波段机载微波辐射计') and id in (select id from keyword where keytype='theme' and keyword='航空遥感')");
|
||||
$row=$state->fetchAll();
|
||||
$sum=$row[0]['count'];
|
||||
$sql="select uuid,title from normalmetadata where uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='water') and id in (select id from keyword where keytype='theme' and keyword ilike '%波段机载微波辐射计') and id in (select id from keyword where keytype='theme' and keyword='航空遥感') order by timebegin,title limit ? offset ?";
|
||||
$this->view->metadata=$this->db->fetchAll($sql,array($this->limit,$offset));
|
||||
$this->view->page=new Pagination($sum,$page,$this->limit);
|
||||
$this->view->offset=$offset+1;
|
||||
}
|
||||
function lidarAction()
|
||||
{
|
||||
//$this->getmd('激光雷达','theme');
|
||||
$page=(int)$this->_request->getParam('page');
|
||||
if (empty($page)) $page=1;
|
||||
$offset=$this->limit*($page-1);
|
||||
$state=$this->db->query("select count(*) from normalmetadata where uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='water') and id in (select id from keyword where keytype='theme' and keyword='激光雷达') and id in (select id from keyword where keytype='theme' and keyword='航空遥感')");
|
||||
$row=$state->fetchAll();
|
||||
$sum=$row[0]['count'];
|
||||
$sql="select uuid,title from normalmetadata where uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='water') and id in (select id from keyword where keytype='theme' and keyword='激光雷达') and id in (select id from keyword where keytype='theme' and keyword='航空遥感') order by timebegin,title limit ? offset ?";
|
||||
$this->view->metadata=$this->db->fetchAll($sql,array($this->limit,$offset));
|
||||
$this->view->page=new Pagination($sum,$page,$this->limit);
|
||||
$this->view->offset=$offset+1;
|
||||
}
|
||||
function widasAction()
|
||||
{
|
||||
//$this->getmd('WiDAS','theme');
|
||||
$page=(int)$this->_request->getParam('page');
|
||||
if (empty($page)) $page=1;
|
||||
$offset=$this->limit*($page-1);
|
||||
$state=$this->db->query("select count(*) from normalmetadata where uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='water') and id in (select id from keyword where keytype='theme' and keyword='红外广角双模式成像仪WiDAS') and id in (select id from keyword where keytype='theme' and keyword='航空遥感')");
|
||||
$row=$state->fetchAll();
|
||||
$sum=$row[0]['count'];
|
||||
$sql="select uuid,title from normalmetadata where uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='water') and id in (select id from keyword where keytype='theme' and keyword='红外广角双模式成像仪WiDAS') and id in (select id from keyword where keytype='theme' and keyword='航空遥感') order by timebegin,title limit ? offset ?";
|
||||
$this->view->metadata=$this->db->fetchAll($sql,array($this->limit,$offset));
|
||||
$this->view->page=new Pagination($sum,$page,$this->limit);
|
||||
$this->view->offset=$offset+1;
|
||||
}
|
||||
function asdAction()
|
||||
{
|
||||
//$this->getmd('成像光谱仪OMIS-II','theme');
|
||||
$page=(int)$this->_request->getParam('page');
|
||||
if (empty($page)) $page=1;
|
||||
$offset=$this->limit*($page-1);
|
||||
$state=$this->db->query("select count(*) from normalmetadata where uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='water') and id in (select id from keyword where keytype='theme' and keyword='成像光谱仪OMIS-II') and id in (select id from keyword where keytype='theme' and keyword='航空遥感')");
|
||||
$row=$state->fetchAll();
|
||||
$sum=$row[0]['count'];
|
||||
$sql="select uuid,title from normalmetadata where uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='water') and id in (select id from keyword where keytype='theme' and keyword='成像光谱仪OMIS-II') and id in (select id from keyword where keytype='theme' and keyword='航空遥感') order by timebegin,title limit ? offset ?";
|
||||
$this->view->metadata=$this->db->fetchAll($sql,array($this->limit,$offset));
|
||||
$this->view->page=new Pagination($sum,$page,$this->limit);
|
||||
$this->view->offset=$offset+1;
|
||||
}
|
||||
function satelliteAction()
|
||||
{
|
||||
$this->getmd('卫星遥感','theme');
|
||||
}
|
||||
|
||||
function tagAction()
|
||||
{
|
||||
$key = $this->_request->getParam('key');
|
||||
$page=(int)$this->_request->getParam('page');
|
||||
if (empty($page)) $page=1;
|
||||
$offset=$this->limit*($page-1);
|
||||
if (!empty($key)) {
|
||||
$this->view->codename=$key;
|
||||
$sql=$this->db->quoteInto('select count(id) from keyword where keyword=?',$key);
|
||||
$state=$this->db->query($sql);
|
||||
$row=$state->fetchAll();
|
||||
$sum=$row[0]['count'];
|
||||
$sql="select uuid,title,id,description from normalmetadata where uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='water') and id in (select id from keyword where keyword='".$key."') order by timebegin,title limit ? offset ?";
|
||||
$this->view->metadata=$this->db->fetchAll($sql,array($this->limit,$offset));
|
||||
$this->view->page=new Pagination($sum,$page,$this->limit);
|
||||
} else {
|
||||
$state=$this->db->query("select keyword.keyword,count(*) from keyword left join normalmetadata m on keyword.id=m.id where keyword.keytype='place' and m.uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='water') group by keyword.keyword order by count desc");
|
||||
$k1=$state->fetchAll();
|
||||
$state=$this->db->query("select k.keyword,count(k.keyword) from keyword k left join normalmetadata m on k.id=m.id where k.keytype='theme' and m.uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='water') group by k.keyword order by k.keyword");
|
||||
<?php
|
||||
class WaterController extends DataController
|
||||
{
|
||||
private $limit=20;
|
||||
function preDispatch()
|
||||
{
|
||||
parent::preDispatch();
|
||||
$this->debug = 0;
|
||||
$acName = $this->_request->getActionName();
|
||||
if(in_array($acName,array("cold","bg","ar","bdk","eb")))
|
||||
{
|
||||
$this->view->pageIn = "collapse1";
|
||||
}
|
||||
if(in_array($acName,array("forest","dyk","plg")))
|
||||
{
|
||||
$this->view->pageIn = "collapse2";
|
||||
}
|
||||
if(in_array($acName,array("arid","hzz","yk",'zy','zynoc','lzg','lzs')))
|
||||
{
|
||||
$this->view->pageIn = "collapse3";
|
||||
}
|
||||
if(in_array($acName,array("meteo","autometeo","mobilemeteo","ec",'las','normalmeteo','regionalmeteo','doppler','hydro','airsounding')))
|
||||
{
|
||||
$this->view->pageIn = "collapse4";
|
||||
}
|
||||
if(in_array($acName,array("radiometer","airebone","lidar","widas",'asd')))
|
||||
{
|
||||
$this->view->pageIn = "collapse5";
|
||||
}
|
||||
if(in_array($acName,array("satellite")))
|
||||
{
|
||||
$this->view->pageIn = "collapse6";
|
||||
}
|
||||
if(in_array($acName,array("surveystd","document")))
|
||||
{
|
||||
$this->view->pageIn = "collapse7";
|
||||
}
|
||||
$this->view->pageID = "water-".$acName;
|
||||
}
|
||||
|
||||
function indexAction()
|
||||
{
|
||||
}
|
||||
function documentAction()
|
||||
{
|
||||
$page=(int)$this->_request->getParam('page');
|
||||
if (empty($page)) $page=1;
|
||||
$offset=$this->limit*($page-1);
|
||||
$row=$this->db->fetchAll("select count(*) from reference where id in (select refid from mdref where uuid in (select m.uuid from normalmetadata m left join datasource d on m.uuid=d.uuid left join source s on s.id=d.sourceid where s.code='water'))");
|
||||
$sum=$row[0]['count'];
|
||||
$sql="select * from reference where id in (select refid from mdref where uuid in (select m.uuid from normalmetadata m left join datasource d on m.uuid=d.uuid left join source s on s.id=d.sourceid where s.code='water')) order by reference limit ? offset ?";
|
||||
$this->view->refs=$this->db->fetchAll($sql,array($this->limit,$offset));
|
||||
$this->view->page=new Pagination($sum,$page,$this->limit,"文献");
|
||||
$this->view->offset=$offset+1;
|
||||
}
|
||||
function surveystdAction()
|
||||
{
|
||||
}
|
||||
function coldAction()
|
||||
{
|
||||
$this->getmd('上游寒区水文试验区');
|
||||
}
|
||||
function bgAction()
|
||||
{
|
||||
$this->getmd('冰沟流域加密观测区');
|
||||
}
|
||||
function arAction()
|
||||
{
|
||||
$this->getmd('阿柔加密观测区');
|
||||
}
|
||||
function bdkAction()
|
||||
{
|
||||
$this->getmd('扁都口加密观测区');
|
||||
}
|
||||
function ebAction()
|
||||
{
|
||||
$this->getmd('峨堡加密观测区');
|
||||
}
|
||||
function forestAction()
|
||||
{
|
||||
$this->getmd('森林水文试验区');
|
||||
}
|
||||
function dykAction()
|
||||
{
|
||||
$this->getmd('大野口流域加密观测区');
|
||||
}
|
||||
function plgAction()
|
||||
{
|
||||
$this->getmd('排露沟流域加密观测区');
|
||||
}
|
||||
function aridAction()
|
||||
{
|
||||
$this->getmd('中游干旱区水文试验区');
|
||||
}
|
||||
function hzzAction()
|
||||
{
|
||||
$this->getmd('花寨子荒漠加密观测区');
|
||||
}
|
||||
function ykAction()
|
||||
{
|
||||
$this->getmd('盈科绿洲加密观测区');
|
||||
}
|
||||
function zyAction()
|
||||
{
|
||||
$this->getmd('张掖市加密观测区');
|
||||
}
|
||||
function zynocAction()
|
||||
{
|
||||
$this->getmd('观象台加密观测区');
|
||||
}
|
||||
function lzgAction()
|
||||
{
|
||||
$this->getmd('临泽草地加密观测区');
|
||||
}
|
||||
function lzsAction()
|
||||
{
|
||||
$this->getmd('临泽站加密观测区');
|
||||
}
|
||||
function meteoAction()
|
||||
{
|
||||
$this->getmd('气象水文','theme');
|
||||
}
|
||||
function autometeoAction()
|
||||
{
|
||||
$this->getmd('气象观测','theme');
|
||||
}
|
||||
function mobilemeteoAction()
|
||||
{
|
||||
$this->getmd('移动气象观测','theme');
|
||||
}
|
||||
function ecAction()
|
||||
{
|
||||
$this->getmd('涡动相关','theme');
|
||||
}
|
||||
function lasAction()
|
||||
{
|
||||
$this->getmd('大孔径闪烁仪','theme');
|
||||
}
|
||||
function normalmeteoAction()
|
||||
{
|
||||
$this->getmd('常规气象观测','theme');
|
||||
}
|
||||
function regionalmeteoAction()
|
||||
{
|
||||
$this->getmd('区域气象观测','theme');
|
||||
}
|
||||
function dopplerAction()
|
||||
{
|
||||
$this->getmd('降雨','theme');
|
||||
}
|
||||
function hydroAction()
|
||||
{
|
||||
$this->getmd('水文','theme');
|
||||
}
|
||||
function airsoundingAction()
|
||||
{
|
||||
$this->getmd('大气廓线','theme');
|
||||
}
|
||||
function aireboneAction()
|
||||
{
|
||||
$this->getmd('航空遥感','theme');
|
||||
}
|
||||
function radiometerAction()
|
||||
{
|
||||
$page=(int)$this->_request->getParam('page');
|
||||
if (empty($page)) $page=1;
|
||||
$offset=$this->limit*($page-1);
|
||||
$state=$this->db->query("select count(*) from normalmetadata where uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='water') and id in (select id from keyword where keytype='theme' and keyword ilike '%波段机载微波辐射计') and id in (select id from keyword where keytype='theme' and keyword='航空遥感')");
|
||||
$row=$state->fetchAll();
|
||||
$sum=$row[0]['count'];
|
||||
$sql="select uuid,title from normalmetadata where uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='water') and id in (select id from keyword where keytype='theme' and keyword ilike '%波段机载微波辐射计') and id in (select id from keyword where keytype='theme' and keyword='航空遥感') order by timebegin,title limit ? offset ?";
|
||||
$this->view->metadata=$this->db->fetchAll($sql,array($this->limit,$offset));
|
||||
$this->view->page=new Pagination($sum,$page,$this->limit);
|
||||
$this->view->offset=$offset+1;
|
||||
}
|
||||
function lidarAction()
|
||||
{
|
||||
//$this->getmd('激光雷达','theme');
|
||||
$page=(int)$this->_request->getParam('page');
|
||||
if (empty($page)) $page=1;
|
||||
$offset=$this->limit*($page-1);
|
||||
$state=$this->db->query("select count(*) from normalmetadata where uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='water') and id in (select id from keyword where keytype='theme' and keyword='激光雷达') and id in (select id from keyword where keytype='theme' and keyword='航空遥感')");
|
||||
$row=$state->fetchAll();
|
||||
$sum=$row[0]['count'];
|
||||
$sql="select uuid,title from normalmetadata where uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='water') and id in (select id from keyword where keytype='theme' and keyword='激光雷达') and id in (select id from keyword where keytype='theme' and keyword='航空遥感') order by timebegin,title limit ? offset ?";
|
||||
$this->view->metadata=$this->db->fetchAll($sql,array($this->limit,$offset));
|
||||
$this->view->page=new Pagination($sum,$page,$this->limit);
|
||||
$this->view->offset=$offset+1;
|
||||
}
|
||||
function widasAction()
|
||||
{
|
||||
//$this->getmd('WiDAS','theme');
|
||||
$page=(int)$this->_request->getParam('page');
|
||||
if (empty($page)) $page=1;
|
||||
$offset=$this->limit*($page-1);
|
||||
$state=$this->db->query("select count(*) from normalmetadata where uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='water') and id in (select id from keyword where keytype='theme' and keyword='红外广角双模式成像仪WiDAS') and id in (select id from keyword where keytype='theme' and keyword='航空遥感')");
|
||||
$row=$state->fetchAll();
|
||||
$sum=$row[0]['count'];
|
||||
$sql="select uuid,title from normalmetadata where uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='water') and id in (select id from keyword where keytype='theme' and keyword='红外广角双模式成像仪WiDAS') and id in (select id from keyword where keytype='theme' and keyword='航空遥感') order by timebegin,title limit ? offset ?";
|
||||
$this->view->metadata=$this->db->fetchAll($sql,array($this->limit,$offset));
|
||||
$this->view->page=new Pagination($sum,$page,$this->limit);
|
||||
$this->view->offset=$offset+1;
|
||||
}
|
||||
function asdAction()
|
||||
{
|
||||
//$this->getmd('成像光谱仪OMIS-II','theme');
|
||||
$page=(int)$this->_request->getParam('page');
|
||||
if (empty($page)) $page=1;
|
||||
$offset=$this->limit*($page-1);
|
||||
$state=$this->db->query("select count(*) from normalmetadata where uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='water') and id in (select id from keyword where keytype='theme' and keyword='成像光谱仪OMIS-II') and id in (select id from keyword where keytype='theme' and keyword='航空遥感')");
|
||||
$row=$state->fetchAll();
|
||||
$sum=$row[0]['count'];
|
||||
$sql="select uuid,title from normalmetadata where uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='water') and id in (select id from keyword where keytype='theme' and keyword='成像光谱仪OMIS-II') and id in (select id from keyword where keytype='theme' and keyword='航空遥感') order by timebegin,title limit ? offset ?";
|
||||
$this->view->metadata=$this->db->fetchAll($sql,array($this->limit,$offset));
|
||||
$this->view->page=new Pagination($sum,$page,$this->limit);
|
||||
$this->view->offset=$offset+1;
|
||||
}
|
||||
function satelliteAction()
|
||||
{
|
||||
$this->getmd('卫星遥感','theme');
|
||||
}
|
||||
|
||||
function tagAction()
|
||||
{
|
||||
$key = $this->_request->getParam('key');
|
||||
$page=(int)$this->_request->getParam('page');
|
||||
if (empty($page)) $page=1;
|
||||
$offset=$this->limit*($page-1);
|
||||
if (!empty($key)) {
|
||||
$this->view->codename=$key;
|
||||
$sql=$this->db->quoteInto('select count(id) from keyword where keyword=?',$key);
|
||||
$state=$this->db->query($sql);
|
||||
$row=$state->fetchAll();
|
||||
$sum=$row[0]['count'];
|
||||
$sql="select uuid,title,id,description from normalmetadata where uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='water') and id in (select id from keyword where keyword='".$key."') order by timebegin,title limit ? offset ?";
|
||||
$this->view->metadata=$this->db->fetchAll($sql,array($this->limit,$offset));
|
||||
$this->view->page=new Pagination($sum,$page,$this->limit);
|
||||
} else {
|
||||
$state=$this->db->query("select keyword.keyword,count(*) from keyword left join normalmetadata m on keyword.id=m.id where keyword.keytype='place' and m.uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='water') group by keyword.keyword order by count desc");
|
||||
$k1=$state->fetchAll();
|
||||
$state=$this->db->query("select k.keyword,count(k.keyword) from keyword k left join normalmetadata m on k.id=m.id where k.keytype='theme' and m.uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='water') group by k.keyword order by k.keyword");
|
||||
$k2=$state->fetchAll();
|
||||
$state=$this->db->query("select keyword.keyword,count(*) from keyword left join normalmetadata m on keyword.id=m.id where keyword.keytype='temporal' and m.uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='water') group by keyword.keyword order by keyword.keyword");
|
||||
$k5=$state->fetchAll();
|
||||
$this->view->keywords=array('place'=>$k1,'theme'=>$k2,'discipline'=>$k3,'stratum'=>$k4,'temporal'=>$k5);
|
||||
}
|
||||
}
|
||||
|
||||
function searchAction()
|
||||
{
|
||||
$this->view->addHelperPath('helper','Zend_View_Helper_');
|
||||
$form=new SearchForm();
|
||||
$this->view->form=$form;
|
||||
//$form->submit->setLabel('快速搜索');
|
||||
$key=$this->_request->getParam('q');
|
||||
if (!empty($key)) {
|
||||
$search=new Search($key);
|
||||
$where=$search->sql_expr(array("title","description"));
|
||||
$page=@(int)$this->_request->getParam('page');
|
||||
if (empty($page)) $page=1;
|
||||
$offset=$this->limit*($page-1);
|
||||
$row=$this->db->fetchAll("select count(*) from normalmetadata where uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='water') and ".$where);
|
||||
$sum=$row[0]['count'];
|
||||
$sql="select uuid,title,id,description from normalmetadata where uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='water') and ".$where." order by timebegin,title limit ? offset ?";
|
||||
$this->view->metadata=$this->db->fetchAll($sql,array($this->limit,$offset));
|
||||
$this->view->page=new Pagination($sum,$page,$this->limit);
|
||||
$this->view->key=$key;
|
||||
$this->view->offset=$offset+1;
|
||||
}
|
||||
}
|
||||
|
||||
function timemapAction()
|
||||
{
|
||||
$sql="select id,uuid,west,south,north,east,title,timebegin,timeend from normalmetadata where uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='water') and timebegin is not null and timebegin::date>date('2007-01-01')";
|
||||
$this->view->rows=$this->db->fetchAll($sql);
|
||||
}
|
||||
|
||||
function timelineAction()
|
||||
{
|
||||
$fn="watertime.xml";
|
||||
$rows=$this->db->fetchAll("select ts_created from normalmetadata where uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='water') order by ts_created desc limit 1");
|
||||
$last_update=strtotime($rows[0]['ts_created']);
|
||||
if (!file_exists($fn) || (filemtime($fn)<$last_update))
|
||||
{
|
||||
$dateformat="M j Y";
|
||||
$rows=$this->db->fetchAll("select id,uuid,description,title,timebegin,timeend from normalmetadata where uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='water') and timebegin is not null order by timebegin,title");
|
||||
$timexml='<data>';
|
||||
foreach($rows as $row) {
|
||||
$timexml.='<event start="'.date($dateformat,strtotime($row['timebegin'])).' GMT+0800" ';
|
||||
if ($row['timeend']!='' && $row['timeend']!=$row['timebegin']) $timexml.=' end="'.date($dateformat,strtotime($row['timeend'])).'" isDuration="true"';
|
||||
$timexml.= ' title="'.htmlspecialchars(mb_substr($row['title'],11,mb_strlen($row['title'],'UTF-8')-10,'UTF-8')).'" image="/images/westdc_40w.gif" link="/water/'.$row['uuid'].'">';
|
||||
$desc_length=mb_strlen($row['description'],"UTF-8");
|
||||
$desc=mb_substr($row['description'],0,($desc_length>300)?300:$desc_length,"UTF-8");
|
||||
if ($desc_length>300) $desc.=" ...";
|
||||
$timexml.=htmlspecialchars($desc);
|
||||
$timexml.="</event>\n";
|
||||
}
|
||||
$timexml.='</data>';
|
||||
$fp=fopen($fn,'w');
|
||||
fwrite($fp,$timexml);
|
||||
fclose($fp);
|
||||
}
|
||||
}
|
||||
|
||||
function categoryAction()
|
||||
{
|
||||
$code = (int)$this->_request->getParam('code');
|
||||
$page=(int)$this->_request->getParam('page');
|
||||
if (empty($page)) $page=1;
|
||||
$offset=$this->limit*($page-1);
|
||||
$row=$this->db->fetchAll("select count(*) from normalmetadata where uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='water') and id in (select id from category where code=".$code.")");
|
||||
$sum=$row[0]['count'];
|
||||
|
||||
$this->view->category=$this->db->fetchAll('select c.code,name,name_zh,count(*) from category c,categorycode cc where c.code=cc.code group by c.code,cc.name,cc.name_zh');
|
||||
if ($code>0 && $code<20) {
|
||||
$sql="select uuid,title,description,id from normalmetadata where uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='water') and id in (select distinct id from category where code=".$code.") order by timebegin,title limit ? offset ?";
|
||||
$this->view->metadata=$this->db->fetchAll($sql,array($this->limit,$offset));
|
||||
$this->view->page=new Pagination($sum,$page,$this->limit);
|
||||
$this->view->offset=$offset+1;
|
||||
$row=$this->db->fetchRow("select name,name_zh from categorycode where code=?",$code);
|
||||
$this->view->codename=(empty($row['name_zh'])?$row['name']:$row['name_zh']);
|
||||
} else {
|
||||
//提供全部分类列表
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private function getmd($keyword,$type='place')
|
||||
{
|
||||
$page=(int)$this->_request->getParam('page');
|
||||
if (empty($page)) $page=1;
|
||||
$offset=$this->limit*($page-1);
|
||||
$state=$this->db->query("select count(*) from normalmetadata where uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='water') and id in (select id from keyword where keytype='".$type."' and keyword='".$keyword."')");
|
||||
$row=$state->fetchAll();
|
||||
$sum=$row[0]['count'];
|
||||
//@todo: add order with title
|
||||
$sql="select uuid,title from normalmetadata where uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='water') and id in (select id from keyword where keytype='".$type."' and keyword='".$keyword."') order by timebegin,title limit ? offset ?";
|
||||
$this->view->metadata=$this->db->fetchAll($sql,array($this->limit,$offset));
|
||||
$this->view->page=new Pagination($sum,$page,$this->limit);
|
||||
$this->view->offset=$offset+1;
|
||||
}
|
||||
$state=$this->db->query("select k.keyword,count(k.keyword) from keyword k left join normalmetadata m on k.id=m.id where k.keytype='discipline' and m.uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='water') group by k.keyword order by k.keyword");
|
||||
$k3=$state->fetchAll();
|
||||
$state=$this->db->query("select k.keyword,count(k.keyword) from keyword k left join normalmetadata m on k.id=m.id where k.keytype='stratum' and m.uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='water') group by k.keyword order by k.keyword");
|
||||
$k4=$state->fetchAll();
|
||||
$state=$this->db->query("select keyword.keyword,count(*) from keyword left join normalmetadata m on keyword.id=m.id where keyword.keytype='temporal' and m.uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='water') group by keyword.keyword order by keyword.keyword");
|
||||
$k5=$state->fetchAll();
|
||||
$this->view->keywords=array('place'=>$k1,'theme'=>$k2,'discipline'=>$k3,'stratum'=>$k4,'temporal'=>$k5);
|
||||
}
|
||||
}
|
||||
|
||||
function searchAction()
|
||||
{
|
||||
$this->view->addHelperPath('helper','Zend_View_Helper_');
|
||||
$form=new SearchForm();
|
||||
$this->view->form=$form;
|
||||
//$form->submit->setLabel('快速搜索');
|
||||
$key=$this->_request->getParam('q');
|
||||
if (!empty($key)) {
|
||||
$search=new Search($key);
|
||||
$where=$search->sql_expr(array("title","description"));
|
||||
$page=@(int)$this->_request->getParam('page');
|
||||
if (empty($page)) $page=1;
|
||||
$offset=$this->limit*($page-1);
|
||||
$row=$this->db->fetchAll("select count(*) from normalmetadata where uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='water') and ".$where);
|
||||
$sum=$row[0]['count'];
|
||||
$sql="select uuid,title,id,description from normalmetadata where uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='water') and ".$where." order by timebegin,title limit ? offset ?";
|
||||
$this->view->metadata=$this->db->fetchAll($sql,array($this->limit,$offset));
|
||||
$this->view->page=new Pagination($sum,$page,$this->limit);
|
||||
$this->view->key=$key;
|
||||
$this->view->offset=$offset+1;
|
||||
}
|
||||
}
|
||||
|
||||
function timemapAction()
|
||||
{
|
||||
$sql="select id,uuid,west,south,north,east,title,timebegin,timeend from normalmetadata where uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='water') and timebegin is not null and timebegin::date>date('2007-01-01')";
|
||||
$this->view->rows=$this->db->fetchAll($sql);
|
||||
}
|
||||
|
||||
function timelineAction()
|
||||
{
|
||||
$fn="watertime.xml";
|
||||
$rows=$this->db->fetchAll("select ts_created from normalmetadata where uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='water') order by ts_created desc limit 1");
|
||||
$last_update=strtotime($rows[0]['ts_created']);
|
||||
if (!file_exists($fn) || (filemtime($fn)<$last_update))
|
||||
{
|
||||
$dateformat="M j Y";
|
||||
$rows=$this->db->fetchAll("select id,uuid,description,title,timebegin,timeend from normalmetadata where uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='water') and timebegin is not null order by timebegin,title");
|
||||
$timexml='<data>';
|
||||
foreach($rows as $row) {
|
||||
$timexml.='<event start="'.date($dateformat,strtotime($row['timebegin'])).' GMT+0800" ';
|
||||
if ($row['timeend']!='' && $row['timeend']!=$row['timebegin']) $timexml.=' end="'.date($dateformat,strtotime($row['timeend'])).'" isDuration="true"';
|
||||
$timexml.= ' title="'.htmlspecialchars(mb_substr($row['title'],11,mb_strlen($row['title'],'UTF-8')-10,'UTF-8')).'" image="/images/westdc_40w.gif" link="/water/'.$row['uuid'].'">';
|
||||
$desc_length=mb_strlen($row['description'],"UTF-8");
|
||||
$desc=mb_substr($row['description'],0,($desc_length>300)?300:$desc_length,"UTF-8");
|
||||
if ($desc_length>300) $desc.=" ...";
|
||||
$timexml.=htmlspecialchars($desc);
|
||||
$timexml.="</event>\n";
|
||||
}
|
||||
$timexml.='</data>';
|
||||
$fp=fopen($fn,'w');
|
||||
fwrite($fp,$timexml);
|
||||
fclose($fp);
|
||||
}
|
||||
}
|
||||
|
||||
function categoryAction()
|
||||
{
|
||||
$code = (int)$this->_request->getParam('code');
|
||||
$page=(int)$this->_request->getParam('page');
|
||||
if (empty($page)) $page=1;
|
||||
$offset=$this->limit*($page-1);
|
||||
$row=$this->db->fetchAll("select count(*) from normalmetadata where uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='water') and id in (select id from category where code=".$code.")");
|
||||
$sum=$row[0]['count'];
|
||||
|
||||
$this->view->category=$this->db->fetchAll('select c.code,name,name_zh,count(*) from category c,categorycode cc where c.code=cc.code group by c.code,cc.name,cc.name_zh');
|
||||
if ($code>0 && $code<20) {
|
||||
$sql="select uuid,title,description,id from normalmetadata where uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='water') and id in (select distinct id from category where code=".$code.") order by timebegin,title limit ? offset ?";
|
||||
$this->view->metadata=$this->db->fetchAll($sql,array($this->limit,$offset));
|
||||
$this->view->page=new Pagination($sum,$page,$this->limit);
|
||||
$this->view->offset=$offset+1;
|
||||
$row=$this->db->fetchRow("select name,name_zh from categorycode where code=?",$code);
|
||||
$this->view->codename=(empty($row['name_zh'])?$row['name']:$row['name_zh']);
|
||||
} else {
|
||||
//提供全部分类列表
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private function getmd($keyword,$type='place')
|
||||
{
|
||||
$page=(int)$this->_request->getParam('page');
|
||||
if (empty($page)) $page=1;
|
||||
$offset=$this->limit*($page-1);
|
||||
$state=$this->db->query("select count(*) from normalmetadata where uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='water') and id in (select id from keyword where keytype='".$type."' and keyword='".$keyword."')");
|
||||
$row=$state->fetchAll();
|
||||
$sum=$row[0]['count'];
|
||||
//@todo: add order with title
|
||||
$sql="select uuid,title from normalmetadata where uuid in (select d.uuid from datasource d left join source s on d.sourceid=s.id where s.code='water') and id in (select id from keyword where keytype='".$type."' and keyword='".$keyword."') order by timebegin,title limit ? offset ?";
|
||||
$this->view->metadata=$this->db->fetchAll($sql,array($this->limit,$offset));
|
||||
$this->view->page=new Pagination($sum,$page,$this->limit);
|
||||
$this->view->offset=$offset+1;
|
||||
}
|
||||
}
|
|
@ -6,7 +6,9 @@ class YrnmrController extends DataController
|
|||
function preDispatch()
|
||||
{
|
||||
parent::preDispatch();
|
||||
$this->_helper->layout->setLayout('yrnmr');
|
||||
//$this->_helper->layout->setLayout('yrnmr');
|
||||
$acName = $this->_request->getActionName();
|
||||
$this->view->pageID = "yrnmr-".$acName;
|
||||
}
|
||||
|
||||
function indexAction()
|
||||
|
@ -180,7 +182,7 @@ class YrnmrController extends DataController
|
|||
{
|
||||
$this->getmd('实验','theme');
|
||||
}
|
||||
|
||||
|
||||
function obsAction()
|
||||
{
|
||||
$this->getmd('观测','theme');
|
||||
|
|
|
@ -1,19 +1,21 @@
|
|||
<?php
|
||||
$this->headTitle($this->config->title->site);
|
||||
$this->headTitle('发展历史');
|
||||
$this->headTitle()->setSeparator(' - ');
|
||||
$this->headLink()->appendStylesheet('/css/about.css');
|
||||
$this->breadcrumb('<a href="/">首页</a>');
|
||||
$this->breadcrumb('<a href="/about">关于本站</a>');
|
||||
$this->breadcrumb('发展历史');
|
||||
$this->breadcrumb()->setSeparator(' > ');
|
||||
?>
|
||||
<div id='sidebar'>
|
||||
<div id='leftnavi'>
|
||||
<?= $this->partial('about/navi.phtml'); ?>
|
||||
</div>
|
||||
</div>
|
||||
<div id="content">
|
||||
<h2>发展历史</h2>
|
||||
<?= $this->item['body']; ?>
|
||||
<?php
|
||||
$this->headTitle($this->config->title->site);
|
||||
$this->headTitle('发展历史');
|
||||
$this->headTitle()->setSeparator(' - ');
|
||||
$this->headLink()->appendStylesheet('/css/about.css');
|
||||
$this->breadcrumb('<a href="/">首页</a>');
|
||||
$this->breadcrumb('<a href="/about">关于本站</a>');
|
||||
$this->breadcrumb('发展历史');
|
||||
$this->breadcrumb()->setSeparator(' > ');
|
||||
?>
|
||||
<div class="row">
|
||||
<div class="span3">
|
||||
<?= $this->partial('about/navi.phtml'); ?>
|
||||
</div>
|
||||
<div class="span9">
|
||||
<div id="content">
|
||||
<h2>发展历史</h2>
|
||||
<?= $this->item['body']; ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
|
@ -1,41 +1,45 @@
|
|||
<?php
|
||||
$this->headTitle($this->config->title->site);
|
||||
$this->headTitle('联系我们');
|
||||
$this->headTitle()->setSeparator(' - ');
|
||||
$this->headLink()->appendStylesheet('/css/about.css');
|
||||
$this->breadcrumb('<a href="/">首页</a>');
|
||||
$this->breadcrumb('<a href="/about">关于本站</a>');
|
||||
$this->breadcrumb('联系我们');
|
||||
$this->breadcrumb()->setSeparator(' > ');
|
||||
?>
|
||||
<div id='sidebar'>
|
||||
<div id='leftnavi'>
|
||||
<?= $this->partial('about/navi.phtml'); ?>
|
||||
</div>
|
||||
</div>
|
||||
<div id="contactUs"> 联系我们</div>
|
||||
<div id="offline">
|
||||
<p class="title">离线方式</p>
|
||||
<p>
|
||||
中国西部环境与生态科学数据中心<br />
|
||||
中国科学院寒区旱区环境与工程研究所 6#1102<br />
|
||||
甘肃省兰州市东岗西路320号<br />
|
||||
邮编:730000<br />
|
||||
E-mail: westdc@lzb.ac.cn<br />
|
||||
电话: +86-931-4967287<br />
|
||||
<br />
|
||||
</div>
|
||||
|
||||
<div id="online">
|
||||
<p class="title">在线联系</p>
|
||||
<p class="note">请填写以下表单,系统会自动发送到westdc邮箱里</p>
|
||||
<?php echo $this->form; ?>
|
||||
|
||||
<?php if (!empty($this->messages)) : ?>
|
||||
<div id="message">
|
||||
<?php
|
||||
foreach ($this->messages as $info)echo $info;
|
||||
?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php
|
||||
$this->headTitle($this->config->title->site);
|
||||
$this->headTitle('联系我们');
|
||||
$this->headTitle()->setSeparator(' - ');
|
||||
$this->headLink()->appendStylesheet('/css/about.css');
|
||||
$this->breadcrumb('<a href="/">首页</a>');
|
||||
$this->breadcrumb('<a href="/about">关于本站</a>');
|
||||
$this->breadcrumb('联系我们');
|
||||
$this->breadcrumb()->setSeparator(' > ');
|
||||
?>
|
||||
<div class="row">
|
||||
<div class="span3">
|
||||
<?= $this->partial('about/navi.phtml'); ?>
|
||||
</div>
|
||||
<div class="span9">
|
||||
<div id="content">
|
||||
<h2>联系我们</h2>
|
||||
<div id="offline">
|
||||
<p class="title">离线方式</p>
|
||||
<p>
|
||||
中国西部环境与生态科学数据中心<br />
|
||||
中国科学院寒区旱区环境与工程研究所 6#1102<br />
|
||||
甘肃省兰州市东岗西路320号<br />
|
||||
邮编:730000<br />
|
||||
E-mail: westdc@lzb.ac.cn<br />
|
||||
电话: +86-931-4967287<br />
|
||||
<br />
|
||||
</div>
|
||||
|
||||
<div id="online">
|
||||
<p class="title">在线联系</p>
|
||||
<p class="note">请填写以下表单,系统会自动发送到westdc邮箱里</p>
|
||||
<?php echo $this->form; ?>
|
||||
|
||||
<?php if (!empty($this->messages)) : ?>
|
||||
<div id="message">
|
||||
<?php
|
||||
foreach ($this->messages as $info)echo $info;
|
||||
?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
|
@ -1,19 +1,21 @@
|
|||
<?php
|
||||
$this->headTitle($this->config->title->site);
|
||||
$this->headTitle('联系我们');
|
||||
$this->headTitle()->setSeparator(' - ');
|
||||
$this->headLink()->appendStylesheet('/css/about.css');
|
||||
$this->breadcrumb('<a href="/">首页</a>');
|
||||
$this->breadcrumb('<a href="/about">关于本站</a>');
|
||||
$this->breadcrumb('联系我们');
|
||||
$this->breadcrumb()->setSeparator(' > ');
|
||||
?>
|
||||
<div id='sidebar'>
|
||||
<div id='leftnavi'>
|
||||
<?= $this->partial('about/navi.phtml'); ?>
|
||||
</div>
|
||||
</div>
|
||||
<div id="content">
|
||||
<h2>数据与版权</h2>
|
||||
<?= $this->item['body']; ?>
|
||||
<?php
|
||||
$this->headTitle($this->config->title->site);
|
||||
$this->headTitle('联系我们');
|
||||
$this->headTitle()->setSeparator(' - ');
|
||||
$this->headLink()->appendStylesheet('/css/about.css');
|
||||
$this->breadcrumb('<a href="/">首页</a>');
|
||||
$this->breadcrumb('<a href="/about">关于本站</a>');
|
||||
$this->breadcrumb('联系我们');
|
||||
$this->breadcrumb()->setSeparator(' > ');
|
||||
?>
|
||||
<div class="row">
|
||||
<div class="span3">
|
||||
<?= $this->partial('about/navi.phtml'); ?>
|
||||
</div>
|
||||
<div class="span9">
|
||||
<div id="content">
|
||||
<h2>数据与版权</h2>
|
||||
<?= $this->item['body']; ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
|
@ -1,19 +1,21 @@
|
|||
<?php
|
||||
$this->headTitle($this->config->title->site);
|
||||
$this->headTitle('服务成效');
|
||||
$this->headTitle()->setSeparator(' - ');
|
||||
$this->headLink()->appendStylesheet('/css/about.css');
|
||||
$this->breadcrumb('<a href="/">首页</a>');
|
||||
$this->breadcrumb('<a href="/about">关于本站</a>');
|
||||
$this->breadcrumb('服务成效');
|
||||
$this->breadcrumb()->setSeparator(' > ');
|
||||
?>
|
||||
<div id='sidebar'>
|
||||
<div id='leftnavi'>
|
||||
<?= $this->partial('about/navi.phtml'); ?>
|
||||
</div>
|
||||
</div>
|
||||
<div id="content">
|
||||
<h2>服务成效</h2>
|
||||
<?= $this->item['body']; ?>
|
||||
<?php
|
||||
$this->headTitle($this->config->title->site);
|
||||
$this->headTitle('服务成效');
|
||||
$this->headTitle()->setSeparator(' - ');
|
||||
$this->headLink()->appendStylesheet('/css/about.css');
|
||||
$this->breadcrumb('<a href="/">首页</a>');
|
||||
$this->breadcrumb('<a href="/about">关于本站</a>');
|
||||
$this->breadcrumb('服务成效');
|
||||
$this->breadcrumb()->setSeparator(' > ');
|
||||
?>
|
||||
<div class="row">
|
||||
<div class="span3">
|
||||
<?= $this->partial('about/navi.phtml'); ?>
|
||||
</div>
|
||||
<div class="span9">
|
||||
<div id="content">
|
||||
<h2>服务成效</h2>
|
||||
<?= $this->item['body']; ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
|
@ -1,34 +1,39 @@
|
|||
<?php
|
||||
$this->headTitle($this->config->title->site);
|
||||
$this->headTitle('关于我们');
|
||||
$this->headTitle()->setSeparator(' - ');
|
||||
$this->headLink()->appendStylesheet('/css/about.css');
|
||||
$this->breadcrumb('<a href="/">首页</a>');
|
||||
$this->breadcrumb('关于我们');
|
||||
$this->breadcrumb()->setSeparator(' > ');
|
||||
?>
|
||||
<div id='sidebar'>
|
||||
<div id='leftnavi'>
|
||||
<?= $this->partial('about/navi.phtml'); ?>
|
||||
</div>
|
||||
</div>
|
||||
<div id="content">
|
||||
<div class="logo">
|
||||
<img src="/images/westdc_logo_white.gif" /><br />
|
||||
<a href="/images/westdc_logo_white.gif">下载LOGO</a></div>
|
||||
<div class="preface">
|
||||
中国西部环境与生态科学数据中心(“西部数据中心”)受<a href="http://www.nsfc.gov.cn" target="_blank">中国自然科学基金委</a>资助,以中国西部环境与生态科学研究计划(“西部计划”)重点项目的形式立项(编号:90502010),旨在收集和整理“西部计划”各项目执行期间产出数据集,为中国西部环境与生态科学研究,乃至更广泛意义上的地表表层科学研究服务。</div>
|
||||
<h2>
|
||||
<a href="/about/background">项目背景</a></h2>
|
||||
<p>
|
||||
介绍“西部数据中心”项目立项的一些背景,可以理解西部数据中心要做些什么内容,以及采用什么样的实现手段。</p>
|
||||
<h2>
|
||||
项目参与单位</h2>
|
||||
<p>
|
||||
“西部数据中心”以<a href="http://www.casnw.net" target="_blank">中国科学院寒区旱区环境与工程研究所</a>为承担单位,由<a
|
||||
href="http://www.westgis.ac.cn" target="_blank">遥感与地理信息科学研究室</a>组织实施。参与单位包括<a href="http://www.igsnrr.ac.cn"
|
||||
target="_blank">中国科学院地理科学与资源研究所</a>。其中“知识积累平台”依托<a href="http://www.llas.ac.cn" target="_blank">中国科学院资源环境科学信息中心</a>实现项目中的文献收集和管理。</p>
|
||||
<h2>
|
||||
<a href="/about/contact">联系我们</a></h2>
|
||||
|
||||
</div>
|
||||
<?php
|
||||
$this->headTitle($this->config->title->site);
|
||||
$this->headTitle('关于我们');
|
||||
$this->headTitle()->setSeparator(' - ');
|
||||
$this->headLink()->appendStylesheet('/css/about.css');
|
||||
$this->breadcrumb('<a href="/">首页</a>');
|
||||
$this->breadcrumb('关于我们');
|
||||
$this->breadcrumb()->setSeparator(' > ');
|
||||
?>
|
||||
<div class="row">
|
||||
<div class="span3">
|
||||
<?= $this->partial('about/navi.phtml'); ?>
|
||||
</div>
|
||||
<div class="span9">
|
||||
<div id="content">
|
||||
|
||||
<div class="hero-unit">
|
||||
<div class="pull-right" style="margin-left:5px;">
|
||||
<img src="/images/westdc_logo_white.gif" /><br />
|
||||
<a href="/images/westdc_logo_white.gif">下载LOGO</a>
|
||||
</div>
|
||||
<p>中国西部环境与生态科学数据中心(“西部数据中心”)受<a href="http://www.nsfc.gov.cn" target="_blank">中国自然科学基金委</a>资助,以中国西部环境与生态科学研究计划(“西部计划”)重点项目的形式立项(编号:90502010),旨在收集和整理“西部计划”各项目执行期间产出数据集,为中国西部环境与生态科学研究,乃至更广泛意义上的地表表层科学研究服务。</p>
|
||||
</div>
|
||||
<h2>
|
||||
<a href="/about/background">项目背景</a></h2>
|
||||
<p>
|
||||
介绍“西部数据中心”项目立项的一些背景,可以理解西部数据中心要做些什么内容,以及采用什么样的实现手段。</p>
|
||||
<h2>
|
||||
项目参与单位</h2>
|
||||
<p>
|
||||
“西部数据中心”以<a href="http://www.casnw.net" target="_blank">中国科学院寒区旱区环境与工程研究所</a>为承担单位,由<a
|
||||
href="http://www.westgis.ac.cn" target="_blank">遥感与地理信息科学研究室</a>组织实施。参与单位包括<a href="http://www.igsnrr.ac.cn"
|
||||
target="_blank">中国科学院地理科学与资源研究所</a>。其中“知识积累平台”依托<a href="http://www.llas.ac.cn" target="_blank">中国科学院资源环境科学信息中心</a>实现项目中的文献收集和管理。</p>
|
||||
<h2>
|
||||
<a href="/about/contact">联系我们</a></h2>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
|
@ -1,19 +1,21 @@
|
|||
<?php
|
||||
$this->headTitle($this->config->title->site);
|
||||
$this->headTitle('隐私政策');
|
||||
$this->headTitle()->setSeparator(' - ');
|
||||
$this->headLink()->appendStylesheet('/css/about.css');
|
||||
$this->breadcrumb('<a href="/">首页</a>');
|
||||
$this->breadcrumb('<a href="/about">关于本站</a>');
|
||||
$this->breadcrumb('隐私政策');
|
||||
$this->breadcrumb()->setSeparator(' > ');
|
||||
?>
|
||||
<div id='sidebar'>
|
||||
<div id='leftnavi'>
|
||||
<?= $this->partial('about/navi.phtml'); ?>
|
||||
</div>
|
||||
</div>
|
||||
<div id="content">
|
||||
<h2>隐私政策</h2>
|
||||
<?= $this->item['body']; ?>
|
||||
<?php
|
||||
$this->headTitle($this->config->title->site);
|
||||
$this->headTitle('隐私政策');
|
||||
$this->headTitle()->setSeparator(' - ');
|
||||
$this->headLink()->appendStylesheet('/css/about.css');
|
||||
$this->breadcrumb('<a href="/">首页</a>');
|
||||
$this->breadcrumb('<a href="/about">关于本站</a>');
|
||||
$this->breadcrumb('隐私政策');
|
||||
$this->breadcrumb()->setSeparator(' > ');
|
||||
?>
|
||||
<div class="row">
|
||||
<div class="span3">
|
||||
<?= $this->partial('about/navi.phtml'); ?>
|
||||
</div>
|
||||
<div class="span9">
|
||||
<div id="content">
|
||||
<h2>隐私政策</h2>
|
||||
<?= $this->item['body']; ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
|
@ -1,19 +1,21 @@
|
|||
<?php
|
||||
$this->headTitle($this->config->title->site);
|
||||
$this->headTitle('友情链接');
|
||||
$this->headTitle()->setSeparator(' - ');
|
||||
$this->headLink()->appendStylesheet('/css/about.css');
|
||||
$this->breadcrumb('<a href="/">首页</a>');
|
||||
$this->breadcrumb('<a href="/about">关于本站</a>');
|
||||
$this->breadcrumb('友情链接');
|
||||
$this->breadcrumb()->setSeparator(' > ');
|
||||
?>
|
||||
<div id='sidebar'>
|
||||
<div id='leftnavi'>
|
||||
<?= $this->partial('about/navi.phtml'); ?>
|
||||
</div>
|
||||
</div>
|
||||
<div id="content">
|
||||
<h2>友情链接</h2>
|
||||
<?= $this->item['body']; ?>
|
||||
<?php
|
||||
$this->headTitle($this->config->title->site);
|
||||
$this->headTitle('友情链接');
|
||||
$this->headTitle()->setSeparator(' - ');
|
||||
$this->headLink()->appendStylesheet('/css/about.css');
|
||||
$this->breadcrumb('<a href="/">首页</a>');
|
||||
$this->breadcrumb('<a href="/about">关于本站</a>');
|
||||
$this->breadcrumb('友情链接');
|
||||
$this->breadcrumb()->setSeparator(' > ');
|
||||
?>
|
||||
<div class="row">
|
||||
<div class="span3">
|
||||
<?= $this->partial('about/navi.phtml'); ?>
|
||||
</div>
|
||||
<div class="span9">
|
||||
<div id="content">
|
||||
<h2>友情链接</h2>
|
||||
<?= $this->item['body']; ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
|
@ -1,12 +1,14 @@
|
|||
<ul>
|
||||
<li><a href="/about/">中心简介</a></li>
|
||||
<li><a href="/about/background">发展历史</a></li>
|
||||
<li><a href="/about/sponsors">支持项目</a></li>
|
||||
<li><a href="/about/honor">服务成效</a></li>
|
||||
<li><a href="/about/publication">成果发表</a></li>
|
||||
<li><a href="/about/copyright">数据与版权</a></li>
|
||||
<li><a href="/about/legal">隐私政策</a></li>
|
||||
<li><a href="/about/supportus">支持我们</a></li>
|
||||
<li><a href="/about/contact">联系我们</a></li>
|
||||
<li><a href="/about/link">友情链接</a></li>
|
||||
</ul>
|
||||
<div class="sidebar-nav bs-review-nav">
|
||||
<ul class="nav nav-list bs-review-sidenav">
|
||||
<li id="Nav-about-index"><a href="/about/"><i class="icon-chevron-right"></i>中心简介</a></li>
|
||||
<li id="Nav-about-background"><a href="/about/background"><i class="icon-chevron-right"></i>发展历史</a></li>
|
||||
<li id="Nav-about-sponsors"><a href="/about/sponsors"><i class="icon-chevron-right"></i>支持项目</a></li>
|
||||
<li id="Nav-about-honor"><a href="/about/honor"><i class="icon-chevron-right"></i>服务成效</a></li>
|
||||
<li id="Nav-about-publication"><a href="/about/publication"><i class="icon-chevron-right"></i>成果发表</a></li>
|
||||
<li id="Nav-about-copyright"><a href="/about/copyright"><i class="icon-chevron-right"></i>数据与版权</a></li>
|
||||
<li id="Nav-about-legal"><a href="/about/legal"><i class="icon-chevron-right"></i>隐私政策</a></li>
|
||||
<li id="Nav-about-supportus"><a href="/about/supportus"><i class="icon-chevron-right"></i>支持我们</a></li>
|
||||
<li id="Nav-about-contact"><a href="/about/contact"><i class="icon-chevron-right"></i>联系我们</a></li>
|
||||
<li id="Nav-about-link"><a href="/about/link"><i class="icon-chevron-right"></i>友情链接</a></li>
|
||||
</ul>
|
||||
</div>
|
|
@ -1,41 +1,43 @@
|
|||
<?php
|
||||
$this->headTitle($this->config->title->site);
|
||||
$this->headTitle('成果发表');
|
||||
$this->headTitle()->setSeparator(' - ');
|
||||
$this->headLink()->appendStylesheet('/css/about.css');
|
||||
$this->breadcrumb('<a href="/">首页</a>');
|
||||
$this->breadcrumb('<a href="/about">关于本站</a>');
|
||||
$this->breadcrumb('<a href="/about/publication">成果发表</a>');
|
||||
$this->breadcrumb('专利与著作权');
|
||||
$this->breadcrumb()->setSeparator(' > ');
|
||||
?>
|
||||
<div id='sidebar'>
|
||||
<div id='leftnavi'>
|
||||
<?= $this->partial('about/navi.phtml'); ?>
|
||||
</div>
|
||||
</div>
|
||||
<div id="content">
|
||||
<h2>成果发表</h2>
|
||||
<div id="tabs-controller">
|
||||
<ul>
|
||||
<li class="box-shadow"><a class="text-shadow" href="/about/publication/">期刊文章</a></li>
|
||||
<li class="box-shadow"><a class="text-shadow" href="/about/publication/ac/report">文档报告</a></li>
|
||||
<li class="box-shadow active"><a class="text-shadow" href="/about/publication/ac/patent">专利与著作权</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div id="datalist">
|
||||
<?php if (count($this->paginator)): ?>
|
||||
<ul>
|
||||
<?php foreach ($this->paginator as $item): ?>
|
||||
<li> <?php echo $item['title']; ?>
|
||||
<?php if (!empty($ref->link)) :
|
||||
echo ' <a href="'.$ref->link.'">下载</a>';
|
||||
endif;
|
||||
?>
|
||||
</li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
<div class="pagenavi"><?= $this->paginator; ?></div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<?php
|
||||
$this->headTitle($this->config->title->site);
|
||||
$this->headTitle('成果发表');
|
||||
$this->headTitle()->setSeparator(' - ');
|
||||
$this->headLink()->appendStylesheet('/css/about.css');
|
||||
$this->breadcrumb('<a href="/">首页</a>');
|
||||
$this->breadcrumb('<a href="/about">关于本站</a>');
|
||||
$this->breadcrumb('<a href="/about/publication">成果发表</a>');
|
||||
$this->breadcrumb('专利与著作权');
|
||||
$this->breadcrumb()->setSeparator(' > ');
|
||||
?>
|
||||
<div class="row">
|
||||
<div class="span3">
|
||||
<?= $this->partial('about/navi.phtml'); ?>
|
||||
</div>
|
||||
<div class="span9">
|
||||
<div id="content">
|
||||
<h2>成果发表</h2>
|
||||
<div>
|
||||
<ul class="nav nav-pills">
|
||||
<li><a href="/about/publication/">期刊文章</a></li>
|
||||
<li><a href="/about/publication/ac/report">文档报告</a></li>
|
||||
<li class="active"><a href="/about/publication/ac/patent">专利与著作权</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div>
|
||||
<?php if (count($this->paginator)): ?>
|
||||
<ul>
|
||||
<?php foreach ($this->paginator as $item): ?>
|
||||
<li> <?php echo $item['title']; ?>
|
||||
<?php if (!empty($ref->link)) :
|
||||
echo ' <a href="'.$ref->link.'">下载</a>';
|
||||
endif;
|
||||
?>
|
||||
</li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
<div class="pagenavi"><?= $this->paginator; ?></div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
|
@ -1,40 +1,42 @@
|
|||
<?php
|
||||
$this->headTitle($this->config->title->site);
|
||||
$this->headTitle('成果发表');
|
||||
$this->headTitle()->setSeparator(' - ');
|
||||
$this->headLink()->appendStylesheet('/css/about.css');
|
||||
$this->breadcrumb('<a href="/">首页</a>');
|
||||
$this->breadcrumb('<a href="/about">关于本站</a>');
|
||||
$this->breadcrumb('成果发表');
|
||||
$this->breadcrumb()->setSeparator(' > ');
|
||||
?>
|
||||
<div id='sidebar'>
|
||||
<div id='leftnavi'>
|
||||
<?= $this->partial('about/navi.phtml'); ?>
|
||||
</div>
|
||||
</div>
|
||||
<div id="content">
|
||||
<h2>成果发表</h2>
|
||||
<div id="tabs-controller">
|
||||
<ul>
|
||||
<li class="box-shadow active"><a class="text-shadow" href="/about/publication/">期刊文章</a></li>
|
||||
<li class="box-shadow"><a class="text-shadow" href="/about/publication/ac/report">文档报告</a></li>
|
||||
<li class="box-shadow"><a class="text-shadow" href="/about/publication/ac/patent">专利与著作权</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div id="datalist">
|
||||
<?php if (count($this->paginator)): ?>
|
||||
<ul>
|
||||
<?php foreach ($this->paginator as $item): ?>
|
||||
<li> <?php echo $item['reference']; ?>
|
||||
<?php if (!empty($item['link'])) :
|
||||
echo ' <a href="'.$item['link'].'">下载</a>';
|
||||
endif;
|
||||
?>
|
||||
</li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
<div class="pagenavi"><?= $this->paginator; ?></div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<?php
|
||||
$this->headTitle($this->config->title->site);
|
||||
$this->headTitle('成果发表');
|
||||
$this->headTitle()->setSeparator(' - ');
|
||||
$this->headLink()->appendStylesheet('/css/about.css');
|
||||
$this->breadcrumb('<a href="/">首页</a>');
|
||||
$this->breadcrumb('<a href="/about">关于本站</a>');
|
||||
$this->breadcrumb('成果发表');
|
||||
$this->breadcrumb()->setSeparator(' > ');
|
||||
?>
|
||||
<div class="row">
|
||||
<div class="span3">
|
||||
<?= $this->partial('about/navi.phtml'); ?>
|
||||
</div>
|
||||
<div class="span9">
|
||||
<div id="content">
|
||||
<h2>成果发表</h2>
|
||||
<div>
|
||||
<ul class="nav nav-pills">
|
||||
<li class="active"><a href="/about/publication/">期刊文章</a></li>
|
||||
<li><a href="/about/publication/ac/report">文档报告</a></li>
|
||||
<li><a href="/about/publication/ac/patent">专利与著作权</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div>
|
||||
<?php if (count($this->paginator)): ?>
|
||||
<ul>
|
||||
<?php foreach ($this->paginator as $item): ?>
|
||||
<li> <?php echo $item['reference']; ?>
|
||||
<?php if (!empty($item['link'])) :
|
||||
echo ' <a href="'.$item['link'].'">下载</a>';
|
||||
endif;
|
||||
?>
|
||||
</li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
<div class="pagenavi"><?= $this->paginator; ?></div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
|
@ -1,41 +1,43 @@
|
|||
<?php
|
||||
$this->headTitle($this->config->title->site);
|
||||
$this->headTitle('成果发表');
|
||||
$this->headTitle()->setSeparator(' - ');
|
||||
$this->headLink()->appendStylesheet('/css/about.css');
|
||||
$this->breadcrumb('<a href="/">首页</a>');
|
||||
$this->breadcrumb('<a href="/about">关于本站</a>');
|
||||
$this->breadcrumb('<a href="/about/publication">成果发表</a>');
|
||||
$this->breadcrumb('文档报告');
|
||||
$this->breadcrumb()->setSeparator(' > ');
|
||||
?>
|
||||
<div id='sidebar'>
|
||||
<div id='leftnavi'>
|
||||
<?= $this->partial('about/navi.phtml'); ?>
|
||||
</div>
|
||||
</div>
|
||||
<div id="content">
|
||||
<h2>成果发表</h2>
|
||||
<div id="tabs-controller">
|
||||
<ul>
|
||||
<li class="box-shadow"><a class="text-shadow" href="/about/publication/">期刊文章</a></li>
|
||||
<li class="box-shadow active"><a class="text-shadow" href="/about/publication/ac/report">文档报告</a></li>
|
||||
<li class="box-shadow"><a class="text-shadow" href="/about/publication/ac/patent">专利与著作权</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div id="datalist">
|
||||
<?php if (count($this->paginator)): ?>
|
||||
<ul>
|
||||
<?php foreach ($this->paginator as $item): ?>
|
||||
<li> <?php echo $item['title']; ?>
|
||||
<?php if (!empty($ref->link)) :
|
||||
echo ' <a href="'.$ref->link.'">下载</a>';
|
||||
endif;
|
||||
?>
|
||||
</li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
<div class="pagenavi"><?= $this->paginator; ?></div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<?php
|
||||
$this->headTitle($this->config->title->site);
|
||||
$this->headTitle('成果发表');
|
||||
$this->headTitle()->setSeparator(' - ');
|
||||
$this->headLink()->appendStylesheet('/css/about.css');
|
||||
$this->breadcrumb('<a href="/">首页</a>');
|
||||
$this->breadcrumb('<a href="/about">关于本站</a>');
|
||||
$this->breadcrumb('<a href="/about/publication">成果发表</a>');
|
||||
$this->breadcrumb('文档报告');
|
||||
$this->breadcrumb()->setSeparator(' > ');
|
||||
?>
|
||||
<div class="row">
|
||||
<div class="span3">
|
||||
<?= $this->partial('about/navi.phtml'); ?>
|
||||
</div>
|
||||
<div class="span9">
|
||||
<div id="content">
|
||||
<h2>成果发表</h2>
|
||||
<div>
|
||||
<ul class="nav nav-pills">
|
||||
<li><a href="/about/publication/">期刊文章</a></li>
|
||||
<li class="active"><a href="/about/publication/ac/report">文档报告</a></li>
|
||||
<li><a href="/about/publication/ac/patent">专利与著作权</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div>
|
||||
<?php if (count($this->paginator)): ?>
|
||||
<ul>
|
||||
<?php foreach ($this->paginator as $item): ?>
|
||||
<li> <?php echo $item['title']; ?>
|
||||
<?php if (!empty($ref->link)) :
|
||||
echo ' <a href="'.$ref->link.'">下载</a>';
|
||||
endif;
|
||||
?>
|
||||
</li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
<div class="pagenavi"><?= $this->paginator; ?></div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
|
@ -1,19 +1,21 @@
|
|||
<?php
|
||||
$this->headTitle($this->config->title->site);
|
||||
$this->headTitle('支持项目');
|
||||
$this->headTitle()->setSeparator(' - ');
|
||||
$this->headLink()->appendStylesheet('/css/about.css');
|
||||
$this->breadcrumb('<a href="/">首页</a>');
|
||||
$this->breadcrumb('<a href="/about">关于本站</a>');
|
||||
$this->breadcrumb('支持项目');
|
||||
$this->breadcrumb()->setSeparator(' > ');
|
||||
?>
|
||||
<div id='sidebar'>
|
||||
<div id='leftnavi'>
|
||||
<?= $this->partial('about/navi.phtml'); ?>
|
||||
</div>
|
||||
</div>
|
||||
<div id="content">
|
||||
<h2>支持项目</h2>
|
||||
<?= $this->item['body']; ?>
|
||||
<?php
|
||||
$this->headTitle($this->config->title->site);
|
||||
$this->headTitle('支持项目');
|
||||
$this->headTitle()->setSeparator(' - ');
|
||||
$this->headLink()->appendStylesheet('/css/about.css');
|
||||
$this->breadcrumb('<a href="/">首页</a>');
|
||||
$this->breadcrumb('<a href="/about">关于本站</a>');
|
||||
$this->breadcrumb('支持项目');
|
||||
$this->breadcrumb()->setSeparator(' > ');
|
||||
?>
|
||||
<div class="row">
|
||||
<div class="span3">
|
||||
<?= $this->partial('about/navi.phtml'); ?>
|
||||
</div>
|
||||
<div class="span9">
|
||||
<div id="content">
|
||||
<h2>支持项目</h2>
|
||||
<?= $this->item['body']; ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
|
@ -1,19 +1,21 @@
|
|||
<?php
|
||||
$this->headTitle($this->config->title->site);
|
||||
$this->headTitle('支持我们');
|
||||
$this->headTitle()->setSeparator(' - ');
|
||||
$this->headLink()->appendStylesheet('/css/about.css');
|
||||
$this->breadcrumb('<a href="/">首页</a>');
|
||||
$this->breadcrumb('<a href="/about">关于本站</a>');
|
||||
$this->breadcrumb('支持我们');
|
||||
$this->breadcrumb()->setSeparator(' > ');
|
||||
?>
|
||||
<div id='sidebar'>
|
||||
<div id='leftnavi'>
|
||||
<?= $this->partial('about/navi.phtml'); ?>
|
||||
</div>
|
||||
</div>
|
||||
<div id="content">
|
||||
<h2>支持我们</h2>
|
||||
<?= $this->item['body']; ?>
|
||||
<?php
|
||||
$this->headTitle($this->config->title->site);
|
||||
$this->headTitle('支持我们');
|
||||
$this->headTitle()->setSeparator(' - ');
|
||||
$this->headLink()->appendStylesheet('/css/about.css');
|
||||
$this->breadcrumb('<a href="/">首页</a>');
|
||||
$this->breadcrumb('<a href="/about">关于本站</a>');
|
||||
$this->breadcrumb('支持我们');
|
||||
$this->breadcrumb()->setSeparator(' > ');
|
||||
?>
|
||||
<div class="row">
|
||||
<div class="span3">
|
||||
<?= $this->partial('about/navi.phtml'); ?>
|
||||
</div>
|
||||
<div class="span9">
|
||||
<div id="content">
|
||||
<h2>支持我们</h2>
|
||||
<?= $this->item['body']; ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
|
@ -2,12 +2,8 @@
|
|||
$this->headTitle($this->config->title->site);
|
||||
$this->headTitle('我的账户');
|
||||
$this->headTitle()->setSeparator(' - ');
|
||||
$this->theme->AppendPlus($this,'jquery');
|
||||
$this->theme->AppendPlus($this,'bootstarp');
|
||||
$this->theme->AppendPlus($this,'colorbox');
|
||||
?>
|
||||
<div class="container-fluid">
|
||||
<div class="row-fluid">
|
||||
<div class="row">
|
||||
<div class="span3">
|
||||
<div class="well sidebar-nav">
|
||||
<?= $this->partial('account/left.phtml'); ?>
|
||||
|
@ -129,4 +125,3 @@
|
|||
<?php }?>
|
||||
</div><!--/span-->
|
||||
</div><!--/row-->
|
||||
</div>
|
||||
|
|
|
@ -2,12 +2,8 @@
|
|||
$this->headTitle($this->config->title->site);
|
||||
$this->headTitle('我的账户');
|
||||
$this->headTitle()->setSeparator(' - ');
|
||||
$this->theme->AppendPlus($this,'jquery');
|
||||
$this->theme->AppendPlus($this,'bootstarp');
|
||||
$this->theme->AppendPlus($this,'colorbox');
|
||||
?>
|
||||
<div class="container-fluid">
|
||||
<div class="row-fluid">
|
||||
<div class="row">
|
||||
<div class="span3">
|
||||
<div class="well sidebar-nav">
|
||||
<?= $this->partial('account/left.phtml'); ?>
|
||||
|
@ -52,4 +48,3 @@
|
|||
<?php } ?>
|
||||
</div><!--/span-->
|
||||
</div><!--/row-->
|
||||
</div>
|
||||
|
|
|
@ -7,12 +7,13 @@
|
|||
$this->breadcrumb('<a href="/account/register">用户注册</a>');
|
||||
$this->breadcrumb()->setSeparator(' > ');
|
||||
?>
|
||||
<div id="info">
|
||||
<img src="/images/pass_login1.gif" /> 确认服务条款
|
||||
<img src="/images/pass_pic_arrowhead_2.gif" />
|
||||
<img src="/images/pass_login2.gif" /> 填写基本信息
|
||||
<img src="/images/pass_pic_arrowhead_2.gif" />
|
||||
<img src="/images/pass_login3.gif" /> 注册完成
|
||||
|
||||
|
||||
<?php echo $this->form;?></div>
|
||||
<div class="row-fluit">
|
||||
<div class="span12">
|
||||
<img src="/images/pass_login1.gif" /> 确认服务条款
|
||||
<img src="/images/pass_pic_arrowhead_2.gif" />
|
||||
<img src="/images/pass_login2.gif" /> 填写基本信息
|
||||
<img src="/images/pass_pic_arrowhead_2.gif" />
|
||||
<img src="/images/pass_login3.gif" /> 注册完成
|
||||
<?php echo $this->form;?>
|
||||
</div>
|
||||
</div>
|
|
@ -2,12 +2,9 @@
|
|||
$this->headTitle($this->config->title->site);
|
||||
$this->headTitle('我的账户');
|
||||
$this->headTitle()->setSeparator(' - ');
|
||||
$this->theme->AppendPlus($this,'jquery');
|
||||
$this->theme->AppendPlus($this,'bootstarp');
|
||||
$this->theme->AppendPlus($this,'colorbox');
|
||||
?>
|
||||
<div class="container-fluid">
|
||||
<div class="row-fluid">
|
||||
<div class="row">
|
||||
<div class="span3">
|
||||
<div class="well sidebar-nav">
|
||||
<?= $this->partial('account/left.phtml'); ?>
|
||||
|
@ -69,4 +66,3 @@
|
|||
<?php }?>
|
||||
</div><!--/span-->
|
||||
</div><!--/row-->
|
||||
</div>
|
||||
|
|
|
@ -3,8 +3,6 @@ $config = Zend_Registry::get('config');
|
|||
$this->headTitle($config->title->site);
|
||||
$this->headTitle($this->infos['title']);
|
||||
$this->headTitle()->setSeparator(' - ');
|
||||
$this->headLink()->appendStylesheet('/css/news.css');
|
||||
$this->headScript()->appendFile('/js/jquery-1.7.min.js');
|
||||
$this->breadcrumb('<a href="/">首页</a>');
|
||||
$this->breadcrumb('<a href="/archives/">新闻中心</a>');
|
||||
$this->breadcrumb('<a href="/archives/'.$this->ptype.'/'.$this->type.'">'.$this->infos['typename'].'</a>');
|
||||
|
@ -13,55 +11,45 @@ $this->breadcrumb()->setSeparator(' > ');
|
|||
if(!empty($this->infos['keyword'])) $keyword = $this->infos['keyword']; else $keyword = $this->infos['title'];
|
||||
$this->headMeta()->appendName('keywords', $keyword);
|
||||
$this->headMeta()->appendName('description', mb_substr($this->infos['description'],0,180,'utf-8'));
|
||||
$this->headLink()->appendStylesheet('/css/news.css');
|
||||
?>
|
||||
<div class="full center clear" id="body">
|
||||
<div class="w300 Lfloat clear">
|
||||
<div class="tbox">
|
||||
<div class="title">栏目导航</div>
|
||||
<div class="content navmenu">
|
||||
<ul>
|
||||
<?php
|
||||
if(count($this->types))
|
||||
<div class="row">
|
||||
<div class="span3">
|
||||
<div class="bs-review-nav sidebar-nav">
|
||||
<ul class="nav nav-list bs-review-sidenav">
|
||||
<li><a href="/archives"><i class="icon-chevron-right"></i>新闻中心</a></li>
|
||||
<?php
|
||||
if(count($this->types))
|
||||
{
|
||||
foreach($this->types as $k=>$v)
|
||||
{
|
||||
foreach($this->types as $k=>$v)
|
||||
{
|
||||
$haed = "";
|
||||
if(!empty($v[$this->deepField])) {$haed = str_repeat(' ',$v[$this->deepField]);}
|
||||
echo '<li><a href="'.$v['url'].'">'.$haed.$v['title'].'</a></li>';
|
||||
$haed = "";
|
||||
}
|
||||
$haed = "";
|
||||
if(!empty($v[$this->deepField])) {$haed = str_repeat(' ',$v[$this->deepField]);}
|
||||
echo '<li'.($v['code']==$this->type?' class="active"':'').'><a href="'.$v['url'].'"><i class="icon-chevron-right"></i>'.$haed.$v['title'].'</a></li>';
|
||||
$haed = "";
|
||||
}
|
||||
?>
|
||||
</ul>
|
||||
</div>
|
||||
}
|
||||
?>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="Rfloat clear archive_body" id="archive_body">
|
||||
|
||||
<div class="title"><?php echo $this->infos['title'];?></div>
|
||||
<div class="info">时间 : <?php echo date("Y-m-d H:i",strtotime($this->infos['ts_published']));?> 来源 : <?php echo $this->infos['source'];?></div>
|
||||
<div class="span9" id="archive_body">
|
||||
<h3 class="text-center"><?php echo $this->infos['title'];?></h3>
|
||||
<div class="text-center">[<?php echo date("Y-m-d",strtotime($this->infos['ts_published']));?>] 来源 : <?php echo $this->infos['source'];?></div>
|
||||
<?php if(!empty($this->mdinfo)){?>
|
||||
<?php foreach($this->mdinfo as $v){ ?>
|
||||
<div class="info">相关数据:《<a href="/data/<?= $v['uuid']?>"><?= $v['title']?></a>》</div>
|
||||
<?php } } ?>
|
||||
<div class="archive_content">
|
||||
<table width="100%">
|
||||
<tr>
|
||||
<td>
|
||||
<?php
|
||||
<div class="media">
|
||||
<div class="pull-left">
|
||||
<?php echo $this->infos['body'];?>
|
||||
</div>
|
||||
<?php
|
||||
if(!empty($this->infos['image']))
|
||||
{
|
||||
echo '<div style="width:100%;text-align:center"><img src="'.$this->infos['image'].'" /></div>';
|
||||
echo ' <a class="inline" href="#"><img class="inline span3" src="'.$this->infos['image'].'" data-src="holder.js/128x128" /></a>';
|
||||
}
|
||||
?>
|
||||
<?php echo $this->infos['body'];?>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
$('#archive_body').width($('#body').width()-320);
|
||||
$('#archive_body .archive_content img').css("max-width",$('#archive_body').width());
|
||||
</script>
|
|
@ -2,54 +2,56 @@
|
|||
$this->headTitle($this->config->title->site);
|
||||
$this->headTitle('新闻中心');
|
||||
$this->headTitle()->setSeparator(' - ');
|
||||
$this->headLink()->appendStylesheet('/css/news.css');
|
||||
$this->headScript()->appendFile('/js/jquery-1.7.min.js');
|
||||
$this->breadcrumb('<a href="/">首页</a>');
|
||||
$this->breadcrumb('新闻中心');
|
||||
$this->breadcrumb()->setSeparator(' > ');
|
||||
$this->headLink()->appendStylesheet('/css/news.css');
|
||||
$this->theme->AppendPlus($this,'masonry');
|
||||
?>
|
||||
<div class="full center clear" id="body">
|
||||
<div class="w300 Lfloat clear">
|
||||
<div class="tbox">
|
||||
<div class="title">新闻分类</div>
|
||||
<div class="content navmenu">
|
||||
<ul>
|
||||
<?php
|
||||
if(count($this->types))
|
||||
<div class="row">
|
||||
<div class="span3">
|
||||
<div class="sidebar-nav bs-review-nav">
|
||||
<ul class="nav nav-list bs-review-sidenav">
|
||||
<li class="active"><a href="/archives"><i class="icon-chevron-right"></i>新闻中心</a></li>
|
||||
<?php
|
||||
if(count($this->types))
|
||||
{
|
||||
foreach($this->types as $k=>$v)
|
||||
{
|
||||
foreach($this->types as $k=>$v)
|
||||
{
|
||||
$haed = "";
|
||||
if(!empty($v[$this->deepField])) {$haed = str_repeat(' ',$v[$this->deepField]);}
|
||||
echo '<li><a href="'.$v['url'].'">'.$haed.$v['title'].'</a></li>';
|
||||
$haed = "";
|
||||
}
|
||||
$haed = "";
|
||||
if(!empty($v[$this->deepField])) {$haed = str_repeat(' ',$v[$this->deepField]);}
|
||||
echo '<li><a href="'.$v['url'].'"><i class="icon-chevron-right"></i>'.$haed.$v['title'].'</a></li>';
|
||||
$haed = "";
|
||||
}
|
||||
?>
|
||||
</ul>
|
||||
</div>
|
||||
}
|
||||
?>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="Rfloat clear" id="archives_list">
|
||||
<div class="span9">
|
||||
<div class="row" id="container">
|
||||
<?php
|
||||
foreach($this->lists as $v)
|
||||
{?>
|
||||
<?php if(count($v['list'])>0) {?>
|
||||
<div class="list-archives">
|
||||
<div class="list-title"><a href="<?= $v['url'] ?>"><?= $v['title'] ?></a></div>
|
||||
<div class="span4 items">
|
||||
<h3><a href="<?= $v['url'] ?>"><?= $v['title'] ?></a></h3>
|
||||
<div class="list-content">
|
||||
<ul>
|
||||
<?php foreach($v['list'] as $arc)
|
||||
{?>
|
||||
<li><a href="<?= $arc['url']?>"><?= $arc['title'] ?></a></li>
|
||||
<ul class="unstyled">
|
||||
<?php foreach($v['list'] as $arc){?>
|
||||
<li><small>[<?php echo date("Y-m-d",strtotime( $arc['ts_published'] )); ?>]</small>
|
||||
<a href="<?= $arc['url']?>"><?= $arc['title'] ?></a></li>
|
||||
<?php }?>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<?php } }
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
$('#archives_list').width($('#body').width()-320);
|
||||
$('#container').masonry({
|
||||
itemSelector : '.items',
|
||||
});
|
||||
</script>
|
|
@ -2,62 +2,60 @@
|
|||
$this->headTitle($this->config->title->site);
|
||||
$this->headTitle('新闻中心');
|
||||
$this->headTitle()->setSeparator(' - ');
|
||||
$this->headLink()->appendStylesheet('/css/news.css');
|
||||
$this->headScript()->appendFile('/js/jquery-1.7.min.js');
|
||||
$this->breadcrumb('<a href="/">首页</a>');
|
||||
$this->breadcrumb('<a href="/archives/">新闻中心</a>');
|
||||
$this->breadcrumb($this->title);
|
||||
$this->breadcrumb()->setSeparator(' > ');
|
||||
$this->headLink()->appendStylesheet('/css/news.css');
|
||||
?>
|
||||
<div class="full center clear" id="body">
|
||||
<div class="w300 Lfloat clear">
|
||||
<div class="tbox">
|
||||
<div class="title">新闻分类</div>
|
||||
<div class="content navmenu">
|
||||
<ul>
|
||||
<?php
|
||||
if(count($this->types))
|
||||
<div class="row">
|
||||
<div class="span3">
|
||||
<div class="bs-review-nav sidebar-nav">
|
||||
<ul class="nav nav-list bs-review-sidenav">
|
||||
<li><a href="/archives"><i class="icon-chevron-right"></i>新闻中心</a></li>
|
||||
<?php
|
||||
if(count($this->types))
|
||||
{
|
||||
foreach($this->types as $k=>$v)
|
||||
{
|
||||
foreach($this->types as $k=>$v)
|
||||
{
|
||||
$haed = "";
|
||||
if(!empty($v[$this->deepField])) {$haed = str_repeat(' ',$v[$this->deepField]);}
|
||||
echo '<li><a href="'.$v['url'].'">'.$haed.$v['title'].'</a></li>';
|
||||
$haed = "";
|
||||
}
|
||||
$haed = "";
|
||||
if(!empty($v[$this->deepField])) {$haed = str_repeat(' ',$v[$this->deepField]);}
|
||||
echo '<li'.($v['code']==$this->type?' class="active"':'').'><a href="'.$v['url'].'"><i class="icon-chevron-right"></i>'.$haed.$v['title'].'</a></li>';
|
||||
$haed = "";
|
||||
}
|
||||
?>
|
||||
</ul>
|
||||
</div>
|
||||
}
|
||||
?>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="Rfloat clear" id="archives_list">
|
||||
<div class="archives_list">
|
||||
<ul>
|
||||
<div class="span9">
|
||||
<ul class="media-list">
|
||||
<?php
|
||||
if(count($this->paginator))
|
||||
{
|
||||
foreach ($this->paginator as $v)
|
||||
{
|
||||
$description = "";
|
||||
if(empty($v['description']))
|
||||
{
|
||||
$description = "No description";
|
||||
}else if (mb_strlen($v['description'])>160)
|
||||
if (mb_strlen($v['description'])>160)
|
||||
{
|
||||
$description = mb_substr($v['description'],0,160,'utf-8').'...<a href="'.$v['url'].'" class="more">(more)</a>';
|
||||
}else{
|
||||
$description = $v['description'];
|
||||
}
|
||||
echo '<li>';
|
||||
if(!empty($v['image']))
|
||||
{
|
||||
echo '<img src="'.$v['image'].'" style="max-height:60px;float:left;" />';
|
||||
}
|
||||
echo '<a href="'.$v['url'].'" class="title">'.$v['title'].'</a><br />
|
||||
<small>TIME : '.date("Y-m-d H:i",strtotime( $v['ts_published'] )).'</small>
|
||||
<p>'.$description.'</p>
|
||||
</li>';
|
||||
?>
|
||||
<li class="media">
|
||||
<?php if(!empty($v['image'])) : ?>
|
||||
<a class="pull-right" href="<?php echo $v['url']; ?>"><img class="media-object span2 img-rounded" data-src="holder.js/64x64" src="<?php echo $v['image']; ?>"></a>
|
||||
<?php endif; ?>
|
||||
<div class="media-body">
|
||||
<h4 class="media-heading">
|
||||
<small>[<?php echo date("Y-m-d",strtotime( $v['ts_published'] )); ?>]</small>
|
||||
<a href="<?php echo $v['url']; ?>"><?php echo $v['title']; ?></a>
|
||||
</h4>
|
||||
<p><?php echo $description; ?></p>
|
||||
</div>
|
||||
</li>
|
||||
<?php
|
||||
}
|
||||
}
|
||||
else
|
||||
|
@ -66,10 +64,6 @@ $this->breadcrumb()->setSeparator(' > ');
|
|||
}
|
||||
?>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="pagenavi"><?= $this->paginator; ?></div>
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
$('#archives_list').width($('#body').width()-320);
|
||||
</script>
|
|
@ -2,26 +2,17 @@
|
|||
$this->headTitle($this->config->title->site);
|
||||
$this->headTitle($this->config->title->author);
|
||||
$this->headTitle()->setSeparator(' - ');
|
||||
$this->headScript()->appendFile('/js/jquery-1.7.min.js');
|
||||
$this->headLink()->appendStylesheet('/css/author.css');
|
||||
$this->breadcrumb('<a href="/">首页</a>');
|
||||
$this->breadcrumb('<a href="/author">数据作者</a>');
|
||||
$this->breadcrumb('我的数据');
|
||||
$this->breadcrumb()->setSeparator(' > ');
|
||||
?>
|
||||
<!-- 左侧导航 -->
|
||||
<div id='sidebar'>
|
||||
<div id='leftnavi'>
|
||||
<?= $this->partial('author/navi.phtml'); ?>
|
||||
<div class="row">
|
||||
<div class="span3">
|
||||
<?= $this->partial('author/navi.phtml'); ?>
|
||||
</div>
|
||||
</div>
|
||||
<!-- //左侧导航 -->
|
||||
|
||||
<!-- 页面内容 -->
|
||||
<div id="wapper">
|
||||
<?php echo $this->info; ?>
|
||||
</div>
|
||||
<!-- //页面内容 -->
|
||||
<script>
|
||||
$('#wapper').width($('body').width()-300);
|
||||
</script>
|
||||
<div class="span9">
|
||||
<?php echo $this->info; ?>
|
||||
</div>
|
||||
</div>
|
|
@ -1,78 +1,75 @@
|
|||
<?php
|
||||
$this->headTitle($this->config->title->site);
|
||||
$this->headTitle($this->config->title->author);
|
||||
$this->headTitle()->setSeparator(' - ');
|
||||
$this->headScript()->appendFile('/js/jquery-1.7.min.js');
|
||||
$this->headLink()->appendStylesheet('/css/author.css');
|
||||
$this->breadcrumb('<a href="/">首页</a>');
|
||||
$this->breadcrumb('<a href="/author">数据作者</a>');
|
||||
$this->breadcrumb('我的数据');
|
||||
$this->breadcrumb()->setSeparator(' > ');
|
||||
?>
|
||||
<!-- 左侧导航 -->
|
||||
<div id='sidebar'>
|
||||
<div id='leftnavi'>
|
||||
<?= $this->partial('author/navi.phtml'); ?>
|
||||
</div>
|
||||
</div>
|
||||
<!-- //左侧导航 -->
|
||||
|
||||
<!-- 页面内容 -->
|
||||
<div id="wapper">
|
||||
<p>请输入元数据标题关键字进行搜索</p>
|
||||
<form id="datasearch" class="search_form" action="/author/accept/ac/search">
|
||||
<input type="text" id="keyword" name="q" value="<?php if(!empty($this->q)) echo $this->q; ?>" />
|
||||
<button type="submit" class="btn" id="search_btn">搜索</button>
|
||||
</form>
|
||||
<div id="datalist">
|
||||
<?php
|
||||
if (count($this->paginator)):
|
||||
echo "<ul>";
|
||||
$autoindex=0;
|
||||
foreach ($this->paginator as $item):
|
||||
$autoindex++;?>
|
||||
<li>
|
||||
<a href="/data/<?php echo $item['uuid'];?>" target="_blank" class="title"><?php echo $item['title'];?></a>
|
||||
<?php if($item['status']==1) : ?>
|
||||
<span class="dtctrlplan">【操作:
|
||||
<a href="/author/inauthor/ac/datalist/uuid/<?php echo $item['uuid']; ?>">申请管理</a> |
|
||||
<a href="/author/comment/ac/view/uuid/<?php echo $item['uuid']; ?>">反馈</a> |
|
||||
<a href="/author/document/uuid/<?php echo $item['uuid']; ?>">文档</a> |
|
||||
<a href="/author/literature/uuid/<?php echo $item['uuid']; ?>">文献</a> |
|
||||
<a href="/author/literature/ac/add/uuid/<?php echo $item['uuid']; ?>">添加文献</a> |
|
||||
<a href="/service/geonetwork?url=metadata.edit?id=<?php echo $item['gid']; ?>" target="_blank">修改元数据</a> |
|
||||
<a href="/author/version/uuid/<?php echo $item['uuid']; ?>">版本</a> |
|
||||
<a href="/author/qa/uuid/<?php echo $item['uuid']; ?>">QA</a> |
|
||||
<a href="/author/news/uuid/<?php echo $item['uuid']; ?>">新闻</a> |
|
||||
<a href="/author/viewauthors/uuid/<?php echo $item['uuid']; ?>">所有作者</a>
|
||||
<?php if($item['mdstatus']==6) {?>
|
||||
| <a href="/author/delegate/uuid/<?php echo $item['uuid'];?>" onclick="return confirm('是否确定将该数据委托至数据中心?');">委托</a>
|
||||
<?php } if($item['mdstatus']==7){ ?>
|
||||
| <a href="/author/delegate/ac/cancel/uuid/<?php echo $item['uuid'];?>" onclick="return confirm('是否确定取消该数据的委托?');">取消委托</a>
|
||||
<?php }?> |
|
||||
<a href="/author/sendmail/uuid/<?php echo $item['uuid']; ?>">邮件通知</a>
|
||||
】
|
||||
</span>
|
||||
<?php endif; ?>
|
||||
|
||||
<p><?php echo mb_strlen($item['description'])>400?$this->escape(mb_substr($item['description'],0,400,'UTF-8').'...'):$this->escape($item['description']); ?></p>
|
||||
<p>
|
||||
<?php
|
||||
if ($item['status']==0)
|
||||
{
|
||||
echo '<img src="/images/list_extensions.gif" />您已经申请该数据(如果长时间没有收到回应请联系数据中心)';
|
||||
}
|
||||
?>
|
||||
<span id="data_<?php echo $item['uuid'];?>"></span>
|
||||
</p>
|
||||
</li>
|
||||
<?php endforeach;
|
||||
echo "</ul>";
|
||||
endif; ?>
|
||||
<div class="pagenavi"><?= $this->paginator; ?></div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- //页面内容 -->
|
||||
<script>
|
||||
$('#wapper').width($('body').width()-300);
|
||||
</script>
|
||||
<?php
|
||||
$this->headTitle($this->config->title->site);
|
||||
$this->headTitle($this->config->title->author);
|
||||
$this->headTitle()->setSeparator(' - ');
|
||||
$this->headLink()->appendStylesheet('/css/author.css');
|
||||
$this->breadcrumb('<a href="/">首页</a>');
|
||||
$this->breadcrumb('<a href="/author">数据作者</a>');
|
||||
$this->breadcrumb('我的数据');
|
||||
$this->breadcrumb()->setSeparator(' > ');
|
||||
?>
|
||||
<div class="row">
|
||||
<div class="span3">
|
||||
<?= $this->partial('author/navi.phtml'); ?>
|
||||
</div>
|
||||
<div class="span9">
|
||||
|
||||
<p>请输入元数据标题关键字进行搜索</p>
|
||||
<div class="input-append">
|
||||
<form id="datasearch" class="search_form" action="/author/accept/ac/search">
|
||||
<input class="span2" type="text" id="keyword" name="q" value="<?php if(!empty($this->q)) echo $this->q; ?>">
|
||||
<button class="btn" type="submit">搜索</button>
|
||||
</form>
|
||||
</div>
|
||||
<div>
|
||||
<?php
|
||||
if (count($this->paginator)):
|
||||
echo '<ul class="unstyled">';
|
||||
$autoindex=0;
|
||||
foreach ($this->paginator as $item):
|
||||
$autoindex++;?>
|
||||
<li class="well">
|
||||
<h4><a href="/data/<?php echo $item['uuid'];?>" target="_blank" class="title"><?php echo $item['title'];?></a></h4>
|
||||
<?php if($item['status']==1) : ?>
|
||||
<span class="dtctrlplan">【操作:
|
||||
<a href="/author/inauthor/ac/datalist/uuid/<?php echo $item['uuid']; ?>">申请管理</a> |
|
||||
<a href="/author/comment/ac/view/uuid/<?php echo $item['uuid']; ?>">反馈</a> |
|
||||
<a href="/author/document/uuid/<?php echo $item['uuid']; ?>">文档</a> |
|
||||
<a href="/author/literature/uuid/<?php echo $item['uuid']; ?>">文献</a> |
|
||||
<a href="/author/literature/ac/add/uuid/<?php echo $item['uuid']; ?>">添加文献</a> |
|
||||
<a href="/service/geonetwork?url=metadata.edit?id=<?php echo $item['gid']; ?>" target="_blank">修改元数据</a> |
|
||||
<a href="/author/version/uuid/<?php echo $item['uuid']; ?>">版本</a> |
|
||||
<a href="/author/qa/uuid/<?php echo $item['uuid']; ?>">QA</a> |
|
||||
<a href="/author/news/uuid/<?php echo $item['uuid']; ?>">新闻</a> |
|
||||
<a href="/author/viewauthors/uuid/<?php echo $item['uuid']; ?>">所有作者</a>
|
||||
<?php if($item['mdstatus']==6) {?>
|
||||
| <a href="/author/delegate/uuid/<?php echo $item['uuid'];?>" onclick="return confirm('是否确定将该数据委托至数据中心?');">委托</a>
|
||||
<?php } if($item['mdstatus']==7){ ?>
|
||||
| <a href="/author/delegate/ac/cancel/uuid/<?php echo $item['uuid'];?>" onclick="return confirm('是否确定取消该数据的委托?');">取消委托</a>
|
||||
<?php }?> |
|
||||
<a href="/author/sendmail/uuid/<?php echo $item['uuid']; ?>">邮件通知</a> |
|
||||
<a href="/author/fund/uuid/<?php echo $item['uuid']; ?>">支持项目</a> |
|
||||
<a href="/author/doi/ac/edit/uuid/<?php echo $item['uuid']; ?>">DOI</a>
|
||||
】
|
||||
</span>
|
||||
<?php endif; ?>
|
||||
|
||||
<p><?php echo mb_strlen($item['description'])>400?$this->escape(mb_substr($item['description'],0,400,'UTF-8').'...'):$this->escape($item['description']); ?></p>
|
||||
<p>
|
||||
<?php
|
||||
if ($item['status']==0)
|
||||
{
|
||||
echo '<img src="/images/list_extensions.gif" />您已经申请该数据(如果长时间没有收到回应请联系数据中心)';
|
||||
}
|
||||
?>
|
||||
<span id="data_<?php echo $item['uuid'];?>"></span>
|
||||
</p>
|
||||
</li>
|
||||
<?php endforeach;
|
||||
echo "</ul>";
|
||||
endif; ?>
|
||||
<div class="pagenavi"><?= $this->paginator; ?></div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
|
@ -2,35 +2,34 @@
|
|||
$this->headTitle($this->config->title->site);
|
||||
$this->headTitle($this->config->title->author);
|
||||
$this->headTitle()->setSeparator(' - ');
|
||||
$this->headScript()->appendFile('/js/jquery-1.7.min.js');
|
||||
$this->headLink()->appendStylesheet('/css/author.css');
|
||||
$this->theme->AppendPlus($this,'colorbox');
|
||||
$this->breadcrumb('<a href="/">首页</a>');
|
||||
$this->breadcrumb('<a href="/author">数据作者</a>');
|
||||
$this->breadcrumb('申请成为元数据作者');
|
||||
$this->breadcrumb()->setSeparator(' > ');
|
||||
?>
|
||||
<!-- 左侧导航 -->
|
||||
<div id='sidebar'>
|
||||
<div id='leftnavi'>
|
||||
<?= $this->partial('author/navi.phtml'); ?>
|
||||
<div class="row">
|
||||
<div class="span3">
|
||||
<?= $this->partial('author/navi.phtml'); ?>
|
||||
</div>
|
||||
<div class="span9">
|
||||
|
||||
<h3>请输入元数据标题关键字进行搜索</h3>
|
||||
<div class="input-append">
|
||||
<form id="datasearch" class="search_form">
|
||||
<input class="span2" type="text" id="keyword" name="q" value="">
|
||||
<button class="btn" type="button" id="search_btn" onclick="doSearch()">搜索</button>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<div id="searchlist">
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<!-- //左侧导航 -->
|
||||
|
||||
<!-- 页面内容 -->
|
||||
<div id="wapper">
|
||||
<p>请输入元数据标题关键字进行搜索</p>
|
||||
<form id="datasearch" class="search_form">
|
||||
<input type="text" id="keyword" name="keyword" />
|
||||
<button type="button" class="btn" id="search_btn" onclick="doSearch()">搜索</button>
|
||||
</form>
|
||||
<div id="datalist">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<!-- //页面内容 -->
|
||||
<script>
|
||||
$('#wapper').width($('body').width()-300);
|
||||
function doSearch(){
|
||||
$.ajax({
|
||||
'type':"POST",
|
||||
|
@ -49,9 +48,9 @@ function doSearch(){
|
|||
if(data[i].status==1) var ct='<img src="/images/list_links.gif" />您是此元数据的作者';
|
||||
else if (data[i].status==0) var ct='<img src="/images/list_extensions.gif" />您已经申请成为该元数据作者,请前往 <a href="/author/accept">我的数据</a> 查看<span id="data_'+data[i].uuid+'"></span>';
|
||||
else var ct='<a href="javascript:;" onclick="apply(\'' +data[i].uuid+ '\')"><img src="/images/list_keys.gif" />申请成为此数据的作者</a><span id="data_'+data[i].uuid+'"></span>';
|
||||
result.push('<li><a href="/data/'+data[i].uuid+'" target="_blank" class="title">'+data[i].title+'</a><p>'+data[i].description+'</p><p>'+ct+'</p></li>');
|
||||
result.push('<li class="well"><h4><a href="/data/'+data[i].uuid+'" target="_blank" class="title">'+data[i].title+'</a></h4><p>'+data[i].description+'</p><p>'+ct+'</p></li>');
|
||||
}
|
||||
$('#datalist').html('<ul id="datas">'+result.join('')+'</ul>');
|
||||
$('#searchlist').html('<ul class="unstyled">'+result.join('')+'</ul>');
|
||||
}
|
||||
}else{
|
||||
alert('无搜索结果');
|
||||
|
@ -59,7 +58,7 @@ function doSearch(){
|
|||
$('#search_btn').html('搜索');
|
||||
},
|
||||
'beforeSend':function(){
|
||||
$('#search_btn').html('<img src="/images/ajax-load-small.gif" />Searching...');
|
||||
$('#search_btn').html('Searching...');
|
||||
},
|
||||
'timeout': 20000,
|
||||
'error': function(){
|
||||
|
@ -104,4 +103,5 @@ $("#keyword").die().live("keydown",function(event){
|
|||
$('#search_btn').click();
|
||||
}
|
||||
});
|
||||
$(".iframe").colorbox({iframe:true, width:"80%", height:"80%"});
|
||||
</script>
|
|
@ -2,59 +2,53 @@
|
|||
$this->headTitle($this->config->title->site);
|
||||
$this->headTitle($this->config->title->author);
|
||||
$this->headTitle()->setSeparator(' - ');
|
||||
$this->headScript()->appendFile('/js/jquery-1.7.min.js');
|
||||
$this->headLink()->appendStylesheet('/css/author.css');
|
||||
$this->headScript()->appendFile('/js/jquery.colorbox-min.js');
|
||||
$this->headLink()->appendStylesheet('/css/colorbox.css');
|
||||
$this->theme->AppendPlus($this,'colorbox');
|
||||
$this->breadcrumb('<a href="/">首页</a>');
|
||||
$this->breadcrumb('<a href="/author">数据作者</a>');
|
||||
$this->breadcrumb('数据反馈管理');
|
||||
$this->breadcrumb()->setSeparator(' > ');
|
||||
?>
|
||||
<!-- 左侧导航 -->
|
||||
<div id='sidebar'>
|
||||
<div id='leftnavi'>
|
||||
<?= $this->partial('author/navi.phtml'); ?>
|
||||
<div class="row">
|
||||
<div class="span3">
|
||||
<?= $this->partial('author/navi.phtml'); ?>
|
||||
</div>
|
||||
</div>
|
||||
<!-- //左侧导航 -->
|
||||
|
||||
<!-- 页面内容 -->
|
||||
<div id="wapper">
|
||||
<div id="tabs-controller">
|
||||
<ul>
|
||||
<li class="box-shadow active"><a class="text-shadow" href="/author/comment">元数据反馈概况</a></li>
|
||||
<li class="box-shadow"><a class="text-shadow" href="/author/comment/ac/listall">所有元数据反馈</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div id="datalist">
|
||||
<?php
|
||||
if (count($this->paginator)):
|
||||
echo "<h2>数据标题:".$this->mdtitle."</h2>";
|
||||
echo "<ul>";
|
||||
$autoindex=0;
|
||||
foreach ($this->paginator as $item):
|
||||
$autoindex++;?>
|
||||
<li>
|
||||
<p>评论者:<?php echo $item['author'] ?> (<?php echo $item['email'];?>) 评论时间:<?php echo date("Y-m-d H:i",strtotime($item['ts_created']));?> <a href="javascript:;" onclick="showreply(<?= $item['id']; ?>)">回复</a></p>
|
||||
<p style="display:none;vertical-align:bottom" id="comment_reply_<?= $item['id']; ?>">
|
||||
<textarea id="reply_<?= $item['id']; ?>" class="middle half"></textarea>
|
||||
<button type="button" onclick="reply(<?= $item['id']; ?>,'<?= $item['uuid']; ?>')" class="btn btn-green" style="vertical-align:bottom">提交</button>
|
||||
<div style="width:90%; margin:0 auto;">
|
||||
<ul id="replyList_<?= $item['id']; ?>">
|
||||
</ul>
|
||||
</div>
|
||||
</p>
|
||||
<p> <?php echo $item['content'] ?></p>
|
||||
</li>
|
||||
<?php endforeach;
|
||||
echo "</ul>";
|
||||
endif; ?>
|
||||
<div class="pagenavi"><?= $this->paginator; ?></div>
|
||||
<div class="span9">
|
||||
<div>
|
||||
<ul class="nav nav-pills">
|
||||
<li class="active"><a href="/author/comment">元数据反馈概况</a></li>
|
||||
<li class=""><a href="/author/comment/ac/listall">所有元数据反馈</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<?php
|
||||
if (count($this->paginator)):
|
||||
echo "<h3>数据标题:".$this->mdtitle."</h3>";
|
||||
echo '<ul class="unstyled">';
|
||||
$autoindex=0;
|
||||
foreach ($this->paginator as $item):
|
||||
$autoindex++;?>
|
||||
<li class="well">
|
||||
<p>评论者:<?php echo $item['author'] ?> (<?php echo $item['email'];?>) 评论时间:<?php echo date("Y-m-d H:i",strtotime($item['ts_created']));?> <a href="javascript:;" onclick="showreply(<?= $item['id']; ?>)">回复</a></p>
|
||||
<p style="display:none;vertical-align:bottom" id="comment_reply_<?= $item['id']; ?>">
|
||||
<textarea id="reply_<?= $item['id']; ?>" class="span7"></textarea>
|
||||
<button type="button" onclick="reply(<?= $item['id']; ?>,'<?= $item['uuid']; ?>')" class="btn" style="vertical-align:bottom">提交</button>
|
||||
<div style="width:90%; margin:0 auto;">
|
||||
<ul id="replyList_<?= $item['id']; ?>">
|
||||
</ul>
|
||||
</div>
|
||||
</p>
|
||||
<p> <?php echo $item['content'] ?></p>
|
||||
</li>
|
||||
<?php endforeach;
|
||||
echo "</ul>";
|
||||
endif; ?>
|
||||
<div class="pagenavi"><?= $this->paginator; ?></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- //页面内容 -->
|
||||
<script>$('#wapper').width($('body').width()-300);</script>
|
||||
<script>
|
||||
function reply(id,uuid)
|
||||
{
|
||||
|
|
|
@ -9,41 +9,34 @@ $this->breadcrumb('<a href="/author">数据作者</a>');
|
|||
$this->breadcrumb('数据反馈管理');
|
||||
$this->breadcrumb()->setSeparator(' > ');
|
||||
?>
|
||||
<!-- 左侧导航 -->
|
||||
<div id='sidebar'>
|
||||
<div id='leftnavi'>
|
||||
<?= $this->partial('author/navi.phtml'); ?>
|
||||
<div class="row">
|
||||
<div class="span3">
|
||||
<?= $this->partial('author/navi.phtml'); ?>
|
||||
</div>
|
||||
</div>
|
||||
<!-- //左侧导航 -->
|
||||
|
||||
<!-- 页面内容 -->
|
||||
<div id="wapper">
|
||||
<div id="tabs-controller">
|
||||
<ul>
|
||||
<li class="box-shadow"><a class="text-shadow" href="/author/comment">元数据反馈概况</a></li>
|
||||
<li class="box-shadow active"><a class="text-shadow" href="/author/comment/ac/listall">所有元数据反馈</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div id="datalist">
|
||||
<?php
|
||||
if (count($this->paginator)):
|
||||
echo "<ul>";
|
||||
$autoindex=0;
|
||||
foreach ($this->paginator as $item):
|
||||
$autoindex++;?>
|
||||
<li>
|
||||
<p><a href="/data/<?php echo $item['uuid'];?>" target="_blank"><?php echo $item['title'];?></a></p>
|
||||
<p>评论者:<?php echo $item['author'] ?> (<?php echo $item['email'];?>) 评论时间:<?php echo date("Y-m-d H:i",strtotime($item['ts_created']));?></p>
|
||||
<p> <?php echo $item['content'] ?></p>
|
||||
</li>
|
||||
<?php endforeach;
|
||||
echo "</ul>";
|
||||
endif; ?>
|
||||
<div class="pagenavi"><?= $this->paginator; ?></div>
|
||||
<div class="span9">
|
||||
<div>
|
||||
<ul class="nav nav-pills">
|
||||
<li class=""><a href="/author/comment">元数据反馈概况</a></li>
|
||||
<li class="active"><a href="/author/comment/ac/listall">所有元数据反馈</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<?php
|
||||
if (count($this->paginator)):
|
||||
echo '<ul class="unstyled">';
|
||||
$autoindex=0;
|
||||
foreach ($this->paginator as $item):
|
||||
$autoindex++;?>
|
||||
<li class="well">
|
||||
<h4><a href="/data/<?php echo $item['uuid'];?>" target="_blank"><?php echo $item['title'];?></a></h4>
|
||||
<p>评论者:<?php echo $item['author'] ?> (<?php echo $item['email'];?>) 评论时间:<?php echo date("Y-m-d H:i",strtotime($item['ts_created']));?></p>
|
||||
<p> <?php echo $item['content'] ?></p>
|
||||
</li>
|
||||
<?php endforeach;
|
||||
echo "</ul>";
|
||||
endif; ?>
|
||||
<div class="pagenavi"><?= $this->paginator; ?></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- //页面内容 -->
|
||||
<script>
|
||||
$('#wapper').width($('body').width()-300);
|
||||
</script>
|
||||
</div>
|
|
@ -2,47 +2,39 @@
|
|||
$this->headTitle($this->config->title->site);
|
||||
$this->headTitle($this->config->title->author);
|
||||
$this->headTitle()->setSeparator(' - ');
|
||||
$this->headScript()->appendFile('/js/jquery-1.7.min.js');
|
||||
$this->headLink()->appendStylesheet('/css/author.css');
|
||||
$this->breadcrumb('<a href="/">首页</a>');
|
||||
$this->breadcrumb('<a href="/author">数据作者</a>');
|
||||
$this->breadcrumb('数据反馈管理');
|
||||
$this->breadcrumb()->setSeparator(' > ');
|
||||
?>
|
||||
<!-- 左侧导航 -->
|
||||
<div id='sidebar'>
|
||||
<div id='leftnavi'>
|
||||
<?= $this->partial('author/navi.phtml'); ?>
|
||||
<div class="row">
|
||||
<div class="span3">
|
||||
<?= $this->partial('author/navi.phtml'); ?>
|
||||
</div>
|
||||
</div>
|
||||
<!-- //左侧导航 -->
|
||||
|
||||
<!-- 页面内容 -->
|
||||
<div id="wapper">
|
||||
<div id="tabs-controller">
|
||||
<ul>
|
||||
<li class="box-shadow active"><a class="text-shadow" href="/author/comment">元数据反馈概况</a></li>
|
||||
<li class="box-shadow"><a class="text-shadow" href="/author/comment/ac/listall">所有元数据反馈</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div id="datalist">
|
||||
<?php
|
||||
if (count($this->paginator)):
|
||||
echo "<ul>";
|
||||
$autoindex=0;
|
||||
foreach ($this->paginator as $item):
|
||||
$autoindex++;?>
|
||||
<li>
|
||||
<p><a href="/data/<?php echo $item['uuid'];?>" target="_blank"><?php echo $item['title'];?></a></p>
|
||||
<p>反馈数: <a href="/author/comment/ac/view/uuid/<?php echo $item['uuid'];?>"><?php echo $item['c'];?></a> <a href="/author/comment/ac/view/uuid/<?php echo $item['uuid'];?>" class="more">查看详细</a></p>
|
||||
</li>
|
||||
<?php endforeach;
|
||||
echo "</ul>";
|
||||
endif; ?>
|
||||
<div class="pagenavi"><?= $this->paginator; ?></div>
|
||||
<div class="span9">
|
||||
<div>
|
||||
<ul class="nav nav-pills">
|
||||
<li class="active"><a href="/author/comment">元数据反馈概况</a></li>
|
||||
<li class=""><a href="/author/comment/ac/listall">所有元数据反馈</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<?php
|
||||
if (count($this->paginator)):
|
||||
echo '<ul class="unstyled">';
|
||||
$autoindex=0;
|
||||
foreach ($this->paginator as $item):
|
||||
$autoindex++;?>
|
||||
<li class="well">
|
||||
<h4><a href="/data/<?php echo $item['uuid'];?>" target="_blank"><?php echo $item['title'];?></a></h4>
|
||||
<p>反馈数: <a href="/author/comment/ac/view/uuid/<?php echo $item['uuid'];?>"><?php echo $item['c'];?></a> <a href="/author/comment/ac/view/uuid/<?php echo $item['uuid'];?>" class="more">查看详细</a></p>
|
||||
</li>
|
||||
<?php endforeach;
|
||||
echo "</ul>";
|
||||
endif; ?>
|
||||
<div class="pagenavi"><?= $this->paginator; ?></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- //页面内容 -->
|
||||
<script>
|
||||
$('#wapper').width($('body').width()-300);
|
||||
</script>
|
||||
</div>
|
|
@ -2,59 +2,59 @@
|
|||
$this->headTitle($this->config->title->site);
|
||||
$this->headTitle($this->config->title->author);
|
||||
$this->headTitle()->setSeparator(' - ');
|
||||
$this->headScript()->appendFile('/js/jquery-1.7.min.js');
|
||||
$this->headScript()->appendFile('/js/jquery.colorbox-min.js');
|
||||
$this->theme->AppendPlus($this,'colorbox');
|
||||
$this->headLink()->appendStylesheet('/css/author.css');
|
||||
$this->headLink()->appendStylesheet('/css/colorbox.css');
|
||||
$this->breadcrumb('<a href="/">首页</a>');
|
||||
$this->breadcrumb('<a href="/author">数据作者</a>');
|
||||
$this->breadcrumb('我的数据');
|
||||
$this->breadcrumb()->setSeparator(' > ');
|
||||
?>
|
||||
<!-- 左侧导航 -->
|
||||
<div id='sidebar'>
|
||||
<div id='leftnavi'>
|
||||
<?= $this->partial('author/navi.phtml'); ?>
|
||||
<div class="row">
|
||||
<div class="span3">
|
||||
<?= $this->partial('author/navi.phtml'); ?>
|
||||
</div>
|
||||
</div>
|
||||
<!-- //左侧导航 -->
|
||||
|
||||
<!-- 页面内容 -->
|
||||
<div id="wapper">
|
||||
|
||||
<?php
|
||||
if(!empty($this->error))
|
||||
{
|
||||
echo $this->error;
|
||||
}
|
||||
|
||||
?>
|
||||
<div class="pagetitle">
|
||||
<?php echo $this->title ;?> (共 <?php echo count($this->info);?> 个文档)
|
||||
</div>
|
||||
<div id="datalist">
|
||||
<?php
|
||||
if (count($this->paginator)):
|
||||
echo "<ul>";
|
||||
$autoindex=0;
|
||||
foreach ($this->paginator as $item):
|
||||
$autoindex++;?>
|
||||
<li id="data_<?php echo $item['id'];?>">
|
||||
<p><input type="text" readonly="readonly" value="<?php echo $item['realname']; ?>" id="file_<?php echo $item['id'];?>" class="half" />
|
||||
<button type="button" id="btn_<?php echo $item['id'];?>" onclick="Submit(<?php echo $item['id'];?>)" disabled="disabled" style="display:none;">提交</button>
|
||||
(<?php echo round($item['filesize']/1024,2)?>KB)</p>
|
||||
<p><a href="javascript:;" onclick="del(<?php echo $item['id'];?>)">删除</a> |
|
||||
<a href="javascript:;" onclick="edit(<?php echo $item['id'];?>)">改名</a> |
|
||||
<a href="/author/document/ac/download/id/<?php echo $item['id'];?>" target="_blank">下载</a></p>
|
||||
</li>
|
||||
<?php endforeach;
|
||||
echo "</ul>";
|
||||
endif; ?>
|
||||
<div class="pagenavi"><?= $this->paginator; ?></div>
|
||||
<div class="span9">
|
||||
<div>
|
||||
|
||||
<?php
|
||||
if(!empty($this->error))
|
||||
{
|
||||
echo $this->error;
|
||||
}
|
||||
|
||||
?>
|
||||
<div class="pagetitle">
|
||||
<?php echo $this->title ;?> (共 <?php echo count($this->info);?> 个文档)
|
||||
</div>
|
||||
<div>
|
||||
<?php
|
||||
if (count($this->paginator)):
|
||||
echo '<ul class="unstyled">';
|
||||
$autoindex=0;
|
||||
foreach ($this->paginator as $item):
|
||||
$autoindex++;?>
|
||||
<li class="well" id="data_<?php echo $item['id'];?>">
|
||||
<p>
|
||||
<div class="input-append">
|
||||
<input type="text" readonly="readonly" value="<?php echo $item['realname']; ?>" id="file_<?php echo $item['id'];?>" class="half" />
|
||||
<button type="button" class="btn" id="btn_<?php echo $item['id'];?>" onclick="Submit(<?php echo $item['id'];?>)" disabled="disabled" style="display:none;">提交</button>
|
||||
</div>
|
||||
(<?php echo round($item['filesize']/1024,2)?>KB)</p>
|
||||
<p><a href="javascript:;" onclick="del(<?php echo $item['id'];?>)">删除</a> |
|
||||
<a href="javascript:;" onclick="edit(<?php echo $item['id'];?>)">改名</a> |
|
||||
<a href="/author/document/ac/download/id/<?php echo $item['id'];?>" target="_blank">下载</a></p>
|
||||
</li>
|
||||
<?php endforeach;
|
||||
echo "</ul>";
|
||||
endif; ?>
|
||||
<div class="pagenavi"><?= $this->paginator; ?></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- //页面内容 -->
|
||||
<script>
|
||||
function edit(id){
|
||||
|
|
|
@ -2,38 +2,34 @@
|
|||
$this->headTitle($this->config->title->site);
|
||||
$this->headTitle($this->config->title->author);
|
||||
$this->headTitle()->setSeparator(' - ');
|
||||
$this->headScript()->appendFile('/js/jquery-1.7.min.js');
|
||||
$this->headScript()->appendFile('/js/jquery.colorbox-min.js');
|
||||
$this->theme->AppendPlus($this,'colorbox');
|
||||
$this->headLink()->appendStylesheet('/css/author.css');
|
||||
$this->headLink()->appendStylesheet('/css/colorbox.css');
|
||||
$this->breadcrumb('<a href="/">首页</a>');
|
||||
$this->breadcrumb('<a href="/author">数据作者</a>');
|
||||
$this->breadcrumb('我的数据');
|
||||
$this->breadcrumb()->setSeparator(' > ');
|
||||
?>
|
||||
<!-- 左侧导航 -->
|
||||
<div id='sidebar'>
|
||||
<div id='leftnavi'>
|
||||
<?= $this->partial('author/navi.phtml'); ?>
|
||||
<div class="row">
|
||||
<div class="span3">
|
||||
<?= $this->partial('author/navi.phtml'); ?>
|
||||
</div>
|
||||
</div>
|
||||
<!-- //左侧导航 -->
|
||||
<div class="span9">
|
||||
|
||||
<!-- 页面内容 -->
|
||||
<div id="wapper">
|
||||
<form id="datasearch" class="search_form" action="/author/document/ac/search">
|
||||
<input type="text" id="keyword" name="q" value="<?php if(!empty($this->q)) echo $this->q; ?>" />
|
||||
<button type="submit" class="btn" id="search_btn">搜索</button>
|
||||
</form>
|
||||
<div id="datalist">
|
||||
<div class="input-append">
|
||||
<form id="datasearch" class="search_form" action="/author/document/ac/search">
|
||||
<input type="text" id="keyword" name="q" value="<?php if(!empty($this->q)) echo $this->q; ?>" />
|
||||
<button type="submit" class="btn" id="search_btn">搜索</button>
|
||||
</form>
|
||||
</div>
|
||||
<div>
|
||||
<?php
|
||||
if (count($this->paginator)):
|
||||
echo "<ul>";
|
||||
echo '<ul class="unstyled">';
|
||||
$autoindex=0;
|
||||
foreach ($this->paginator as $item):
|
||||
$autoindex++;?>
|
||||
<li>
|
||||
<p><a href="/data/<?php echo $item['uuid'];?>" target="_blank"><?php echo $item['title'];?></a></p>
|
||||
<li class="well">
|
||||
<h4><a href="/data/<?php echo $item['uuid'];?>" target="_blank"><?php echo $item['title'];?></a></h4>
|
||||
<p>文档数: <?php echo $item['aid'];?>
|
||||
<a href="/author/document/ac/view/uuid/<?php echo $item['uuid'];?>">查看详细</a> |
|
||||
<a class="iframe" href="/author/document/ac/upload/uuid/<?php echo $item['uuid']; ?>">文件上传</a> |
|
||||
|
@ -45,11 +41,10 @@ $this->breadcrumb()->setSeparator(' > ');
|
|||
endif; ?>
|
||||
<div class="pagenavi"><?= $this->paginator; ?></div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<!-- //页面内容 -->
|
||||
|
||||
<script>
|
||||
$(".iframe").colorbox({iframe:true, width:"80%", height:"80%"});
|
||||
$(".iframe").colorbox({iframe:true, width:"60%", height:"80%"});
|
||||
$(".inline").colorbox({inline:true, width:"50%"});
|
||||
</script>
|
|
@ -0,0 +1,133 @@
|
|||
<?php
|
||||
$this->headTitle($this->config->title->site);
|
||||
$this->headTitle($this->config->title->author);
|
||||
$this->headTitle()->setSeparator(' - ');
|
||||
//$this->headLink()->appendStylesheet('/css/admin.css');
|
||||
$this->breadcrumb('<a href="/">首页</a>');
|
||||
$this->breadcrumb('<a href="/admin/data">数据管理</a>');
|
||||
$this->breadcrumb('DOI');
|
||||
$this->breadcrumb()->setSeparator(' > ');
|
||||
$this->theme->AppendPlus($this,'colorbox');
|
||||
$this->headLink()->appendStylesheet('/css/author.css');
|
||||
?>
|
||||
<div class="row-fluid">
|
||||
<div class="span3">
|
||||
<?= $this->partial('author/navi.phtml'); ?>
|
||||
</div>
|
||||
<div class="span9">
|
||||
<div>
|
||||
<ul class="nav nav-tabs">
|
||||
<li><a href="/author/doi">浏览所有</a></li>
|
||||
<?php if(!empty($this->uuid)) {?>
|
||||
<li class="active"><a href="javascript:void(0);">编辑DOI</a></li>
|
||||
<?php }?>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="">
|
||||
<?php if(!empty($this->error)) { ?>
|
||||
<?= $this->error ?>
|
||||
<?php } ?>
|
||||
<?php if(!empty($this->msg)) { ?>
|
||||
<?= $this->msg ?>
|
||||
<?php } else{ ?>
|
||||
<form class="form-horizontal" method="post">
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="doi">doi</label>
|
||||
<div class="controls">
|
||||
<input type="text" id="doi" name="doi" readonly="readonly" value="<?= (isset($this->data['doi'])&&!empty($this->data['doi'])) ? $this->data['doi']:"doi:10.3972/westdc.x.2013.db" ?>" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="uuid">uuid</label>
|
||||
<div class="controls">
|
||||
<input type="text" id="uuid" name="uuid" readonly="readonly" value="<?= isset($this->data['uuid']) ? $this->data['uuid']:"" ?>" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="publisher">发布者</label>
|
||||
<div class="controls">
|
||||
<input type="text" id="publisher" name="publisher" value="<?= isset($this->data['publisher']) ? $this->data['publisher']:"" ?>" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="url">url</label>
|
||||
<div class="controls">
|
||||
<input type="text" id="url" name="url" readonly="readonly" value="<?= isset($this->data['url']) ? $this->data['url']:"" ?>" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="title">title</label>
|
||||
<div class="controls">
|
||||
<input type="text" id="title" name="title" readonly="readonly" value="<?= isset($this->data['title']) ? $this->data['title']:"" ?>" />
|
||||
</div>
|
||||
</div>
|
||||
<?php if(empty($this->data['info']) || !is_array($this->data['info'])) {?>
|
||||
<div class="control-group infocontrol" id="info1">
|
||||
<label class="control-label" for="">info</label>
|
||||
<div class="controls">
|
||||
<input type="text" name="info[1][author]" value="" placeholder="作者" />
|
||||
<input type="text" name="info[1][organization]" value="" placeholder="单位" />
|
||||
<input type="text" name="info[1][order]" value="" placeholder="排序" />
|
||||
</div>
|
||||
</div>
|
||||
<?php }else{ ?>
|
||||
<?php
|
||||
$index = 0;
|
||||
foreach($this->data['info'] as $k=>$v){
|
||||
$index ++;
|
||||
?>
|
||||
<div class="control-group infocontrol">
|
||||
<label class="control-label">info</label>
|
||||
<div class="controls">
|
||||
<input type="text" name="info[<?= $k ?>][author]" value="<?= $v['author'] ?>" placeholder="作者" />
|
||||
<input type="text" name="info[<?= $k ?>][organization]" value="<?= $v['organization'] ?>" placeholder="单位" />
|
||||
<input type="text" name="info[<?= $k ?>][order]" value="<?= $v['order'] ?>" placeholder="排序" />
|
||||
<?php if($index>0){ ?>
|
||||
<a href="javascript:void(0);" onclick="RmInput(this)"> -删除</a>
|
||||
<?php }?>
|
||||
</div>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<?php } ?>
|
||||
<div class="control-group">
|
||||
<div class="controls">
|
||||
<a href="javascript:void(0);" onclick="addinput()">+添加一条</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<div class="controls">
|
||||
<input type="hidden" name="submit" value="1" />
|
||||
<?php if(!empty($this->id)) { ?>
|
||||
<input type="hidden" name="id" value=" <?=$this->id?> " />
|
||||
<?php } ?>
|
||||
<?php if(!empty($this->uuid)) { ?>
|
||||
<input type="hidden" name="uuid" value=" <?=$this->uuid?>" />
|
||||
<?php } ?>
|
||||
<button type="submit" class="btn btn-primary">提交</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
<?php } ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
function addinput(){
|
||||
var now_index = $('.infocontrol').length;
|
||||
var index = now_index + 1;
|
||||
html = '<div class="control-group infocontrol"><div class="controls">'
|
||||
+ '<input type="text" name="info[' + index + '][author]" placeholder="作者" /> '
|
||||
+ '<input type="text" name="info[' + index + '][organization]" placeholder="单位" /> '
|
||||
+ '<input type="text" name="info[' + index + '][order]" placeholder="排序" /> '
|
||||
+ '<a href="javascript:void(0);" onclick="RmInput(this)"> -删除</a>'
|
||||
+ '</div></div>';
|
||||
now_index = null;
|
||||
index = null;
|
||||
$('.infocontrol').last().after(html);
|
||||
}
|
||||
function RmInput(e){
|
||||
$e = $(e);
|
||||
$e.parent('div').parent('div.infocontrol').remove();
|
||||
}
|
||||
</script>
|
||||
<!-- //页面内容 -->
|
|
@ -0,0 +1,80 @@
|
|||
<?php
|
||||
$this->headTitle($this->config->title->site);
|
||||
$this->headTitle($this->config->title->author);
|
||||
$this->headTitle()->setSeparator(' - ');
|
||||
$this->breadcrumb('<a href="/">首页</a>');
|
||||
$this->breadcrumb('<a href="/admin/data">数据管理</a>');
|
||||
$this->headLink()->appendStylesheet('/css/author.css');
|
||||
$this->breadcrumb('DOI');
|
||||
$this->breadcrumb()->setSeparator(' > ');
|
||||
$this->theme->AppendPlus($this,'colorbox');
|
||||
$this->theme->AppendPlus($this,'admin_plugin');
|
||||
?>
|
||||
<style>
|
||||
table thead tr th {background:#EBF2F6;}
|
||||
</style>
|
||||
<div class="row-fluid">
|
||||
<div class="span3">
|
||||
<?= $this->partial('author/navi.phtml'); ?>
|
||||
</div>
|
||||
<div class="span9">
|
||||
<div>
|
||||
<ul class="nav nav-tabs">
|
||||
<li class="active"><a href="/author/doi">浏览所有</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div>
|
||||
<div class="input-append">
|
||||
<form id="datasearch" class="search_form" action="">
|
||||
<input type="text" id="keyword" name="q" value="<?php if(!empty($this->q)) echo $this->q; ?>" />
|
||||
<button type="submit" class="btn" id="search_btn">搜索</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
<?php if(!empty($this->error)) { ?>
|
||||
<?= $this->error ?>
|
||||
<?php } ?>
|
||||
<?php if(!empty($this->msg)) { ?>
|
||||
<?= $this->msg ?>
|
||||
<?php } else{ ?>
|
||||
<div id="datalist">
|
||||
<?php if (count($this->paginator)): ?>
|
||||
<table class="table table-bordered table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>UUID</th>
|
||||
<th>元数据</th>
|
||||
<th>DOI</th>
|
||||
<th width="70">操作</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php $autoindex=0;
|
||||
foreach ($this->paginator as $item):
|
||||
$autoindex++;?>
|
||||
<tr id="DataLine_<?= $item['id']?>">
|
||||
<td><?= $item['uuid'] ?></td>
|
||||
<td><?= $item['title'] ?></td>
|
||||
<td><?= $item['doi'] ?></td>
|
||||
<td>
|
||||
<a href="/author/doi/ac/edit/uuid/<?= $item['uuid']?>">编辑</a>
|
||||
<a href="javascript:void(0);" onclick="onedel(<?= $item['id']?>)" id="delbtn_<?= $item['id']?>">删除</a>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
</tbody>
|
||||
</table>
|
||||
<?php endif; ?>
|
||||
<div class="pagenavi"><?= $this->paginator; ?></div>
|
||||
</div>
|
||||
<?php } ?>
|
||||
</div>
|
||||
</div>
|
||||
<!-- //页面内容 -->
|
||||
<script>
|
||||
var info = {
|
||||
btn_prefix : "delbtn_",
|
||||
item_prefix : "DataLine_",
|
||||
url : "/author/doi/ac/del"
|
||||
}
|
||||
</script>
|
|
@ -0,0 +1,91 @@
|
|||
<?php
|
||||
$this->headTitle($this->config->title->site);
|
||||
$this->headTitle($this->config->title->author);
|
||||
$this->headTitle()->setSeparator(' - ');
|
||||
$this->breadcrumb('<a href="/">首页</a>');
|
||||
$this->breadcrumb('<a href="/author">数据作者</a>');
|
||||
$this->headLink()->appendStylesheet('/css/author.css');
|
||||
$this->breadcrumb('申请成为元数据作者');
|
||||
$this->breadcrumb()->setSeparator(' > ');
|
||||
$this->theme->AppendPlus($this,'colorbox');
|
||||
$this->theme->AppendPlus($this,'admin_plugin');
|
||||
?>
|
||||
<div class="row-fluid">
|
||||
<div class="span3">
|
||||
<?= $this->partial('author/navi.phtml'); ?>
|
||||
</div>
|
||||
<div class="span9">
|
||||
<div>
|
||||
<ul class="nav nav-tabs">
|
||||
<li><a href="/author/fund/">所有项目</a></li>
|
||||
<li class="active"><a href="/author/fund/ac/add">添加新项目</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="">
|
||||
<?php if(!empty($this->error)) { ?>
|
||||
<div class="alert alert-block alert-error fade in" id="Alert-error-box">
|
||||
<a class="close" data-dismiss="alert" href="#">×</a>
|
||||
<?php if(!is_array($this->error)) { ?><h4 class="alert-heading"><?= $this->error ?></h4><?php } else { ?>
|
||||
<ul>
|
||||
<?php foreach($this->error as $v) { ?>
|
||||
<li><?= $v ?></li>
|
||||
<?php } ?>
|
||||
</ul>
|
||||
<?php } ?>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<?php if(!empty($this->msg)) { ?>
|
||||
<div class="alert <?= $this->AlertType;?>">
|
||||
<a data-dismiss="alert" class="close">×</a>
|
||||
<?php echo $this->msg ?>
|
||||
</div>
|
||||
<?php if(!empty($this->jump_url)) { ?>
|
||||
<script language="javascript">setTimeout("self.location='<?php echo $this->jump_url ?>'",3000);</script>
|
||||
<?php } ?>
|
||||
<?php } else{ ?>
|
||||
<form class="form-horizontal" method="post">
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="title">项目名称</label>
|
||||
<div class="controls">
|
||||
<input type="text" id="title" class="span12" name="title" value="<?= isset($this->data['title']) ? $this->data['title']:"" ?>" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="fund_id">编号</label>
|
||||
<div class="controls">
|
||||
<input type="text" id="fund_id" name="fund_id" value="<?= isset($this->data['fund_id']) ? $this->data['fund_id']:"" ?>" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="fund_type">类型</label>
|
||||
<div class="controls">
|
||||
<input type="text" id="fund_type" name="fund_type" value="<?= isset($this->data['fund_type']) ? $this->data['fund_type']:"" ?>" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="title_en">英文名称</label>
|
||||
<div class="controls">
|
||||
<input type="text" id="title_en" name="title_en" value="<?= isset($this->data['title_en']) ? $this->data['title_en']:"" ?>" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="fund_type_en">英文类型</label>
|
||||
<div class="controls">
|
||||
<input type="text" id="fund_type_en" name="fund_type_en" value="<?= isset($this->data['fund_type_en']) ? $this->data['fund_type_en']:"" ?>" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<div class="controls">
|
||||
<input type="hidden" name="submit" value="1" />
|
||||
<?php if(!empty($this->id)) { ?>
|
||||
<input type="hidden" name="id" value=" <?=$this->id?> " />
|
||||
<?php } ?>
|
||||
<button type="submit" class="btn btn-primary">提交</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
<?php } ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- //页面内容 -->
|
|
@ -0,0 +1,163 @@
|
|||
<?php
|
||||
$this->headTitle($this->config->title->site);
|
||||
$this->headTitle($this->config->title->author);
|
||||
$this->headTitle()->setSeparator(' - ');
|
||||
$this->breadcrumb('<a href="/">首页</a>');
|
||||
$this->breadcrumb('<a href="/author">数据作者</a>');
|
||||
$this->headLink()->appendStylesheet('/css/author.css');
|
||||
$this->breadcrumb('申请成为元数据作者');
|
||||
$this->breadcrumb()->setSeparator(' > ');
|
||||
$this->theme->AppendPlus($this,'colorbox');
|
||||
$this->theme->AppendPlus($this,'admin_plugin');
|
||||
?>
|
||||
<style>
|
||||
table thead tr th {background:#EBF2F6;}
|
||||
</style>
|
||||
<div class="row-fluid">
|
||||
<div class="span3">
|
||||
<?= $this->partial('author/navi.phtml'); ?>
|
||||
</div>
|
||||
<div class="span9">
|
||||
<div>
|
||||
<ul class="nav nav-tabs">
|
||||
<li class="active"><a href="/author/fund/">所有项目</a></li>
|
||||
<li><a href="/author/fund/ac/add">添加新项目</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<?php if(!empty($this->md)) { ?>
|
||||
<div>
|
||||
<?php if(empty($this->ct)) { ?>
|
||||
<a class="btn btn-primary pull-right" href="/author/fund/ac/formd/uuid/<?= $this->md['uuid'] ?>"><i class="icon-plus"></i>为此数据添加项目</a>
|
||||
<?php }else{ ?>
|
||||
<a class="pull-right btn" href="/author/fund/uuid/<?= $this->md['uuid'] ?>">返回</a>
|
||||
<div class="pull-right label label-info">点击“添加此项目”即可将项目添加到元数据</div>
|
||||
<?php } ?>
|
||||
<h3>《<?= $this->md['title'] ?>》 的支持项目</h3>
|
||||
<hr />
|
||||
</div>
|
||||
<?php } ?>
|
||||
<div>
|
||||
<div class="input-append">
|
||||
<form id="datasearch" class="search_form" action="">
|
||||
<input type="text" id="keyword" name="q" value="<?php if(!empty($this->q)) echo $this->q; ?>" />
|
||||
<button type="submit" class="btn" id="search_btn">搜索</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
<?php if(!empty($this->error)) { ?>
|
||||
<?php if(empty($this->AlertType)) $AlertType = "alert-error";else $AlertType = $this->AlertType;?>
|
||||
<div class="alert alert-block fade in <?= $AlertType ?>" id="Alert-error-box">
|
||||
<a class="close" data-dismiss="alert" href="#">×</a>
|
||||
<?php if(!is_array($this->error)) { ?><h4 class="alert-heading"><?= $this->error ?></h4><?php } else { ?>
|
||||
<ul>
|
||||
<?php foreach($this->error as $v) { ?>
|
||||
<li><?= $v ?></li>
|
||||
<?php } ?>
|
||||
</ul>
|
||||
<?php } ?>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<?php if(!empty($this->msg)) { ?>
|
||||
<div class="alert <?= $this->AlertType;?>">
|
||||
<a data-dismiss="alert" class="close">×</a>
|
||||
<?php echo $this->msg ?>
|
||||
</div>
|
||||
<?php if(!empty($this->jump_url)) { ?>
|
||||
<script language="javascript">setTimeout("self.location='<?php echo $this->jump_url ?>'",3000);</script>
|
||||
<?php } ?>
|
||||
<?php } else{ ?>
|
||||
<div id="datalist">
|
||||
<?php if (count($this->paginator)): ?>
|
||||
<table class="table table-bordered table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>名称</th>
|
||||
<th>编号</th>
|
||||
<th>类型</th>
|
||||
<?php if($this->md) { ?>
|
||||
<th width="80">排序</th>
|
||||
<?php }else{ ?>
|
||||
<th>英文标题</th>
|
||||
<th>英文类型</th>
|
||||
<?php } ?>
|
||||
<th width="70">操作</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php $autoindex=0;
|
||||
foreach ($this->paginator as $item):
|
||||
$autoindex++;?>
|
||||
<?php if(empty($this->md)) { ?>
|
||||
<tr id="DataLine_<?= $item['id']?>">
|
||||
<?php }else{?>
|
||||
<tr id="DataLine_<?= $item['mfid']?>">
|
||||
<?php }?>
|
||||
<td><?= $item['title'] ?></td>
|
||||
<td><?= $item['fund_id'] ?></td>
|
||||
<td><?= $item['fund_type'] ?></td>
|
||||
<?php if($this->md) { ?>
|
||||
<?php if($this->ct) { ?>
|
||||
<td><input type="text" name="order" id="order_<?= $item['id']?>" class="span12" /></td>
|
||||
<?php }else{ ?>
|
||||
<td><input type="text" name="order" id="order_<?= $item['mfid']?>" class="span12" value="<?= $item['place'] ?>" /></td>
|
||||
<?php }?>
|
||||
<?php }else{ ?>
|
||||
<td><?= $item['title_en'] ?></td>
|
||||
<td><?= $item['fund_type_en'] ?></td>
|
||||
<?php } ?>
|
||||
<td>
|
||||
<?php if(empty($this->md)) { ?>
|
||||
<a href="/author/fund/ac/edit/id/<?= $item['id']?>">编辑</a>
|
||||
<a href="javascript:void(0);" onclick="onedel(<?= $item['id']?>)" id="delbtn_<?= $item['id']?>">删除</a>
|
||||
<?php }else{ ?>
|
||||
<?php if(empty($this->ct)) { ?>
|
||||
<a href="javascript:void(0);" class="changeorder" rel="<?= $item['mfid']?>">排序</a>
|
||||
<a href="javascript:void(0);" onclick="onedel(<?= $item['mfid']?>)" id="delbtn_<?= $item['mfid']?>">移除</a>
|
||||
<?php }else{ ?>
|
||||
<a href="javascript:void(0);" class="addtomd" rel="<?= $item['id']?>">添加此项目</a>
|
||||
<?php } ?>
|
||||
<?php } ?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
</tbody>
|
||||
</table>
|
||||
<?php endif; ?>
|
||||
<div class="pagenavi"><?= $this->paginator; ?></div>
|
||||
</div>
|
||||
<?php } ?>
|
||||
</div>
|
||||
</div>
|
||||
<!-- //页面内容 -->
|
||||
<script>
|
||||
<?php if(!empty($this->ct)) { ?>
|
||||
$('.addtomd').each(function(index, element) {
|
||||
$(this).click(function(){
|
||||
id = $(this).attr('rel');
|
||||
order = $('#order_'+id).val();
|
||||
self.location='/author/fund/ac/formd/uuid/<?= $this->md['uuid'] ?>/id/'+id+'/order/'+ order
|
||||
});
|
||||
});
|
||||
<?php }else{ ?>
|
||||
$('.changeorder').each(function(index, element) {
|
||||
$(this).click(function(){
|
||||
id = $(this).attr('rel');
|
||||
order = $('#order_'+id).val();
|
||||
self.location='/author/fund/ac/formd/uuid/<?= $this->md['uuid'] ?>/mfid/'+id+'/order/'+ order
|
||||
});
|
||||
});
|
||||
<?php } ?>
|
||||
<?php if(empty($this->md)) { ?>
|
||||
var info = {
|
||||
btn_prefix : "delbtn_",
|
||||
item_prefix : "DataLine_",
|
||||
url : "/author/fund/ac/del"
|
||||
}
|
||||
<?php }else{ ?>
|
||||
var info = {
|
||||
btn_prefix : "delbtn_",
|
||||
item_prefix : "DataLine_",
|
||||
url : "/author/fund/ac/mdfunddel/uuid/<?= $this->md['uuid'] ?>"
|
||||
}
|
||||
<?php } ?>
|
||||
</script>
|
|
@ -1,54 +1,45 @@
|
|||
<?php
|
||||
$this->headTitle($this->config->title->site);
|
||||
$this->headTitle($this->config->title->author);
|
||||
$this->headTitle()->setSeparator(' - ');
|
||||
$this->headScript()->appendFile('/js/jquery-1.7.min.js');
|
||||
$this->headLink()->appendStylesheet('/css/author.css');
|
||||
$this->breadcrumb('<a href="/">首页</a>');
|
||||
$this->breadcrumb('<a href="/author">数据作者</a>');
|
||||
$this->breadcrumb('数据申请管理');
|
||||
$this->breadcrumb()->setSeparator(' > ');
|
||||
?>
|
||||
<!-- 左侧导航 -->
|
||||
<div id='sidebar'>
|
||||
<div id='leftnavi'>
|
||||
<?= $this->partial('author/navi.phtml'); ?>
|
||||
</div>
|
||||
</div>
|
||||
<!-- //左侧导航 -->
|
||||
|
||||
<!-- 页面内容 -->
|
||||
<div id="wapper">
|
||||
<div id="tabs-controller">
|
||||
<ul>
|
||||
<li class="box-shadow"><a class="text-shadow" href="/author/inauthor/ac/online">在线下载记录</a></li>
|
||||
<li class="box-shadow"><a class="text-shadow" href="/author/inauthor/ac/offline">离线申请记录</a></li>
|
||||
<li class="box-shadow active"><a class="text-shadow" href="/author/inauthor/ac/datalist">按数据查看</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<p>请输入元数据标题关键字进行搜索</p>
|
||||
<form id="datasearch" class="search_form" action="/author/inauthor/ac/searchdata">
|
||||
<input type="text" id="keyword" name="q" value="<?php if(!empty($this->q)) echo $this->q; ?>" />
|
||||
<button type="submit" class="btn" id="search_btn">搜索</button>
|
||||
</form>
|
||||
<div id="datalist">
|
||||
<?php
|
||||
if (count($this->paginator)):
|
||||
echo "<ul>";
|
||||
$autoindex=0;
|
||||
foreach ($this->paginator as $item):
|
||||
$autoindex++;?>
|
||||
<li>
|
||||
<p><a href="/data/<?php echo $item['uuid'];?>" target="_blank"><?php echo $item['title'];?></a></p>
|
||||
<p>申请次数:<?php echo $item['c'];?> (<a href="/author/inauthor/ac/datalist/uuid/<?php echo $item['uuid'];?>">查看详细</a>)</p>
|
||||
</li>
|
||||
<?php endforeach;
|
||||
echo "</ul>";
|
||||
endif; ?>
|
||||
<div class="pagenavi"><?= $this->paginator; ?></div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- //页面内容 -->
|
||||
<script>
|
||||
$('#wapper').width($('body').width()-300);
|
||||
</script>
|
||||
<?php
|
||||
$this->headTitle($this->config->title->site);
|
||||
$this->headTitle($this->config->title->author);
|
||||
$this->headTitle()->setSeparator(' - ');
|
||||
$this->headLink()->appendStylesheet('/css/author.css');
|
||||
$this->breadcrumb('<a href="/">首页</a>');
|
||||
$this->breadcrumb('<a href="/author">数据作者</a>');
|
||||
$this->breadcrumb('数据申请管理');
|
||||
$this->breadcrumb()->setSeparator(' > ');
|
||||
?>
|
||||
<div class="row">
|
||||
<div class="span3">
|
||||
<?= $this->partial('author/navi.phtml'); ?>
|
||||
</div>
|
||||
<div class="span9">
|
||||
<div>
|
||||
<ul class="nav nav-pills">
|
||||
<li><a href="/author/inauthor/ac/online">在线下载记录</a></li>
|
||||
<li><a href="/author/inauthor/ac/offline">离线申请记录</a></li>
|
||||
<li class="active"><a href="/author/inauthor/ac/datalist">按数据查看</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<p>请输入元数据标题关键字进行搜索</p>
|
||||
<form id="datasearch" class="search_form" action="/author/inauthor/ac/searchdata">
|
||||
<input type="text" id="keyword" name="q" value="<?php if(!empty($this->q)) echo $this->q; ?>" />
|
||||
<button type="submit" class="btn" id="search_btn">搜索</button>
|
||||
</form>
|
||||
<div>
|
||||
<?php
|
||||
if (count($this->paginator)):
|
||||
echo '<ul class="unstyled">';
|
||||
$autoindex=0;
|
||||
foreach ($this->paginator as $item):
|
||||
$autoindex++;?>
|
||||
<li class="well">
|
||||
<h4><a href="/data/<?php echo $item['uuid'];?>" target="_blank"><?php echo $item['title'];?></a></h4>
|
||||
<p>申请次数:<?php echo $item['c'];?> (<a href="/author/inauthor/ac/datalist/uuid/<?php echo $item['uuid'];?>">查看详细</a>)</p>
|
||||
</li>
|
||||
<?php endforeach;
|
||||
echo "</ul>";
|
||||
endif; ?>
|
||||
<div class="pagenavi"><?= $this->paginator; ?></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
|
@ -2,45 +2,38 @@
|
|||
$this->headTitle($this->config->title->site);
|
||||
$this->headTitle($this->config->title->author);
|
||||
$this->headTitle()->setSeparator(' - ');
|
||||
$this->headScript()->appendFile('/js/jquery-1.7.min.js');
|
||||
$this->headLink()->appendStylesheet('/css/author.css');
|
||||
$this->breadcrumb('<a href="/">首页</a>');
|
||||
$this->breadcrumb('<a href="/author">数据作者</a>');
|
||||
$this->breadcrumb('数据申请管理');
|
||||
$this->breadcrumb()->setSeparator(' > ');
|
||||
?>
|
||||
<!-- 左侧导航 -->
|
||||
<div id='sidebar'>
|
||||
<div id='leftnavi'>
|
||||
<?= $this->partial('author/navi.phtml'); ?>
|
||||
<div class="row">
|
||||
<div class="span3">
|
||||
<?= $this->partial('author/navi.phtml'); ?>
|
||||
</div>
|
||||
</div>
|
||||
<!-- //左侧导航 -->
|
||||
|
||||
<!-- 页面内容 -->
|
||||
<div id="wapper">
|
||||
<div id="tabs-controller">
|
||||
<ul>
|
||||
<li class="box-shadow"><a class="text-shadow" href="/author/inauthor/ac/online">在线下载记录</a></li>
|
||||
<li class="box-shadow active"><a class="text-shadow" href="/author/inauthor/ac/offline">离线申请记录</a></li>
|
||||
<li class="box-shadow"><a class="text-shadow" href="/author/inauthor/ac/datalist">按数据查看</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="box box-info" id="head_tip" onclick="$('#head_tip').hide();" title="点击关闭提示">离线数据申请默认为同意下载</div>
|
||||
<p>请输入元数据标题关键字进行搜索</p>
|
||||
<form id="datasearch" class="search_form" action="/author/inauthor/ac/searchoffline">
|
||||
<input type="text" id="keyword" name="q" value="<?php if(!empty($this->q)) echo $this->q; ?>" />
|
||||
<button type="submit" class="btn" id="search_btn">搜索</button>
|
||||
</form>
|
||||
<div id="datalist">
|
||||
<div class="span9">
|
||||
<div>
|
||||
<ul class="nav nav-pills">
|
||||
<li><a href="/author/inauthor/ac/online">在线下载记录</a></li>
|
||||
<li class="active"><a href="/author/inauthor/ac/offline">离线申请记录</a></li>
|
||||
<li><a href="/author/inauthor/ac/datalist">按数据查看</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<p>请输入元数据标题关键字进行搜索</p>
|
||||
<form id="datasearch" class="search_form" action="/author/inauthor/ac/searchoffline">
|
||||
<input type="text" id="keyword" name="q" value="<?php if(!empty($this->q)) echo $this->q; ?>" />
|
||||
<button type="submit" class="btn" id="search_btn">搜索</button>
|
||||
</form>
|
||||
<div>
|
||||
<?php
|
||||
if (count($this->paginator)):
|
||||
echo "<ul>";
|
||||
echo '<ul class="unstyled">';
|
||||
$autoindex=0;
|
||||
foreach ($this->paginator as $item):
|
||||
$autoindex++;?>
|
||||
<li>
|
||||
<p><a href="/data/<?php echo $item['uuid'];?>" target="_blank"><?php echo $item['title'];?></a>
|
||||
<li class="well">
|
||||
<p><a href="/data/<?php echo $item['uuid'];?>" target="_blank"><?php echo $item['title'];?></a>
|
||||
【<a href="/author/inauthor/ac/offline/pdf/<?php echo $item['doid']; ?>">查看用户申请表</a>】</p>
|
||||
<p>用户:<?php echo $item['username'];?>
|
||||
单位:<?php echo $item['unit'];?>
|
||||
|
@ -54,8 +47,8 @@ $this->breadcrumb()->setSeparator(' > ');
|
|||
endif; ?>
|
||||
<div class="pagenavi"><?= $this->paginator; ?></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- //页面内容 -->
|
||||
<script>
|
||||
function confirm(uuid,oid){
|
||||
doPD(uuid,"confirm",oid);
|
||||
|
@ -81,5 +74,4 @@ function doPD(uuid,pr,oid){
|
|||
}
|
||||
});
|
||||
}
|
||||
$('#wapper').width($('body').width()-300);
|
||||
</script>
|
|
@ -2,46 +2,40 @@
|
|||
$this->headTitle($this->config->title->site);
|
||||
$this->headTitle($this->config->title->author);
|
||||
$this->headTitle()->setSeparator(' - ');
|
||||
$this->headScript()->appendFile('/js/jquery-1.7.min.js');
|
||||
|
||||
$this->headLink()->appendStylesheet('/css/author.css');
|
||||
$this->breadcrumb('<a href="/">首页</a>');
|
||||
$this->breadcrumb('<a href="/author">数据作者</a>');
|
||||
$this->breadcrumb('数据申请管理');
|
||||
$this->breadcrumb()->setSeparator(' > ');
|
||||
?>
|
||||
<!-- 左侧导航 -->
|
||||
<div id='sidebar'>
|
||||
<div id='leftnavi'>
|
||||
<?= $this->partial('author/navi.phtml'); ?>
|
||||
<div class="row">
|
||||
<div class="span3">
|
||||
<?= $this->partial('author/navi.phtml'); ?>
|
||||
</div>
|
||||
</div>
|
||||
<!-- //左侧导航 -->
|
||||
|
||||
<!-- 页面内容 -->
|
||||
<div id="wapper">
|
||||
<div id="tabs-controller">
|
||||
<ul>
|
||||
<li class="box-shadow active"><a class="text-shadow" href="/author/inauthor/ac/online">在线下载记录</a></li>
|
||||
<li class="box-shadow"><a class="text-shadow" href="/author/inauthor/ac/offline">离线申请记录</a></li>
|
||||
<li class="box-shadow"><a class="text-shadow" href="/author/inauthor/ac/datalist">按数据查看</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="box box-info" id="head_tip" onclick="$('#head_tip').hide();" title="点击关闭提示">这里仅显示您的数据的在线数据记录。</div>
|
||||
<p>请输入元数据标题关键字进行搜索</p>
|
||||
<form id="datasearch" class="search_form" action="/author/inauthor/ac/searchonline">
|
||||
<input type="text" id="keyword" name="q" value="<?php if(!empty($this->q)) echo $this->q; ?>" />
|
||||
<button type="submit" class="btn" id="search_btn">搜索</button>
|
||||
</form>
|
||||
<div id="datalist">
|
||||
<div class="span9">
|
||||
<div>
|
||||
<ul class="nav nav-pills">
|
||||
<li class="active"><a href="/author/inauthor/ac/online">在线下载记录</a></li>
|
||||
<li><a href="/author/inauthor/ac/offline">离线申请记录</a></li>
|
||||
<li><a href="/author/inauthor/ac/datalist">按数据查看</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<p>请输入元数据标题关键字进行搜索</p>
|
||||
<div class="input-append">
|
||||
<form id="datasearch" class="search_form" action="/author/inauthor/ac/searchonline">
|
||||
<input type="text" id="keyword" name="q" value="<?php if(!empty($this->q)) echo $this->q; ?>" />
|
||||
<button type="submit" class="btn" id="search_btn">搜索</button>
|
||||
</form>
|
||||
</div>
|
||||
<div>
|
||||
<?php
|
||||
if (count($this->paginator)):
|
||||
echo "<ul>";
|
||||
echo '<ul class="unstyled">';
|
||||
$autoindex=0;
|
||||
foreach ($this->paginator as $item):
|
||||
$autoindex++;?>
|
||||
<li>
|
||||
<p><a href="/data/<?php echo $item['uuid'];?>" target="_blank"><?php echo $item['title'];?></a></p>
|
||||
<li class="well">
|
||||
<h4><a href="/data/<?php echo $item['uuid'];?>" target="_blank"><?php echo $item['title'];?></a></h4>
|
||||
<p>用户:<?php echo $item['username'];?>
|
||||
单位:<?php echo $item['unit'];?>
|
||||
申请时间:<?php echo date("Y-m-d H:i:s",strtotime($item['ts_created']));?></p>
|
||||
|
@ -53,8 +47,5 @@ $this->breadcrumb()->setSeparator(' > ');
|
|||
endif; ?>
|
||||
<div class="pagenavi"><?= $this->paginator; ?></div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- //页面内容 -->
|
||||
<script>
|
||||
$('#wapper').width($('body').width()-300);
|
||||
</script>
|
||||
</div>
|
||||
</div>
|
|
@ -8,17 +8,13 @@ $this->breadcrumb('<a href="/">首页</a>');
|
|||
$this->breadcrumb($this->config->title->author);
|
||||
$this->breadcrumb()->setSeparator(' > ');
|
||||
?>
|
||||
<!-- 左侧导航 -->
|
||||
<div id='sidebar'>
|
||||
<div id='leftnavi'>
|
||||
<?= $this->partial('author/navi.phtml'); ?>
|
||||
<div class="row">
|
||||
<div class="span3">
|
||||
<?= $this->partial('author/navi.phtml'); ?>
|
||||
</div>
|
||||
</div>
|
||||
<!-- //左侧导航 -->
|
||||
|
||||
<!-- 页面内容 -->
|
||||
<div id="wapper">
|
||||
<div class="helplist">
|
||||
<div class="span9">
|
||||
|
||||
<div class="helplist">
|
||||
<ul>
|
||||
<li id="author_system">
|
||||
<h1>数据作者系统有什么功能?</h1>
|
||||
|
@ -46,8 +42,6 @@ $this->breadcrumb()->setSeparator(' > ');
|
|||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<!-- //页面内容 -->
|
||||
<script>
|
||||
$('#wapper').width($('body').width()-300);
|
||||
</script>
|
|
@ -2,58 +2,56 @@
|
|||
$this->headTitle($this->config->title->site);
|
||||
$this->headTitle($this->config->title->author);
|
||||
$this->headTitle()->setSeparator(' - ');
|
||||
$this->headScript()->appendFile('/js/jquery-1.7.min.js');
|
||||
$this->headScript()->appendFile('/js/jquery.colorbox-min.js');
|
||||
$this->theme->AppendPlus($this,'colorbox');
|
||||
$this->headLink()->appendStylesheet('/css/author.css');
|
||||
$this->headLink()->appendStylesheet('/css/colorbox.css');
|
||||
$this->breadcrumb('<a href="/">首页</a>');
|
||||
$this->breadcrumb('<a href="/author">数据作者</a>');
|
||||
$this->breadcrumb('数据文献管理');
|
||||
$this->breadcrumb()->setSeparator(' > ');
|
||||
?>
|
||||
<!-- 左侧导航 -->
|
||||
<div id='sidebar'>
|
||||
<div id='leftnavi'>
|
||||
<?= $this->partial('author/navi.phtml'); ?>
|
||||
<div class="row">
|
||||
<div class="span3">
|
||||
<?= $this->partial('author/navi.phtml'); ?>
|
||||
</div>
|
||||
<div class="span9">
|
||||
|
||||
<div>
|
||||
<ul class="nav nav-pills">
|
||||
<li class=""><a class="text-shadow" href="/author/literature/">所有文献概况</a></li>
|
||||
<li class=""><a class="text-shadow" href="/author/literature/ac/byliter">逐文献浏览</a></li>
|
||||
<li class="active"><a class="text-shadow" href="/author/literature/ac/bydata">逐数据浏览</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<p>请输入元数据或文献标题关键字进行搜索</p>
|
||||
<div class="input-append">
|
||||
<form id="datasearch" class="search_form" action="/author/literature/ac/bydata">
|
||||
<input type="text" class="span2" id="keyword" name="q" value="<?php if(!empty($this->q)) echo $this->q; ?>" />
|
||||
<button type="submit" class="btn" id="search_btn">搜索</button>
|
||||
</form>
|
||||
</div>
|
||||
<div>
|
||||
<?php
|
||||
if (count($this->paginator)):
|
||||
echo '<ul class="unstyled">';
|
||||
$autoindex=0;
|
||||
foreach ($this->paginator as $item):
|
||||
$autoindex++;?>
|
||||
<li class="well" id="list_<?php echo $item['id'].$item['uuid'];?>">
|
||||
<h4><a href="/data/<?php echo $item['uuid'];?>" target="_blank"><?php echo $item['title'];?></a></h4>
|
||||
<p>共有数据文献<?php echo $item['c'];?>篇。
|
||||
【 <a href="/author/literature/uuid/<?php echo $item['uuid'];?>">查看详细</a>
|
||||
| <a href="/author/literature/ac/add/uuid/<?php echo $item['uuid'];?>" class="more iframe">添加文献</a>
|
||||
】</p>
|
||||
</li>
|
||||
<?php endforeach;
|
||||
echo "</ul>";
|
||||
endif; ?>
|
||||
<div class="pagenavi"><?= $this->paginator; ?></div>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<!-- //左侧导航 -->
|
||||
|
||||
<!-- 页面内容 -->
|
||||
<div id="wapper">
|
||||
<div id="tabs-controller">
|
||||
<ul>
|
||||
<li class="box-shadow"><a class="text-shadow" href="/author/literature/">所有文献概况</a></li>
|
||||
<li class="box-shadow"><a class="text-shadow" href="/author/literature/ac/byliter">逐文献浏览</a></li>
|
||||
<li class="box-shadow active"><a class="text-shadow" href="/author/literature/ac/bydata">逐数据浏览</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<p>请输入元数据标题关键字进行搜索</p>
|
||||
<form id="datasearch" class="search_form" action="/author/literature/ac/bydata">
|
||||
<input type="text" id="keyword" name="q" value="<?php if(!empty($this->q)) echo $this->q; ?>" />
|
||||
<button type="submit" class="btn" id="search_btn">搜索</button>
|
||||
</form>
|
||||
<div id="datalist">
|
||||
<?php
|
||||
if (count($this->paginator)):
|
||||
echo "<ul>";
|
||||
$autoindex=0;
|
||||
foreach ($this->paginator as $item):
|
||||
$autoindex++;?>
|
||||
<li id="list_<?php echo $item['id'].$item['uuid'];?>">
|
||||
<p><a href="/data/<?php echo $item['uuid'];?>" target="_blank"><?php echo $item['title'];?></a></p>
|
||||
<p>共有数据文献<?php echo $item['c'];?>篇。
|
||||
【 <a href="/author/literature/uuid/<?php echo $item['uuid'];?>">查看详细</a>
|
||||
| <a href="/author/literature/ac/add/uuid/<?php echo $item['uuid'];?>" class="more iframe">添加文献</a>
|
||||
】</p>
|
||||
</li>
|
||||
<?php endforeach;
|
||||
echo "</ul>";
|
||||
endif; ?>
|
||||
<div class="pagenavi"><?= $this->paginator; ?></div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- //页面内容 -->
|
||||
<script>
|
||||
$('#wapper').width($('body').width()-300);
|
||||
function action(ac,uuid){
|
||||
|
|
|
@ -2,54 +2,50 @@
|
|||
$this->headTitle($this->config->title->site);
|
||||
$this->headTitle($this->config->title->author);
|
||||
$this->headTitle()->setSeparator(' - ');
|
||||
$this->headScript()->appendFile('/js/jquery-1.7.min.js');
|
||||
$this->headLink()->appendStylesheet('/css/author.css');
|
||||
$this->breadcrumb('<a href="/">首页</a>');
|
||||
$this->breadcrumb('<a href="/author">数据作者</a>');
|
||||
$this->breadcrumb('数据文献管理');
|
||||
$this->breadcrumb()->setSeparator(' > ');
|
||||
?>
|
||||
<!-- 左侧导航 -->
|
||||
<div id='sidebar'>
|
||||
<div id='leftnavi'>
|
||||
<?= $this->partial('author/navi.phtml'); ?>
|
||||
<div class="row">
|
||||
<div class="span3">
|
||||
<?= $this->partial('author/navi.phtml'); ?>
|
||||
</div>
|
||||
</div>
|
||||
<!-- //左侧导航 -->
|
||||
|
||||
<!-- 页面内容 -->
|
||||
<div id="wapper">
|
||||
<div id="tabs-controller">
|
||||
<ul>
|
||||
<li class="box-shadow"><a class="text-shadow" href="/author/literature/">所有文献概况</a></li>
|
||||
<li class="box-shadow active"><a class="text-shadow" href="/author/literature/ac/byliter">逐文献浏览</a></li>
|
||||
<li class="box-shadow"><a class="text-shadow" href="/author/literature/ac/bydata">逐数据浏览</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<p>请输入文献关键字进行搜索</p>
|
||||
<form id="datasearch" class="search_form" action="/author/literature/ac/bydata">
|
||||
<input type="text" id="keyword" name="q" value="<?php if(!empty($this->q)) echo $this->q; ?>" />
|
||||
<button type="submit" class="btn" id="search_btn">搜索</button>
|
||||
</form>
|
||||
<div id="datalist">
|
||||
<?php
|
||||
if (count($this->paginator)):
|
||||
echo "<ul>";
|
||||
$autoindex=0;
|
||||
foreach ($this->paginator as $item):
|
||||
$autoindex++;?>
|
||||
<li>
|
||||
<p><a href="/author/literature/id/<?php echo $item['id'];?>"><?php echo $item['reference'];?></a></p>
|
||||
<p>共有<?php echo $item['c'];?>条数据使用此文献。
|
||||
【 <a href="/author/literature/id/<?php echo $item['id'];?>">查看详细</a> 】</p>
|
||||
</li>
|
||||
<?php endforeach;
|
||||
echo "</ul>";
|
||||
endif; ?>
|
||||
<div class="pagenavi"><?= $this->paginator; ?></div>
|
||||
<div class="span9">
|
||||
|
||||
<div>
|
||||
<ul class="nav nav-pills">
|
||||
<li class=""><a class="text-shadow" href="/author/literature/">所有文献概况</a></li>
|
||||
<li class="active"><a class="text-shadow" href="/author/literature/ac/byliter">逐文献浏览</a></li>
|
||||
<li class=""><a class="text-shadow" href="/author/literature/ac/bydata">逐数据浏览</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<p>请输入元数据或文献标题关键字进行搜索</p>
|
||||
<div class="input-append">
|
||||
<form id="datasearch" class="search_form" action="/author/literature/ac/bydata">
|
||||
<input type="text" id="keyword" name="q" value="<?php if(!empty($this->q)) echo $this->q; ?>" />
|
||||
<button type="submit" class="btn" id="search_btn">搜索</button>
|
||||
</form>
|
||||
</div>
|
||||
<div>
|
||||
<?php
|
||||
if (count($this->paginator)):
|
||||
echo '<ul class="unstyled">';
|
||||
$autoindex=0;
|
||||
foreach ($this->paginator as $item):
|
||||
$autoindex++;?>
|
||||
<li class="well">
|
||||
<h4><a href="/author/literature/id/<?php echo $item['id'];?>"><?php echo $item['reference'];?></a></h4>
|
||||
<p>共有<?php echo $item['c'];?>条数据使用此文献。
|
||||
【 <a href="/author/literature/id/<?php echo $item['id'];?>">查看详细</a> 】</p>
|
||||
</li>
|
||||
<?php endforeach;
|
||||
echo "</ul>";
|
||||
endif; ?>
|
||||
<div class="pagenavi"><?= $this->paginator; ?></div>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<!-- //页面内容 -->
|
||||
<script>
|
||||
$('#wapper').width($('body').width()-300);
|
||||
</script>
|
||||
</div>
|
|
@ -2,10 +2,8 @@
|
|||
$this->headTitle($this->config->title->site);
|
||||
$this->headTitle($this->config->title->author);
|
||||
$this->headTitle()->setSeparator(' - ');
|
||||
$this->headScript()->appendFile('/js/jquery-1.7.min.js');
|
||||
$this->headScript()->appendFile('/js/jquery.colorbox-min.js');
|
||||
$this->headLink()->appendStylesheet('/css/author.css');
|
||||
$this->headLink()->appendStylesheet('/css/colorbox.css');
|
||||
$this->theme->AppendPlus($this,'colorbox');
|
||||
$this->headLink()->appendStylesheet('/css/author.css');
|
||||
$this->headScript()->appendFile('/static/js/uploadify/swfobject.js');
|
||||
$this->headScript()->appendFile('/static/js/uploadify/jquery.uploadify.v2.1.4.min.js');
|
||||
$this->headLink()->appendStylesheet('/static/js/uploadify/uploadify.css');
|
||||
|
@ -14,49 +12,44 @@ $this->breadcrumb('<a href="/author">数据作者</a>');
|
|||
$this->breadcrumb('数据文献管理');
|
||||
$this->breadcrumb()->setSeparator(' > ');
|
||||
?>
|
||||
<!-- 左侧导航 -->
|
||||
<div id='sidebar'>
|
||||
<div id='leftnavi'>
|
||||
<?= $this->partial('author/navi.phtml'); ?>
|
||||
<div class="row">
|
||||
<div class="span3">
|
||||
<?= $this->partial('author/navi.phtml'); ?>
|
||||
</div>
|
||||
<div class="span9">
|
||||
<div>
|
||||
<ul class="nav nav-pills">
|
||||
<li class=""><a href="/author/literature/">所有文献概况</a></li>
|
||||
<li class=""><a href="/author/literature/ac/byliter">逐文献浏览</a></li>
|
||||
<li class=""><a href="/author/literature/ac/bydata">逐数据浏览</a></li>
|
||||
<li class="active"><a href="javascript:;">查看单个数据的文献</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div>
|
||||
<?php
|
||||
if (count($this->paginator)):
|
||||
if ($this->mdtitle) echo "<h4>元数据:".$this->mdtitle."</h4>";
|
||||
echo '<ul class="unstyled">';
|
||||
$autoindex=0;
|
||||
foreach ($this->paginator as $item):
|
||||
$autoindex++;?>
|
||||
<li class="well" id="list_<?php echo $item['id'].$item['uuid'];?>">
|
||||
<p><?php echo $item['reference'];?>
|
||||
【 <a href="/author/literature/id/<?php echo $item['id'];?>">查看详细</a>
|
||||
| <a onclick="return confirm('是否确定删除该版本?');" href="javascript:action('delete&id=<?php echo $item['id'];?>','<?php echo $item['uuid'];?>');" class="more">删除</a>
|
||||
| <a href="/author/literature/ac/add/uuid/<?php echo $item['uuid'];?>" class="more iframe">添加文献</a>
|
||||
】</p>
|
||||
</li>
|
||||
<?php endforeach;
|
||||
echo "</ul>";
|
||||
endif; ?>
|
||||
<div class="pagenavi"><?= $this->paginator; ?></div>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<!-- //左侧导航 -->
|
||||
|
||||
<!-- 页面内容 -->
|
||||
<div id="wapper">
|
||||
<div id="tabs-controller">
|
||||
<ul>
|
||||
<li class="box-shadow"><a class="text-shadow" href="/author/literature/">所有文献概况</a></li>
|
||||
<li class="box-shadow"><a class="text-shadow" href="/author/literature/ac/byliter">逐文献浏览</a></li>
|
||||
<li class="box-shadow"><a class="text-shadow" href="/author/literature/ac/bydata">逐数据浏览</a></li>
|
||||
<li class="box-shadow active">查看单数据文献</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div id="datalist">
|
||||
<?php
|
||||
if (count($this->paginator)):
|
||||
if ($this->mdtitle) echo "<h2>元数据:".$this->mdtitle."</h2>";
|
||||
echo "<ul>";
|
||||
$autoindex=0;
|
||||
foreach ($this->paginator as $item):
|
||||
$autoindex++;?>
|
||||
<li id="list_<?php echo $item['id'].$item['uuid'];?>">
|
||||
<p><?php echo $item['reference'];?>
|
||||
【 <a href="/author/literature/id/<?php echo $item['id'];?>">查看详细</a>
|
||||
| <a onclick="return confirm('是否确定删除该版本?');" href="javascript:action('delete&id=<?php echo $item['id'];?>','<?php echo $item['uuid'];?>');" class="more">删除</a>
|
||||
| <a href="/author/literature/ac/add/uuid/<?php echo $item['uuid'];?>" class="more iframe">添加文献</a>
|
||||
】</p>
|
||||
</li>
|
||||
<?php endforeach;
|
||||
echo "</ul>";
|
||||
endif; ?>
|
||||
<div class="pagenavi"><?= $this->paginator; ?></div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- //页面内容 -->
|
||||
<script>
|
||||
$('#wapper').width($('body').width()-300);
|
||||
function action(ac,uuid){
|
||||
$.ajax({
|
||||
'type':"POST",
|
||||
|
@ -81,13 +74,13 @@ function action(ac,uuid){
|
|||
$.colorbox({'innerWidth':'50%','html':'<img src="/images/alert_big_error.png" /><h4>处理中出现错误,请刷新页面后重试</h4>'});
|
||||
}
|
||||
});
|
||||
}
|
||||
$(".iframe").colorbox({iframe:true, width:"60%", height:"80%"});
|
||||
$(".inline").colorbox({inline:true, width:"50%"});
|
||||
}
|
||||
$(".iframe").colorbox({iframe:true, width:"60%", height:"80%"});
|
||||
$(".inline").colorbox({inline:true, width:"50%"});
|
||||
function commit(id){
|
||||
action('add&ref='+$('#ref').val()+'&reftype='+$('#reftype').val(),id);
|
||||
}
|
||||
</script>
|
||||
</script>
|
||||
<div class="colorbox" style="display:none;">
|
||||
<div class="error"><img src="/images/alert_big_error.png" /><span></span></div>
|
||||
<div class="ok"><img src="/images/alert_big_ok.png" /><span></span></div>
|
||||
|
|
|
@ -2,58 +2,52 @@
|
|||
$this->headTitle($this->config->title->site);
|
||||
$this->headTitle($this->config->title->author);
|
||||
$this->headTitle()->setSeparator(' - ');
|
||||
$this->headScript()->appendFile('/js/jquery-1.7.min.js');
|
||||
$this->headScript()->appendFile('/js/jquery.colorbox-min.js');
|
||||
$this->headLink()->appendStylesheet('/css/author.css');
|
||||
$this->headLink()->appendStylesheet('/css/colorbox.css');
|
||||
$this->theme->AppendPlus($this,'colorbox');
|
||||
$this->headLink()->appendStylesheet('/css/author.css');
|
||||
$this->breadcrumb('<a href="/">首页</a>');
|
||||
$this->breadcrumb('<a href="/author">数据作者</a>');
|
||||
$this->breadcrumb('数据文献管理');
|
||||
$this->breadcrumb()->setSeparator(' > ');
|
||||
?>
|
||||
<!-- 左侧导航 -->
|
||||
<div id='sidebar'>
|
||||
<div id='leftnavi'>
|
||||
<?= $this->partial('author/navi.phtml'); ?>
|
||||
<div class="row">
|
||||
<div class="span3">
|
||||
<?= $this->partial('author/navi.phtml'); ?>
|
||||
</div>
|
||||
<div class="span9">
|
||||
<div>
|
||||
<ul class="nav nav-pills">
|
||||
<li class=""><a href="/author/literature/">所有文献概况</a></li>
|
||||
<li class=""><a href="/author/literature/ac/byliter">逐文献浏览</a></li>
|
||||
<li class=""><a href="/author/literature/ac/bydata">逐数据浏览</a></li>
|
||||
<li class="active"><a href="javascript:;">查看单文献的对应数据</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div>
|
||||
<?php
|
||||
if (count($this->paginator)):
|
||||
if ($this->mdtitle) echo "<h4>文献:".$this->mdtitle."</h4>";
|
||||
echo '<ul class="unstyled">';
|
||||
$autoindex=0;
|
||||
foreach ($this->paginator as $item):
|
||||
$autoindex++;?>
|
||||
<li class="well" id="list_<?php echo $item['id'].$item['uuid'];?>">
|
||||
<p><?php echo $item['title'];?>
|
||||
【 <a href="/author/literature/uuid/<?php echo $item['uuid'];?>">查看详细</a>
|
||||
| <a href="/data/<?php echo $item['uuid']; ?>">查看数据</a>
|
||||
<?php if ($item['isauthor']==0) : ?>
|
||||
| <a onclick="return confirm('是否确定删除该版本?');" href="javascript:action('delete&id=<?php echo $item['id'];?>','<?php echo $item['uuid'];?>');" class="more">删除</a>
|
||||
<?php endif; ?>
|
||||
】</p>
|
||||
</li>
|
||||
<?php endforeach;
|
||||
echo "</ul>";
|
||||
endif; ?>
|
||||
<div class="pagenavi"><?= $this->paginator; ?></div>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<!-- //左侧导航 -->
|
||||
|
||||
<!-- 页面内容 -->
|
||||
<div id="wapper">
|
||||
<div id="tabs-controller">
|
||||
<ul>
|
||||
<li class="box-shadow"><a class="text-shadow" href="/author/literature/">所有文献概况</a></li>
|
||||
<li class="box-shadow"><a class="text-shadow" href="/author/literature/ac/byliter">逐文献浏览</a></li>
|
||||
<li class="box-shadow"><a class="text-shadow" href="/author/literature/ac/bydata">逐数据浏览</a></li>
|
||||
<li class="box-shadow active">查看单文献的对应数据</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div id="datalist">
|
||||
<?php
|
||||
if (count($this->paginator)):
|
||||
if ($this->mdtitle) echo "<h2>文献:".$this->mdtitle."</h2>";
|
||||
echo "<ul>";
|
||||
$autoindex=0;
|
||||
foreach ($this->paginator as $item):
|
||||
$autoindex++;?>
|
||||
<li id="list_<?php echo $item['id'].$item['uuid'];?>">
|
||||
<p><?php echo $item['title'];?>
|
||||
【 <a href="/author/literature/uuid/<?php echo $item['uuid'];?>">查看详细</a>
|
||||
| <a href="/data/<?php echo $item['uuid']; ?>">查看数据</a>
|
||||
<?php if ($item['isauthor']==0) : ?>
|
||||
| <a onclick="return confirm('是否确定删除该版本?');" href="javascript:action('delete&id=<?php echo $item['id'];?>','<?php echo $item['uuid'];?>');" class="more">删除</a>
|
||||
<?php endif; ?>
|
||||
】</p>
|
||||
</li>
|
||||
<?php endforeach;
|
||||
echo "</ul>";
|
||||
endif; ?>
|
||||
<div class="pagenavi"><?= $this->paginator; ?></div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- //页面内容 -->
|
||||
<script>
|
||||
$('#wapper').width($('body').width()-300);
|
||||
function action(ac,uuid){
|
||||
|
@ -80,19 +74,19 @@ function action(ac,uuid){
|
|||
$.colorbox({'innerWidth':'50%','html':'<img src="/images/alert_big_error.png" /><h4>处理中出现错误,请刷新页面后重试</h4>'});
|
||||
}
|
||||
});
|
||||
}
|
||||
$(".inline").colorbox({inline:true, width:"50%"});
|
||||
}
|
||||
$(".inline").colorbox({inline:true, width:"50%"});
|
||||
function commit(id){
|
||||
action('add&ref='+$('#ref').val()+'&reftype='+$('#reftype').val(),id);
|
||||
}
|
||||
</script>
|
||||
</script>
|
||||
<div class="colorbox" style="display:none;">
|
||||
<div id="addform">
|
||||
<form>
|
||||
<p>
|
||||
<p>
|
||||
<label>文献引用信息:</label><br />
|
||||
<textarea class="full" style="height:40px;" id="ref"></textarea>
|
||||
<input type="radio" id="reftype" name="reftype" value="0" checked />数据作者的文献
|
||||
<textarea class="full" style="height:40px;" id="ref"></textarea>
|
||||
<input type="radio" id="reftype" name="reftype" value="0" checked />数据作者的文献
|
||||
<input type="radio" id="reftype" name="reftype" value="1" />数据用户的文献
|
||||
</p>
|
||||
<input type="button" onclick="" id="commit_submit" class="btn btn-green big" value="提交"/>
|
||||
|
|
|
@ -2,71 +2,67 @@
|
|||
$this->headTitle($this->config->title->site);
|
||||
$this->headTitle($this->config->title->author);
|
||||
$this->headTitle()->setSeparator(' - ');
|
||||
$this->headScript()->appendFile('/js/jquery-1.7.min.js');
|
||||
$this->headScript()->appendFile('/js/jquery.colorbox-min.js');
|
||||
$this->theme->AppendPlus($this,'colorbox');
|
||||
$this->headScript()->appendFile('/static/js/uploadify/swfobject.js');
|
||||
$this->headScript()->appendFile('/static/js/uploadify/jquery.uploadify.v2.1.4.min.js');
|
||||
$this->headLink()->appendStylesheet('/static/js/uploadify/uploadify.css');
|
||||
$this->headLink()->appendStylesheet('/css/author.css');
|
||||
$this->headLink()->appendStylesheet('/css/colorbox.css');
|
||||
$this->breadcrumb('<a href="/">首页</a>');
|
||||
$this->breadcrumb('<a href="/author">数据作者</a>');
|
||||
$this->breadcrumb('数据文献管理');
|
||||
$this->breadcrumb()->setSeparator(' > ');
|
||||
?>
|
||||
<!-- 左侧导航 -->
|
||||
<div id='sidebar'>
|
||||
<div id='leftnavi'>
|
||||
<?= $this->partial('author/navi.phtml'); ?>
|
||||
<div class="row">
|
||||
<div class="span3">
|
||||
<?= $this->partial('author/navi.phtml'); ?>
|
||||
</div>
|
||||
<div class="span9">
|
||||
|
||||
<div>
|
||||
<ul class="nav nav-pills">
|
||||
<li class="active"><a href="/author/literature/">所有文献概况</a></li>
|
||||
<li><a href="/author/literature/ac/byliter">逐文献浏览</a></li>
|
||||
<li><a href="/author/literature/ac/bydata">逐数据浏览</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<p>请输入元数据或文献标题关键字进行搜索</p>
|
||||
<div class="input-append">
|
||||
<form id="datasearch" class="search_form" action="/author/literature/ac/bydata">
|
||||
<input type="text" id="keyword" name="q" value="<?php if(!empty($this->q)) echo $this->q; ?>" />
|
||||
<button type="submit" class="btn" id="search_btn">搜索</button>
|
||||
</form>
|
||||
</div>
|
||||
<div>
|
||||
<?php
|
||||
if (count($this->paginator)):
|
||||
echo "<ul class='unstyled'>";
|
||||
$autoindex=0;
|
||||
foreach ($this->paginator as $item):
|
||||
$autoindex++;?>
|
||||
<li class="well" id="list_<?php echo $item['id'].$item['uuid'];?>">
|
||||
<h4><a href="/data/<?php echo $item['uuid'];?>" target="_blank"><?php echo $item['title'];?></h4>
|
||||
【 <a href="/author/literature/uuid/<?php echo $item['uuid'];?>">查看详细</a>
|
||||
|
|
||||
<a href="/author/literature/ac/add/uuid/<?php echo $item['uuid'];?>" class="more iframe">添加文献</a>
|
||||
】</p>
|
||||
</p>
|
||||
<p><?php echo $item['reference'];?>
|
||||
【 <a href="/author/literature/id/<?php echo $item['id'];?>">查看详细</a>
|
||||
|
|
||||
<a onclick="return confirm('是否确定删除该版本?');" href="javascript:action('delete&id=<?php echo $item['id'];?>','<?php echo $item['uuid'];?>');" class="more">删除</a>
|
||||
】</p>
|
||||
</li>
|
||||
<?php endforeach;
|
||||
echo "</ul>";
|
||||
endif; ?>
|
||||
<div class="pagenavi"><?= $this->paginator; ?></div>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<!-- //左侧导航 -->
|
||||
|
||||
<!-- 页面内容 -->
|
||||
<div id="wapper">
|
||||
<div id="tabs-controller">
|
||||
<ul>
|
||||
<li class="box-shadow active"><a class="text-shadow" href="/author/literature/">所有文献概况</a></li>
|
||||
<li class="box-shadow"><a class="text-shadow" href="/author/literature/ac/byliter">逐文献浏览</a></li>
|
||||
<li class="box-shadow"><a class="text-shadow" href="/author/literature/ac/bydata">逐数据浏览</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<p>请输入元数据或文献标题关键字进行搜索</p>
|
||||
<form id="datasearch" class="search_form" action="/author/literature/ac/bydata">
|
||||
<input type="text" id="keyword" name="q" value="<?php if(!empty($this->q)) echo $this->q; ?>" />
|
||||
<button type="submit" class="btn" id="search_btn">搜索</button>
|
||||
</form>
|
||||
<div id="datalist">
|
||||
<?php
|
||||
if (count($this->paginator)):
|
||||
echo "<ul>";
|
||||
$autoindex=0;
|
||||
foreach ($this->paginator as $item):
|
||||
$autoindex++;?>
|
||||
<li id="list_<?php echo $item['id'].$item['uuid'];?>">
|
||||
<p><a href="/data/<?php echo $item['uuid'];?>" target="_blank"><?php echo $item['title'];?></a>
|
||||
【 <a href="/author/literature/uuid/<?php echo $item['uuid'];?>">查看详细</a>
|
||||
|
|
||||
<a href="/author/literature/ac/add/uuid/<?php echo $item['uuid'];?>" class="more iframe">添加文献</a>
|
||||
】</p>
|
||||
</p>
|
||||
<p><?php echo $item['reference'];?>
|
||||
【 <a href="/author/literature/id/<?php echo $item['id'];?>">查看详细</a>
|
||||
|
|
||||
<a onclick="return confirm('是否确定删除该版本?');" href="javascript:action('delete&id=<?php echo $item['id'];?>','<?php echo $item['uuid'];?>');" class="more">删除</a>
|
||||
】</p>
|
||||
</li>
|
||||
<?php endforeach;
|
||||
echo "</ul>";
|
||||
endif; ?>
|
||||
<div class="pagenavi"><?= $this->paginator; ?></div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- //页面内容 -->
|
||||
<script>
|
||||
$('#wapper').width($('body').width()-300);
|
||||
|
||||
|
||||
function action(ac,uuid){
|
||||
$.ajax({
|
||||
'type':"POST",
|
||||
|
|
|
@ -2,7 +2,6 @@
|
|||
$this->headTitle($this->config->title->site);
|
||||
$this->headTitle($this->config->title->author);
|
||||
$this->headTitle()->setSeparator(' - ');
|
||||
$this->theme->AppendPlus($this,'jquery');
|
||||
$this->theme->AppendPlus($this,'jquery_ui');
|
||||
$this->theme->AppendPlus($this,'google_map_v3');
|
||||
$this->theme->AppendPlus($this,'google_map_keydragzone');
|
||||
|
@ -16,279 +15,267 @@ $this->breadcrumb('<a href="/author">'.$this->config->title->author.'</a>');
|
|||
$this->breadcrumb('新建数据');
|
||||
$this->breadcrumb()->setSeparator(' > ');
|
||||
?>
|
||||
<!-- 左侧导航 -->
|
||||
<div id='sidebar'>
|
||||
<div id='leftnavi'>
|
||||
<?= $this->partial('author/navi.phtml'); ?>
|
||||
<div class="row">
|
||||
<div class="span3">
|
||||
<?= $this->partial('author/navi.phtml'); ?>
|
||||
</div>
|
||||
</div>
|
||||
<!-- //左侧导航 -->
|
||||
|
||||
<!-- 页面内容 -->
|
||||
<div id="wapper">
|
||||
<div id="tabs-controller">
|
||||
<ul>
|
||||
<li class="box-shadow"><a class="text-shadow" href="/author/newdata">未提交数据列表</a></li>
|
||||
<li class="box-shadow"><a class="text-shadow iframe" href="/service/geonetwork?url=metadata.xmlinsert.form">导入元数据</a></li>
|
||||
<li class="box-shadow"><a class="text-shadow" href="/author/newdata/ac/add-by-template">根据模板新建元数据</a></li>
|
||||
<li class="box-shadow"><a class="text-shadow" href="/author/newdata/ac/add-by-data">根据已有数据新建元数据</a></li>
|
||||
<li class="box-shadow active"><a class="text-shadow" href="/author/metadata">新建元数据</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="">
|
||||
<?php if(empty($this->error)) { ?>
|
||||
<div class="step_ctl">
|
||||
<ul>
|
||||
<li>
|
||||
<a href="javascript:void(0);" onclick="jumpstep(1)" id="step_btn1" class="step_btns current_step">
|
||||
<div class="title">Step1</div>
|
||||
<div class="description">元数据基本信息</div>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="javascript:void(0);" onclick="save(0,this,2)" id="step_btn2" class="step_btns">
|
||||
<div class="title">Step2</div>
|
||||
<div class="description">时空范围</div>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="javascript:void(0);" onclick="save(0,this,3)" id="step_btn3" class="step_btns">
|
||||
<div class="title">Step3</div>
|
||||
<div class="description">元数据基本信息</div>
|
||||
</a>
|
||||
</li>
|
||||
<div class="span9">
|
||||
<div>
|
||||
<ul class="nav nav-pills">
|
||||
<li><a href="/author/newdata">未提交数据列表</a></li>
|
||||
<li><a class="iframe" href="/service/geonetwork?url=metadata.xmlinsert.form">导入元数据</a></li>
|
||||
<li><a href="/author/newdata/ac/add-by-template">根据模板新建元数据</a></li>
|
||||
<li><a href="/author/newdata/ac/add-by-data">根据已有数据新建元数据</a></li>
|
||||
<li class="active"><a href="/author/metadata">新建元数据</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<?php if(!empty($this->uuid)) {
|
||||
$F = array();
|
||||
}?>
|
||||
<form class="form-horizontal well" id="metadata_temp_value" action="/author/metadata/ac/save" method="post">
|
||||
<input type="hidden" id="temp_uuid" name="uuid" value="<?= empty($this->uuid) ? "":$this->uuid ?>" />
|
||||
<div class="stepy_content" id="step_content_1">
|
||||
<fieldset>
|
||||
<p class="f_legend">元数据基本信息</p>
|
||||
<div class="control-group">
|
||||
<label class="control-label">元数据标题</label>
|
||||
<div class="controls">
|
||||
<?php $F['title'] = $this->Field['title']['FieldName_temp']; ?>
|
||||
<input type="text" name="<?= $F['title']?>"
|
||||
value="<?= empty($this->data->$F['title']) ? "":$this->data->$F['title'] ?>" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="control-label">元数据英文标题</label>
|
||||
<div class="controls">
|
||||
<?php $F['title_en'] = $this->Field['title_en']['FieldName_temp']; ?>
|
||||
<input type="text" name="<?= $F['title_en']?>"
|
||||
value="<?= empty($this->data->$F['title_en']) ? "":$this->data->$F['title_en'] ?>" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="control-label">元数据简介</label>
|
||||
<div class="controls">
|
||||
<?php $F['description'] = $this->Field['description']['FieldName_temp']; ?>
|
||||
<textarea name="<?= $F['description']?>"><?= empty($this->data->$F['description']) ? "":$this->data->$F['description'] ?></textarea>
|
||||
<span class="help-block">概括元数据内容</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group" id="next_step_button" >
|
||||
<div class="controls">
|
||||
<button type="button" onclick="save(0,this,2)" class="btn btn-green">下一步</button>
|
||||
</div>
|
||||
</div>
|
||||
</fieldset>
|
||||
<div class="">
|
||||
<?php if(empty($this->error)) { ?>
|
||||
<div class="step_ctl">
|
||||
<ul>
|
||||
<li>
|
||||
<a href="javascript:void(0);" onclick="jumpstep(1)" id="step_btn1" class="step_btns current_step">
|
||||
<div class="title">Step1</div>
|
||||
<div class="description">元数据基本信息</div>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="javascript:void(0);" onclick="save(0,this,2)" id="step_btn2" class="step_btns">
|
||||
<div class="title">Step2</div>
|
||||
<div class="description">时空范围</div>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="javascript:void(0);" onclick="save(0,this,3)" id="step_btn3" class="step_btns">
|
||||
<div class="title">Step3</div>
|
||||
<div class="description">元数据基本信息</div>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="stepy_content" id="step_content_2" style="display:none;">
|
||||
<fieldset>
|
||||
<p class="f_legend">时间范围</p>
|
||||
<div class="control-group">
|
||||
<label class="control-label">开始时间</label>
|
||||
<div class="controls">
|
||||
<?php $F['timebegin'] = $this->Field['timebegin']['FieldName_temp']; ?>
|
||||
<input type="text" id="timebegin" name="<?= $F['timebegin']?>" value="<?= empty($this->data->$F['timebegin']) ? "":$this->data->$F['timebegin'] ?>" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="control-label">结束时间</label>
|
||||
<div class="controls">
|
||||
<?php $F['timeend'] = $this->Field['timeend']['FieldName_temp']; ?>
|
||||
<input type="text" id="timeend" name="<?= $F['timeend'] ?>" value="<?= empty($this->data->$F['timeend']) ? "":$this->data->$F['timeend'] ?>" />
|
||||
</div>
|
||||
</div>
|
||||
</fieldset>
|
||||
|
||||
<fieldset>
|
||||
<p class="f_legend">空间范围</p>
|
||||
<div class="map_input_part">
|
||||
<?php if(!empty($this->uuid)) {
|
||||
$F = array();
|
||||
}?>
|
||||
<form class="form-horizontal well" id="metadata_temp_value" action="/author/metadata/ac/save" method="post">
|
||||
<input type="hidden" id="temp_uuid" name="uuid" value="<?= empty($this->uuid) ? "":$this->uuid ?>" />
|
||||
<div class="stepy_content" id="step_content_1">
|
||||
<fieldset>
|
||||
<p class="f_legend">元数据基本信息</p>
|
||||
<div class="control-group">
|
||||
<label class="control-label">东</label>
|
||||
<label class="control-label">元数据标题</label>
|
||||
<div class="controls">
|
||||
<?php $F['east'] = $this->Field['east']['FieldName_temp']; ?>
|
||||
<input type="text" id="map_east" name="<?= $F['east'] ?>" class="span2"
|
||||
value="<?= empty($this->data->$F['east']) ? "":$this->data->$F['east'] ?>" />
|
||||
<?php $F['title'] = $this->Field['title']['FieldName_temp']; ?>
|
||||
<input type="text" name="<?= $F['title']?>"
|
||||
value="<?= empty($this->data->$F['title']) ? "":$this->data->$F['title'] ?>" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="control-label">南</label>
|
||||
<label class="control-label">元数据英文标题</label>
|
||||
<div class="controls">
|
||||
<?php $F['south'] = $this->Field['south']['FieldName_temp']; ?>
|
||||
<input type="text" id="map_south" name="<?= $F['south'] ?>" class="span2"
|
||||
value="<?= empty($this->data->$F['south']) ? "":$this->data->$F['south'] ?>" />
|
||||
<?php $F['title_en'] = $this->Field['title_en']['FieldName_temp']; ?>
|
||||
<input type="text" name="<?= $F['title_en']?>"
|
||||
value="<?= empty($this->data->$F['title_en']) ? "":$this->data->$F['title_en'] ?>" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="control-label">西</label>
|
||||
<label class="control-label">元数据简介</label>
|
||||
<div class="controls">
|
||||
<?php $F['west'] = $this->Field['west']['FieldName_temp']; ?>
|
||||
<input type="text" id="map_west" name="<?= $F['west'] ?>" class="span2"
|
||||
value="<?= empty($this->data->$F['west']) ? "":$this->data->$F['west'] ?>" />
|
||||
<?php $F['description'] = $this->Field['description']['FieldName_temp']; ?>
|
||||
<textarea name="<?= $F['description']?>"><?= empty($this->data->$F['description']) ? "":$this->data->$F['description'] ?></textarea>
|
||||
<span class="help-block">概括元数据内容</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group" id="next_step_button" >
|
||||
<div class="controls">
|
||||
<button type="button" onclick="save(0,this,2)" class="btn btn-green">下一步</button>
|
||||
</div>
|
||||
</div>
|
||||
</fieldset>
|
||||
</div>
|
||||
<div class="stepy_content" id="step_content_2" style="display:none;">
|
||||
<fieldset>
|
||||
<p class="f_legend">时间范围</p>
|
||||
<div class="control-group">
|
||||
<label class="control-label">开始时间</label>
|
||||
<div class="controls">
|
||||
<?php $F['timebegin'] = $this->Field['timebegin']['FieldName_temp']; ?>
|
||||
<input type="text" id="timebegin" name="<?= $F['timebegin']?>" value="<?= empty($this->data->$F['timebegin']) ? "":$this->data->$F['timebegin'] ?>" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="control-label">北</label>
|
||||
<label class="control-label">结束时间</label>
|
||||
<div class="controls">
|
||||
<?php $F['north'] = $this->Field['north']['FieldName_temp']; ?>
|
||||
<input type="text" id="map_north" name="<?= $F['north'] ?>" class="span2"
|
||||
value="<?= empty($this->data->$F['north']) ? "":$this->data->$F['north'] ?>" />
|
||||
<?php $F['timeend'] = $this->Field['timeend']['FieldName_temp']; ?>
|
||||
<input type="text" id="timeend" name="<?= $F['timeend'] ?>" value="<?= empty($this->data->$F['timeend']) ? "":$this->data->$F['timeend'] ?>" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
按住键盘上“Shift”键可以直接在地图上用鼠标拖动选取
|
||||
</div>
|
||||
</div>
|
||||
<div class="map_display_part" id="map_canvas">
|
||||
|
||||
</div>
|
||||
</fieldset>
|
||||
<div class="control-group" id="next_step_button" >
|
||||
<div class="controls">
|
||||
<button type="button" onclick="save(0,this,3)" class="btn btn-green">下一步</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="stepy_content" id="step_content_3" style="display:none;">
|
||||
<fieldset>
|
||||
<p class="f_legend">数据引用方式</p>
|
||||
<div class="control-group">
|
||||
<div class="controls">
|
||||
<?php $F['citation'] = $this->Field['citation']['FieldName_temp']; ?>
|
||||
<input type="text" name="<?= $F['citation'] ?>" class="span8"
|
||||
value="<?= empty($this->data->$F['citation']) ? "":$this->data->$F['citation'] ?>" />
|
||||
</div>
|
||||
</div>
|
||||
</fieldset>
|
||||
|
||||
<fieldset>
|
||||
<p class="f_legend">参考文献</p>
|
||||
</fieldset>
|
||||
|
||||
<?php $F['reference'] = $this->Field['reference']['FieldName_temp']; ?>
|
||||
<?php if(isset($this->data->$F['reference']) && count($this->data->$F['reference'])>0)
|
||||
{
|
||||
$index = 0;
|
||||
foreach($this->data->$F['reference'] as $k=>$v)
|
||||
{
|
||||
$index ++ ;
|
||||
?>
|
||||
<div class="control-group control-group-reference" id="reference_1st">
|
||||
<div class="controls">
|
||||
<input type="text" name="<?= $F['reference'] ?>[]" class="span8"
|
||||
value="<?= $v ?>" />
|
||||
<?php if($index > 1) {?>
|
||||
<a href="javascript:void(0);" onclick="RmInput(this)"> -删除</a>
|
||||
<?php } ?>
|
||||
</div>
|
||||
</div>
|
||||
<?php }
|
||||
}else{?>
|
||||
<div class="control-group control-group-reference" id="reference_1st">
|
||||
<div class="controls">
|
||||
<input type="text" name="<?= $F['reference'] ?>[]" class="span8"
|
||||
value="" />
|
||||
</div>
|
||||
</div>
|
||||
<?php }
|
||||
?>
|
||||
<fieldset>
|
||||
<p class="f_legend">空间范围</p>
|
||||
<div class="map_input_part">
|
||||
<div class="control-group">
|
||||
<label class="control-label">东</label>
|
||||
<div class="controls">
|
||||
<?php $F['east'] = $this->Field['east']['FieldName_temp']; ?>
|
||||
<input type="text" id="map_east" name="<?= $F['east'] ?>" class="span2"
|
||||
value="<?= empty($this->data->$F['east']) ? "":$this->data->$F['east'] ?>" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="control-label">南</label>
|
||||
<div class="controls">
|
||||
<?php $F['south'] = $this->Field['south']['FieldName_temp']; ?>
|
||||
<input type="text" id="map_south" name="<?= $F['south'] ?>" class="span2"
|
||||
value="<?= empty($this->data->$F['south']) ? "":$this->data->$F['south'] ?>" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="control-label">西</label>
|
||||
<div class="controls">
|
||||
<?php $F['west'] = $this->Field['west']['FieldName_temp']; ?>
|
||||
<input type="text" id="map_west" name="<?= $F['west'] ?>" class="span2"
|
||||
value="<?= empty($this->data->$F['west']) ? "":$this->data->$F['west'] ?>" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="control-label">北</label>
|
||||
<div class="controls">
|
||||
<?php $F['north'] = $this->Field['north']['FieldName_temp']; ?>
|
||||
<input type="text" id="map_north" name="<?= $F['north'] ?>" class="span2"
|
||||
value="<?= empty($this->data->$F['north']) ? "":$this->data->$F['north'] ?>" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="control-label">按住键盘上“Shift”键可以直接在地图上用鼠标拖动选取</label>
|
||||
<div class="controls">
|
||||
<div class="map_display_part" id="map_canvas"></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="control-group">
|
||||
<a href="javascript:void(0);" onclick="AddInput('reference')">+ 再添加一条</a>
|
||||
</fieldset>
|
||||
<div class="control-group" id="next_step_button" >
|
||||
<div class="controls">
|
||||
<button type="button" onclick="save(0,this,3)" class="btn btn-green">下一步</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</fieldset>
|
||||
|
||||
<fieldset>
|
||||
<p class="f_legend">联系人</p>
|
||||
<?php $F['contact'] = $this->Field['contact']['FieldName_temp']; ?>
|
||||
<?php if(isset($this->data->$F['contact']) && count($this->data->$F['contact'])>0)
|
||||
{
|
||||
$index = 0;
|
||||
foreach($this->data->$F['contact'] as $k=>$v)
|
||||
{
|
||||
$index++ ;?>
|
||||
<div class="control-group control-group-contact" id="contact_1st">
|
||||
<div class="controls">
|
||||
<input type="text" name="<?= $F['contact'] ?>[<?= $index ?>][name]" class="span3 contact_name" value="<?= $v->name ?>" />
|
||||
<input type="text" name="<?= $F['contact'] ?>[<?= $index ?>][unit]" class="span3 contact_unit" value="<?= $v->unit ?>" />
|
||||
<input type="text" name="<?= $F['contact'] ?>[<?= $index ?>][email]" class="span3 contact_email" value="<?= $v->email ?>" />
|
||||
<select type="text" name="<?= $F['contact'] ?>[<?= $index ?>][type]" class="span3">
|
||||
<option value="0">请选择联系人职能</option>
|
||||
<?php
|
||||
foreach($this->Field['contact']['options'] as $va)
|
||||
{
|
||||
if($v->type == $va)
|
||||
<div class="stepy_content" id="step_content_3" style="display:none;">
|
||||
<fieldset>
|
||||
<p class="f_legend">数据引用方式</p>
|
||||
<div class="control-group">
|
||||
<?php $F['citation'] = $this->Field['citation']['FieldName_temp']; ?>
|
||||
<input type="text" name="<?= $F['citation'] ?>" class="span8"
|
||||
value="<?= empty($this->data->$F['citation']) ? "":$this->data->$F['citation'] ?>" />
|
||||
</div>
|
||||
</fieldset>
|
||||
|
||||
<fieldset>
|
||||
<p class="f_legend">参考文献</p>
|
||||
<?php $F['reference'] = $this->Field['reference']['FieldName_temp']; ?>
|
||||
<?php if(isset($this->data->$F['reference']) && count($this->data->$F['reference'])>0)
|
||||
{
|
||||
echo '<option value="'.$va.'" selected="selected">'.$va.'</option>'."\r\n";
|
||||
}else{
|
||||
echo '<option value="'.$va.'">'.$va.'</option>'."\r\n";
|
||||
}
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
<?php if($index > 1) {?>
|
||||
<a href="javascript:void(0);" onclick="RmInput(this)"> -删除</a>
|
||||
<?php } ?>
|
||||
</div>
|
||||
</div>
|
||||
<?php }
|
||||
}else{ ?>
|
||||
<div class="control-group control-group-contact" id="contact_1st">
|
||||
<div class="controls">
|
||||
<input type="text" name="<?= $F['contact'] ?>[1][name]" class="span3 contact_name" />
|
||||
<input type="text" name="<?= $F['contact'] ?>[1][unit]" class="span3 contact_unit" />
|
||||
<input type="text" name="<?= $F['contact'] ?>[1][email]" class="span3 contact_email" />
|
||||
<select type="text" name="<?= $F['contact'] ?>[1][type]" class="span3">
|
||||
$index = 0;
|
||||
foreach($this->data->$F['reference'] as $k=>$v)
|
||||
{
|
||||
$index ++ ;
|
||||
?>
|
||||
<div class="control-group control-group-reference" id="reference_1st">
|
||||
<input type="text" name="<?= $F['reference'] ?>[]" class="span8"
|
||||
value="<?= $v ?>" />
|
||||
<?php if($index > 1) {?>
|
||||
<a href="javascript:void(0);" onclick="RmInput(this)"> -删除</a>
|
||||
<?php } ?>
|
||||
</div>
|
||||
<?php }
|
||||
}else{?>
|
||||
<div class="control-group control-group-reference" id="reference_1st">
|
||||
<input type="text" name="<?= $F['reference'] ?>[]" class="span8"
|
||||
value="" />
|
||||
</div>
|
||||
<?php }
|
||||
?>
|
||||
|
||||
<div class="control-group">
|
||||
<a href="javascript:void(0);" onclick="AddInput('reference')">+ 再添加一条</a>
|
||||
</div>
|
||||
</fieldset>
|
||||
|
||||
<fieldset>
|
||||
<p class="f_legend">联系人</p>
|
||||
<?php $F['contact'] = $this->Field['contact']['FieldName_temp']; ?>
|
||||
<?php if(isset($this->data->$F['contact']) && count($this->data->$F['contact'])>0)
|
||||
{
|
||||
$index = 0;
|
||||
foreach($this->data->$F['contact'] as $k=>$v)
|
||||
{
|
||||
$index++ ;?>
|
||||
<div class="control-group control-group-contact" id="contact_1st">
|
||||
<input type="text" name="<?= $F['contact'] ?>[<?= $index ?>][name]" class="span2 contact_name" value="<?= $v->name ?>" placeholder="姓名" />
|
||||
<input type="text" name="<?= $F['contact'] ?>[<?= $index ?>][unit]" class="span2 contact_unit" value="<?= $v->unit ?>" placeholder="单位" />
|
||||
<input type="text" name="<?= $F['contact'] ?>[<?= $index ?>][email]" class="span2 contact_email" value="<?= $v->email ?>" placeholder="Email" />
|
||||
<select type="text" name="<?= $F['contact'] ?>[<?= $index ?>][type]" class="span3">
|
||||
<option value="0">请选择联系人职能</option>
|
||||
<?php
|
||||
foreach($this->Field['contact']['options'] as $va)
|
||||
{
|
||||
echo '<option value="'.$va.'">'.$va.'</option>'."\r\n";
|
||||
if($v->type == $va)
|
||||
{
|
||||
echo '<option value="'.$va.'" selected="selected">'.$va.'</option>'."\r\n";
|
||||
}else{
|
||||
echo '<option value="'.$va.'">'.$va.'</option>'."\r\n";
|
||||
}
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
<?php if($index > 1) {?>
|
||||
<a href="javascript:void(0);" onclick="RmInput(this)"> -删除</a>
|
||||
<?php } ?>
|
||||
</div>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<?php }
|
||||
}else{ ?>
|
||||
<div class="control-group control-group-contact" id="contact_1st">
|
||||
<div class="controls">
|
||||
<input type="text" name="<?= $F['contact'] ?>[1][name]" class="span2 contact_name" placeholder="姓名" />
|
||||
<input type="text" name="<?= $F['contact'] ?>[1][unit]" class="span2 contact_unit" placeholder="单位" />
|
||||
<input type="text" name="<?= $F['contact'] ?>[1][email]" class="span2 contact_email" placeholder="Email" />
|
||||
<select type="text" name="<?= $F['contact'] ?>[1][type]" class="span3">
|
||||
<option value="0">请选择联系人职能</option>
|
||||
<?php
|
||||
foreach($this->Field['contact']['options'] as $va)
|
||||
{
|
||||
echo '<option value="'.$va.'">'.$va.'</option>'."\r\n";
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<div class="control-group">
|
||||
<a href="javascript:void(0);" onclick="AddInput('contact')">+ 再添加一条</a>
|
||||
</div>
|
||||
</fieldset>
|
||||
|
||||
<div class="control-group">
|
||||
<a href="javascript:void(0);" onclick="AddInput('contact')">+ 再添加一条</a>
|
||||
<div class="controls">
|
||||
<button type="button" onclick="save(0,this,'')" class="btn btn-green">保存草稿</button>
|
||||
<button type="button" onclick="save(1,this,'')" class="btn btn-green">提交元数据</button>
|
||||
</div>
|
||||
</div>
|
||||
</fieldset>
|
||||
|
||||
<div class="control-group">
|
||||
<div class="controls">
|
||||
<button type="button" onclick="save(0,this,'')" class="btn btn-green">保存草稿</button>
|
||||
<button type="button" onclick="save(1,this,'')" class="btn btn-green">提交元数据</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</form>
|
||||
<?php } else { ?>
|
||||
<?= $this->error;?>
|
||||
<?php } ?>
|
||||
|
||||
</div>
|
||||
|
||||
</form>
|
||||
<?php } else { ?>
|
||||
<?= $this->error;?>
|
||||
<?php } ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- //页面内容 -->
|
||||
<script>
|
||||
$('#wapper').width($('body').width()-300);
|
||||
|
||||
$(function() {
|
||||
//Google map (不启用预先加载)
|
||||
|
@ -303,7 +290,6 @@ $(function() {
|
|||
$(".iframe").colorbox({iframe:true, width:"80%", height:"80%"});
|
||||
|
||||
//Form
|
||||
InputTextSet();
|
||||
StepBtnClick();
|
||||
});
|
||||
|
||||
|
@ -312,29 +298,8 @@ function getValue(){
|
|||
return $('#metadata_temp_value').serialize();
|
||||
}
|
||||
|
||||
function prepare(){
|
||||
$('.contact_email').each(function(index, element) {
|
||||
if($(this).val()=='Email')
|
||||
{
|
||||
$(this).val('');
|
||||
}
|
||||
});
|
||||
$('.contact_name').each(function(index, element) {
|
||||
if($(this).val()=='姓名')
|
||||
{
|
||||
$(this).val('');
|
||||
}
|
||||
});
|
||||
$('.contact_unit').each(function(index, element) {
|
||||
if($(this).val()=='单位')
|
||||
{
|
||||
$(this).val('');
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function save(s,btn,jump){
|
||||
prepare();
|
||||
if(CheckStep(jump) == false)
|
||||
{
|
||||
return false;
|
||||
|
@ -554,7 +519,6 @@ function AutoCompleteElement(data)
|
|||
//Form element
|
||||
function AddInput(name){
|
||||
$('.control-group-' + name).last().after(SelectInputTemplate(name));
|
||||
InputTextSet();
|
||||
}
|
||||
|
||||
function SelectInputTemplate(name){
|
||||
|
@ -562,10 +526,8 @@ function SelectInputTemplate(name){
|
|||
if(name == 'reference')
|
||||
{
|
||||
html = ' <div class="control-group control-group-reference">'
|
||||
+' <div class="controls">'
|
||||
+' <input type="text" name="<?= $this->Field['reference']['FieldName_temp']?>[]" class="span8" />'
|
||||
+' <a href="javascript:void(0);" onclick="RmInput(this)"> -删除</a>'
|
||||
+' </div>'
|
||||
+' </div>';
|
||||
return html;
|
||||
}
|
||||
|
@ -575,10 +537,9 @@ function SelectInputTemplate(name){
|
|||
var now_index = $('.control-group-contact').length;
|
||||
var index = now_index + 1;
|
||||
html = '<div class="control-group control-group-contact">'
|
||||
+ '<div class="controls">'
|
||||
+ '<input type="text" name="contact[' + index + '][name]" class="span3 contact_name" /> '
|
||||
+ '<input type="text" name="contact[' + index + '][unit]" class="span3 contact_unit" /> '
|
||||
+ '<input type="text" name="contact[' + index + '][email]" class="span3 contact_email" /> '
|
||||
+ '<input type="text" name="contact[' + index + '][name]" class="span2 contact_name" placeholder="姓名" /> '
|
||||
+ '<input type="text" name="contact[' + index + '][unit]" class="span2 contact_unit" placeholder="单位" /> '
|
||||
+ '<input type="text" name="contact[' + index + '][email]" class="span2 contact_email" placeholder="Email" /> '
|
||||
+ '<select type="text" name="contact[' + index + '][type]" class="span3">'
|
||||
+ '<option value="0">请选择联系人职能</option>'
|
||||
<?php
|
||||
|
@ -589,7 +550,6 @@ function SelectInputTemplate(name){
|
|||
?>
|
||||
+ '</select>'
|
||||
+ '<a href="javascript:void(0);" onclick="RmInput(this)"> -删除</a>'
|
||||
+ '</div>'
|
||||
+ '</div>';
|
||||
now_index = null;
|
||||
index = null;
|
||||
|
@ -600,21 +560,7 @@ function SelectInputTemplate(name){
|
|||
|
||||
function RmInput(e){
|
||||
$e = $(e);
|
||||
$e.parent('div').parent('div').remove();
|
||||
}
|
||||
|
||||
function InputTextSet(){
|
||||
$('.contact_name').inputbg({'val':'姓名'});
|
||||
$('.contact_unit').inputbg({'val':'单位'});
|
||||
$('.contact_email').inputbg({'val':'Email'});
|
||||
$('.contact_name').each(function(index, element) {
|
||||
$(this).bind('change',function(){
|
||||
if($(this).val() != '')
|
||||
{
|
||||
AutoComplete(this);
|
||||
}
|
||||
});
|
||||
});
|
||||
$e.parent('div').remove();
|
||||
}
|
||||
|
||||
// Google Map Part
|
||||
|
@ -655,8 +601,8 @@ function initialize() {
|
|||
//console.dir(latlng);
|
||||
});
|
||||
google.maps.event.addListener(dz, 'dragend', function (latlng) {
|
||||
MapValueChange(latlng.ca.d,latlng.Z.d,latlng.ca.b,latlng.Z.b);
|
||||
setRectangle(latlng.ca.d,latlng.ca.b,latlng.Z.b,latlng.Z.d);
|
||||
MapValueChange(latlng.fa.d,latlng.Z.d,latlng.fa.b,latlng.Z.b);
|
||||
setRectangle(latlng.fa.d,latlng.fa.b,latlng.Z.b,latlng.Z.d);
|
||||
//console.dir(latlng);
|
||||
});
|
||||
|
||||
|
@ -680,7 +626,7 @@ function setRectangle(east,west,south,north){
|
|||
|
||||
google.maps.event.addListener(rectangle, 'bounds_changed', function () {
|
||||
var latlng = rectangle.getBounds();
|
||||
MapValueChange(latlng.ca.d,latlng.Z.d,latlng.ca.b,latlng.Z.b);
|
||||
MapValueChange(latlng.fa.d,latlng.Z.d,latlng.fa.b,latlng.Z.b);
|
||||
//console.dir(latlng);
|
||||
});
|
||||
|
||||
|
|
|
@ -12,38 +12,34 @@ $this->breadcrumb('<a href="/author">'.$this->config->title->author.'</a>');
|
|||
$this->breadcrumb('新建数据');
|
||||
$this->breadcrumb()->setSeparator(' > ');
|
||||
?>
|
||||
<!-- 左侧导航 -->
|
||||
<div id='sidebar'>
|
||||
<div id='leftnavi'>
|
||||
<?= $this->partial('author/navi.phtml'); ?>
|
||||
<div class="row">
|
||||
<div class="span3">
|
||||
<?= $this->partial('author/navi.phtml'); ?>
|
||||
</div>
|
||||
</div>
|
||||
<!-- //左侧导航 -->
|
||||
|
||||
<!-- 页面内容 -->
|
||||
<div id="wapper">
|
||||
<div id="tabs-controller">
|
||||
<ul>
|
||||
<li class="box-shadow"><a class="text-shadow" href="/author/newdata">未提交数据列表</a></li>
|
||||
<li class="box-shadow"><a class="text-shadow iframe" href="/service/geonetwork?url=metadata.xmlinsert.form">导入元数据</a></li>
|
||||
<li class="box-shadow"><a class="text-shadow" href="/author/newdata/ac/add-by-template">根据模板新建元数据</a></li>
|
||||
<li class="box-shadow"><a class="text-shadow" href="/author/newdata/ac/add-by-data">根据已有数据新建元数据</a></li>
|
||||
<li class="box-shadow active"><a class="text-shadow" href="/author/metadata">新建元数据</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div id="datalist">
|
||||
<ul>
|
||||
<?php if(!empty($this->MDList)) { ?>
|
||||
<?php foreach($this->MDList as $k=>$v) { ?>
|
||||
<li id="item_<?= $v['id'] ?>"><p><a href="/author/metadata/ac/new/uuid/<?= $v['uuid']?>"><?= $v['content']->title ?></a></p>
|
||||
<p>[ 状态:<?= $v['status']==0 ? "草稿":"已提审"?> | <a href="/author/metadata/ac/new/uuid/<?= $v['uuid']?>">修改</a> |
|
||||
<a href="javascript:void(0);" onclick="del(<?= $v['id'] ?>,'<?= $v['uuid']?>')" id="delBtn_<?= $v['id'] ?>">删除</a> ]</p></li>
|
||||
<?php }?>
|
||||
<li><p><a href="/author/metadata/ac/new"> + 添加新元数据</a></p></li>
|
||||
<?php }else{ ?>
|
||||
<li><p>您还没有新元数据,<a href="/author/metadata/ac/new">点击这里添加</a></p></li>
|
||||
<?php } ?>
|
||||
</ul>
|
||||
<div class="span9">
|
||||
<div>
|
||||
<ul class="nav nav-pills">
|
||||
<li><a href="/author/newdata">未提交数据列表</a></li>
|
||||
<li><a class="iframe" href="/service/geonetwork?url=metadata.xmlinsert.form">导入元数据</a></li>
|
||||
<li><a href="/author/newdata/ac/add-by-template">根据模板新建元数据</a></li>
|
||||
<li><a href="/author/newdata/ac/add-by-data">根据已有数据新建元数据</a></li>
|
||||
<li class="active"><a href="/author/metadata">新建元数据</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div>
|
||||
<ul class="unstyled">
|
||||
<?php if(!empty($this->MDList)) { ?>
|
||||
<?php foreach($this->MDList as $k=>$v) { ?>
|
||||
<li class="well" id="item_<?= $v['id'] ?>"><p><a href="/author/metadata/ac/new/uuid/<?= $v['uuid']?>"><?= $v['content']->title ?></a></p>
|
||||
<p>[ 状态:<?= $v['status']==0 ? "草稿":"已提审"?> | <a href="/author/metadata/ac/new/uuid/<?= $v['uuid']?>">修改</a> |
|
||||
<a href="javascript:void(0);" onclick="del(<?= $v['id'] ?>,'<?= $v['uuid']?>')" id="delBtn_<?= $v['id'] ?>">删除</a> ]</p></li>
|
||||
<?php }?>
|
||||
<li><p><a href="/author/metadata/ac/new"> + 添加新元数据</a></p></li>
|
||||
<?php }else{ ?>
|
||||
<li><p>您还没有新元数据,<a href="/author/metadata/ac/new">点击这里添加</a></p></li>
|
||||
<?php } ?>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- //页面内容 -->
|
||||
|
|
|
@ -1,16 +1,20 @@
|
|||
<ul>
|
||||
<li><a href="/author/">介绍</a></li>
|
||||
<li><a href="/author/newdata">新建数据</a></li>
|
||||
<li><a href="/author/apply">数据认证</a></li>
|
||||
<li><a href="/author/accept">我的数据</a></li>
|
||||
<li><a href="/author/inauthor">数据申请管理</a></li>
|
||||
<li><a href="/author/comment">数据反馈管理</a></li>
|
||||
<li><a href="/author/literature">数据文献管理</a></li>
|
||||
<li><a href="/author/document">数据文档管理</a></li>
|
||||
<li><a href="/author/news">数据新闻管理</a></li>
|
||||
<li><a href="/author/version">数据版本管理</a></li>
|
||||
<!--
|
||||
<li><a href="/author/survey">数据调查</a></li>
|
||||
<li><a href="/author/qa">数据QA</a></li> -->
|
||||
<li><a href="/author/statics">信息统计</a></li>
|
||||
</ul>
|
||||
<div class="sidebar-nav bs-review-nav">
|
||||
<ul class="nav nav-list bs-review-sidenav">
|
||||
<li id="Nav-author-index"><a href="/author/"><i class="icon-chevron-right"></i>介绍</a></li>
|
||||
<li id="Nav-author-newdata"><a href="/author/newdata"><i class="icon-chevron-right"></i>新建数据</a></li>
|
||||
<li id="Nav-author-apply"><a href="/author/apply"><i class="icon-chevron-right"></i>数据认证</a></li>
|
||||
<li id="Nav-author-accept"><a href="/author/accept"><i class="icon-chevron-right"></i>我的数据</a></li>
|
||||
<li id="Nav-author-inauthor"><a href="/author/inauthor"><i class="icon-chevron-right"></i>数据申请管理</a></li>
|
||||
<li id="Nav-author-comment"><a href="/author/comment"><i class="icon-chevron-right"></i>数据反馈管理</a></li>
|
||||
<li id="Nav-author-literature"><a href="/author/literature"><i class="icon-chevron-right"></i>数据文献管理</a></li>
|
||||
<li id="Nav-author-document"><a href="/author/document"><i class="icon-chevron-right"></i>数据文档管理</a></li>
|
||||
<li id="Nav-author-news"><a href="/author/news"><i class="icon-chevron-right"></i>数据新闻管理</a></li>
|
||||
<li id="Nav-author-version"><a href="/author/version"><i class="icon-chevron-right"></i>数据版本管理</a></li>
|
||||
<li id="Nav-author-fund"><a href="/author/fund"><i class="icon-chevron-right"></i>支持项目</a></li>
|
||||
<li id="Nav-author-doi"><a href="/author/doi"><i class="icon-chevron-right"></i>DOI</a></li>
|
||||
<!--
|
||||
<li><a href="/author/survey">数据调查</a></li>
|
||||
<li><a href="/author/qa">数据QA</a></li> -->
|
||||
<li id="Nav-author-statics"><a href="/author/statics"><i class="icon-chevron-right"></i>信息统计</a></li>
|
||||
</ul>
|
||||
</div>
|
|
@ -1,63 +1,60 @@
|
|||
<?php
|
||||
$this->headTitle($this->config->title->site);
|
||||
$this->headTitle($this->config->title->author);
|
||||
$this->headTitle()->setSeparator(' - ');
|
||||
$this->headScript()->appendFile('/js/jquery-1.7.min.js');
|
||||
<?php
|
||||
$this->headTitle($this->config->title->site);
|
||||
$this->headTitle($this->config->title->author);
|
||||
$this->headTitle()->setSeparator(' - ');
|
||||
$this->headLink()->appendStylesheet('/css/author.css');
|
||||
$this->headScript()->appendFile('/js/jquery.colorbox-min.js');
|
||||
$this->headLink()->appendStylesheet('/css/colorbox.css');
|
||||
$this->breadcrumb('<a href="/">首页</a>');
|
||||
$this->breadcrumb('<a href="/author">数据作者</a>');
|
||||
$this->breadcrumb('新建数据');
|
||||
$this->breadcrumb()->setSeparator(' > ');
|
||||
?>
|
||||
<!-- 左侧导航 -->
|
||||
<div id='sidebar'>
|
||||
<div id='leftnavi'>
|
||||
<?= $this->partial('author/navi.phtml'); ?>
|
||||
</div>
|
||||
</div>
|
||||
<!-- //左侧导航 -->
|
||||
|
||||
<!-- 页面内容 -->
|
||||
<div id="wapper">
|
||||
<div id="tabs-controller">
|
||||
<ul>
|
||||
<li class="box-shadow"><a class="text-shadow" href="/author/newdata">未提交数据列表</a></li>
|
||||
<li class="box-shadow"><a class="text-shadow iframe" href="/service/geonetwork?url=metadata.xmlinsert.form">导入元数据</a></li>
|
||||
<li class="box-shadow"><a class="text-shadow" href="/author/newdata/ac/add-by-template">根据模板新建元数据</a></li>
|
||||
<li class="box-shadow active"><a class="text-shadow" href="/author/newdata/ac/add-by-data">根据已有数据新建元数据</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div id="datalist">
|
||||
<h2>根据已有数据创建元数据</h2>
|
||||
<form id="datasearch" class="search_form" action="/author/newdata/ac/add-by-data">
|
||||
<input type="text" id="keyword" name="q" value="<?php if(!empty($this->q)) echo $this->q; ?>" />
|
||||
<button type="submit" class="btn" id="search_btn">搜索</button>
|
||||
</form>
|
||||
<?php
|
||||
if (count($this->paginator)):
|
||||
echo "<ul>";
|
||||
$autoindex=0;
|
||||
foreach ($this->paginator as $item):
|
||||
$autoindex++;
|
||||
?>
|
||||
<li>
|
||||
<p><span class="title"><?php echo $item['title'];?></span>
|
||||
【<a href="/service/geonetwork?url=metadata.create?group=2<?php echo urlencode('&id='.$item['gid']); ?>" target="_blank">以此为模板新建</a>
|
||||
| <a href="/data/<?php echo $item['uuid'];?>" target="_blank">查看数据</a>】</p>
|
||||
<p><?php echo mb_strlen($item['description'])>400?$this->escape(mb_substr($item['description'],0,400,'UTF-8').'...'):$this->escape($item['description']); ?></p>
|
||||
</li>
|
||||
<?php
|
||||
endforeach;
|
||||
echo "</ul>";
|
||||
endif; ?>
|
||||
</div>
|
||||
<div class="pagenavi"><?= $this->paginator; ?></div>
|
||||
</div>
|
||||
<!-- //页面内容 -->
|
||||
$this->theme->AppendPlus($this,'colorbox');
|
||||
$this->breadcrumb('<a href="/">首页</a>');
|
||||
$this->breadcrumb('<a href="/author">数据作者</a>');
|
||||
$this->breadcrumb('新建数据');
|
||||
$this->breadcrumb()->setSeparator(' > ');
|
||||
?>
|
||||
<div class="row">
|
||||
<div class="span3">
|
||||
<?= $this->partial('author/navi.phtml'); ?>
|
||||
</div>
|
||||
<div class="span9">
|
||||
|
||||
<div>
|
||||
<ul class="nav nav-pills">
|
||||
<li class=""><a href="/author/newdata">未提交数据列表</a></li>
|
||||
<li class=""><a class="iframe" href="/service/geonetwork?url=metadata.xmlinsert.form">导入元数据</a></li>
|
||||
<li class=""><a href="/author/newdata/ac/add-by-template">根据模板新建元数据</a></li>
|
||||
<li class="active"><a href="/author/newdata/ac/add-by-data">根据已有数据新建元数据</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<h2>根据已有数据创建元数据</h2>
|
||||
<div class="input-append">
|
||||
<form id="datasearch" class="search_form" action="/author/newdata/ac/add-by-data">
|
||||
<input type="text" id="keyword" name="q" value="<?php if(!empty($this->q)) echo $this->q; ?>" />
|
||||
<button type="submit" class="btn" id="search_btn">搜索</button>
|
||||
</form>
|
||||
</div>
|
||||
<?php
|
||||
if (count($this->paginator)):
|
||||
echo '<ul class="unstyled">';
|
||||
$autoindex=0;
|
||||
foreach ($this->paginator as $item):
|
||||
$autoindex++;
|
||||
?>
|
||||
<li class="well">
|
||||
<h4><?php echo $item['title'];?></h4>
|
||||
<p>【<a href="/service/geonetwork?url=metadata.create?group=2<?php echo urlencode('&id='.$item['gid']); ?>" target="_blank">以此为模板新建</a>
|
||||
| <a href="/data/<?php echo $item['uuid'];?>" target="_blank">查看数据</a>】</p>
|
||||
<p><?php echo mb_strlen($item['description'])>400?$this->escape(mb_substr($item['description'],0,400,'UTF-8').'...'):$this->escape($item['description']); ?></p>
|
||||
</li>
|
||||
<?php
|
||||
endforeach;
|
||||
echo "</ul>";
|
||||
endif; ?>
|
||||
</div>
|
||||
<div class="pagenavi"><?= $this->paginator; ?></div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
$(".iframe").colorbox({iframe:true, width:"80%", height:"80%"});
|
||||
$('#wapper').width($('body').width()-300);
|
||||
$(".iframe").colorbox({iframe:true, width:"80%", height:"80%"});
|
||||
$('#wapper').width($('body').width()-300);
|
||||
</script>
|
|
@ -2,65 +2,61 @@
|
|||
$this->headTitle($this->config->title->site);
|
||||
$this->headTitle($this->config->title->author);
|
||||
$this->headTitle()->setSeparator(' - ');
|
||||
$this->headScript()->appendFile('/js/jquery-1.7.min.js');
|
||||
$this->headLink()->appendStylesheet('/css/author.css');
|
||||
$this->headScript()->appendFile('/js/jquery.colorbox-min.js');
|
||||
$this->headLink()->appendStylesheet('/css/colorbox.css');
|
||||
$this->headLink()->appendStylesheet('/css/author.css');
|
||||
$this->theme->AppendPlus($this,'colorbox');
|
||||
$this->breadcrumb('<a href="/">首页</a>');
|
||||
$this->breadcrumb('<a href="/author">数据作者</a>');
|
||||
$this->breadcrumb('新建数据');
|
||||
$this->breadcrumb()->setSeparator(' > ');
|
||||
?>
|
||||
<!-- 左侧导航 -->
|
||||
<div id='sidebar'>
|
||||
<div id='leftnavi'>
|
||||
<?= $this->partial('author/navi.phtml'); ?>
|
||||
<div class="row">
|
||||
<div class="span3">
|
||||
<?= $this->partial('author/navi.phtml'); ?>
|
||||
</div>
|
||||
<div class="span9">
|
||||
|
||||
<div>
|
||||
<ul class="nav nav-pills">
|
||||
<li class=""><a href="/author/newdata">未提交数据列表</a></li>
|
||||
<li class=""><a class="iframe" href="/service/geonetwork?url=metadata.xmlinsert.form">导入元数据</a></li>
|
||||
<li class="active"><a href="/author/newdata/ac/add-by-template">根据模板新建元数据</a></li>
|
||||
<li class=""><a href="/author/newdata/ac/add-by-data">根据已有数据新建元数据</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<h3>根据预制元数据模板创建数据</h3>
|
||||
<div class="input-append">
|
||||
<form id="datasearch" class="search_form" action="/author/newdata/ac/add-by-template">
|
||||
<input class="span2" type="text" id="keyword" name="q" value="<?php if(!empty($this->q)) echo $this->q; ?>">
|
||||
<button class="btn" type="submit">搜索</button>
|
||||
</form>
|
||||
</div>
|
||||
<?php
|
||||
if (count($this->paginator)):
|
||||
echo '<ul class="unstyled">';
|
||||
$autoindex=0;
|
||||
foreach ($this->paginator as $item):
|
||||
$autoindex++;
|
||||
?>
|
||||
<li class="well">
|
||||
<h4><?php echo $item['title'];?></h4>
|
||||
<p>【<a href="/service/geonetwork?url=metadata.create?group=2<?php echo urlencode('&id='.$item['id']); ?>" target="_blank">以此为模板新建</a>
|
||||
<?php if ($this->isadmin || $item['isowner']==0) : ?>
|
||||
| <a href="/service/geonetwork?url=metadata.edit?id=<?php echo $item['id'];?>" target="_blank">修改此模板</a>
|
||||
| <a href="/service/geonetwork?url=metadata.show?id=<?php echo $item['id'];?>" target="_blank">查看此模板</a>
|
||||
<?php endif; ?>
|
||||
】</p>
|
||||
</li>
|
||||
<?php
|
||||
endforeach;
|
||||
echo "</ul>";
|
||||
endif; ?>
|
||||
</div>
|
||||
<div class="pagenavi"><?= $this->paginator; ?></div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<!-- //左侧导航 -->
|
||||
|
||||
<!-- 页面内容 -->
|
||||
<div id="wapper">
|
||||
<div id="tabs-controller">
|
||||
<ul>
|
||||
<li class="box-shadow"><a class="text-shadow" href="/author/newdata">未提交数据列表</a></li>
|
||||
<li class="box-shadow"><a class="text-shadow iframe" href="/service/geonetwork?url=metadata.xmlinsert.form">导入元数据</a></li>
|
||||
<li class="box-shadow active"><a class="text-shadow" href="/author/newdata/ac/add-by-template">根据模板新建元数据</a></li>
|
||||
<li class="box-shadow"><a class="text-shadow" href="/author/newdata/ac/add-by-data">根据已有数据新建元数据</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div id="datalist">
|
||||
<h2>根据预制元数据模板创建数据</h2>
|
||||
<form id="datasearch" class="search_form" action="/author/newdata/ac/add-by-template">
|
||||
<input type="text" id="keyword" name="q" value="<?php if(!empty($this->q)) echo $this->q; ?>" />
|
||||
<button type="submit" class="btn" id="search_btn">搜索</button>
|
||||
</form>
|
||||
<?php
|
||||
if (count($this->paginator)):
|
||||
echo "<ul>";
|
||||
$autoindex=0;
|
||||
foreach ($this->paginator as $item):
|
||||
$autoindex++;
|
||||
?>
|
||||
<li>
|
||||
<p><span class="title"><?php echo $item['title'];?></span>
|
||||
【<a href="/service/geonetwork?url=metadata.create?group=2<?php echo urlencode('&id='.$item['id']); ?>" target="_blank">以此为模板新建</a>
|
||||
<?php if ($this->isadmin || $item['isowner']==0) : ?>
|
||||
| <a href="/service/geonetwork?url=metadata.edit?id=<?php echo $item['id'];?>" target="_blank">修改此模板</a>
|
||||
| <a href="/service/geonetwork?url=metadata.show?id=<?php echo $item['id'];?>" target="_blank">查看此模板</a>
|
||||
<?php endif; ?>
|
||||
】</p>
|
||||
</li>
|
||||
<?php
|
||||
endforeach;
|
||||
echo "</ul>";
|
||||
endif; ?>
|
||||
</div>
|
||||
<div class="pagenavi"><?= $this->paginator; ?></div>
|
||||
</div>
|
||||
<!-- //页面内容 -->
|
||||
<script>
|
||||
<script>
|
||||
$(".iframe").colorbox({iframe:true, width:"80%", height:"80%"});
|
||||
$('#wapper').width($('body').width()-300);
|
||||
</script>
|
|
@ -2,94 +2,86 @@
|
|||
$this->headTitle($this->config->title->site);
|
||||
$this->headTitle($this->config->title->author);
|
||||
$this->headTitle()->setSeparator(' - ');
|
||||
$this->headScript()->appendFile('/js/jquery-1.7.min.js');
|
||||
$this->headScript()->appendFile('/js/jquery.colorbox-min.js');
|
||||
$this->headLink()->appendStylesheet('/css/author.css');
|
||||
$this->headLink()->appendStylesheet('/css/colorbox.css');
|
||||
$this->theme->AppendPlus($this,'colorbox');
|
||||
$this->headLink()->appendStylesheet('/css/author.css');
|
||||
$this->breadcrumb('<a href="/">首页</a>');
|
||||
$this->breadcrumb('<a href="/author">'.$this->config->title->author.'</a>');
|
||||
$this->breadcrumb('新建数据');
|
||||
$this->breadcrumb()->setSeparator(' > ');
|
||||
?>
|
||||
<!-- 左侧导航 -->
|
||||
<div id='sidebar'>
|
||||
<div id='leftnavi'>
|
||||
<?= $this->partial('author/navi.phtml'); ?>
|
||||
<div class="row">
|
||||
<div class="span3">
|
||||
<?= $this->partial('author/navi.phtml'); ?>
|
||||
</div>
|
||||
</div>
|
||||
<!-- //左侧导航 -->
|
||||
<div class="span9">
|
||||
|
||||
<div>
|
||||
<ul class="nav nav-pills">
|
||||
<li class="active"><a href="/author/newdata">未提交数据列表</a></li>
|
||||
<li class=""><a class="iframe" href="/service/geonetwork?url=metadata.xmlinsert.form">导入元数据</a></li>
|
||||
<li class=""><a href="/author/newdata/ac/add-by-template">根据模板新建元数据</a></li>
|
||||
<li class=""><a href="/author/newdata/ac/add-by-data">根据已有数据新建元数据</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<!-- 页面内容 -->
|
||||
<div id="wapper">
|
||||
<div id="tabs-controller">
|
||||
<ul>
|
||||
<li class="box-shadow active"><a class="text-shadow" href="/author/newdata">未提交数据列表</a></li>
|
||||
<li class="box-shadow"><a class="text-shadow iframe" href="/service/geonetwork?url=metadata.xmlinsert.form">导入元数据</a></li>
|
||||
<li class="box-shadow"><a class="text-shadow" href="/author/newdata/ac/add-by-template">根据模板新建元数据</a></li>
|
||||
<li class="box-shadow"><a class="text-shadow" href="/author/newdata/ac/add-by-data">根据已有数据新建元数据</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div id="datalist">
|
||||
<?php
|
||||
if (count($this->paginator)):
|
||||
echo "<ul>";
|
||||
$autoindex=0;
|
||||
foreach ($this->paginator as $item):
|
||||
$autoindex++;
|
||||
?>
|
||||
<li>
|
||||
<p><span class="title"><?php echo $item['title'];?></span>
|
||||
【<a href="/service/geonetwork?url=metadata.show?id=<?php echo $item['id']; ?>" target="_blank">在geonetwork里查看</a>
|
||||
| <a href="/service/geonetwork?url=metadata.edit?id=<?php echo $item['id']; ?>" target="_blank">在geonetwork里修改</a>
|
||||
| <a href="/service/geonetwork?url=metadata.delete?id=<?php echo $item['id']; ?>">删除此条数据</a>
|
||||
| <a href="javascript:;" onclick="getFtp('<?php echo $item['uuid'];?>')">FTP数据上传</a>
|
||||
| <a onclick="$('#commit_submit').attr('onclick','commit(\'<?php echo $item['id'];?>\');');" href="#commitform" class="more inline">提交评审发布</a>
|
||||
】</p>
|
||||
</li>
|
||||
<?php
|
||||
<div>
|
||||
<?php
|
||||
if (count($this->paginator)):
|
||||
echo '<ul class="unstyled">';
|
||||
$autoindex=0;
|
||||
foreach ($this->paginator as $item):
|
||||
$autoindex++;
|
||||
?>
|
||||
<li class="well">
|
||||
<h4><?php echo $item['title'];?></h4>
|
||||
【<a href="/service/geonetwork?url=metadata.show?id=<?php echo $item['id']; ?>" target="_blank">在geonetwork里查看</a>
|
||||
| <a href="/service/geonetwork?url=metadata.edit?id=<?php echo $item['id']; ?>" target="_blank">在geonetwork里修改</a>
|
||||
| <a href="/service/geonetwork?url=metadata.delete?id=<?php echo $item['id']; ?>" target="_blank">删除此条数据</a>
|
||||
| <a href="javascript:;" onclick="getFtp('<?php echo $item['uuid'];?>')">FTP数据上传</a>
|
||||
| <a onclick="$('#commit_submit').attr('onclick','commit(\'<?php echo $item['id'];?>\');');" href="#commitform" class="more inline">提交评审发布</a>
|
||||
】</p>
|
||||
</li>
|
||||
<?php
|
||||
endforeach;
|
||||
echo "</ul>";
|
||||
else :
|
||||
echo "</ul>";
|
||||
else :
|
||||
echo "<p>您当前没有未提交的数据。</p>";
|
||||
endif; ?>
|
||||
</div>
|
||||
<div class="pagenavi"><?= $this->paginator; ?></div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- //页面内容 -->
|
||||
<script>
|
||||
$('#wapper').width($('body').width()-300);
|
||||
|
||||
function action(ac,id){
|
||||
$.ajax({
|
||||
'type':"POST",
|
||||
'url':'/author/newdata/',
|
||||
'data':'ac='+ ac +'&id='+id,
|
||||
'success':function(data){
|
||||
if (typeof(data)=='object')
|
||||
{
|
||||
if(typeof(data.error)!='undefined')
|
||||
{$.colorbox({'innerWidth':'50%','html':data.error});}
|
||||
if(typeof(data.deleted)!='undefined')
|
||||
{$('#list_'+data.deleted).fadeOut("slow",function(){$(this).remove();});}
|
||||
if(typeof(data.commited)!='undefined')
|
||||
{$('#changelog').val('');$('#commit_submit').attr('onclick','');}
|
||||
}
|
||||
else{
|
||||
$.colorbox({'innerWidth':'50%','html':'<img src="/images/alert_big_warning.png" /><h4>出现错误,请稍候再试</h4>'});
|
||||
}
|
||||
},
|
||||
'timeout': 30000,
|
||||
'error': function(){
|
||||
$.colorbox({'innerWidth':'50%','html':'<img src="/images/alert_big_error.png" /><h4>处理中出现错误,请刷新页面后重试</h4>'});
|
||||
}
|
||||
});
|
||||
}
|
||||
$(".inline").colorbox({inline:true, width:"50%"});
|
||||
$(".iframe").colorbox({iframe:true, width:"80%", height:"80%"});
|
||||
function commit(id){
|
||||
action('commit&changelog='+$('#changelog').val(),id);
|
||||
}
|
||||
function action(ac,id){
|
||||
$.ajax({
|
||||
'type':"POST",
|
||||
'url':'/author/newdata/',
|
||||
'data':'ac='+ ac +'&id='+id,
|
||||
'success':function(data){
|
||||
if (typeof(data)=='object')
|
||||
{
|
||||
if(typeof(data.error)!='undefined')
|
||||
{$.colorbox({'innerWidth':'50%','html':data.error});}
|
||||
if(typeof(data.deleted)!='undefined')
|
||||
{$('#list_'+data.deleted).fadeOut("slow",function(){$(this).remove();});}
|
||||
if(typeof(data.commited)!='undefined')
|
||||
{$('#changelog').val('');$('#commit_submit').attr('onclick','');}
|
||||
}
|
||||
else{
|
||||
$.colorbox({'innerWidth':'50%','html':'<img src="/images/alert_big_warning.png" /><h4>出现错误,请稍候再试</h4>'});
|
||||
}
|
||||
},
|
||||
'timeout': 30000,
|
||||
'error': function(){
|
||||
$.colorbox({'innerWidth':'50%','html':'<img src="/images/alert_big_error.png" /><h4>处理中出现错误,请刷新页面后重试</h4>'});
|
||||
}
|
||||
});
|
||||
}
|
||||
$(".inline").colorbox({inline:true, width:"50%"});
|
||||
$(".iframe").colorbox({iframe:true, width:"80%", height:"80%"});
|
||||
function commit(id){
|
||||
action('commit&changelog='+$('#changelog').val(),id);
|
||||
}
|
||||
function getFtp(uuid){
|
||||
$.ajax({
|
||||
'type':"POST",
|
||||
|
@ -121,23 +113,23 @@ function getFtp(uuid){
|
|||
Alert('处理中出现错误,请刷新页面后重试</h4>');
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
function Alert(html){
|
||||
$.colorbox({'innerWidth':'50%','html':'<h4>'+html+'</h4>'});
|
||||
}
|
||||
</script>
|
||||
<div class="colorbox" style="display:none;">
|
||||
<div id="commitform">
|
||||
<form>
|
||||
<p>
|
||||
<label>简要功能:</label><br />
|
||||
<textarea class="full" style="resize:none;height:200px;" id="changelog"></textarea>
|
||||
<br /><small>请输入此数据的简要功能和特色</small>
|
||||
</p>
|
||||
<input type="button" onclick="" id="commit_submit" class="btn btn-green big" value="提交"/>
|
||||
</form>
|
||||
</div>
|
||||
<div class="error"><img src="/images/alert_big_error.png" /><span></span></div>
|
||||
<div class="ok"><img src="/images/alert_big_ok.png" /><span></span></div>
|
||||
<div class="warning"><img src="/images/alert_big_warning.png" /><span></span></div>
|
||||
}
|
||||
</script>
|
||||
<div class="colorbox" style="display:none;">
|
||||
<div id="commitform">
|
||||
<form>
|
||||
<p>
|
||||
<label>简要功能:</label><br />
|
||||
<textarea class="full" style="resize:none;height:200px;" id="changelog"></textarea>
|
||||
<br /><small>请输入此数据的简要功能和特色</small>
|
||||
</p>
|
||||
<input type="button" onclick="" id="commit_submit" class="btn btn-green big" value="提交"/>
|
||||
</form>
|
||||
</div>
|
||||
<div class="error"><img src="/images/alert_big_error.png" /><span></span></div>
|
||||
<div class="ok"><img src="/images/alert_big_ok.png" /><span></span></div>
|
||||
<div class="warning"><img src="/images/alert_big_warning.png" /><span></span></div>
|
||||
</div>
|
|
@ -2,7 +2,6 @@
|
|||
$this->headTitle($this->config->title->site);
|
||||
$this->headTitle($this->config->title->author);
|
||||
$this->headTitle()->setSeparator(' - ');
|
||||
$this->headScript()->appendFile('/js/jquery-1.7.min.js');
|
||||
$this->headScript()->appendFile('/static/js/kindeditor-min.js');
|
||||
$this->headScript()->appendFile('/static/js/kindlang/zh_CN.js');
|
||||
$this->headLink()->appendStylesheet('/css/author.css');
|
||||
|
@ -12,68 +11,76 @@ $this->breadcrumb('<a href="/author">数据作者</a>');
|
|||
$this->breadcrumb('数据新闻');
|
||||
$this->breadcrumb()->setSeparator(' > ');
|
||||
?>
|
||||
<!-- 左侧导航 -->
|
||||
<div id='sidebar'>
|
||||
<div id='leftnavi'>
|
||||
<?= $this->partial('author/navi.phtml'); ?>
|
||||
<div class="row">
|
||||
<div class="span3">
|
||||
<?= $this->partial('author/navi.phtml'); ?>
|
||||
</div>
|
||||
<div class="span9">
|
||||
|
||||
<div>
|
||||
<ul class="nav nav-pills">
|
||||
<li class=""><a class="" href="/author/news">数据新闻</a></li>
|
||||
<li class="active"><a class="" href="/author/news/ac/add">新闻发布</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div class="form-horizontal" id="form">
|
||||
<form name="form" id="newsadd" method="post" action="#">
|
||||
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="archivetitle">标题</label>
|
||||
<div class="controls">
|
||||
<input type="text" id="archivetitle" class="half" value="" name="title" maxlength="100"/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="data">相关数据</label>
|
||||
<div class="controls">
|
||||
<ul style="height:100px;overflow-y:scroll;" class="span6 unstyled">
|
||||
<?php
|
||||
if(!empty($this->md))
|
||||
{
|
||||
foreach($this->md as $v)
|
||||
{
|
||||
echo '<li><input type="checkbox" value="'.$v['uuid'].'" name="uuid[]" />'.$v['title'].'</li>';
|
||||
}
|
||||
}
|
||||
?>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="tag">标签</label>
|
||||
<div class="controls">
|
||||
<input type="text" id="keyword" value="" name="keyword" style="width:96%" />
|
||||
<small>使用半角逗号“,”隔开,如 (冻土,冰川)</small>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="tag">新闻内容</label>
|
||||
<div class="controls">
|
||||
<textarea id="body" name="body" style="width:98%;"></textarea>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="control-group">
|
||||
<div class="controls">
|
||||
<input type="button" onclick="addon();" id="submit" class="btn btn-green big" value="提交"/> or
|
||||
<input type="reset" class="btn" value="重置" onclick="return confirm('确实要抛弃已经填写内容?');"/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</form>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<!-- //左侧导航 -->
|
||||
|
||||
<!-- 页面内容 -->
|
||||
<div id="wapper">
|
||||
<!-- 按钮 -->
|
||||
<div id="tabs-controller">
|
||||
<ul>
|
||||
<li class="box-shadow"><a class="text-shadow" href="/author/news">数据新闻</a></li>
|
||||
<li class="box-shadow active"><a class="text-shadow" href="/author/news/ac/add">新闻发布</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<!-- 新闻表单 -->
|
||||
<div class="form" id="form">
|
||||
<form name="form" id="newsadd" method="post" action="#">
|
||||
<fieldset>
|
||||
<legend>新闻信息</legend>
|
||||
<input type="hidden" id="image" class="half title" value="" name="image"/>
|
||||
<p>
|
||||
<label class="required" for="archivetitle">标题</label><br/>
|
||||
<input type="text" id="archivetitle" class="half" value="" name="title" maxlength="100"/>
|
||||
<small>请准确概况新闻内容</small>
|
||||
</p>
|
||||
<p>
|
||||
<label class="required" for="data">相关数据</label><br/>
|
||||
<ul style="height:100px;width:50%;overflow-y:scroll;">
|
||||
<?php
|
||||
if(!empty($this->md))
|
||||
{
|
||||
foreach($this->md as $v)
|
||||
{
|
||||
echo '<li><input type="checkbox" value="'.$v['uuid'].'" name="uuid[]" />'.$v['title'].'</li>';
|
||||
}
|
||||
}
|
||||
?>
|
||||
</ul>
|
||||
<small>从数据中选择一条</small>
|
||||
</p>
|
||||
<p>
|
||||
<label class="required" for="tag">标签</label><br/>
|
||||
<input type="text" id="keyword" class="half" value="" name="keyword"/>
|
||||
<small>使用半角逗号“,”隔开,如 (冻土,冰川)</small>
|
||||
</p>
|
||||
<p>
|
||||
<label for="body">新闻内容</label><br/>
|
||||
<textarea id="body" class="large full" name="body"></textarea>
|
||||
</p>
|
||||
<p class="box"><input type="button" onclick="addon();" id="submit" class="btn btn-green big" value="提交"/> or <input type="reset" class="btn" value="重置" onclick="return confirm('确实要抛弃已经填写内容?');"/></p>
|
||||
<div id="return"></div>
|
||||
</fieldset>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
<!-- //页面内容 -->
|
||||
<script>
|
||||
$(document).ready(function(){
|
||||
$('#wapper').width($('body').width()-300);
|
||||
KindEditor.ready(function(K) {
|
||||
editor=K.create('textarea[name="body"]', {
|
||||
cssPath : '/static/js/plugins/code/prettify.css',
|
||||
|
|
|
@ -2,7 +2,6 @@
|
|||
$this->headTitle($this->config->title->site);
|
||||
$this->headTitle($this->config->title->author);
|
||||
$this->headTitle()->setSeparator(' - ');
|
||||
$this->headScript()->appendFile('/js/jquery-1.7.min.js');
|
||||
$this->headScript()->appendFile('/static/js/kindeditor-min.js');
|
||||
$this->headScript()->appendFile('/static/js/kindlang/zh_CN.js');
|
||||
$this->headLink()->appendStylesheet('/css/author.css');
|
||||
|
@ -12,71 +11,83 @@ $this->breadcrumb('<a href="/author">数据作者</a>');
|
|||
$this->breadcrumb('数据新闻');
|
||||
$this->breadcrumb()->setSeparator(' > ');
|
||||
?>
|
||||
<!-- 左侧导航 -->
|
||||
<div id='sidebar'>
|
||||
<div id='leftnavi'>
|
||||
<?= $this->partial('author/navi.phtml'); ?>
|
||||
<div class="row">
|
||||
<div class="span3">
|
||||
<?= $this->partial('author/navi.phtml'); ?>
|
||||
</div>
|
||||
<div class="span9">
|
||||
|
||||
<div>
|
||||
<ul class="nav nav-pills">
|
||||
<li class=""><a class="" href="/author/news">数据新闻</a></li>
|
||||
<li class="active"><a class="" href="/author/news/ac/add">新闻发布</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div class="form-horizontal" id="form">
|
||||
<form name="form" id="newsadd" method="post" action="#">
|
||||
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="archivetitle">标题</label>
|
||||
<div class="controls">
|
||||
<input type="text" id="producttitle" class="half" value="<?php echo $this->info['title'];?>" name="title" maxlength="100"/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="data">相关数据</label>
|
||||
<div class="controls">
|
||||
<ul style="height:100px;overflow-y:scroll;" class="span6 unstyled">
|
||||
<?php
|
||||
if(!empty($this->md))
|
||||
{
|
||||
foreach($this->md as $vd)
|
||||
{
|
||||
echo '<li><input type="checkbox" name="uuid[]" value="'.$vd['uuid'].'"';
|
||||
foreach($this->thismd as $v)
|
||||
{
|
||||
if($v['uuid'] == $vd['uuid'])
|
||||
{
|
||||
echo 'checked="checked"';
|
||||
}
|
||||
}
|
||||
echo ' />'.$vd['title'].'</li>';
|
||||
|
||||
}
|
||||
}
|
||||
?>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="tag">标签</label>
|
||||
<div class="controls">
|
||||
<input type="text" id="keyword" value="<?php echo $this->info['keywords'];?>" name="keyword" style="width:96%" />
|
||||
<small>使用半角逗号“,”隔开,如 (冻土,冰川)</small>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="tag">新闻内容</label>
|
||||
<div class="controls">
|
||||
<textarea id="body" name="body" style="width:98%;"><?php echo $this->info['body'];?></textarea>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="control-group">
|
||||
<div class="controls">
|
||||
<input type="hidden" name="aid" value="<?php echo $this->info['id'];?>" />
|
||||
<input type="button" onclick="addon();" id="submit" class="btn btn-green big" value="提交"/> or
|
||||
<input type="reset" class="btn" value="重置" onclick="return confirm('确实要抛弃已经填写内容?');"/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</form>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<!-- //左侧导航 -->
|
||||
|
||||
<!-- 页面内容 -->
|
||||
<div id="wapper">
|
||||
<div id="tabs-controller">
|
||||
<ul>
|
||||
<li class="box-shadow"><a class="text-shadow" href="/author/news">数据新闻</a></li>
|
||||
<li class="box-shadow"><a class="text-shadow" href="/author/news/ac/add">新闻发布</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<!-- 新闻表单 -->
|
||||
<div class="form" id="form">
|
||||
<form name="form" id="newsadd" method="post" action="#">
|
||||
<fieldset>
|
||||
<legend>新闻信息</legend>
|
||||
<p>
|
||||
<label class="required" for="producttitle">标题</label><br/>
|
||||
<input type="text" id="producttitle" class="half" value="<?php echo $this->info['title'];?>" name="title" maxlength="100"/>
|
||||
<small>请准确概况新闻内容</small>
|
||||
</p>
|
||||
<p>
|
||||
<label class="required" for="data">相关数据</label><br/>
|
||||
<ul style="height:100px;width:50%;overflow-y:scroll;">
|
||||
<?php
|
||||
if(!empty($this->md))
|
||||
{
|
||||
foreach($this->md as $vd)
|
||||
{
|
||||
echo '<li><input type="checkbox" name="uuid[]" value="'.$vd['uuid'].'"';
|
||||
foreach($this->thismd as $v)
|
||||
{
|
||||
if($v['uuid'] == $vd['uuid'])
|
||||
{
|
||||
echo 'checked="checked"';
|
||||
}
|
||||
}
|
||||
echo ' />'.$vd['title'].'</li>';
|
||||
|
||||
}
|
||||
}
|
||||
?>
|
||||
</ul>
|
||||
</p>
|
||||
<p>
|
||||
<label class="required" for="producttitle">标签</label><br/>
|
||||
<input type="text" id="keyword" class="half" value="<?php echo $this->info['keywords'];?>" name="keyword"/>
|
||||
<small>使用半角逗号","隔开,如 (冻土,冰川)</small>
|
||||
</p>
|
||||
<p>
|
||||
<label for="body">新闻内容</label><br/>
|
||||
<textarea id="body" class="large full" name="body"><?php echo $this->info['body'];?></textarea>
|
||||
</p>
|
||||
<input type="hidden" name="aid" value="<?php echo $this->info['id'];?>" />
|
||||
<p class="box"><input type="button" onclick="addon();" id="submit" class="btn btn-green big" value="提交"/> or <input type="reset" class="btn" value="重置" onclick="return confirm('确实要抛弃已经填写内容?');"/></p>
|
||||
<div id="return"></div>
|
||||
</fieldset>
|
||||
</form>
|
||||
</div>
|
||||
<!-- //页面内容 -->
|
||||
<script>
|
||||
$(document).ready(function(){
|
||||
$('#wapper').width($('body').width()-300);
|
||||
|
|
|
@ -2,63 +2,60 @@
|
|||
$this->headTitle($this->config->title->site);
|
||||
$this->headTitle($this->config->title->author);
|
||||
$this->headTitle()->setSeparator(' - ');
|
||||
$this->headScript()->appendFile('/js/jquery-1.7.min.js');
|
||||
$this->headLink()->appendStylesheet('/css/author.css');
|
||||
$this->headScript()->appendFile('/js/jquery.colorbox-min.js');
|
||||
$this->headLink()->appendStylesheet('/css/colorbox.css');
|
||||
$this->theme->AppendPlus($this,'colorbox');
|
||||
$this->breadcrumb('<a href="/">首页</a>');
|
||||
$this->breadcrumb('<a href="/author">数据作者</a>');
|
||||
$this->breadcrumb('数据新闻');
|
||||
$this->breadcrumb()->setSeparator(' > ');
|
||||
?>
|
||||
<!-- 左侧导航 -->
|
||||
<div id='sidebar'>
|
||||
<div id='leftnavi'>
|
||||
<?= $this->partial('author/navi.phtml'); ?>
|
||||
<div class="row">
|
||||
<div class="span3">
|
||||
<?= $this->partial('author/navi.phtml'); ?>
|
||||
</div>
|
||||
<div class="span9">
|
||||
|
||||
<div>
|
||||
<ul class="nav nav-pills">
|
||||
<li class="active"><a class="" href="/author/news">数据新闻</a></li>
|
||||
<li class=""><a class="" href="/author/news/ac/add">新闻发布</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="input-append">
|
||||
<form id="datasearch" class="search_form" action="/author/news/">
|
||||
<input type="text" class="span2" id="keyword" name="q" value="<?php if(!empty($this->q)) echo $this->q; ?>" />
|
||||
<button type="submit" class="btn" id="search_btn">搜索</button>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<?php
|
||||
if (count($this->paginator)):
|
||||
echo '<ul class="unstyled">';
|
||||
$autoindex=0;
|
||||
foreach ($this->paginator as $item):
|
||||
$autoindex++;
|
||||
?>
|
||||
<li class="well" id="item_<?= $item['id'] ?>">
|
||||
<p><a href="<?php echo $item['url'];?>" class="title"><?php echo $item['title'];?></a></p>
|
||||
<p>
|
||||
作者:<?php echo $item['realname'];?> |
|
||||
发布时间:<?php echo date("Y-m-d",strtotime($item['ts_published']));?> |
|
||||
关联数据:<?php echo $item['datacount'];?>条 |
|
||||
操作:<a href="/author/news/ac/edit/aid/<?= $item['id']?>/">编辑</a> ·
|
||||
<a href="javascript:;" onclick="del(<?= $item['id'] ?>)" id="delBtn_<?= $item['id'] ?>">删除</a></p>
|
||||
<p><?php echo $item['description'];?></p>
|
||||
</li>
|
||||
<?php
|
||||
endforeach;
|
||||
echo "</ul>";
|
||||
endif; ?>
|
||||
</div>
|
||||
<div class="pagenavi"><?= $this->paginator; ?></div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<!-- //左侧导航 -->
|
||||
|
||||
<!-- 页面内容 -->
|
||||
<div id="wapper">
|
||||
<div id="tabs-controller">
|
||||
<ul>
|
||||
<li class="box-shadow active"><a class="text-shadow" href="/author/news">数据新闻</a></li>
|
||||
<li class="box-shadow"><a class="text-shadow" href="/author/news/ac/add">新闻发布</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<form id="datasearch" class="search_form" action="/author/news/">
|
||||
<input type="text" id="keyword" name="q" value="<?php if(!empty($this->q)) echo $this->q; ?>" />
|
||||
<button type="submit" class="btn" id="search_btn">搜索</button>
|
||||
</form>
|
||||
<div id="datalist">
|
||||
<?php
|
||||
if (count($this->paginator)):
|
||||
echo "<ul>";
|
||||
$autoindex=0;
|
||||
foreach ($this->paginator as $item):
|
||||
$autoindex++;
|
||||
?>
|
||||
<li id="item_<?= $item['id'] ?>">
|
||||
<p><a href="<?php echo $item['url'];?>" class="title"><?php echo $item['title'];?></a></p>
|
||||
<p>
|
||||
作者:<?php echo $item['realname'];?> |
|
||||
发布时间:<?php echo date("Y-m-d",strtotime($item['ts_published']));?> |
|
||||
关联数据:<?php echo $item['datacount'];?>条 |
|
||||
操作:<a href="/author/news/ac/edit/aid/<?= $item['id']?>/">编辑</a> ·
|
||||
<a href="javascript:;" onclick="del(<?= $item['id'] ?>)" id="delBtn_<?= $item['id'] ?>">删除</a></p>
|
||||
<p><?php echo $item['description'];?></p>
|
||||
</li>
|
||||
<?php
|
||||
endforeach;
|
||||
echo "</ul>";
|
||||
endif; ?>
|
||||
</div>
|
||||
<div class="pagenavi"><?= $this->paginator; ?></div>
|
||||
</div>
|
||||
<!-- //页面内容 -->
|
||||
<script>
|
||||
$('#wapper').width($('body').width()-300);
|
||||
function del(id){
|
||||
var dom = "#delBtn_"+id;
|
||||
var html = $(dom).html();
|
||||
|
|
|
@ -12,16 +12,11 @@ $this->breadcrumb('<a href="/author/accept">我的数据</a>');
|
|||
$this->breadcrumb('邮件通知');
|
||||
$this->breadcrumb()->setSeparator(' > ');
|
||||
?>
|
||||
<!-- 左侧导航 -->
|
||||
<div id='sidebar'>
|
||||
<div id='leftnavi'>
|
||||
<?= $this->partial('author/navi.phtml'); ?>
|
||||
<div class="row">
|
||||
<div class="span3">
|
||||
<?= $this->partial('author/navi.phtml'); ?>
|
||||
</div>
|
||||
</div>
|
||||
<!-- //左侧导航 -->
|
||||
|
||||
<!-- 页面内容 -->
|
||||
<div id="wapper">
|
||||
<div class="span9">
|
||||
<?php
|
||||
if(!empty($this->error))
|
||||
{
|
||||
|
@ -60,6 +55,7 @@ $this->breadcrumb()->setSeparator(' > ');
|
|||
}
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
<!-- //页面内容 -->
|
||||
<script>
|
||||
$('#wapper').width($('body').width()-300);
|
||||
|
|
|
@ -2,51 +2,45 @@
|
|||
$this->headTitle($this->config->title->site);
|
||||
$this->headTitle($this->config->title->author);
|
||||
$this->headTitle()->setSeparator(' - ');
|
||||
$this->headScript()->appendFile('/static/js/jquery-1.7.2.min.js');
|
||||
$this->headLink()->appendStylesheet('/css/author.css');
|
||||
$this->breadcrumb('<a href="/">首页</a>');
|
||||
$this->breadcrumb('<a href="/author">数据作者</a>');
|
||||
$this->breadcrumb('数据申请管理');
|
||||
$this->breadcrumb()->setSeparator(' > ');
|
||||
?>
|
||||
<!-- 左侧导航 -->
|
||||
<div id='sidebar'>
|
||||
<div id='leftnavi'>
|
||||
<?= $this->partial('author/navi.phtml'); ?>
|
||||
<div class="row">
|
||||
<div class="span3">
|
||||
<?= $this->partial('author/navi.phtml'); ?>
|
||||
</div>
|
||||
<div class="span9">
|
||||
|
||||
<div>
|
||||
<ul class="nav nav-pills">
|
||||
<li><a href="/author/statics">数据统计</a></li>
|
||||
<li class="active"><a href="/author/statics/ac/md">申请统计</a></li>
|
||||
<li class=""><a href="/author/statics/ac/time">按时间段统计</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<ul class="unstyled">
|
||||
<?php
|
||||
|
||||
if(isset($this->allorder))
|
||||
{
|
||||
echo "<li class='well'><h1>申请总数量:".$this->allorder."</h1><a href='/author/inauthor'>【申请管理】</a></li>";
|
||||
}
|
||||
if(isset($this->offlineorder))
|
||||
{
|
||||
echo "<li class='well'><h1>离线申请总数量:".$this->offlineorder."</h1><a href='/author/inauthor/ac/datalist'>【查看离线申请】</a></li>";
|
||||
}
|
||||
if(isset($this->onlineorder))
|
||||
{
|
||||
echo "<li class='well'><h1>在线申请总数量:".$this->onlineorder."</h1><a href='/author/inauthor/ac/online'>【查看在线申请】</a></li>";
|
||||
}
|
||||
?>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<!-- //左侧导航 -->
|
||||
|
||||
<!-- 页面内容 -->
|
||||
<div id="wapper">
|
||||
<div id="tabs-controller">
|
||||
<ul>
|
||||
<li class="box-shadow"><a class="text-shadow" href="/author/statics">数据统计</a></li>
|
||||
<li class="box-shadow active"><a class="text-shadow" href="/author/statics/ac/md">申请统计</a></li>
|
||||
<li class="box-shadow"><a class="text-shadow" href="/author/statics/ac/time">按时间段统计</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div id="datalist">
|
||||
<ul>
|
||||
<?php
|
||||
|
||||
if(isset($this->allorder))
|
||||
{
|
||||
echo "<li><h1>申请总数量:".$this->allorder."</h1><a href='/author/inauthor'>【申请管理】</a></li>";
|
||||
}
|
||||
if(isset($this->offlineorder))
|
||||
{
|
||||
echo "<li><h1>离线申请总数量:".$this->offlineorder."</h1><a href='/author/inauthor/ac/datalist'>【查看离线申请】</a></li>";
|
||||
}
|
||||
if(isset($this->onlineorder))
|
||||
{
|
||||
echo "<li><h1>在线申请总数量:".$this->onlineorder."</h1><a href='/author/inauthor/ac/online'>【查看在线申请】</a></li>";
|
||||
}
|
||||
?>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<!-- //页面内容 -->
|
||||
<script>
|
||||
$('#wapper').width($('body').width()-300);
|
||||
</script>
|
|
@ -2,46 +2,40 @@
|
|||
$this->headTitle($this->config->title->site);
|
||||
$this->headTitle($this->config->title->author);
|
||||
$this->headTitle()->setSeparator(' - ');
|
||||
$this->headScript()->appendFile('/static/js/jquery-1.7.2.min.js');
|
||||
$this->headLink()->appendStylesheet('/css/author.css');
|
||||
$this->breadcrumb('<a href="/">首页</a>');
|
||||
$this->breadcrumb('<a href="/author">数据作者</a>');
|
||||
$this->breadcrumb('数据申请管理');
|
||||
$this->breadcrumb()->setSeparator(' > ');
|
||||
?>
|
||||
<!-- 左侧导航 -->
|
||||
<div id='sidebar'>
|
||||
<div id='leftnavi'>
|
||||
<?= $this->partial('author/navi.phtml'); ?>
|
||||
<div class="row">
|
||||
<div class="span3">
|
||||
<?= $this->partial('author/navi.phtml'); ?>
|
||||
</div>
|
||||
</div>
|
||||
<!-- //左侧导航 -->
|
||||
|
||||
<!-- 页面内容 -->
|
||||
<div id="wapper">
|
||||
<div id="tabs-controller">
|
||||
<ul>
|
||||
<li class="box-shadow"><a class="text-shadow" href="/author/statics">数据统计</a></li>
|
||||
<li class="box-shadow"><a class="text-shadow" href="/author/statics/ac/md">申请统计</a></li>
|
||||
<li class="box-shadow active"><a class="text-shadow" href="/author/statics/ac/time">按时间段统计</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div id="datalist">
|
||||
<ul>
|
||||
<?php
|
||||
if(isset($this->datas))
|
||||
{
|
||||
foreach($this->datas as $k=>$v)
|
||||
{
|
||||
echo "<li>时间:{$v['d']}<br />申请数:{$v['c']}</li>";
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
</ul>
|
||||
<div class="span9">
|
||||
|
||||
<div>
|
||||
<ul class="nav nav-pills">
|
||||
<li><a href="/author/statics">数据统计</a></li>
|
||||
<li><a href="/author/statics/ac/md">申请统计</a></li>
|
||||
<li class="active"><a href="/author/statics/ac/time">按时间段统计</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<ul class="unstyled">
|
||||
<?php
|
||||
if(isset($this->datas))
|
||||
{
|
||||
foreach($this->datas as $k=>$v)
|
||||
{
|
||||
echo "<li class='well'>时间:{$v['d']}<br />申请数:{$v['c']}</li>";
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<!-- //页面内容 -->
|
||||
<script>
|
||||
$('#wapper').width($('body').width()-300);
|
||||
</script>
|
||||
</div>
|
|
@ -2,50 +2,44 @@
|
|||
$this->headTitle($this->config->title->site);
|
||||
$this->headTitle($this->config->title->author);
|
||||
$this->headTitle()->setSeparator(' - ');
|
||||
$this->headScript()->appendFile('/static/js/jquery-1.7.2.min.js');
|
||||
$this->headLink()->appendStylesheet('/css/author.css');
|
||||
$this->breadcrumb('<a href="/">首页</a>');
|
||||
$this->breadcrumb('<a href="/author">数据作者</a>');
|
||||
$this->breadcrumb('数据申请管理');
|
||||
$this->breadcrumb()->setSeparator(' > ');
|
||||
?>
|
||||
<!-- 左侧导航 -->
|
||||
<div id='sidebar'>
|
||||
<div id='leftnavi'>
|
||||
<?= $this->partial('author/navi.phtml'); ?>
|
||||
<div class="row">
|
||||
<div class="span3">
|
||||
<?= $this->partial('author/navi.phtml'); ?>
|
||||
</div>
|
||||
</div>
|
||||
<!-- //左侧导航 -->
|
||||
|
||||
<!-- 页面内容 -->
|
||||
<div id="wapper">
|
||||
<div id="tabs-controller">
|
||||
<ul>
|
||||
<li class="box-shadow active"><a class="text-shadow" href="/author/statics">数据统计</a></li>
|
||||
<li class="box-shadow"><a class="text-shadow" href="/author/statics/ac/md">申请统计</a></li>
|
||||
<li class="box-shadow"><a class="text-shadow" href="/author/statics/ac/time">按时间段统计</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div id="datalist">
|
||||
|
||||
<ul>
|
||||
<?php
|
||||
|
||||
if(isset($this->alldata))
|
||||
{
|
||||
foreach($this->alldata as $v)
|
||||
{
|
||||
echo "<li><p><a target='_blank' href='/data/".$v['uuid']."'>".$v['title']."</a></p><p>点击:".$v['viewed']." | <a href='/author/inauthor/ac/datalist/uuid/".$v['uuid']."'>下载:".$v['down']."</a></p></li>";
|
||||
}
|
||||
}
|
||||
<div class="span9">
|
||||
|
||||
?>
|
||||
<div>
|
||||
<ul class="nav nav-pills">
|
||||
<li class="active"><a href="/author/statics">数据统计</a></li>
|
||||
<li class=""><a href="/author/statics/ac/md">申请统计</a></li>
|
||||
<li class=""><a href="/author/statics/ac/time">按时间段统计</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
</ul>
|
||||
<div>
|
||||
|
||||
<ul class="unstyled">
|
||||
<?php
|
||||
|
||||
if(isset($this->alldata))
|
||||
{
|
||||
foreach($this->alldata as $v)
|
||||
{
|
||||
echo "<li class='well'><p><a target='_blank' href='/data/".$v['uuid']."'>".$v['title']."</a></p><p>点击:".$v['viewed']." | <a href='/author/inauthor/ac/datalist/uuid/".$v['uuid']."'>下载:".$v['down']."</a></p></li>";
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
</ul>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<!-- //页面内容 -->
|
||||
<script>
|
||||
$('#wapper').width($('body').width()-300);
|
||||
</script>
|
||||
</div>
|
|
@ -9,45 +9,40 @@ $this->breadcrumb('<a href="/author">数据作者</a>');
|
|||
$this->breadcrumb('数据版本管理');
|
||||
$this->breadcrumb()->setSeparator(' > ');
|
||||
?>
|
||||
<!-- 左侧导航 -->
|
||||
<div id='sidebar'>
|
||||
<div id='leftnavi'>
|
||||
<?= $this->partial('author/navi.phtml'); ?>
|
||||
<div class="row">
|
||||
<div class="span3">
|
||||
<?= $this->partial('author/navi.phtml'); ?>
|
||||
</div>
|
||||
</div>
|
||||
<!-- //左侧导航 -->
|
||||
|
||||
<!-- 页面内容 -->
|
||||
<div id="wapper">
|
||||
<div id="tabs-controller">
|
||||
<ul>
|
||||
<li class="box-shadow"><a class="text-shadow" href="/author/version/">所有版本概况</a></li>
|
||||
<li class="box-shadow active"><a class="text-shadow" href="/author/version/ac/bydata">逐数据浏览</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<p>请输入元数据标题关键字进行搜索</p>
|
||||
<form id="datasearch" class="search_form" action="/author/version/ac/bydata">
|
||||
<input type="text" id="keyword" name="q" value="<?php if(!empty($this->q)) echo $this->q; ?>" />
|
||||
<button type="submit" class="btn" id="search_btn">搜索</button>
|
||||
</form>
|
||||
<div id="datalist">
|
||||
<?php
|
||||
if (count($this->paginator)):
|
||||
echo "<ul>";
|
||||
$autoindex=0;
|
||||
foreach ($this->paginator as $item):
|
||||
$autoindex++;?>
|
||||
<li>
|
||||
<p><a href="/data/<?php echo $item['uuid'];?>" target="_blank"><?php echo $item['title'];?></a></p>
|
||||
<p>数据库中共有版本数:<?php echo $item['c'];?> (<a href="/author/version/uuid/<?php echo $item['uuid'];?>">查看详细</a>)</p>
|
||||
</li>
|
||||
<?php endforeach;
|
||||
echo "</ul>";
|
||||
endif; ?>
|
||||
<div class="pagenavi"><?= $this->paginator; ?></div>
|
||||
<div class="span9">
|
||||
|
||||
<div>
|
||||
<ul class="nav nav-pills">
|
||||
<li class=""><a href="/author/version/">所有版本概况</a></li>
|
||||
<li class="active"><a href="/author/version/ac/bydata">逐数据浏览</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="input-append">
|
||||
<form id="datasearch" class="search_form" action="/author/version/ac/bydata">
|
||||
<input type="text" id="keyword" name="q" value="<?php if(!empty($this->q)) echo $this->q; ?>" />
|
||||
<button type="submit" class="btn" id="search_btn">搜索</button>
|
||||
</form>
|
||||
</div>
|
||||
<div>
|
||||
<?php
|
||||
if (count($this->paginator)):
|
||||
echo '<ul class="unstyled">';
|
||||
$autoindex=0;
|
||||
foreach ($this->paginator as $item):
|
||||
$autoindex++;?>
|
||||
<li class="well">
|
||||
<p><a href="/data/<?php echo $item['uuid'];?>" target="_blank"><?php echo $item['title'];?></a></p>
|
||||
<p>数据库中共有版本数:<?php echo $item['c'];?> (<a href="/author/version/uuid/<?php echo $item['uuid'];?>">查看详细</a>)</p>
|
||||
</li>
|
||||
<?php endforeach;
|
||||
echo "</ul>";
|
||||
endif; ?>
|
||||
<div class="pagenavi"><?= $this->paginator; ?></div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<!-- //页面内容 -->
|
||||
<script>
|
||||
$('#wapper').width($('body').width()-300);
|
||||
</script>
|
||||
</div>
|
|
@ -12,42 +12,37 @@ $this->breadcrumb('<a href="/author">数据作者</a>');
|
|||
$this->breadcrumb('查看数据作者');
|
||||
$this->breadcrumb()->setSeparator(' > ');
|
||||
?>
|
||||
<!-- 左侧导航 -->
|
||||
<div id='sidebar'>
|
||||
<div id='leftnavi'>
|
||||
<?= $this->partial('author/navi.phtml'); ?>
|
||||
<div class="row">
|
||||
<div class="span3">
|
||||
<?= $this->partial('author/navi.phtml'); ?>
|
||||
</div>
|
||||
<div class="span9">
|
||||
|
||||
<div>
|
||||
<ul class="nav nav-pills">
|
||||
<li><a href="/author/version">所有版本概况</a></li>
|
||||
<li><a href="/author/version/ac/bydata">逐数据浏览</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<?php
|
||||
if(!empty($this->error))
|
||||
{
|
||||
echo $this->error;
|
||||
}
|
||||
else
|
||||
{?>
|
||||
<h2><?php echo $this->info['title'];?></h2>
|
||||
<div id="diffoutput" style="width:100%"> </div>
|
||||
<textarea id="basetext" style="display:none;"><?php echo $this->data[1]['xml'];?></textarea>
|
||||
<textarea id="newtext" style="display:none;"><?php echo $this->data[0]['xml'];?></textarea>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<!-- //左侧导航 -->
|
||||
|
||||
<!-- 页面内容 -->
|
||||
<div id="wapper">
|
||||
<div id="tabs-controller">
|
||||
<ul>
|
||||
<li class="box-shadow"><a class="text-shadow" href="/author/version">所有版本概况</a></li>
|
||||
<li class="box-shadow"><a class="text-shadow" href="/author/version/ac/bydata">逐数据浏览</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<?php
|
||||
if(!empty($this->error))
|
||||
{
|
||||
echo $this->error;
|
||||
}
|
||||
else
|
||||
{?>
|
||||
<h2><?php echo $this->info['title'];?></h2>
|
||||
<div id="diffoutput" style="width:100%"> </div>
|
||||
<textarea id="basetext" style="display:none;"><?php echo $this->data[1]['xml'];?></textarea>
|
||||
<textarea id="newtext" style="display:none;"><?php echo $this->data[0]['xml'];?></textarea>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
|
||||
</div>
|
||||
|
||||
<!-- //页面内容 -->
|
||||
<script>
|
||||
$('#wapper').width($('body').width()-300);
|
||||
function diffUsingJS() {
|
||||
var base = difflib.stringAsLines($('#basetext').val());
|
||||
var newtxt = difflib.stringAsLines($('#newtext').val());
|
||||
|
|
|
@ -2,66 +2,61 @@
|
|||
$this->headTitle($this->config->title->site);
|
||||
$this->headTitle($this->config->title->author);
|
||||
$this->headTitle()->setSeparator(' - ');
|
||||
$this->headScript()->appendFile('/js/jquery-1.7.min.js');
|
||||
$this->headScript()->appendFile('/js/jquery.colorbox-min.js');
|
||||
$this->theme->AppendPlus($this,'colorbox');
|
||||
$this->headLink()->appendStylesheet('/css/author.css');
|
||||
$this->headLink()->appendStylesheet('/css/colorbox.css');
|
||||
$this->breadcrumb('<a href="/">首页</a>');
|
||||
$this->breadcrumb('<a href="/author">数据作者</a>');
|
||||
$this->breadcrumb('数据版本管理');
|
||||
$this->breadcrumb()->setSeparator(' > ');
|
||||
?>
|
||||
<!-- 左侧导航 -->
|
||||
<div id='sidebar'>
|
||||
<div id='leftnavi'>
|
||||
<?= $this->partial('author/navi.phtml'); ?>
|
||||
<div class="row">
|
||||
<div class="span3">
|
||||
<?= $this->partial('author/navi.phtml'); ?>
|
||||
</div>
|
||||
<div class="span9">
|
||||
|
||||
<div>
|
||||
<ul class="nav nav-pills">
|
||||
<li class="<?php if(!$this->mdtitle) echo "active";?>"><a class="" href="/author/version">所有版本概况</a></li>
|
||||
<li class=""><a class="" href="/author/version/ac/bydata">逐数据浏览</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<?php
|
||||
if (count($this->paginator)):
|
||||
if ($this->mdtitle) echo "<h2>元数据:".$this->mdtitle."</h2>";
|
||||
echo '<ul class="unstyled">';
|
||||
$autoindex=0;
|
||||
foreach ($this->paginator as $item):
|
||||
$autoindex++;?>
|
||||
<li class="well" id="list_<?php echo $item['id'];?>">
|
||||
<p><a href="/data/<?php echo $item['uuid'];?>" target="_blank"><?php echo $item['title'];?></a>
|
||||
【<a href="/author/version/uuid/<?php echo $item['uuid']; ?>">查看此数据所有版本</a>】</p>
|
||||
<p>版本创建时间: <?php echo date("Y-m-d H:i",strtotime($item['ts_created']));?>
|
||||
<?php if ($item['userid']) :
|
||||
echo "发布人: ".(empty($item['realname'])?$item['username']:$item['realname'])." 【";
|
||||
else :
|
||||
?>
|
||||
【<a onclick="return confirm('是否确定删除该版本?');" href="javascript:action('delete','<?php echo $item['id'];?>');" class="more">删除</a>
|
||||
<?php endif; ?>
|
||||
<a onclick="return confirm('是否确定将这个版本恢复到geonetwork?');" href="javascript:action('restore','<?php echo $item['id'];?>');" class="more">恢复到geonetwork</a>
|
||||
<a href="/author/version/ac/diff/id/<?php echo $item['id'];?>" class="more">与前一版对比</a>
|
||||
<a onclick="$('#commit_submit').attr('onclick','commit(\'<?php echo $item['id'];?>\');');" href="#commitform" class="more inline">提交评审发布</a>
|
||||
】</p>
|
||||
<?php if ($item['changelog']) : ?>
|
||||
<p><?php echo $item['changelog']; ?></p>
|
||||
<?php endif; ?>
|
||||
</li>
|
||||
<?php endforeach;
|
||||
echo "</ul>";
|
||||
endif; ?>
|
||||
<div class="pagenavi"><?= $this->paginator; ?></div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<!-- //左侧导航 -->
|
||||
|
||||
<!-- 页面内容 -->
|
||||
<div id="wapper">
|
||||
<div id="tabs-controller">
|
||||
<ul>
|
||||
<li class="box-shadow <?php if(!$this->mdtitle) echo "active";?>"><a class="text-shadow" href="/author/version">所有版本概况</a></li>
|
||||
<li class="box-shadow"><a class="text-shadow" href="/author/version/ac/bydata">逐数据浏览</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div id="datalist">
|
||||
<?php
|
||||
if (count($this->paginator)):
|
||||
if ($this->mdtitle) echo "<h2>元数据:".$this->mdtitle."</h2>";
|
||||
echo "<ul>";
|
||||
$autoindex=0;
|
||||
foreach ($this->paginator as $item):
|
||||
$autoindex++;?>
|
||||
<li id="list_<?php echo $item['id'];?>">
|
||||
<p><a href="/data/<?php echo $item['uuid'];?>" target="_blank"><?php echo $item['title'];?></a>
|
||||
【<a href="/author/version/uuid/<?php echo $item['uuid']; ?>">查看此数据所有版本</a>】</p>
|
||||
<p>版本创建时间: <?php echo date("Y-m-d H:i",strtotime($item['ts_created']));?>
|
||||
<?php if ($item['userid']) :
|
||||
echo "发布人: ".(empty($item['realname'])?$item['username']:$item['realname'])." 【";
|
||||
else :
|
||||
?>
|
||||
【<a onclick="return confirm('是否确定删除该版本?');" href="javascript:action('delete','<?php echo $item['id'];?>');" class="more">删除</a>
|
||||
<?php endif; ?>
|
||||
<a onclick="return confirm('是否确定将这个版本恢复到geonetwork?');" href="javascript:action('restore','<?php echo $item['id'];?>');" class="more">恢复到geonetwork</a>
|
||||
<a href="/author/version/ac/diff/id/<?php echo $item['id'];?>" class="more">与前一版对比</a>
|
||||
<a onclick="$('#commit_submit').attr('onclick','commit(\'<?php echo $item['id'];?>\');');" href="#commitform" class="more inline">提交评审发布</a>
|
||||
】</p>
|
||||
<?php if ($item['changelog']) : ?>
|
||||
<p><?php echo $item['changelog']; ?></p>
|
||||
<?php endif; ?>
|
||||
</li>
|
||||
<?php endforeach;
|
||||
echo "</ul>";
|
||||
endif; ?>
|
||||
<div class="pagenavi"><?= $this->paginator; ?></div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- //页面内容 -->
|
||||
<script>
|
||||
$('#wapper').width($('body').width()-300);
|
||||
function action(ac,id){
|
||||
$.ajax({
|
||||
'type':"POST",
|
||||
|
@ -97,7 +92,7 @@ function commit(id){
|
|||
<form>
|
||||
<p>
|
||||
<label>版本改动:</label><br />
|
||||
<textarea class="full" style="resize:none;height:200px;" id="changelog"></textarea>
|
||||
<textarea class="span6" style="resize:none;height:200px;" id="changelog"></textarea>
|
||||
<br /><small>请输入此版本与之前版本的差别</small>
|
||||
</p>
|
||||
<input type="button" onclick="" id="commit_submit" class="btn btn-green big" value="提交"/>
|
||||
|
|
|
@ -1,48 +1,41 @@
|
|||
<?php
|
||||
$this->headTitle($this->config->title->site);
|
||||
$this->headTitle($this->config->title->author);
|
||||
$this->headTitle()->setSeparator(' - ');
|
||||
$this->headScript()->appendFile('/js/jquery-1.7.min.js');
|
||||
$this->headLink()->appendStylesheet('/css/author.css');
|
||||
$this->breadcrumb('<a href="/">首页</a>');
|
||||
$this->breadcrumb('<a href="/author">数据作者</a>');
|
||||
$this->breadcrumb('查看数据作者');
|
||||
$this->breadcrumb()->setSeparator(' > ');
|
||||
?>
|
||||
<!-- 左侧导航 -->
|
||||
<div id='sidebar'>
|
||||
<div id='leftnavi'>
|
||||
<?= $this->partial('author/navi.phtml'); ?>
|
||||
</div>
|
||||
</div>
|
||||
<!-- //左侧导航 -->
|
||||
|
||||
<!-- 页面内容 -->
|
||||
<div id="wapper">
|
||||
<?php
|
||||
if(!empty($this->error))
|
||||
{
|
||||
echo $this->error;
|
||||
}
|
||||
?>
|
||||
<div id="datalist">
|
||||
<?php
|
||||
if (count($this->paginator)):
|
||||
echo "<ul>";
|
||||
$autoindex=0;
|
||||
foreach ($this->paginator as $item):
|
||||
$autoindex++;?>
|
||||
<li>
|
||||
<p><?php echo $item['realname'];?> (<?php echo $item['email'];?>)</p>
|
||||
<p>单位:<?php echo $item['unit'];?></p>
|
||||
</li>
|
||||
<?php endforeach;
|
||||
echo "</ul>";
|
||||
endif; ?>
|
||||
</div>
|
||||
<div class="pagenavi"><?= $this->paginator; ?></div>
|
||||
</div>
|
||||
<!-- //页面内容 -->
|
||||
<script>
|
||||
$('#wapper').width($('body').width()-300);
|
||||
</script>
|
||||
<?php
|
||||
$this->headTitle($this->config->title->site);
|
||||
$this->headTitle($this->config->title->author);
|
||||
$this->headTitle()->setSeparator(' - ');
|
||||
$this->headLink()->appendStylesheet('/css/author.css');
|
||||
$this->breadcrumb('<a href="/">首页</a>');
|
||||
$this->breadcrumb('<a href="/author">数据作者</a>');
|
||||
$this->breadcrumb('查看数据作者');
|
||||
$this->breadcrumb()->setSeparator(' > ');
|
||||
?>
|
||||
<div class="row">
|
||||
<div class="span3">
|
||||
<?= $this->partial('author/navi.phtml'); ?>
|
||||
</div>
|
||||
<div class="span9">
|
||||
|
||||
<?php
|
||||
if(!empty($this->error))
|
||||
{
|
||||
echo $this->error;
|
||||
}
|
||||
?>
|
||||
<h3><a href="/data/<?php echo $this->datas[0]['uuid']; ?>"><?php echo $this->datas[0]['title']; ?></a> </h3>
|
||||
<div class="well">
|
||||
<?php
|
||||
if (count($this->paginator)):
|
||||
echo "<ul>";
|
||||
$autoindex=0;
|
||||
foreach ($this->paginator as $item):
|
||||
$autoindex++;?>
|
||||
<li>
|
||||
<p><?php echo $item['realname'];?> (<?php echo $item['email'];?>)</p>
|
||||
<p>单位:<?php echo $item['unit'];?></p>
|
||||
</li>
|
||||
<?php endforeach;
|
||||
echo "</ul>";
|
||||
endif; ?>
|
||||
</div>
|
||||
<div class="pagenavi"><?= $this->paginator; ?></div>
|
||||
</div>
|
||||
</div>
|
|
@ -1,99 +1,94 @@
|
|||
<?php
|
||||
$this->headTitle($this->config->title->site);
|
||||
$this->headTitle($this->config->title->author);
|
||||
$this->headTitle()->setSeparator(' - ');
|
||||
$this->headScript()->appendFile('/js/jquery-1.7.min.js');
|
||||
$this->headLink()->appendStylesheet('/css/author.css');
|
||||
$this->breadcrumb('<a href="/">首页</a>');
|
||||
$this->breadcrumb('<a href="/author">数据作者</a>');
|
||||
$this->breadcrumb('查看数据申请记录');
|
||||
$this->breadcrumb()->setSeparator(' > ');
|
||||
?>
|
||||
<!-- 左侧导航 -->
|
||||
<div id='sidebar'>
|
||||
<div id='leftnavi'>
|
||||
<?= $this->partial('author/navi.phtml'); ?>
|
||||
</div>
|
||||
</div>
|
||||
<!-- //左侧导航 -->
|
||||
|
||||
<!-- 页面内容 -->
|
||||
<div id="wapper">
|
||||
<?php
|
||||
if(!empty($this->error))
|
||||
{
|
||||
echo $this->error;
|
||||
}
|
||||
<?php
|
||||
$this->headTitle($this->config->title->site);
|
||||
$this->headTitle($this->config->title->author);
|
||||
$this->headTitle()->setSeparator(' - ');
|
||||
$this->headLink()->appendStylesheet('/css/author.css');
|
||||
$this->breadcrumb('<a href="/">首页</a>');
|
||||
$this->breadcrumb('<a href="/author">数据作者</a>');
|
||||
$this->breadcrumb('查看数据申请记录');
|
||||
$this->breadcrumb()->setSeparator(' > ');
|
||||
?>
|
||||
<div class="row">
|
||||
<div class="span3">
|
||||
<?= $this->partial('author/navi.phtml'); ?>
|
||||
</div>
|
||||
<div class="span9">
|
||||
<?php
|
||||
if(!empty($this->error))
|
||||
{
|
||||
echo $this->error;
|
||||
}
|
||||
?>
|
||||
<div id="tabs-controller">
|
||||
<ul>
|
||||
<li class="box-shadow"><a class="text-shadow" href="/author/inauthor/ac/online">在线下载记录</a></li>
|
||||
<li class="box-shadow"><a class="text-shadow" href="/author/inauthor/ac/offline">离线申请记录</a></li>
|
||||
<li class="box-shadow active"><a class="text-shadow" href="/author/inauthor/ac/datalist">按数据查看</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div id="datalist">
|
||||
<?php
|
||||
<div>
|
||||
<ul class="nav nav-pills">
|
||||
<li><a href="/author/inauthor/ac/online">在线下载记录</a></li>
|
||||
<li><a href="/author/inauthor/ac/offline">离线申请记录</a></li>
|
||||
<li class="active"><a href="/author/inauthor/ac/datalist">按数据查看</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div>
|
||||
<?php
|
||||
if (count($this->paginator)):
|
||||
echo "<h2>申请记录:".$this->mdtitle."</h2>";
|
||||
echo "<ul>";
|
||||
$autoindex=0;
|
||||
foreach ($this->paginator as $item):
|
||||
$autoindex++;
|
||||
if(!empty($item['offa_id'])) :
|
||||
?>
|
||||
<li>
|
||||
echo "<h2>申请记录:".$this->mdtitle."</h2>";
|
||||
echo '<ul class="unstyled">';
|
||||
$autoindex=0;
|
||||
foreach ($this->paginator as $item):
|
||||
$autoindex++;
|
||||
if(!empty($item['offa_id'])) :
|
||||
?>
|
||||
<li class="well well-small">
|
||||
<p>【离线申请】<?php echo $item['offa_name'];?> (<?php echo $item['offa_email'];?>)</p>
|
||||
<p>申请时间:<?php echo $item['offa_tscreated'];?></p>
|
||||
<p>单位:<?php echo $item['offa_unit'];?></p>
|
||||
<p>项目:<?php echo $item['offa_project'];?></p>
|
||||
<p><span id="ct_<?php echo $item['doid'];?>">
|
||||
<?php if($item['status']==4): echo $item['btns']; endif;?> </span><span id="data_<?php echo $item['doid'];?>"></span></p>
|
||||
</li>
|
||||
<?php
|
||||
endif;
|
||||
if(!empty($item['ona_id'])):
|
||||
?>
|
||||
<li>
|
||||
<p>申请时间:<?php echo $item['offa_tscreated'];?></p>
|
||||
<p>单位:<?php echo $item['offa_unit'];?></p>
|
||||
<p>项目:<?php echo $item['offa_project'];?></p>
|
||||
<p><span id="ct_<?php echo $item['doid'];?>">
|
||||
<?php if($item['status']==4): echo $item['btns']; endif;?> </span><span id="data_<?php echo $item['doid'];?>"></span></p>
|
||||
</li>
|
||||
<?php
|
||||
endif;
|
||||
if(!empty($item['ona_id'])):
|
||||
?>
|
||||
<li class="well well-small">
|
||||
<p>【在线下载记录】<?php echo $item['ona_name'];?> (<?php echo $item['ona_email'];?>)</p>
|
||||
<p>申请时间:<?php echo $item['ona_tscreated'];?></p>
|
||||
<p>单位:<?php echo $item['ona_unit'];?></p>
|
||||
<p>项目:<?php echo $item['ona_project'];?></p>
|
||||
</li>
|
||||
<?php
|
||||
endif;
|
||||
|
||||
endforeach;
|
||||
echo "</ul>";
|
||||
endif; ?>
|
||||
</div>
|
||||
<div class="pagenavi"><?= $this->paginator; ?></div>
|
||||
</div>
|
||||
<!-- //页面内容 -->
|
||||
<script>
|
||||
$('#wapper').width($('body').width()-300);
|
||||
function confirm(uuid,oid){
|
||||
doPD(uuid,"confirm",oid);
|
||||
}
|
||||
function objection(uuid,oid){
|
||||
doPD(uuid,"objection",oid);
|
||||
}
|
||||
function doPD(uuid,pr,oid){
|
||||
$.ajax({
|
||||
'type':"POST",
|
||||
'url':'/author/inauthor/ac/offline',
|
||||
'data':'pr='+ pr +'&uuid='+uuid+'&oid='+oid,
|
||||
'success':function(html){
|
||||
$('#ct_'+oid).html(html);$('#data_'+oid).html('');
|
||||
},
|
||||
'beforeSend':function(){
|
||||
$('#data_'+oid).html('<img src="/images/ajax-load-small.gif" />正在处理...');
|
||||
},
|
||||
'timeout': 20000,
|
||||
'error': function(){
|
||||
alert('处理中出现问题,请重试');
|
||||
$('#data_'+oid).html('');
|
||||
}
|
||||
});
|
||||
}
|
||||
<p>申请时间:<?php echo $item['ona_tscreated'];?></p>
|
||||
<p>单位:<?php echo $item['ona_unit'];?></p>
|
||||
<p>项目:<?php echo $item['ona_project'];?></p>
|
||||
</li>
|
||||
<?php
|
||||
endif;
|
||||
|
||||
endforeach;
|
||||
echo "</ul>";
|
||||
endif; ?>
|
||||
</div>
|
||||
<div class="pagenavi"><?= $this->paginator; ?></div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- //页面内容 -->
|
||||
<script>
|
||||
$('#wapper').width($('body').width()-300);
|
||||
function confirm(uuid,oid){
|
||||
doPD(uuid,"confirm",oid);
|
||||
}
|
||||
function objection(uuid,oid){
|
||||
doPD(uuid,"objection",oid);
|
||||
}
|
||||
function doPD(uuid,pr,oid){
|
||||
$.ajax({
|
||||
'type':"POST",
|
||||
'url':'/author/inauthor/ac/offline',
|
||||
'data':'pr='+ pr +'&uuid='+uuid+'&oid='+oid,
|
||||
'success':function(html){
|
||||
$('#ct_'+oid).html(html);$('#data_'+oid).html('');
|
||||
},
|
||||
'beforeSend':function(){
|
||||
$('#data_'+oid).html('<img src="/images/ajax-load-small.gif" />正在处理...');
|
||||
},
|
||||
'timeout': 20000,
|
||||
'error': function(){
|
||||
alert('处理中出现问题,请重试');
|
||||
$('#data_'+oid).html('');
|
||||
}
|
||||
});
|
||||
}
|
||||
</script>
|
|
@ -1,107 +1,211 @@
|
|||
<?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/metadata.css');
|
||||
$this->headLink()->appendStylesheet('/css/search.css');
|
||||
$this->breadcrumb('<a href="/">首页</a>');
|
||||
$this->breadcrumb('<a href="/data">'.$this->config->title->data.'</a>');
|
||||
$this->breadcrumb('高级搜索');
|
||||
$this->breadcrumb()->setSeparator(' > ');
|
||||
$this->headScript()->appendFile('http://maps.google.cn/maps?file=api&v=2&key='.$this->config->google->maps->api);
|
||||
?>
|
||||
<div id='tools'>
|
||||
<?= $this->partial('data/tools.phtml'); ?>
|
||||
</div>
|
||||
<?php if (!empty($this->metadata)) :
|
||||
echo $this->page->getNavigation();?>
|
||||
<hr />
|
||||
|
||||
<?php
|
||||
foreach($this->metadata as $md) : ?>
|
||||
<div class="mditem">
|
||||
<div class="thumb"><img src="/service/thumb/id/<?php echo $md['id'];?>" /></div>
|
||||
<h2><a href="/data/<?php echo $md['uuid'];?>"><?php echo $this->escape($md['title']);?></a>
|
||||
</h2>
|
||||
<span><?php echo mb_strlen($md['description'])>400?$this->escape(mb_substr($md['description'],0,400,'UTF-8').'...'):$this->escape($md['description']);?></span>
|
||||
</div>
|
||||
<?php endforeach; ?>
|
||||
<?php echo $this->page->getNavigation();?>
|
||||
<?php else: ?>
|
||||
<script src="/js/dragzoom.js" type="text/javascript"></script>
|
||||
<div id="map"></div>
|
||||
<div id="spatial">
|
||||
<form id="search" enctype="application/x-www-form-urlencoded" action="/data/advancesearch" method="post">
|
||||
<fieldset><legend>时间范围</legend><ul>
|
||||
<li><span>开始时间:</span>
|
||||
<input name="start" type="text" id="start" />
|
||||
</li>
|
||||
<li><span>结束时间:</span>
|
||||
<input name="end" type="text" id="end" />
|
||||
</li></ul></fieldset>
|
||||
<fieldset><legend>空间范围</legend><ul>
|
||||
<li><span>东:</span>
|
||||
|
||||
<input name="e" id="e" type="text" /></li>
|
||||
<li><span>南:</span>
|
||||
<input name="s" id="s" type="text" /></li>
|
||||
<li><span>西:</span>
|
||||
<input name="w" id="w" type="text" /></li>
|
||||
<li><span>北:</span>
|
||||
<input name="n" id="n" type="text" /></li></ul></fieldset>
|
||||
<span>关键词:</span><input name="q" id="q" type="text" />
|
||||
<input id="search" type="submit" value="搜索" onclick="dosubmit()" />
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<script type="text/javascript">
|
||||
function dosubmit()
|
||||
{
|
||||
theForm.action="/data/advancesearch";
|
||||
}
|
||||
</script>
|
||||
<script type="text/javascript">
|
||||
var map = new GMap2(document.getElementById("map"));
|
||||
map.setCenter(new GLatLng(36, 103.5, 5));
|
||||
map.addControl(new GSmallMapControl());
|
||||
map.addControl(new GMapTypeControl());
|
||||
map.setMapType(G_HYBRID_MAP);
|
||||
var txte=document.getElementById("e");
|
||||
var txtw=document.getElementById("w");
|
||||
var txtn=document.getElementById("n");
|
||||
var txts=document.getElementById("s");
|
||||
/* first set of options is for the visual overlay.*/
|
||||
var boxStyleOpts = {
|
||||
opacity: .2,
|
||||
border: "2px solid red"
|
||||
}
|
||||
|
||||
/* second set of options is for everything else */
|
||||
var otherOpts = {
|
||||
buttonHTML: "<img src='/images/zoom-button.gif' />",
|
||||
buttonZoomingHTML: "<img src='/images/zoom-button-activated.gif' />",
|
||||
buttonStartingStyle: {width: '24px', height: '24px'}
|
||||
};
|
||||
|
||||
/* third set of options specifies callbacks */
|
||||
var callbacks = {
|
||||
dragend: function(nw,ne,se,sw,nwpx,nepx,sepx,swpx){txte.value=ne.lng();txtn.value=ne.lat();txts.value=sw.lat();txtw.value=sw.lng();}
|
||||
};
|
||||
|
||||
map.addControl(new DragZoomControl(boxStyleOpts, otherOpts, callbacks));
|
||||
</script>
|
||||
|
||||
<div id="help">
|
||||
<fieldset><legend>搜索说明</legend><ul><li>关键词:您可以使用一个关键词,比如“沙漠”,也可以使用多个关键词,中间用空格分开。</li>
|
||||
<li>空间范围:这是以度为单位的十进制数字。比如,东经125度30分,可以输入为125.5。您也可以通过下面的在线地图工具直接在图上拉框选择一个范围,空间坐标会自动转换到文本框中。</li>
|
||||
<li>时间范围:指数据的时间范围,从开始时间到结束时间,若结束时间不填,则是一个时间点。时间格式为YYYY-MM-DD。</li>
|
||||
<li>还不清楚?您可以到<a href="http://forum.westgis.ac.cn/viewforum.php?f=30">论坛</a>提问。</li>
|
||||
</ul></fieldset>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<?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/metadata.css');
|
||||
$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,'google_map_keydragzone');
|
||||
$this->theme->AppendPlus($this,'jquery_ui');
|
||||
$this->theme->AppendPlus($this,'colorbox');
|
||||
?>
|
||||
<div>
|
||||
<?= $this->partial('data/tools.phtml'); ?>
|
||||
</div>
|
||||
<?php if (!empty($this->metadata)) :
|
||||
echo $this->page->getNavigation();?>
|
||||
<hr />
|
||||
|
||||
<?php
|
||||
foreach($this->metadata as $md) : ?>
|
||||
<div class="mditem">
|
||||
<div class="thumb"><img src="/service/thumb/id/<?php echo $md['id'];?>" /></div>
|
||||
<h2><a href="/data/<?php echo $md['uuid'];?>"><?php echo $this->escape($md['title']);?></a>
|
||||
</h2>
|
||||
<span><?php echo mb_strlen($md['description'])>400?$this->escape(mb_substr($md['description'],0,400,'UTF-8').'...'):$this->escape($md['description']);?></span>
|
||||
</div>
|
||||
<?php endforeach; ?>
|
||||
<?php echo $this->page->getNavigation();?>
|
||||
<?php else: ?>
|
||||
|
||||
<div class="row">
|
||||
<div class="span8" id="map_canvas" style="height:500px;"></div>
|
||||
<div class="span4">
|
||||
<form id="search" enctype="application/x-www-form-urlencoded" action="/data/advancesearch" method="post">
|
||||
<fieldset><legend>时间范围</legend>
|
||||
<label>
|
||||
开始时间
|
||||
<input name="start" type="text" id="start" />
|
||||
</label>
|
||||
<label>
|
||||
结束时间
|
||||
<input name="end" type="text" id="end" />
|
||||
</label>
|
||||
</fieldset>
|
||||
<fieldset><legend>空间范围(按住shift键,在地图上拉框)</legend>
|
||||
<label>东
|
||||
<input name="e" id="e" type="text" /></label>
|
||||
<label>南
|
||||
<input name="s" id="s" type="text" /></label>
|
||||
<label>西
|
||||
<input name="w" id="w" type="text" /></label>
|
||||
<label>北
|
||||
<input name="n" id="n" type="text" /></label>
|
||||
</fieldset>
|
||||
<label>关键词
|
||||
<input name="q" id="q" type="text" /></label>
|
||||
<button id="search" class="btn btn-large btn-block btn-primary" type="submit" value="" onclick="dosubmit()" ><i class="icon-search"></i>搜索</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script type="text/javascript">
|
||||
$(function() {
|
||||
//Google map (不启用预先加载)
|
||||
google.maps.event.addDomListener(window, 'load', initialize);
|
||||
//jquery ui datepicker
|
||||
$("#start").datepicker({dateFormat:"yy-mm-dd"});
|
||||
$("#end").datepicker({dateFormat:"yy-mm-dd"});
|
||||
});
|
||||
// Google Map Part
|
||||
var map = null;
|
||||
var mapElementID = "map_canvas";
|
||||
var bounds = null;
|
||||
var rectangle = null;
|
||||
var input = {east:'#e',west:'#w',north:'#n',south:'#s'};
|
||||
|
||||
function initialize() {
|
||||
//加载地图
|
||||
var myLatlng = new google.maps.LatLng(35.656456,105.819946);
|
||||
var myOptions = {
|
||||
zoom: 3,
|
||||
center: myLatlng,
|
||||
mapTypeId: google.maps.MapTypeId.ROADMAP
|
||||
}
|
||||
map = new google.maps.Map(document.getElementById(mapElementID), myOptions);
|
||||
|
||||
//Keydragzone
|
||||
map.enableKeyDragZoom({
|
||||
key: "shift",
|
||||
boxStyle: {
|
||||
border: "1px dashed black",
|
||||
backgroundColor: "transparent",
|
||||
opacity: 1.0
|
||||
},
|
||||
veilStyle: {
|
||||
backgroundColor: "white",
|
||||
opacity: 0.35,
|
||||
cursor: "crosshair"
|
||||
}
|
||||
});
|
||||
|
||||
var dz = map.getDragZoomObject();
|
||||
google.maps.event.addListener(dz, 'dragstart', function (latlng) {
|
||||
RemoveRectangle();
|
||||
//console.dir(latlng);
|
||||
});
|
||||
google.maps.event.addListener(dz, 'dragend', function (latlng) {
|
||||
MapValueChange(latlng.fa.d,latlng.Z.d,latlng.fa.b,latlng.Z.b);
|
||||
setRectangle(latlng.fa.d,latlng.fa.b,latlng.Z.b,latlng.Z.d);
|
||||
//console.dir(latlng);
|
||||
});
|
||||
|
||||
InputValueChange();
|
||||
|
||||
}
|
||||
|
||||
function setRectangle(east,west,south,north){
|
||||
|
||||
bounds = new google.maps.LatLngBounds(
|
||||
new google.maps.LatLng(south,west),
|
||||
new google.maps.LatLng(north,east)
|
||||
);
|
||||
|
||||
rectangle = new google.maps.Rectangle({
|
||||
bounds: bounds,
|
||||
editable: true
|
||||
});
|
||||
|
||||
rectangle.setMap(map);
|
||||
|
||||
google.maps.event.addListener(rectangle, 'bounds_changed', function () {
|
||||
var latlng = rectangle.getBounds();
|
||||
MapValueChange(latlng.fa.d,latlng.Z.d,latlng.fa.b,latlng.Z.b);
|
||||
//console.dir(latlng);
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
function RemoveRectangle(){
|
||||
if(rectangle != null)
|
||||
{
|
||||
rectangle.setMap(null);
|
||||
rectangle = null;
|
||||
}
|
||||
}
|
||||
|
||||
function MapValueChange(east,north,west,south){
|
||||
$(input.east).val(east);
|
||||
$(input.north).val(north);
|
||||
$(input.west).val(west);
|
||||
$(input.south).val(south);
|
||||
}
|
||||
|
||||
function InputValueChange(){
|
||||
if(MapInputValueCheck() == true)
|
||||
{
|
||||
if(rectangle == null)
|
||||
{
|
||||
setRectangle($(input.east).val(),$(input.west).val(),$(input.south).val(),$(input.north).val());
|
||||
}else{
|
||||
var reSetBounds = new google.maps.LatLngBounds(
|
||||
new google.maps.LatLng($(input.south).val(),$(input.west).val()),
|
||||
new google.maps.LatLng($(input.north).val(),$(input.east).val())
|
||||
);
|
||||
rectangle.setBounds(reSetBounds);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function MapInputValueCheck()
|
||||
{
|
||||
if($(input.east).val() != "" && $(input.west).val() != "" && $(input.north).val() != "" && $(input.south).val() != "")
|
||||
{
|
||||
return true;
|
||||
}else{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
$(input.east).bind('blur',InputValueChange);
|
||||
$(input.west).bind('blur',InputValueChange);
|
||||
$(input.north).bind('blur',InputValueChange);
|
||||
$(input.south).bind('blur',InputValueChange);
|
||||
|
||||
// Google map Part --End
|
||||
|
||||
|
||||
function Alert(content){
|
||||
$.colorbox({innerWidth:'40%',html:'<div style="line-height:30px;font-size:16px;">'+ content +'</div>'});
|
||||
}
|
||||
|
||||
function dosubmit() {
|
||||
theForm.action="/data/advancesearch";
|
||||
}
|
||||
</script>
|
||||
<div id="help">
|
||||
<fieldset><legend>搜索说明</legend><ul><li>关键词:您可以使用一个关键词,比如“沙漠”,也可以使用多个关键词,中间用空格分开。</li>
|
||||
<li>空间范围:这是以度为单位的十进制数字。比如,东经125度30分,可以输入为125.5。您也可以通过下面的在线地图工具直接在图上拉框选择一个范围,空间坐标会自动转换到文本框中。</li>
|
||||
<li>时间范围:指数据的时间范围,从开始时间到结束时间,若结束时间不填,则是一个时间点。时间格式为YYYY-MM-DD。</li>
|
||||
<li>还不清楚?您可以到<a href="http://forum.westgis.ac.cn/viewforum.php?f=30">论坛</a>提问。</li>
|
||||
</ul></fieldset>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<?php endif; ?>
|
|
@ -1,25 +1,28 @@
|
|||
<?php
|
||||
$this->headTitle($this->config->title->site);
|
||||
$this->headTitle($this->config->title->data);
|
||||
$this->headTitle('全部浏览');
|
||||
$this->headTitle()->setSeparator(' - ');
|
||||
$this->headLink()->appendStylesheet('/css/metadata.css');
|
||||
$this->breadcrumb('<a href="/">首页</a>');
|
||||
$this->breadcrumb('<a href="/data">'.$this->config->title->data.'</a>');
|
||||
$this->breadcrumb('浏览');
|
||||
$this->breadcrumb()->setSeparator(' > ');
|
||||
?>
|
||||
<div id='tools'>
|
||||
<?= $this->partial('data/tools.phtml'); ?>
|
||||
</div>
|
||||
<?php echo $this->page->getNavigation(); ?>
|
||||
<hr />
|
||||
<?php foreach($this->metadata as $md) : ?>
|
||||
<div class="mditem">
|
||||
<div class="thumb"><img src="/service/thumb/id/<?php echo $md['id'];?>" /></div>
|
||||
<h2><a href="/data/<?php echo $md['uuid'];?>"><?php echo $this->escape($md['title']);?></a>
|
||||
</h2>
|
||||
<div class="summary"><?php echo str_replace(array("\r\n", "\n", "\r"),'<br />',mb_strlen($md['description'])>400?$this->escape(mb_substr($md['description'],0,400,'UTF-8').'...'):$this->escape($md['description']));?></div>
|
||||
</div>
|
||||
<?php endforeach; ?>
|
||||
<?php
|
||||
$this->headTitle($this->config->title->site);
|
||||
$this->headTitle($this->config->title->data);
|
||||
$this->headTitle('全部浏览');
|
||||
$this->headTitle()->setSeparator(' - ');
|
||||
$this->headLink()->appendStylesheet('/css/metadata.css');
|
||||
$this->breadcrumb('<a href="/">首页</a>');
|
||||
$this->breadcrumb('<a href="/data">'.$this->config->title->data.'</a>');
|
||||
$this->breadcrumb('浏览');
|
||||
$this->breadcrumb()->setSeparator(' > ');
|
||||
?>
|
||||
<div class="row-fluid">
|
||||
<?= $this->partial('data/tools.phtml'); ?>
|
||||
</div>
|
||||
<?php echo $this->page->getNavigation(); ?>
|
||||
<hr />
|
||||
<?php foreach($this->metadata as $md) : ?>
|
||||
<div class="media well well-small">
|
||||
<a class="pull-left" href="#">
|
||||
<img class="media-object" src="/service/thumb/id/<?php echo $md['id'];?>" data-src="holder.js/128x128">
|
||||
</a>
|
||||
<div class="media-body">
|
||||
<h4 class="media-heading"><a href="/data/<?php echo $md['uuid'];?>"><?php echo $this->escape($md['title']);?></a></h4>
|
||||
<div class="summary"><?php echo str_replace(array("\r\n", "\n", "\r"),'<br />',mb_strlen($md['description'])>400?$this->escape(mb_substr($md['description'],0,400,'UTF-8').'...'):$this->escape($md['description']));?></div>
|
||||
</div>
|
||||
</div>
|
||||
<?php endforeach; ?>
|
||||
<?php echo $this->page->getNavigation(); ?>
|
|
@ -4,39 +4,41 @@
|
|||
$this->headTitle('分类浏览');
|
||||
if (!empty($this->codename)) $this->headTitle($this->codename);
|
||||
$this->headTitle()->setSeparator(' - ');
|
||||
$this->headLink()->appendStylesheet('/css/metadata.css');
|
||||
$this->breadcrumb('<a href="/">首页</a>');
|
||||
$this->breadcrumb('<a href="/data">'.$this->config->title->data.'</a>');
|
||||
$this->breadcrumb('<a href="/data/category">分类浏览</a>');
|
||||
if (!empty($this->codename)) $this->breadcrumb($this->codename);
|
||||
$this->breadcrumb()->setSeparator(' > ');
|
||||
?>
|
||||
<div id='tools'>
|
||||
<?= $this->partial('data/tools.phtml'); ?>
|
||||
<div class="row-fluid">
|
||||
<?= $this->partial('data/tools.phtml'); ?>
|
||||
</div>
|
||||
|
||||
<div id='leftnav'>
|
||||
<fieldset><legend>数据集类别</legend>
|
||||
<ul>
|
||||
<?php foreach($this->category as $cg) : ?>
|
||||
<li><a href='/data/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></fieldset>
|
||||
<div class="row-fluid">
|
||||
<h4>数据集类别</h4>
|
||||
<ul class="nav nav-pills">
|
||||
<?php foreach($this->category as $cg) : ?>
|
||||
<li <?php if (!empty($this->metadata)) : if($cg['name'] == $this->codename || $cg['name_zh'] == $this->codename ){?> class="active" <?php } endif; ?>>
|
||||
<a href='/data/category/code/<?php echo $cg['code']; ?>'><?php (empty($cg['name_zh']))?print($cg['name']):print($cg['name_zh']); ?>
|
||||
<span class="note">(<?php echo $cg['count']; ?>)</span></a></li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
</div>
|
||||
<?php if (!empty($this->metadata)) : ?>
|
||||
<div id='metacontent'>
|
||||
<h1>当前浏览:<?php echo $this->codename; ?></h1>
|
||||
<?php echo $this->page->getNavigation(); ?>
|
||||
<hr />
|
||||
<?php foreach($this->metadata as $md) : ?>
|
||||
<div class="mditem">
|
||||
<div class="thumb"><img src="/service/thumb/id/<?php echo $md['id'];?>" /></div>
|
||||
<h2><a href="/data/<?php echo $md['uuid']; ?>"><?php echo $this->escape($md['title']);?></a>
|
||||
|
||||
</h2>
|
||||
<span><?php echo mb_strlen($md['description'])>400?$this->escape(mb_substr($md['description'],0,400,'UTF-8').'...'):$this->escape($md['description']);?></span>
|
||||
</div>
|
||||
<?php endforeach; ?>
|
||||
<?php echo $this->page->getNavigation(); ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<div class="row-fluid">
|
||||
<?php if (!empty($this->metadata)) : ?>
|
||||
<div id='metacontent'>
|
||||
<h4>当前浏览:<?php echo $this->codename; ?></h4>
|
||||
<?php echo $this->page->getNavigation(); ?>
|
||||
<hr />
|
||||
<ul class="unstyled">
|
||||
<?php foreach($this->metadata as $md) : ?>
|
||||
<li class="well well-small" style="overflow:hidden;">
|
||||
<img src="/service/thumb/id/<?php echo $md['id'];?>" class="pull-left img-polaroid img-rounded" style="margin-right:5px" />
|
||||
<h3><a href="/data/<?php echo $md['uuid']; ?>"><?php echo $this->escape($md['title']);?></a></h3>
|
||||
<p><?php echo mb_strlen($md['description'])>400?$this->escape(mb_substr($md['description'],0,400,'UTF-8').'...'):$this->escape($md['description']);?></p>
|
||||
</li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
<?php echo $this->page->getNavigation(); ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
|
@ -13,10 +13,12 @@ $auth = Zend_Auth::getInstance();
|
|||
<?php
|
||||
foreach ($this->rows as $row) {
|
||||
?>
|
||||
<div class="itemCd">
|
||||
<div class="image"><img src="<?php echo $row->img; ?>" /></div>
|
||||
<div class="title"><?php echo $row->title;?></div>
|
||||
<div class="filesize">(<?php echo $row->size;?>MB)</div>
|
||||
<div class="media">
|
||||
<a class="pull-left" href="#">
|
||||
<img class="media-object" src="<?php echo $row->img; ?>" data-src="holder.js/64x64">
|
||||
</a>
|
||||
<div class="media-body">
|
||||
<h4 class="media-heading"><?php echo $row->title;?>(<?php echo $row->size;?>MB)</h4>
|
||||
<div class="descript"><span class="intro">简介:</span><?php echo $row->descript; ?></div>
|
||||
|
||||
<div class="link">
|
||||
|
@ -32,4 +34,5 @@ foreach ($this->rows as $row) {
|
|||
<?php endif; ?>
|
||||
| <a href="<?php echo $row->document;?>">详细数据文档</a></div>
|
||||
</div>
|
||||
</div>
|
||||
<?php } ?>
|
|
@ -0,0 +1,27 @@
|
|||
<?php
|
||||
$this->headTitle($this->config->title->site);
|
||||
$this->headTitle($this->config->title->data);
|
||||
$this->headTitle('支持项目');
|
||||
$this->headTitle()->setSeparator(' - ');
|
||||
$this->breadcrumb('<a href="/">首页</a>');
|
||||
$this->breadcrumb('<a href="/data">'.$this->config->title->data.'</a>');
|
||||
$this->breadcrumb('<a href="/data/fund">支持项目</a>');
|
||||
$this->breadcrumb()->setSeparator(' > ');
|
||||
?>
|
||||
<div id='row-fluid'>
|
||||
<div><?= $this->breadcrumb() ?> </div>
|
||||
<?= $this->partial('data/tools.phtml'); ?>
|
||||
</div>
|
||||
|
||||
<?php if (!empty($this->paginator)) : ?>
|
||||
<div class="pagenavi"><?= $this->paginator; ?></div>
|
||||
<?php foreach($this->paginator as $md) : ?>
|
||||
<div class="well">
|
||||
<h4><a href="/data/fund/id/<?php echo $md['id'];?>"><?php echo $this->escape($md['title']);?></a></h4>
|
||||
编号:<?php echo $md['fund_id']; ?> | 类型:<?php echo $md['fund_type']; ?> | 提供数据集:<?php echo $md['datacount']; ?>条,<?php echo $md['filesize']; ?>MB
|
||||
</div>
|
||||
<?php endforeach; ?>
|
||||
<div class="pagenavi"><?= $this->paginator; ?></div>
|
||||
<?php else : ?>
|
||||
暂无对应信息。
|
||||
<?php endif; ?>
|
|
@ -0,0 +1,36 @@
|
|||
<?php
|
||||
$this->headTitle($this->config->title->site);
|
||||
$this->headTitle($this->config->title->data);
|
||||
$this->headTitle('支持项目');
|
||||
$this->headTitle()->setSeparator(' - ');
|
||||
$this->breadcrumb('<a href="/">首页</a>');
|
||||
$this->breadcrumb('<a href="/data">'.$this->config->title->data.'</a>');
|
||||
$this->breadcrumb('<a href="/data/fund">支持项目</a>');
|
||||
$this->breadcrumb()->setSeparator(' > ');
|
||||
?>
|
||||
<div id='row-fluid'>
|
||||
<div><?= $this->breadcrumb() ?> </div>
|
||||
<?= $this->partial('data/tools.phtml'); ?>
|
||||
</div>
|
||||
<div class="well">
|
||||
<h4><a href="/data/fund/id/<?php echo $this->fund['id'];?>"><?php echo $this->escape($this->fund['title']);?></a></h4>
|
||||
编号:<?php echo $this->fund['fund_id']; ?> | 类型:<?php echo $this->fund['fund_type']; ?>
|
||||
</div>
|
||||
<?php if (!empty($this->paginator)) : ?>
|
||||
<hr />
|
||||
<div class="pagenavi"><?= $this->paginator; ?></div>
|
||||
<?php foreach($this->paginator as $md) : ?>
|
||||
<div class="media well well-small">
|
||||
<a class="pull-left" href="#">
|
||||
<img class="media-object" src="/service/thumb/id/<?php echo $md['id'];?>">
|
||||
</a>
|
||||
<div class="media-body">
|
||||
<h4 class="media-heading"><a href="/data/<?php echo $md['uuid'];?>"><?php echo $this->escape($md['title']);?></a></h4>
|
||||
<div class="summary"><?php echo str_replace(array("\r\n", "\n", "\r"),'<br />',mb_strlen($md['description'])>400?$this->escape(mb_substr($md['description'],0,400,'UTF-8').'...'):$this->escape($md['description']));?></div>
|
||||
</div>
|
||||
</div>
|
||||
<?php endforeach; ?>
|
||||
<div class="pagenavi"><?= $this->paginator; ?></div>
|
||||
<?php else : ?>
|
||||
暂无对应信息。
|
||||
<?php endif; ?>
|
|
@ -2,129 +2,147 @@
|
|||
$this->headTitle($this->config->title->site);
|
||||
$this->headTitle($this->config->title->data);
|
||||
$this->headTitle()->setSeparator(' - ');
|
||||
$this->headLink()->appendStylesheet('/css/metadata.css');
|
||||
$this->breadcrumb('<a href="/">首页</a>');
|
||||
$this->breadcrumb($this->config->title->data);
|
||||
$this->breadcrumb()->setSeparator(' > ');
|
||||
?>
|
||||
<div id='leftContainer'>
|
||||
<div id="links">
|
||||
<div class="title"><img src="/images/dbs.png" align="absmiddle" />数 据 导 航</div>
|
||||
<h3>
|
||||
<?php echo $this->searchform; ?>
|
||||
<a href="/data/advancesearch">高级搜索</a></h3>
|
||||
<h3><a href="/heihe/">黑河计划数据管理中心</a> <a href="/water">黑河综合遥感联合试验</a> <a href="/data/datasetcd">特色数据集光盘</a> </h3>
|
||||
<h3> 分类浏览</h3>
|
||||
<div id='category' class="fieldlist">
|
||||
<fieldset><legend><a href="/data/category">数据集类别</a></legend>
|
||||
<ul>
|
||||
<?php foreach($this->category as $cg) : ?>
|
||||
<li><a href='/data/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></fieldset>
|
||||
</div>
|
||||
<?php if ($this->serie) : ?>
|
||||
<div id='series' class="fieldlist">
|
||||
<fieldset><legend><a href="/data/series">数据集序列</a></legend>
|
||||
<ul>
|
||||
<?php foreach($this->serie as $cg) : ?>
|
||||
<li><a href='/data/series/<?php echo $cg['id']; ?>'><?php echo $cg['name']; ?></a><span class="note">(<?php echo $cg['count']; ?>)</span></li>
|
||||
<?php endforeach; ?>
|
||||
</ul></fieldset>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<div id='keyword' class="fieldlist">
|
||||
<style>
|
||||
.fieldlist ul li{line-height:24px;padding:5px;}
|
||||
.fieldlist ul li:hover{color:#FFF;background:#0088CC;border-radius: 6px 6px 6px 6px;}
|
||||
.fieldlist ul li:hover a{color:#FFF; text-decoration:none;}
|
||||
.news_list ul li{line-height:24px;}
|
||||
</style>
|
||||
<div class="row">
|
||||
<div class="span12">
|
||||
<h4><i class="icon-folder-open"></i>专题数据集</h4>
|
||||
<a class="btn btn-info" href="/heihe/"><i class="icon-folder-open"></i>黑河计划数据管理中心</a>
|
||||
<a class="btn btn-info" href="/hiwater"><i class="icon-folder-open"></i>黑河生态水文遥感试验</a>
|
||||
<a class="btn btn-info" href="/water"><i class="icon-folder-open"></i>黑河综合遥感联合试验</a>
|
||||
<a class="btn btn-info" href="/glacier"><i class="icon-folder-open"></i>中国冰川资源及其变化调查</a>
|
||||
<a class="btn btn-info" href="/yrnmr"><i class="icon-folder-open"></i>黄河上游宁蒙河段数据</a>
|
||||
</div>
|
||||
<div class="span12">
|
||||
<h4><i class="icon-flag"></i>特色导航</h4>
|
||||
|
||||
<form method="get" action="/search" id="search" class="form-search">
|
||||
<div class="input-append">
|
||||
<input type="text" value="" id="q" name="q" class="span2 search-query" placeholder="全文搜索">
|
||||
<button type="submit" class="btn"><i class="icon-search"></i>搜索</button>
|
||||
</div>
|
||||
<a class="btn" href="/data/advancesearch"><i class="icon-search"></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/offlinelist"><i class="icon-th"></i>离线数据清单</a>
|
||||
|
||||
</form>
|
||||
<ul class="unstyled inline">
|
||||
<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/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/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 disabled" href="/data/author"><i class="icon-user-md"></i>作者浏览</a></li>
|
||||
<li><a class="btn" href="/knowledge"><i class="icon-exchange"></i>文献浏览</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<?php
|
||||
$keytypezh=array('place'=>'地点关键词','theme'=>'主题关键词','discipline'=>'学科关键词','stratum'=>'地层关键词','temporal'=>'时间关键词');
|
||||
foreach($this->keywords as $type=>$kcg) :
|
||||
if (is_array($kcg) && count($kcg)>0 ) :
|
||||
$keytypezh=array('place'=>'地点关键词','theme'=>'主题关键词','discipline'=>'学科关键词','stratum'=>'地层关键词','temporal'=>'时间关键词');
|
||||
$type='theme';
|
||||
?>
|
||||
<div class="span6">
|
||||
<h4><a href="/data/tag/keytype/theme"><i class="icon-tags"></i><?php echo $keytypezh[$type]; ?></a></h4>
|
||||
<ul class="unstyled inline">
|
||||
<?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>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
</div>
|
||||
<?php
|
||||
$type='discipline';
|
||||
?>
|
||||
<fieldset><legend><a href="/data/tag/"><?php echo $keytypezh[$type]; ?></a></legend>
|
||||
<ul>
|
||||
<?php foreach($kcg as $cg) : ?>
|
||||
<li><a href='/data/tag/<?php echo $cg['keyword']; ?>'><?php echo $cg['keyword']; ?></a><span class="note">(<?php echo $cg['count']; ?>)</span></li>
|
||||
<?php endforeach; ?>
|
||||
<li class="more"><a href='/data/tag/'>...更多>>></a></li>
|
||||
</ul>
|
||||
</fieldset>
|
||||
<?php endif;endforeach; ?>
|
||||
</div>
|
||||
<div class="fieldlist">
|
||||
<ul>
|
||||
<li><a href="/data/thumb">缩略图浏览</a></li>
|
||||
<li><a href="/data/timeline">时间轴浏览</a></li>
|
||||
<li><a href="/data/map">空间浏览</a></li>
|
||||
<li><a href="/data/timemap">时空浏览</a></li>
|
||||
<li><a href="/data/browse">数据列表浏览</a></li>
|
||||
<li><a href="/data/onlinelist">在线数据清单</a></li>
|
||||
<li><a href="/data/offlinelist">离线数据清单</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id='toolbox'>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div id='latest'>
|
||||
<div class="title"><img src="/images/dbs.png" align="absmiddle" />数据最近更新<a href="/data/feed" target="_blank"><img src="images/rss.png"></a></div>
|
||||
<div class="mditem">
|
||||
<ul>
|
||||
<?php foreach($this->metadata as $md) : ?>
|
||||
<li> <img src="/images/westdc_20w.gif" /> <a href="/data/<?php echo $md['uuid'];?>"><?php echo $this->escape($md['title']);?></a> </li>
|
||||
<?php endforeach; ?>
|
||||
<li class="more"><a href="/data/browse">更多</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="services">
|
||||
<div class="title"><img src="/images/Project24x24_24-bit.png" align="absmiddle" /> 数据服务</div>
|
||||
<div class="items">
|
||||
<div class="item">
|
||||
<h3> <a href="/data/newsletter">数据中心通讯</a></h3>
|
||||
<p class="description">
|
||||
数据中心不定期发布数据通讯,通告中心动态、最新数据和数据工具</p>
|
||||
<ul>
|
||||
<li>- <a href='/images/newsletter/<?php echo $this->newsletter; ?>' target="_blank">第<?php echo $this->newsletterno; ?>期数据通讯</a>(pdf格式)</li>
|
||||
|
||||
<li>
|
||||
<?php
|
||||
echo $this->form;
|
||||
if (!empty($this->messages)) : ?>
|
||||
<span id="message">
|
||||
<div class="span6">
|
||||
<h4><a href="/data/tag/keytype/discipline"><i class="icon-tags"></i><?php echo $keytypezh[$type]; ?></a></h4>
|
||||
<ul class="unstyled inline">
|
||||
<?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>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<?php
|
||||
foreach ($this->messages as $info)echo $info;
|
||||
?>
|
||||
</span>
|
||||
<?php endif; ?>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="item">
|
||||
<h3><a href="/data/service">用户服务</a></h3>
|
||||
<p class="description">
|
||||
了解"西部数据中心"数据服务内容、方式及政策</p>
|
||||
<ul>
|
||||
<li>- <a href="/data/offlineapp">离线数据服务记录(最近20个)</a></li>
|
||||
<li>- <a href="/data/request">如何从西部数据中心申请数据</a></li>
|
||||
<li>- <a href="/data/submit">如何在西部数据中心发布数据</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div class="item">
|
||||
<h3><a href="/knowledge">文献服务</a></h3>
|
||||
<p class="description">
|
||||
数据中心依托中科院资环信息中心提供西部环境与生态文献和文档服务</p>
|
||||
</div>
|
||||
<!--<div class="item">
|
||||
<h3><a href="/data/ogcwxs">在线地图服务</a></h3>
|
||||
<p class="description">提供OGC WMS、WFS等在线地图服务</p>-->
|
||||
</div>
|
||||
<div class="item">
|
||||
<h3><a href="/about/contact">联系我们</a></h3>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
$type='place';
|
||||
?>
|
||||
<div class="span6">
|
||||
<h4><a href="/data/tag/keytype/place"><i class="icon-tags"></i><?php echo $keytypezh[$type]; ?></a></h4>
|
||||
<ul class="unstyled inline">
|
||||
<?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>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
</div>
|
||||
<?php
|
||||
$type='temporal';
|
||||
?>
|
||||
<div class="span6">
|
||||
<h4><a href="/data/tag/keytype/temporal"><i class="icon-tags"></i><?php echo $keytypezh[$type]; ?></a></h4>
|
||||
<ul class="unstyled inline">
|
||||
<?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>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="span6">
|
||||
<h4><img src="/images/dbs.png" align="absmiddle" />数据导航</h4>
|
||||
<div class="fieldlist">
|
||||
<fieldset><legend><a href="/data/category">数据集类别</a></legend>
|
||||
<ul class="unstyled inline">
|
||||
<?php foreach($this->category as $cg) : ?>
|
||||
<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; ?>
|
||||
</ul></fieldset>
|
||||
</div>
|
||||
<div class="fieldlist">
|
||||
<?php if ($this->serie) : ?>
|
||||
<div id='series' class="fieldlist">
|
||||
<fieldset><legend><a href="/data/series">数据集序列</a></legend>
|
||||
<ul class="unstyled inline">
|
||||
<?php foreach($this->serie as $cg) : ?>
|
||||
<li><a href='/data/series/<?php echo $cg['id']; ?>'><i class="icon-list-ol"></i><?php echo $cg['name']; ?></a><span class="note">(<?php echo $cg['count']; ?>)</span></li>
|
||||
<?php endforeach; ?>
|
||||
</ul></fieldset>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div><!-- /left -->
|
||||
<div class="span6">
|
||||
<div class="news_list">
|
||||
<h4><img src="/images/dbs.png" align="absmiddle" />数据最近更新<a href="/data/feed" target="_blank"><img src="images/rss.png"></a></h4>
|
||||
<ul class="unstyled">
|
||||
<?php foreach($this->metadata as $md) : ?>
|
||||
<li><img src="/images/westdc_20w.gif" /> <a href="/data/<?php echo $md['uuid'];?>"><?php echo $this->escape($md['title']);?></a> </li>
|
||||
<?php endforeach; ?>
|
||||
<li class="more"><a href="/data/browse" class="pull-right">更多</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div>
|
||||
<h4><img src="/images/Project24x24_24-bit.png" align="absmiddle" /> 数据服务</h4>
|
||||
<div class="items">
|
||||
<div class="item">
|
||||
<ul class="unstyled">
|
||||
<li>- <a href="/data/offlineapp">离线数据服务记录(最近20个)</a></li>
|
||||
<li>- <a href="/data/request">如何从西部数据中心申请数据</a></li>
|
||||
<li>- <a href="/data/submit">如何在西部数据中心发布数据</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div><!-- /right -->
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -1,52 +1,74 @@
|
|||
<?php
|
||||
$this->headTitle($this->config->title->site);
|
||||
$this->headTitle($this->config->title->data);
|
||||
$this->headTitle("空间浏览");
|
||||
$this->headTitle()->setSeparator(' - ');
|
||||
$this->headLink()->appendStylesheet('/css/metadata.css');
|
||||
$this->breadcrumb('<a href="/">首页</a>');
|
||||
$this->breadcrumb('<a href="/data">'.$this->config->title->data.'</a>');
|
||||
$this->breadcrumb('<a href="/data/tag">空间浏览</a>');
|
||||
if (!empty($this->codename)) $this->breadcrumb($this->codename);
|
||||
$this->breadcrumb()->setSeparator(' > ');
|
||||
$this->headScript()->appendFile('/js/OpenLayers.js');
|
||||
$this->headLink()->appendStylesheet('/js/theme/default/style.css');
|
||||
$this->headScript()->appendFile('http://maps.google.cn/maps?file=api&v=2&key='.$this->config->google->maps->api);
|
||||
?>
|
||||
<div id='tools'>
|
||||
<?= $this->partial('data/tools.phtml'); ?>
|
||||
</div>
|
||||
<div id='leftnav'>
|
||||
</div>
|
||||
<?php
|
||||
$this->headTitle($this->config->title->site);
|
||||
$this->headTitle($this->config->title->data);
|
||||
$this->headTitle("空间浏览");
|
||||
$this->headTitle()->setSeparator(' - ');
|
||||
$this->headLink()->appendStylesheet('/css/metadata.css');
|
||||
$this->breadcrumb('<a href="/">首页</a>');
|
||||
$this->breadcrumb('<a href="/data">'.$this->config->title->data.'</a>');
|
||||
$this->breadcrumb('<a href="/data/tag">空间浏览</a>');
|
||||
if (!empty($this->codename)) $this->breadcrumb($this->codename);
|
||||
$this->breadcrumb()->setSeparator(' > ');
|
||||
$this->headScript()->appendFile('http://maps.google.com/maps/api/js?sensor=false');
|
||||
$this->headScript()->appendFile('/js/OpenLayers.js');
|
||||
$this->headLink()->appendStylesheet('/js/theme/default/style.css');
|
||||
?>
|
||||
<div class="row-fluid">
|
||||
<?= $this->partial('data/tools.phtml'); ?>
|
||||
</div>
|
||||
<div id='map' style="clear:left;height:500px;border:1px;"></div>
|
||||
<script type="text/javascript">
|
||||
var map,selectedFeature;
|
||||
<style type="text/css">
|
||||
label{display:inline;}
|
||||
img{max-width:none;}
|
||||
hr{margin:0;}
|
||||
</style>
|
||||
<script type="text/javascript" >
|
||||
var map;
|
||||
|
||||
map = new OpenLayers.Map('map');
|
||||
map.addControl(new OpenLayers.Control.LayerSwitcher());
|
||||
|
||||
var gphy = new OpenLayers.Layer.Google(
|
||||
"Google Physical",
|
||||
{type: G_PHYSICAL_MAP}
|
||||
);
|
||||
var gmap = new OpenLayers.Layer.Google(
|
||||
"Google Streets", // the default
|
||||
{numZoomLevels: 20}
|
||||
);
|
||||
var ghyb = new OpenLayers.Layer.Google(
|
||||
"Google Hybrid",
|
||||
{type: G_HYBRID_MAP, numZoomLevels: 20}
|
||||
);
|
||||
var gsat = new OpenLayers.Layer.Google(
|
||||
"Google Satellite",
|
||||
{type: G_SATELLITE_MAP, numZoomLevels: 20}
|
||||
);
|
||||
map = new OpenLayers.Map('map');
|
||||
map.addControl(new OpenLayers.Control.LayerSwitcher());
|
||||
|
||||
var gphy = new OpenLayers.Layer.Google(
|
||||
"Google Physical",
|
||||
{type: google.maps.MapTypeId.TERRAIN}
|
||||
);
|
||||
var gmap = new OpenLayers.Layer.Google(
|
||||
"Google Streets", // the default
|
||||
{numZoomLevels: 20}
|
||||
);
|
||||
var ghyb = new OpenLayers.Layer.Google(
|
||||
"Google Hybrid",
|
||||
{type: google.maps.MapTypeId.HYBRID, numZoomLevels: 20}
|
||||
);
|
||||
var gsat = new OpenLayers.Layer.Google(
|
||||
"Google Satellite",
|
||||
{type: google.maps.MapTypeId.SATELLITE, numZoomLevels: 22}
|
||||
);
|
||||
geojson_layer = new OpenLayers.Layer.Vector("Data Boundary", {
|
||||
strategies: [new OpenLayers.Strategy.Fixed()],
|
||||
protocol: new OpenLayers.Protocol.HTTP({
|
||||
url: "/service/json<?php echo $this->params; ?>",
|
||||
format: new OpenLayers.Format.GeoJSON()
|
||||
})
|
||||
});
|
||||
|
||||
var ol_wms = new OpenLayers.Layer.WMS( "OpenLayers WMS",
|
||||
"http://labs.metacarta.com/wms/vmap0?", {layers: 'basic'} );
|
||||
|
||||
map.addLayers([ol_wms,gphy, gmap, ghyb, gsat]);
|
||||
map.setCenter(new OpenLayers.LonLat(102, 36), 4);
|
||||
map.addLayers([gphy, gmap, ghyb, gsat,geojson_layer]);
|
||||
|
||||
// Google.v3 uses EPSG:900913 as projection, so we have to
|
||||
// transform our coordinates
|
||||
map.setCenter(new OpenLayers.LonLat(102, 36).transform(
|
||||
new OpenLayers.Projection("EPSG:4326"),
|
||||
map.getProjectionObject()
|
||||
), 5);
|
||||
|
||||
var sf = new OpenLayers.Control.SelectFeature(geojson_layer,{onSelect:onFeatureSelect,onUnselect:onFeatureUnselect});
|
||||
map.addControl(sf);
|
||||
sf.activate();
|
||||
|
||||
for (var i=map.layers.length-1; i>=0; --i) {
|
||||
map.layers[i].animationEnabled = this.checked;
|
||||
};
|
||||
|
||||
function onPopupClose(evt) {
|
||||
selectControl.unselect(selectedFeature);
|
||||
|
@ -56,7 +78,7 @@
|
|||
popup = new OpenLayers.Popup.FramedCloud("chicken",
|
||||
feature.geometry.getBounds().getCenterLonLat(),
|
||||
null,
|
||||
"<div style='font-size:.8em'><a href=/data/"+feature.attributes['uuid']+">"+ feature.attributes['title'] +"</a> | <a href=/data/map/id/"+feature.attributes['id']+"><img src=/images/map.gif></a><hr /><img src=/service/thumb/id/" + feature.attributes['id']+"/></div>",
|
||||
"<div style='font-size:.8em'><a href=/data/"+feature.attributes['uuid']+">"+ feature.attributes['title'] +"</a> | <a href=/data/map/id/"+feature.attributes['id']+"><i class='icon-globe'></i></a><hr /><img class='' src=/service/thumb/id/" + feature.attributes['id']+"/></div>",
|
||||
null, false, onPopupClose);
|
||||
feature.popup = popup;
|
||||
map.addPopup(popup);
|
||||
|
@ -66,18 +88,4 @@
|
|||
feature.popup.destroy();
|
||||
feature.popup = null;
|
||||
}
|
||||
var ajax=new OpenLayers.Ajax.Request('/data/json<?php echo $this->params; ?>',{method:'get',onSuccess:featureresult});
|
||||
function featureresult(response){
|
||||
var feature1= eval('(' + response.responseText + ')');
|
||||
//alert(feature1.type);
|
||||
var geojson_format = new OpenLayers.Format.GeoJSON();
|
||||
var vector_layer = new OpenLayers.Layer.Vector('metadata');
|
||||
map.addLayer(vector_layer);
|
||||
vector_layer.addFeatures(geojson_format.read(feature1));
|
||||
var sf = new OpenLayers.Control.SelectFeature(vector_layer,{onSelect:onFeatureSelect,onUnselect:onFeatureUnselect});
|
||||
map.addControl(sf);
|
||||
sf.activate();
|
||||
}
|
||||
|
||||
|
||||
</script>
|
||||
</script>
|
||||
|
|
|
@ -1,43 +1,40 @@
|
|||
<?php
|
||||
$this->headTitle($this->config->title->site);
|
||||
$this->headTitle($this->config->title->data);
|
||||
$this->headTitle('数据通讯');
|
||||
$this->headTitle()->setSeparator(' - ');
|
||||
$this->headLink()->appendStylesheet('/css/newsletter.css');
|
||||
$this->breadcrumb('<a href="/">首页</a>');
|
||||
$this->breadcrumb('<a href="/data">'.$this->config->title->data.'</a>');
|
||||
$this->breadcrumb('数据通讯');
|
||||
$this->breadcrumb()->setSeparator(' > ');
|
||||
?>
|
||||
<?php
|
||||
foreach ($this->newsletters as $nl){
|
||||
$name=basename($nl,'.pdf');
|
||||
list(,$num)=explode("_",$name);
|
||||
?>
|
||||
<div class="newsletter">
|
||||
|
||||
<a href="/images/newsletter/<?php echo $nl; ?>" target="_blank">
|
||||
<img src="/images/newsletter/<?php echo $name; ?>.jpg" style="margin-bottom: 10px; margin-right: 10px;" border="0" /></a><br />
|
||||
<a href="/images/newsletter/<?php echo $nl; ?>" target="_blank">第<?php echo $num;?>期数据通讯</a>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
<p style="clear:left;font-size: 110%;">
|
||||
西部数据中心不定期发布数据通讯,通告中心动态、最新数据、数据工具,以及重要研究进展。</p>
|
||||
<p>
|
||||
在下面文本框里输入您的Email地址,可以订阅数据中心通讯。当通讯发布时,将在第一时间发送到您订阅的Email邮箱里。</p>
|
||||
<div class="note">
|
||||
注意,邮件列表发送的邮件,有可能被您的邮箱当成垃圾邮件隔离,所以请设置您的反垃圾邮箱配置。</div>
|
||||
<?php echo $this->form; ?>
|
||||
<?php if (!empty($this->messages)) : ?>
|
||||
<div id="message">
|
||||
<?php
|
||||
foreach ($this->messages as $info)echo $info;
|
||||
?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<div class="note"> 备注:您也可以直接给<a href="mailto:westdc-report-subscribe@lists.westgis.ac.cn">数据通讯</a>发送一封标题为subscribe的邮件进行订阅。
|
||||
</div>
|
||||
<br /><br />
|
||||
</div>
|
||||
<?php
|
||||
$this->headTitle($this->config->title->site);
|
||||
$this->headTitle($this->config->title->data);
|
||||
$this->headTitle('数据通讯');
|
||||
$this->headTitle()->setSeparator(' - ');
|
||||
$this->headLink()->appendStylesheet('/css/newsletter.css');
|
||||
$this->breadcrumb('<a href="/">首页</a>');
|
||||
$this->breadcrumb('<a href="/data">'.$this->config->title->data.'</a>');
|
||||
$this->breadcrumb('数据通讯');
|
||||
$this->breadcrumb()->setSeparator(' > ');
|
||||
?>
|
||||
<div class="row-fluit">
|
||||
<?php
|
||||
foreach ($this->newsletters as $nl){
|
||||
$name=basename($nl,'.pdf');
|
||||
list(,$num)=explode("_",$name);
|
||||
?>
|
||||
<div class="newsletter">
|
||||
<a href="/images/newsletter/<?php echo $nl; ?>" target="_blank">
|
||||
<img src="/images/newsletter/<?php echo $name; ?>.jpg" style="margin-bottom: 10px; margin-right: 10px;" border="0" /></a><br />
|
||||
<a href="/images/newsletter/<?php echo $nl; ?>" target="_blank">第<?php echo $num;?>期数据通讯</a>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<p style="clear:left;font-size: 110%;">
|
||||
西部数据中心不定期发布数据通讯,通告中心动态、最新数据、数据工具,以及重要研究进展。</p>
|
||||
<p>
|
||||
在下面文本框里输入您的Email地址,可以订阅数据中心通讯。当通讯发布时,将在第一时间发送到您订阅的Email邮箱里。</p>
|
||||
<div class="note">
|
||||
注意,邮件列表发送的邮件,有可能被您的邮箱当成垃圾邮件隔离,所以请设置您的反垃圾邮箱配置。</div>
|
||||
<?php echo $this->form; ?>
|
||||
<?php if (!empty($this->messages)) : ?>
|
||||
<div id="message">
|
||||
<?php
|
||||
foreach ($this->messages as $info)echo $info;
|
||||
?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<div class="note"> 备注:您也可以直接给<a href="mailto:westdc-report-subscribe@lists.westgis.ac.cn">数据通讯</a>发送一封标题为subscribe的邮件进行订阅。</div>
|
||||
<br /><br />
|
||||
</div>
|
|
@ -1,26 +1,26 @@
|
|||
<?php
|
||||
$this->headTitle($this->config->title->site);
|
||||
$this->headTitle($this->config->title->data);
|
||||
$this->headTitle('离线数据清单');
|
||||
$this->headTitle($this->codename);
|
||||
$this->headTitle()->setSeparator(' - ');
|
||||
$this->headLink()->appendStylesheet('/css/metadata.css');
|
||||
$this->breadcrumb('<a href="/">首页</a>');
|
||||
$this->breadcrumb('<a href="/data">'.$this->config->title->data.'</a>');
|
||||
$this->breadcrumb('离线数据清单');
|
||||
$this->breadcrumb()->setSeparator(' > ');
|
||||
?>
|
||||
<div id='tools'>
|
||||
<?= $this->partial('data/tools.phtml'); ?>
|
||||
</div>
|
||||
<?php echo $this->page->getNavigation(); ?>
|
||||
<hr />
|
||||
<?php foreach($this->metadata as $md) : ?>
|
||||
<div class="mditem">
|
||||
<a href="/data/<?php echo $md['uuid'];?>"><?php echo $this->escape($md['title']);?></a>
|
||||
<a href="/data/xml/id/<?php echo $md['id'];?>"><img src="/images/xml.gif" /></a>
|
||||
<a href="/data/doc/uuid/<?php echo $md['uuid'];?>"><img src="/images/doc-icon.png" /></a>
|
||||
</div>
|
||||
<?php endforeach; ?>
|
||||
<hr />
|
||||
<?php
|
||||
$this->headTitle($this->config->title->site);
|
||||
$this->headTitle($this->config->title->data);
|
||||
$this->headTitle('离线数据清单');
|
||||
$this->headTitle($this->codename);
|
||||
$this->headTitle()->setSeparator(' - ');
|
||||
$this->headLink()->appendStylesheet('/css/metadata.css');
|
||||
$this->breadcrumb('<a href="/">首页</a>');
|
||||
$this->breadcrumb('<a href="/data">'.$this->config->title->data.'</a>');
|
||||
$this->breadcrumb('离线数据清单');
|
||||
$this->breadcrumb()->setSeparator(' > ');
|
||||
?>
|
||||
<div class="row-fluid">
|
||||
<?= $this->partial('data/tools.phtml'); ?>
|
||||
</div>
|
||||
<?php echo $this->page->getNavigation(); ?>
|
||||
<hr />
|
||||
<?php foreach($this->metadata as $md) : ?>
|
||||
<div class="mditem">
|
||||
<a href="/data/<?php echo $md['uuid'];?>"><?php echo $this->escape($md['title']);?></a>
|
||||
<a href="/data/xml/id/<?php echo $md['id'];?>"><img src="/images/xml.gif" /></a>
|
||||
<a href="/data/doc/uuid/<?php echo $md['uuid'];?>"><img src="/images/doc-icon.png" /></a>
|
||||
</div>
|
||||
<?php endforeach; ?>
|
||||
<hr />
|
||||
<?php echo $this->page->getNavigation(); ?>
|
|
@ -1,26 +1,26 @@
|
|||
<?php
|
||||
$this->headTitle($this->config->title->site);
|
||||
$this->headTitle($this->config->title->data);
|
||||
$this->headTitle('在线数据清单');
|
||||
$this->headTitle($this->codename);
|
||||
$this->headTitle()->setSeparator(' - ');
|
||||
$this->headLink()->appendStylesheet('/css/metadata.css');
|
||||
$this->breadcrumb('<a href="/">首页</a>');
|
||||
$this->breadcrumb('<a href="/data">'.$this->config->title->data.'</a>');
|
||||
$this->breadcrumb('在线数据清单');
|
||||
$this->breadcrumb()->setSeparator(' > ');
|
||||
?>
|
||||
<div id='tools'>
|
||||
<?= $this->partial('data/tools.phtml'); ?>
|
||||
</div>
|
||||
<?php echo $this->page->getNavigation(); ?>
|
||||
<hr />
|
||||
<?php foreach($this->metadata as $md) : ?>
|
||||
<div class="mditem">
|
||||
<a href="/data/<?php echo $md['uuid'];?>"><?php echo $this->escape($md['title']);?></a>
|
||||
<a href="/data/xml/id/<?php echo $md['id'];?>"><img src="/images/xml.gif" /></a>
|
||||
<a href="/data/doc/uuid/<?php echo $md['uuid'];?>"><img src="/images/doc-icon.png" /></a>
|
||||
</div>
|
||||
<?php endforeach; ?>
|
||||
<hr />
|
||||
<?php
|
||||
$this->headTitle($this->config->title->site);
|
||||
$this->headTitle($this->config->title->data);
|
||||
$this->headTitle('在线数据清单');
|
||||
$this->headTitle($this->codename);
|
||||
$this->headTitle()->setSeparator(' - ');
|
||||
$this->headLink()->appendStylesheet('/css/metadata.css');
|
||||
$this->breadcrumb('<a href="/">首页</a>');
|
||||
$this->breadcrumb('<a href="/data">'.$this->config->title->data.'</a>');
|
||||
$this->breadcrumb('在线数据清单');
|
||||
$this->breadcrumb()->setSeparator(' > ');
|
||||
?>
|
||||
<div>
|
||||
<?= $this->partial('data/tools.phtml'); ?>
|
||||
</div>
|
||||
<?php echo $this->page->getNavigation(); ?>
|
||||
<hr />
|
||||
<?php foreach($this->metadata as $md) : ?>
|
||||
<div class="mditem">
|
||||
<a href="/data/<?php echo $md['uuid'];?>"><?php echo $this->escape($md['title']);?></a>
|
||||
<a href="/data/xml/id/<?php echo $md['id'];?>"><img src="/images/xml.gif" /></a>
|
||||
<a href="/data/doc/uuid/<?php echo $md['uuid'];?>"><img src="/images/doc-icon.png" /></a>
|
||||
</div>
|
||||
<?php endforeach; ?>
|
||||
<hr />
|
||||
<?php echo $this->page->getNavigation(); ?>
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue