<!--#include file="../Conn.asp" -->
<!--#include file="../Comm/Site_Class.asp" -->
<%
Dim strMenu,PageTitle
strMenu = ""
PagePath = "../"

Set Qsite = New Site_Class

Qsite.SiteConfig()
Qsite.GotoErrPage()

PageTitle = Qsite.SiteName & " - 个人会员管理中心"
Qsite.SiteTopPerson()
%>
<!--#include file="Check_Login.asp" -->
<%
Dim Rs
Set Rs = server.CreateObject("ADODB.recordset")

Dim WorkExpId
Dim WorkExpBeginDate,WorkExpEndDate,WorkExpCompanyName,WorkExpCompanyNature,WorkExpCompanyIndustry
Dim WorkExpPost,WorkExpJobs,WorkExpNote,WorkExpLeave

If Request.Form <> "" Then
	WorkExpId = Qsite.chgStr(Trim(Request.Form("WorkExpId")))
	WorkExpBeginDate = Qsite.chgStr(Trim(Request.Form("WorkExpBeginDate")))
	WorkExpEndDate = Qsite.chgStr(Trim(Request.Form("WorkExpEndDate")))
	WorkExpCompanyName = Qsite.chgStr(Trim(Request.Form("WorkExpCompanyName")))
	WorkExpCompanyNature = Qsite.chgStr(Trim(Request.Form("WorkExpCompanyNature")))
	WorkExpCompanyIndustry = Qsite.chgStr(Trim(Request.Form("WorkExpCompanyIndustry")))
	WorkExpPost = Qsite.chgStr(Trim(Request.Form("WorkExpPost")))
	WorkExpJobs = Qsite.chgStr(Trim(Request.Form("WorkExpJobs")))
	WorkExpNote = Qsite.chgStr(Trim(Request.Form("WorkExpNote")))
	WorkExpLeave = Qsite.chgStr(Trim(Request.Form("WorkExpLeave")))
	
	If WorkExpId = "" Or IsNull(WorkExpId) Or Not IsNumeric(WorkExpId) Then WorkExpId = 0
	
	If WorkExpBeginDate = "" Or IsNull(WorkExpBeginDate) Then
		Qsite.ShowMsg "请输入开始时间" , ""
	End If
	If WorkExpEndDate = "" Or IsNull(WorkExpEndDate) Then WorkExpEndDate = "至今"
	If WorkExpCompanyName = "" Or IsNull(WorkExpCompanyName) Then
		Qsite.ShowMsg "请输入公司名称" , ""
	End If
	If WorkExpCompanyNature = "" Or IsNull(WorkExpCompanyNature) Then
		Qsite.ShowMsg "请选择公司性质" , ""
	End If
	If WorkExpCompanyIndustry = "" Or IsNull(WorkExpCompanyIndustry) Then
		Qsite.ShowMsg "请选择所属行业" , ""
	End If
	If WorkExpPost = "" Or IsNull(WorkExpPost) Then 
		Qsite.ShowMsg "请输入所在部门" , ""
	End If
	If WorkExpJobs = "" Or IsNull(WorkExpJobs) Then
		Qsite.ShowMsg "请输入职位名称" , ""
	End If
	
	Conn.Execute("update WorkExpTbl set WorkExpBeginDate = '"& WorkExpBeginDate &"' , WorkExpEndDate = '"& WorkExpEndDate &"' , WorkExpCompanyName = '"& WorkExpCompanyName &"' , WorkExpCompanyNature = '"& WorkExpCompanyNature &"' , WorkExpCompanyIndustry = '"& WorkExpCompanyIndustry &"' , WorkExpPost = '"& WorkExpPost &"' , WorkExpJobs = '"& WorkExpJobs &"' , WorkExpNote = '"& WorkExpNote &"' , WorkExpLeave = '"& WorkExpLeave &"' where WorkExpId = "& WorkExpId &" and PerId = "& Session("PerId"))
	
	Qsite.ShowMsg "修改成功" , "ChgPerInfo_5.asp"
End If

WorkExpId = Qsite.chgStr(Trim(Request.QueryString("WorkExpId")))

If WorkExpId = "" Or IsNull(WorkExpId) Or Not IsNumeric(WorkExpId) Then WorkExpId = 0

Rs.Open "select * from WorkExpTbl where WorkExpId = "& WorkExpId &" and PerId = "& Session("PerId") , Conn , 1 , 1
If Rs.Eof Then
	WorkExpBeginDate = ""
	WorkExpEndDate = ""
	WorkExpCompanyName = ""
	WorkExpCompanyNature = ""
	WorkExpCompanyIndustry = ""
	WorkExpPost = ""
	WorkExpJobs = ""
	WorkExpNote = ""
	WorkExpLeave = ""
Else
	WorkExpBeginDate = Rs("WorkExpBeginDate")
	WorkExpEndDate = Rs("WorkExpEndDate")
	WorkExpCompanyName = Rs("WorkExpCompanyName")
	WorkExpCompanyNature = Rs("WorkExpCompanyNature")
	WorkExpCompanyIndustry = Rs("WorkExpCompanyIndustry")
	WorkExpPost = Rs("WorkExpPost")
	WorkExpJobs = Rs("WorkExpJobs")
	WorkExpNote = Rs("WorkExpNote")
	WorkExpLeave = Rs("WorkExpLeave")
End If
Rs.Close
%>
<table width="974" height="413" border="0" align="center" cellpadding="0" cellspacing="0">
      <tr> 
        <td width="185" valign="top"> 
<!--#include file="Left_Menu.asp" -->
        </td>
        <td width="789" valign="top"><script language="javascript" src="../Comm/Comm.js"></script>
<script language="javascript">
	function CheckForm()
	{
		if(!checkLength("WorkExpBeginDate" , "开始时间" , 1 , 20))
			return false;
		if(!checkLength("WorkExpEndDate" , "结束时间" , 0 , 20))
			return false;
		if(!checkLength("WorkExpCompanyName" , "公司名称" , 1 , 100))
			return false;
		if(PerForm.WorkExpCompanyNature.value == "")
		{
			alert("请选择公司性质");
			return false;
		}
		if(PerForm.WorkExpCompanyIndustry.value == "")
		{
			alert("请选择所属行业");
			return false;
		}
		if(!checkLength("WorkExpPost" , "所在部门" , 1 , 50))
			return false;
		if(!checkLength("WorkExpJobs" , "职位名称" , 1 , 50))
			return false;
		if(!checkLength("WorkExpNote" , "工作描述" , 0 , 1000))
			return false;
		if(!checkLength("WorkExpLeave" , "离职原因" , 1 , 100))
			return false;
		return true;
	}
</script>
<table width="768" border="0" align="center" cellpadding="0" cellspacing="0">
            <tr>
              <td height="26" background="../images/Member_Center_r7_c8.jpg"><table width="768" border="0" cellspacing="0" cellpadding="0">
                  <tr>
                    <td width="60">&nbsp;</td>
                    <td width="708"><span style="font-size:14px;color:#FF7706"><b>修改工作经历</b></span><span style="font-size:14px;color:#333333"> 
                      <strong>Edit Work Experience</strong></span></td>
                  </tr>
                </table></td>
            </tr>
            <tr>
              <td height="136" align="left" valign="top" background="../images/Member_Center_r10_c8.jpg" style="padding-top:5px;padding-left:10px;padding-right:10px;padding-bottom:5px;">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
                  <tr> 
                    <td width="100%" height="23"><img src="../images/ico_2.gif" width="15" height="12" align="absmiddle" />友情提示：工作经验是人事经理最为关注的，完整的工作经历，帮助您的简历更靠前，在众多求职者中脱颖而出。(没有工作经历可不填) </td>
                  </tr>
                </table>
                <table width="100%" height="7" border="0" cellpadding="0" cellspacing="0">
                  <tr height="1">
                    <td background="../images/ico_point.gif"></td>
                  </tr>
				  <tr height="6">
                    <td></td>
    
                </table>



<form id="PerForm" name="PerForm" method="post" action="ChgPerInfo_8_Edit.asp" style="margin:0" onsubmit="return CheckForm();">
								<table width="100%" align=center border="0" cellpadding="5" cellspacing="3">
									<tr>
										<td width="13%" height="30"><font color="#FF0000">*</font>时间：
										<input name="WorkExpId" type="hidden" id="WorkExpId" value="<%=WorkExpId%>" /></td>
										<td width="87%" height="30">从
											<input name="WorkExpBeginDate" type="text"  id="WorkExpBeginDate" value="<%=WorkExpBeginDate%>" size="16" />
											到
											<input name="WorkExpEndDate" type="text"  id="WorkExpEndDate" value="<%=WorkExpEndDate%>" size="16" />
										(格式：2007-09，后面一项目不填表示至今)</td>
									</tr>
									<tr>
										<td height="30"><font color="#FF0000">*</font>公司名称：</td>
										<td height="30"><input name="WorkExpCompanyName" type="text"  id="WorkExpCompanyName" value="<%=WorkExpCompanyName%>" size="50" /></td>
									</tr>
									<tr>
										<td height="30"><font color="#FF0000">*</font>公司性质：</td>
										<td height="30"><select name="WorkExpCompanyNature"  id="WorkExpCompanyNature">
											<option value="" <%If WorkExpCompanyNature = "" Then Response.Write("selected")%>>--请选择--</option>
											<%
						Rs.Open "select * from CompanyNatureTbl order by CompanyNatureId asc" , Conn , 1 , 1
						Do While Not Rs.Eof
							Response.Write("<option value="""& Rs("CompanyNatureName") &""" ")
							If Rs("CompanyNatureName") = WorkExpCompanyNature Then Response.Write("selected")
							Response.Write(">"& Rs("CompanyNatureName") &"</option>")
						Rs.MoveNext
						Loop
						Rs.Close
						%>
										</select>
										</td>
									</tr>
									<tr>
										<td height="30"><font color="#FF0000">*</font>所属行业：</td>
										<td height="30"><select name="WorkExpCompanyIndustry"  id="WorkExpCompanyIndustry">
											<option value="" selected>--请选择--</option>
											<%
						Rs.Open "select * from PositionTbl where PositionKey = 0 order by PositionId asc" , Conn , 1 , 1
						Do While Not Rs.Eof
							Response.Write("<option value="""& Rs("PositionName") &""" ")
							If Cstr(Rs("PositionName")) = Cstr(WorkExpCompanyIndustry) Then Response.Write("selected")
							Response.Write(">"& Rs("PositionName") &"</option>")
						Rs.MoveNext
						Loop
						Rs.Close
						%>
										</select>
										</td>
									</tr>
									<tr>
										<td height="30"><font color="#FF0000">*</font>所在部门：</td>
										<td height="30"><input name="WorkExpPost" type="text"  id="WorkExpPost" value="<%=WorkExpPost%>" size="30" /></td>
									</tr>
									<tr>
										<td height="30"><font color="#FF0000">*</font>职位名称：</td>
										<td height="30"><input name="WorkExpJobs" type="text"  id="WorkExpJobs" value="<%=WorkExpJobs%>" size="30" /></td>
									</tr>
									<tr>
										<td height="30">&nbsp;</td>
										<td height="30">请详细描述您的职责范围、工作任务以及取得的成绩等。</td>
									</tr>
									<tr>
										<td height="30">工作描述：</td>
										<td height="30"><textarea name="WorkExpNote" cols="70" rows="8" ><%=WorkExpNote%></textarea></td>
									</tr>
									<tr>
										<td height="30">离职原因：</td>
										<td height="30"><input name="WorkExpLeave" type="text"  id="WorkExpLeave" value="<%=WorkExpLeave%>" size="30" />
										简明扼要地阐述离职原因</td>
									</tr>
									<tr>
										<td height="30">&nbsp;</td>
										<td height="30"><input type="submit" name="Submit" value=" 修  改 " />
												&nbsp;
												<input type="reset" name="Submit" value=" 重  置 " />
												&nbsp;
										<input type="button" name="Submit" value=" 返  回 " onclick="javascript:location.href='ChgPerInfo_5.asp';" /></td>
									</tr>
							</table>
								</form><table width="100%" height="1" border="0" cellpadding="0" cellspacing="0">
                  <tr height="1">  
                    <td background="../images/ico_point.gif"></td>
                  </tr>
                </table></td>
            </tr>
            <tr height="14">
              <td height="14" background="../images/Member_Center_r18_c8.jpg"></td>
            </tr>
          </table></td>
      </tr>
    </table>
 
<table width="974" height="8" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr height="8">
        <td height="8"></td>
      </tr>
    </table>
<%
Qsite.Bottom()
%>