117 lines
5.5 KiB
PHTML
117 lines
5.5 KiB
PHTML
<?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/admin.css');
|
||
// $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">
|
||
<div class="hidden-sm hidden-xs col-md-2">
|
||
<?= $this->partial('data/left.phtml'); ?>
|
||
</div>
|
||
<div class="col-md-10 col-sm-12 span10">
|
||
<div class=" form-group">
|
||
<?= $this->partial('data/fund-nav.phtml',array('ac'=>$this->ac,'uuid'=>$this->uuid)); ?>
|
||
</div>
|
||
|
||
<div class="input-group form-group">
|
||
<form id="datasearch" class="search_form input-group" action="">
|
||
<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>
|
||
</form>
|
||
</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>项目名称
|
||
<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>
|
||
</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'] ?>
|
||
</td>
|
||
<td><?= $item['fund_id'] ?></td>
|
||
<td><?= $item['fund_type'] ?></td>
|
||
<td><?= $item['title_en'] ?></td>
|
||
<td><?= $item['fund_type_en'] ?></td>
|
||
<td><?= $item['mdcount'] ?></td>
|
||
<td>
|
||
<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>
|
||
</td>
|
||
</tr>
|
||
<?php endforeach; ?>
|
||
</tbody>
|
||
</table>
|
||
<?php endif; ?>
|
||
<div class="pagenavi"><?= $this->paginator; ?></div>
|
||
</div>
|
||
<?php } ?>
|
||
</div>
|
||
</div>
|
||
<!-- //页面内容 -->
|