<!--#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 EducateId,EducateBeginDate,EducateEndDate,EducateAgencies,EducateAddr,EducateCourses,EducateCertificates,EducateNote

If Request.Form <> "" Then
	EducateId = Qsite.chgStr(Trim(Request.Form("EducateId")))
	EducateBeginDate = Qsite.chgStr(Trim(Request.Form("EducateBeginDate")))
	EducateEndDate = Qsite.chgStr(Trim(Request.Form("EducateEndDate")))
	EducateAgencies = Qsite.chgStr(Trim(Request.Form("EducateAgencies")))
	EducateAddr = Qsite.chgStr(Trim(Request.Form("EducateAddr")))
	EducateCourses = Qsite.chgStr(Trim(Request.Form("EducateCourses")))
	EducateCertificates = Qsite.chgStr(Trim(Request.Form("EducateCertificates")))
	EducateNote = Qsite.chgStr(Trim(Request.Form("EducateNote")))
	
	If EducateId = "" Or IsNull(EducateId) Or Not IsNumeric(EducateId) Then EducateId = 0
	
	If EducateBeginDate = "" Or IsNull(EducateBeginDate) Then
		Qsite.ShowMsg "请输入开始时间" , ""
	End If
	If EducateEndDate = "" Or IsNull(EducateEndDate) Then EducateEndDate = "至今"
	If EducateAgencies = "" Or IsNull(EducateAgencies) Then
		Qsite.ShowMsg "请输入培训机构" , ""
	End If
	If EducateCourses = "" Or IsNull(EducateCourses) Then
		Qsite.ShowMsg "请输入培训课程" , ""
	End If
	
	Conn.Execute("update EducateTbl set EducateBeginDate = '"& EducateBeginDate &"' , EducateEndDate = '"& EducateEndDate &"' , EducateAgencies = '"& EducateAgencies &"' , EducateAddr = '"& EducateAddr &"' , EducateCourses ='"& EducateCourses &"' , EducateCertificates = '"& EducateCertificates &"' , EducateNote = '"& EducateNote &"' where EducateId = "& EducateId &" and PerId = "& Session("PerId"))
	
	Qsite.ShowMsg "修改成功" , "ChgPerInfo_5.asp"
End If

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

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

Rs.Open "select * from EducateTbl where EducateId = "& EducateId &" and PerId = "& Session("PerId") , Conn , 1 , 1
If Rs.Eof Then
	EducateBeginDate = ""
	EducateEndDate = ""
	EducateAgencies = ""
	EducateAddr = ""
	EducateCourses = ""
	EducateCertificates = ""
	EducateNote = ""
Else
	EducateBeginDate = Rs("EducateBeginDate")
	EducateEndDate = Rs("EducateEndDate")
	EducateAgencies = Rs("EducateAgencies")
	EducateAddr = Rs("EducateAddr")
	EducateCourses = Rs("EducateCourses")
	EducateCertificates = Rs("EducateCertificates")
	EducateNote = Rs("EducateNote")
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("EducateBeginDate" , "开始时间" , 1 , 20))
			return false;
		if(!checkLength("EducateEndDate" , "结束时间" , 0 , 20))
			return false;
		if(!checkLength("EducateAgencies" , "培训机构" , 1 , 100))
			return false;
		if(!checkLength("EducateAddr" , "培训地点" , 0 , 100))
			return false;
		if(!checkLength("EducateCourses" , "培训课程" , 1 , 100))
			return false;
		if(!checkLength("EducateCertificates" , "获得证书" , 0 , 100))
			return false;
		if(!checkLength("EducateNote" , "详细描述" , 0 , 500))
			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 Train</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_6_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="EducateId" type="hidden" id="EducateId" value="<%=EducateId%>" /></td>
										<td width="87%" height="30" >从
											<input name="EducateBeginDate" type="text"  id="EducateBeginDate" value="<%=EducateBeginDate%>" size="16" />
											到
											<input name="EducateEndDate" type="text"  id="EducateEndDate" value="<%=EducateEndDate%>" size="16" />
										(格式：2007-09，后面一项目不填表示至今)</td>
									</tr>
									<tr>
										<td height="30" ><font color="#FF0000">*</font>培训机构：</td>
										<td height="30" ><input name="EducateAgencies" type="text"  id="EducateAgencies" value="<%=EducateAgencies%>" size="50" /></td>
									</tr>
									<tr>
										<td height="30" >培训地点：</td>
										<td height="30" ><input name="EducateAddr" type="text"  id="EducateAddr" value="<%=EducateAddr%>" size="50" /></td>
									</tr>
									<tr>
										<td height="30" ><font color="#FF0000">*</font>培训课程：</td>
										<td height="30" ><input name="EducateCourses" type="text"  id="EducateCourses" value="<%=EducateCourses%>" size="50" /></td>
									</tr>
									<tr>
										<td height="30" >获得证书：</td>
										<td height="30" ><input name="EducateCertificates" type="text"  id="EducateCertificates" value="<%=EducateCertificates%>" size="50" /></td>
									</tr>
									<tr>
										<td height="30" >详细描述：</td>
										<td height="30" ><textarea name="EducateNote" cols="50" rows="10" id="EducateNote"><%=EducateNote%></textarea></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()
%>