📄 modifyesm.asp
字号:
<!--#include file="headfiles/Connection.inc"-->
<%
dim id,smid,confirm
id=cint(request("id"))
smid=cint(request("smid"))
confirm=request.Form("txtConfirm")
if confirm=1 then
dim rsESModule
set rsESModule=server.CreateObject("adodb.recordset")
strSql="select * from EmployeeSalaryTable where Employee_ID="&id
rsESModule.open strSql,conn,3,2
rsESModule("SalaryM_ID")=smid
rsESModule.update
rsESModule.close
response.Write(chr(13)&"<script language='javascript'>")
response.Write(chr(13)&"alert('修改员工工资模板成功!');")
response.Write(chr(13)&"window.close();")
response.Write(chr(13)&"</script>")
else
dim rsEmployee
set rsEmployee=server.CreateObject("adodb.recordset")
strSql="select * from EmployeeSalaryView where Employee_ID="&id
rsEmployee.open strSql,conn,3,1
end if
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>修改员工工资模板</title>
<link href="headfiles/text.css" rel="stylesheet" type="text/css">
<script language="JavaScript">
function saveESM(){
frmModifyESM.txtConfirm.value=1;
frmModifyESM.submit();
}
</script>
</head>
<body background="images\bg.gif" class="detail2" style="CURSOR:AUTO" bottommargin="0" leftmargin="0" rightmargin="0" topmargin="0">
<table width="400" border="0" cellpadding="0" cellspacing="0">
<form id="frmModifyESM" name="frmModifyESM" action="ModifyESM.asp?id=<%=id%>&smid=<%=smid%>" method="post">
<tr><td bgcolor="#6699ff" align="middle" height="35" class="title5">修改员工工资模板</td></tr>
<tr class="title3"><td height="30" align="center">员工信息</td></tr>
<tr><td>
<table width="500" cellpadding="0" cellspacing="0" border="1">
<tr class="title2"><td align="center">姓名</td><td align="center">部门</td><td align="center">职称</td><td align="center">职位</td><td align="center">现用工资模板</td></tr>
<tr class="title"><td><%=rsEmployee("Employee_Name")%></td><td><% response.write(rsEmployee("Depart1")&"->"&rsEmployee("Depart2")&"->"&rsEmployee("Depart3"))%></td><td><%=rsEmployee("JobTitle_Name")%></td><td><%=rsEmployee("Position_Name")%></td><td><%=rsEmployee("SModule_Name")%></td></tr>
</table>
</td></tr>
<tr class="title3"><td height="30" align="center">工资模板信息</td></tr>
<tr><td height="30"><iframe name="main11" src="SalaryModuleDetail.asp?sltSMList=<%=smid%>" width=500 height=140 frameborder="0" scrolling="auto"></iframe></td></tr>
<tr><td align="center"><input type="button" style="width:80px" value="确定" onClick="saveESM(); return false ">
<input id="txtConfirm" name="txtConfirm" type="text" style="width:20px;visibility:hidden">
<input type="button" style="width:80px" value="取消" onClick="window.close();"></td></tr>
</form>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -