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

📄 register3.asp

📁 数据库应用技术的实验代码及相关文档,供有需要的人使用
💻 ASP
字号:
<% Response.Buffer=True %>
<!--#include file="../inc/person.inc"-->
<!--#include file="../inc/html.inc"-->
<!--#include file="../lib/inctop.asp"-->
<% 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 rs("gzjl")<>"" then
else
response.write"<SCRIPT language=JavaScript>alert('用户非法操作,请按照顺序填写求职简历!');"
response.write"javascript:history.go(-1)</SCRIPT>"
end if %>
<% 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 %>
<title>学生社会实践信息管理系统—&gt;人才中心—&gt;登录求职简历</title>
<%else%>
<title>学生社会实践信息管理系统—&gt;人才中心—&gt;更新求职简历</title>
<script language="JavaScript">
<!--
function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_showHideLayers() { //v3.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v='hide')?'hidden':v; }
    obj.visibility=v; }
}
//-->
</script>
</head>
<%end if%>
<SCRIPT language=JavaScript src="../inc/validate.js"></SCRIPT>
<SCRIPT language=JavaScript src="../inc/vreg3.js"></SCRIPT>
<% if modify<>"ture" then %>
<body bgcolor="#666666"><FORM name=register action=register3.asp method=post> 
<%else%>
<FORM name="register" action="register3.asp?modify=ture" method="post">
  <%end if%><body topmargin="0" leftmargin="0">
  <table align=center background=../inmegs/bgline.gif border=0 cellpadding=0 
cellspacing=0 width=762>

  <center>
  <table border="0" cellpadding="0" cellspacing="0" width="760" height="753" bgcolor="#FFFFFF">
    <tr> 
      <td height="18" valign="top" colspan="5" bgcolor="#396BA5">   </td>
      <td width="12"></td>
    </tr>
    <tr> 
      <td width="118" height="162" valign="top" bgcolor="#396BA5">   
        <div align="center"> 
          <table border="0" cellpadding="0" cellspacing="0" width="118" height="280">
            <tr> 
              <td width="100%" height="163" background="../images/stat-bg.GIF" valign="top"> 
                <p align="center"><br>
                  <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%" height="117" background="../images/stat-bg.GIF" valign="top"> 
                <p align="center"><br>
                  <br>
                  <a href="favorite.asp">我的收藏夹</a><br>
                  <br>
                  <a href="mailbox.asp">我的信箱</a><br>
                  <br>
                  <a href="../exit.asp">退出登录</a> 
              </td>
            </tr>
          </table>
        </div>
        <p align="center"> 
      </td>
      <td width="20" height="604" valign="top"><img border="0" src="../images/selfk.GIF"></td>
      <td width="1342" height="248" valign="top">   
        <table border="1" cellpadding="0" cellspacing="0" width="92%" height="258" bordercolor="#FFFFFF" bordercolorlight="#FFFFFF" bordercolordark="#FFFFFF">
          <tr> 
            <td width="100%" height="18" valign="bottom" bgcolor="#C6CEDE" bordercolor="#000000" bordercolorlight="#000000" bordercolordark="#FFFFFF"> 
              <p align="center">=== 希望工作条件 === 
            </td>
          </tr>
          <tr> 
            <td width="100%" height="124" valign="top" bgcolor="#F3F3F3"> 
              <p align="center"><br>
                求职类型: 
                <input type=radio value=全职 name=jobtype <%if modify<>"true" or rs("jobtype") ="全职" then Response.Write "checked"%>>
                全职 
                <input type=radio value=兼职 name=jobtype <%if rs("jobtype") ="兼职" then Response.Write "checked"%>>
                兼职</p>
              <p align="center">应聘岗位: 
                <select size="1" name="job">
                  <option>请在以下列表中选择</option>
				  <option>--------------活动策划,营销类-------------- 
                  <option value=校园代理 <%if rs("job") ="校园代理" then Response.Write "selected"%>>校园代理
                  <option value=企业策划 <%if rs("job") ="企业策划" then Response.Write "selected"%>>企业策划 
                  <option value=广告宣传 <%if rs("job") ="广告宣传" then Response.Write "selected"%>>广告宣传
                  <option value=代办校园活动、讲座<%if rs("job") ="代办校园活动、讲座" then Response.Write "selected"%>>代办校园活动、讲座 
                  
                  <option>--------------家教-------------- 
                  <option value=初中(全部课程) <%if rs("job") ="初中(全部课程)" then Response.Write "selected"%>>初中(全部课程)
                  <option value=初中-英语 <%if rs("job") ="初中-英语" then Response.Write "selected"%>>初中-英语 
                  <option value=初中-数、理、化 <%if rs("job") ="初中-数、理、化 " then Response.Write "selected"%>>初中-数、理、化  
                  <option value=高中(全部课程) <%if rs("job") ="高中(全部课程)" then Response.Write "selected"%>>高中(全部课程) 
                  <option value=高中-英语 <%if rs("job") ="高中-英语" then Response.Write "selected"%>>高中-英语 
				  <option value=高中-数、理、化 <%if rs("job") ="高中-数、理、化 " then Response.Write "selected"%>>高中-数、理、化
				  <option value=高中-生、地、历 <%if rs("job") ="高中-生、地、历 " then Response.Write "selected"%>>高中-生、地、历 
                  <option value=专业相关 <%if rs("job") ="专业相关" then Response.Write "selected"%>>专业相关 
                  <option value=其他 <%if rs("job") ="其他" then Response.Write "selected"%>>其他
                </select>
               </p>
              <p align="center">希望工作地点:<b> 
                <select size=1 name=gzdd>
                  <option>请在以下列表中选择</option>
                  <option value=福州市 <%if rs("gzdd") ="福州市" then Response.Write "selected"%>>福州市 
                  <option value=泉州市 <%if rs("gzdd") ="泉州市" then Response.Write "selected"%>>泉州市
                  <option value=厦门市 <%if rs("gzdd") ="厦门市" then Response.Write "selected"%>>厦门市 
                  <option value=漳州市 <%if rs("gzdd") ="漳州市" then Response.Write "selected"%>>漳州市 
                  <option value=莆田市 <%if rs("gzdd") ="莆田市" then Response.Write "selected"%>>莆田市 
                  <option value=龙岩市 <%if rs("gzdd") ="龙岩市" then Response.Write "selected"%>>龙岩市 
                  <option value=三明市 <%if rs("gzdd") ="三明市" then Response.Write "selected"%>>三明市 
                  <option value=宁德市 <%if rs("gzdd") ="宁德市" then Response.Write "selected"%>>宁德市 
                  <option value=南平市 <%if rs("gzdd") ="南平市" then Response.Write "selected"%>>南平市 
                  <option value=其他 <%if rs("gzdd") ="其他" then Response.Write "selected"%>>其他
                </select>
                </b></p>
              <p align="center"> 
                <% kyuex=rs("yuex")
			  if kyuex="面议" then kyuex="" end if %>
                薪金要求:月薪 
                <input maxlength=6                
                  size=6 name=yuex value="<%=kyuex%>">
                RMB -不填表示面议!</p>
              <p align="center">其他要求:<br>
                <font color="#FF0000">(限100字以内)</font><br>
                <%if modify<>"ture" then 
			  kotheryq=""
			  else
			  kotheryq=replace(rs("otheryq"),"<br>",chr(13))
              kotheryq=replace(kotheryq,"&nbsp;"," ")%>
                <%end if%>
                <textarea rows="6" name="otheryq" cols="34"><%=kotheryq%></textarea>
              </p>
			 
              <p align="center"></p>
            </td>
          </tr>
          <tr> 
            <td width="100%" height="18" valign="bottom" bgcolor="#C6CEDE" bordercolor="#000000" bordercolorlight="#000000" bordercolordark="#FFFFFF"> 
              <p align="center">=== 联系信息 === 
            </td>
          </tr>
          <tr> 
            <td width="100%" height="108" valign="top" bgcolor="#F3F3F3"> 
              <p align="center"><br>
                联系人: 
                <input maxlength=4
                  size=17 name=cname value="<%=rs("cname")%>">
                联系电话: 
                <input maxlength=20                     
                  size=17 name=phone value="<%=rs("phone")%>">
              </p>
              <p align="center">寻呼机号码: 
                <input maxlength=20 
                  size=17 name=callnum value="<%=rs("callnum")%>">
                E-mail: 
                <input maxlength=30                      
                  size=17 name=email value="<%=rs("email")%>">
              </p>
              <% koicq=rs("oicq")
			  if koicq="未知" then koicq="" end if %>
              <p align="center">QQ号码: 
                <input maxlength=15 
                  size=17 name=oicq value="<%=koicq%>">
                个人主页:
                <input maxlength=30                     
                  size=17 name=http <% if rs("http") <>"" then%> value="<%=rs("http")%>" <%else%>
				  <%end if%>>
              </p>
              <p align="center">联系地址: 
                <input maxlength=50 
                  size=45 name=address value="<%=rs("address")%>">
              </p>
              <p align="center"> 
                <% if modify<>"ture" then %>
                <input type="button" value="上一步" onClick="javascript:history.go(-1)" name="button">
                <input type="button" value="完 成" onClick="check()" name="button">
                <br>
                <%else%>
                <input type="button" value="更 新" onClick="check()" name="button">
              </p>
              <%end if%>
              <br>
            </td>
          </tr>
        </table>
        <% rs.close %>
      </td>
      <td width="74"> 
      <td width="1" height="604" valign="top" bgcolor="#00006A"></td>
      <td height="604" valign="top" bgcolor="#F3F3F3"> </td>
    </tr>
  </table>
</form>
</body>

</html>
<% cname=request("cname") 
if cname="" then Response.End
jobtype=request("jobtype")
job=request("job")
yuex=request("yuex")
otheryq=htmlencode2(request("otheryq"))
phone=request("phone")
gzdd=request("gzdd")
callnum=request("callnum")
email=request("email")
oicq=request("oicq")
http=request("http")
address=request("address")
if yuex="" then yuex="面议" end if
if otheryq="" then otheryq="无其他要求" end if
if callnum="" then callnum="未知" end if
if oicq="" then oicq="未知" end if
if http="" then http="http://" end if

Set rs = Server.CreateObject("ADODB.Recordset")
sql="select * from person where uname='"&uname&"'"
rs.open sql,conn,3,3
rs("cname")=cname
rs("jobtype")=jobtype
rs("job")=job
rs("yuex")=yuex
rs("otheryq")=otheryq
rs("phone")=phone
rs("gzdd")=gzdd
rs("callnum")=callnum
rs("email")=email
rs("oicq")=oicq
rs("http")=http
rs("address")=address
rs("idate")=date()
rs.update
rs.close
if modify<>"ture" then
Response.Redirect "main.asp" 
else
Response.Redirect "modify.asp" 
end if %>







⌨️ 快捷键说明

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