116 lines
5.6 KiB
HTML
Executable File
116 lines
5.6 KiB
HTML
Executable File
<!-- Content Wrapper. Contains page content -->
|
|
<div class="content-wrapper">
|
|
<!-- Content Header (Page header) -->
|
|
<section class="content-header">
|
|
<h1>
|
|
系统设置
|
|
<small>配置列表</small>
|
|
</h1>
|
|
<ol class="breadcrumb">
|
|
<li><a href="<?php echo url('/admin/index/index');?>"><i class="fa fa-dashboard"></i> 首页</a></li>
|
|
<li><a href="<?php echo url('/admin/sysconfig/lists');?>"> 系统设置</a></li>
|
|
<li class="active"> 网站配置</li>
|
|
</ol>
|
|
</section>
|
|
|
|
<!-- Main content -->
|
|
<section class="content">
|
|
<div class="box box-primary">
|
|
<div class="box-header with-border">
|
|
<h3 class="box-title">配置</h3>
|
|
<div class="box-tools pull-right">
|
|
<div class="input-group input-group-sm">
|
|
<input type="text" class="form-control pull-right" id="list-search-in" placeholder="Search Name" value="<?php echo $search['skeyword'];?>">
|
|
<div class="input-group-btn">
|
|
<button type="button" class="btn btn-default" id="list-search-btn"><i class="fa fa-search"></i></button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<!-- /.box-tools -->
|
|
</div>
|
|
<!-- /.box-header -->
|
|
<div class="box-body no-padding">
|
|
<?php if(!empty($list)):?>
|
|
<div class="table-responsive lists-table">
|
|
<table class="table table-hover table-striped">
|
|
<tbody>
|
|
<tr>
|
|
<th> </th>
|
|
<th>ID</th>
|
|
<th>配置标识</th>
|
|
<th>配置标题</th>
|
|
<th>分组</th>
|
|
<th>排序</th>
|
|
<th>类型</th>
|
|
<th>操作</th>
|
|
</tr>
|
|
<?php foreach($list as $k=>$config):?>
|
|
<tr>
|
|
<td><input type="checkbox" name="ids[]" value="<?php echo $config['id'];?>"></td>
|
|
<td class="config-star"><a href="#"><i class="fa fa-star text-yellow"></i></a></td>
|
|
<td><a href="<?php echo url('/admin/sysconfig/edit',['id'=>$config['id']]);?>"><?php echo $config['name'];?></a></td>
|
|
<td><?php echo $config['title'];?></td>
|
|
<td><?php echo array_switch($groupList,$config['group'],'配置组'.$config['group']);?></td>
|
|
<td><?php echo $config['sort'];?></td>
|
|
<td><?php echo array_switch($typeList,$config['type'],'类型'.$config['type']);?></td>
|
|
<td>
|
|
<a class="btn btn-xs btn-info" href="<?php echo url('/admin/sysconfig/edit',['id'=>$config['id']]);?>">编辑</a>
|
|
<a class="btn btn-xs btn-info" data-id="<?php echo $config['id'];?>" data-url="<?php echo url('/admin/sysconfig/delete');?>" data-cod="dowarn">删除</a>
|
|
</td>
|
|
</tr>
|
|
<?php endforeach;?>
|
|
</tbody>
|
|
</table>
|
|
<!-- /.table -->
|
|
</div>
|
|
<?php endif;?>
|
|
<!-- /.lists-table -->
|
|
</div>
|
|
<!-- /.box-body -->
|
|
<div class="box-footer no-padding">
|
|
<div class="mailbox-controls">
|
|
<!-- Check all button -->
|
|
<button type="button" class="btn btn-default btn-sm checkbox-toggle"><i class="fa fa-square-o"></i></button>
|
|
<div class="btn-group">
|
|
<button type="button" class="btn btn-default btn-sm" data-url="<?php echo url('/admin/sysconfig/deletes');?>" data-cod="batch">删除</button>
|
|
<button type="button" class="btn btn-default btn-sm" data-cod="refresh">刷新</button>
|
|
</div>
|
|
<!-- /.btn-group -->
|
|
<a href="<?php echo url('/admin/sysconfig/add');?>" class="btn btn-default btn-sm">添加</a>
|
|
<div class="pull-right">
|
|
<?php if($page):?>
|
|
<?php echo $page;?>
|
|
<?php endif;?>
|
|
</div>
|
|
<!-- /.pull-right -->
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<!-- /.box -->
|
|
</section>
|
|
<!-- /.content -->
|
|
</div>
|
|
<!-- /.content-wrapper -->
|
|
|
|
<!-- Page Script -->
|
|
<script type="text/javascript">
|
|
$(function() {
|
|
//Handle starring for glyphicon and font awesome
|
|
$(".config-star").click(function(e) {
|
|
e.preventDefault();
|
|
//detect type
|
|
var $this = $(this).find("a > i");
|
|
var glyph = $this.hasClass("glyphicon");
|
|
var fa = $this.hasClass("fa");
|
|
//Switch states
|
|
if (glyph) {
|
|
$this.toggleClass("glyphicon-star");
|
|
$this.toggleClass("glyphicon-star-empty");
|
|
}
|
|
if (fa) {
|
|
$this.toggleClass("fa-star");
|
|
$this.toggleClass("fa-star-o");
|
|
}
|
|
});
|
|
});
|
|
</script> |