2013-05-23 08:56:59 +00:00
|
|
|
|
<?php
|
|
|
|
|
$this->headTitle($this->config->title->site);
|
|
|
|
|
$this->headTitle($this->config->title->author);
|
|
|
|
|
$this->headTitle()->setSeparator(' - ');
|
|
|
|
|
$this->breadcrumb('<a href="/">首页</a>');
|
|
|
|
|
$this->headLink()->appendStylesheet('/css/author.css');
|
|
|
|
|
$this->breadcrumb()->setSeparator(' > ');
|
|
|
|
|
$this->theme->AppendPlus($this,'colorbox');
|
|
|
|
|
$this->theme->AppendPlus($this,'admin_plugin');
|
|
|
|
|
?>
|
|
|
|
|
<style>
|
|
|
|
|
table thead tr th {background:#EBF2F6;}
|
|
|
|
|
</style>
|
|
|
|
|
<div class="row-fluid">
|
2013-05-24 02:34:47 +00:00
|
|
|
|
<div class="span2">
|
2013-05-23 08:56:59 +00:00
|
|
|
|
<?= $this->partial('data/left.phtml'); ?>
|
|
|
|
|
</div>
|
2013-05-24 02:34:47 +00:00
|
|
|
|
<div class="span10">
|
2013-05-23 08:56:59 +00:00
|
|
|
|
<div>
|
|
|
|
|
<ul class="nav nav-tabs">
|
2013-05-24 02:34:47 +00:00
|
|
|
|
<li class="active"><a href="/admin/data/fund/ac/data">数据相关</a></li>
|
|
|
|
|
<li><a href="/admin/data/fund/">所有项目</a></li>
|
|
|
|
|
<li><a href="/admin/data/fund/ac/add">添加新项目</a></li>
|
2013-05-23 08:56:59 +00:00
|
|
|
|
</ul>
|
|
|
|
|
</div>
|
|
|
|
|
<?php if(!empty($this->md)) { ?>
|
|
|
|
|
<div>
|
|
|
|
|
<?php if(empty($this->ct)) { ?>
|
|
|
|
|
<a class="btn btn-primary pull-right" href="/author/fund/ac/formd/uuid/<?= $this->md['uuid'] ?>"><i class="icon-plus"></i>为此数据添加项目</a>
|
|
|
|
|
<?php }else{ ?>
|
|
|
|
|
<a class="pull-right btn" href="/author/fund/uuid/<?= $this->md['uuid'] ?>">返回</a>
|
|
|
|
|
<div class="pull-right label label-info">点击“添加此项目”即可将项目添加到元数据</div>
|
|
|
|
|
<?php } ?>
|
|
|
|
|
<h3>《<?= $this->md['title'] ?>》 的支持项目</h3>
|
|
|
|
|
<hr />
|
|
|
|
|
</div>
|
|
|
|
|
<?php } ?>
|
|
|
|
|
<div>
|
|
|
|
|
<div class="input-append">
|
|
|
|
|
<form id="datasearch" class="search_form" action="">
|
|
|
|
|
<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(!empty($this->error)) { ?>
|
|
|
|
|
<?php if(empty($this->AlertType)) $AlertType = "alert-error";else $AlertType = $this->AlertType;?>
|
|
|
|
|
<div class="alert alert-block fade in <?= $AlertType ?>" id="Alert-error-box">
|
|
|
|
|
<a class="close" data-dismiss="alert" href="#">×</a>
|
|
|
|
|
<?php if(!is_array($this->error)) { ?><h4 class="alert-heading"><?= $this->error ?></h4><?php } else { ?>
|
|
|
|
|
<ul>
|
|
|
|
|
<?php foreach($this->error as $v) { ?>
|
|
|
|
|
<li><?= $v ?></li>
|
|
|
|
|
<?php } ?>
|
|
|
|
|
</ul>
|
|
|
|
|
<?php } ?>
|
|
|
|
|
</div>
|
|
|
|
|
<?php } ?>
|
|
|
|
|
<?php if(!empty($this->msg)) { ?>
|
|
|
|
|
<div class="alert <?= $this->AlertType;?>">
|
|
|
|
|
<a data-dismiss="alert" class="close">×</a>
|
|
|
|
|
<?php echo $this->msg ?>
|
|
|
|
|
</div>
|
|
|
|
|
<?php if(!empty($this->jump_url)) { ?>
|
|
|
|
|
<script language="javascript">setTimeout("self.location='<?php echo $this->jump_url ?>'",3000);</script>
|
|
|
|
|
<?php } ?>
|
|
|
|
|
<?php } else{ ?>
|
|
|
|
|
<div id="datalist">
|
|
|
|
|
<?php if (count($this->paginator)): ?>
|
|
|
|
|
<table class="table table-bordered table-striped">
|
|
|
|
|
<thead>
|
|
|
|
|
<tr>
|
|
|
|
|
<th>名称</th>
|
|
|
|
|
<th>项目编号</th>
|
|
|
|
|
<th>项目类型</th>
|
|
|
|
|
<th>数据个数</th>
|
|
|
|
|
<th width="70">操作</th>
|
|
|
|
|
</tr>
|
|
|
|
|
</thead>
|
|
|
|
|
<tbody>
|
|
|
|
|
<?php $autoindex=0;
|
|
|
|
|
foreach ($this->paginator as $item):
|
|
|
|
|
$autoindex++;?>
|
|
|
|
|
<?php if(empty($this->md)) { ?>
|
|
|
|
|
<tr id="DataLine_<?= $item['id']?>">
|
|
|
|
|
<?php }else{?>
|
|
|
|
|
<tr id="DataLine_<?= $item['mfid']?>">
|
|
|
|
|
<?php }?>
|
|
|
|
|
<td><?= $item['title'] ?></td>
|
|
|
|
|
<td><?= $item['fund_id'] ?></td>
|
|
|
|
|
<td><?= $item['fund_type'] ?></td>
|
|
|
|
|
<th><?= $item['mds'] ?></th>
|
|
|
|
|
<td>
|
2013-06-21 08:48:51 +00:00
|
|
|
|
<a href="/data/fund/ac/dataview/id/<?= $item['id'] ?>">查看数据</a>
|
2013-05-23 08:56:59 +00:00
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<?php endforeach; ?>
|
|
|
|
|
</tbody>
|
|
|
|
|
</table>
|
|
|
|
|
<?php endif; ?>
|
|
|
|
|
<div class="pagenavi"><?= $this->paginator; ?></div>
|
|
|
|
|
</div>
|
|
|
|
|
<?php } ?>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<!-- //页面内容 -->
|
|
|
|
|
<script>
|
|
|
|
|
var info = {
|
|
|
|
|
btn_prefix : "delbtn_",
|
|
|
|
|
item_prefix : "DataLine_",
|
|
|
|
|
url : "/author/fund/ac/mdfunddel/uuid/<?= $this->md['uuid'] ?>"
|
|
|
|
|
}
|
|
|
|
|
</script>
|