PublishQuestion.html 10.3 KB
Newer Older
7
Update  
7wc98#14 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org"
      xmlns:sec="http://www.thymeleaf.org/thymeleaf-extras-springsecurity4"
      lang="en">
<head>
    <meta charset="UTF-8">
    <title>悬赏问题发布</title>
    <link rel="stylesheet" type="text/css" href="../../static/css/oppo.css">
    <!-- 最新版本的 Bootstrap 核心 CSS 文件 -->
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/css/bootstrap.min.css"
          integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">

    <!-- 可选的 Bootstrap 主题文件(一般不用引入) -->
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/css/bootstrap-theme.min.css"
          integrity="sha384-rHyoN1iRsVXV4nD0JutlnGaslCJuC7uwjduW9SVrLvRYooPp2bWYgmgJQIXwl/Sp" crossorigin="anonymous">

    <!-- 最新的 Bootstrap 核心 JavaScript 文件 -->
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/js/bootstrap.min.js"
            integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa"
            crossorigin="anonymous"></script>
    <script src="https://cdn.bootcss.com/jquery/1.12.4/jquery.min.js"></script>
7
modify  
7wc98#14 已提交
22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45
    <script type="text/javascript">
        $(function () {
            var speed = 800;//滚动速度
            var h=document.body.clientHeight;
            //回到顶部
            $("#toTop").click(function () {

                $('html,body').animate({

                        scrollTop: '0px'
                    },
                    speed);
            });
            //回到底部
            var windowHeight = parseInt($("body").css("height"));//整个页面的高度
            $("#toBottom").click(function () {
                //alert(h);
                $('html,body').animate({
                        scrollTop: h+'px'
                    },
                    speed);
            });
        });
    </script>
7
Update  
7wc98#14 已提交
46
    <style>
7
modify  
7wc98#14 已提交
47 48 49 50 51 52
        #scroll {
            position:fixed; top:300px; right:100px;
        }
        .scrollItem {
            width:20px; height:70px;border:#e1e1e1 1px solid; cursor:pointer; text-align:center; padding-top:10px;
        }
7
Update  
7wc98#14 已提交
53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83
        body {
            font-family: Helvetica Neue, Helvetica, Arial, sans-serif;
            font-size: 14px;
            color: #000;
            margin: 0;
            padding: 0;
            background: #eee url("../../static/images/campus/logo.jpg") center no-repeat fixed;
        }
        .form-box{
            width: 500px;
            height: auto;
        }
        .starter-template {
            padding: 40px 15px;
            text-align: center;
        }
    </style>
</head>
<body>
<!--页面顶部-->
<div id="top">
    <div class="container"></div>
</div>
<!-- 页面的头部 -->
<div id="header">
    <div class="container">
        <div class="header_left left">
            <div class="xlwb"></div>
            <div class="txwb"></div>
            <div class="tel">150-1436-6986</div>
        </div>
7
Modify  
7wc98#14 已提交
84
        <ul>
7
Update  
7wc98#14 已提交
85 86 87 88 89 90 91 92 93 94 95 96 97 98
            <li>
                <form th:action="@{/logout}" method="post">
                    <input type="submit" class="btn btn-link" th:value="安全退出">
                </form>
            </li>
        </ul>
    </div>
</div>
<!-- 页面的导航 -->
<div id="nav">
    <div class="container">
        <div class="logo left">
            <h1>Campus</h1>
        </div>
7
Modify  
7wc98#14 已提交
99
        <ul>
7
Update  
7wc98#14 已提交
100
            <li><a href="/home">Home</a></li>
7
Modify  
7wc98#14 已提交
101 102 103 104 105 106 107 108 109 110 111 112
            <li class="dropdown">
                <a class="dropdown-toggle" data-toggle="dropdown" href="/learn">
                    学习中心<span class="caret"></span>
                </a>
                <ul class="dropdown-menu">
                    <li><a href="/learn">编程学习</a></li>
                    <li><a href="/toEnglish">英语</a></li>
                    <li><a href="/toMath">数学</a></li>
                    <li class="divider"></li>
                    <li><a href="/toPhilosophy">哲学</a></li>
                </ul>
            </li>
7
Update  
7wc98#14 已提交
113 114 115 116 117 118
            <li><a href="/news">校内新闻</a></li>
            <li sec:authorize="hasRole('ROLE_USER')"><a href="/userCenter" style="color: red" th:text="${curUse.getName()}"></a>
            </li>
            <li sec:authorize="hasRole('ROLE_ADMIN')"><a href="/admin">网站管理</a></li>
            <li sec:authorize="hasRole('ROLE_ADMIN')"><a href="/userCenter" style="color: red" th:text="${curUse.getName()}"></a>
            </li>
7
Modify  
7wc98#14 已提交
119
            <li><a href="/toHelp">帮助中心</a> </li>
7
Update  
7wc98#14 已提交
120 121 122
        </ul>
    </div>
</div>
7
modify  
7wc98#14 已提交
123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139
<div class="container">
    <div class="row">
        <div class="col-sm-4">
            <h2>网站管理菜单</h2>
            <ul class="nav nav-pills nav-stacked">
                <li><a href="/publishNews">新闻发布</a> </li>
                <li><a href="/toImportGrade">成绩导入</a> </li>
                <li class="active"><a href="/toPublishQuestion">发布悬赏问题</a> </li>
                <li><a href="/manageUser">管理用户</a> </li>
            </ul>
            <hr class="hidden-sm hidden-md hidden-lg">
        </div>
        <div class="col-md-8">
            <h1>悬赏问题发布</h1>
            <div class="starter-template">
                <h1 th:text="${msg.title}"></h1>
                <p class="bg-primary" th:text="${msg.content}"></p>
7
Update  
7wc98#14 已提交
140
            </div>
7
modify  
7wc98#14 已提交
141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178
            <div class="form-box">
                <form class="form-horizontal" method="post" th:action="@{/publishQuestion}" action="/publishQuestion" name="form">
                    <div class="form-group">
                        <label for="inputEmail3" class="col-sm-2 control-label">邮箱</label>
                        <div class="col-sm-10">
                            <input type="email" class="form-control" name="mail" id="inputEmail3" placeholder="Your Email">
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="inputName" class="col-sm-2 control-label">姓名</label>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" name="PublisherName" id="inputName" placeholder="Your Name">
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="inputTitle" class="col-sm-2 control-label">问题类型</label>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" name="QuestionType" id="inputTitle" placeholder="Title Of Your Question">
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="inputContent" class="col-sm-2 control-label">问题描述</label>
                        <div class="col-sm-10">
                            <textarea class="form-control" name="content" id="inputContent" rows="3" placeholder="请描述你的问题,一百字以内"></textarea>
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="inputReward" class="col-sm-2 control-label">悬赏</label>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" name="reward" id="inputReward" placeholder="Reward Of Your Question">
                        </div>
                    </div>
                    <div class="form-group">
                        <div class="col-sm-offset-2 col-sm-10">
                            <button type="submit" class="btn btn-default">发布</button>
                        </div>
                    </div>
                </form>
7
Update  
7wc98#14 已提交
179
            </div>
7
modify  
7wc98#14 已提交
180 181 182 183 184 185 186 187 188 189
        </div>
        <div class="col-sm-6 col-md-4">
            <div class="thumbnail">
                <div class="caption">
                    <ul>
                        <li><a href="#" style="font-size: larger">联系方式</a></li>
                        <li><a href="#" style="font-size: larger">15014366986</a></li>
                        <li><a href="#" style="font-size: larger">2923616405</a></li>
                        <li><a href="#" style="font-size: larger">pyc852164</a></li>
                    </ul>
7
Update  
7wc98#14 已提交
190 191
                </div>
            </div>
7
modify  
7wc98#14 已提交
192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210
        </div>
        <div class="col-sm-6 col-md-4">
            <div class="thumbnail">
                <div class="caption">
                    <ul>
                        <li><a href="#" style="font-size: larger">关于我</a></li>
                        <li><a href="https://blog.csdn.net/qq_42896653"
                               target="_blank" style="font-size: larger">
                            CSDN:我的关于计算机学习的博客地址
                        </a></li>
                        <li><a href="https://github.com/pyc-ycy"
                               target="_blank" style="font-size: larger">
                            Github:编程学习项目源代码托管仓库地址
                        </a></li>
                        <li><a href="https://gitee.com/pengyoucongcode"
                               target="_blank" style="font-size: larger">
                            Gitee:学习项目源代码托管地址
                        </a></li>
                    </ul>
7
Update  
7wc98#14 已提交
211 212
                </div>
            </div>
7
modify  
7wc98#14 已提交
213 214 215 216 217 218 219 220 221 222
        </div>
        <div class="col-sm-6 col-md-4">
            <div class="thumbnail">
                <div class="caption">
                    <ul>
                        <li style="font-size: larger">关于我</li>
                        <li style="font-size: larger">我的博客文章,主要是计算机学习方面</li>
                        <li style="font-size: larger">我的代码托管平台,以C++和Java为主</li>
                        <li style="font-size: larger">也是代码托管平台,以C++和Java为主</li>
                    </ul>
7
Update  
7wc98#14 已提交
223 224
                </div>
            </div>
7
modify  
7wc98#14 已提交
225
        </div>
7
Update  
7wc98#14 已提交
226 227
    </div>
</div>
7
modify  
7wc98#14 已提交
228 229 230 231
<div id="scroll">
    <div class="scrollItem" id="toTop">顶部</div>
    <div class="scrollItem" id="toBottom">底部</div>
</div>
7
Update  
7wc98#14 已提交
232
<div id="footer">
7
modify  
7wc98#14 已提交
233 234 235
    <div style="text-align: center">
        <p>
            <span>@2020 御承扬Copyright&copy;2020-05-04</span>
7
Update  
7wc98#14 已提交
236 237 238
        </p>
    </div>
</div>
7
modify  
7wc98#14 已提交
239

7
Update  
7wc98#14 已提交
240 241 242 243 244
<script type="text/javascript" src="../../static/js/jquery-1.11.3.js"></script>
<script type="text/javascript" src="../../static/js/oppo.js"></script>

</body>
</html>