<!--#include file="../Include/Class_Conn.asp" -->
<!--#include file="../Public/Person_Cookies.asp" -->
<!--#include file="../Include/Class_Main.asp" -->
<% 
'地区分站参数
Dim c_City,c_Name
If Session("c_City") = "" Then 
 Response.Redirect "../Index.asp"
 Response.End()
End if
c_City = Session("c_City")
c_Name = Session("c_Name")

Dim Param,Perid,Username,Action,Ncid
Param = Request.QueryString("param")
Ncid  = Replace_Text(Request.QueryString("paramid"))

Action = Request.QueryString("action")
Perid = Session("Person")(2)
Username = Session("Person")(0)
If Action = "submit" Then Call Works_Submit() 
Check_id(Ncid)

 %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<LINK href="../Css/Style.css" type=text/css rel=stylesheet>
<title><%= Cls_WebName&" | "&c_Name&"站" %> -- 简历中心 -- 修改工作经历</title>
</head>
<script language="JavaScript" src="../js/Person_works_add.js"></script>
<script language="JavaScript" src="../js/funlib.js"></script>
<script language="JavaScript" src="../js/joball.js"></script>

<body>
<table width="950" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
  <tr>
    <td>
      <!--#include file="../c_Header/Person_Login.asp" -->
    </td>
  </tr>
</table>
<table width="950" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
  <tr> 
    <td><table width="950" border="0" align="center" cellpadding="0" cellspacing="0">
        <tr> 
          <td height="4"></td>
        </tr></table>
      <table width="950" border="0" align="center" cellpadding="0" cellspacing="0">
        <tr> 
         <td width="175" valign="top"> 
            <!--#include file="../Lefter/Person_BasicInfo.asp" -->
          </td>
          <td width="5">&nbsp;</td>
          <td valign="top"> 
            <% 
Set Rs = Conn.Execute("Select * From [pH_Person_Work] Where Perid='"&Perid&"' And Ncid="&Cstr(Ncid))
If Not Rs.Eof Then
 Ncid          = Rs("Ncid")
 Begin_Year    = Rs("Begin_Year")
 Begin_Month   = Rs("Begin_Month") 
 End_Year      = Rs("End_Year")
 End_Month     = Rs("End_Month")
 CompanyName   = Rs("CompanyName")
 Properity     = Rs("Properity")
 Industry      = Rs("Industry")
 WorkName      = Rs("WorkName")
 WorkMemo      = Rs("WorkMemo")
 Demission     = Rs("Demission")

 %>
            <table width="100%" border="0" cellspacing="0" cellpadding="0">
              <form action="?action=submit" name="works" method="post" onSubmit="return works_check();">
                <tr> 
                  <td><table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="eeeeee">
                      <tr> 
                        <td bgcolor="#FFFFFF"><table width="99%" border="0" align="center" cellpadding="0" cellspacing="0">
                            <tr> 
                              <td height="2"></td>
                            </tr>
                          </table>
                          <table width="99%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="eeeeee">
                            <tr> 
                              <td height="25" bgcolor="f5f5f5"><b><font color="#000000">&nbsp;添加工作经历</font></b></td>
                            </tr>
                          </table>
                          <table width="99%" border="0" align="center" cellpadding="0" cellspacing="0">
                            <tr> 
                              <td width="18%" height="25" align="right"><STRONG><FONT 
                  color=#ff6600>* </FONT></STRONG>时间范围：</td>
                              <td height="25"><input name="begin_year" type="text" id="begin_year" size="4" maxlength="4" value="<%= Begin_year %>">
                                年<span style="FONT-FAMILY: 宋体; FONT-SIZE: 12px"><font> 
                                <select name=begin_month id="begin_month">
                                  <%for i=1 to 12%>
                                  <option value="<%=i%>" <% If i=Begin_month Then Response.write "Selected" %>><%=i%></option>
                                  <%next%>
                                </select>
                                </font></span>月 -- 
                                <input name="end_year" type="text" id="end_year" size="4" maxlength="4" value="<%= End_year %>">
                                年<span style="FONT-FAMILY: 宋体; FONT-SIZE: 12px"><font> 
                                <select name=end_month id="end_month">
                                  <%for i=1 to 12%>
                                  <option value="<%=i%>" <% If i=End_month Then Response.write "Selected" %>><%=i%></option>
                                  <%next%>
                                </select>
                                </font></span>月</td>
                            </tr>
                            <tr> 
                              <td width="18%" height="25" align="right" bgcolor="f9f9f9"><STRONG><FONT 
                  color=#ff6600>* </FONT></STRONG>企业名称：</td>
                              <td height="25" bgcolor="f9f9f9"> <input name="companyname" maxLength=50 size=30 style="width:260px;" value="<%= Companyname %>"> 
                              </td>
                            </tr>
                            <tr> 
                              <td height="25" align="right">所属行业：</td>
                              <td height="25">
                                <!--#include file="../Include/Class_Industry.asp" -->
                              </td>
                            </tr>
                            <tr> 
                              <td height="25" align="right" bgcolor="f9f9f9">企业性质：</td>
                              <td height="25" bgcolor="f9f9f9">
                                <!--#include file="../Include/Class_Properity.asp" -->
                              </td>
                            </tr>
                            <tr> 
                              <td height="25" align="right"><STRONG><FONT 
                  color=#ff6600>* </FONT></STRONG>担任职位：</td>
                              <td height="25"><SELECT name=workclass style="width:120px;" onChange="document.works.workname.value=document.works.worksubclass.value">
                                </SELECT> <select name=worksubclass style="width:130px;" onChange="document.works.workname.value=document.works.worksubclass.value">
                                </select> </td>
                            </tr>
                            <tr> 
                              <td height="25" align="right" bgcolor="f9f9f9">&nbsp;</td>
                              <td height="25" bgcolor="f9f9f9"> <input name="workname" type="text"  maxlength="60" style="width:260px;" value="<%= Workname %>"> 
                              </td>
                            </tr>
                            <tr> 
                              <td height="25" align="right"><STRONG><FONT 
                  color=#ff6600>* </FONT></STRONG>工作描述：</td>
                              <td height="25"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                                  <tr> 
                                    <td><textarea name="workmemo" cols="45" rows="8" id="workmemo"><%= Workmemo %></textarea></td>
                                    <td width="27%">强调参与哪些重要项目/事务,突出个人工作业绩。另外，如果您要保密个人简历，请不在此透露身份信息 
                                      . </td>
                                  </tr>
                                </table></td>
                            </tr>
                            <tr> 
                              <td height="25" align="right" bgcolor="f9f9f9">离职原因：</td>
                              <td height="25" bgcolor="f9f9f9"> <input name="demission" id="demission" style="width:260px;" size=30 maxLength=50 value="<%= Demission %>">
                                简明扼要地阐述离职原因</td>
                            </tr>
                          </table>
                          <table width="99%" border="0" align="center" cellpadding="0" cellspacing="0">
                            <tr> 
                              <td height="2"></td>
                            </tr>
                          </table></td>
                      </tr>
                    </table></td>
                </tr>
                <tr> 
                  <td height="40" align="center"> <input name="perid" type="hidden" id="perid" value="<%= Perid %>"> 
                    <input name="username" type="hidden" value="<%= Username %>"> 
                    <input name="ncid" type="hidden" value="<%= Ncid %>"> <input type="submit" name="Submit" value=" 保存工作经历数据 " style="height:35px;"> 
                    <SCRIPT language=JavaScript>
			  
  var objJobSelector, objJobSubSelector

  objJobSelector = new JobCategoryAssociateList(document.works.workclass, null, document.works.worksubclass, PCLOptions);
  objJobSelector.init();
  objJobSubSelector = new JobCategoryAssociateList(document.works.worksubclass, document.works.workclass, null, CCLOptions);
  objJobSubSelector.init();  
                    </SCRIPT> </td>
                </tr>
              </form>
            </table>
            <% 
Else
 Response.write "没有找到该工作经历！"
End if
CloseRs
 %>
          </td>
        </tr>
      </table>

<!--#include file="../c_Include/Footer.asp" -->
	  </td>
  </tr>
</table>

</body>
</html>
<% 
Sub Works_Submit() '//添加工作经历
 Call Check_url()    '防止外部站点提交数据
 '//提交数据
 Perid                = Session("Person")(2)
 Username             = Session("Person")(0)
 Ncid                 = Replace_Text(Request.Form("ncid"))
 Begin_Year           = Replace_Text(Request.Form("Begin_Year"))
 Begin_Month          = Replace_Text(Request.Form("Begin_Month"))
 End_Year             = Replace_Text(Request.Form("End_Year"))
 End_Month            = Replace_Text(Request.Form("End_Month"))
 CompanyName          = Replace_Text(Request.Form("CompanyName"))
 Properity            = Replace_Text(Request.Form("Properity"))
 Industry             = Replace_Text(Request.Form("Industry"))
 WorkName             = Replace_Text(Request.Form("WorkName"))
 WorkMemo             = Replace_Text(Request.Form("WorkMemo"))
 Demission            = Replace_Text(Request.Form("Demission"))
 
 SQL = "Update [pH_Person_Work] Set Begin_Year="&Begin_Year&",Begin_Month="&Begin_Month&",End_Year="&End_Year&",End_Month="&End_Month&",CompanyName='"&CompanyName&"',Properity="&Properity&",Industry="&Industry&",WorkName='"&WorkName&"',WorkMemo='"&WorkMemo&"',Demission='"&Demission&"' Where Perid='"&Perid&"' And Username='"&Username&"' And Ncid="&Cstr(Ncid)
 Conn.Execute(SQL)

 '//更改最后修改时间
 SQL = "Update [pH_Person_Base] Set LastUpdate_Time=getdate() Where Perid='"&Perid&"'"
 Conn.Execute(SQL)
 
 CloseDB
 Response.redirect "Per_Works.asp"
End Sub

'//关闭数据库连接
CloseDB
 %>
