📄 per_videoresume.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_VideoResume"
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开通时间,5截止时间,6简历路径
'//如:Tmp(0,0)表示 用户的姓名
CloseRs
Set Cmd = Nothing
'//功能代码
UserType = Cls_Usertype(Tmp(1,0))
Nc_Video = Tmp(2,0)
Video_Flag = Tmp(3,0)
Video_Date = Tmp(4,0)
Video_EndDate = Tmp(5,0)
FilePath = Tmp(6,0)
'判断会员是否有视频简历
Video_Str = ""
If Nc_Video = True Then
Video_FlagStr = "" '视频简历的属性
Select Case Video_Flag
Case 0:Video_FlagStr = "公开中"
Case 1:Video_FlagStr = "<font color=#666666>对会员公开</font>"
Case 2:Video_FlagStr = "<font color=#ff0000>屏蔽中</font>"
End Select
If DateDiff("d",Video_Date,Date()) >= 0 And DateDiff("d",Video_EndDate,Date()) <= 0 Then
Video_Str = "您的视频简历开通时间:"&Formatdatetime(Video_Date,2)&"截止时间:"&Formatdatetime(Video_EndDate,2)
Elseif DateDiff("d",Video_EndDate,Date()) > 0 Then
Video_Str = "您的视频简历截止,截止时间:"&Formatdatetime(Video_EndDate,2)
End if
Else
Video_Str = "您还没有制作视频简历,<a href=../Resume/Res_Conact.asp target=_blank>点击这里开始预约制作个人视频简历</a>"
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" cellpadding="0" cellspacing="1" bgcolor="eeeeee">
<form action="?action=submit" name="theForm" method="post">
<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 height="25" align="left"> <%= Video_Str %></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 width="18%" height="25" align="right">访问路径:</td>
<td align="left">
<% If Nc_Video = True Then %>
<input name="textfield" type="text" size="40" value="<%= Cls_WebUrl&"Person/Per_VideoView.asp?Perid="&Perid %>">
<% Else %>
<input name="textfield" type="text" size="40" >
<% End if %>
</td>
</tr>
<tr>
<td height="25" align="right">使用说明:</td>
<td align="left">您可以把以上您视频简历的URL地址发送到您想面试企业的邮箱,企业点击<br>
即可直接观看您的视频简历,不占用企业邮箱任何多余空间。</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">
<% If Nc_Video = True Then %>
<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><%= Video_FlagStr %></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="flag" value="0" <% If Video_Flag = 0 Then Response.write "Checked" %>>
完全公开 ;</td>
</tr>
<tr>
<td height="25"> <input type="radio" name="flag" value="1" <% If Video_Flag = 1 Then Response.write "Checked" %>>
只对企业会员公开 ;</td>
</tr>
<tr>
<td height="25"> <input type="radio" name="flag" value="2" <% If Video_Flag = 2 Then Response.write "Checked" %>>
完全屏蔽 ;</td>
</tr>
<tr>
<td height="25"><input type="submit" name="Submit" value=" 保 存 设 置 " ></td>
</tr>
</table></td>
</tr>
<% Else %>
<tr align="left">
<td height="25" colspan="2"> 您还没有制作视频简历,<a href=../Resume/Res_Conact.asp target=_blank>点击这里开始预约制作视频简历</a></td>
</tr>
<% End if %>
</table>
</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)
Flag = Replace_Text(Request.Form("flag"))
SQL = "Update [pH_Person_Info] Set Video_Flag="&Flag&" 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_VideoResume.asp"
End Sub
%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -