#304 修改了数据反馈视图

This commit is contained in:
Li Jianxuan 2012-03-21 04:04:09 +00:00
parent 63b146aef5
commit 6247e46286
7 changed files with 11 additions and 158 deletions

View File

@ -34,15 +34,10 @@ $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/authored/ac/view/uuid/<?php echo $item['uuid']; ?>">反馈管理</a>|修改元数据|管理数据参考文献】</span> <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>
<?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>
<?php if($item['status']==1) : ?>
<p>
数据作者:
</p>
<?php endif; ?>
<p> <p>
<?php <?php
if ($item['status']==0) if ($item['status']==0)
@ -88,4 +83,7 @@ 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

@ -1,48 +0,0 @@
<?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 active"><a class="text-shadow" href="/author/authored">元数据反馈概况</a></li>
<li class="box-shadow"><a class="text-shadow" href="/author/authored/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>评论者:<?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>
<!-- //页面内容 -->
<script>
$('#wapper').width($('body').width()-300);
</script>

View File

@ -1,49 +0,0 @@
<?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/authored">元数据反馈概况</a></li>
<li class="box-shadow active"><a class="text-shadow" href="/author/authored/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>
</div>
<!-- //页面内容 -->
<script>
$('#wapper').width($('body').width()-300);
</script>

View File

@ -1,48 +0,0 @@
<?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 active"><a class="text-shadow" href="/author/authored">元数据反馈概况</a></li>
<li class="box-shadow"><a class="text-shadow" href="/author/authored/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/authored/ac/view/uuid/<?php echo $item['uuid'];?>"><?php echo $item['c'];?></a> <a href="/author/authored/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>
<!-- //页面内容 -->
<script>
$('#wapper').width($('body').width()-300);
</script>

View File

@ -21,8 +21,8 @@ $this->breadcrumb()->setSeparator(' > ');
<div id="wapper"> <div id="wapper">
<div id="tabs-controller"> <div id="tabs-controller">
<ul> <ul>
<li class="box-shadow active"><a class="text-shadow" href="/author/authored">元数据反馈概况</a></li> <li class="box-shadow active"><a class="text-shadow" href="/author/comment">元数据反馈概况</a></li>
<li class="box-shadow"><a class="text-shadow" href="/author/authored/ac/listall">所有元数据反馈</a></li> <li class="box-shadow"><a class="text-shadow" href="/author/comment/ac/listall">所有元数据反馈</a></li>
</ul> </ul>
</div> </div>
<div id="datalist"> <div id="datalist">

View File

@ -21,8 +21,8 @@ $this->breadcrumb()->setSeparator(' > ');
<div id="wapper"> <div id="wapper">
<div id="tabs-controller"> <div id="tabs-controller">
<ul> <ul>
<li class="box-shadow"><a class="text-shadow" href="/author/authored">元数据反馈概况</a></li> <li class="box-shadow"><a class="text-shadow" href="/author/comment">元数据反馈概况</a></li>
<li class="box-shadow active"><a class="text-shadow" href="/author/authored/ac/listall">所有元数据反馈</a></li> <li class="box-shadow active"><a class="text-shadow" href="/author/comment/ac/listall">所有元数据反馈</a></li>
</ul> </ul>
</div> </div>
<div id="datalist"> <div id="datalist">

View File

@ -21,8 +21,8 @@ $this->breadcrumb()->setSeparator(' > ');
<div id="wapper"> <div id="wapper">
<div id="tabs-controller"> <div id="tabs-controller">
<ul> <ul>
<li class="box-shadow active"><a class="text-shadow" href="/author/authored">元数据反馈概况</a></li> <li class="box-shadow active"><a class="text-shadow" href="/author/comment">元数据反馈概况</a></li>
<li class="box-shadow"><a class="text-shadow" href="/author/authored/ac/listall">所有元数据反馈</a></li> <li class="box-shadow"><a class="text-shadow" href="/author/comment/ac/listall">所有元数据反馈</a></li>
</ul> </ul>
</div> </div>
<div id="datalist"> <div id="datalist">
@ -34,7 +34,7 @@ $this->breadcrumb()->setSeparator(' > ');
$autoindex++;?> $autoindex++;?>
<li> <li>
<p><a href="/data/<?php echo $item['uuid'];?>" target="_blank"><?php echo $item['title'];?></a></p> <p><a href="/data/<?php echo $item['uuid'];?>" target="_blank"><?php echo $item['title'];?></a></p>
<p>反馈数: <a href="/author/authored/ac/view/uuid/<?php echo $item['uuid'];?>"><?php echo $item['c'];?></a> <a href="/author/authored/ac/view/uuid/<?php echo $item['uuid'];?>" class="more">查看详细</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> </li>
<?php endforeach; <?php endforeach;
echo "</ul>"; echo "</ul>";