?? hrdemandaccept.asp
字號:
<!--#include file="Inc/SysProduct.asp" -->
<!--#include file="inc/Skin_css.asp"-->
<!-- #include file="Head.asp" -->
<SCRIPT language=javaScript>
function CheckJob()
{
if (document.form1.Quarters.value.length < 2 || document.form1.Quarters.value.length > 30){
alert ("提示:\n\n職位必須在2-30字之間!");
document.form1.Quarters.focus();
return false;
}
if (document.form1.Name.value.length < 2 || document.form1.Name.value.length > 16){
alert ("提示:\n\n姓名必須在2-16字之間!");
document.form1.Name.focus();
return false;
}
if (document.form1.Birthday.value.length!=10){
alert ("提示:\n\n出生日期格式不對!");
document.form1.Birthday.focus();
return false;
}
if (document.form1.Stature.value.length != 3){
alert ("提示:\n\n身高格式不對!");
document.form1.Stature.focus();
return false;
}
if (document.form1.Residence.value.length < 4 ||document.form1.Residence.value.length > 30 ){
alert ("提示:\n\n戶籍所在地在4-30個符之間!");
document.form1.Residence.focus();
return false;
}
if (document.form1.Edulevel.value.length < 20 ){
alert ("提示:\n\n教育經歷必須在20字以上!");
document.form1.Edulevel.focus();
return false;
}
if (document.form1.Experience.value.length < 20 ){
alert ("提示:\n\n工作經歷必須在20字以上!");
document.form1.Experience.focus();
return false;
}
if (document.form1.Phone.value == "" || document.form1.Phone.value.length < 8){
alert ("提示:\n\n聯系電話必須在8個字符以上!");
document.form1.Phone.focus();
return false;
}
if(document.form1.Email.value.length!=0)
{
if (document.form1.Email.value.charAt(0)=="." ||
document.form1.Email.value.charAt(0)=="@"||
document.form1.Email.value.indexOf('@', 0) == -1 ||
document.form1.Email.value.indexOf('.', 0) == -1 ||
document.form1.Email.value.lastIndexOf("@")==document.form1.Email.value.length-1 ||
document.form1.Email.value.lastIndexOf(".")==document.form1.Email.value.length-1)
{
alert("Email地址格式不正確!");
document.form1.Email.focus();
return false;
}
}
else
{
alert("Email不能為空!");
document.form1.Email.focus();
return false;
}
}
</SCRIPT>
<table width="980" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="5" valign="top" bgcolor="#FFFFFF"></td>
</tr>
<tr>
<td height="72" valign="top" bgcolor="#FFFFFF"><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td class="tdbg_left" width="190" height="179" valign="top" > <table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="34" class="title_left"> <img src="Images/smallbook.jpg" width="10" height="10"> 用戶登陸
</td>
</tr>
<tr>
<td height="5"></td>
</tr>
<tr>
<td height="10"><table width="92%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td>
<% call ShowUserLogin() %>
</td>
</tr>
</table></td>
</tr>
<tr>
<td height="5"></td>
</tr>
</table>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="34" class="title_left"> <img src="Images/smallbook.jpg" width="10" height="10"> 人才招聘</td>
</tr>
<tr>
<td height="20"> <div align="center"><a href="HrDemand.asp">人
才 招 聘</a></div></td>
</tr>
<TR>
<TD
height=1 colspan="2"
background=img/naSzarym.gif><IMG height=1 src="img/1x1_pix.gif"
width=10></TD>
</TR>
<tr>
<td height="20"> <div align="center"><a href="HrPolicy.asp">人
才 策 略</a></div></td>
</tr>
<TR>
<TD
height=1 colspan="2"
background=img/naSzarym.gif><IMG height=1 src="img/1x1_pix.gif"
width=10></TD>
</TR>
</table></td>
<td width="6"></td>
<td valign="top"><table Class=border width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="206" valign="top"> <table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="title_right" height="32"> <img src="Images/smallbook.jpg" width="10" height="10"> 人
才 招 聘</td>
</tr>
</table>
<%
function ChangeChr(str)
ChangeChr=replace(replace(replace(replace(str,"<","<"),">",">"),chr(13),"<br>")," "," ")
end function
%>
<%
dim action,Quarters
Quarters=trim(request.QueryString("Quarters"))
action=trim(request.QueryString("action"))
if action="add" then
Quarters=replace(Trim(request("Quarters")),"'","")
Uname=replace(Trim(request("Name")),"'","")
Sex=replace(Trim(request("Sex")),"'","")
Marry=replace(Trim(request("Marry")),"'","")
Birthday=replace(Trim(request("Birthday")),"'","")
Stature=replace(Trim(request("Stature")),"'","")
School=replace(Trim(request("School")),"'","")
Studydegree=replace(Trim(request("Studydegree")),"'","")
Specialty=replace(Trim(request("Specialty")),"'","")
Gradyear=replace(Trim(request("Gradyear")),"'","")
Residence=replace(Trim(request("Residence")),"'","")
Edulevel=replace(Trim(request("Edulevel")),"'","")
Edulevel=trim(ChangeChr(Edulevel))
Experience=replace(Trim(request("Experience")),"'","")
Experience=trim(ChangeChr(Experience))
Phone=replace(Trim(request("Phone")),"'","")
Mobile=replace(Trim(request("Mobile")),"'","")
Email=replace(Trim(request("Email")),"'","")
Add=replace(Trim(request("Add")),"'","")
Postcode=replace(Trim(request("Postcode")),"'","")
if School="" then
School=null
end if
if Studydegree="" then
Studydegree=null
end if
if Specialty="" then
Specialty=null
end if
if Gradyear="" then
Gradyear=null
end if
if Mobile="" then
Mobile=null
end if
if Add="" then
Add=null
end if
if Postcode="" then
Postcode=null
end if
'=================================
set rs=server.createobject("adodb.recordset")
sql="select * from 0791idc_HrDemandAccept where (id is null)"
rs.open sql,conn,1,3
rs.addnew
rs("Quarters")=Quarters
rs("name")=Uname
rs("Sex")=Sex
rs("Marry")=Marry
rs("Birthday")=Birthday
rs("Stature")=Stature
rs("School")=School
rs("Studydegree")=Studydegree
rs("Specialty")=Specialty
rs("Gradyear")=Gradyear
rs("Residence")=Residence
rs("Edulevel")=Edulevel
rs("Experience")=Experience
rs("Phone")=Phone
rs("Mobile")=Mobile
rs("Email")=Email
rs("Add")=Add
rs("Postcode")=Postcode
rs("Adddate")=date()
rs.update
rs.close
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -