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

108 lines
5.7 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/report/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>
<!-- /.box-tools -->
</div>
<!-- /.box-header -->
<div class="box-body no-padding">
<div class="table-responsive lists-table">
<table class="table table-hover table-bordered">
<tbody>
<tr>
<th width="35rem">&nbsp;</th>
<th width="60rem" class="text-center">ID</th>
<th class="text-center">产品名称</th>
<th class="text-center">产品型号</th>
<th class="text-center">厂商</th>
<th class="text-center">产品价格</th>
<th class="text-center">用户姓名</th>
<th class="text-center">状态</th>
<th width="200rem" class="text-center">举报时间</th>
<th width="135rem" class="text-center">操作</th>
</tr>
<?php if(!empty($list)):?>
<?php foreach($list as $key => $value):?>
<tr>
<td class="text-center"><input type="checkbox" name="ids[]" value="<?php echo $value['id'];?>"></td>
<td class="text-center"><?php echo $value['id'];?></td>
<td class="text-center"><?php echo $value['product_name'];?></td>
<td class="text-center"><?php echo $value['product_model']; ?></td>
<td class="text-center"><?php echo $value['product_manufacturer'];?></td>
<td class="text-center"><?php echo $value['product_price'];?></td>
<td class="text-center"><?php echo $value['customer_name'];?></td>
<td class="text-center"><?php echo array_switch(array('0' => '<span class="label label-warning">未处理</span>', '1' => '<span class="label label-info">已处理</span>'),$value['status']);?></td>
<td class="text-center"><?php echo $value['create_time'];?></td>
<td class="text-center">
<a class="btn btn-xs btn-info" href="<?php echo url('/admin/report/edit',['id'=>$value['id']]);?>">详情</a>
<?php if ($value['status'] == 0): ?>
<a class="btn btn-xs btn-info" href="<?php echo url('/admin/report/handle_report',['id'=>$value['id']]);?>">处理</a>
<?php endif; ?>
<a class="btn btn-xs btn-info" data-id="<?php echo $value['id'];?>" data-url="<?php echo url('/admin/report/delete');?>" data-cod="dowarn">删除</a>
</td>
</tr>
<?php endforeach;?>
<?php endif;?>
</tbody>
</table>
<!-- /.table -->
</div>
<!-- /.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/report/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/report/add');?>" class="btn btn-default btn-sm">添加</a>
</div>
<div class="col-sm-6">
<div class="pull-right">
<?php
if (!empty($page))
echo $page;
?>
</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>
$(function() {
});
</script>