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

📄 web_person_register.asp

📁 直接附加数据库! 修改 Include/ Class_Main.asp 为自己信息 后台admin admin 绍兴人才网程序
💻 ASP
📖 第 1 页 / 共 3 页
字号:
                      </tr>
                    </table>
                    <table cellspacing=0 cellpadding=0 width=99% align=center 
            border=0>
                      <tbody>
                        <tr> 
                          <td class=font-14 height=3></td>
                        </tr>
                        <tr> 
                          <td class=font-14 bgcolor=#ff7800 height=21> <font style="MARGIN-TOP: 2px; MARGIN-LEFT: 10px" color=#ffffff><strong>教育背景</strong></font></td>
                        </tr>
                        <tr> 
                          <td bgcolor=#e2e2e2 height=2></td>
                        </tr>
                      </tbody>
                    </table>
                    <table width="99%" border="0" align="center" cellpadding="0" cellspacing="0">
                      <tr> 
                        <td width="17%" height="25" align="right"><strong><font 
                  color=#ff6600>*</font></strong> 毕业院校:</td>
                        <td height="25"><input name="lastschool" type="text" id="lastschool" size="30" maxlength="30" style="width:160px;"> 
                          <font color="#50463d">如:北京大学</font> </td>
                      </tr>
                      <tr> 
                        <td width="17%" height="25" align="right" bgcolor="#fff7f0"><strong><font 
                  color=#ff6600>*</font></strong> 最高学历:</td>
                        <td height="25" bgcolor="#fff7f0"> <select name="edus" id="edus" style="width:60px;">
                            <option value="10">小学</option>
                            <option value="20">初中</option>
                            <option value="30">高中</option>
                            <option value="40">中专</option>
                            <option value="50">专科</option>
                            <option value="60" selected>本科</option>
                            <option value="70">硕士</option>
                            <option value="80">博士</option>
                            <option value="90">博士后</option>
                          </select></td>
                      </tr>
                      <tr> 
                        <td height="25" align="right"><strong><font 
                  color=#ff6600>*</font></strong> 毕业年份:</td>
                        <td height="25"><input name="byear" type="text"  size="4" maxlength="4" style="width:60px;">
                          年</td>
                      </tr>
                      <tr> 
                        <td height="25" align="right" bgcolor="#fff7f0"><strong><font 
                  color=#ff6600>*</font></strong> 专业类别:</td>
                        <td height="25" bgcolor="#fff7f0"> <select name=zyclass id="zyclass" style="width:120px;">
                            <option value=计算机类 selected >计算机类 
                            <option value=管理类 >管理类 
                            <option value=行政管理 >行政管理 
                            <option value=党政管理 >党政管理 
                            <option value=管理工程类 >管理工程类 
                            <option value=工科>工科 
                            <option value=机械制造类 >机械制造类 
                            <option value=仪器仪表类 >仪器仪表类 
                            <option value=热工类 >热工类 
                            <option value=电气自动化 >电气自动化 
                            <option value=电子技术>电子技术 
                            <option value=工业自动化 >工业自动化 
                            <option value=通信类 >通信类 
                            <option value=土建类>土建类 
                            <option value=化工类 >化工类 
                            <option value=轻工/粮食/食品类 >轻工/粮食/食品类 
                            <option value=纺织类 >纺织类 
                            <option value=运输类 >运输类 
                            <option value=水利类>水利类 
                            <option value=测绘类>测绘类 
                            <option value=环境类>环境类 
                            <option value=原子能类>原子能类 
                            <option value=应用理科及力学类 >应用理科及力学类 
                            <option value=地质类 >地质类 
                            <option value=矿业类 >矿业类 
                            <option value=冶金类>冶金类 
                            <option value=材料类 >材料类 
                            <option value=军工类>军工类 
                            <option value=财经类>财经类 
                            <option value=政法类>政法类 
                            <option value=文科类 >文科类 
                            <option value=中国语言文学 >中国语言文学 
                            <option value=外语类 >外语类 
                            <option value=历史类 >历史类 
                            <option value=政治类>政治类 
                            <option value=哲学类 >哲学类 
                            <option value=图书馆学 >图书馆学 
                            <option value=文科类其他专业>文科类其他专业 
                            <option value=理科类>理科类 
                            <option value=数学类 >数学类 
                            <option value=物理学类 >物理学类 
                            <option value=化学类 >化学类 
                            <option value=力学类>力学类 
                            <option value=地学类 >地学类 
                            <option value=天文学类>天文学类 
                            <option value=海洋学类 >海洋学类 
                            <option value=生物学类>生物学类 
                            <option value=理科类其他专业>理科类其他专业 
                            <option value=医药类 >医药类 
                            <option value=师范>师范 
                            <option value=农科类>农科类 
                            <option value=林科类 >林科类 
                            <option value=体育类 >体育类 
                            <option value=艺术>艺术 
                            <option value=音乐类>音乐类 
                            <option value=工艺美术类>工艺美术类 
                            <option value=工业美术类 >工业美术类 
                            <option value=戏剧舞蹈类>戏剧舞蹈类 
                            <option value=电影电视>电影电视 
                            <option value=技工类>技工类</option>
                            <option value=其他>其他</option>
                          </select> </td>
                      </tr>
                      <tr> 
                        <td height="25" align="right"><strong><font 
                  color=#ff6600>*</font></strong> 专业名称:</td>
                        <td height="25"><input name="speciality" type="text" size="30" maxlength="30" style="width:120px;"></td>
                      </tr>
                    </table>
                    <table cellspacing=0 cellpadding=0 width=99% align=center 
            border=0>
                      <tbody>
                        <tr> 
                          <td class=font-14 height=3></td>
                        </tr>
                        <tr> 
                          <td class=font-14 bgcolor=#ff7800 height=21> <font style="MARGIN-TOP: 2px; MARGIN-LEFT: 10px" color=#ffffff><strong>联系方式</strong></font></td>
                        </tr>
                        <tr> 
                          <td bgcolor=#e2e2e2 height=2></td>
                        </tr>
                      </tbody>
                    </table>
                    <table width="99%" border="0" align="center" cellpadding="0" cellspacing="0">
                      <tr> 
                        <td width="17%" height="25" align="right"><strong><font 
                  color=#ff6600>*</font></strong> 电 话:</td>
                        <td height="25"><input name="personphone" type="text" size="30" maxlength="30" style="width:120px;"> 
                          <font color="#50463d">固定电话号码[如:010-82615888] </font></td>
                      </tr>
                      <tr> 
                        <td width="17%" height="25" align="right" bgcolor="#fff7f0">手 
                          机:</td>
                        <td height="25" bgcolor="#fff7f0"> <input name="mt" type="text" size="30" maxlength="30" style="width:120px;"> 
                          <font color="#50463d">移动</font><font color="#50463d">电话号码[如:139-88888888] 
                          </font> </td>
                      </tr>
                      <tr> 
                        <td height="25" align="right">聊天号码:</td>
                        <td height="25"> <input name="msnqq" type="text" size="30" maxlength="30" style="width:120px;"> 
                          <font color="#50463d">MSN/QQ/OICQ号码</font></td>
                      </tr>
                      <tr> 
                        <td height="25" align="right" bgcolor="#fff7f0">个人网站:</td>
                        <td height="25" bgcolor="#fff7f0"> 
                          <input name="webhome" type="text" id="webhome" style="width:200px;" value="http://" size="50"></td>
                      </tr>
                      <tr> 
                        <td height="25" align="right"><strong><font 
                  color=#ff6600>*</font></strong> 邮政编码:</td>
                        <td height="25"> 
                          <input name="zipcode" type="text" id="zipcode" style="width:120px;" size="6" maxlength="6"> 
                        </td>
                      </tr>
                      <tr> 
                        <td height="25" align="right" bgcolor="#fff7f0"><strong><font 
                  color=#ff6600>*</font></strong> 通讯地址:</td>
                        <td height="25" bgcolor="#fff7f0"> 
                          <input name="address" type="text" id="address" style="width:260px;" size="100">
                          如:北京市海淀区成府路××号 </td>
                      </tr>
                    </table></td>
                </tr>
              </table></td>
          </tr>
          <tr> 
            <td height="40" align="center"> 
              <input type="submit" name="Submit" value=" 新 增 会 员 " style="height:30px;"> 
            </td>
          </tr>
        </form>
      </table></td>
</tr>
</table>
</body>
</html>
<% 
Sub Edit_Submit() 
Username = Replace_text(Request.Form("username")) '//用户名
Password = Replace_text(Request.Form("password")) '//密码
Password = Md5(Password)
Randomize timer
Znum = Cint(8999*Rnd+1000)
Perid = Cls_WebKey&gen_key(10)&Znum               '//会员ID
Useremail=replace_text(request.form("useremail")) '//邮件
Question = replace_text(request.form("question")) '//问题提示
Answer = replace_text(request.form("answer"))     '//提示答案
JobType = replace_text(request.form("jobtype"))     '//会员类型

Set Rs = Server.Createobject("ADODB.recordset")
'//检测是否含有同名帐号
Rs.Open "Select UserName,UserEmail,Perid From [pH_Person_Base] Where Username='"&username&"' or Useremail='"&useremail&"'  or Perid='"&Perid&"'",Conn,1,1

If Not Rs.Eof Then
    '//同名的帐号
	If Rs("Username") = UserName or Rs("Perid") = Perid Then
	    CloseRs
		CloseDB
		Response.write "<script >alert('"&Cls_WebName&" 提示:\n\n对不起,你的帐号已经使用了,请重新选择帐号并继续注册...');history.back(-1);</script>"
		Response.end
    End if
	'//同名的邮件
    If Rs("Useremail") = Useremail Then
	    CloseRs
	    CloseDB
		Response.write "<script >alert('"&Cls_WebName&" 提示:\n\n对不起,系统中有同名的邮箱,请重新选择邮箱并继续注册...');history.back(-1);</script>"
	    Response.end
    End if

End if 
Rs.Close

'//检测论坛的会员表
rs.open "select id,User_name,Email from [User] where user_name='"&username&"' or email='"&useremail&"'",conn,1,1
if not rs.eof or not rs.bof then
	if  rs("user_name")=username then
	    CloseRs
	    CloseDB
		response.write "<script >alert('"&Cls_WebName&" 提示:\n\n对不起,你的帐号已经使用了,请重新选择帐号并继续注册...');history.back(-1);</script>"
		response.end
    end if
    if rs("email")=useremail then
	    CloseRs
	    CloseDB
		response.write "<script >alert('"&Cls_WebName&" 提示:\n\n对不起,系统中有同名的邮箱,请重新选择邮箱并继续注册...');history.back(-1);</script>"
	  response.end
    end if

end if 
'//保存数据到数据库[pH_Person_Base]和[pH_Person_Info]表
SQL = "Insert Into [pH_Person_Base] (Perid,Username,Password,UserEmail,Journal,RegDate,LastIp,LastDate,LastUpdate_Time,LoginCount,Question,Answer,Websub) Values ('"&Perid&"','"&Username&"','"&Password&"','"&UserEmail&"',1,'"&Now()&"','"&LastIp&"','"&Now()&"','"&Now()&"',1,'"&Question&"','"&Answer&"','"&Cls_Websub&"')"
Conn.Execute(SQL)  '//[pH_Person_Base]表

SQL = "Insert Into [pH_Person_Info] (Perid,UserName,RealName,Sex,Nation,Edus,Marry,Age,LastSchool,ZyClass,Speciality,Door_Area,Door_City,Locus_Area,Locus_City,Stature,Tizhong,Byear,BirthYear,BirthMonth,BirthDay,PersonPhone,MsnQQ,WebHome,InterView,ProvideHouse,Post,ViewClicks,ContactKeep,ResumeKeep,PhotoKeep,ResumeMode,Codeid,CodeType,Mt,ZipCode,Address,PerType,JobType,TopAll,Nc_Video,Video_Flag,Video_BestFlag,Websub) Values ('"&Perid&"','"&Username&"','"&Realname&"',"&Sex&",'"&Nation&"',"&Edus&","&Marry&","&Age&",'"&LastSchool&"','"&ZyClass&"','"&Speciality&"','"&Door_Area&"','"&Door_City&"','"&Locus_Area&"','"&Locus_City&"',"&Stature&","&TiZhong&","&Byear&","&BirthYear&","&BirthMonth&","&BirthDay&",'"&PersonPhone&"','"&MsnQQ&"','"&WebHome&"',0,0,0,0,0,0,0,1,'"&Codeid&"',"&CodeType&",'"&Mt&"','"&ZipCode&"','"&Address&"',1,"&JobType&",0,0,0,0,'"&Cls_Websub&"')"
Conn.Execute(SQL)  '//[pH_Person_Info]表

'//在论坛会员表中添加记录
SQL = "Insert Into [User] (User_name,User_Pass,Login_Last_Date,Login_Last_Ip,Login_Count,Creat_Date,Up_Date,Pass_Matter,Pass_Key,Email,MsnQQ,Address,myWeb,TelPhone,RelName) Values ('"&Username&"','"&Replace_text(request.form("password"))&"','"&Now()&"','"&LastIp&"',1,'"&Now()&"','"&Now()&"','"&Question&"','"&Answer&"','"&UserEmail&"','"&MsnQQ&"','"&Address&"','"&WebHome&"','"&PersonPhone&"','"&Realname&"')"
Conn.Execute(SQL)

 '操作完成
 Response.write "<script language=JavaScript>alert('操作完成!');location.href='Web_Person_All.asp';</script>"
 Response.End()
End Sub

Call CloseDB()
 %>

⌨️ 快捷键说明

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