📄 pstudy_add.asp
字号:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>人力资源管理系统≡技能添加≡</title>
<link href="../Include/type.css" rel="stylesheet" type="text/css">
</head>
<body>
<!--#include file="../Include/conn.asp"-->
<!--#include file="../Include/Head.asp"-->
<!--#include file="../Include/Syscheck.asp"-->
<div id="content" style="position:absolute; width:90%; height:115px; z-index:3; left: 48px; top: 190px;">
<!--内容开始-->
<%
call checkin_sys(session("UsersId"),session("PerId"),20)
id=request.querystring("id")
Set res=server.CreateObject("adodb.recordset")
res.open"select * from pstudy",conn,1,1
%>
<script type="text/javascript" src="date/date.js"></script>
<script type="text/javascript"></script>
<form name="form1" method="post" action="Pstudy_add.asp?id=<%response.write id%>">
<table width="60%" border="0" align="center" cellpadding="0" cellspacing="0" class="table1">
<tr>
<td height="" colspan="2" class="td1">
<img src="../images/sub01_05.jpg" height="25" align="middle">
<a href="Search_emly.asp?id=<%response.write id%>">员工搜索</a>-->
<a href="Search.asp?id=<%response.write id%>">档案维护</a>-->
<a href="Pstudy_list.asp?id=<%response.write id%>">学习档案维护</a>-->
学习档案添加
</td>
</tr>
<tr>
<td width="26%"><div align="right">员工编号:</div></td>
<td width="74%"><%response.write id%></td>
</tr>
<tr>
<td><div align="right">培训机构名称:</div></td>
<td><input name="ename" type="text" size="15"></td>
</tr>
<tr>
<td><div align="right">开始培训时间:</div></td>
<td><input name="times" type="text" size="15" onFocus="javascript:ShowCalendar(this.name)">
</td>
</tr>
<tr>
<td height="16"><div align="right">毕业时间:</div></td>
<td><input type="text" name="timel" onFocus="javascript:ShowCalendar(this.name)">
</td>
</tr>
<tr>
<td height="16"><div align="right">培训情况:</div></td>
<td><input type="text" name="realize"></td>
</tr>
<tr>
<td valign="top"><div align="right">备注: </div></td>
<td><textarea name="remark" cols="40" rows="10"></textarea></td>
</tr>
<tr>
<td colspan="2">
<div align="center">
<input type="submit" name="Submit" value="提交" class="button">
<input type="reset" name="Submit22" value="重置" class="button">
</div></td>
</tr>
<tr>
<td colspan="2"> </td>
</tr>
<tr>
<td colspan="2" class="td1"><div align="center"><a href="Pstudy_list.asp?id=<%response.write id%>">返回</a></div></td>
</tr>
</table>
</form>
<%
res.close
Set res=Nothing
%>
<%
If request.Form("Submit")<>"" then
id =request.QueryString("id")
ename = Trim(Request.Form ("ename"))
sdate = Trim(Request.Form ("times"))
ldate = Trim(Request.Form ("timel"))
realize = Trim(Request.Form ("realize"))
remark = Trim(Request.Form ("remark"))
'response.write sdate
'response.write ldate
'response.end
If ename<>""Then
Set res=server.CreateObject("adodb.recordset")
res.open "insert into Pstudy (personnel_id,study_ename,study_sdate,study_ldate,study_realize,study_remark) values ("&id&",'"&ename&"','"&sdate&"','"&ldate&"','"&realize&"','"&remark&"')",conn,3,3
response.redirect("Pstudy_list.asp?id="&id&"")
Else
response.write "<script>alert('培训机构名称,开始结束时间不能为空');window.location.href('Pstudy_add.asp?id="&id&"');</script>"
End If
End If
%>
<!--#include file="../Include/bottom.asp"-->
<!--内容结束-->
</div>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -