📄 add.jsp
字号:
<%@ page language="java" import="java.util.*" pageEncoding="GB18030"%>
<%
String eid=request.getParameter("employeeid");
session.setAttribute("eid",eid);
%>
<script type="text/javascript">
function option1()
{
if(document.form1.basic.value=="")
{
alert("信息输入不完整!");
return false;
}
return true;
}
</script>
<script>
function toDate(year,month){
with(document.all){
vYear=parseInt(year.options[year.selectedIndex].text)
vMonth=parseInt(month.options[month.selectedIndex].text)
day.length=0;
for(i=0;i<(new Date(vYear,vMonth,0)).getDate();i++){
day.options[day.length++].value=day.length;day.options[day.length-1].text=day.length;}
}
toDay();
}
window.onload=toDate;
</script>
<html>
<head>
<script type="text/javascript" src="..\\meizzDate.js">
</script>
</head>
<body background="../bg.jpg">
<form action="Scan.jsp" name="form1">
<table width="90%" border="1" align="center">
<tr>
<td colspan="2"><font color="red">添加薪金</font></td>
</tr>
<tr>
<th>员工姓名:</th>
<td><input type="text" name="name" value="<%=(String)request.getParameter("name")%>" readonly></td>
<th>基本薪金:</th>
<td><input type="text" name="basic" onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d]/g,''))" onkeyup="value=value.replace(/[^\d]/g,'') "></td>
</tr>
<tr>
<th>饭 补:</th>
<td><input type="text" name="eat" onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d]/g,''))" onkeyup="value=value.replace(/[^\d]/g,'') "></td>
<th>房 补:</th>
<td><input type="text" name="house" onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d]/g,''))" onkeyup="value=value.replace(/[^\d]/g,'') "></td>
</tr>
<tr>
<th>全 勤 奖:</th>
<td><input type="text" name="duty" onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d]/g,''))" onkeyup="value=value.replace(/[^\d]/g,'') "></td>
<th>赋 税:</th>
<td><input type="text" name="tax" onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d]/g,''))" onkeyup="value=value.replace(/[^\d]/g,'') "></td>
</tr>
<tr>
<th>额外扣款:</th>
<td><input type="text" name="punishment" onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d]/g,''))" onkeyup="value=value.replace(/[^\d]/g,'') "></td>
<th>发放时间:</th>
<td><input type="text" name="granttime" onClick="setday(this)" readonly value="点击选择日期"></td>
</tr>
<tr>
<td colspan="2" align="center"><input type="submit" value="提交" onClick="return option1()"></td>
<td colspan="2" align="center"> <input type="reset" value="重置"></td>
</tr>
</table>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -