⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 register.asp

📁 21世纪人才www.51zy.net 网站源码
💻 ASP
字号:
<% Response.Buffer=True %>
<!--#include file="../inc/person.inc"-->
<% 
   uname=session("puid")
modify=request("modify")
Set rs = Server.CreateObject("ADODB.Recordset")
sql="select * from person where uname='"&uname&"'"
rs.open sql,conn,1,1 
%>
<%
   if modify<>"ture" and rs("job") <> "" then
   response.write"<SCRIPT language=JavaScript>alert('你已经登录个人简历,请不要重复登录!');"
   response.write"javascript:history.go(-1)</SCRIPT>"
   end if 
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>

<head>

<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta http-equiv="Content-Language" content="zh-cn">
<link rel="stylesheet" href="../inc/register.css" type="text/css">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<% if modify<>"ture" then %>
<%else%>
<%end if%>
</head>
<SCRIPT language=JavaScript src="../inc/validate.js"></SCRIPT>
<SCRIPT language=JavaScript src="../inc/vreg1.js"></SCRIPT>
<% if modify<>"ture" then %>
<FORM name=register action=register.asp method=post>
<%else%>
<%end if%>
<FORM name="register" action="register.asp?modify=ture" method="post">
  <table width="778" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#CCCCCC">
    <tr> 
      <td width="177" valign="top" bgcolor="#FFFFFF"><table width="159" border="0" align="center" cellpadding="0" cellspacing="0">
          <tr> 
            <td height="35" align="center" background="../pic/pic_039.gif"><font color="#CC33CC"><%=uname%> 您好!</font></td>
          </tr>
        </table>
        <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
          <tr> 
            <td width="100%" align="center" valign="top"> <a href="main.asp">登录首页</a><br> <br> 
              <a href="register.asp">登录求职简历</a><br> <br> <a href="modify.asp">更新求职简历</a><br> 
              <br> <a href="../changepwd.asp?stype=person" target="_blank">修改登录密码</a><br> 
              <br> <a href="search.asp">全部职位列表</a> </td>
          </tr>
          <tr> 
            <td width="100%" align="center" valign="top"> 
              <hr>
              <a href="favorite.asp">我的收藏夹</a><br>
              <br> <a href="mailbox.asp">我的信箱</a><br> 
              <br> <a href="../exit.asp">退出登录</a> </td>
          </tr>
        </table>
        <table width="158" border="0" align="center" cellpadding="0" cellspacing="0">
          <tr> 
            <td><img src="../pic/pic_040.gif" width="159" height="13"></td>
          </tr>
        </table></td>
      <td valign="top" bgcolor="#FFFFFF">   
        <div align="center"> 
          <table width="96%" border="0" cellpadding="0" cellspacing="1" bordercolorlight="#000000" bordercolordark="#FFFFFF" bgcolor="#00B5F0">
            <tr> 
              <td height="24" background="/images/pic_008.gif"> <p align="center"><font color="#333333">&nbsp;=== 
                  个人基本资料 ===</font> </td>
            </tr>
            <tr> 
              <td height="28" valign="bottom" bgcolor="#FFFFFF" > <p align="left">&nbsp;<font color="#FF0000">*</font>用户名:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<FONT COLOR="#FF0000"><%=uname%></FONT> &nbsp; </td>
            </tr>
            <tr> 
              <td height="28" valign="bottom" bgcolor="#FFFFFF" > &nbsp;<font color="#FF0000">*</font>真实姓名:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
                <%if modify<>"ture" then%> <input style="COLOR: #ff8040;" type="text" name="iname" valign="bottom" size="12" maxLength=10 value="<%=rs("iname")%>"> 
                <%else%> <%=rs("iname")%> <%end if%> </td>
            </tr>
            <tr> 
              <td height="28" bgcolor="#FFFFFF" > <p align="left">&nbsp;<font color="#FF0000">*</font>性别: 
                  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
                  <input type="radio"<%if modify<>"true" or rs("sex") ="男" then Response.Write "checked"%> value="男" name="sex">
                  <input type="radio" <%if rs("sex") ="女" then Response.Write "checked"%> name="sex" value="女">
                  女 </p></td>
            </tr>
            <tr> 
              <td height="28" bgcolor="#FFFFFF" > <p align="left">&nbsp;<font color="#FF0000">*</font>年龄: 
                  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  
                  <INPUT style="COLOR: #ff8040;" maxLength=10 size=10 name=bday  value="<%=rs("bday")%>">
                  <font color="#FF0000">岁</font></p></td>
            </tr>
            <tr> 
              <td height="28" bgcolor="#FFFFFF"> <p align="left"> &nbsp;<font color="#FF0000">*</font>您最高的教育程度: 
                  <SELECT size=1 
                  name=edu style="BORDER-RIGHT: rgb(0,0,0) 1px dashed; BACKGROUND-POSITION: 0% 50%; BORDER-TOP: rgb(0,0,0) 1px dashed; FONT-SIZE: 9pt; BACKGROUND-ATTACHMENT: scroll; BORDER-LEFT: rgb(0,0,0) 1px dashed;COLOR: #ff8040; BORDER-BOTTOM: rgb(0,0,0) 1px dashed; BACKGROUND-REPEAT: repeat; HEIGHT: 18px; BACKGROUND-COLOR: #ffffff">
                    <OPTION selected>请在以下列表中选择</OPTION>
                    <OPTION value=初中 <%if rs("edu") ="初中" then Response.Write "selected"%>>初中 
                    <OPTION value=高中 <%if rs("edu") ="高中" then Response.Write "selected"%>>高中 
                    <OPTION value=中技 <%if rs("edu") ="中技" then Response.Write "selected"%>>中技 
                    <OPTION value=中专 <%if rs("edu") ="中专" then Response.Write "selected"%>>中专 
                    <OPTION value=大专 <%if rs("edu") ="大专" then Response.Write "selected"%>>大专 
                    <OPTION value=本科 <%if rs("edu") ="本科" then Response.Write "selected"%>>本科 
                    <OPTION value=学士 <%if rs("edu") ="学士" then Response.Write "selected"%>>学士 
                    <OPTION value=硕士 <%if rs("edu") ="硕士" then Response.Write "selected"%>>硕士 
                    <OPTION value=博士 <%if rs("edu") ="博士" then Response.Write "selected"%>>博士</OPTION>
                  </SELECT>
                </p></td>
            </tr>
            <tr> 
              <td height="28" bgcolor="#FFFFFF"> <p align="left"> &nbsp;<font color="#FF0000">*</font>专 
                  业: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
                  <INPUT  style="COLOR: #ff8040;"  size=30                            
                  name=zye maxLength=50 value="<%=rs("zye")%>">
                </p></td>
            </tr>
            <tr> 
              <td align="center" valign="top" bgcolor="#FFFFFF"> <% if modify<>"ture" then %> <input style="COLOR: #ff8040;"  type="button" value="下一步" onClick="check()"> 
                <%else%> <input style="COLOR: #ff8040;"  type="button" value="更 新" onClick="checkmod()"> 
                <br> <%end if%> </td>
            </tr>
          </table>
        </div></td>
    </tr>
  </table>
  </form>
<!--#include file="../include/footer.asp"-->
</body>

</html>
<% bday=request("bday") 
if bday="" then Response.End
sex=request("sex")
iname=request("iname")
zye=request("zye")
edu=request("edu")
if iname="" then iname=rs("iname") end if
rs.close
Set rs = Server.CreateObject("ADODB.Recordset")
sql="select * from person where uname='"&uname&"'"
rs.open sql,conn,3,3
rs("iname")=iname
rs("bday")=bday
rs("sex")=sex
rs("zye")=zye
rs("edu")=edu
rs.update
rs.close
if modify<>"ture" then
Response.Redirect "register2.asp" 
else
Response.Redirect "modify.asp" 
end if %>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -