westdc-zf1/application/default/views/scripts/heihe/project-index.phtml

90 lines
3.9 KiB
PHTML
Raw Normal View History

<?php
$this->headTitle($this->config->title->site);
$this->headTitle($this->config->title->data);
$this->headTitle()->setSeparator(' - ');
$this->headLink()->appendStylesheet('/css/water.css');
$this->breadcrumb('<a href="/">首页</a>');
$this->breadcrumb('<a href="/data">'.$this->config->title->data.'</a>');
$this->breadcrumb('<a href="/heihe/">'.$this->config->title->heihe.'</a>');
$this->breadcrumb('数据汇交计划');
$this->breadcrumb()->setSeparator(' > ');
$this->theme->AppendPlus($this,'colorbox');
2013-06-09 15:20:15 +00:00
$this->nav[] = array('link'=>"/heihe/projects",'title'=>'数据汇交计划');
?>
2013-06-09 15:20:15 +00:00
<?= $this->render('breadcrumbs.phtml') ?>
<div class="row">
<div class="span2">
<?= $this->partial('heihe/navi.phtml'); ?>
</div>
<div class="span10">
<?php if(!empty($this->error)) {?>
<div id="intro"><?php echo $this->error;?></div>
<?php } else{ ?>
<div style="overflow:hidden;">
<div>
2013-06-09 15:20:15 +00:00
<ul class="nav nav-tabs">
<li id="Nav-projects-index"><a class="text-shadow" href="/heihe/projects/">所有项目</a></li>
<li id="Nav-projects-my"><a class="text-shadow" href="/heihe/projects/ac/my">我负责的</a></li>
<li id="Nav-projects-submit"><a class="text-shadow" href="/heihe/projects/ac/submit">已提交</a></li>
<li id="Nav-projects-submitting"><a class="text-shadow" href="/heihe/projects/ac/submitting">专家未审核</a></li>
<li id="Nav-projects-unsubmit"><a class="text-shadow" href="/heihe/projects/ac/unsubmit">未提交</a></li>
</ul>
</div>
<?php if(!empty($this->searchLink)){ ?>
<div class="input-append">
<form id="datasearch" class="search_form" action="<?= $this->searchLink ?>">
<input type="text" id="keyword" name="q" value="<?= $this->searchKeyword; ?>" />
<button type="submit" class="btn" id="search_btn">搜索</button>
</form>
</div>
<?php }?>
<div>
<?php
if (count($this->paginator)):
echo '<ul class="unstyled">';
if(!empty($this->page))
{
$autoindex = ($this->page-1) * $this->pageLimit;
}else{
$autoindex=0;
}
foreach ($this->paginator as $item):
$autoindex++;
?>
<li class="well well-small">
2013-06-09 15:20:15 +00:00
<p><span class="title"><?= $autoindex ?>.<?php echo $item['title'];?></span> <a href="/heihe/fund/id/<?php echo $item['fid'];?>">数据产出</a></p>
<p>
编号:<?= $item['code'];?> |
负责人:<?= $item['name'];?> |
开始时间:<?= $item['pstart'];?> | 
状态:<?= $item['status'];?>
<?php if(!empty($item['attachid'])) { ?>
 | <a href="/service/attach/id/<?= $item['attachid'];?>">下载</a>
<?php } ?>
</p>
<?php
if($this->user_email == $item['email'])
{ ?>
<p><a href="/heihe/projects/ac/upload/pid/<?= $item['id']?>" class="iframe">上传计划</a></p>
<?php }
?>
</li>
<?php
endforeach;
echo "</ul>";
endif; ?>
</div>
<div class="pagenavi"><?= $this->paginator; ?></div>
</div>
<?php } ?>
</div>
</div>
<script type="text/javascript" charset="utf-8">
$(document).ready(function(){
$(".iframe").colorbox({iframe:true, width:"80%", height:"80%"});
2013-06-09 15:20:15 +00:00
$('#Nav-<?php echo $this->tabID; ?>').addClass("active");
});
</script>