53 lines
3.0 KiB
PHTML
53 lines
3.0 KiB
PHTML
<div class="row">
|
|
<?php if (count($this->paginator)): ?>
|
|
<table class="table table-striped table-bordered mediaTable">
|
|
<thead>
|
|
<tr>
|
|
<th style="width:13px;"><input type="checkbox" class="select_rows" data-tbody="categories" /></th>
|
|
<th class="optional" width="12">id</th>
|
|
<th class="essential persist">标题</th>
|
|
<th class="optional">状态</th>
|
|
<th class="optional">code</th>
|
|
<th class="essential">url</th>
|
|
<th class="essential" width="160">Action</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody id="categories">
|
|
<?php $autoindex=0;
|
|
foreach ($this->paginator as $item):
|
|
$autoindex++;?>
|
|
<tr id="DataLine_<?= $item['id']?>">
|
|
<td><input type="checkbox" class="select_item" value="<?= $item['id']?>" /></td>
|
|
<td><?= $item['id']?></td>
|
|
<td><?= isset($item[$this->IndentTitle]) ? $item[$this->IndentTitle]:"" ?><a href="/data/<?= $item['uuid'] ?>"><?= $item['title'] ?></a></td>
|
|
<td><?= $item['is_pub'] ? "显示":"隐藏" ?></td>
|
|
<td><?= $item['code']?></td>
|
|
<td><?= $item['url']?></td>
|
|
<td>
|
|
<a href="<?= $this->config->adminurl ?>/category/cache/ac/create/id/<?= $item['id']?>" title="创建缓存"><i class="icon-hdd"></i></a>
|
|
<a href="<?= $this->config->adminurl ?>/category/cache/ac/delete/id/<?= $item['id']?>" title="删除缓存"><i class="icon-fire"></i></a>
|
|
<a href="<?= $this->config->adminurl ?>/category/move/up/<?= $item['id']?>" title="上移"><i class="icon-arrow-up"></i></a>
|
|
<a href="<?= $this->config->adminurl ?>/category/move/down/<?= $item['id']?>" title="下移"><i class="icon-arrow-down"></i></a>
|
|
<a href="<?= $this->config->adminurl ?>/category/add/id/<?= $item['id']?>" title="编辑"><i class="icon-edit"></i></a>
|
|
<a href="javascript:void(0);" onclick="onedel(<?= $item['id']?>)" id="delbtn_<?= $item['id']?>" title="删除"><i class="icon-trash"></i></a>
|
|
</td>
|
|
</tr>
|
|
<?php endforeach; ?>
|
|
</tbody>
|
|
</table>
|
|
<?= $this->paginator ?>
|
|
<div>
|
|
<div class="btn-group">
|
|
<button tabindex="-1" class="btn updatecache">更新缓存</button>
|
|
<button tabindex="-1" data-toggle="dropdown" class="btn dropdown-toggle">
|
|
<span class="caret"></span>
|
|
</button>
|
|
<ul class="dropdown-menu">
|
|
<li><a href="javascript:void(0);" id="createcache">创建缓存</a></li>
|
|
<li><a href="javascript:void(0);" id="deletecache">删除缓存</a></li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
|
|
<?php endif; ?>
|
|
</div>
|