2023.10.6每日总结
<%@ page import="java.util.Calendar" %> <%@ 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; } form { max-width: 800px; margin: 0 auto; padding: 20px; background-color: #f8f8f8; border-radius: 5px; } h1 { margin-top: 0; } label { display: block; margin-bottom: 10px; } input[type=text], input[type=date] { width: 100%; padding: 10px; margin-bottom: 20px; box-sizing: border-box; border: none; border-radius: 5px; } input[type=text], input[type=time] { width: 100%; padding: 10px; margin-bottom: 20px; box-sizing: border-box; border: none; border-radius: 5px; } textarea { width: 100%; padding: 10px; margin-bottom: 20px; box-sizing: border-box; border: none; border-radius: 5px; } button[type=submit] { background-color: #56b4f3; color: white; padding: 10px 20px; border: none; border-radius: 5px; cursor: pointer; } button[type=submit]:hover { background-color: #3ad6c9; } </style> </head> <body> <% String id_=request.getParameter("id_"); String les_id=request.getParameter("les_id"); %> <form action="control_tea.jsp" method="post" enctype="multipart/form-data"> <h1>发布实验</h1> <input type="hidden" name="To" value="Publish_experiment"> <input type="hidden" name="id_" value="<%=id_%>%"> <input type="hidden" name="les_id" value="<%=les_id%>%"> <input type="hidden" name="type" value="实验"> <label for="title">标题:</label> <input type="text" id="title" name="title"> <label for="due-date">截止日期:</label> <input type="date" id="due-date" name="due-date"> <label for="due-time">截止时间:</label> <input type="time" id="due-time" name="due-time"> <label for="requirements">实验要求:</label> <textarea id="requirements" name="requirements" rows="5"></textarea> <label for="submission-file">提交文件:</label> <input type="file" id="submission-file" name="submission-file" accept=".txt,.pdf,.doc,.docx"> <button type="submit">发布</button> </form> </body> </html>