Commit 25ce31d48a80890c132333b0ca9f17f5cd5669a3
1 parent
33bf92f7
【留言板】界面修改
Showing
5 changed files
with
45 additions
and
4 deletions
trunk/www/apidocassets/css/mess_front.css
trunk/www/apidocassets/javascript/mess_front.js
@@ -15,6 +15,7 @@ function inputCheck( src ) | @@ -15,6 +15,7 @@ function inputCheck( src ) | ||
15 | var content = $('#txtCon').val(); | 15 | var content = $('#txtCon').val(); |
16 | 16 | ||
17 | if( title == '' || title.length >80){ | 17 | if( title == '' || title.length >80){ |
18 | + alert('留言标题不能为空且长度不能大于80。'); | ||
18 | return false; | 19 | return false; |
19 | } | 20 | } |
20 | 21 | ||
@@ -29,6 +30,7 @@ function inputCheck( src ) | @@ -29,6 +30,7 @@ function inputCheck( src ) | ||
29 | $("#message").val( message ); | 30 | $("#message").val( message ); |
30 | 31 | ||
31 | }else{ | 32 | }else{ |
33 | + alert('留言内容不能为空且长度不能大于500。'); | ||
32 | return false; | 34 | return false; |
33 | } | 35 | } |
34 | 36 | ||
@@ -59,8 +61,7 @@ function jumpSubmit() | @@ -59,8 +61,7 @@ function jumpSubmit() | ||
59 | return false; | 61 | return false; |
60 | } | 62 | } |
61 | 63 | ||
62 | - $("#frm_input").submit(); | ||
63 | - | 64 | + $('#frm_input').submit(); |
64 | } | 65 | } |
65 | 66 | ||
66 | /** | 67 | /** |
trunk/www/mess_admin/list.php
@@ -36,6 +36,13 @@ | @@ -36,6 +36,13 @@ | ||
36 | color: #0000cc; | 36 | color: #0000cc; |
37 | cursor: pointer; | 37 | cursor: pointer; |
38 | } | 38 | } |
39 | + .frm_search{ | ||
40 | + font-size: 10px; | ||
41 | + } | ||
42 | + .frm_search input,select,button{ | ||
43 | + font-size: 10px; | ||
44 | + width: 55px; | ||
45 | + } | ||
39 | </style> | 46 | </style> |
40 | </head> | 47 | </head> |
41 | <body> | 48 | <body> |
@@ -43,6 +50,37 @@ | @@ -43,6 +50,37 @@ | ||
43 | <div class="con list"> | 50 | <div class="con list"> |
44 | <table> | 51 | <table> |
45 | <caption><h3>留言管理</h3></caption> | 52 | <caption><h3>留言管理</h3></caption> |
53 | + <tr></tr> | ||
54 | + <tr> | ||
55 | + <td colspan="6"> | ||
56 | + <form class="frm_search" id="frm_search" > | ||
57 | + <label> | ||
58 | + 用户名:<input type="text" id="name" value="" > | ||
59 | + </label> | ||
60 | + <label> | ||
61 | + 性别:<select id="sex"> | ||
62 | + <option value="0">选择性别</option> | ||
63 | + <option value="1">男</option> | ||
64 | + <option value="2">女</option> | ||
65 | + </select> | ||
66 | + </label> | ||
67 | + <label> | ||
68 | + 手机号:<input type="text" id="tel" value="" > | ||
69 | + </label> | ||
70 | + <label> | ||
71 | + 邮箱:<input type="email" id="email" value="" > | ||
72 | + </label> | ||
73 | + <label> | ||
74 | + 标题:<input type="text" id="title" value="" > | ||
75 | + </label> | ||
76 | + <label> | ||
77 | + <button type="submit">检索</button> | ||
78 | + <button type="reset">清空</button> | ||
79 | + </label> | ||
80 | + </form> | ||
81 | + </td> | ||
82 | + </tr> | ||
83 | + <tr></tr> | ||
46 | <tr> | 84 | <tr> |
47 | <th>留言标题</th> | 85 | <th>留言标题</th> |
48 | <th>用户昵称</th> | 86 | <th>用户昵称</th> |
trunk/www/mess_front/input.PHP
@@ -19,7 +19,7 @@ | @@ -19,7 +19,7 @@ | ||
19 | </head> | 19 | </head> |
20 | <body> | 20 | <body> |
21 | <div class="con"> | 21 | <div class="con"> |
22 | - <form action="http://lys.com/wx5019b9c455ea9c81/Message/Api/Message/MessInput/Index" method="post" id="frm_input"> | 22 | + <form action="http://lys.com/wx5019b9c455ea9c81/Message/Api/Message/MessInput/Index" method="post" id="frm_input" > |
23 | <table> | 23 | <table> |
24 | <caption><h2>发表留言</h2></caption> | 24 | <caption><h2>发表留言</h2></caption> |
25 | <!--<tr> | 25 | <!--<tr> |
trunk/www/mess_front/list.php
@@ -6,8 +6,9 @@ $nextPage = $page + 1; | @@ -6,8 +6,9 @@ $nextPage = $page + 1; | ||
6 | 6 | ||
7 | $mess_list = []; | 7 | $mess_list = []; |
8 | $mess_res = file_get_contents("http://lys.com/wx5019b9c455ea9c81/Message/Api/Message/MessList/getList/?page={$page}"); | 8 | $mess_res = file_get_contents("http://lys.com/wx5019b9c455ea9c81/Message/Api/Message/MessList/getList/?page={$page}"); |
9 | + | ||
9 | if ($mess_res) { | 10 | if ($mess_res) { |
10 | - $mess_list = json_decode($mess_res,true)['result']; | 11 | + $mess_list = json_decode($mess_res,true)['result'] ; |
11 | } | 12 | } |
12 | 13 | ||
13 | ?> | 14 | ?> |