Files
orico-official-website-old/app/admin/view/dept/lists.html
2024-10-29 14:04:59 +08:00

112 lines
5.9 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/dept/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-bordered">
<tbody>
<tr>
<th width="35rem">&nbsp;</th>
<th width="70rem" class="text-center">ID</th>
<th width="45rem" class="text-center">图标</th>
<th>菜单名称</th>
<th class="text-center">菜单URL</th>
<th class="text-center">查询参数</th>
<th width="75rem" class="text-center">菜单排序</th>
<th width="75rem" class="text-center">是否显示</th>
<th width="170rem">操作</th>
</tr>
<?php foreach($list as $k=>$dept):?>
<tr>
<td class="text-center"><input type="checkbox" name="ids[]" value="<?php echo $dept['id'];?>"></td>
<td class="text-center"><?php echo $dept['id'];?></td>
<td class="text-center"><span class="<?php echo empty($dept['icon'])?'fa fa-ban':$dept['icon'];?>"></sapn></td>
<td>
<?php if ($dept['level']) echo str_repeat('|---', $dept['level']); ?><a href="<?php echo url('/admin/dept/edit',['id'=>$dept['id']]);?>"><?php echo $dept['name'];?></a>
</td>
<td class="text-center"><?php echo $dept['url'];?></td>
<td class="text-center"><?php echo $dept['query'];?></td>
<td class="text-center"><input size="3" maxlength="7" value="<?php echo $dept['sort'];?>" type="text" data-id="<?php echo $dept['id'];?>" data-url="<?php echo url('/admin/dept/updatesort');?>" data-cod="sort"></td>
<td class="text-center">
<span class="fa <?php if(!$dept['hidden']):?>fa-check<?php else:?>fa-remove<?php endif;?>" data-id="<?php echo $dept['id'];?>" data-url="<?php echo url('/admin/dept/toggleisshow');?>" data-cod="state"></span>
</td>
<td>
<a class="btn btn-xs btn-info" href="<?php echo url('/admin/dept/add',['pid'=>$dept['id']]);?>">添加子菜单</a>
<a class="btn btn-xs btn-info" href="<?php echo url('/admin/dept/edit',['id'=>$dept['id']]);?>">编辑</a>
<a class="btn btn-xs btn-info" data-id="<?php echo $dept['id'];?>" data-url="<?php echo url('/admin/dept/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-cod="refresh">刷新</button>
</div>
<!-- /.btn-group -->
<a href="<?php echo url('/admin/dept/add');?>" class="btn btn-default btn-sm">添加</a>
<div class="pull-right">
<?php if(0):?>
<?php echo $page;?>
<?php endif;?>
</div>
<!-- /.pull-right -->
</div>
</div>
</div>
<!-- /.box -->
</section>
<!-- /.content -->
</div>
<!-- /.content-wrapper -->
<style>
.table thead > tr > td, .table tbody > tr > td {
vertical-align: middle;
}
</style>
<!-- Page Script -->
<script type="text/javascript">
$(function() {
});
</script>