首页 > 其他分享 >12.5

12.5

时间:2023-12-18 18:59:38浏览次数:33  
标签:出差 typeContentTextBox checked getElementById 12.5 申请单

<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>出差申请单</title>
</head>
<body>
<h1>出差申请单</h1>
<form action="worker33.jsp" method="post">
<label for="name">姓名:</label>
<input type="text" name="name" id="name" value="111" required>
<br><br>
<label for="department">部门:</label>
<input type="text" name="department" id="department" value="业务部" required maxlength="50">
<br><br>

<label for="Position">岗位:</label>
<input type="text" name="Position" id="Position" value="普通职员" required>
<br><br>
<label for="destination">目的地:</label>
<input type="text" name="destination" id="destination" required>
<br><br>

<label for="departuredate">暂定出发日期</label>
<input type="date" name="departuredate" id="departuredate" min="<?php echo date('Y-m-d'); ?>" required>
<br><br>
<label for="returndate">预计返回日期</label>
<input type="date" name="returndate" id="returndate" min="<?php echo date('Y-m-d'); ?>" required>
<br><br>
<label>出差类别:</label>
<input type="radio" name="Type" id="businessNegotiation" value="businessNegotiation" required>
<label for="businessNegotiation">业务洽谈</label>

<input type="radio" name="Type" id="training" value="training" required>
<label for="training">培训</label>

<input type="radio" name="Type" id="meeting" value="meeting" required>
<label for="meeting">会议</label>

<input type="radio" name="Type" id="other" value="other" required>
<label for="other">其他</label>

<input type="text" name="Typecontent" id="Typecontent" placeholder="其他原因" disabled>

<script>
// JavaScript to enable/disable the text box based on the radio button selection
const otherRadioButton = document.getElementById('other');
const typeContentTextBox = document.getElementById('Typecontent');

otherRadioButton.addEventListener('change', function() {
typeContentTextBox.disabled = !this.checked;
if (this.checked) {
typeContentTextBox.focus();
}
});
</script>
<br><br>

<label for="Reason">出差事由:</label>
<textarea name="Reason" id="Reason" rows="4" cols="50" required></textarea>
<br><br>

<input type="submit" value="提交申请">
</form>
</body>
</html>

标签:出差,typeContentTextBox,checked,getElementById,12.5,申请单
From: https://www.cnblogs.com/dmx-03/p/17911945.html

相关文章

  • 12.5
    Coursepackagecom.example.pojo;importlombok.AllArgsConstructor;importlombok.Data;importlombok.NoArgsConstructor;@Data@NoArgsConstructor@AllArgsConstructorpublicclassCourse{privateStringcourseID;privateStringcourseName;p......
  • 12.5每日总结9
    查看Java帮助手册或其它资料,用“java.net.URL”和“org.apache.hadoop.fs.FsURLStreamHandlerFactory”编程完成输出HDFS中指定文件的文本到终端中。importjava.io.IOException;importjava.io.InputStream;importjava.net.URL;importorg.apache.hadoop.fs.*;importorg.apach......
  • 12.5每日总结8
    编程实现一个类“MyFSDataInputStream”,该类继承“org.apache.hadoop.fs.FSDataInputStream”,要求如下:实现按行读取HDFS中指定文件的方法“readLine()”,如果读到文件末尾,则返回空,否则返回文件一行的文本。importjava.io.BufferedReader;importjava.io.IOException;importjav......
  • 12.5每日总结
    文件创建以及覆盖importjava.io.FileInputStream;importjava.io.IOException;importorg.apache.hadoop.conf.Configuration;importorg.apache.hadoop.fs.FSDataOutputStream;importorg.apache.hadoop.fs.FileSystem;importorg.apache.hadoop.fs.Path;publicclassCopyFr......
  • 12.5每日总结3
    将HDFS中指定文件的内容输出到终端中;importorg.apache.hadoop.conf.Configuration;importorg.apache.hadoop.fs.*;importorg.apache.hadoop.fs.FileSystem;importjava.io.*;publicclassCat{/***读取文件内容*/publicstaticvoidcat(Configuration......
  • 12.5每日总结2
    从HDFS中下载指定文件,如果本地文件与要下载的文件名称相同,则自动对下载的文件重命名;importorg.apache.hadoop.conf.Configuration;importorg.apache.hadoop.fs.*;importorg.apache.hadoop.fs.FileSystem;importjava.io.*;publicclassCopyToLocal{/***下载文件......
  • 12.5每日总结5
     给定HDFS中某一个目录,输出该目录下的所有文件的读写权限、大小、创建时间、路径等信息,如果该文件是目录,则递归输出该目录下所有文件相关信息;importorg.apache.hadoop.conf.Configuration;importorg.apache.hadoop.fs.*;importorg.apache.hadoop.fs.FileSystem;importjava.......
  • 12.5每日总结4
     显示HDFS中指定的文件的读写权限、大小、创建时间、路径等信息;importorg.apache.hadoop.conf.Configuration;importorg.apache.hadoop.fs.*;importorg.apache.hadoop.fs.FileSystem;importjava.io.*;importjava.text.SimpleDateFormat;publicclassList{/***......
  • 12.5每日总结6
    提供一个HDFS内的文件的路径,对该文件进行创建和删除操作。如果文件所在目录不存在,则自动创建目录;importorg.apache.hadoop.conf.Configuration;importorg.apache.hadoop.fs.*;importjava.io.*;publicclassRemoveOrMake{/***判断路径是否存在*/publics......
  • 12.5每日总结7
    向HDFS中指定的文件追加内容,由用户指定内容追加到原有文件的开头或结尾;importorg.apache.hadoop.conf.Configuration;importorg.apache.hadoop.fs.*;importorg.apache.hadoop.fs.FileSystem;importjava.io.*;publicclassAppendToFile{/***判断路径是否存在......