首页 > 其他分享 >2024.10.4(周五)

2024.10.4(周五)

时间:2024-10-05 10:00:44浏览次数:1  
标签:2024.10 5px color 工资 border 周五 background margin

<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
    <title>工资核算信息</title>
    <style>
        /* 整体页面布局和样式 */
        body {
            font-family: Arial, sans-serif;
            background-color: #f4f4f4;
            background-image: url('img.jpg'); /* 添加背景图片 */
            background-size: cover; /* 使背景图片覆盖整个页面 */
            background-position: center; /* 背景图片居中 */
            background-repeat: no-repeat; /* 不重复背景图片 */
        }

        h1 {
            text-align: center;
            color: #faf7f7;
        }

        form {
            background-color: #fff;
            padding: 20px;
            border-radius: 5px;
            box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
            width: 400px;
            margin: 0 auto;
        }

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

        input[type="text"],
        input[type="number"],
        select {
            width: 100%;
            padding: 8px;
            margin-bottom: 15px;
            border: 1px solid #ccc;
            border-radius: 3px;
        }

        button {
            background-color: #007BFF;
            color: #fff;
            padding: 10px 15px;
            border: none;
            border-radius: 3px;
            cursor: pointer;
            display: block; /* Ensures button is a block element */
            margin: 0 auto; /* Centers the button */
        }

        button:hover {
            background-color: #0056b3;
        }

        /* 结果展示区域样式 */
        .result-section {
            margin-top: 20px;
            background-color: #fff;
            padding: 20px;
            border-radius: 5px;
            box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
            width: 400px;
            margin: 0 auto;
        }

        h2 {
            color: #f5efef;
        }

        p {
            margin: 5px 0;
        }
    </style>
</head>
<body>
<h1>工资核算信息</h1>
<form method="post" action="processWageCalculation.jsp">
    <label for="wage_id">工资 ID</label>
    <input type="text" id="wage_id" name="wage_id" required>

    <label for="employee_id">员工 ID</label>
    <input type="text" id="employee_id" name="employee_id" required>

    <label for="month">工资月份</label>
    <input type="text" id="month" name="month" required>

    <label for="piecework_wage">计件工资</label>
    <input type="number" id="piecework_wage" name="piecework_wage" value="0">

    <label for="cost_wage">成本工资</label>
    <input type="number" id="cost_wage" name="cost_wage" value="0">

    <label for="quality_wage">质量工资</label>
    <input type="number" id="quality_wage" name="quality_wage" value="0">

    <label for="total_wage">总工资</label>
    <input type="number" id="total_wage" name="total_wage" value="0">

    <label for="remarks">备注</label>
    <input type="text" id="remarks" name="remarks">

    <button type="submit">提交</button>
</form>

<%-- 结果展示部分 --%>
<%
    String wageId = request.getParameter("wage_id");
    String employeeId = request.getParameter("employee_id");
    String month = request.getParameter("month");
    String pieceworkWage = request.getParameter("piecework_wage");
    String costWage = request.getParameter("cost_wage");
    String qualityWage = request.getParameter("quality_wage");
    String totalWage = request.getParameter("total_wage");
    String remarks = request.getParameter("remarks");

    if (wageId != null) {
%>
<div class="result-section">
    <h2>输入结果</h2>
    <p><strong>工资 ID:</strong> <%= wageId %></p>
    <p><strong>员工 ID:</strong> <%= employeeId %></p>
    <p><strong>工资月份:</strong> <%= month %></p>
    <p><strong>计件工资:</strong> <%= pieceworkWage %></p>
    <p><strong>成本工资:</strong> <%= costWage %></p>
    <p><strong>质量工资:</strong> <%= qualityWage %></p>
    <p><strong>总工资:</strong> <%= totalWage %></p>
    <p><strong>备注:</strong> <%= remarks != null ? remarks : "无" %></p>
</div>
<%
    }
%>

</body>
</html>

 

标签:2024.10,5px,color,工资,border,周五,background,margin
From: https://www.cnblogs.com/Sunyiran/p/18447645

相关文章

  • 2024.10.7(周一)
    <%@pagelanguage="java"contentType="text/html;charset=UTF-8"pageEncoding="UTF-8"%><!DOCTYPEhtml><html><head><title>车间班组</title><style>/*整体页面布局和样式*/......
  • 《代码大全》阅读笔记1(2024.10.4)
    第一章:引言软件构建的艺术:介绍了软件开发的复杂性,以及编写高质量代码的重要性。强调了良好的编码习惯不仅能提高代码的可读性和可维护性,也能降低后期的开发成本。第二章:软件构建的哲学质量的重要性:讨论了软件质量的定义,强调高质量软件不仅包括功能的正确性,还包括可维护性、......
  • 2024.10.2(周三)
    <%@pagelanguage="java"contentType="text/html;charset=UTF-8"pageEncoding="UTF-8"%><!DOCTYPEhtml><html><head><title>生产工序信息</title><style>/*整体页面布局和样式*/......
  • 2024.10.1(周二)
    <%@pagelanguage="java"contentType="text/html;charset=UTF-8"pageEncoding="UTF-8"%><!DOCTYPEhtml><html><head><title>生产制令</title><style>/*整体页面布局和样式*/......
  • 2024.10.3(周四)
    <%@pagelanguage="java"contentType="text/html;charset=UTF-8"pageEncoding="UTF-8"%><!DOCTYPEhtml><html><head><title>质量检验信息</title><style>/*整体页面布局和样式*/......
  • 2024.10.5 笔记
    贪心的证明方法(5个):咕咕咕贪心、DP。贪心优化DP。有简单策略:贪心。无:DP。手玩样例。手玩。兜底。重复:copy。一行多个最小值。不管。得到答案后转成0/1。反悔贪心的一般策略:先把所有都选上,再反悔。IOI那道题和这道题。感觉反悔贪心常用堆。手写堆,支持插入、......
  • 【2024.10.4 闲话】0/99+
    今日推歌:没有。明天可能有。今日set:也没有。话说应该没人知道set是什么吧,总之不是std::set。[ARC176E]MaxVector给你两个长度为\(N\)的正整数序列:\(X=(X_1,X_2,\dots,X_N)\)和\(Y=(Y_1,Y_2,\dots,Y_N)\)。此外,你还得到\(M\)个长度为\(N\)的正整数序列。第\(......
  • 2024.10.4
    mybatis中表字段的映射实体类packagecom.ruoyi.system.handler;importcom.fasterxml.jackson.core.JsonProcessingException;importcom.fasterxml.jackson.databind.ObjectMapper;importcom.ruoyi.system.domain.ProductDetails;importorg.apache.ibatis.type.BaseTyp......
  • 2024.10.4 总结
    自己做题太慢了。我在图论方面思维很不够灵活。主要表现在建立图论模型、建图、对图上的权值做神秘修改等方面。下午尝试证明某题“正正解”的正确性,花了非常多的时间。后来水哥[解决了问题](?)(我感觉挺对的,但没细想了)。今天最后一题结论的证明:https://www.luogu.com.cn/article......
  • 2024.10.4 ROS第五章结束,复习背包问题模型 + codeforces刷刷题
    项目学习总结ROS第五章主要是学习了坐标变换,实际用途还是好理解的,比方说地面基地控制无人机追鸟。坐标变换主要是用tf这个包实现的。可以实现静态坐标变换,动态坐标变换和多坐标变换。静态和动态变换的关键函数:ps_out=buffer.transform(ps,"base_link");动态变换里面主要是......