QueryGrade.html 7.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 84 85
        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;
        }
        .main{
            margin: 10px auto;
            width: 800px;
            height: auto;
        }
        .table-box{
            margin: 5px auto;
            width: 100%;
            height: 1000px;
        }
    </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 已提交
86
        <ul>
7
Update  
7wc98#14 已提交
87 88 89 90 91 92 93 94 95 96 97 98 99 100
            <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 已提交
101
        <ul>
7
Update  
7wc98#14 已提交
102 103 104 105 106
            <li><a href="/home">Home</a></li>
            <li><a href="/learn">学习资源</a></li>
            <li><a href="/news">校内新闻</a></li>
            <li sec:authorize="hasRole('ROLE_USER')"><a href="/userCenter" style="color: red" th:text="${curUse.getName()}"></a>
            </li>
7
Update  
7wc98#14 已提交
107
            <li sec:authorize="hasRole('ROLE_ADMIN')"><a href="/admin">网站管理</a></li>
7
Update  
7wc98#14 已提交
108 109 110 111 112 113
            <li sec:authorize="hasRole('ROLE_ADMIN')"><a href="/userCenter" style="color: red" th:text="${curUse.getName()}"></a>
            </li>
        </ul>
    </div>
</div>
<div class="main">
7
Update  
7wc98#14 已提交
114 115 116 117 118 119 120 121 122 123
    <br>
    <form class="form-inline" name="form"  method="post" th:action="@{/queryByTerm}">
        <div class="form-group">
            <label for="term" class="sr-only">学年学期</label>
            <div class="input-group">
                <input type="text" name="term" id="term" placeholder="起始年-结束年-学期">
            </div>
        </div>
        <button type="submit" class="btn btn-primary">查询</button>
    </form>
7
Update  
7wc98#14 已提交
124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 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 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193
    <div class="table-box">
        <table class="table table-striped">
            <thead>
            <tr>
                <th>学年学期</th>
                <th>学号</th>
                <th>姓名</th>
                <th>课程编号</th>
                <th>课程名称</th>
                <th>总成绩</th>
                <th>绩点</th>
                <th>学时</th>
                <th>学分</th>
            </tr>
            </thead>
            <tbody th:if="${not #lists.isEmpty(gradeItems)}">
            <tr th:each="grade:${gradeItems}">
                <td th:text="${grade.term}"></td>
                <td th:text="${grade.studentID}"></td>
                <td th:text="${grade.name}"></td>
                <td th:text="${grade.courseCode}"></td>
                <td th:text="${grade.courseName}"></td>
                <td th:text="${grade.grade}"></td>
                <td th:text="${grade.gpa}"></td>
                <td th:text="${grade.learnHour}"></td>
                <td th:text="${grade.credit}"></td>
            </tr>
            </tbody>
        </table>
    </div>
</div>

<div id="after_sale">
    <div class="container">
        <ul>
            <li>
                <ol>
                    <li><a href="#">联系方式</a></li>
                    <li><a href="#">15014366986</a></li>
                    <li><a href="#">2923616405</a></li>
                    <li><a href="#">pyc852164</a></li>
                </ol>
            </li>
            <li>
                <ol>
                    <li><a href="#">关于我</a></li>
                    <li><a href="https://blog.csdn.net/qq_42896653">CSDN</a></li>
                    <li><a href="https://github.com/pyc-ycy">Github</a></li>
                    <li><a href="https://gitee.com/pengyoucongcode">Gitee</a></li>
                </ol>
            </li>
            <li>
                <ol>
                    <li>关于我</li>
                    <li>我的博客文章,</li>
                    <li>我的代码托管平台,</li>
                    <li>也是代码托管平台,</li>
                </ol>
            </li>
            <li>
                <ol>
                    <li>关于我</li>
                    <li>可以了解我的所学</li>
                    <li>可以看到我的开源代码</li>
                    <li>为避免Github访问不了</li>
                </ol>
            </li>
        </ul>
    </div>
</div>
7
modify  
7wc98#14 已提交
194 195 196 197
<div id="scroll">
    <div class="scrollItem" id="toTop">顶部</div>
    <div class="scrollItem" id="toBottom">底部</div>
</div>
7
Update  
7wc98#14 已提交
198 199 200 201 202 203 204
<div id="footer">
    <div class="container">
        <p style="color: white;text-align: center;">
            @2020 御承扬Copyright&copy;2020-05-04
        </p>
    </div>
</div>
7
modify  
7wc98#14 已提交
205

7
Update  
7wc98#14 已提交
206 207 208 209 210
<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>