list.php
5.22 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
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
<?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;
}
.frm_search{
font-size: 10px;
}
.frm_search input,select,button{
font-size: 10px;
width: 55px;
}
</style>
</head>
<body>
<div class="con list">
<table>
<caption><h3>留言管理</h3></caption>
<tr></tr>
<tr>
<td colspan="6">
<form class="frm_search" id="frm_search" >
<label>
用户名:<input type="text" id="name" value="" >
</label>
<label>
性别:<select id="sex">
<option value="0">选择性别</option>
<option value="1">男</option>
<option value="2">女</option>
</select>
</label>
<label>
手机号:<input type="text" id="tel" value="" >
</label>
<label>
邮箱:<input type="email" id="email" value="" >
</label>
<label>
标题:<input type="text" id="title" value="" >
</label>
<label>
<button type="submit">检索</button>
<button type="reset">清空</button>
</label>
</form>
</td>
</tr>
<tr></tr>
<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='detail.php?mid={$value['m_id']}&scenario=audit'>再次审核</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>