westdc-zf1/application/admin/views/scripts/sys/regions.phtml

67 lines
3.0 KiB
PHTML
Raw Normal View History

<?php
$this->headTitle($this->config->title->site);
$this->headTitle('后台管理');
$this->headTitle()->setSeparator(' - ');
$this->breadcrumb('<a href="/">首页</a>');
2014-07-23 08:38:32 +00:00
$this->headLink()->appendStylesheet('/css/admin.css');
$this->breadcrumb('<a href="/admin">后台首页</a>');
$this->breadcrumb('元数据评审');
$this->breadcrumb()->setSeparator(' > ');
?>
2014-07-23 08:38:32 +00:00
<div class="row">
<div class="hidden-sm hidden-xs col-md-2">
<?= $this->partial('sys/left.phtml'); ?>
</div>
2014-07-23 08:38:32 +00:00
<div class="col-md-10 col-sm-12">
<div class="form-group">
<ul class="nav nav-tabs">
<li class="active"><a href="/admin/sys/regions">浏览所有</a></li>
<li><a href="/admin/sys/regions/ac/add">添加</a></li>
</ul>
</div>
2014-07-23 08:38:32 +00:00
<div class="input-group form-group">
2014-09-23 13:50:03 +00:00
<form action="" class="search_form input-group" method="get" >
2014-07-23 08:38:32 +00:00
<input type="text" name="keyword" value="<?php echo $this->keyword; ?>" placeholder="搜索关键字" class="q form-control" />
<input type="hidden" name="search" value='1' />
<span class="input-group-btn"><button id="search_btn" class="btn btn-default" type="submit">搜索</button></span>
</form>
</div>
<?php if (!empty($this->error)) :?>
2014-07-23 08:38:32 +00:00
<?= $this->error ;?>
<?php endif; ?>
2014-07-23 08:38:32 +00:00
<table class="stylized table table-bordered table-striped table-hover">
<thead><tr>
<th width="50">语言</th>
<th>名称</th>
<th></th>
<th></th>
<th>西</th>
<th></th>
<th>操作</th>
</tr></thead>
<?php if (count($this->paginator)): ?>
<tbody id="list">
<?php foreach ($this->paginator as $item): ?>
<tr>
<td><?= $item['langid']?></td>
<td><?= $item['label']?></td>
<td><?= $item['east']?></td>
<td><?= $item['south']; ?></td>
<td><?= $item['west'];?></td>
<td><?= $item['north'];?></td>
<td>
名称 <a class="text-danger" href="/admin/sys/regions/ac/del/id/<?=$item['id'];?>/langid/<?= $item['langid'] ?>">
<span class="glyphicon glyphicon-trash"></span> 删除</a>&nbsp;&nbsp;&nbsp;&nbsp;
范围 <a class="text-danger" href="/admin/sys/regions/ac/del/id/<?=$item['id'];?>">
<span class="glyphicon glyphicon-trash"></span> 删除</a>&nbsp;&nbsp;
<a href="/admin/sys/regions/ac/edit/id/<?=$item['id'];?>"> <span class="glyphicon glyphicon-pencil"></span> 修改</a>
</td>
</tr>
<?php endforeach; ?>
</tbody>
<?php endif; ?>
</table>
<div class="pagenavi"><?= $this->paginator; ?></div>
2014-07-23 08:38:32 +00:00
</div>
</div>