首页 > 其他分享 >5.10每日总结

5.10每日总结

时间:2023-05-10 21:45:09浏览次数:39  
标签:总结 color text 每日 rgb solid 5.10 background border

<%@ 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>
  <title>登录</title>
  <style type="text/css">
    table {
      /*表格边框为实线或者是空心双线*/
      border-collapse: collapse;
      /*边框与边框的空间*/
      border-spacing: 0;
      padding: 40px ;
    }
    #loginMain {
      width: 400px;
      height:300px;
      margin: 1em auto;
      padding-bottom: 10px;
      border-right: rgb(30,144,255) 2px solid;
      border-top: rgb(30,144,255) 2px solid;
      border-left: rgb(30,144,255) 2px solid;
      border-bottom: rgb(30,144,255) 2px solid;
    }
    input{
      height: 40px;
      width: 240px;
    }

  </style>
</head>
<%
    String pages="";
    pages=request.getParameter("pages");
%>
<%
    String username="";
    String password="";
    out.print(pages);
    //获取cookie里面的值
    Cookie [] cookies = request.getCookies();
    if(cookies!=null){
        //遍历cookie
        for(int i = 0;i<cookies.length;i++){
            if(cookies[i].getName().equals("username")){
                //获取cookie里面的用户名
                username = cookies[i].getValue();
            }else if(cookies[i].getName().equals("password")){
                //获取密码
                password = cookies[i].getValue();
            }
        }
    }
%>
<body background="back.jpg">
<h1 align="center">登 陆</h1>
<br><br>
<form action="check.jsp" method="post">
  <table id="loginMain" border="0" style="font-size:18px;width:480px" align="center">
      <tr>
        <td align="center">用户名:<input type="text" name="username" size="20" placeholder="输入用户名"  style="font-size:18px"/>
      <br><br><input type="hidden" name="pages" value=<%=pages%> />
        密   码:<input type="password" name="password" size="20" placeholder="输入密码" style="font-size:18px"/></td>
      </tr>
      <tr><td align="center" colspan="2"><input type="submit" value="登录" style="width:45px;height:30px;margin:5px 40px"/>
        <input type="reset" value="重置" style="width:45px;height:30px;margin:5px 40px"/>
      </td>
      </tr>
  </table>
</form>
</body>
</html>
<%@ page import="wangzhan.Thesql" %>
<%@ page import="wangzhan.Pd_P_assignment" %>
<%@ page import="wangzhan.Pd_S_assignment" %>
<%@ 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 lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>教学管理平台</title>
    <style>
        body {
            font-family: Arial, sans-serif;
            background-color: #f7f7f7;
        }

        h1 {
            color: #333;
            text-align: center;
            margin-top: 50px;
        }

        table {
            margin: 0 auto;
            border-collapse: collapse;
            box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
            background-color: #fff;
        }

        th, td {
            padding: 30px;
            text-align: center;
            border: 1px solid #ddd;
            font-size: 17px;
        }

        th {
            background-color: #8b8989;
            color: #fff;
            font-size: 30px;
        }

        tr:nth-child(even) {
            background-color: #f2f2f2;
        }
        input{
            border: none;
            border-radius: 10px;
            height: 27px;
        }
        .submit{
            background-color: rgb(26, 131, 201);
            color: aliceblue;
            height: 50px;
            width: 90%;
        }
        .submit:active{
            background-color: rgb(166, 172, 175);
        }
        a{
            text-decoration: none;
            font-size: 20px;
            color: #3bc9e2;
        }
        /* 翻页选中样式 */
        .active {
            color: white;
            background-color: #007bff;
            border-radius: 0.25rem;
            padding: 0.5rem;
            text-decoration: none;
            margin-right: 10px;
        }

        /* 翻页未选中样式 */
        a.page-link {
            color: #007bff;
            text-decoration: none;
            margin-right: 10px;
        }
        #pagination{
            text-align: center;
        }
    </style>
</head>
<%
    Thesql thesql = new Thesql();
    request.setCharacterEncoding("UTF-8");
    String les="";//课程名称
    String pu="";//老师名称
    String stu="";//是否审批
    les=request.getParameter("les");
    pu=request.getParameter("pu");
    stu=request.getParameter("stu");

    Pd_lesson pd[] = thesql.lesson_DimQuery("",les,pu,stu);
    String id_=request.getParameter("id_");

    int itemsPerPage = 5;//每页展示多少条
    int totalItems = pd.length;//总共多少条
    int currentPage = request.getParameter("page") == null ? 1 : Integer.parseInt(request.getParameter("page"));
    int totalPages = (int) Math.ceil(totalItems / (double)itemsPerPage);
    int startItem = (currentPage - 1) * itemsPerPage + 1;
    int endItem = Math.min(startItem + itemsPerPage - 1, totalItems);
%>
<body>

<h1>审批课程</h1>

<table>
    <tr>
        <form action="shenhe.jsp" method="post">
            <th>编号</th>
            <th>课程:<input type="text" name="les"></th>
            <th>教师:<input type="text" name="pu"></th>
            <th>审批状态:<input type="text" name="stu"></th>
            <th><input class="submit" type="submit"></th>
        </form>
    </tr>
    <% for (int i = startItem; i < endItem; i++) { %>
    <tr>
        <td><%=pd[i].getId()%></td>
        <td><%=pd[i].getLesson_name()%></td>
        <td><%=pd[i].getLesson_teacher()%></td>
        <td><%=pd[i].getIsPass()%></td>
        <td><a href="Aduit.jsp?les_id=<%=pd[i].getId()%>&id_=<%=id_%>">查看</a></td>
    </tr>
    <% }%>

</table>
<br>
<%
    if(!(les!=null)) les="";
    if(!(pu!=null)) pu="";
    if(!(stu!=null)) stu="";
%>
<div id="pagination">
    <%-- 显示翻页链接 --%>
    <%--    &les=<%=les%>&pu=<%=pu%>&stu=<%=stu%>--%>
    <a href="?page=<%= Math.max(1, currentPage - 1) %>&les=<%=les%>&pu=<%=pu%>&stu=<%=stu%>" <%= currentPage == 1 ? "class=\"disabled page-link\"" : "class=\"page-link\"" %> >&laquo; 上一页</a>
    <% for (int i = 1; i <= totalPages; i++) { %>
    <a href="?page=<%= i %>&les=<%=les%>&pu=<%=pu%>&stu=<%=stu%>" <%= i == currentPage ? "class=\"active\"" : "class=\"page-link\"" %> ><%= i %></a>
    <% } %>
    <a href="?page=<%= Math.min(currentPage + 1, totalPages) %>&les=<%=les%>&pu=<%=pu%>&stu=<%=stu%>" <%= currentPage == totalPages ? "class=\"disabled page-link\"" : "class=\"page-link\"" %> >下一页 &raquo;</a>
</div>

</body>>
</html>

 

标签:总结,color,text,每日,rgb,solid,5.10,background,border
From: https://www.cnblogs.com/louwangshayu/p/17389427.html

相关文章

  • 5.10每日总结
    今天思考了接下来的团队项目要完成的任务简单的了解和学习了一些关于文本数据处理的技术知识,对未来的项目改进思考了一些基本的框架,未来还将和团队成员对项目的成品和任务进行讨论和分工。......
  • 每日打卡-20.1
    一.问题描述编写程序提示用户输入一个班级中的学生人数n,再依次提示用户输入n个人在课程A中的考试成绩,然后计算出平均成绩,显示出来。请使用本书第9章中的数组类模板Array定义浮点型数组存储考试成绩。二.设计思路按照题目要求编写代码三.流程图四.伪代码 1五.代码......
  • 每日打卡-20.2
    一.问题描述初始化int类型数组datal[]={1,3,5,7,9,11,13,15,17,19,2,4,6,8,10,12,14,16,18,20},应用本章的直接插入排序函数模板进行排序。对此函数模板稍做修改,加入输出语句,在每插入一个待排序元素后显示整个数组,观察排序过程中数据的变化,加深对插入排序算法的理解。二.设计思路三.流程图四.......
  • 每日总结-23.5.10
    <%@pageimport="java.util.Calendar"%><%@pageimport="wangzhan.Thesql"%><%@pageimport="wangzhan.Pd_P_assignment"%><%@pageimport="wangzhan.Pd_S_assignment"%><%@pagelanguage=&......
  • 每日打卡
    回文数问题描述:回文数指形如abcba类的数,求小于n<256的回文数问题分析:看千位权重与十位相同需要用循环写出个位t与十位i代码:#include<stdio.h> intmain() {            intm[16],n,i,t,count=0;            longunsigneda,k;      ......
  • 5.10推箱子2.0
    一升级说明修复第一版bug真正可运行的推箱子增加重开系统;增加多关卡地图复制到编译器编译运行即可开玩能过第四关算我输;二代码#include<iostream>usingnamespacestd;#include<stdlib.h>#include<conio.h>#include"Map.h"//地图关卡#defineWIDTH8//地图宽度#......
  • 每日总结 5.10
    今日操作了python的大作业。随后进行了供货商web端的页面显示。实现每条请求所需要付款数 实现对于售卖机的页面改进广告弹窗的自动关闭和主动关闭 ......
  • 5.10
    #include<iostream>usingnamespacestd;inti=1;voidother(){   staticinta=2;   staticintb;   intc=10;   a+=2;   i+=32;   c+=5;   cout<<"---OTHER---"<<endl;   cout<<"i:"......
  • 2023.5.10——软件工程日报
    所花时间(包括上课):6h代码量(行):0行博客量(篇):1篇今天,上午学习,下午学习。我了解到的知识点:1.了解了一些数据库的知识;2.了解了一些python的知识;3.了解了一些英语知识;5.了解了一些Javaweb的知识;4.了解了一些数学建模的知识;6.了解了一些计算机网络的知识; ......
  • 5.10打卡
    一、问题描述:求任意两个正整数的最小公倍数(LCM)。二、设计思路:对于输入的两个正整数m和n,每次输入的大小顺序可能不同,为了使程序具有一般性,首先对整数m和n进行大小排序,规定变量m中存警大数、变量n中存储小数。若输入时m的值小于变量n的值,则需要交换两个变量中存储的内容。再次强调:......