list.php
3.82 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
<?php
$page = isset($_GET['page']) ? $_GET['page'] : 0 ;
$prePage = ($page - 1)<0 ? 0 : ($page - 1);
$nextPage = ($page + 1);
$mess_list = [];
$mess_res = file_get_contents("http://lys.com/wx5019b9c455ea9c81/Message/Apicp/Message/MessList/getList/?page={$page}");
if ($mess_res) {
$mess_list = json_decode($mess_res,true)['result'];
}
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>留言管理</title>
<meta charset="utf-8">
<link type="text/css" rel="stylesheet" href="../apidocassets/css/mess_front.css" >
<script type="text/javascript" src="../apidocassets/javascript/jquery.min.js"></script>
<script type="text/javascript" src="../apidocassets/javascript/mess_admin.js"></script>
<style type="text/css">
.list table{
width:100%;
border-collapse: collapse;
}
.list tr th,td{
font-size: 14px;
font-weight: normal;
border: 1px solid;
}
.list a{
text-decoration: none;
color: #0000cc;
cursor: pointer;
}
</style>
</head>
<body>
<div class="con list">
<table>
<caption><h3>留言管理</h3></caption>
<tr>
<th>留言标题</th>
<th>用户昵称</th>
<th>用户IP</th>
<th>留言时间</th>
<th>状态</th>
<th>操作</th>
</tr>
<?php
foreach ( $mess_list as $item=>$value) {
?>
<tr>
<td><label>
<?php echo $value['m_title'] ?>
</label></td>
<td><label>
<?php echo $value['u_name']; ?>
</label></td>
<td>
<?php echo $value['m_ip']; ?>
</td>
<td>
<?php echo $value['ins_date']; ?>
</td>
<td>
<?php
if ($value['m_status'] == 1) {
echo '未审核';
} else if ($value['m_status'] == 2) {
echo '审核未通过';
} else if ($value['m_status'] == 3) {
echo '审核已通过';
}
?>
</td>
<td>
<a href="detail.php?mid=<?php echo $value['m_id']; ?>">详细内容</a>
<?php
if ($value['m_status'] == 1) {
echo "<a href=detail.php?mid={$value['m_id']}&scenario=audit>审核</a> ";
} else if($value['m_status'] == 2) {
echo "<a href='##'>再次审核</a> ";
echo "<a onclick='javascript:jumpDel({$value['m_id']}); return false;'>删除</a> ";
} else if($value['m_status'] == 3) {
echo "<a onclick='javascript:jumpDel({$value['m_id']}); return false;'>删除</a> ";
}
?>
</td>
</tr>
<?php
}
?>
<tr>
<td colspan="6">
<!--<label>
<a href="input.php" target="_blank">在线留言</a>
</label>-->
<span style="width: 300px; display: inline-block;"></span>
<label>
<a href="?page=<?php echo $prePage; ?>">上一页</a>
<a href="?page=<?php echo $nextPage; ?>" >下一页</a>
</label>
</td>
</tr>
</table>
</div>
</body>
</html>