Commit 435ca67f78e75888dff3b2934c363c798c030b9e

Authored by luoyanshou
1 parent 54560eca

【留言板】修改配置,添加登录页面

trunk/Common/Common/Conf/config.php
... ... @@ -27,12 +27,12 @@ return array(
27 27 // 默认语言切换变量
28 28 'VAR_LANGUAGE' => 'lang',
29 29 // 数据库设置
30   - //'DB_TYPE' => 'mysql',
31   - //'DB_HOST' => '127.0.0.1',
32   - //'DB_NAME' => 'vchangyi_oa',
33   - //'DB_USER' => 'root',
34   - //'DB_PWD' => 'password',
35   - //'DB_PORT' => '3306',
  30 + 'DB_TYPE' => 'mysql',
  31 + 'DB_HOST' => '127.0.0.1',
  32 + 'DB_NAME' => 'luoyanshou',
  33 + 'DB_USER' => 'root',
  34 + 'DB_PWD' => 'root',
  35 + 'DB_PORT' => '3306',
36 36  
37 37 // 数据库表前缀
38 38 'DB_PREFIX' => 'oa_',
... ... @@ -161,6 +161,8 @@ return array(
161 161 'active_center',
162 162 // 调研中心
163 163 'research_center',
  164 + // 员圈任务
  165 + 'task_center'
164 166 ],
165 167  
166 168 // 企业详情缓存超时秒数
... ...
trunk/Message/Api/Controller/Message/MessInputController.class.php
... ... @@ -20,12 +20,9 @@ class MessInputController extends \Api\Controller\AbstractController
20 20 protected $_require_login = false;
21 21  
22 22  
23   - public function Index_post()
  23 + public function Index_get()
24 24 {
25   -
26   - $this->_result = [
27   - 'mess' => '请求错误',
28   - ];
  25 + $this->_result = "您已留言成功,请等待审核。";
29 26  
30 27 }
31 28  
... ...
trunk/Message/Common/Conf/config.php
... ... @@ -32,6 +32,13 @@ return array(
32 32  
33 33 // 默认语言切换变量
34 34 'VAR_LANGUAGE' => 'lang',
  35 + // 数据库设置
  36 + 'DB_TYPE' => 'mysql',
  37 + 'DB_HOST' => '127.0.0.1',
  38 + 'DB_NAME' => 'lys',
  39 + 'DB_USER' => 'root',
  40 + 'DB_PWD' => 'root',
  41 + 'DB_PORT' => '3306',
35 42  
36 43 // 数据库表前缀
37 44 'DB_PREFIX' => 'luoyanshou_',
... ...
trunk/Message/Common/Model/MessagesModel.class.php 0 → 100644
  1 +<?php
  2 +/**
  3 + * Created by PhpStorm.
  4 + * User: Dell
  5 + * Date: 2018/9/4
  6 + * Time: 9:37
  7 + */
  8 +
  9 +namespace Common\Model;
  10 +
  11 +use Common\Common\Constant;
  12 +
  13 +class MessagesModel extends AbstractModel
  14 +{
  15 +
  16 + // 构造方法
  17 + public function __construct()
  18 + {
  19 + parent::__construct();
  20 + }
  21 +
  22 +}
... ...
trunk/ThinkPHP/Conf/convention.php
... ... @@ -103,7 +103,7 @@ return array(
103 103  
104 104 // Cookie设置
105 105 'COOKIE_EXPIRE' => 1800, // Cookie有效期
106   - 'COOKIE_DOMAIN' => 'pg.ma', // Cookie有效域名
  106 + 'COOKIE_DOMAIN' => 'lys.com', // Cookie有效域名
107 107 'COOKIE_PATH' => '/', // Cookie路径
108 108 'COOKIE_PREFIX' => 'YQ', // Cookie前缀 避免冲突
109 109 'COOKIE_SECURE' => false, // Cookie安全传输
... ...
trunk/www/.htaccess
... ... @@ -4,5 +4,5 @@
4 4  
5 5 RewriteCond %{REQUEST_FILENAME} !-d
6 6 RewriteCond %{REQUEST_FILENAME} !-f
7   - RewriteRule ^(.*)$ index.php/$1 [QSA,PT,L]
  7 + RewriteRule ^(.*)$ index.php?/$1 [QSA,PT,L]
8 8 </IfModule>
9 9 \ No newline at end of file
... ...
trunk/www/apidocassets/css/mess_front.css
  1 +*{
  2 + margin: 0;
  3 + padding: 0;
  4 +}
  5 +html,
  6 +body{
  7 + width:100%;
  8 +}
  9 +.con{
  10 + width: 60%;
  11 + padding-top: 20px;
  12 + margin: 30px auto;
  13 + text-align: center;
  14 +}
  15 +.con>table{
  16 + width: 50%;
  17 + margin: 0 auto;
  18 +}
  19 +.con table tr{
  20 + height: 40px;
  21 +}
  22 +.con table tr td{
  23 + text-align: left;
  24 +}
0 25 \ No newline at end of file
... ...
trunk/www/apidocassets/javascript/mess_front.js 0 → 100644
  1 +/**
  2 + * Created by Dell on 2018/9/4.
  3 + */
  4 +
  5 +/**
  6 + * 留言数据验证
  7 + */
  8 +function inputCheck(){
  9 +
  10 +}
  11 +
  12 +/**
  13 + * 留言信息提交
  14 + */
  15 +function jumpSubmit(){
  16 + alert(235);
  17 +}
  18 +
... ...
trunk/www/mess_front/input.PHP 0 → 100644
  1 +<?php
  2 +
  3 +
  4 +?>
  5 +
  6 +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
  7 + "http://www.w3.org/TR/html4/loose.dtd">
  8 +<html>
  9 +<head>
  10 + <title>发表留言</title>
  11 + <meta charset="utf-8">
  12 + <link type="text/css" rel="stylesheet" href="../apidocassets/css/mess_front.css" >
  13 + <script type="text/javascript" src="../apidocassets/javascript/jquery.min.js"></script>
  14 + <script type="text/javascript" src="../apidocassets/javascript/mess_front.js"></script>
  15 +
  16 +</head>
  17 +<body>
  18 + <div class="con">
  19 + <form action="http://lys.com/wx5019b9c455ea9c81/Message/Api/Message/MessInput" method="post" name="input_frm">
  20 + <table>
  21 + <caption><h2>发表留言</h2></caption>
  22 + <tr>
  23 + <td>姓名:</td>
  24 + <td>
  25 + <input type="text" name="txtName" >
  26 + </td>
  27 + </tr>
  28 + <tr>
  29 + <td>标题:</td>
  30 + <td>
  31 + <input name="txtTitle" id="txtTitle" type="text" maxlength="80" >
  32 + </td>
  33 + </tr>
  34 + <tr>
  35 + <td>留言内容:</td>
  36 + <td>
  37 + <textarea rows="8" cols="50" name="txtCon" id="txtCon" ></textarea>
  38 + </td>
  39 + </tr>
  40 + <tr>
  41 + <td>插入图片:</td>
  42 + <td>
  43 + <input type="file" name="myImg" >
  44 + </td>
  45 + </tr>
  46 + <tr>
  47 + <td>上传附件:</td>
  48 + <td>
  49 + <input type="file" name="myFile" >
  50 + </td>
  51 + </tr>
  52 + <tr></tr>
  53 + <tr>
  54 + <td colspan="2" style="text-align: center;">
  55 + <input type="button" value="发表留言" onclick="javascript:jumpSubmit();">
  56 + &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  57 + <input type="reset" value="重置" >
  58 + </td>
  59 + </tr>
  60 + </table>
  61 + </form>
  62 + </div>
  63 +</body>
  64 +</html>
0 65 \ No newline at end of file
... ...
trunk/www/mess_front/input.html deleted 100644 → 0
1   -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
2   - "http://www.w3.org/TR/html4/loose.dtd">
3   -<html>
4   -<head>
5   - <title>Title</title>
6   -</head>
7   -<body>
8   -
9   -</body>
10   -</html>
11 0 \ No newline at end of file
trunk/www/mess_front/login.php 0 → 100644
  1 +<!doctype html>
  2 +<html lang="en">
  3 +<head>
  4 + <meta charset="UTF-8">
  5 + <title>用户登录</title>
  6 + <link href="../apidocassets/css/mess_front.css" >
  7 +</head>
  8 +<body>
  9 + <div class="con">
  10 +
  11 + <table>
  12 + <tr>
  13 + <td>用户名:</td>
  14 + <td>
  15 + <input type="text" name="txtName" >
  16 + </td>
  17 + </tr>
  18 + <tr>
  19 + <td>密码:</td>
  20 + <td>
  21 + <input type="password" name="txtPwd" >
  22 + </td>
  23 + </tr>
  24 + <tr>
  25 + <td colspan="2">
  26 + <input type="submit" value="登录" style="padding: 10px 20px;" >
  27 + </td>
  28 + </tr>
  29 + </table>
  30 +
  31 + </div>
  32 +</body>
  33 +</html>
  34 +
  35 +<?php
  36 +
  37 +
... ...
trunk/www/ueditor-package/index.html
... ... @@ -21,7 +21,7 @@
21 21 <h1>完整demo</h1>
22 22 <script id="editor" type="text/plain" style="width:1024px;height:500px;"></script>
23 23 </div>
24   -<div id="btns">
  24 +<!--<div id="btns">
25 25 <div>
26 26 <button onclick="getAllHtml()">获得整个html的内容</button>
27 27 <button onclick="getContent()">获得内容</button>
... ... @@ -56,7 +56,7 @@
56 56 创建编辑器</button>
57 57 <button onclick="deleteEditor()">
58 58 删除编辑器</button>
59   -</div>
  59 +</div>-->
60 60  
61 61 <script type="text/javascript">
62 62  
... ...