Commit 25ce31d48a80890c132333b0ca9f17f5cd5669a3

Authored by luoyanshou
1 parent 33bf92f7

【留言板】界面修改

trunk/www/apidocassets/css/mess_front.css
... ... @@ -20,5 +20,6 @@ body{
20 20 height: 25px;
21 21 }
22 22 .con table tr td{
  23 + font-size: 12px;
23 24 text-align: left;
24 25 }
... ...
trunk/www/apidocassets/javascript/mess_front.js
... ... @@ -15,6 +15,7 @@ function inputCheck( src )
15 15 var content = $('#txtCon').val();
16 16  
17 17 if( title == '' || title.length >80){
  18 + alert('留言标题不能为空且长度不能大于80。');
18 19 return false;
19 20 }
20 21  
... ... @@ -29,6 +30,7 @@ function inputCheck( src )
29 30 $("#message").val( message );
30 31  
31 32 }else{
  33 + alert('留言内容不能为空且长度不能大于500。');
32 34 return false;
33 35 }
34 36  
... ... @@ -59,8 +61,7 @@ function jumpSubmit()
59 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 36 color: #0000cc;
37 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 46 </style>
40 47 </head>
41 48 <body>
... ... @@ -43,6 +50,37 @@
43 50 <div class="con list">
44 51 <table>
45 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 84 <tr>
47 85 <th>留言标题</th>
48 86 <th>用户昵称</th>
... ...
trunk/www/mess_front/input.PHP
... ... @@ -19,7 +19,7 @@
19 19 </head>
20 20 <body>
21 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 23 <table>
24 24 <caption><h2>发表留言</h2></caption>
25 25 <!--<tr>
... ...
trunk/www/mess_front/list.php
... ... @@ -6,8 +6,9 @@ $nextPage = $page + 1;
6 6  
7 7 $mess_list = [];
8 8 $mess_res = file_get_contents("http://lys.com/wx5019b9c455ea9c81/Message/Api/Message/MessList/getList/?page={$page}");
  9 +
9 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 ?>
... ...