50 lines
1.9 KiB
PHTML
50 lines
1.9 KiB
PHTML
<?php
|
|
$this->headTitle($this->config->title->site);
|
|
$this->headTitle($this->config->title->author);
|
|
$this->headTitle()->setSeparator(' - ');
|
|
$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 class="row">
|
|
<div class="span3">
|
|
<?= $this->partial('author/navi.phtml'); ?>
|
|
</div>
|
|
<div class="span9">
|
|
|
|
<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 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['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> |
|
|
<a href="/service/attach/zip/<?php echo $item['uuid'];?>">打包下载</a>
|
|
</p>
|
|
</li>
|
|
<?php endforeach;
|
|
echo "</ul>";
|
|
endif; ?>
|
|
<div class="pagenavi"><?= $this->paginator; ?></div>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
<script>
|
|
$(".iframe").colorbox({iframe:true, width:"60%", height:"80%"});
|
|
$(".inline").colorbox({inline:true, width:"50%"});
|
|
</script>
|