48 lines
1.2 KiB
PHTML
48 lines
1.2 KiB
PHTML
<?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>
|