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

5.12每日总结

时间:2023-05-12 21:23:34浏览次数:35  
标签:总结 color text 每日 5.12 solid rgb 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\"" %> >« 上一页</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\"" %> >下一页 »</a>
</div>

</body>>
</html>

 

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

相关文章

  • 总结
       我是希望能做对的队员之一,第一阶段已经完成,绩效评估我是团队中的最后一名,总结了一下,共有以下几点做的不好:  1.我在这门学科中基础比较差,在一起讨论的时候往往更不上他们两个的节奏;  2.敲代码速度太慢,他们完成相应的任务还会帮助我做我的任务,以至于我的工作量是最......
  • 每日总结 5.12
    今日进行了web实验。对于之前所学习的增删改查进行熟练学习。1)    开MySQL,新建一个数据库。2)    新建一个数据库表。3)    在表中增加若干记录,作为初始数据。4)    打开Eclipse软件,新建一个名为Lab03的Web项目,并设置其部署程序为Tomcat。5)    在......
  • 每日总结2023-05-12
    今天完成了dialog的简易模式:privatevoidshowQieDialog(){AlertDialog.Builderbuilder=newAlertDialog.Builder(this);builder.setTitle("切换账号提示").setMessage("请确认切换账号").setPositiveButton("......
  • 5.12每日总结
    今天学习了nextInt、nextFloat、nextDoublenext():用于读取String字符串数组,以空格划分(只读取输入直到空格),在读取后将光标指向本行nextLine():用于读取String字符串数组,读取包括单词之间的空格和除回车以外的所有符号,在读取后将光标指向下一行publicstaticvoidmain(String[]arg......
  • 2023.5.12编程一小时打卡
    一、问题描述:初始化int类型数组data1[]={1,3,5,7,9,11,13,15,17,19,2,4,6,8,10,12,14,16,18,20},先用任一种算法对其进行排序,然后用户输入一个数字,折半查找函数模板找出他的位置。 二、解题思路:首先对数组进行排序,然后用数组的下标进行折半查找,利用数组下标的比较大小进行替......
  • 2020年年终总结
    目录序言疫情到来学习娱乐个人公众号创建个人博客正式上线关于理财健康问题常回家看看2021年flag序言转眼间,2020年就这么过去了。2020对于每个人来说应该都是不平凡的一年,毕竟这一年太特殊了,一场席卷全世界的疫情来了。回想这一年,疫情改变了我们工作方式、生活方式。也让我们......
  • 团队项目第一阶段总结及不淘汰理由
    一工作总结在第一阶段的小组团队合作中,我和小组成员合力完成了图片表格识别转换的一个功能,虽然成功实现了老师的要求,但是也仅限于实现,勉强能用,仍有很多功能没有和理想一样达标。反思与小组合作的这些日子里,我在工作开始并没有和队内成员有充分的沟通,使得后面统一风格的时候......
  • 5.12
    #include<iostream>#include<string>usingnamespacestd;classDocument{public:   Document(){   }   Document(char*nm);   char*name;   voidPrintNameOf();};Document::Document(char*nm){   name=newchar[strlen(nm)+1];......
  • Apache2.2.11+Tomcat6.0 集群配置 总结
    最近公司需要配置集群在网上找了很多的资料都没有怎么个成功配合网上的资料和一些博客总结如下:1负载均衡的概念:就是apache将客户请求均衡的分给tomcat1,tomcat2....去处理2环境说明(Apache端口:80不需出来Apache端口:8080在Apache安装bin目录下(dos下......
  • 团队项目阶段一总结
    第一阶段工作总结:在第一阶段的工作中,我们团队致力于开发一款垃圾分类App。第一阶段结束后,我认识到自己在团队中的表现并不如其他队员出色,贡献和绩效相对较低。回顾一阶段的工作,我深刻地意识到了自己的不足之处,如较差的沟通能力、较少的沟通、时间分配能力等等,这些都严重影响了我......