📄 pactadde.asp
字号:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include file=DataBase/conn.asp-->
<!--#include file=yan.asp-->
<!--#include file=purview.asp-->
<%
call tianxiehetong
if request("post")<>"" then
if request("qixian")<>"" then
set rsa=server.CreateObject("adodb.recordset")
sqla="select * from tb_Employee where id="&request("id")
rsa.open sqla,conn,1,3
rsa("hetong")=request("hetong")
rsa("qixian")=request("qixian")
rsa("youxiaoqi")=request("text")
rsa.update
rsa.close
response.Write("<script language=javascript>alert('提交成功');location='pactadde.asp?id="&request("id")&"'</script>")
else
response.Write("<script language=javascript>alert('合同期限不能为空');location='javascript:history.go(-1)'</script>")
end if
end if
'员工
set rs=server.CreateObject("adodb.recordset")
sql="select * from tb_Employee where id="&request("id")
rs.open sql,conn,1,1
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
<style type="text/css">
<!--
body,td,th {
font-size: 12px;
}
-->
</style>
<link href="CSS/css.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
body {
background-color: #efefef;
}
.style3 {
font-size: 16px;
font-weight: bold;
color: #FF0000;
}
-->
</style></head>
<body text="12" leftmargin="0">
<div align="center" class="style3">修改合同</div>
<form name="form1" method="post" action="">
<table width="430" border="0" align="center" cellspacing="0" bgcolor="#000000">
<tr bgcolor="#EFEFEF">
<td width="115" height="36" align="right">人员名称:</td>
<td width="85"> <%=rs("name")%>
<input name="post" type="hidden" id="post" value="true"></td>
<td width="224"><input name="Submit3" type="button" class="botton" value=" 详细资料 " onClick="window.open('employeeopen.asp?id=<%=rs("id")%>','','width=450,height=450,toolbar=no,location=no,status=no,menubar=no');"></td>
</tr>
<tr bgcolor="#EFEFEF">
<td height="36" align="right">合同类型:</td>
<td colspan="2">
<select name="hetong" id="hetong">
<option value="A" <%if rs("hetong")="A" then%>selected<%end if%>>A</option>
<option value="B" <%if rs("hetong")="B" then%>selected<%end if%>>B</option>
<option value="C" <%if rs("hetong")=C then%>selected<%end if%>>C</option>
<option value="D" <%if rs("hetong")=D then%>selected<%end if%>>D</option>
<option value="E" <%if rs("hetong")=E then%>selected<%end if%>>E</option>
</select></td>
</tr>
<tr bgcolor="#EFEFEF">
<td height="36" align="right">合同期限:</td>
<td colspan="2"> <input name="qixian" type="text" id="qixian" value="<%=rs("qixian")%>"></td>
</tr>
<tr bgcolor="#EFEFEF">
<td height="35" align="right">有效期:</td>
<td colspan="2">
<input name="text" type="text" value="<%=rs("youxiaoqi")%>" size="35">
</td>
</tr>
</table>
<p align="center">
<input name="Submit" type="submit" class="botton" value=" 提 交 ">
<input name="Submit2" type="reset" class="botton" value=" 重 置 ">
</p>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -