AddFriend.html 12.4 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 47 48 49 50 51 52 53 54 55 56
    <style>
        body {
            background: #eee;
            font-family: Helvetica Neue, Helvetica, Arial, sans-serif;
            font-size: 14px;
            color: #000;
            margin: 0;
            padding: 0;
        }

        .user-info {
7
modify  
7wc98#14 已提交
57
            width: 600px;
7
Update  
7wc98#14 已提交
58 59
            height: auto;
        }
7
modify  
7wc98#14 已提交
60 61 62 63 64 65
        #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 已提交
66 67 68 69 70 71 72 73 74 75 76 77 78 79 80
    </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 已提交
81
        <ul>
7
Update  
7wc98#14 已提交
82 83 84 85 86 87 88 89 90 91 92 93 94 95
            <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 已提交
96
        <ul>
7
Update  
7wc98#14 已提交
97 98
            <li><a href="/home">Home</a></li>
            <li><a href="/learn">学习资源</a></li>
7
Modify  
7wc98#14 已提交
99 100 101 102 103 104 105 106 107 108 109 110
            <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
commit  
7wc98#14 已提交
111
            <li sec:authorize="hasRole('ROLE_USER')"><a href="/userCenter" style="color: red">用户中心</a>
7
Update  
7wc98#14 已提交
112 113
            </li>
            <li sec:authorize="hasRole('ROLE_ADMIN')"><a href="/admin">网站管理</a></li>
7
commit  
7wc98#14 已提交
114
            <li sec:authorize="hasRole('ROLE_ADMIN')"><a href="/userCenter" style="color: red">用户中心</a>
7
Update  
7wc98#14 已提交
115
            </li>
7
Modify  
7wc98#14 已提交
116
            <li><a href="/toHelp">帮助中心</a> </li>
7
Update  
7wc98#14 已提交
117 118 119
        </ul>
    </div>
</div>
7
commit  
7wc98#14 已提交
120
<div class="container" style="margin-bottom: 10%">
7
Update  
7wc98#14 已提交
121 122 123
    <div class="row">
        <div class="col-sm-4">
            <ul class="nav nav-pills nav-stacked">
7
modify  
7wc98#14 已提交
124
                <li><a href="/userCenter">信息查看</a> </li>
7
commit  
7wc98#14 已提交
125 126 127
                <li><a href="/updateUserInfo" target="_blank">更新信息</a></li>
                <li><a href="/sign" target="_blank">注册</a></li>
                <li><a href="/toChangePWD" target="_blank">修改密码</a></li>
7
modify  
7wc98#14 已提交
128 129
                <li><a href="/toQueryGrade" target="_blank">查看课程成绩</a> </li>
                <li><a href="/toUpQuestion" target="_blank">申请问题悬赏</a> </li>
7
commit  
7wc98#14 已提交
130 131
                <li><a href="/toBrowserQuestion" target="_blank">浏览悬赏问题</a> </li>
                <li><a href="/publicChatRoom" target="_blank">公共聊天室</a> </li>
7
modify  
7wc98#14 已提交
132
                <li class="active"><a href="/toAddFriend">添加好友</a> </li>
7
modify  
7wc98#14 已提交
133
                <li><a href="/toMyFriend">我的好友</a> </li>
7
modify  
7wc98#14 已提交
134
                <li><a href="/toVerifyFriend">好友申请验证</a> </li>
7
Update  
7wc98#14 已提交
135 136 137
            </ul>
            <hr class="hidden-sm hidden-md hidden-lg">
        </div>
7
modify  
7wc98#14 已提交
138
        <div class="col-sm-8" style="height: 500px;">
7
Update  
7wc98#14 已提交
139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164
            <div class="starter-template">
                <h1 th:text="${msg.title}"></h1>
                <p class="bg-primary" th:text="${msg.content}"></p>
            </div>
            <div class="user-info">
                <form class="form-horizontal" method="post" th:action="@{/addFriend}" action="/addFriend">
                    <div class="form-group">
                        <label for="fromName" class="col-sm-2 control-label">你的学号:</label>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" name="fromName" id="fromName" placeholder="学号示例:201724073161">
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="toName" class="col-sm-2 control-label">对方的学号</label>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" name="toName" id="toName" placeholder="学号示例:201724073161">
                        </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>
            </div>
        </div>
7
commit  
7wc98#14 已提交
165 166 167 168 169 170 171 172 173 174 175
    </div>
</div>


<link rel="stylesheet" href="../../static/css/footer.css">
<div class="footer-box">
    <div class="footer-container">
        <div class="footer-service clearfix">
            <div class="footer-service-item footer-icon-001">
                <i></i>
                <span>专注于后端开发</span>
7
modify  
7wc98#14 已提交
176
            </div>
7
commit  
7wc98#14 已提交
177 178 179 180 181 182 183 184 185 186 187
            <div class="footer-service-item footer-icon-002">
                <i></i>
                <span>扎实编程能力</span>
            </div>
            <div class="footer-service-item footer-icon-003">
                <i></i>
                <span>学习能力强</span>
            </div>
            <div class="footer-service-item footer-icon-004">
                <i></i>
                <span>掌握多门编程语言</span>
7
modify  
7wc98#14 已提交
188 189
            </div>
        </div>
7
commit  
7wc98#14 已提交
190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263
        <div class="footer-line"></div>
        <div class="footer-links clearfix">
            <dl class="footer-article-item">
                <dt>擅长编程语言</dt>
                <dd>
                    <a href="#">Java</a>
                </dd>
                <dd>
                    <a href="#">C/C++</a>
                </dd>
                <dd>
                    <a href="#">Python</a>
                </dd>
            </dl>
            <dl class="footer-article-item">
                <dt>关于开发者</dt>
                <dd>
                    <a href="https://blog.csdn.net/qq_42896653" target="_blank">CSDN博客</a>
                </dd>
                <dd>
                    <a href="#">专注后端</a>
                </dd>
                <dd>
                    <a href="#">兼为前端</a>
                </dd>
                <dd>
                    <a href="#">数据分析</a>
                </dd>
                <dd>
                    <a href="#">专业出身</a>
                </dd>
                <dd>
                    <a href="https://blog.csdn.net/qq_42896653" target="_blank">联系我</a>
                </dd>
            </dl>
            <dl class="footer-article-item">
                <dt>擅长领域</dt>
                <dd>
                    <a href="#">Java Web</a>
                </dd>
                <dd>
                    <a href="#">MFC客户端</a>
                </dd>
                <dd>
                    <a href="#">PyQT5</a>
                </dd>
                <dd>
                    <a href="#">Python 数据分析</a>
                </dd>
                <dd>
                    <a href="#">C/C++ 数据结构</a>
                </dd>
                <dd>
                    <a href="#">Java 后端</a>
                </dd>
            </dl>
            <dl class="footer-article-item">
                <dt>其他</dt>
                <dd>
                    <a href="https://blog.csdn.net/qq_42896653" target="_blank">博客地址</a>
                </dd>
                <dd>
                    <a href=" https://github.com/pyc-ycy">Github</a>
                </dd>
                <dd>
                    <a href="https://gitee.com/pengyoucongcode">Gitee</a>
                </dd>
            </dl>
            <dl class="footer-contact-item">
                <h3>联系我们</h3>
                <p>150-14366986</p>
                <div class="footer-ewm">
                    <img src="images/vm.png" alt="">
                    <p>关注CSDN博客</p>
7
modify  
7wc98#14 已提交
264
                </div>
7
commit  
7wc98#14 已提交
265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307
            </dl>
        </div>
        <div class="footer-friend">
            <div class="footer-friend-title">友情链接:</div>
            <ul class="footer-friend-title-list clearfix">
                <li>
                    <a href="http://www.baidu.com" target="_blank">百度一下</a>
                </li>
                <li>
                    <a href="https://www.runoob.com/" target="_blank">菜鸟教程</a>
                </li>
                <li>
                    <a href="https://mvnrepository.com/" target="_blank">Maven中心仓库</a>
                </li>
                <li>
                    <a href="https://www.bilibili.com/" target="_blank">B站</a>
                </li>
                <li>
                    <a href="http://c.biancheng.net/" target="_blank">C语言中文网</a>
                </li>
                <li>
                    <a href="https://www.w3school.com.cn/" target="_blank">W3Cschool</a>
                </li>
                <li>
                    <a href="https://www.runoob.com/linux/linux-tutorial.html" target="_blank">Linux学习</a>
                </li>
                <li>
                    <a href="https://www.runoob.com/bootstrap/bootstrap-tutorial.html" target="_blank">Bootstrap学习</a>
                </li>
                <li>
                    <a href="https://cn.vuejs.org/" target="_blank">Vuejs</a>
                </li>
            </ul>
            <a href="#" class="footer-friend-more">更多 >></a>
        </div>
        <div class="footer-copyright">
            <p>© 2017-2021 (彭友聪) 开发,并保留所有权利&nbsp;&nbsp;&nbsp;常年法律顾问: (深圳)律师事务所</p>
            <p>
                陆丰市河西街道xxxxx&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                <a href="#">
                    <img src="images/icon-footer.png" alt="">**网安备 0008899999xxxx号
                </a>
            </p>
7
modify  
7wc98#14 已提交
308
        </div>
7
Update  
7wc98#14 已提交
309 310
    </div>
</div>
7
modify  
7wc98#14 已提交
311 312 313 314
<div id="scroll">
    <div class="scrollItem" id="toTop">顶部</div>
    <div class="scrollItem" id="toBottom">底部</div>
</div>
7
Update  
7wc98#14 已提交
315 316 317 318 319
<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>