2023.10.29每日总结

<%--
  Created by IntelliJ IDEA.
  User: 王磊
  Date: 2023/4/24
  Time: 10:27
  To change this template use File | Settings | File Templates.
--%>
<%@ page import="wangzhan.Thesql" %>
<%@ page import="wangzhan.Pd_tea" %>
<%@ page import="wangzhan.Pd_lesson" %>
<%@ page language="java" contentType="text/html; charset=UTF-8"

         pageEncoding="UTF-8"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<html>
<head>
    <meta charset="UTF-8">
    <title>课程详情</title>
    <style>
        body {
            font-family: sans-serif;
            margin: 0;
            padding: 0;
        }

        header {
            height: 4%;
            background: #333;
            color: #fff;
            padding: 10px;
            text-align: center;
            font-size: 0.8em;
        }

        main {
            max-width: 800px;
            margin: 0 auto;
            padding: 20px;
            background-color: #f8f8f8;
            border-radius: 5px;
        }

        h1 {
            margin-top: 0;
        }

        ul {
            list-style-type: none;
            padding: 0;
            margin: 0;
        }

        li {
            margin-bottom: 10px;
        }

        label {
            display: block;
            margin-bottom: 5px;
            font-weight: bold;
        }

        p {
            margin-top: 0;
        }

        button[type=submit] {
            background-color: #4CAF50;
            color: white;
            padding: 10px 20px;
            border: none;
            border-radius: 5px;
            cursor: pointer;
            margin-top: 10px;
        }

        button[type=submit]:hover {
            background-color: #2292d3;
        }
    </style>
</head>

<body>
<header>
    <h1>软件工程</h1>
</header>
<%
    String les_id=request.getParameter("les_id");
    Thesql thesql=new Thesql();
    Pd_lesson pd_lesson= thesql.lesson_query(les_id);
    Pd_tea pd_tea= thesql.tea_query(pd_lesson.getLesson_teacher());
    pd_tea= thesql.tea_query("202001");
    String IsPass=request.getParameter("IsPass");
    if(IsPass==null)
    {
        IsPass="未通过";
    }
    if(IsPass.equals("通过")){
        thesql.lesson_examine(les_id,true);
    }
%>
<main>
    <h2>授课专业</h2>
    <p>2021级软件工程全体学生</p>

    <h2>课程信息</h2>
    <ul>
        <li>
            <label for="professor"><%=pd_tea.getJob()%></label>
            <p id="professor"><%=pd_tea.getName()%></p>
        </li>
        <li>
            <label for="credits">学分:</label>
            <p id="credits"><%=pd_lesson.getLesson_credit()%></p>
        </li>
        <li>
            <label for="time">课程目标一:<%=pd_lesson.getLesson_target1()%></label>
            <p id="time">作业:<%=pd_lesson.getT1_task()%></p>
            <p id="time">实验:<%=pd_lesson.getT1_test()%></p>
            <p id="time">期末考试:<%=pd_lesson.getT1_exam()%></p>
            <p id="time">分配分数:<%=pd_lesson.getT1_score()%></p>
        </li>
        <li>
            <label for="time">课程目标二:<%=pd_lesson.getLesson_target2()%></label>
            <p id="time">作业:<%=pd_lesson.getT2_task()%></p>
            <p id="time">实验:<%=pd_lesson.getT2_test()%></p>
            <p id="time">期末考试:<%=pd_lesson.getT2_exam()%></p>
            <p id="time">分配分数:<%=pd_lesson.getT2_score()%></p>
        </li>
        <li>
            <label for="time">课程目标三:<%=pd_lesson.getLesson_target3()%></label>
            <p id="time">作业:<%=pd_lesson.getT3_task()%></p>
            <p id="time">实验:<%=pd_lesson.getT3_test()%></p>
            <p id="time">期末考试:<%=pd_lesson.getT3_exam()%></p>
            <p id="time">分配分数:<%=pd_lesson.getT3_score()%></p>
        </li>
        <li>
            <label for="prerequisites">课程总分:</label>
            <p id="prerequisites"><%=pd_lesson.getLesson_score()%></p>
        </li>
    </ul>
    <h2>课程要求</h2>
    <ul>
        <li>完成所有的课堂作业和实验</li>
        <li>通过期末考试</li>
    </ul>
    <ul>
        <li>课程通过情况:</li>
        <li><%=IsPass%></li>
    </ul>
    <form action="kechengxiangqing.jsp">
        <input type="hidden" name="les_id" value="<%=les_id%>">
        <input type="hidden" name="IsPass" value="通过">
    <button type="submit">审核通过</button>
    </form>
</main>
</body>

</html>

 

posted @ 2023-10-29 21:29  超爱彬宝同学  阅读(17)  评论(0)    收藏  举报