2013-05-23 08:56:59 +00:00
|
|
|
|
<?php
|
2014-07-23 08:38:32 +00:00
|
|
|
|
$this->headTitle($this->config->title->site);
|
|
|
|
|
$this->headTitle($this->config->title->author);
|
|
|
|
|
$this->headTitle()->setSeparator(' - ');
|
|
|
|
|
$this->breadcrumb('<a href="/">首页</a>');
|
|
|
|
|
$this->headLink()->appendStylesheet('/css/admin.css');
|
|
|
|
|
// $this->headLink()->appendStylesheet('/css/author.css');
|
|
|
|
|
$this->breadcrumb()->setSeparator(' > ');
|
|
|
|
|
$this->theme->AppendPlus($this,'colorbox');
|
|
|
|
|
$this->theme->AppendPlus($this,'admin_plugin');
|
2013-05-23 08:56:59 +00:00
|
|
|
|
?>
|
|
|
|
|
<style>
|
|
|
|
|
table thead tr th {background:#EBF2F6;}
|
|
|
|
|
</style>
|
2014-07-23 08:38:32 +00:00
|
|
|
|
<div class="row">
|
|
|
|
|
<div class="hidden-sm hidden-xs col-md-2">
|
2013-05-23 08:56:59 +00:00
|
|
|
|
<?= $this->partial('data/left.phtml'); ?>
|
|
|
|
|
</div>
|
2014-07-23 08:38:32 +00:00
|
|
|
|
<div class="col-md-10 col-sm-12 span10">
|
|
|
|
|
<div class=" form-group">
|
2014-05-18 04:56:23 +00:00
|
|
|
|
<?= $this->partial('data/fund-nav.phtml',array('ac'=>$this->ac,'uuid'=>$this->uuid)); ?>
|
2013-05-23 08:56:59 +00:00
|
|
|
|
</div>
|
2014-07-23 08:38:32 +00:00
|
|
|
|
|
|
|
|
|
<div class="input-group form-group">
|
2014-09-23 13:50:03 +00:00
|
|
|
|
<form id="datasearch" class="search_form input-group" action="">
|
2014-07-23 08:38:32 +00:00
|
|
|
|
<input class="form-control" type="text" id="keyword" name="q" value="<?php if(!empty($this->q)) echo $this->q; ?>" />
|
|
|
|
|
<span class="input-group-btn"><button type="submit" class="btn btn-default" id="search_btn">搜索</button></span>
|
2013-05-23 08:56:59 +00:00
|
|
|
|
</form>
|
|
|
|
|
</div>
|
2014-07-23 08:38:32 +00:00
|
|
|
|
|
2013-05-23 08:56:59 +00:00
|
|
|
|
<?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">
|
2014-05-18 04:56:23 +00:00
|
|
|
|
<thead>
|
2013-05-23 08:56:59 +00:00
|
|
|
|
<tr>
|
2014-05-18 04:56:23 +00:00
|
|
|
|
<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="100">操作</th>
|
2013-05-23 08:56:59 +00:00
|
|
|
|
</tr>
|
|
|
|
|
</thead>
|
|
|
|
|
<tbody>
|
2014-05-18 04:56:23 +00:00
|
|
|
|
<?php
|
|
|
|
|
if($this->page > 1)
|
|
|
|
|
{
|
|
|
|
|
$autoindex = ($this->page - 1) * $this->pagelimit;
|
|
|
|
|
}else{
|
|
|
|
|
$autoindex=0;
|
|
|
|
|
}
|
2013-05-23 08:56:59 +00:00
|
|
|
|
foreach ($this->paginator as $item):
|
|
|
|
|
$autoindex++;?>
|
|
|
|
|
<tr id="DataLine_<?= $item['mfid']?>">
|
2014-05-18 04:56:23 +00:00
|
|
|
|
<td>
|
|
|
|
|
[<?= $autoindex ?>]
|
|
|
|
|
<?= $item['title'] ?>
|
|
|
|
|
</td>
|
|
|
|
|
<td><?= $item['fund_id'] ?></td>
|
2013-05-23 08:56:59 +00:00
|
|
|
|
<td><?= $item['fund_type'] ?></td>
|
2014-05-18 04:56:23 +00:00
|
|
|
|
<td><?= $item['title_en'] ?></td>
|
|
|
|
|
<td><?= $item['fund_type_en'] ?></td>
|
|
|
|
|
<td><?= $item['mdcount'] ?></td>
|
2013-05-23 08:56:59 +00:00
|
|
|
|
<td>
|
2014-05-18 04:56:23 +00:00
|
|
|
|
<a href="/admin/data/fund/ac/data/id/<?= $item['id'] ?>">数据</a>
|
|
|
|
|
<a href="/admin/data/fund/ac/add/id/<?= $item['id']?>">编辑</a>
|
|
|
|
|
<a href="/admin/data/fund/ac/delete/id/<?= $item['id']?>">删除</a>
|
2013-05-23 08:56:59 +00:00
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
2014-05-18 04:56:23 +00:00
|
|
|
|
<?php endforeach; ?>
|
2013-05-23 08:56:59 +00:00
|
|
|
|
</tbody>
|
|
|
|
|
</table>
|
|
|
|
|
<?php endif; ?>
|
|
|
|
|
<div class="pagenavi"><?= $this->paginator; ?></div>
|
|
|
|
|
</div>
|
|
|
|
|
<?php } ?>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2014-05-18 04:56:23 +00:00
|
|
|
|
<!-- //页面内容 -->
|