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