Commit ed629f9bd070706d3058b36579f1dbaad5c7041e
1 parent
9bde6821
【留言板】检索条件保存
Showing
2 changed files
with
24 additions
and
14 deletions
trunk/www/apidocassets/javascript/mess_admin.js
@@ -39,6 +39,11 @@ function jumpDel(mid) | @@ -39,6 +39,11 @@ function jumpDel(mid) | ||
39 | }); | 39 | }); |
40 | } | 40 | } |
41 | 41 | ||
42 | +/** | ||
43 | + * 留言审核 ajax实现 | ||
44 | + * @param mid:留言ID | ||
45 | + * @returns {boolean} | ||
46 | + */ | ||
42 | function jumdAudit(mid) | 47 | function jumdAudit(mid) |
43 | { | 48 | { |
44 | 49 | ||
@@ -87,11 +92,16 @@ function jumdAudit(mid) | @@ -87,11 +92,16 @@ function jumdAudit(mid) | ||
87 | }); | 92 | }); |
88 | } | 93 | } |
89 | 94 | ||
90 | -function jumpSearch(page){ | ||
91 | - /* $.ajax({ | ||
92 | - url:'', | ||
93 | - type:'', | ||
94 | - dataType:'json', | ||
95 | - | ||
96 | - });*/ | 95 | +/** |
96 | + * 重置时 清空条件,再次提交 | ||
97 | + * @returns {boolean} | ||
98 | + */ | ||
99 | +function jumpCleanAll(){ | ||
100 | + $('#name').val(''); | ||
101 | + $('#sex').val(''); | ||
102 | + $('#tel').val(''); | ||
103 | + $('#mail').val(''); | ||
104 | + $('#title').val(''); | ||
105 | + $('#frm_search').submit(); | ||
106 | + return false; | ||
97 | } | 107 | } |
98 | \ No newline at end of file | 108 | \ No newline at end of file |
trunk/www/mess_admin/list.php
@@ -62,27 +62,27 @@ | @@ -62,27 +62,27 @@ | ||
62 | <td colspan="6"> | 62 | <td colspan="6"> |
63 | <form action="list.php" method="get" class="frm_search" id="frm_search" > | 63 | <form action="list.php" method="get" class="frm_search" id="frm_search" > |
64 | <label> | 64 | <label> |
65 | - 用户名:<input type="text" name="name" id="name" value="" > | 65 | + 用户名:<input type="text" name="name" id="name" value="<?php if (isset($_GET['name'])) echo $_GET['name']; ?>" > |
66 | </label> | 66 | </label> |
67 | <label> | 67 | <label> |
68 | 性别:<select id="sex" name="sex"> | 68 | 性别:<select id="sex" name="sex"> |
69 | <option value="">选择性别</option> | 69 | <option value="">选择性别</option> |
70 | - <option value="0">男</option> | ||
71 | - <option value="1">女</option> | 70 | + <option value="0" <?php if (isset($_GET['sex']) && $_GET['sex'] === '0') echo 'selected'; ?> >男</option> |
71 | + <option value="1" <?php if (isset($_GET['sex']) && $_GET['sex'] == 1) echo 'selected'; ?> >女</option> | ||
72 | </select> | 72 | </select> |
73 | </label> | 73 | </label> |
74 | <label> | 74 | <label> |
75 | - 手机号:<input type="text" id="tel" name="tel" value="" > | 75 | + 手机号:<input type="text" id="tel" name="tel" value="<?php if (isset($_GET['tel'])) echo $_GET['tel']; ?>" > |
76 | </label> | 76 | </label> |
77 | <label> | 77 | <label> |
78 | - 邮箱:<input type="email" id="mail" name="mail" value="" > | 78 | + 邮箱:<input type="email" id="mail" name="mail" value="<?php if(isset($_GET['mail'])) echo $_GET['mail']; ?>" > |
79 | </label> | 79 | </label> |
80 | <label> | 80 | <label> |
81 | - 标题:<input type="text" id="title" name="title" value="" > | 81 | + 标题:<input type="text" id="title" name="title" value="<?php if (isset($_GET['title'])) echo $_GET['title']; ?>" > |
82 | </label> | 82 | </label> |
83 | <label> | 83 | <label> |
84 | <input type="submit" value="检索" > | 84 | <input type="submit" value="检索" > |
85 | - <input type="reset" value="清空" > | 85 | + <input type="reset" value="清空" onclick="javascript:jumpCleanAll();" > |
86 | </label> | 86 | </label> |
87 | </form> | 87 | </form> |
88 | </td> | 88 | </td> |