⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 hr_inputht.asp

📁 网络办公系统源码
💻 ASP
字号:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include file="../../config.asp"-->
<!--#include file="../checklogin.asp"-->
<%
if  ChkAdmin("oa_hetong")=False then
   call message("您没有管理合同的权限","back")
   call endexit()
end if
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
<SCRIPT language=JavaScript src="../../inc/meizzDate.js"></SCRIPT>
<link href="../img/css1.css" type=text/css rel=stylesheet>
<style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
}
.style1 {
	color: #FFFFFF;
	font-weight: bold;
}
.style2 {color: #CC0000}
-->
</style>
</head>
<%
act=request.QueryString("act")
companyid=Session("companyid")'公司id
uname=replace(trim(request.Form("uname"))," ","")
h_num=replace(trim(request.Form("h_num")),"'","")
h_zt=replace(trim(request.Form("h_zt")),"'","")
h_xs=replace(trim(request.Form("h_xs"))," ","")
h_tk=replace(trim(request.Form("h_tk")),"'","")
h_time1=replace(trim(request.Form("h_time1")),"'","")

h_time2=replace(trim(request.Form("h_time2"))," ","")
h_bmxy=replace(trim(request.Form("h_bmxy")),"'","")
h_qzjg=replace(trim(request.Form("h_qzjg")),"'","")
h_wyzr=replace(trim(request.Form("h_wyzr"))," ","")
h_other=replace(trim(request.Form("h_other")),"'","")
h_file=replace(trim(request.Form("h_file")),"'","")

insql="insert oa_ht(uname,h_num,h_zt,h_xs,h_tk,h_time1,h_time2,h_bmxy,h_qzjg,h_wyzr,h_other,h_file,companyid) "& _
"values('"&uname&"','"&h_num&"','"&h_zt&"','"&h_xs&"','"&h_tk&"','"&h_time1&"','"&h_time2&"','"&h_bmxy&"','"&h_qzjg&"','"&h_wyzr&"','"&h_other&"','"&h_file&"',"&companyid&")"

upsql="update oa_ht set uname='"&uname&"',"&_
"h_num='"&h_num&"',h_zt='"&h_zt&"',h_xs='"&h_xs&"',"&_
"h_tk='"&h_tk&"',h_bmxy='"&h_bmxy&"',"&_
"h_time1='"&h_time1&"',h_qzjg='"&h_qzjg&"',"&_
"h_time2='"&h_time2&"',h_wyzr='"&h_wyzr&"',h_other='"&h_other&"',h_file='"&h_file&"'"&_
" where id="&request.Form("modid")
	if act="add" then
		conn.execute(insql)
		call Message("发布成功","hr_ht.asp")
	elseif act="edit" then
		conn.execute(upsql)
		call Message("修改成功","hr_ht.asp")
	else	
	end if
%>
<body>
<%if act="" then%>
<form name="form1" method="post" action="hr_inputht.asp?act=add" onSubmit="return CheckForm();">
<TABLE width="100%" BORDER=0 CELLPADDING=0 CELLSPACING=0 bgcolor="#F9F9F9" class="tabel1">
  <TR align="center">
    <TD HEIGHT=27 colspan="6" bgcolor="#CC0000"><span class="style1">合同信息录入</span></TD>
    </TR>
  <TR>
    <TD WIDTH=81 HEIGHT=27></TD>
    <TD WIDTH=119>签约职员</TD>
    <TD WIDTH=225><span class="style2">
      <select name="uname" id="uname">
        <%
	  	sql="select id, truename from oa_Admin where companyid="&session("companyid")
		set rs=conn.execute(sql)
		do while not rs.eof
	  %>
        <option value="<%=rs("truename")%>"><%=rs("truename")%></option>
        <%
	  rs.movenext
	  loop
	  rs.close
	  set rs=nothing
	  %>
      </select>
    </span></TD>
    <TD WIDTH=14></TD>
    <TD WIDTH=116>合同编号</TD>
    <TD WIDTH=437><input name="h_num"  type=text class="tabel1" id="h_num" maxlength="50"></TD>
  </TR>
  <TR>
    <TD WIDTH=81 HEIGHT=27></TD>
    <TD WIDTH=119>合同状态</TD>
    <TD WIDTH=225><select name="h_zt"  id="h_zt">
      <option value="有效">有效</option>
      <option value="过期" selected>过期</option>
    </select></TD>
    <TD WIDTH=14></TD>
    <TD WIDTH=116>签约日期</TD>
    <TD WIDTH=437><input name="h_time1"  type=text  class="tabel1" id="h_time1" onFocus="setday(this)" size="10"></TD>
  </TR>
  <TR>
    <TD HEIGHT=27></TD>
    <TD>期限形式</TD>
    <TD><select name="h_xs"  id="h_xs">
      <option value="有限期" selected>有限期</option>
      <option value="无期限">无期限</option>
    </select></TD>
    <TD></TD>
    <TD>满约日期</TD>
    <TD><input name="h_time2"  type=text  class="tabel1" id="h_time14" onFocus="setday(this)" size="10"></TD>
  </TR>
  <TR>
    <TD HEIGHT=27></TD>
    <TD>竞业条款</TD>
    <TD><select name="h_tk"  id="h_tk">
      <option value="有" selected>有</option>
      <option value="无">无</option>
    </select></TD>
    <TD></TD>
    <TD>保密协议</TD>
    <TD><select name="h_bmxy"  id="h_bmxy">
      <option value="有" selected>有</option>
      <option value="无">无</option>
                </select>
    </TD>
  </TR>
  <TR>
    <TD HEIGHT=27></TD>
    <TD>鉴证机关</TD>
    <TD><input name="h_qzjg"  type=text class="tabel1" id="h_qzjg" maxlength="255"></TD>
    <TD></TD>
    <TD>附件</TD>
    <TD><input name="h_file"  type=text class="tabel1" id="h_file" maxlength="255">
      <span class="TableRow2">
      <input class="tabel1" type="button" name="up_pick" value="上传附件" onclick="window.open('../Up_Pic.asp?formname=form1&editname=h_file&uppath=../UpLoad/hetong&filelx=all','','status=no,scrollbars=no,top=20,left=110,width=420,height=165')">
      </span>    </TD>
  </TR>
  <TR>
    <TD HEIGHT=27></TD>
    <TD>违约责任</TD>
    <TD><textarea name="h_wyzr" cols="30" rows="5" class="tabel1" id="h_wyzr"></textarea></TD>
    <TD></TD>
    <TD>其他事宜</TD>
    <TD><textarea name="h_other" cols="30" rows="5" class="tabel1" id="h_other"></textarea>
    </TD>
  </TR>
  <TR>
    <TD HEIGHT=27></TD>
    <TD>&nbsp;</TD>
    <TD COLSPAN=4><input name="Submit" type="submit" class="tabel1" value="提交">
      <input name="Submit5" type="reset" class="tabel1" value="重置">
      <input name="Submit32" type="button" class="bon" value="返回" onClick="window.history.go(-1)"></TD>
  </TR>
</TABLE>
</form>
<%
elseif act="edits" then
id=request.QueryString("id")
sql="select * from oa_ht where id="&id
set rs1=conn.execute(sql)
if not rs1.eof then
	uname1=trim(rs1("uname"))
	h_num1=trim(rs1("h_num"))
	h_zt1=trim(rs1("h_zt"))
	h_xs1=trim(rs1("h_xs"))
	h_tk1=trim(rs1("h_tk"))
	h_time11=trim(rs1("h_time1"))
	h_time21=trim(rs1("h_time2"))
	h_bmxy1=trim(rs1("h_bmxy"))
	h_qzjg1=trim(rs1("h_qzjg"))
	h_wyzr1=trim(rs1("h_wyzr"))
	h_other1=trim(rs1("h_other"))
	h_file1=trim(rs1("h_file"))
	end if
rs1.close
set rs1=nothing
%>
<form name="form1" method="post" action="hr_inputht.asp?act=edit" onSubmit="return CheckForm();">
<input type="hidden" name="username" value="所有人">
<TABLE width="100%" BORDER=0 CELLPADDING=0 CELLSPACING=0 bgcolor="#F9F9F9" class="tabel1">
  <TR align="center">
    <TD HEIGHT=27 colspan="6" bgcolor="#CC0000"><span class="style1">合同信息修改</span></TD>
  </TR>
  <TR>
    <TD WIDTH=81 HEIGHT=27></TD>
    <TD WIDTH=119>签约职员</TD>
    <TD WIDTH=225><span class="style2">
      <select name="uname" id="uname">
	  <option value="<%=uname1%>" selected><%=uname1%></option>
        <%
	  	sql="select id, truename from oa_Admin where companyid="&session("companyid")
		set rs=conn.execute(sql)
		do while not rs.eof
	  %>
        <option value="<%=rs("truename")%>"><%=rs("truename")%></option>
        <%
	  rs.movenext
	  loop
	  rs.close
	  set rs=nothing
	  %>
      </select>
    </span></TD>
    <TD WIDTH=14></TD>
    <TD WIDTH=116>合同编号</TD>
    <TD WIDTH=437><input name="h_num"  type=text class="tabel1" id="h_num" maxlength="50" value="<%=h_num1%>"></TD>
  </TR>
  <TR>
    <TD WIDTH=81 HEIGHT=27></TD>
    <TD WIDTH=119>合同状态</TD>
    <TD WIDTH=225><select name="h_zt"  id="select3">
	<option value="<%=h_zt1%>" selected><%=h_zt1%></option>
        <option value="有效">有效</option>
        <option value="过期">过期</option>
    </select></TD>
    <TD WIDTH=14></TD>
    <TD WIDTH=116>签约日期</TD>
    <TD WIDTH=437><input name="h_time1"  type=text  class="tabel1" id="h_time1" onFocus="setday(this)" size="10" value="<%=h_time11%>"></TD>
  </TR>
  <TR>
    <TD HEIGHT=27></TD>
    <TD>期限形式</TD>
    <TD><select name="h_xs"  id="h_xs">
	<option value="<%=h_xs1%>" selected><%=h_xs1%></option>
        <option value="有限期" >有限期</option>
        <option value="无期限">无期限</option>
    </select></TD>
    <TD></TD>
    <TD>满约日期</TD>
    <TD><input name="h_time2"  type=text  class="tabel1" id="h_time24" onFocus="setday(this)" size="10" value="<%=h_time21%>"></TD>
  </TR>
  <TR>
    <TD HEIGHT=27></TD>
    <TD>竞业条款</TD>
    <TD>
	<select name="h_tk"  id="select13">
        <option value="<%=h_tk1%>" selected><%=h_tk1%></option>
        <option value="有" >有</option>
        <option value="无">无</option>
      </select></TD>
    <TD></TD>
    <TD>保密协议</TD>
    <TD>      <select name="h_bmxy"  id="select12">
        <option value="<%=h_bmxy1%>" selected><%=h_bmxy1%></option>
        <option value="有">有</option>
        <option value="无">无</option>
      </select>
    </TD>
  </TR>
  <TR>
    <TD HEIGHT=27></TD>
    <TD>鉴证机关</TD>
    <TD><input name="h_qzjg"  type=text class="tabel1" id="h_qzjg" maxlength="255" value="<%=h_qzjg1%>"></TD>
    <TD></TD>
    <TD>附件</TD>
    <TD><input name="h_file"  type=text class="tabel1" id="h_file" maxlength="255" value="<%=h_file1%>">
        <span class="TableRow2">
        <input class="tabel1" type="button" name="up_pick2" value="上传附件" onclick="window.open('../Up_Pic.asp?formname=form1&editname=h_file&uppath=../UpLoad/hetong&filelx=all','','status=no,scrollbars=no,top=20,left=110,width=420,height=165')">
      </span> </TD>
  </TR>
  <TR>
    <TD HEIGHT=27></TD>
    <TD>违约责任</TD>
    <TD><textarea name="h_wyzr" cols="30" rows="5" class="tabel1" id="h_wyzr"><%=h_wyzr1%></textarea></TD>
    <TD></TD>
    <TD>其他事宜</TD>
    <TD><textarea name="h_other" cols="30" rows="5" class="tabel1" id="textarea2"><%=h_other1%></textarea>
    </TD>
  </TR>
  <TR>
    <TD HEIGHT=27></TD>
    <TD>&nbsp;</TD>
    <TD COLSPAN=4><input name="Submit2" type="submit" class="tabel1" value="修改">
        <input name="Submit52" type="reset" class="tabel1" value="重置">
      <input name="modid" type="hidden" id="modid" value="<%=id%>">
      <input name="Submit322" type="button" class="bon" value="返回" onClick="window.history.go(-1)"></TD>
  </TR>
</TABLE>
</form>
<%
elseif act="view" then
id=request.QueryString("id")
sql="select * from oa_ht where id="&id
set rs1=conn.execute(sql)
if not rs1.eof then
	uname1=trim(rs1("uname"))
	h_num1=trim(rs1("h_num"))
	h_zt1=trim(rs1("h_zt"))
	h_xs1=trim(rs1("h_xs"))
	h_tk1=trim(rs1("h_tk"))
	h_time11=trim(rs1("h_time1"))
	h_time21=trim(rs1("h_time2"))
	h_bmxy1=trim(rs1("h_bmxy"))
	h_qzjg1=trim(rs1("h_qzjg"))
	h_wyzr1=trim(rs1("h_wyzr"))
	h_other1=trim(rs1("h_other"))
	h_file1=trim(rs1("h_file"))
	end if
rs1.close
set rs1=nothing
%>
<TABLE width="100%" BORDER=0 CELLPADDING=0 CELLSPACING=0 bgcolor="#F9F9F9" class="table2">
  <TR align="center">
    <TD HEIGHT=27 colspan="4" bgcolor="#CC0000"><span class="style1">合同信息</span></TD>
  </TR>
  <TR>
    <TD WIDTH=119 height="27">签约职员</TD>
    <TD WIDTH=225><%=uname1%></TD>
    <TD WIDTH=116>合同编号</TD>
    <TD WIDTH=437><%=h_num1%></TD>
  </TR>
  <TR>
    <TD WIDTH=119 height="27">合同状态</TD>
    <TD WIDTH=225><%=h_zt1%></TD>
    <TD WIDTH=116>签约日期</TD>
    <TD WIDTH=437><%=h_time11%></TD>
  </TR>
  <TR>
    <TD height="27">期限形式</TD>
    <TD><%=h_xs1%></TD>
    <TD>满约日期</TD>
    <TD><%=h_time21%></TD>
  </TR>
  <TR>
    <TD height="27">竞业条款</TD>
    <TD><%=h_tk1%></TD>
    <TD>保密协议</TD>
    <TD><%=h_bmxy1%> </TD>
  </TR>
  <TR>
    <TD height="27">鉴证机关</TD>
    <TD><%=h_qzjg1%></TD>
    <TD>附件</TD>
    <TD><a href="../../<%=h_file1%>">下载</a></TD>
  </TR>
  <TR>
    <TD height="27">违约责任</TD>
    <TD><%=h_wyzr1%></TD>
    <TD>其他事宜</TD>
    <TD><%=h_other1%> </TD>
  </TR>
</TABLE>
<%end if%>
</body>
</html>
<%
	set conn=nothing
%>
<script language="javascript">
function CheckForm()
{
    var objFrm=document.form1;
	if(objFrm.h_num.value=="")
	{
		alert("请输入合同编!");
		objFrm.h_num.focus();
		return false;
	}
	if(objFrm.h_time1.value=="")
	{
		alert("请输入签约日!");
		objFrm.h_time1.focus();
		return false;
	}
	return true;

}
</script>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -