📄 per_securitysetup.asp
字号:
<!--#include file="../Include/Class_Conn.asp" -->
<!--#include file="../Public/Person_Cookies.asp" -->
<!--#include file="../Include/Class_Main.asp" -->
<%
Dim Rs,Cmd,Tmp,Action
Dim Perid,UserName,UserType,ContactKeep,ResumeKeep,PhotoKeep,ContactStr,ResumeStr,PhotoStr
Action = Request.QueryString("action")
If Action = "submit" Then Call Submit() '//跳转到保存数据的函数
'//判断用户身份
If IsArray(Session("Person")) Then
Perid = Session("Person")(2)
UserName = Session("Person")(0)
Else
Session.Abandon()
Response.write "<script>alert('-登录后才能进行该操作!-');location.href='../Public/MemberLogin.asp';</script>"
Response.End()
End if
'//调用存储过程
Set Cmd = Server.Createobject("ADODB.Command")
Cmd.ActiveConnection = Conn
Cmd.CommandText = "Per_SecuritySetup"
Cmd.CommandType = 4
Cmd.Parameters.Append Cmd.CreateParameter("@Perid",200,1,30)
Cmd.Parameters("@Perid") = Perid
Set Rs = Cmd.Execute
If Rs.Eof Then
CloseRs
Set Cmd = Nothing
CloseDB
Response.write "没有找到会员资料!"
Response.End()
End if
Tmp = Rs.GetRows() '//将数据填充到数组
'//0姓名,1用户类型,2联系方式保密,3简历保密,4个人照片屏蔽
'//如:Tmp(0,0)表示 用户的姓名
CloseRs
Set Cmd = Nothing
'//功能代码
UserType = Cls_Usertype(Tmp(1,0))
ContactKeep = Tmp(2,0)
ResumeKeep = Tmp(3,0)
PhotoKeep = Tmp(4,0)
If ContactKeep = 0 Then
ContactStr = "公开"
Else
ContactStr = "保密"
End if
If ResumeKeep = 0 Then
ResumeStr = "公开"
Else
ResumeStr = "保密"
End if
If PhotoKeep = 0 Then
PhotoStr = "公开"
Else
PhotoStr = "保密"
End if
'//关闭数据库连接
CloseDB
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<LINK href="../Css/Style.css" type=text/css rel=stylesheet>
<title><%= Cls_WebName %> -- 个人会员管理中心 -- 保密设置</title>
</head>
<body>
<table width="768" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
<tr>
<td>
<!--#include file="../Include/Header.asp" -->
</td>
</tr>
</table>
<table width="956" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
<tr>
<td><table width="760" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="4"></td>
</tr>
<tr>
<td height="1" bgcolor="#eeeeee"></td>
</tr>
</table>
<table width="956" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="175">
<!--#include file="../Public/Person_Left.asp" -->
</td>
<td width="5"> </td>
<td valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="25"><img src="../Images/icon.gif" width="11" height="11" align="absmiddle">
<%= Tmp(0,0) %>[<%= UserType %>] </td>
</tr>
</table>
<table width="99%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="2"></td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<form action="?action=submit" name="theForm" method="post" onSubmit="return theForm_check();">
<tr>
<td><table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="eeeeee">
<tr>
<td bgcolor="#FFFFFF"><table width="99%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="2"></td>
</tr>
</table>
<table width="99%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="eeeeee">
<tr>
<td height="25" bgcolor="f5f5f5"><b><font color="#000000"> 会员类型</font></b></td>
</tr>
</table>
<table width="99%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="18%" height="25" align="right"><STRONG><FONT
color=#ff6600>*</FONT></STRONG> 会员类型:</td>
<td width="82%" height="25"> <input type="radio" name="jobtype" value="1" <% If Tmp(1,0) = 1 Then Response.write "Checked" %>>
社会人士
<input type="radio" name="jobtype" value="2" <% If Tmp(1,0) = 2 Then Response.write "Checked" %>>
应届毕业生 </td>
</tr>
</table>
<table width="99%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="2"></td>
</tr>
</table>
<table width="99%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="eeeeee">
<tr>
<td height="25" bgcolor="f5f5f5"><b><font color="#000000"> 保密设置</font></b></td>
</tr>
</table>
<table width="99%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="2"></td>
</tr>
</table>
<table width="99%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="18%" height="25" align="right" bgcolor="f9f9f9"><STRONG><FONT
color=#ff6600>*</FONT></STRONG> 简历保密:</td>
<td width="82%" height="25" bgcolor="f9f9f9">当前状态为<u><%= ResumeStr %></u>;</td>
</tr>
<tr>
<td height="25" align="right"> </td>
<td height="25"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="25"><input type="radio" name="resumekeep" value="0" <% If Tmp(3,0) = 0 Then Response.write "Checked" %>>
简历完全公开</td>
</tr>
<tr>
<td height="25"><input type="radio" name="resumekeep" value="1" <% If Tmp(3,0) = 1 Then Response.write "Checked" %>>
不公开简历 (使任何企业都搜索不到我的简历)</td>
</tr>
</table></td>
</tr>
<tr>
<td height="25" align="right" bgcolor="f9f9f9"><STRONG><FONT
color=#ff6600>*</FONT></STRONG> 个人照片保密:</td>
<td height="25" bgcolor="f9f9f9">当前状态为<u><%= PhotoStr %></u>;</td>
</tr>
<tr>
<td height="25" align="right"> </td>
<td height="25"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="25"><input type="radio" name="photokeep" value="0" <% If Tmp(4,0) = 0 Then Response.write "Checked" %>>
照片完全公开 </td>
</tr>
<tr>
<td height="25"><input type="radio" name="photokeep" value="1" <% If Tmp(4,0) = 1 Then Response.write "Checked" %>>
不公开我的照片 (即:屏蔽照片的显示)</td>
</tr>
</table></td>
</tr>
<tr>
<td height="25" align="right" bgcolor="f9f9f9"><STRONG><FONT
color=#ff6600>*</FONT></STRONG> 联系方式保密:</td>
<td height="25" bgcolor="f9f9f9">当前状态为<u><%= ContactStr %></u>;</td>
</tr>
<tr>
<td height="25" align="right"> </td>
<td height="25"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="25"><input type="radio" name="contactkeep" value="0" <% If Tmp(2,0) = 0 Then Response.write "Checked" %>>
联系方式完全公开</td>
</tr>
<tr>
<td height="25"><input type="radio" name="contactkeep" value="1" <% If Tmp(2,0) = 1 Then Response.write "Checked" %>>
不公开联系方式 (使所有企业都查看不到我的联系方式)</td>
</tr>
</table></td>
</tr>
</table>
<table width="99%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="2"></td>
</tr>
</table>
<table width="99%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="2"></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
<tr>
<td height="40" align="center"> <input name="perid" type="hidden" id="perid" value="<%= Perid %>">
<input type="submit" name="Submit" value=" 保 存 设 置 " style="height:35px;">
</td>
</tr>
</form>
</table></td>
</tr>
</table>
<table width="760" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="1" bgcolor="#eeeeee"></td>
</tr>
</table>
<!--#include file="../Include/Footer.asp" -->
</td>
</tr>
</table>
</body>
</html>
<%
Sub Submit()
Call Check_url() '防止外部站点提交数据
'//提交数据
Perid = Session("Person")(2)
JobType = Replace_Text(Request.Form("JobType"))
ContactKeep = Replace_Text(Request.Form("ContactKeep"))
ResumeKeep = Replace_Text(Request.Form("ResumeKeep"))
PhotoKeep = Replace_Text(Request.Form("PhotoKeep"))
SQL = "Update [pH_Person_Info] Set JobType="&JobType&",ContactKeep="&ContactKeep&",ResumeKeep="&ResumeKeep&",PhotoKeep="&PhotoKeep&" Where Perid='"&Perid&"'"
Conn.Execute(SQL)
'//更改最后修改时间
SQL = "Update [pH_Person_Base] Set LastUpdate_Time='"&Now()&"' Where Perid='"&Perid&"'"
Conn.Execute(SQL)
CloseDB
Response.redirect "Per_SecuritySetup.asp"
End Sub
%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -