% set rs=server.createobject("adodb.recordset") If Request("Type") = "save" then founerr=false if trim(request.form("cname"))="" then founderr=true errmsg="您的姓名不能为空!\n" end if if trim(request.form("cjob"))="" then founderr=true errmsg=errmsg+"申请职位不能为空!\n" end if if len(request.form("cname"))>6 then founderr=true errmsg="您的姓名不能大于6字!\n" end if if trim(request.form("csex"))="" then founderr=true errmsg=errmsg+"请选择您的姓别!\n" end if if request.Form("cyear")="" or request.form("cmonth")="" or request.form("cday")="" then founderr=true errmsg=errmsg+"请输入您的出生日期!\n" end if if trim(request.form("cmzhu"))="" then founderr=true errmsg=errmsg+"您的民族不能为空!\n" end if if len(request.form("cmzhu"))>10 then founderr=true errmsg="您的民族不能大于10字!\n" end if if trim(request.form("czzmm"))="" then founderr=true errmsg=errmsg+"政治面貌不能为空!\n" end if if trim(request.form("cmarry"))="" then founderr=true errmsg=errmsg+"婚姻状况不能为空!\n" end if if trim(request.form("ccode"))="" then founderr=true errmsg=errmsg+"身份证号码不能为空\n" end if if len(request.form("ccode"))>19 then founderr=true errmsg="身份证号码不能大于19字!\n" end if if trim(request.form("cedu"))="" then founderr=true errmsg=errmsg+"学历不能为空!\n" end if if trim(request.form("cschool"))="" then founderr=true errmsg=errmsg+"毕业院校不能为空!\n" end if if len(request.form("cschool"))>25 then founderr=true errmsg="毕业院校不能大于25字!\n" end if if trim(request.form("cphone"))="" then founderr=true errmsg=errmsg+"固定电话不能为空!\n" end if if len(request.form("cphone"))>12 then founderr=true errmsg="固定电话不能大于12字!\n" end if if trim(request.form("cemail"))="" then founderr=true errmsg=errmsg+"E-mail不能为空!\n" end if if len(request.form("cemail"))>50 then founderr=true errmsg="E-mail不能大于50字!\n" end if if trim(request.form("czchen"))="" then founderr=true errmsg=errmsg+"请选择职称!\n" end if if trim(request.form("ckyuex"))="" then founderr=true errmsg=errmsg+"待遇要求不能为空!\n" end if if trim(request.form("cothertc"))="" then founderr=true errmsg=errmsg+"个人特长不能为空!\n" end if if len(request.form("cothertc"))>100 then founderr=true errmsg="个人特长不能大于100字!\n" end if if trim(request.form("cresume"))="" then founderr=true errmsg=errmsg+"个人简历不能为空!\n" end if if trim(request.form("cqta"))="" then founderr=true errmsg=errmsg+"其它要求不能为空!\n" end if if founderr=false then cjob=request("cjob") cname=request.form("cname") csex=request.form("csex") cbirthday=trim(Request.Form("cyear"))&"-"&trim(Request.Form("cmonth"))&"-"&trim(Request.Form("cday")) cmzhu=request.form("cmzhu") czzmm=request.form("czzmm") cmarry=request.form("cmarry") ccode=request.form("ccode") cedu=request.form("cedu") cschool=request.form("cschool") cspeciality=request.form("cspeciality") caddress=request.form("caddress") cphone=request.form("cphone") cemail=request.form("cemail") ctel=request.form("ctel") czchen=request.form("czchen") czchenid=request.form("czchenid") ckyuex=request.form("ckyuex") cothertc=request.form("cothertc") cothertc=TxtCheck(request.form("cothertc"),4,"") cresume=TxtCheck(request.form("cresume"),4,"") cqta=TxtCheck(request.form("cqta"),4,"") qq=request.form("qq") icq=request.form("icq") sql="select * from MK_ZhaoPin_Job" rs.open sql,conn,1,3 rs.addnew rs("ZhaoPinID")=request.form("ZhaoPinID") rs("classbid")=request.form("classbid") rs("cname")=cname rs("csex")=csex rs("cbirthday")=cbirthday rs("cmzhu")=cmzhu rs("czzmm")=czzmm rs("cmarry")=cmarry rs("ccode")=ccode rs("cedu")=cedu rs("cschool")=cschool rs("cspeciality")=cspeciality rs("caddress")=caddress rs("cphone")=cphone rs("cemail")=cemail rs("ctel")=ctel rs("czchen")=czchen rs("czchenid")=czchenid rs("cjob")=cjob rs("ckyuex")=ckyuex rs("cothertc")=cothertc rs("cresume")=cresume rs("cqta")=cqta rs("qq")=qq rs("icq")=icq rs.update rs.close alertmGo("你的资料已经入库,我们会尽快与你联系!\nn\zxzp.htm") Else alertmGo("资料错误,以下为出错信息!\n\n"&errmsg) End if End if %>
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||
设计制作:易正 北京山特电子有限公司 版权所有 |
||
| Copyright (C) 2001 - 2008 www.shante.com.cn All Rights Reserved. |
||