2014-06-06 01:02:29 +00:00
|
|
|
<?php
|
|
|
|
$this->headTitle($this->config->title->site);
|
|
|
|
$this->headTitle('后台管理');
|
|
|
|
$this->headTitle()->setSeparator(' - ');
|
|
|
|
$this->breadcrumb('<a href="/">首页</a>');
|
2014-09-13 02:18:32 +00:00
|
|
|
$this->headLink()->appendStylesheet('/css/admin.css');
|
2014-06-06 01:02:29 +00:00
|
|
|
$this->breadcrumb('<a href="/admin/data">数据管理</a>');
|
|
|
|
$this->breadcrumb('项目管理');
|
|
|
|
$this->breadcrumb()->setSeparator(' > ');
|
|
|
|
$this->theme->AppendPlus($this,'colorbox');
|
|
|
|
$this->theme->AppendPlus($this,'admin_plugin');
|
|
|
|
$this->theme->AppendModel($this,'admin-data-fund');
|
|
|
|
?>
|
|
|
|
<style>
|
|
|
|
table thead tr th {background:#EBF2F6;}
|
|
|
|
</style>
|
2014-09-13 02:18:32 +00:00
|
|
|
<div class="row">
|
|
|
|
<div class="hidden-sm hidden-xs col-md-2">
|
2014-06-06 01:02:29 +00:00
|
|
|
<?= $this->partial('data/left.phtml'); ?>
|
|
|
|
</div>
|
2014-09-13 02:18:32 +00:00
|
|
|
<div class="col-md-10 col-sm-12">
|
2014-06-06 01:02:29 +00:00
|
|
|
<div>
|
|
|
|
<?= $this->partial('data/fund-nav.phtml',array('ac'=>$this->ac,'uuid'=>$this->uuid)); ?>
|
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
<h3><?php echo $this->md['title']; ?> <a href="/data/<?php echo $this->uuid; ?>">查看</a></h3>
|
|
|
|
<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; ?>" />
|
|
|
|
<input type="hidden" name="order" value="<?php if(!empty($this->search_order)) echo $this->search_order; ?>" />
|
|
|
|
<input type="hidden" name="sort" value="<?php if(!empty($this->search_sort)) echo $this->search_sort; ?>" />
|
|
|
|
<button type="submit" class="btn" id="search_btn">搜索项目(数据外搜索,可以添加到数据)</button>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<?php if(!empty($this->error)) { ?>
|
|
|
|
<?= $this->error ?>
|
|
|
|
<?php } ?>
|
|
|
|
<?php if(!empty($this->msg)) { ?>
|
|
|
|
<?= $this->msg ?>
|
|
|
|
<?php } else{ ?>
|
|
|
|
|
|
|
|
<div id="datalist">
|
|
|
|
<?php if (count($this->paginator)): ?>
|
|
|
|
<table class="table table-bordered table-striped">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>项目名称
|
|
|
|
<a href="?order=title&sort=ASC&q=<?php if(!empty($this->q)) echo $this->q; ?>"><i class="icon-arrow-up"></i></a>
|
|
|
|
<a href="?order=title&sort=DESC&q=<?php if(!empty($this->q)) echo $this->q; ?>"><i class="icon-arrow-down"></i></a>
|
|
|
|
</th>
|
|
|
|
<th>编号
|
|
|
|
<a href="?order=fund_id&sort=ASC&q=<?php if(!empty($this->q)) echo $this->q; ?>"><i class="icon-arrow-up"></i></a>
|
|
|
|
<a href="?order=fund_id&sort=DESC&q=<?php if(!empty($this->q)) echo $this->q; ?>"><i class="icon-arrow-down"></i></a>
|
|
|
|
</th>
|
|
|
|
<th>类型
|
|
|
|
<a href="?order=fund_type&sort=ASC&q=<?php if(!empty($this->q)) echo $this->q; ?>"><i class="icon-arrow-up"></i></a>
|
|
|
|
<a href="?order=fund_type&sort=DESC&q=<?php if(!empty($this->q)) echo $this->q; ?>"><i class="icon-arrow-down"></i></a>
|
|
|
|
</th>
|
|
|
|
<th>英文标题
|
|
|
|
<a href="?order=title_en&sort=ASC&q=<?php if(!empty($this->q)) echo $this->q; ?>"><i class="icon-arrow-up"></i></a>
|
|
|
|
<a href="?order=title_en&sort=DESC&q=<?php if(!empty($this->q)) echo $this->q; ?>"><i class="icon-arrow-down"></i></a>
|
|
|
|
</th>
|
|
|
|
<th>英文类型
|
|
|
|
<a href="?order=fund_type_en&sort=ASC&q=<?php if(!empty($this->q)) echo $this->q; ?>"><i class="icon-arrow-up"></i></a>
|
|
|
|
<a href="?order=fund_type_en&sort=DESC&q=<?php if(!empty($this->q)) echo $this->q; ?>"><i class="icon-arrow-down"></i></a>
|
|
|
|
</th>
|
|
|
|
<th>序</th>
|
|
|
|
<th width="60">操作</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
<?php
|
|
|
|
if($this->page > 1)
|
|
|
|
{
|
|
|
|
$autoindex = ($this->page - 1) * $this->pagelimit;
|
|
|
|
}else{
|
|
|
|
$autoindex=0;
|
|
|
|
}
|
|
|
|
foreach ($this->paginator as $item):
|
|
|
|
$autoindex++;?>
|
|
|
|
<tr id="DataLine_<?= $item['mfid']?>">
|
|
|
|
<td>
|
|
|
|
[<?= $autoindex ?>]
|
|
|
|
<?= $item['title'] ?> <a href="/admin/data/fund/ac/add/id/<?= $item['id']?>">项目编辑</a>
|
|
|
|
<a href="/admin/data/fund/ac/data/id/<?= $item['id'] ?>">数据</a>
|
|
|
|
</td>
|
|
|
|
<td><?= $item['fund_id'] ?></td>
|
|
|
|
<td><?= $item['fund_type'] ?></td>
|
|
|
|
<td><?= $item['title_en'] ?></td>
|
|
|
|
<td><?= $item['fund_type_en'] ?></td>
|
|
|
|
<td><?= $item['place'] ?></td>
|
|
|
|
<td>
|
|
|
|
<a href="javascript:void(0);" onclick="$('#mdfund')[0].reset();mdfund.edit(<?= $item['mfid']?>,<?= $item['id']?>,'<?= $this->uuid ?>',<?= $item['place']?>)">编辑</a>
|
|
|
|
<a href="/admin/data/fund/ac/remove/id/<?= $item['mfid']?>">移除</a>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<?php endforeach; ?>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
<?php endif; ?>
|
|
|
|
<div class="pagenavi"><?= $this->paginator; ?></div>
|
|
|
|
</div>
|
|
|
|
<?php } ?>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<!-- //页面内容 -->
|
|
|
|
<?= $this->partial('data/fund-mdfund-form.phtml'); ?>
|