<!--#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 LanguageId,LanguageType,LanguageDegree

If Request.Form <> "" Then
	LanguageId = Qsite.chgStr(Trim(Request.Form("LanguageId")))
	LanguageType = Qsite.chgStr(Trim(Request.Form("LanguageType")))
	LanguageDegree = Qsite.chgStr(Trim(Request.Form("LanguageDegree")))
	
	If LanguageId = "" Or IsNull(LanguageId) Or Not IsNumeric(LanguageId) Then LanguageId = 0
	
	If LanguageType = "" Or IsNull(LanguageType) Then
		Qsite.ShowMsg "请输入外语语种" , ""
	End If
	If LanguageDegree = "" Or IsNull(LanguageDegree) Then
		Qsite.ShowMsg "请选择掌握程度" , ""
	End If
	
	Conn.Execute("update LanguageTbl set LanguageType = '"& LanguageType &"' , LanguageDegree = '"& LanguageDegree &"' where LanguageId = "& LanguageId &" and  PerId ="& Session("PerId"))
	
	Qsite.ShowMsg "修改成功" , "ChgPerInfo_5.asp"
End If

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

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

Rs.Open "select * from LanguageTbl where LanguageId = "& LanguageId &" and PerId = "& Session("PerId") , Conn , 1 , 1
If Rs.Eof Then
	LanguageType = ""
	LanguageDegree = ""
Else
	LanguageType = Rs("LanguageType")
	LanguageDegree = Rs("LanguageDegree")
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("LanguageType" , "外语语种" , 1 , 20))
			return false;
		if(PerForm.LanguageDegree.value == "")
		{
			alert("请选择掌握程度");
			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 Language</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_7_Edit.asp" style="margin:0" onsubmit="return CheckForm();">
								<table width="100%" align=center border="0" cellpadding="5" cellspacing="3">
									<tr>
										<td width="14%" height="30" ><font color="#FF0000">*</font>外语语种：</td>
										<td width="86%" height="30" ><input name="LanguageType" type="text"  id="LanguageType" value="<%=LanguageType%>" size="30" />
										<input name="LanguageId" type="hidden" id="LanguageId" value="<%=LanguageId%>" /></td>
									</tr>
									<tr>
										<td height="30" ><font color="#FF0000">*</font>掌握程度：</td>
										<td height="30" ><select name="LanguageDegree" id="LanguageDegree" >
											<option value="" <%If LanguageDegree = "" Then Response.Write("selected")%>>--请选择--</option>
											<option value="一般" <%If LanguageDegree = "一般" Then Response.Write("selected")%>>一般</option>
											<option value="良好" <%If LanguageDegree = "良好" Then Response.Write("selected")%>>良好</option>
											<option value="熟练" <%If LanguageDegree = "熟练" Then Response.Write("selected")%>>熟练</option>
											<option value="精通" <%If LanguageDegree = "精通" Then Response.Write("selected")%>>精通</option>
										</select>
										</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()
%>