⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 student.jsp

📁 本源码主要从数据库的开发过程出发
💻 JSP
字号:
<%-- 
    Document   : student
    Created on : 2008-5-12, 10:14:28
    Author     : Administrator
--%>

<%@page contentType="text/html" pageEncoding="GBK"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">

<jsp:useBean id="userinf" scope="session" class="Source.userInf"/>
<%
    if(!userinf.isHasLogin()){
        session.setAttribute("inf", "请重新登录!");
        session.setAttribute("returnStr", "<a href='Login.jsp'>Return</a>");
        response.sendRedirect("Information.jsp");
    }
%>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=GBK" />
        <title>Student Page</title>
        <style type="text/css">
            <!--
            #main {
                background-color: #CCCCCC;
                width: 750px;
                margin-right: auto;
                margin-left: auto;
                padding-bottom: 30px;
                padding-top: 30px;
            }
            #main #content {
                background-position: center;
                background-color: #FFFFFF;
                width: 600px;
                margin-right: auto;
                margin-left: auto;
                vertical-align: text-top;
                text-align: center;
                padding-top: 20px;
                padding-bottom: 20px;
            }
            .STYLE3 {
                width: 600px;
                background-color: #666666;
                margin-right: auto;
                margin-left: auto;
                font-size: xx-large;
                font-weight: bold;
                color: #FFFFFF;
            }
            -->
        </style>
    </head>
    <body>
        <div id="main">
            <div class="STYLE3" id="title">Student page</div>
            <div id="content">
                <div align="center">欢迎学生<%=userinf.getUserName()%>,你的ID是:<%=userinf.getUserID()%>.
                    <br>
                    <br>
                    <ul>
                      <li><a href='ShowGrade.jsp'>成绩查询</a></li>
                      <li><a href='ShowCourse.jsp'>课程信息</a></li>
                      <li><a href='AlterInf.jsp'>修改个人信息</a></li>
                      <li><a href='Logout'>注销</a></li>
                    </ul>
              </div>
          </div>
        </div>
    </body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -