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

174 lines
9.0 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/remark/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/remark/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" placeholder="评论人或内容" value="<?php echo $search['name']; ?>">
</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="button" class="btn btn-info btn-sm" id="doclear"><i class="fa fa-fw fa-remove"></i>清空</button>
</div>
</div>
</div>
</form>
</div>
<!-- /.box-tools -->
</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">
<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">留言人</th>
<th width="60rem" class="text-center">联系邮箱</th>
<th style="text-align: center">留言内容</th>
<th width="200rem" class="text-center">原文章链接</th>
<th width="200rem" class="text-center">提交时间</th>
<th width="60rem" class="text-center">状态</th>
<th width="135rem" class="text-center">操作</th>
</tr>
{volist name='list' id ='vv'}
<?php
if($country_code == 'US'){
$link = url('/us/article/detail/'.$vv['article_id']);
}
else{
$link = url('/article/detail/'.$vv['article_id']);
}
?>
<tr>
<td class="text-center"><input type="checkbox" name="ids[]" value="<?php echo $vv['id'];?>"></td>
<th class="text-center">{$vv.name}</th>
<th class="text-center">{$vv.email}</th>
<td class="text-center"> {$vv.content}</td>
<th class="text-center">
<?php if($vv['c_stat']==-1){?>
<span style="color:gray;"><?php echo $vv['title'];?></span>
<?php }else{ ?>
<a href="<?php echo $link;?>" target="_blank"><?php echo $vv['title'];?></a>
<?php } ?>
</th>
<th class="text-center"><?php echo date("Y-m-d H:i",strtotime($vv['add_time']));?></th>
<td class="text-center"><?php echo array_switch(array('-1' => '<span class="label label-danger">删除</span>', '0' => '<span class="label label-success">待审核</span>', '1' => '<span class="label label-info">已审核</span>'),$vv['stat']);?></td>
<td class="text-center">
<a class="btn btn-xs btn-info" href="<?php echo url('/admin/remark/view',['id'=>$vv['id']]);?>">查看</a>
<a class="btn btn-xs btn-info" data-id="<?php echo $vv['id'];?>" data-url="<?php echo url('/admin/remark/delete');?>" data-cod="dowarn">删除</a>
</td>
</tr>
{/volist}
</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/remark/deletes');?>" data-cod="batch">删除</button>
<button type="button" class="btn btn-default btn-sm" data-cod="refresh">刷新</button>
</div>
<!-- /.btn-group -->
</div>
<div class="col-sm-6">
<div class="pull-right">
{$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 type="text/javascript">
$(function() {
});
</script>