westdc-zf1/application/default/views/scripts/author/document.phtml

50 lines
1.9 KiB
PHTML
Raw Normal View History

<?php
$this->headTitle($this->config->title->site);
$this->headTitle($this->config->title->author);
$this->headTitle()->setSeparator(' - ');
2013-03-28 07:12:10 +00:00
$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(' > ');
?>
2013-03-28 07:12:10 +00:00
<div class="row">
<div class="span3">
<?= $this->partial('author/navi.phtml'); ?>
</div>
2013-03-28 07:12:10 +00:00
<div class="span9">
2013-03-28 07:12:10 +00:00
<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)):
2013-03-28 07:12:10 +00:00
echo '<ul class="unstyled">';
$autoindex=0;
foreach ($this->paginator as $item):
$autoindex++;?>
2013-03-28 07:12:10 +00:00
<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>
2013-03-28 07:12:10 +00:00
</div>
</div>
<script>
2013-03-28 07:12:10 +00:00
$(".iframe").colorbox({iframe:true, width:"60%", height:"80%"});
$(".inline").colorbox({inline:true, width:"50%"});
</script>