186 lines
10 KiB
HTML
Executable File
186 lines
10 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/navigation/lists');?>"> 导航</a></li>
|
|
<li class="active"> 导航列表</li>
|
|
</ol>
|
|
</section>
|
|
|
|
<!-- Main content -->
|
|
<section class="content">
|
|
<div class="box box-solid collapsed-box">
|
|
<div class="box-header with-border">
|
|
<h3 class="box-title"><i class="fa fa-fw fa-search"></i>...</h3>
|
|
<div class="box-tools">
|
|
<button type="button" class="btn btn-box-tool" data-widget="collapse">
|
|
<i class="fa fa-fw fa-search-plus"></i> 展开/关闭
|
|
</button>
|
|
<button type="button" class="btn btn-box-tool" data-widget="collapse">
|
|
<i class="fa fa-fw fa-plus"></i>
|
|
</button>
|
|
</div>
|
|
</div>
|
|
<div class="box-body">
|
|
<form class="form-horizontal" action="<?php echo url('/admin/navigation/lists');?>" method="get">
|
|
<div class="col-sm-5">
|
|
<div class="form-group">
|
|
<label class="col-sm-2 control-label">名称</label>
|
|
<div class="col-sm-10">
|
|
<input type="text" name="name" class="form-control" value="<?php echo $search['name']; ?>">
|
|
</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<label class="col-sm-2 control-label">导航类型</label>
|
|
<div class="col-sm-4">
|
|
<select name="nav_type" class="form-control">
|
|
<option value="">导航类型...</option>
|
|
|
|
<?php foreach($dataType as $ks=>$value):?>
|
|
<option value="<?php echo $ks;?>"><?php echo $value;?></option>
|
|
<?php endforeach;?>
|
|
</select>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
<div class="col-sm-7">
|
|
<div class="form-group">
|
|
<label class="col-sm-2 control-label">发布时间</label>
|
|
<div class="col-sm-10">
|
|
<div class="col-xs-12 col-sm-6 no-padding">
|
|
<div class="input-group">
|
|
<input type="text" name="timebegin" id="timebegin" class="form-control" value="<?php echo $search['timebegin']; ?>">
|
|
<span class="input-group-btn">
|
|
<button class="btn btn-primary" type="button" onclick="laydate_datetime('#timebegin');"><i class="fa fa-fw fa-calendar"></i></button>
|
|
</span>
|
|
</div>
|
|
</div>
|
|
<div class="col-xs-12 col-sm-6 no-padding">
|
|
<div class="input-group">
|
|
<input type="text" name="timeend" id="timeend" class="form-control" value="<?php echo $search['timeend']; ?>">
|
|
<span class="input-group-btn">
|
|
<button class="btn btn-primary" type="button" onclick="laydate_datetime('#timeend');"><i class="fa fa-fw fa-calendar"></i></button>
|
|
</span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div class="form-group">
|
|
<div class="col-sm-offset-2 col-sm-10">
|
|
<button type="submit" class="btn btn-primary btn-sm" ><i class="fa fa-fw fa-check"></i>搜索</button>
|
|
<button type="reset" class="btn btn-info btn-sm" ><i class="fa fa-fw fa-undo"></i>重置</button>
|
|
<button type="button" class="btn btn-info btn-sm" id="doclear"><i class="fa fa-fw fa-remove"></i>清空</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
<!-- /.box-body -->
|
|
</div>
|
|
<div class="box box-primary">
|
|
<div class="box-header with-border">
|
|
<h3 class="box-title">导航列表</h3>
|
|
<div class="box-tools pull-right">
|
|
<button type="button" class="btn btn-box-tool" data-widget="collapse">
|
|
<i class="fa fa-fw fa-minus"></i>
|
|
</button>
|
|
</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-bordered">
|
|
<tbody>
|
|
<tr>
|
|
<th width="35rem"> </th>
|
|
<th>导航名称</th>
|
|
<th class="text-center">导航类型</th>
|
|
<th class="text-center">数据类型</th>
|
|
|
|
<th width="75rem" class="text-center">排序</th>
|
|
<th width="160rem" class="text-center">发布时间</th>
|
|
<th width="60rem" class="text-center">状态</th>
|
|
<th width="135rem" class="text-center">操作</th>
|
|
</tr>
|
|
<?php foreach($list as $k=>$nav):?>
|
|
<tr>
|
|
<td class="text-center"><input type="checkbox" name="ids[]" value="<?php echo $nav['id'];?>"></td>
|
|
<td class="text-left" <?php if(!isset($nav['is_sub_data'])){echo "style='padding-left: 2.4rem;margin-left: 2.4rem;'";}?>>
|
|
<a href="<?php echo url('/admin/navigation/edit',['id'=>$nav['id']]);?>"><?php echo $nav['name'];?></a>
|
|
</td>
|
|
<td class="text-center"> <?php echo $dataType[$nav['nav_type']];?></td>
|
|
|
|
<td class="text-center"><?php echo $nav['data_type_text'];?></td>
|
|
|
|
<td class="text-center"><input size="3" maxlength="7" value="<?php echo $nav['sort'];?>" type="text" data-id="<?php echo $nav['id'];?>" data-url="<?php echo url('/admin/navigation/updatesort');?>" data-cod="sort"></td>
|
|
|
|
|
|
<td class="text-center"><?php echo date('Y-m-d H:i:s',$nav['createtime']);?></td>
|
|
<td class="text-center"><span class="fa <?php if(!$nav['stat']):?>fa-check<?php else:?>fa-remove<?php endif;?>" data-id="<?php echo $nav['id'];?>" data-url="<?php echo url('/admin/navigation/toggleisshow');?>" data-cod="state"></span></td>
|
|
<td>
|
|
<a class="btn btn-xs btn-info" href="<?php echo url('/admin/navigation/edit',['id'=>$nav['id']]);?>">编辑</a>
|
|
<a class="btn btn-xs btn-info" data-id="<?php echo $nav['id'];?>" data-url="<?php echo url('/admin/navigation/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 row">
|
|
<div class="col-sm-6">
|
|
<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/navigation/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/navigation/add');?>" class="btn btn-default btn-sm">添加</a>
|
|
</div>
|
|
|
|
<div class="col-sm-6">
|
|
<div class="pull-right">
|
|
<?php if($page):?>
|
|
<?php echo $page;?>
|
|
<?php endif;?>
|
|
</div>
|
|
<!-- /.pull-right -->
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<!-- /.box -->
|
|
</section>
|
|
<!-- /.content -->
|
|
</div>
|
|
<!-- /.content-wrapper -->
|
|
<style>
|
|
.table-responsive .table tbody > tr > th,.table-responsive .table thead > tr > td, .table-responsive .table tbody > tr > td {
|
|
vertical-align: middle;
|
|
}
|
|
</style>
|
|
<!-- Page Script -->
|
|
<script type="text/javascript">
|
|
$(function() {
|
|
|
|
});
|
|
</script>
|