#302 增加了查看数据作者列表的视图

This commit is contained in:
Li Jianxuan 2012-03-21 07:56:38 +00:00
parent 6247e46286
commit dfc99ecdb9
2 changed files with 49 additions and 4 deletions

View File

@ -34,7 +34,7 @@ $this->breadcrumb()->setSeparator(' > ');
<li> <li>
<a href="/data/<?php echo $item['uuid'];?>" target="_blank" class="title"><?php echo $item['title'];?></a> <a href="/data/<?php echo $item['uuid'];?>" target="_blank" class="title"><?php echo $item['title'];?></a>
<?php if($item['status']==1) : ?> <?php if($item['status']==1) : ?>
<span class="dtctrlplan">【操作:申请管理|<a href="/author/comment/ac/view/uuid/<?php echo $item['uuid']; ?>">反馈管理</a>|修改元数据|管理数据参考文献|<a href="javascript:;" onclick="showAuthors(<?php echo $item['uuid']; ?>)">查看数据作者</a></span> <span class="dtctrlplan">【操作:申请管理|<a href="/author/comment/ac/view/uuid/<?php echo $item['uuid']; ?>">反馈管理</a>|修改元数据|管理数据参考文献|<a href="/author/viewauthors/uuid/<?php echo $item['uuid']; ?>">查看数据作者</a></span>
<?php endif; ?> <?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 echo mb_strlen($item['description'])>400?$this->escape(mb_substr($item['description'],0,400,'UTF-8').'...'):$this->escape($item['description']); ?></p>
@ -83,7 +83,4 @@ function apply(uuid){
}); });
} }
function isObject(obj){if(typeof(obj)=='object'){return true;}else if(typeof(obj)!='object'){return false;}else{return false;}} function isObject(obj){if(typeof(obj)=='object'){return true;}else if(typeof(obj)!='object'){return false;}else{return false;}}
function showAuthors(uuid){
alert($(this).offset().left);
}
</script> </script>

View File

@ -0,0 +1,48 @@
<?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>