diff --git a/trunk/www/apidocassets/javascript/mess_admin.js b/trunk/www/apidocassets/javascript/mess_admin.js index 9d391f4..732a688 100644 --- a/trunk/www/apidocassets/javascript/mess_admin.js +++ b/trunk/www/apidocassets/javascript/mess_admin.js @@ -86,3 +86,12 @@ function jumdAudit(mid) } }); } + +function jumpSearch(page){ + /* $.ajax({ + url:'', + type:'', + dataType:'json', + + });*/ +} \ No newline at end of file diff --git a/trunk/www/mess_admin/list.php b/trunk/www/mess_admin/list.php index 63364da..247878f 100644 --- a/trunk/www/mess_admin/list.php +++ b/trunk/www/mess_admin/list.php @@ -1,15 +1,22 @@ <?php + error_reporting(0); $page = isset($_GET['page']) ? $_GET['page'] : 0 ; + $str = 'name='.$_GET['name']; + $str .= '&sex='.$_GET['sex']; + $str .= '&tel='.$_GET['tel']; + $str .= '&mail='.$_GET['mail']; + $str .= '&title='.$_GET['title']; + $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}"); + $url = "http://lys.com/wx5019b9c455ea9c81/Message/Apicp/Message/MessList/getList/?page={$page}&{$str}"; + $mess_res = file_get_contents($url); + if ($mess_res) { $mess_list = json_decode($mess_res,true)['result']; } - - ?> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" @@ -53,29 +60,29 @@ <tr></tr> <tr> <td colspan="6"> - <form class="frm_search" id="frm_search" > + <form action="list.php" method="get" class="frm_search" id="frm_search" > <label> - 用户名:<input type="text" id="name" value="" > + 用户名:<input type="text" name="name" id="name" value="" > </label> <label> - 性别:<select id="sex"> - <option value="0">选择性别</option> - <option value="1">男</option> - <option value="2">女</option> + 性别:<select id="sex" name="sex"> + <option value="">选择性别</option> + <option value="0">男</option> + <option value="1">女</option> </select> </label> <label> - 手机号:<input type="text" id="tel" value="" > + 手机号:<input type="text" id="tel" name="tel" value="" > </label> <label> - 邮箱:<input type="email" id="email" value="" > + 邮箱:<input type="email" id="mail" name="mail" value="" > </label> <label> - 标题:<input type="text" id="title" value="" > + 标题:<input type="text" id="title" name="title" value="" > </label> <label> - <button type="submit">检索</button> - <button type="reset">清空</button> + <input type="submit" value="检索" > + <input type="reset" value="清空" > </label> </form> </td> @@ -140,8 +147,8 @@ </label>--> <span style="width: 300px; display: inline-block;"></span> <label> - <a href="?page=<?php echo $prePage; ?>">上一页</a> - <a href="?page=<?php echo $nextPage; ?>" >下一页</a> + <a href="?page=<?php echo $prePage; ?><?php echo $str; ?>" >上一页</a> + <a href="?page=<?php echo $nextPage; ?><?php echo $str; ?>" >下一页</a> </label> </td> </tr>