Commit a8086fba18216cdb1a32a2ca18053791525cf8c9

Authored by zhang
1 parent 4e13372b

[留言板]后台管理模块优化

trunk/Message/Apicp/Controller/Message/LoginController.class.php renamed to trunk/Message/Apicp/Controller/Person/LoginController.class.php
trunk/Message/message后台独立功能/del.php
1   -<?php
  1 +<?php
2 2 require "function.php";
3 3  
4   -$url = "http://localhost.vchangyi.org/E92B06237F00000150F5A2266E14186D/Message/Apicp/Message/Message/del";
  4 +$url = "http://localhost.vchangyi.org/E92B06237F00000150F5A2266E14186D/Message/Apicp/Message/Del";
5 5 $message_id = $_GET['message_id'];
6 6  
7 7 $postData = [
... ... @@ -11,4 +11,4 @@ $postData = [
11 11  
12 12 curlPost($url,$postData);
13 13  
14   -header("Refresh:0;url=list");
15 14 \ No newline at end of file
  15 +header("Refresh:0;url=list");
... ...
trunk/Message/message后台独立功能/detail.php
1   -<?php
  1 +<?php
2 2 require "function.php";
3 3  
4 4 $url_img = "http://localhost/study-project/trunk/Message/attachment/";
5 5  
6   -$url = "http://localhost.vchangyi.org/E92B06237F00000150F5A2266E14186D/Message/Apicp/Message/Message/detail";
  6 +$url = "http://localhost.vchangyi.org/E92B06237F00000150F5A2266E14186D/Message/Apicp/Message/Detail";
7 7 $message_id = $_GET['message_id'];
8 8  
9 9  
... ... @@ -31,14 +31,14 @@ $message = curlPost($url,$postData);
31 31 table tr td{
32 32 border: solid #000 1px
33 33 }
34   -
  34 +
35 35 </style>
36 36 </head>
37 37 <body>
38 38 <h4 align="center">留言详情</h4>
39 39 <table>
40 40 <tbody>
41   -
  41 +
42 42 <thead>
43 43 <tr> <td>ID</td> <td>标题</td><td>内容</td> <td>留言者</td><td>接收人</td> </tr>
44 44 </thead>
... ... @@ -54,7 +54,7 @@ $message = curlPost($url,$postData);
54 54 <tr> <td>留言附件</td> </tr>
55 55 </thead>
56 56 <tbody>
57   -
  57 +
58 58 <?php
59 59 if (isset($message['attachment']) && $message['attachment']) {
60 60  
... ... @@ -65,11 +65,11 @@ $message = curlPost($url,$postData);
65 65 ?>
66 66 </tbody>
67 67 </table>
68   -
  68 +
69 69 <!-- <h4 align="center">留言评论信息</h4> -->
70 70 <table>
71 71 <tbody>
72   -
  72 +
73 73 <thead>
74 74 <tr> <td>评论内容</td><td>评论用户</td> <td>时 间</td></tr>
75 75 </thead>
... ... @@ -89,4 +89,3 @@ $message = curlPost($url,$postData);
89 89  
90 90 </body>
91 91 </html>
92   -
... ...
trunk/Message/message后台独立功能/list.php
1 1 <?php
2 2 require "function.php";
3 3  
4   - $url = "http://localhost.vchangyi.org/E92B06237F00000150F5A2266E14186D/Message/Apicp/Message/Message/list";
  4 + $url = "http://localhost.vchangyi.org/E92B06237F00000150F5A2266E14186D/Message/Apicp/Message/List";
5 5  
6 6 $page = isset($_GET['page']) ? $_GET['page'] : 1;
7 7  
... ... @@ -96,4 +96,4 @@
96 96 </tbody>
97 97 </table>
98 98 </body>
99   -</html>
100 99 \ No newline at end of file
  100 +</html>
... ...
trunk/Message/message后台独立功能/login.php
... ... @@ -13,22 +13,22 @@
13 13  
14 14 <!-- 新 Bootstrap 核心 CSS 文件 -->
15 15 <link href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
16   -
  16 +
17 17 <!-- 可选的Bootstrap主题文件(一般不使用) -->
18 18 <script src="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap-theme.min.css"></script>
19   -
  19 +
20 20 <!-- jQuery文件。务必在bootstrap.min.js 之前引入 -->
21 21 <script src="https://cdn.bootcss.com/jquery/2.1.1/jquery.min.js"></script>
22   -
  22 +
23 23 <!-- 最新的 Bootstrap 核心 JavaScript 文件 -->
24 24 <script src="https://cdn.bootcss.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
25 25 </head>
26 26 <body>
27   - <form id="login_form" action="http://localhost.vchangyi.org/E92B06237F00000150F5A2266E14186D/Message/Api/Person/Login/Login" method="post" >
  27 + <form id="login_form" action="http://localhost.vchangyi.org/E92B06237F00000150F5A2266E14186D/Message/Apicp/Person/Login" method="post" >
28 28 用户名<input name="name" placeholder="用户名" required><br><br>
29 29 密&nbsp;&nbsp;&nbsp;码<input name="pwd" placeholder="密码" type="password" required><br>
30 30  
31 31 <input type="submit" value="登录">
32 32 </form>
33 33 </body>
34   -</html>
35 34 \ No newline at end of file
  35 +</html>
... ...