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

70 lines
2.4 KiB
PHTML
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
$this->headTitle($this->config->title->site);
$this->headTitle('后台管理');
$this->headTitle()->setSeparator(' - ');
$this->breadcrumb('<a href="/">首页</a>');
$this->breadcrumb('<a href="/admin">后台首页</a>');
$this->breadcrumb('元数据评审');
$this->breadcrumb()->setSeparator(' > ');
?>
<style>
table thead tr th {background:#EBF2F6;color:#444;}
.high{background:#444;color:#FFF;}
</style>
<div class="row-fluid">
<div class="span2">
<?= $this->partial('sys/left.phtml'); ?>
</div>
<div class="span10">
<div>
<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>
<form action="" method="get" class="search input-append">
<input type="hidden" name="search" value='1' />
<input type="text" name="keyword" class="q" value="<?php echo $this->keyword; ?>" />
<button type="submit" class="btn">搜索</button>
</form>
<?php if (!empty($this->error)) :?>
<?= $this->error ;?>
<?php endif; ?>
<table class="table table-bordered 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 href="/admin/sys/regions/ac/del/id/<?=$item['id'];?>/langid/<?= $item['langid'] ?>">删除</a>] 
范围[<a href="/admin/sys/regions/ac/del/id/<?=$item['id'];?>">删除</a>
<a href="/admin/sys/regions/ac/edit/id/<?=$item['id'];?>">修改</a>]
</td>
</tr>
<?php endforeach; ?>
</tbody>
<?php endif; ?>
</table>
<div class="pagenavi"><?= $this->paginator; ?></div>
</div><!-- span9 -->
</div>