📄 update.jsp
字号:
<%@ page language="java" import="java.util.*,com.buat.hr.stipend.StipendDAO,com.buat.hr.stipend.Stipend" pageEncoding="gbk"%>
<%
String getid=request.getParameter("idsaaaaaaaaa");
int id=Integer.parseInt(getid);
String gettime=request.getParameter("datetimes");
session.setAttribute("id",getid);
StipendDAO sdao=new StipendDAO();
Stipend stipend=new Stipend();
stipend=sdao.QueryStipendById(id);
%>
<script type="text/javascript">
function option1()
{
if(document.form1.basic.value=="")
{
alert("薪金不能为空!");
return false;
}
return true;
}
</script>
<html>
<head>
<script type="text/javascript" src="..\\meizzDate.js">
</script>
</head>
<body background="../bg.jpg">
<form action="UpdateDAO.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=<%=stipend.getName()%> readonly></td>
<th>基本薪金:</th>
<td><input type="text" name="basic" value=<%=stipend.getBasic()%> onblur="if(isNaN(this.value)==true){alert('该项只能添数字');this.focus();this.value='';}"></td>
</tr>
<tr>
<th>饭 补:</th>
<td><input type="text" name="eat" value=<%=stipend.getEat()%> onblur="if(isNaN(this.value)==true){alert('该项只能添数字');this.focus();this.value='';}"></td>
<th>房 补:</th>
<td><input type="text" name="house" value=<%=stipend.getHouse()%> onblur="if(isNaN(this.value)==true){alert('该项只能添数字');this.focus();this.value='';}"></td>
</tr>
<tr>
<th>全 勤 奖:</th>
<td><input type="text" name="duty" value=<%=stipend.getDuty()%> onblur="if(isNaN(this.value)==true){alert('该项只能添数字');this.focus();this.value='';}"></td>
<th>赋 税:</th>
<td><input type="text" name="tax" value=<%=stipend.getTax()%> onblur="if(isNaN(this.value)==true){alert('该项只能添数字');this.focus();this.value='';}"></td>
</tr>
<tr>
<th>额外扣款:</th>
<td><input type="text" name="punishment" value=<%=stipend.getPunishment()%> onblur="if(isNaN(this.value)==true){alert('该项只能添数字');this.focus();this.value='';}"></td>
<th>发放时间:</th>
<td><input type="text" name="granttime" onClick="setday(this)" readonly value="2007-11-15"></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 + -