修改了数据浏览页面的模板
This commit is contained in:
parent
8ae71e352f
commit
5f5ea4b87e
|
@ -556,7 +556,12 @@ class DataController extends Zend_Controller_Action
|
||||||
$rs=$this->db->fetchRow($sql,array((int)$row->projection));
|
$rs=$this->db->fetchRow($sql,array((int)$row->projection));
|
||||||
if ($rs) $this->view->projection=$rs->proj4text;
|
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= ?';
|
$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));
|
$state=$this->db->query($sql,array($id));
|
||||||
$this->view->category=$state->fetchAll();
|
$this->view->category=$state->fetchAll();
|
||||||
|
@ -604,9 +609,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 (";
|
$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)
|
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";
|
$sql.=" 1<>1) order by a.ts_created desc limit 10";
|
||||||
|
@ -915,15 +920,24 @@ class DataController extends Zend_Controller_Action
|
||||||
{
|
{
|
||||||
$color = 'background:'.$color.';color:#FFFFFF;';
|
$color = 'background:'.$color.';color:#FFFFFF;';
|
||||||
}
|
}
|
||||||
$replyhtml .= "
|
$img = $avatar->Get($v['email'],48);
|
||||||
<div class='comment-content' style='width:90%;margin:5px auto;'><span class='title' style='$color'>".
|
$replyhtml .='
|
||||||
$v['username']."$usertype 回复于".date('Y-m-d H:i:s',strtotime($v['ts_created']))."</span>
|
<div class="media" style="background:#cecece;border-radius:6px 6px 6px 6px;">
|
||||||
<p>".($v['body'])."</p>
|
<a class="pull-left" href="javascript:void(0);">
|
||||||
</div>";
|
<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 = $avatar->Get($c['email'],64);
|
||||||
//$img = '<img src="'.$img.'" />';
|
//$img = '<img src="'.$img.'" />';
|
||||||
|
|
||||||
$author = $c['author'];
|
$author = $c['author'];
|
||||||
|
@ -931,10 +945,8 @@ class DataController extends Zend_Controller_Action
|
||||||
$author = ''.$author."";
|
$author = ''.$author."";
|
||||||
$time = '发表于'.date('Y-m-d H:i:s',strtotime($c['ts_created'])).'';
|
$time = '发表于'.date('Y-m-d H:i:s',strtotime($c['ts_created'])).'';
|
||||||
print '
|
print '
|
||||||
<div class="media" style="background:#cecece;border-radius:6px 6px 6px 6px;">
|
<div class="media" style="background:#eee;border-radius:6px 6px 6px 6px;">
|
||||||
<a class="pull-left" href="javascript:void(0);">
|
<img class="media-object img-rounded pull-left" src="'.$img.'">
|
||||||
<img class="media-object" src="'.$img.'">
|
|
||||||
</a>
|
|
||||||
<div class="media-body">
|
<div class="media-body">
|
||||||
<span class="pull-right">'.$time.'</span>
|
<span class="pull-right">'.$time.'</span>
|
||||||
<h4 class="media-heading">'.$c['author'].'</h4>
|
<h4 class="media-heading">'.$c['author'].'</h4>
|
||||||
|
|
|
@ -1,26 +1,28 @@
|
||||||
<?php if ($this->pageCount): ?>
|
<?php if ($this->pageCount): ?>
|
||||||
<div class="paginationControl">
|
<div class="pagination">
|
||||||
|
<ul>
|
||||||
<!-- Previous page link -->
|
<!-- Previous page link -->
|
||||||
<?php if (isset($this->previous)): ?>
|
<?php if (isset($this->previous)): ?>
|
||||||
<a href="javascript:void(0);" onclick="ajaxpage(<?php echo $this->previous;?>)">< Previous</a>
|
<li><a href="javascript:void(0);" onclick="ajaxpage(<?php echo $this->previous;?>)">«</a></li>
|
||||||
<?php else: ?>
|
<?php else: ?>
|
||||||
<span class="disabled">< Previous</span>
|
<li class="disabled"><a href="javascript:;">«</a></li>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
||||||
<!-- Numbered page links -->
|
<!-- Numbered page links -->
|
||||||
<?php foreach ($this->pagesInRange as $page): ?>
|
<?php foreach ($this->pagesInRange as $page): ?>
|
||||||
<?php if ($page != $this->current): ?>
|
<?php if ($page != $this->current): ?>
|
||||||
<a href="javascript:void(0);" onclick="ajaxpage(<?php echo $page;?>)"><?= $page; ?></a>
|
<li><a href="javascript:void(0);" onclick="ajaxpage(<?php echo $page;?>)"><?= $page; ?></a></li>
|
||||||
<?php else: ?>
|
<?php else: ?>
|
||||||
<span class="current"><?= $page; ?></span>
|
<li class="active"><a href="javascript:void(0);"><?= $page; ?></a></li>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
|
|
||||||
<!-- Next page link -->
|
<!-- Next page link -->
|
||||||
<?php if (isset($this->next)): ?>
|
<?php if (isset($this->next)): ?>
|
||||||
<a href="javascript:void(0);" onclick="ajaxpage(<?php echo $this->next;?>)">Next ></a>
|
<li><a href="javascript:void(0);" onclick="ajaxpage(<?php echo $this->next;?>)">»</a></li>
|
||||||
<?php else: ?>
|
<?php else: ?>
|
||||||
<span class="disabled">Next ></span>
|
<li class="disabled"><a href="javascript:;">»</a></li>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
|
@ -3,7 +3,6 @@
|
||||||
$this->headTitle($this->config->title->data);
|
$this->headTitle($this->config->title->data);
|
||||||
$this->headTitle($this->metadata->title);
|
$this->headTitle($this->metadata->title);
|
||||||
$this->headTitle()->setSeparator(' - ');
|
$this->headTitle()->setSeparator(' - ');
|
||||||
$this->headLink()->appendStylesheet('/css/watermdview.css');
|
|
||||||
$this->breadcrumb('<a href="/">首页</a>');
|
$this->breadcrumb('<a href="/">首页</a>');
|
||||||
$this->breadcrumb('<a href="/data">'.$this->config->title->data.'</a>');
|
$this->breadcrumb('<a href="/data">'.$this->config->title->data.'</a>');
|
||||||
$this->breadcrumb('查看元数据');
|
$this->breadcrumb('查看元数据');
|
||||||
|
@ -11,8 +10,6 @@
|
||||||
$this->theme->AppendPlus($this,'google_map_v3');
|
$this->theme->AppendPlus($this,'google_map_v3');
|
||||||
$this->theme->AppendPlus($this,'jquery');
|
$this->theme->AppendPlus($this,'jquery');
|
||||||
$this->theme->AppendPlus($this,'colorbox');
|
$this->theme->AppendPlus($this,'colorbox');
|
||||||
$this->headLink()->appendStylesheet('/js/theme/default/style.css');
|
|
||||||
$this->headScript()->appendFile('/js/jquery.idTabs.min.js');
|
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<?php $md=$this->metadata;if ($md):?>
|
<?php $md=$this->metadata;if ($md):?>
|
||||||
|
@ -41,9 +38,9 @@ if ($md->title_en) echo '<br />'.$this->escape($md->title_en);?>
|
||||||
<ol>
|
<ol>
|
||||||
<?php foreach($this->ref as $ref) :
|
<?php foreach($this->ref as $ref) :
|
||||||
if (empty($ref->link))
|
if (empty($ref->link))
|
||||||
echo '<li>'.$ref->reference.'</li>';
|
echo '<li style="white-space:normal; word-break:break-all;overflow:hidden;">'.$ref->reference.'</li>';
|
||||||
else
|
else
|
||||||
echo '<li>'.$ref->reference.' <a href="'.$ref->link.'">下载</a></li>';
|
echo '<li style="white-space:normal; word-break:break-all;overflow:hidden;">'.$ref->reference.' <a href="'.$ref->link.'">下载</a></li>';
|
||||||
endforeach;
|
endforeach;
|
||||||
?>
|
?>
|
||||||
</ol>
|
</ol>
|
||||||
|
@ -77,20 +74,21 @@ if ($md->title_en) echo '<br />'.$this->escape($md->title_en);?>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<?php if($this->data_archives){ ?>
|
<?php if($this->data_archives){ ?>
|
||||||
<h5>相关数据新闻</h5>
|
<h5>相关数据新闻</h5>
|
||||||
<hr />
|
<ul>
|
||||||
<?php
|
<?php
|
||||||
foreach($this->data_archives as $v){?>
|
foreach($this->data_archives as $v){?>
|
||||||
<p><a href="<?= $v['url']['archive_url']?>"><?= $v['title']?></a></p>
|
<li><a href="<?= $v['url']['archive_url']?>"><?= $v['title']?></a></li>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
|
</ul>
|
||||||
|
<hr />
|
||||||
<?php }?>
|
<?php }?>
|
||||||
<?php if ($md->suppinfo) : ?>
|
<?php if ($md->suppinfo) : ?>
|
||||||
<h5>项目支持信息</h5>
|
<h5>项目支持信息</h5>
|
||||||
<hr />
|
|
||||||
<?php echo '<p>'.str_replace(array("\r\n", "\n", "\r"),'</p><p>',$this->escape($md->suppinfo)).'</p>';?>
|
<?php echo '<p>'.str_replace(array("\r\n", "\n", "\r"),'</p><p>',$this->escape($md->suppinfo)).'</p>';?>
|
||||||
|
<hr />
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<?php if ($this->resources) : ?>
|
<?php if ($this->resources) : ?>
|
||||||
<h5>其他在线资源</h5>
|
<h5>其他在线资源</h5>
|
||||||
<hr />
|
|
||||||
<ul><?php foreach($this->resources as $link) : ?>
|
<ul><?php foreach($this->resources as $link) : ?>
|
||||||
<li><a href="<?php echo $link->linkage; ?>" title="<?php echo $link->description; ?>">
|
<li><a href="<?php echo $link->linkage; ?>" title="<?php echo $link->description; ?>">
|
||||||
<?php
|
<?php
|
||||||
|
@ -103,14 +101,15 @@ if ($md->title_en) echo '<br />'.$this->escape($md->title_en);?>
|
||||||
?></a></li>
|
?></a></li>
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
</ul>
|
</ul>
|
||||||
|
<hr />
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<?php
|
<?php
|
||||||
$keywords = array();
|
$keywords = array();
|
||||||
foreach($this->keys as $cg){
|
foreach($this->keys as $cg){
|
||||||
if($cg->keytype=="theme")
|
if($cg['keytype']=="theme")
|
||||||
$keywords[]=$cg->keyword;
|
$keywords[]=$cg['keyword'];
|
||||||
}
|
}
|
||||||
$ev = join(" ",$keywords);
|
$ev = join(" ",$keywords);
|
||||||
?>
|
?>
|
||||||
|
@ -166,7 +165,7 @@ if ($md->title_en) echo '<br />'.$this->escape($md->title_en);?>
|
||||||
<?php if ($md->status>0 and $md->status<5) : ?>
|
<?php if ($md->status>0 and $md->status<5) : ?>
|
||||||
<p class="strong">此数据还在评审过程中,我们真切地邀请您参加此数据的评审,以便我们能尽快发布此数据!<a href="/review/review/uuid/<?php echo $md->uuid; ?>"><img src="/images/review.png" title="此数据正在评审中,我们邀请您对此数据进行评审,以便其能尽快发布!" /></a></p>
|
<p class="strong">此数据还在评审过程中,我们真切地邀请您参加此数据的评审,以便我们能尽快发布此数据!<a href="/review/review/uuid/<?php echo $md->uuid; ?>"><img src="/images/review.png" title="此数据正在评审中,我们邀请您对此数据进行评审,以便其能尽快发布!" /></a></p>
|
||||||
<?php else : ?>
|
<?php else : ?>
|
||||||
<h2>数据评论</h2>
|
<h4>数据评论</h4>
|
||||||
<div id="allcomments">
|
<div id="allcomments">
|
||||||
<div id="loading"><img src="/images/loading.gif" />评论加载中</div>
|
<div id="loading"><img src="/images/loading.gif" />评论加载中</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -183,70 +182,93 @@ if ($md->title_en) echo '<br />'.$this->escape($md->title_en);?>
|
||||||
$email = "";
|
$email = "";
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
<form id="postcommentform">
|
<form class="form-horizontal" id="postcommentform">
|
||||||
<p>
|
<div class="control-group">
|
||||||
<label class="required" style="background:none;">姓名</label>
|
<label class="control-label">姓名</label>
|
||||||
|
<div class="controls">
|
||||||
<input type="text" name="author" value="<?php echo $name;?>" />
|
<input type="text" name="author" value="<?php echo $name;?>" />
|
||||||
</p>
|
</div>
|
||||||
<p>
|
</div>
|
||||||
<label class="required" style="background:none;">EMAIL</label>
|
<div class="control-group">
|
||||||
|
<label class="control-label">Email</label>
|
||||||
|
<div class="controls">
|
||||||
<input type="text" name="email" value="<?php echo $email;?>" />
|
<input type="text" name="email" value="<?php echo $email;?>" />
|
||||||
</p>
|
</div>
|
||||||
<p>
|
</div>
|
||||||
<label>WEBSITE</label>
|
<div class="control-group">
|
||||||
<input type="text" name="url" value="" /> <small>e.g. http://westdc.westgis.ac.cn/</small>
|
<label class="control-label">Website</label>
|
||||||
</p>
|
<div class="controls">
|
||||||
<p>
|
<input type="text" name="url" value="" /> <span class="help-block">e.g. http://westdc.westgis.ac.cn/</span>
|
||||||
<label class="required" style="background:none;">内容</label>
|
</div>
|
||||||
<textarea name="content" class="medium half"></textarea>
|
</div>
|
||||||
</p>
|
<div class="control-group">
|
||||||
<p>
|
<label class="control-label">内容</label>
|
||||||
<label class="required">验证码</label>
|
<div class="controls">
|
||||||
|
<textarea name="content" class="span5"></textarea>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="control-group">
|
||||||
|
<label class="control-label">验证码</label>
|
||||||
|
<div class="controls">
|
||||||
<img id="imgcode" style="margin-bottom:-10px;cursor:pointer;border:0px;" src="/service/imgcode/" onClick="this.src=this.src+'?'"><input type="text" name="vdcode" id="vdcode" maxlength="4" value="" />
|
<img id="imgcode" style="margin-bottom:-10px;cursor:pointer;border:0px;" src="/service/imgcode/" onClick="this.src=this.src+'?'"><input type="text" name="vdcode" id="vdcode" maxlength="4" value="" />
|
||||||
</p>
|
</div>
|
||||||
<p>
|
</div>
|
||||||
<label> </label>
|
<div class="control-group">
|
||||||
|
<div class="controls">
|
||||||
<input type="hidden" name="mdtitle" value="<?php echo $md->title;?>" />
|
<input type="hidden" name="mdtitle" value="<?php echo $md->title;?>" />
|
||||||
<input type="hidden" name="uuid" value="<?php echo $md->uuid;?>" />
|
<input type="hidden" name="uuid" value="<?php echo $md->uuid;?>" />
|
||||||
<a class="btn btn-green" id="postcomment" href="javascript:;" onclick="postcomment();">提交</a><button type="reset" id="reset" class="btn">重置</button><span id="returninfo"></span>
|
<a class="btn btn-primary" id="postcomment" href="javascript:;" onclick="postcomment();">提交</a><button type="reset" id="reset" class="btn">重置</button><span id="returninfo"></span>
|
||||||
</p>
|
</div>
|
||||||
|
</div>
|
||||||
</form>
|
</form>
|
||||||
<div id="infobox"></div>
|
<div id="infobox"></div>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="span2">
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
<div class="span4">
|
||||||
|
<div>
|
||||||
|
<table class="table table-striped">
|
||||||
<div id="right">
|
<thead>
|
||||||
<div id="ItemSummary">
|
</thead>
|
||||||
<div id="category">
|
<tbody>
|
||||||
<ul><?php foreach($this->category as $cat): ?>
|
<tr>
|
||||||
|
<td>类别</td>
|
||||||
|
<td>
|
||||||
|
<ul class="nav nav-pills inline unstyled">
|
||||||
|
<?php foreach($this->category as $cat): ?>
|
||||||
<li><a href="/data/category/code/<?php echo $cat->code;?>"><?php echo $this->escape($cat->name_zh);?></a></li>
|
<li><a href="/data/category/code/<?php echo $cat->code;?>"><?php echo $this->escape($cat->name_zh);?></a></li>
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
</ul>
|
</ul>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<?php
|
||||||
|
foreach($this->keys as $k=>$v)
|
||||||
|
{
|
||||||
|
if($v['keytype'] == "category"){ $title = "类别";
|
||||||
|
}else if($v['keytype'] == "discipline"){$title = "学科";
|
||||||
|
}else if($v['keytype'] == "place"){$title = "地点";
|
||||||
|
}else if($v['keytype'] == "theme"){ $title = "主题";
|
||||||
|
}
|
||||||
|
$keys[$title][] = $v['keyword'];
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
<?php foreach($keys as $k=>$v) { ?>
|
||||||
|
<tr>
|
||||||
|
<td><?= $k ?></td>
|
||||||
|
<td>
|
||||||
|
<ul class="nav nav-pills inline unstyled">
|
||||||
|
<?php foreach($v as $keys) { ?>
|
||||||
|
<li><a href="/data/tag/key/"><?= $keys ?></a></li>
|
||||||
|
<?php } ?>
|
||||||
|
</ul>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<?php } ?>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
</div>
|
</div>
|
||||||
<?php
|
<!--
|
||||||
$kt='';
|
|
||||||
$i=0;
|
|
||||||
foreach($this->keys as $cg) :
|
|
||||||
if ($kt==$cg->keytype) :
|
|
||||||
$i+=1;
|
|
||||||
else :
|
|
||||||
if (!empty($kt)) echo '</ul></div>';
|
|
||||||
$kt=$cg->keytype;
|
|
||||||
$i=0;
|
|
||||||
endif;
|
|
||||||
if ($i==0) echo '<div id="'.$cg->keytype.'"><ul>';
|
|
||||||
echo '<li><a href="/data/tag/key/'.urlencode($cg->keyword).'">'.$cg->keyword.'</a></li>';
|
|
||||||
endforeach;
|
|
||||||
echo '</ul></div>';
|
|
||||||
?>
|
|
||||||
|
|
||||||
<!--
|
|
||||||
<?php if ($this->series): ?>
|
<?php if ($this->series): ?>
|
||||||
<div id="series">
|
<div id="series">
|
||||||
<ul><?php foreach($this->series as $serie): ?>
|
<ul><?php foreach($this->series as $serie): ?>
|
||||||
|
@ -255,32 +277,35 @@ echo '</ul></div>';
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
-->
|
-->
|
||||||
<ul id=OtherInfo>
|
<div>
|
||||||
<?php if ($md->fileformat) : ?>
|
<hr />
|
||||||
<li id="fileformat">格式:<?php echo $md->fileformat; ?></li>
|
<h4>数据信息</h4>
|
||||||
<?php endif; ?>
|
<ul class="unstyled">
|
||||||
|
<?php if ($md->fileformat) : ?>
|
||||||
|
<li id="fileformat">格式:<?php echo $md->fileformat; ?></li>
|
||||||
|
<?php endif; ?>
|
||||||
<li id="filesize">大小:<?php echo $md->filesize; ?>MB</li>
|
<li id="filesize">大小:<?php echo $md->filesize; ?>MB</li>
|
||||||
<?php if ($this->downloaded>9) :?>
|
<?php if ($this->downloaded>9) :?>
|
||||||
<li id="downtimes">下载:<?php echo $this->downloaded; ?>次</li>
|
<li id="downtimes">下载:<?php echo $this->downloaded; ?>次</li>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<li id="viewtimes">浏览:<?php echo $this->viewed; ?>次</li>
|
<li id="viewtimes">浏览:<?php echo $this->viewed; ?>次</li>
|
||||||
<!--
|
<!--
|
||||||
<?php if ($md->projection) : ?>
|
<?php if ($md->projection) : ?>
|
||||||
<li id="projection" title="<?= $this->projection; ?>">数据投影:
|
<li id="projection" title="<?= $this->projection; ?>">数据投影:
|
||||||
<?php
|
<?php
|
||||||
$p=explode(" ",$this->projection);
|
$p=explode(" ",$this->projection);
|
||||||
$p=explode("=",$p[0]);
|
$p=explode("=",$p[0]);
|
||||||
if (!empty($p[1]))
|
if (!empty($p[1]))
|
||||||
echo $p[1];
|
echo $p[1];
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (is_numeric($md->projection)) echo 'EPSG_CODE_';
|
if (is_numeric($md->projection)) echo 'EPSG_CODE_';
|
||||||
echo $md->projection;
|
echo $md->projection;
|
||||||
}
|
}
|
||||||
?></li>
|
?></li>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
-->
|
-->
|
||||||
<?php if (!empty($md->timebegin)) : ?>
|
<?php if (!empty($md->timebegin)) : ?>
|
||||||
<li id="datatimes">数据时间范围:<?php echo date('Y-m-d',strtotime($md->timebegin));if (!empty($md->timeend)) echo " 至 ".date('Y-m-d',strtotime($md->timeend)); ?></li>
|
<li id="datatimes">数据时间范围:<?php echo date('Y-m-d',strtotime($md->timebegin));if (!empty($md->timeend)) echo " 至 ".date('Y-m-d',strtotime($md->timeend)); ?></li>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
@ -302,37 +327,37 @@ else
|
||||||
</li>
|
</li>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<li id="datatype">数据共享方式:<?php if ($md->datatype) print "离线"; else print "在线(可直接下载)";?> <a href="javascript:void(0);" id="show-list" onclick="getFileList()" title="">文件列表</a></li>
|
<li id="datatype">数据共享方式:<?php if ($md->datatype) print "离线"; else print "在线(可直接下载)";?> <a href="javascript:void(0);" id="show-list" onclick="getFileList()" title="">文件列表</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
<div id="linkurl">
|
<div id="linkurl">
|
||||||
<?php if ($md->status>0 and $md->status<5) : ?>
|
<?php if ($md->status>0 and $md->status<5) : ?>
|
||||||
<a href="/review/review/uuid/<?php echo $md->uuid; ?>"><img src="/images/review.png" title="此数据正在评审中,我们邀请您对此数据进行评审,以便其能尽快发布!" /></a>
|
<a href="/review/review/uuid/<?php echo $md->uuid; ?>"><img src="/images/review.png" title="此数据正在评审中,我们邀请您对此数据进行评审,以便其能尽快发布!" /></a>
|
||||||
<?php else : if (!$md->datatype) : ?>
|
<?php else : if (!$md->datatype) : ?>
|
||||||
<a href="/data/todownload/?uuid=<?= $md->uuid?>"><img src="/images/download.png" title="直接下载" /></a>
|
<a href="/data/todownload/?uuid=<?= $md->uuid?>"><img src="/images/download.png" title="直接下载" /></a>
|
||||||
<?php else: ?>
|
<?php else: ?>
|
||||||
<a href="/data/order/uuid/<?php echo $md->uuid; ?>"><img src="/images/order.png" title="免费!离线申请此数据(在线数据和离线数据都可申请)"/></a>
|
<a href="/data/order/uuid/<?php echo $md->uuid; ?>"><img src="/images/order.png" title="免费!离线申请此数据(在线数据和离线数据都可申请)"/></a>
|
||||||
<?php endif;endif; ?>
|
<?php endif;endif; ?>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<hr />
|
<hr />
|
||||||
<h2>空间位置</h2>
|
<h4>空间位置</h4>
|
||||||
<div id='watermap'></div>
|
<div id='watermap' style="width:100%;height:300px;"></div>
|
||||||
<hr />
|
<hr />
|
||||||
<h2>联系信息</h2>
|
<h4>联系信息</h4>
|
||||||
<div id="authors">
|
<div id="authors">
|
||||||
<ul>
|
<ul class="unstyled">
|
||||||
<?php
|
<?php
|
||||||
$party_zh=array('resourceProvider'=>'资源提供者','custodian'=>'维护者','owner'=>'拥有者','user'=>'用户','distributor'=>'数据服务联系人','originator'=>'创建者','pointOfContact'=>'联系人','principalInvestigator'=>'数据调查与处理者','processor'=>'处理者','publisher'=>'元数据发布者','author'=>'元数据作者');
|
$party_zh=array('resourceProvider'=>'资源提供者','custodian'=>'维护者','owner'=>'拥有者','user'=>'用户','distributor'=>'数据服务联系人','originator'=>'创建者','pointOfContact'=>'联系人','principalInvestigator'=>'数据调查与处理者','processor'=>'处理者','publisher'=>'元数据发布者','author'=>'元数据作者');
|
||||||
$r='';
|
$r='';
|
||||||
$i=0;
|
$i=0;
|
||||||
foreach($this->authors as $k=>$author) :
|
foreach($this->authors as $k=>$author) :
|
||||||
if ($author->role!=$r)
|
if ($author->role!=$r)
|
||||||
{
|
{
|
||||||
$r=$author->role;
|
$r=$author->role;
|
||||||
$i=0;
|
$i=0;
|
||||||
if ($k>0) echo '</li>';
|
if ($k>0) echo '</li>';
|
||||||
echo '<li>'.$party_zh[$author->role].':';
|
echo '<li>'.$party_zh[$author->role].':';
|
||||||
}
|
}
|
||||||
if ($i>0) echo ',';
|
if ($i>0) echo ',';
|
||||||
$i+=1;
|
$i+=1;
|
||||||
if (!empty($author->email) && $r!='principalInvestigator')
|
if (!empty($author->email) && $r!='principalInvestigator')
|
||||||
|
@ -344,21 +369,23 @@ if ($author->role!=$r)
|
||||||
echo $author->organisation;
|
echo $author->organisation;
|
||||||
echo '</strong>';
|
echo '</strong>';
|
||||||
if (!empty($author->email)) echo '</a>';
|
if (!empty($author->email)) echo '</a>';
|
||||||
if ($k+1==count($this->authors)) echo '</li>';
|
if ($k+1==count($this->authors)) echo '</li>';
|
||||||
endforeach;
|
endforeach;
|
||||||
?>
|
?>
|
||||||
</ul>
|
</ul>
|
||||||
<hr />
|
<hr />
|
||||||
<ul>
|
<ul class="unstyled">
|
||||||
<li>元数据更新时间:<?php print date('Y-m-d',strtotime($md->ts_created)); ?> <a href="/service/xml/uuid/<?php echo $md->uuid;?>"><img src="/images/xml.gif" alt="查看XML源文件"></a><a href="/service/doc/uuid/<?php echo $md->uuid; ?>"><img src="/images/doc-icon.png" alt="Word doc格式"></a></li>
|
<li>元数据更新时间:<?php print date('Y-m-d',strtotime($md->ts_created)); ?> <a href="/service/xml/uuid/<?php echo $md->uuid;?>"><img src="/images/xml.gif" alt="查看XML源文件"></a><a href="/service/doc/uuid/<?php echo $md->uuid; ?>"><img src="/images/doc-icon.png" alt="Word doc格式"></a></li>
|
||||||
<!--<li><a href="/data/detail/id/<?php echo $md->id;?>">详细元数据</a></li>-->
|
<!--<li><a href="/data/detail/id/<?php echo $md->id;?>">详细元数据</a></li>-->
|
||||||
<?php if($this->version->c>0):?>
|
<?php if($this->version->c>0):?>
|
||||||
<li id="dataversion">版本历史:<a href="javascript:void(0);" onclick="dataVersion()" title=""><?= $this->version->c ?> 个 <img src="/images/list_extensions.gif" style="vertical-align:middle" /></a></li>
|
<li id="dataversion">版本历史:<a href="javascript:void(0);" onclick="dataVersion()" title=""><?= $this->version->c ?> 个 <img src="/images/list_extensions.gif" style="vertical-align:middle" /></a></li>
|
||||||
<?php endif;?>
|
<?php endif;?>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
<hr />
|
||||||
|
<div class="pull-left">分享到</div>
|
||||||
<!-- JiaThis Button BEGIN -->
|
<!-- JiaThis Button BEGIN -->
|
||||||
<div class="jiathis_style" style="padding-left:12px;">
|
<div class="jiathis_style" style="margin-left:10px;">
|
||||||
<a class="jiathis_button_tsina"></a>
|
<a class="jiathis_button_tsina"></a>
|
||||||
<a class="jiathis_button_linkedin"></a>
|
<a class="jiathis_button_linkedin"></a>
|
||||||
<a class="jiathis_button_googleplus"></a>
|
<a class="jiathis_button_googleplus"></a>
|
||||||
|
@ -372,16 +399,10 @@ endforeach;
|
||||||
<a class="jiathis_counter_style"></a>
|
<a class="jiathis_counter_style"></a>
|
||||||
</div>
|
</div>
|
||||||
<!-- JiaThis Button END -->
|
<!-- JiaThis Button END -->
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div id="left">
|
|
||||||
|
|
||||||
<hr />
|
|
||||||
|
|
||||||
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div>
|
|
||||||
</div>
|
|
||||||
<div id="window-outter" style="display:none;">
|
<div id="window-outter" style="display:none;">
|
||||||
<div id="window-inner">
|
<div id="window-inner">
|
||||||
<div id="window-content-container">
|
<div id="window-content-container">
|
||||||
|
|
|
@ -78,6 +78,12 @@ class Theme
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
|
|
||||||
|
'jplayer' => array(
|
||||||
|
$this->ScriptKey => array(
|
||||||
|
'/js/lib/jplayer/jquery.jplayer.min.js'
|
||||||
|
)
|
||||||
|
),
|
||||||
|
|
||||||
//loadinglayer
|
//loadinglayer
|
||||||
'slides' => array(
|
'slides' => array(
|
||||||
$this->ScriptKey => array(
|
$this->ScriptKey => array(
|
||||||
|
|
Loading…
Reference in New Issue