📄 pmember_modi.asp
字号:
<%ds="../"%>
<!--#include file="../conn/conn.asp" -->
<!--#include file="../inc/sub.asp"-->
<%
link="pmember_modi.asp"
%>
<!--#include file="checkpmember.asp" -->
<!--#include file="../inc/replace.asp" -->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>修改注册资料-个人求职管理中心</title>
<script type="text/javascript" src="../inc/hzcalendar.js"></script>
<LINK href="../css/css.css" rel=stylesheet>
<script language="JavaScript">
<!--
//功能:去掉字符串前后空格
//返回值:去掉空格后的字符串
function fnRemoveBrank(strSource)
{
return strSource.replace(/^\s*/,'').replace(/\s*$/,'');
}
function GethukouCapital(capitalid)
{
document.frames["hukoucapitalframe"].location.replace("../inc/gethukoucapital.asp?capitalid="+capitalid);
}
function GethukouCity(cityid)
{
document.frames["hukoucityframe"].location.replace("../inc/gethukoucity.asp?cityid="+cityid);
}
function GetCapital(capitalid)
{
document.frames["capitalframe"].location.replace("../inc/getcapital.asp?capitalid="+capitalid);
}
function GetCity(cityid)
{
document.frames["cityframe"].location.replace("../inc/getcity.asp?cityid="+cityid);
}
function String.prototype.lenB()
{
return this.replace(/[^\x00-\xff]/g,"**").length;
}
function Juge(theForm)
{
if (fnRemoveBrank(theForm.name.value) == "")
{
alert("请输入姓名!");
theForm.name.focus();
return (false);
}
if (fnRemoveBrank(theForm.birth_year.value) == "")
{
alert("请输入出生年份!");
theForm.birth_year.focus();
return (false);
}
if (fnRemoveBrank(theForm.birth_month.value) == "")
{
alert("请选择出生月份!");
theForm.birth_month.focus();
return (false);
}
if (fnRemoveBrank(theForm.birth_day.value) == "")
{
alert("请选择出生日期!");
theForm.birth_day.focus();
return (false);
}
if (fnRemoveBrank(theForm.idcard.value) == "")
{
alert("请输入证件编号!");
theForm.idcard.focus();
return (false);
}
if (fnRemoveBrank(theForm.province.value) == "")
{
alert("请选择所在省份!");
theForm.province.focus();
return (false);
}
if (fnRemoveBrank(theForm.edu.value) == "")
{
alert("请选择最高学历!");
theForm.edu.focus();
return (false);
}
if (fnRemoveBrank(theForm.school.value) == "")
{
alert("请填写毕业学校!");
theForm.school.focus();
return (false);
}
if (fnRemoveBrank(theForm.tel.value) == "")
{
alert("请输入联系电话!");
theForm.tel.focus();
return (false);
}
var objv = fnRemoveBrank(theForm.email.value);
var pattern = /^([a-zA-Z0-9_-])+(\.([a-zA-Z0-9_-])+)*@([a-zA-Z0-9_-])+(\.([a-zA-Z0-9_-])+)+$/;
flag = pattern.test(objv);
if(!flag)
{
alert("电子邮件:格式不正确!请重新输入。");
theForm.email.focus();
return (false);
}
}
-->
</script>
</head>
<body>
<!--#include file="../inc/head.asp"-->
<iframe height=0 width=0 src="" id="hukoucapitalframe"></iframe>
<iframe height=0 width=0 src="" id="hukoucityframe"></iframe>
<iframe height=0 width=0 src="" id="capitalframe"></iframe>
<iframe height=0 width=0 src="" id="cityframe"></iframe>
<br class="br">
<table width="778" border="0" align="center" cellpadding="0" cellspacing="0" class="table2">
<tr>
<td width="200" height="299" rowspan="4" valign="top"><!--#include file="menu.asp" --></td>
</tr>
<tr>
<td width="639" height="35" background="../images/companyleftregbg.gif"> <font class=font-14><b><img src="../images/arrow_01.gif" width="11" height="11" align="absmiddle"> </b></font><font class=font-14><b>姓名:</b></font><font
class=font-title color="#FF6600"><%=session("user_pname")%></FONT></td>
<td width="122" background="../images/companyleftregbg.gif"><font
class=font-title color="#FF6600"><A
style="CURSOR: hand"
href="logout.asp"><IMG src="../images/exit.gif" width=79
height=19 border="0"></A></font></td>
</tr>
<tr>
<td height="223" colspan="2" valign="top"><table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" class="orange-bar">
<tr>
<td width="2%" align="right"> </td>
<td width="97%" class="white14"> 个人信息修改</td>
<td width="1%"> </td>
</tr>
</table>
<table width="98%" border="0" align="center" cellpadding="4" cellspacing="0">
<%
set rst=server.createobject("ADODB.Recordset")
sql="select * from job_p_pmember where pmember_login='"&pmember_login&"'"
rst.open sql,conn,1,1
%>
<form name="modicompany" action="pmember_update.asp?id=<%=rst("pmember_id")%>" method="post" onSubmit="return Juge(this)">
<tr>
<td class="prmtopborder2"><span class="font-title">基本信息</span></td>
</tr>
<tr>
<td height="130" valign="top" class="table2"><TABLE width="100%" border="0"
align=center cellPadding=6 cellSpacing=0 class=infoContent1>
<TBODY>
<TR>
<TD width=81 height=30 align="right" bgcolor="#efefef"> <FONT
color=#ff7800><STRONG>*</STRONG></FONT>姓 名:</TD>
<TD width="412" bgcolor="#efefef"><INPUT name=name id="name" maxLength=25 value="<%=rst("pmember_name")%>">
</TD>
</TR>
<TR>
<TD height=30 align="right" bgcolor="#f9f9f9"> <FONT
color=#ff7800><STRONG>*</STRONG></FONT>性 别: </TD>
<TD bgcolor="#f9f9f9"><INPUT type=radio value=1 name=sex <%if rst("pmember_sex")=1 then response.write "checked" end if%>>
男
<INPUT type=radio value=2 name=sex <%if rst("pmember_sex")=2 then response.write "checked" end if%>>
女 </TD>
</TR>
<TR>
<TD height=30 align="right" bgcolor="#efefef"> <FONT
color=#ff7800><STRONG>*</STRONG></FONT>出生日期: </TD>
<TD bgcolor="#efefef"><input type="text" name="birth" value="<%=rst("pmember_birth")%>" id="birth" size="10" maxlength="10">
<img src="../images/calendar_bnt.gif" style="cursor:pointer;" align="absmiddle" onClick="fPopUpCalendarDlg(birth);return false" WIDTH="34" HEIGHT="21"></TD>
</TR>
<TR>
<TD height=30 align="right" bgcolor="#f9f9f9"> <FONT
color=#ff7800><STRONG>*</STRONG></FONT>证件类型:</TD>
<TD bgcolor="#f9f9f9"><SELECT name=cardtype size=1 id="cardtype">
<OPTION value=0 <%if rst("pmember_cardtype")=0 then response.write "select" end if%>>身份证</OPTION>
<OPTION value=1 <%if rst("pmember_cardtype")=1 then response.write "select" end if%>>驾证</OPTION>
<OPTION value=2 <%if rst("pmember_cardtype")=2 then response.write "select" end if%>>军官证</OPTION>
<OPTION value=3 <%if rst("pmember_cardtype")=3 then response.write "select" end if%>>护照</OPTION>
<OPTION value=4 <%if rst("pmember_cardtype")=4 then response.write "select" end if%>>其它</OPTION>
</SELECT>
证件编号:
<INPUT name=idcard id="idcard" maxLength=20 value="<%=rst("pmember_idcard")%>">
</TD>
</TR>
<TR>
<TD align="right" height=30 bgcolor="#efefef"> 民 族:</TD>
<TD bgcolor="#efefef"><select name="nation" id="nation">
<option value=""></option>
<%
set rs=server.createobject("ADODB.Recordset")
sql="select * from job_nation"
rs.open sql,conn,1,1
do while not rs.eof
if rst("pmember_nation")=rs("nation_id") then
response.write"<OPTION value="&rs("nation_id")&" selected>"&rs("nation_name")&"</option>"
else
response.write"<OPTION value="&rs("nation_id")&">"&rs("nation_name")&"</option>"
end if
rs.movenext
loop
rs.close
%>
</select>
</TD>
</TR>
<TR>
<TD align="right" height=30 bgcolor="#f9f9f9"> 婚姻状况:</TD>
<TD bgcolor="#f9f9f9"><select name="marriage" id="marriage">
<option value=""></option>
<%
sql="select * from job_marriage"
rs.open sql,conn,1,1
do while not rs.eof
if rst("pmember_marriage")=rs("marriage_id") then
response.write"<OPTION value="&rs("marriage_id")&" selected>"&rs("marriage_name")&"</option>"
else
response.write"<OPTION value="&rs("marriage_id")&">"&rs("marriage_name")&"</option>"
end if
rs.movenext
loop
rs.close
%>
</select>
</TD>
</TR>
<TR>
<TD align="right" height=30 bgcolor="#efefef"> 政治面貌:</TD>
<TD bgcolor="#efefef"><select name="polity" id="polity">
<option value=""></option>
<%
sql="select * from job_polity"
rs.open sql,conn,1,1
do while not rs.eof
if rst("pmember_polity")=rs("polity_id") then
response.write"<OPTION value="&rs("polity_id")&" selected>"&rs("polity_name")&"</option>"
else
response.write"<OPTION value="&rs("polity_id")&">"&rs("polity_name")&"</option>"
end if
rs.movenext
loop
rs.close
%>
</select>
</TD>
</TR>
<TR>
<TD align="right" height=30 bgcolor="#f9f9f9"> 身 高:</TD>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -